@commercetools/nimbus 0.0.9-rc7 → 0.0.9-rc8
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/chunks/{Button-Dtn-lV5G.js → Button-BxcMDv2N.js} +7 -7
- package/dist/chunks/{Button-Dtn-lV5G.js.map → Button-BxcMDv2N.js.map} +1 -1
- package/dist/chunks/{Button-DOBmPkg6.js → Button-tPOlfQRd.js} +2 -2
- package/dist/chunks/{Button-DOBmPkg6.js.map → Button-tPOlfQRd.js.map} +1 -1
- package/dist/chunks/{DateField-C2G53tNO.js → DateField-CaR3Qeda.js} +24 -24
- package/dist/chunks/{DateField-C2G53tNO.js.map → DateField-CaR3Qeda.js.map} +1 -1
- package/dist/chunks/{DateField-D0hZjHMU.js → DateField-D3h6vCMK.js} +2 -2
- package/dist/chunks/{DateField-D0hZjHMU.js.map → DateField-D3h6vCMK.js.map} +1 -1
- package/dist/chunks/{Dialog-CFCn7n-k.js → Dialog-5VrXdl86.js} +2 -2
- package/dist/chunks/{Dialog-CFCn7n-k.js.map → Dialog-5VrXdl86.js.map} +1 -1
- package/dist/chunks/{Dialog-DsJ3jo2g.js → Dialog-DJv-Zg_L.js} +18 -18
- package/dist/chunks/{Dialog-DsJ3jo2g.js.map → Dialog-DJv-Zg_L.js.map} +1 -1
- package/dist/chunks/{FocusScope-B6O_mZ9T.js → FocusScope-CsXy0kJw.js} +6 -6
- package/dist/chunks/{FocusScope-B6O_mZ9T.js.map → FocusScope-CsXy0kJw.js.map} +1 -1
- package/dist/chunks/{FocusScope-Dz6kDOQY.js → FocusScope-Cysx7oI0.js} +2 -2
- package/dist/chunks/{FocusScope-Dz6kDOQY.js.map → FocusScope-Cysx7oI0.js.map} +1 -1
- package/dist/chunks/{Group-DR52Cv_h.js → Group-CTpcJZmt.js} +2 -2
- package/dist/chunks/{Group-DR52Cv_h.js.map → Group-CTpcJZmt.js.map} +1 -1
- package/dist/chunks/{Group-BMf2x0bV.js → Group-D3CaEDfr.js} +6 -6
- package/dist/chunks/{Group-BMf2x0bV.js.map → Group-D3CaEDfr.js.map} +1 -1
- package/dist/chunks/Hidden-CNJIJ63M.js +2 -0
- package/dist/chunks/{Hidden-BxRZGdEW.js.map → Hidden-CNJIJ63M.js.map} +1 -1
- package/dist/chunks/{Hidden-D6Lfpu1U.js → Hidden-CeBYiBUb.js} +1 -8
- package/dist/chunks/{Hidden-D6Lfpu1U.js.map → Hidden-CeBYiBUb.js.map} +1 -1
- package/dist/chunks/{Input-C6fX3A5E.js → Input-0vJb_5Js.js} +6 -6
- package/dist/chunks/{Input-C6fX3A5E.js.map → Input-0vJb_5Js.js.map} +1 -1
- package/dist/chunks/{Input-CRt1BJ4n.js → Input-rMOtwpe-.js} +2 -2
- package/dist/chunks/{Input-CRt1BJ4n.js.map → Input-rMOtwpe-.js.map} +1 -1
- package/dist/chunks/ListBox-Dmkou3Hm.js +18 -0
- package/dist/chunks/ListBox-Dmkou3Hm.js.map +1 -0
- package/dist/chunks/{ListBox-DH3lufv2.js → ListBox-Dss9OMcn.js} +676 -743
- package/dist/chunks/ListBox-Dss9OMcn.js.map +1 -0
- package/dist/chunks/{OverlayArrow-DsxKFiKE.js → OverlayArrow-Bs2caVoG.js} +2 -2
- package/dist/chunks/{OverlayArrow-DsxKFiKE.js.map → OverlayArrow-Bs2caVoG.js.map} +1 -1
- package/dist/chunks/{OverlayArrow-B1kv2W8j.js → OverlayArrow-qjQZbu8u.js} +4 -4
- package/dist/chunks/{OverlayArrow-B1kv2W8j.js.map → OverlayArrow-qjQZbu8u.js.map} +1 -1
- package/dist/chunks/RSPContexts-AkhSBHGO.js +6 -0
- package/dist/chunks/{RSPContexts-CxXY5Uko.js.map → RSPContexts-AkhSBHGO.js.map} +1 -1
- package/dist/chunks/RSPContexts-CIAIlAKH.js +2 -0
- package/dist/chunks/{RSPContexts-qzadeFSO.js.map → RSPContexts-CIAIlAKH.js.map} +1 -1
- package/dist/chunks/{SSRProvider-D8lZ0o6A.js → SSRProvider-eIEwc-2s.js} +2 -2
- package/dist/chunks/{SSRProvider-D8lZ0o6A.js.map → SSRProvider-eIEwc-2s.js.map} +1 -1
- package/dist/chunks/{TextArea-Ud71sffr.js → TextArea-BfVV0_3h.js} +2 -2
- package/dist/chunks/{TextArea-Ud71sffr.js.map → TextArea-BfVV0_3h.js.map} +1 -1
- package/dist/chunks/{TextArea-D-S_3q08.js → TextArea-Q-NI2yW5.js} +5 -5
- package/dist/chunks/{TextArea-D-S_3q08.js.map → TextArea-Q-NI2yW5.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-BpUTcba_.js → VisuallyHidden-2REhp9RT.js} +3 -3
- package/dist/chunks/{VisuallyHidden-BpUTcba_.js.map → VisuallyHidden-2REhp9RT.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-BxenYie4.js → VisuallyHidden-Cg0LJ1Dh.js} +2 -2
- package/dist/chunks/{VisuallyHidden-BxenYie4.js.map → VisuallyHidden-Cg0LJ1Dh.js.map} +1 -1
- package/dist/chunks/{accordion-Dc3IqP_d.js → accordion-D4Qqg89m.js} +12 -12
- package/dist/chunks/{accordion-Dc3IqP_d.js.map → accordion-D4Qqg89m.js.map} +1 -1
- package/dist/chunks/{accordion-8pelAIyn.js → accordion-vrKLW-re.js} +2 -2
- package/dist/chunks/{accordion-8pelAIyn.js.map → accordion-vrKLW-re.js.map} +1 -1
- package/dist/chunks/{alert-DxoCjJDr.js → alert-B738R1TJ.js} +2 -2
- package/dist/chunks/{alert-DxoCjJDr.js.map → alert-B738R1TJ.js.map} +1 -1
- package/dist/chunks/{alert-DSpVYhCa.js → alert-BX5IPnc_.js} +10 -10
- package/dist/chunks/{alert-DSpVYhCa.js.map → alert-BX5IPnc_.js.map} +1 -1
- package/dist/chunks/{avatar-p4QfPsxN.js → avatar-85FE_L0r.js} +3 -3
- package/dist/chunks/{avatar-p4QfPsxN.js.map → avatar-85FE_L0r.js.map} +1 -1
- package/dist/chunks/{avatar.recipe-BV5OkaPx.js → avatar.recipe-BSmmqvwQ.js} +2 -2
- package/dist/chunks/{avatar.recipe-BV5OkaPx.js.map → avatar.recipe-BSmmqvwQ.js.map} +1 -1
- package/dist/chunks/{badge-CbqLqIo9.js → badge-C1bFH3CB.js} +4 -4
- package/dist/chunks/{badge-CbqLqIo9.js.map → badge-C1bFH3CB.js.map} +1 -1
- package/dist/chunks/{button-vfAeHh1t.js → button-BLZONb0_.js} +2 -2
- package/dist/chunks/{button-vfAeHh1t.js.map → button-BLZONb0_.js.map} +1 -1
- package/dist/chunks/{button-Ckftvc2h.js → button-zSDA7FRw.js} +8 -8
- package/dist/chunks/{button-Ckftvc2h.js.map → button-zSDA7FRw.js.map} +1 -1
- package/dist/chunks/{button.recipe-DbFAOebT.js → button.recipe-DzOS_Bqm.js} +2 -2
- package/dist/chunks/{button.recipe-DbFAOebT.js.map → button.recipe-DzOS_Bqm.js.map} +1 -1
- package/dist/chunks/{calendar-Bz_gsrGo.js → calendar-BIB7Bqqn.js} +22 -22
- package/dist/chunks/{calendar-Bz_gsrGo.js.map → calendar-BIB7Bqqn.js.map} +1 -1
- package/dist/chunks/{calendar-Cs2rHplP.js → calendar-DRE_oZOp.js} +2 -2
- package/dist/chunks/{calendar-Cs2rHplP.js.map → calendar-DRE_oZOp.js.map} +1 -1
- package/dist/chunks/{calendar.recipe-RdPylgdo.js → calendar.recipe-B2sMokBn.js} +2 -2
- package/dist/chunks/{calendar.recipe-RdPylgdo.js.map → calendar.recipe-B2sMokBn.js.map} +1 -1
- package/dist/chunks/{card-B0BsL4ol.js → card-DAC7L3R0.js} +2 -2
- package/dist/chunks/{card-B0BsL4ol.js.map → card-DAC7L3R0.js.map} +1 -1
- package/dist/chunks/{card-CQwHrkIF.js → card-DSC-PYAU.js} +9 -9
- package/dist/chunks/{card-CQwHrkIF.js.map → card-DSC-PYAU.js.map} +1 -1
- package/dist/chunks/{checkbox-Cwb_QZjZ.js → checkbox-B1w8RLi0.js} +2 -2
- package/dist/chunks/{checkbox-Cwb_QZjZ.js.map → checkbox-B1w8RLi0.js.map} +1 -1
- package/dist/chunks/{checkbox-C5jtHkVZ.js → checkbox-CJQ1O9W5.js} +11 -11
- package/dist/chunks/{checkbox-C5jtHkVZ.js.map → checkbox-CJQ1O9W5.js.map} +1 -1
- package/dist/chunks/{combobox-BACFWgP3.js → combobox-DLABf790.js} +2 -2
- package/dist/chunks/{combobox-BACFWgP3.js.map → combobox-DLABf790.js.map} +1 -1
- package/dist/chunks/{combobox--lHdni2Z.js → combobox-ZcHPms3T.js} +23 -23
- package/dist/chunks/{combobox--lHdni2Z.js.map → combobox-ZcHPms3T.js.map} +1 -1
- package/dist/chunks/{combobox.recipe-KVsma6zb.js → combobox.recipe-BIn4O0NT.js} +43 -18
- package/dist/chunks/{combobox.recipe-KVsma6zb.js.map → combobox.recipe-BIn4O0NT.js.map} +1 -1
- package/dist/chunks/combobox.recipe-Da71Y6ye.js +2 -0
- package/dist/chunks/{combobox.recipe-BzaPWi66.js.map → combobox.recipe-Da71Y6ye.js.map} +1 -1
- package/dist/chunks/{context-CgP0qpkX.js → context-CI0Y3O6x.js} +4 -4
- package/dist/chunks/{context-CgP0qpkX.js.map → context-CI0Y3O6x.js.map} +1 -1
- package/dist/chunks/{date-input-9oZMESC7.js → date-input-DnjW061n.js} +2 -2
- package/dist/chunks/{date-input-9oZMESC7.js.map → date-input-DnjW061n.js.map} +1 -1
- package/dist/chunks/{date-input-DK9U-Nh8.js → date-input-tzOJ2b9K.js} +5 -5
- package/dist/chunks/{date-input-DK9U-Nh8.js.map → date-input-tzOJ2b9K.js.map} +1 -1
- package/dist/chunks/{date-input.recipe-BcsevQtW.js → date-input.recipe-BtWEmJGK.js} +2 -2
- package/dist/chunks/{date-input.recipe-BcsevQtW.js.map → date-input.recipe-BtWEmJGK.js.map} +1 -1
- package/dist/chunks/date-picker-BOJn_b_Y.js +2 -0
- package/dist/chunks/{date-picker-CwXGnIiO.js.map → date-picker-BOJn_b_Y.js.map} +1 -1
- package/dist/chunks/{date-picker-ShPOqwXi.js → date-picker-npElUeVw.js} +54 -58
- package/dist/chunks/{date-picker-ShPOqwXi.js.map → date-picker-npElUeVw.js.map} +1 -1
- package/dist/chunks/{date-picker.recipe-BJ79OJaw.js → date-picker.recipe-Dy6NmKHA.js} +2 -2
- package/dist/chunks/{date-picker.recipe-BJ79OJaw.js.map → date-picker.recipe-Dy6NmKHA.js.map} +1 -1
- package/dist/chunks/focusSafely-DKDcdc1Z.js +36 -0
- package/dist/chunks/{focusSafely-DuMeO0J4.js.map → focusSafely-DKDcdc1Z.js.map} +1 -1
- package/dist/chunks/focusSafely-DTxIMq-P.js +2 -0
- package/dist/chunks/{focusSafely-D_uW2Kp-.js.map → focusSafely-DTxIMq-P.js.map} +1 -1
- package/dist/chunks/{form-field-BUoO6HEy.js → form-field-CblzjGEw.js} +2 -2
- package/dist/chunks/{form-field-BUoO6HEy.js.map → form-field-CblzjGEw.js.map} +1 -1
- package/dist/chunks/{form-field-Dr8lL5SU.js → form-field-D_qT2LNU.js} +8 -8
- package/dist/chunks/{form-field-Dr8lL5SU.js.map → form-field-D_qT2LNU.js.map} +1 -1
- package/dist/chunks/{grid-CLVDMJAz.js → grid-CugcJxRP.js} +2 -2
- package/dist/chunks/{grid-CLVDMJAz.js.map → grid-CugcJxRP.js.map} +1 -1
- package/dist/chunks/{icon-CjRXcxB9.js → icon-BFNYuilh.js} +3 -3
- package/dist/chunks/{icon-CjRXcxB9.js.map → icon-BFNYuilh.js.map} +1 -1
- package/dist/chunks/{icon-button-1V59UrF-.js → icon-button-DVBfoOHT.js} +2 -2
- package/dist/chunks/{icon-button-1V59UrF-.js.map → icon-button-DVBfoOHT.js.map} +1 -1
- package/dist/chunks/{icon-button-CE-LnFNq.js → icon-button-Ds1Wzyc1.js} +2 -2
- package/dist/chunks/{icon-button-CE-LnFNq.js.map → icon-button-Ds1Wzyc1.js.map} +1 -1
- package/dist/chunks/{link-CCDnA-Z-.js → link-BfHXJGo9.js} +2 -2
- package/dist/chunks/{link-CCDnA-Z-.js.map → link-BfHXJGo9.js.map} +1 -1
- package/dist/chunks/{link-1lfvUDKX.js → link-CE73eHS0.js} +6 -6
- package/dist/chunks/{link-1lfvUDKX.js.map → link-CE73eHS0.js.map} +1 -1
- package/dist/chunks/{link.recipe-CbFF3IUG.js → link.recipe-Ba2by0OG.js} +2 -2
- package/dist/chunks/{link.recipe-CbFF3IUG.js.map → link.recipe-Ba2by0OG.js.map} +1 -1
- package/dist/chunks/{loading-spinner-CJh2luQX.js → loading-spinner-AhRrVHKd.js} +6 -6
- package/dist/chunks/{loading-spinner-CJh2luQX.js.map → loading-spinner-AhRrVHKd.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-urU2Yczu.js → make-element-focusable-_kgqlXGc.js} +4 -4
- package/dist/chunks/{make-element-focusable-urU2Yczu.js.map → make-element-focusable-_kgqlXGc.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-ByC0LOwU.js → make-element-focusable-ijZC9F3C.js} +2 -2
- package/dist/chunks/{make-element-focusable-ByC0LOwU.js.map → make-element-focusable-ijZC9F3C.js.map} +1 -1
- package/dist/chunks/{mergeProps-DAjoWNOq.js → mergeProps-tCFA9wZ1.js} +3 -3
- package/dist/chunks/{mergeProps-DAjoWNOq.js.map → mergeProps-tCFA9wZ1.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-B8v-mx89.js → multiline-text-input-C8yclL-x.js} +2 -2
- package/dist/chunks/{multiline-text-input-B8v-mx89.js.map → multiline-text-input-C8yclL-x.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-BS9tsQnR.js → multiline-text-input-D6P_NVi6.js} +7 -7
- package/dist/chunks/{multiline-text-input-BS9tsQnR.js.map → multiline-text-input-D6P_NVi6.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-jZPLt7_j.js → nimbus-provider-CTg-F7UD.js} +2 -2
- package/dist/chunks/{nimbus-provider-jZPLt7_j.js.map → nimbus-provider-CTg-F7UD.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-CFSRgGKt.js → nimbus-provider-h_Fu03Zk.js} +39 -39
- package/dist/chunks/{nimbus-provider-CFSRgGKt.js.map → nimbus-provider-h_Fu03Zk.js.map} +1 -1
- package/dist/chunks/{number-input-BFA-uYaI.js → number-input-BTbzj3aN.js} +16 -16
- package/dist/chunks/{number-input-BFA-uYaI.js.map → number-input-BTbzj3aN.js.map} +1 -1
- package/dist/chunks/{number-input-CDaEIN66.js → number-input-D7D2ahNb.js} +2 -2
- package/dist/chunks/{number-input-CDaEIN66.js.map → number-input-D7D2ahNb.js.map} +1 -1
- package/dist/chunks/{number-input.recipe-CbLyhXgE.js → number-input.recipe-8gbsGnLJ.js} +2 -2
- package/dist/chunks/{number-input.recipe-CbLyhXgE.js.map → number-input.recipe-8gbsGnLJ.js.map} +1 -1
- package/dist/chunks/{password-input-CYZ0QR0V.js → password-input-BD5GZKX7.js} +2 -2
- package/dist/chunks/{password-input-CYZ0QR0V.js.map → password-input-BD5GZKX7.js.map} +1 -1
- package/dist/chunks/{password-input-CEUQjqeT.js → password-input-fiypX-6w.js} +5 -5
- package/dist/chunks/{password-input-CEUQjqeT.js.map → password-input-fiypX-6w.js.map} +1 -1
- package/dist/chunks/{radio-input-cone4teU.js → radio-input-4v_6tT94.js} +18 -18
- package/dist/chunks/{radio-input-cone4teU.js.map → radio-input-4v_6tT94.js.map} +1 -1
- package/dist/chunks/{radio-input-5mFGE9qS.js → radio-input-B2IVmel0.js} +2 -2
- package/dist/chunks/{radio-input-5mFGE9qS.js.map → radio-input-B2IVmel0.js.map} +1 -1
- package/dist/chunks/{radio-input.recipe-QYiFg_Kf.js → radio-input.recipe-CM9R2ilP.js} +2 -2
- package/dist/chunks/{radio-input.recipe-QYiFg_Kf.js.map → radio-input.recipe-CM9R2ilP.js.map} +1 -1
- package/dist/chunks/{scrollIntoView-Dtwi5Vrc.js → scrollIntoView-CXOsfZIS.js} +2 -2
- package/dist/chunks/{scrollIntoView-Dtwi5Vrc.js.map → scrollIntoView-CXOsfZIS.js.map} +1 -1
- package/dist/chunks/{select-CSp1HFJF.js → select-7cuL-dmI.js} +2 -2
- package/dist/chunks/{select-CSp1HFJF.js.map → select-7cuL-dmI.js.map} +1 -1
- package/dist/chunks/{select-BZ2LnuaW.js → select-DH4OUn_y.js} +22 -22
- package/dist/chunks/{select-BZ2LnuaW.js.map → select-DH4OUn_y.js.map} +1 -1
- package/dist/chunks/{select.recipe-DS5ZRkug.js → select.recipe-CXWsUldF.js} +2 -2
- package/dist/chunks/{select.recipe-DS5ZRkug.js.map → select.recipe-CXWsUldF.js.map} +1 -1
- package/dist/chunks/{simple-grid-D6PoDK0-.js → simple-grid-CFOP9g2P.js} +2 -2
- package/dist/chunks/{simple-grid-D6PoDK0-.js.map → simple-grid-CFOP9g2P.js.map} +1 -1
- package/dist/chunks/{switch-CZji_hBH.js → switch-CnbvTSF9.js} +2 -2
- package/dist/chunks/{switch-CZji_hBH.js.map → switch-CnbvTSF9.js.map} +1 -1
- package/dist/chunks/{switch-QvuLHJL-.js → switch-DdmbHa5R.js} +11 -11
- package/dist/chunks/{switch-QvuLHJL-.js.map → switch-DdmbHa5R.js.map} +1 -1
- package/dist/chunks/{switch.recipe-D3gb3Xj_.js → switch.recipe-CWOjEnIy.js} +2 -2
- package/dist/chunks/{switch.recipe-D3gb3Xj_.js.map → switch.recipe-CWOjEnIy.js.map} +1 -1
- package/dist/chunks/{tag-group-v87SYIPj.js → tag-group-B6w2MEyf.js} +2 -2
- package/dist/chunks/{tag-group-v87SYIPj.js.map → tag-group-B6w2MEyf.js.map} +1 -1
- package/dist/chunks/{tag-group-JxvggHdo.js → tag-group-CdLfw2gL.js} +21 -21
- package/dist/chunks/{tag-group-JxvggHdo.js.map → tag-group-CdLfw2gL.js.map} +1 -1
- package/dist/chunks/{text-BTD3oGaQ.js → text-MzQiG_1j.js} +2 -2
- package/dist/chunks/{text-BTD3oGaQ.js.map → text-MzQiG_1j.js.map} +1 -1
- package/dist/chunks/{text-input-Ov6DSJhs.js → text-input-CtJ2FHJ3.js} +2 -2
- package/dist/chunks/{text-input-Ov6DSJhs.js.map → text-input-CtJ2FHJ3.js.map} +1 -1
- package/dist/chunks/{text-input-CpABYE1g.js → text-input-SYXEV4sT.js} +5 -5
- package/dist/chunks/{text-input-CpABYE1g.js.map → text-input-SYXEV4sT.js.map} +1 -1
- package/dist/chunks/{text-input.recipe-CGpq33Pp.js → text-input.recipe-KNoUuq-g.js} +2 -2
- package/dist/chunks/{text-input.recipe-CGpq33Pp.js.map → text-input.recipe-KNoUuq-g.js.map} +1 -1
- package/dist/chunks/{time-input-DS6RgF12.js → time-input-DCJYjKRY.js} +5 -5
- package/dist/chunks/{time-input-DS6RgF12.js.map → time-input-DCJYjKRY.js.map} +1 -1
- package/dist/chunks/{time-input-BIUdp4gX.js → time-input-sjvN5iZ-.js} +2 -2
- package/dist/chunks/{time-input-BIUdp4gX.js.map → time-input-sjvN5iZ-.js.map} +1 -1
- package/dist/chunks/toggle-button-group-D-3UQLdL.js +2 -0
- package/dist/chunks/{toggle-button-group-BdLaFCWe.js.map → toggle-button-group-D-3UQLdL.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-0a-aeCiH.js → toggle-button-group-bjkXTCxu.js} +76 -66
- package/dist/chunks/{toggle-button-group-0a-aeCiH.js.map → toggle-button-group-bjkXTCxu.js.map} +1 -1
- package/dist/chunks/{tooltip-_9ZfCa2D.js → tooltip-C-K5iatf.js} +2 -2
- package/dist/chunks/{tooltip-_9ZfCa2D.js.map → tooltip-C-K5iatf.js.map} +1 -1
- package/dist/chunks/{tooltip-BdwdWMCL.js → tooltip-DvoZxHgo.js} +10 -10
- package/dist/chunks/{tooltip-BdwdWMCL.js.map → tooltip-DvoZxHgo.js.map} +1 -1
- package/dist/chunks/{tooltip.recipe-D9fYIQZz.js → tooltip.recipe-B9-7OFCi.js} +2 -2
- package/dist/chunks/{tooltip.recipe-D9fYIQZz.js.map → tooltip.recipe-B9-7OFCi.js.map} +1 -1
- package/dist/chunks/{useButton-BRqxk71F.js → useButton-BZrUUsJ0.js} +2 -2
- package/dist/chunks/{useButton-BRqxk71F.js.map → useButton-BZrUUsJ0.js.map} +1 -1
- package/dist/chunks/{useButton-CGSIlDH9.js → useButton-C5ATfvOf.js} +4 -4
- package/dist/chunks/{useButton-CGSIlDH9.js.map → useButton-C5ATfvOf.js.map} +1 -1
- package/dist/chunks/{useCollator-PO0ZNDFD.js → useCollator-BbJYfLGN.js} +2 -2
- package/dist/chunks/{useCollator-PO0ZNDFD.js.map → useCollator-BbJYfLGN.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-CZ3YJIiV.js → useDateFormatter-5Oe96jpR.js} +3 -3
- package/dist/chunks/{useDateFormatter-CZ3YJIiV.js.map → useDateFormatter-5Oe96jpR.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-BYTqyfPM.js → useDateFormatter-6FAMsnNT.js} +2 -2
- package/dist/chunks/{useDateFormatter-BYTqyfPM.js.map → useDateFormatter-6FAMsnNT.js.map} +1 -1
- package/dist/chunks/{useEvent-9hDa8zoA.js → useEvent-COOhq9E7.js} +2 -2
- package/dist/chunks/{useEvent-9hDa8zoA.js.map → useEvent-COOhq9E7.js.map} +1 -1
- package/dist/chunks/{useField-3jug3XBb.js → useField-BY58-2Ft.js} +3 -3
- package/dist/chunks/{useField-3jug3XBb.js.map → useField-BY58-2Ft.js.map} +1 -1
- package/dist/chunks/useFocus-C1BtlMbo.js +2 -0
- package/dist/chunks/{useFocus-CP2rlXSg.js.map → useFocus-C1BtlMbo.js.map} +1 -1
- package/dist/chunks/useFocus-CuXxpIRa.js +176 -0
- package/dist/chunks/{useFocus-mfjoACQ_.js.map → useFocus-CuXxpIRa.js.map} +1 -1
- package/dist/chunks/{useFocusRing-C4z9NtLP.js → useFocusRing-CYHdvund.js} +2 -2
- package/dist/chunks/{useFocusRing-C4z9NtLP.js.map → useFocusRing-CYHdvund.js.map} +1 -1
- package/dist/chunks/{useFocusRing-C8yOnkHj.js → useFocusRing-DNviWqC5.js} +3 -3
- package/dist/chunks/{useFocusRing-C8yOnkHj.js.map → useFocusRing-DNviWqC5.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-CLd9itwe.js → useFocusWithin-AKRo9mz0.js} +2 -2
- package/dist/chunks/{useFocusWithin-CLd9itwe.js.map → useFocusWithin-AKRo9mz0.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-BENrOz43.js → useFocusWithin-hB6WzPnG.js} +2 -2
- package/dist/chunks/{useFocusWithin-BENrOz43.js.map → useFocusWithin-hB6WzPnG.js.map} +1 -1
- package/dist/chunks/{useFocusable-IwGfkXQG.js → useFocusable-DBEQCS1T.js} +4 -4
- package/dist/chunks/{useFocusable-IwGfkXQG.js.map → useFocusable-DBEQCS1T.js.map} +1 -1
- package/dist/chunks/{useFocusable-C7jAQfqU.js → useFocusable-DbCayKl8.js} +2 -2
- package/dist/chunks/{useFocusable-C7jAQfqU.js.map → useFocusable-DbCayKl8.js.map} +1 -1
- package/dist/chunks/{useFormReset-CzGCrdxu.js → useFormReset-BgCb2h6r.js} +2 -2
- package/dist/chunks/{useFormReset-CzGCrdxu.js.map → useFormReset-BgCb2h6r.js.map} +1 -1
- package/dist/chunks/{useFormValidation-BSXga2hX.js → useFormValidation-CbunG7dK.js} +2 -2
- package/dist/chunks/{useFormValidation-BSXga2hX.js.map → useFormValidation-CbunG7dK.js.map} +1 -1
- package/dist/chunks/{useFormValidation-BcDTI6Mp.js → useFormValidation-DoG8pVu2.js} +4 -4
- package/dist/chunks/{useFormValidation-BcDTI6Mp.js.map → useFormValidation-DoG8pVu2.js.map} +1 -1
- package/dist/chunks/{useHover-CbdI4C89.js → useHover-3Zee5Ds5.js} +2 -2
- package/dist/chunks/{useHover-CbdI4C89.js.map → useHover-3Zee5Ds5.js.map} +1 -1
- package/dist/chunks/{useHover-ByIffPdS.js → useHover-BxTJz4Qm.js} +2 -2
- package/dist/chunks/{useHover-ByIffPdS.js.map → useHover-BxTJz4Qm.js.map} +1 -1
- package/dist/chunks/{useLabel-Dd6M1Y4b.js → useLabel-lLz9KH79.js} +3 -3
- package/dist/chunks/{useLabel-Dd6M1Y4b.js.map → useLabel-lLz9KH79.js.map} +1 -1
- package/dist/chunks/{useLabels-B1BLA0b7.js → useLabels-CrNu-inr.js} +2 -2
- package/dist/chunks/{useLabels-B1BLA0b7.js.map → useLabels-CrNu-inr.js.map} +1 -1
- package/dist/chunks/{useLocalizedStringFormatter-JGrQYmnh.js → useLocalizedStringFormatter-D1iIJE39.js} +3 -3
- package/dist/chunks/{useLocalizedStringFormatter-JGrQYmnh.js.map → useLocalizedStringFormatter-D1iIJE39.js.map} +1 -1
- package/dist/chunks/{useNumberFormatter-Dx-esBDc.js → useNumberFormatter-C8xwHQXb.js} +2 -2
- package/dist/chunks/{useNumberFormatter-Dx-esBDc.js.map → useNumberFormatter-C8xwHQXb.js.map} +1 -1
- package/dist/chunks/{usePress-C9YKhG_e.js → usePress-CGAMyl6q.js} +2 -2
- package/dist/chunks/{usePress-C9YKhG_e.js.map → usePress-CGAMyl6q.js.map} +1 -1
- package/dist/chunks/{usePress-dJvNd3G7.js → usePress-Dk0M2Js8.js} +7 -7
- package/dist/chunks/{usePress-dJvNd3G7.js.map → usePress-Dk0M2Js8.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-DovbyYzZ.js → useSingleSelectListState--jan8NiD.js} +6 -6
- package/dist/chunks/{useSingleSelectListState-DovbyYzZ.js.map → useSingleSelectListState--jan8NiD.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-CwUhrKQb.js → useSingleSelectListState-DqtAmt8K.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-CwUhrKQb.js.map → useSingleSelectListState-DqtAmt8K.js.map} +1 -1
- package/dist/chunks/{useSpinButton-UFcBxg8e.js → useSpinButton-CQ8U5KZS.js} +2 -2
- package/dist/chunks/{useSpinButton-UFcBxg8e.js.map → useSpinButton-CQ8U5KZS.js.map} +1 -1
- package/dist/chunks/{useSpinButton-D16epD7I.js → useSpinButton-DQzgsW5H.js} +5 -5
- package/dist/chunks/{useSpinButton-D16epD7I.js.map → useSpinButton-DQzgsW5H.js.map} +1 -1
- package/dist/chunks/{useTextField-DFfK-BZg.js → useTextField-CNy4kFwI.js} +7 -7
- package/dist/chunks/{useTextField-DFfK-BZg.js.map → useTextField-CNy4kFwI.js.map} +1 -1
- package/dist/chunks/{useTextField-lejiPfpS.js → useTextField-Dkkh1L-K.js} +2 -2
- package/dist/chunks/{useTextField-lejiPfpS.js.map → useTextField-Dkkh1L-K.js.map} +1 -1
- package/dist/chunks/{useToggle-BUU7amte.js → useToggle-BEYjmALQ.js} +2 -2
- package/dist/chunks/{useToggle-BUU7amte.js.map → useToggle-BEYjmALQ.js.map} +1 -1
- package/dist/chunks/{useToggle-Cp-w42gr.js → useToggle-Cf0OB-T-.js} +5 -5
- package/dist/chunks/{useToggle-Cp-w42gr.js.map → useToggle-Cf0OB-T-.js.map} +1 -1
- package/dist/chunks/{utils-DTmE9QvG.js → utils-7n9JR4ke.js} +3 -3
- package/dist/chunks/{utils-DTmE9QvG.js.map → utils-7n9JR4ke.js.map} +1 -1
- package/dist/chunks/{utils-BzPwFwlw.js → utils-D6ZV0jyp.js} +2 -2
- package/dist/chunks/{utils-BzPwFwlw.js.map → utils-D6ZV0jyp.js.map} +1 -1
- package/dist/chunks/{utils-wW2ZswvI.js → utils-DSssdw4e.js} +15 -17
- package/dist/chunks/{utils-wW2ZswvI.js.map → utils-DSssdw4e.js.map} +1 -1
- package/dist/chunks/{visually-hidden-T2B120j4.js → visually-hidden-7U4LGJiI.js} +2 -2
- package/dist/chunks/{visually-hidden-T2B120j4.js.map → visually-hidden-7U4LGJiI.js.map} +1 -1
- package/dist/chunks/{visually-hidden-Qd_t4hAG.js → visually-hidden-CRnniCks.js} +2 -2
- package/dist/chunks/{visually-hidden-Qd_t4hAG.js.map → visually-hidden-CRnniCks.js.map} +1 -1
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.cjs +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/box.cjs +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/code.cjs +1 -1
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +33 -33
- package/dist/components/date-input.cjs +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/flex.cjs +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/grid.cjs +1 -1
- package/dist/components/grid.es.js +1 -1
- package/dist/components/heading.cjs +1 -1
- package/dist/components/icon-button.cjs +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon.cjs +1 -1
- package/dist/components/icon.es.js +1 -1
- package/dist/components/image.cjs +1 -1
- package/dist/components/kbd.cjs +1 -1
- package/dist/components/link.cjs +1 -1
- package/dist/components/link.es.js +1 -1
- package/dist/components/list.cjs +1 -1
- package/dist/components/loading-spinner.cjs +1 -1
- package/dist/components/loading-spinner.es.js +1 -1
- package/dist/components/multiline-text-input.cjs +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/simple-grid.cjs +1 -1
- package/dist/components/simple-grid.es.js +1 -1
- package/dist/components/stack.cjs +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/table.cjs +1 -1
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.es.js +1 -1
- package/dist/components/time-input.cjs +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button-group.cjs +1 -1
- package/dist/components/toggle-button-group.es.js +1 -1
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.es.js +2 -2
- package/dist/components/visually-hidden.cjs +1 -1
- package/dist/components/visually-hidden.es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +84 -93
- package/dist/index.es.js.map +1 -1
- package/dist/setup-jsdom-polyfills.cjs +1 -1
- package/dist/setup-jsdom-polyfills.cjs.map +1 -1
- package/dist/setup-jsdom-polyfills.es.js +2 -22
- package/dist/setup-jsdom-polyfills.es.js.map +1 -1
- package/package.json +4 -3
- package/dist/chunks/Hidden-BxRZGdEW.js +0 -2
- package/dist/chunks/ListBox-CHhUqc7T.js +0 -18
- package/dist/chunks/ListBox-CHhUqc7T.js.map +0 -1
- package/dist/chunks/ListBox-DH3lufv2.js.map +0 -1
- package/dist/chunks/RSPContexts-CxXY5Uko.js +0 -11
- package/dist/chunks/RSPContexts-qzadeFSO.js +0 -2
- package/dist/chunks/combobox.recipe-BzaPWi66.js +0 -2
- package/dist/chunks/date-picker-CwXGnIiO.js +0 -2
- package/dist/chunks/focusSafely-D_uW2Kp-.js +0 -58
- package/dist/chunks/focusSafely-DuMeO0J4.js +0 -2
- package/dist/chunks/toggle-button-group-BdLaFCWe.js +0 -2
- package/dist/chunks/useFocus-CP2rlXSg.js +0 -2
- package/dist/chunks/useFocus-mfjoACQ_.js +0 -184
|
@@ -1,72 +1,51 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { $ as
|
|
3
|
-
import { b as
|
|
4
|
-
import { flushSync as
|
|
5
|
-
import { b as
|
|
6
|
-
import { $ as
|
|
7
|
-
import { d as
|
|
8
|
-
import { $ as
|
|
9
|
-
import { a as
|
|
10
|
-
import { $ as
|
|
11
|
-
import { a as
|
|
12
|
-
import { $ as
|
|
13
|
-
import { $ as
|
|
14
|
-
import { a as
|
|
15
|
-
import { $ as
|
|
16
|
-
import { $ as
|
|
17
|
-
import { i as
|
|
18
|
-
import { $ as
|
|
19
|
-
import { $ as
|
|
20
|
-
import { a as
|
|
21
|
-
import { $ as
|
|
22
|
-
import { $ as
|
|
23
|
-
import { $ as
|
|
24
|
-
import { $ as
|
|
25
|
-
import { $ as
|
|
26
|
-
import { $ as
|
|
27
|
-
import { $ as
|
|
28
|
-
import { a as
|
|
29
|
-
import { $ as
|
|
30
|
-
import { $ as
|
|
31
|
-
import { $ as
|
|
32
|
-
function
|
|
33
|
-
const t =
|
|
34
|
-
|
|
1
|
+
import m, { useRef as P, version as en, useEffect as Y, useMemo as T, cloneElement as ct, forwardRef as ne, useContext as R, createContext as O, useCallback as J, useState as te, isValidElement as Cl } from "react";
|
|
2
|
+
import { $ as ce, b as ft, c as ht, d as pt, a as oe, e as fe, f as vt, g as El } from "./utils-7n9JR4ke.js";
|
|
3
|
+
import { b as Pl, $ as kl } from "./Hidden-CeBYiBUb.js";
|
|
4
|
+
import { flushSync as Il, createPortal as Fl } from "react-dom";
|
|
5
|
+
import { b as We } from "./useFocusable-DBEQCS1T.js";
|
|
6
|
+
import { $ as yt } from "./SSRProvider-eIEwc-2s.js";
|
|
7
|
+
import { d as Ee, b as ee, $ as W, c as re, a as _e, e as Ml } from "./mergeProps-tCFA9wZ1.js";
|
|
8
|
+
import { $ as bt } from "./Text-DOcU1ycg.js";
|
|
9
|
+
import { a as Pe } from "./Input-0vJb_5Js.js";
|
|
10
|
+
import { $ as Tl, a as Ll, b as Al } from "./Form-DdaqVtM4.js";
|
|
11
|
+
import { a as Rl } from "./TextArea-Q-NI2yW5.js";
|
|
12
|
+
import { $ as se } from "./filterDOMProps-D6KHYVBX.js";
|
|
13
|
+
import { $ as Bl } from "./useTextField-CNy4kFwI.js";
|
|
14
|
+
import { a as Vl, b as Be, i as ke, e as Ie } from "./utils-DSssdw4e.js";
|
|
15
|
+
import { $ as Ol } from "./useLabels-CrNu-inr.js";
|
|
16
|
+
import { $ as he } from "./useObjectRef-CaJ5pgjX.js";
|
|
17
|
+
import { i as gt, o as Nl, d as Fe, g as zl, $ as Ge } from "./useFocus-CuXxpIRa.js";
|
|
18
|
+
import { $ as Ul } from "./useLocalizedStringFormatter-D1iIJE39.js";
|
|
19
|
+
import { $ as $t } from "./useControlledState-u436Wbp1.js";
|
|
20
|
+
import { a as xn, $ as je } from "./getScrollParent-DE66eQI-.js";
|
|
21
|
+
import { $ as mt, a as xt, e as Hl, b as ql } from "./usePress-Dk0M2Js8.js";
|
|
22
|
+
import { $ as St } from "./useHover-3Zee5Ds5.js";
|
|
23
|
+
import { $ as Wl, b as _l, a as Ye } from "./scrollIntoView-CXOsfZIS.js";
|
|
24
|
+
import { $ as Me } from "./focusSafely-DKDcdc1Z.js";
|
|
25
|
+
import { $ as Gl } from "./useFocusWithin-AKRo9mz0.js";
|
|
26
|
+
import { $ as jl } from "./useLabel-lLz9KH79.js";
|
|
27
|
+
import { $ as ae } from "./useEvent-COOhq9E7.js";
|
|
28
|
+
import { a as Yl, c as Jl } from "./FocusScope-CsXy0kJw.js";
|
|
29
|
+
import { $ as Kt } from "./context-CI0Y3O6x.js";
|
|
30
|
+
import { $ as Dt } from "./useCollator-BbJYfLGN.js";
|
|
31
|
+
import { $ as Xl } from "./useFocusRing-DNviWqC5.js";
|
|
32
|
+
function Je(n, e) {
|
|
33
|
+
const t = P(!0), l = P(null);
|
|
34
|
+
Ee(() => (t.current = !0, () => {
|
|
35
35
|
t.current = !1;
|
|
36
|
-
}), []),
|
|
36
|
+
}), []), Ee(() => {
|
|
37
37
|
t.current ? t.current = !1 : (!l.current || e.some((i, o) => !Object.is(i, l[o]))) && n(), l.current = e;
|
|
38
38
|
}, e);
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
let { collection: t, onLoadMore: l, scrollOffset: i = 1 } = n, o = E(null), r = ee((s) => {
|
|
42
|
-
for (let a of s)
|
|
43
|
-
a.isIntersecting && l && l();
|
|
44
|
-
});
|
|
45
|
-
he(() => (e.current && (o.current = new IntersectionObserver(r, {
|
|
46
|
-
root: ql(e == null ? void 0 : e.current),
|
|
47
|
-
rootMargin: `0px ${100 * i}% ${100 * i}% ${100 * i}%`
|
|
48
|
-
}), o.current.observe(e.current)), () => {
|
|
49
|
-
o.current && o.current.disconnect();
|
|
50
|
-
}), [
|
|
51
|
-
t,
|
|
52
|
-
r,
|
|
53
|
-
e,
|
|
54
|
-
i
|
|
55
|
-
]);
|
|
56
|
-
}
|
|
57
|
-
function ti(n) {
|
|
58
|
-
const e = Cl.split(".");
|
|
59
|
-
return parseInt(e[0], 10) >= 19 ? n : n ? "true" : void 0;
|
|
60
|
-
}
|
|
61
|
-
const Ct = "react-aria-clear-focus", Le = "react-aria-focus";
|
|
40
|
+
const wt = "react-aria-clear-focus", Te = "react-aria-focus";
|
|
62
41
|
function Q(n) {
|
|
63
|
-
return
|
|
42
|
+
return gt() ? n.metaKey : n.ctrlKey;
|
|
64
43
|
}
|
|
65
|
-
const
|
|
66
|
-
function
|
|
67
|
-
let { isDisabled: e, onLongPressStart: t, onLongPressEnd: l, onLongPress: i, threshold: o =
|
|
68
|
-
const s =
|
|
69
|
-
let { addGlobalListener: a, removeGlobalListener: c } =
|
|
44
|
+
const Zl = 500;
|
|
45
|
+
function Ql(n) {
|
|
46
|
+
let { isDisabled: e, onLongPressStart: t, onLongPressEnd: l, onLongPress: i, threshold: o = Zl, accessibilityDescription: r } = n;
|
|
47
|
+
const s = P(void 0);
|
|
48
|
+
let { addGlobalListener: a, removeGlobalListener: c } = Vl(), { pressProps: v } = mt({
|
|
70
49
|
isDisabled: e,
|
|
71
50
|
onPressStart(d) {
|
|
72
51
|
if (d.continuePropagation(), (d.pointerType === "mouse" || d.pointerType === "touch") && (t && t({
|
|
@@ -75,19 +54,19 @@ function ii(n) {
|
|
|
75
54
|
}), s.current = setTimeout(() => {
|
|
76
55
|
d.target.dispatchEvent(new PointerEvent("pointercancel", {
|
|
77
56
|
bubbles: !0
|
|
78
|
-
})),
|
|
57
|
+
})), Be(d.target).activeElement !== d.target && ke(d.target), i && i({
|
|
79
58
|
...d,
|
|
80
59
|
type: "longpress"
|
|
81
60
|
}), s.current = void 0;
|
|
82
61
|
}, o), d.pointerType === "touch")) {
|
|
83
|
-
let
|
|
62
|
+
let y = (b) => {
|
|
84
63
|
b.preventDefault();
|
|
85
64
|
};
|
|
86
|
-
a(d.target, "contextmenu",
|
|
65
|
+
a(d.target, "contextmenu", y, {
|
|
87
66
|
once: !0
|
|
88
67
|
}), a(window, "pointerup", () => {
|
|
89
68
|
setTimeout(() => {
|
|
90
|
-
c(d.target, "contextmenu",
|
|
69
|
+
c(d.target, "contextmenu", y);
|
|
91
70
|
}, 30);
|
|
92
71
|
}, {
|
|
93
72
|
once: !0
|
|
@@ -100,16 +79,16 @@ function ii(n) {
|
|
|
100
79
|
type: "longpressend"
|
|
101
80
|
});
|
|
102
81
|
}
|
|
103
|
-
}),
|
|
82
|
+
}), h = Wl(i && !e ? r : void 0);
|
|
104
83
|
return {
|
|
105
|
-
longPressProps:
|
|
84
|
+
longPressProps: W(v, h)
|
|
106
85
|
};
|
|
107
86
|
}
|
|
108
|
-
function
|
|
109
|
-
let e =
|
|
110
|
-
e !== n && (e &&
|
|
87
|
+
function Ve(n) {
|
|
88
|
+
let e = ei(Be(n));
|
|
89
|
+
e !== n && (e && Le(e, n), n && Ct(n, e));
|
|
111
90
|
}
|
|
112
|
-
function
|
|
91
|
+
function Le(n, e) {
|
|
113
92
|
n.dispatchEvent(new FocusEvent("blur", {
|
|
114
93
|
relatedTarget: e
|
|
115
94
|
})), n.dispatchEvent(new FocusEvent("focusout", {
|
|
@@ -117,7 +96,7 @@ function Ae(n, e) {
|
|
|
117
96
|
relatedTarget: e
|
|
118
97
|
}));
|
|
119
98
|
}
|
|
120
|
-
function
|
|
99
|
+
function Ct(n, e) {
|
|
121
100
|
n.dispatchEvent(new FocusEvent("focus", {
|
|
122
101
|
relatedTarget: e
|
|
123
102
|
})), n.dispatchEvent(new FocusEvent("focusin", {
|
|
@@ -125,42 +104,42 @@ function Et(n, e) {
|
|
|
125
104
|
relatedTarget: e
|
|
126
105
|
}));
|
|
127
106
|
}
|
|
128
|
-
function
|
|
129
|
-
let e =
|
|
107
|
+
function ei(n) {
|
|
108
|
+
let e = Ie(n), t = e == null ? void 0 : e.getAttribute("aria-activedescendant");
|
|
130
109
|
return t && n.getElementById(t) || e;
|
|
131
110
|
}
|
|
132
|
-
const
|
|
133
|
-
function
|
|
111
|
+
const Oe = /* @__PURE__ */ new WeakMap();
|
|
112
|
+
function ti(n) {
|
|
134
113
|
return typeof n == "string" ? n.replace(/\s*/g, "") : "" + n;
|
|
135
114
|
}
|
|
136
|
-
function
|
|
137
|
-
let t =
|
|
115
|
+
function li(n, e) {
|
|
116
|
+
let t = Oe.get(n);
|
|
138
117
|
if (!t) throw new Error("Unknown list");
|
|
139
|
-
return `${t.id}-option-${
|
|
118
|
+
return `${t.id}-option-${ti(e)}`;
|
|
140
119
|
}
|
|
141
|
-
function
|
|
142
|
-
return
|
|
120
|
+
function Ae(n) {
|
|
121
|
+
return Nl() ? n.altKey : n.ctrlKey;
|
|
143
122
|
}
|
|
144
|
-
function
|
|
123
|
+
function de(n, e) {
|
|
145
124
|
var t, l;
|
|
146
125
|
let i = `[data-key="${CSS.escape(String(e))}"]`, o = (t = n.current) === null || t === void 0 ? void 0 : t.dataset.collection;
|
|
147
126
|
return o && (i = `[data-collection="${CSS.escape(o)}"]${i}`), (l = n.current) === null || l === void 0 ? void 0 : l.querySelector(i);
|
|
148
127
|
}
|
|
149
|
-
const
|
|
150
|
-
function
|
|
151
|
-
let e =
|
|
152
|
-
return
|
|
128
|
+
const Et = /* @__PURE__ */ new WeakMap();
|
|
129
|
+
function ii(n) {
|
|
130
|
+
let e = re();
|
|
131
|
+
return Et.set(n, e), e;
|
|
153
132
|
}
|
|
154
|
-
function
|
|
155
|
-
return
|
|
133
|
+
function ni(n) {
|
|
134
|
+
return Et.get(n);
|
|
156
135
|
}
|
|
157
|
-
const
|
|
158
|
-
function
|
|
159
|
-
let { keyboardDelegate: e, selectionManager: t, onTypeSelect: l } = n, i =
|
|
136
|
+
const oi = 1e3;
|
|
137
|
+
function ri(n) {
|
|
138
|
+
let { keyboardDelegate: e, selectionManager: t, onTypeSelect: l } = n, i = P({
|
|
160
139
|
search: "",
|
|
161
140
|
timeout: void 0
|
|
162
141
|
}).current, o = (r) => {
|
|
163
|
-
let s =
|
|
142
|
+
let s = si(r.key);
|
|
164
143
|
if (!(!s || r.ctrlKey || r.metaKey || !r.currentTarget.contains(r.target))) {
|
|
165
144
|
if (s === " " && i.search.trim().length > 0 && (r.preventDefault(), "continuePropagation" in r || r.stopPropagation()), i.search += s, e.getKeyForSearch != null) {
|
|
166
145
|
let a = e.getKeyForSearch(i.search, t.focusedKey);
|
|
@@ -168,7 +147,7 @@ function di(n) {
|
|
|
168
147
|
}
|
|
169
148
|
clearTimeout(i.timeout), i.timeout = setTimeout(() => {
|
|
170
149
|
i.search = "";
|
|
171
|
-
},
|
|
150
|
+
}, oi);
|
|
172
151
|
}
|
|
173
152
|
};
|
|
174
153
|
return {
|
|
@@ -179,245 +158,245 @@ function di(n) {
|
|
|
179
158
|
}
|
|
180
159
|
};
|
|
181
160
|
}
|
|
182
|
-
function
|
|
161
|
+
function si(n) {
|
|
183
162
|
return n.length === 1 || !/^[A-Z]/i.test(n) ? n : "";
|
|
184
163
|
}
|
|
185
|
-
function
|
|
186
|
-
let { selectionManager: e, keyboardDelegate: t, ref: l, autoFocus: i = !1, shouldFocusWrap: o = !1, disallowEmptySelection: r = !1, disallowSelectAll: s = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: c = e.selectionBehavior === "replace", disallowTypeAhead:
|
|
164
|
+
function ai(n) {
|
|
165
|
+
let { selectionManager: e, keyboardDelegate: t, ref: l, autoFocus: i = !1, shouldFocusWrap: o = !1, disallowEmptySelection: r = !1, disallowSelectAll: s = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: c = e.selectionBehavior === "replace", disallowTypeAhead: v = !1, shouldUseVirtualFocus: h, allowsTabNavigation: d = !1, isVirtualized: y, scrollRef: b = l, linkBehavior: x = "action" } = n, { direction: g } = Kt(), $ = xt(), S = (f) => {
|
|
187
166
|
var u;
|
|
188
|
-
if (
|
|
189
|
-
const
|
|
167
|
+
if (f.altKey && f.key === "Tab" && f.preventDefault(), !(!((u = l.current) === null || u === void 0) && u.contains(f.target))) return;
|
|
168
|
+
const E = (D, X) => {
|
|
190
169
|
if (D != null) {
|
|
191
|
-
if (e.isLink(D) && x === "selection" && c && !
|
|
192
|
-
|
|
170
|
+
if (e.isLink(D) && x === "selection" && c && !Ae(f)) {
|
|
171
|
+
Il(() => {
|
|
193
172
|
e.setFocusedKey(D, X);
|
|
194
173
|
});
|
|
195
|
-
let Z =
|
|
196
|
-
Z &&
|
|
174
|
+
let Z = de(l, D), qe = e.getItemProps(D);
|
|
175
|
+
Z && $.open(Z, f, qe.href, qe.routerOptions);
|
|
197
176
|
return;
|
|
198
177
|
}
|
|
199
178
|
if (e.setFocusedKey(D, X), e.isLink(D) && x === "override") return;
|
|
200
|
-
|
|
179
|
+
f.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(D) : c && !Ae(f) && e.replaceSelection(D);
|
|
201
180
|
}
|
|
202
181
|
};
|
|
203
|
-
switch (
|
|
182
|
+
switch (f.key) {
|
|
204
183
|
case "ArrowDown":
|
|
205
184
|
if (t.getKeyBelow) {
|
|
206
|
-
var
|
|
207
|
-
let D = e.focusedKey != null ? (
|
|
208
|
-
D == null && o && (D = (z = t.getFirstKey) === null || z === void 0 ? void 0 : z.call(t, e.focusedKey)), D != null && (
|
|
185
|
+
var L, N, z;
|
|
186
|
+
let D = e.focusedKey != null ? (L = t.getKeyBelow) === null || L === void 0 ? void 0 : L.call(t, e.focusedKey) : (N = t.getFirstKey) === null || N === void 0 ? void 0 : N.call(t);
|
|
187
|
+
D == null && o && (D = (z = t.getFirstKey) === null || z === void 0 ? void 0 : z.call(t, e.focusedKey)), D != null && (f.preventDefault(), E(D));
|
|
209
188
|
}
|
|
210
189
|
break;
|
|
211
190
|
case "ArrowUp":
|
|
212
191
|
if (t.getKeyAbove) {
|
|
213
|
-
var
|
|
214
|
-
let D = e.focusedKey != null ? (
|
|
215
|
-
D == null && o && (D = (
|
|
192
|
+
var q, _, ye;
|
|
193
|
+
let D = e.focusedKey != null ? (q = t.getKeyAbove) === null || q === void 0 ? void 0 : q.call(t, e.focusedKey) : (_ = t.getLastKey) === null || _ === void 0 ? void 0 : _.call(t);
|
|
194
|
+
D == null && o && (D = (ye = t.getLastKey) === null || ye === void 0 ? void 0 : ye.call(t, e.focusedKey)), D != null && (f.preventDefault(), E(D));
|
|
216
195
|
}
|
|
217
196
|
break;
|
|
218
197
|
case "ArrowLeft":
|
|
219
198
|
if (t.getKeyLeftOf) {
|
|
220
|
-
var
|
|
221
|
-
let D = e.focusedKey != null ? (
|
|
222
|
-
D == null && o && (D = g === "rtl" ? (
|
|
199
|
+
var be, ge, $e;
|
|
200
|
+
let D = e.focusedKey != null ? (be = t.getKeyLeftOf) === null || be === void 0 ? void 0 : be.call(t, e.focusedKey) : null;
|
|
201
|
+
D == null && o && (D = g === "rtl" ? (ge = t.getFirstKey) === null || ge === void 0 ? void 0 : ge.call(t, e.focusedKey) : ($e = t.getLastKey) === null || $e === void 0 ? void 0 : $e.call(t, e.focusedKey)), D != null && (f.preventDefault(), E(D, g === "rtl" ? "first" : "last"));
|
|
223
202
|
}
|
|
224
203
|
break;
|
|
225
204
|
case "ArrowRight":
|
|
226
205
|
if (t.getKeyRightOf) {
|
|
227
|
-
var
|
|
228
|
-
let D = e.focusedKey != null ? (
|
|
229
|
-
D == null && o && (D = g === "rtl" ? (
|
|
206
|
+
var me, xe, Se;
|
|
207
|
+
let D = e.focusedKey != null ? (me = t.getKeyRightOf) === null || me === void 0 ? void 0 : me.call(t, e.focusedKey) : null;
|
|
208
|
+
D == null && o && (D = g === "rtl" ? (xe = t.getLastKey) === null || xe === void 0 ? void 0 : xe.call(t, e.focusedKey) : (Se = t.getFirstKey) === null || Se === void 0 ? void 0 : Se.call(t, e.focusedKey)), D != null && (f.preventDefault(), E(D, g === "rtl" ? "last" : "first"));
|
|
230
209
|
}
|
|
231
210
|
break;
|
|
232
211
|
case "Home":
|
|
233
212
|
if (t.getFirstKey) {
|
|
234
|
-
if (e.focusedKey === null &&
|
|
235
|
-
|
|
236
|
-
let D = t.getFirstKey(e.focusedKey, Q(
|
|
237
|
-
e.setFocusedKey(D), D != null && (Q(
|
|
213
|
+
if (e.focusedKey === null && f.shiftKey) return;
|
|
214
|
+
f.preventDefault();
|
|
215
|
+
let D = t.getFirstKey(e.focusedKey, Q(f));
|
|
216
|
+
e.setFocusedKey(D), D != null && (Q(f) && f.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(D) : c && e.replaceSelection(D));
|
|
238
217
|
}
|
|
239
218
|
break;
|
|
240
219
|
case "End":
|
|
241
220
|
if (t.getLastKey) {
|
|
242
|
-
if (e.focusedKey === null &&
|
|
243
|
-
|
|
244
|
-
let D = t.getLastKey(e.focusedKey, Q(
|
|
245
|
-
e.setFocusedKey(D), D != null && (Q(
|
|
221
|
+
if (e.focusedKey === null && f.shiftKey) return;
|
|
222
|
+
f.preventDefault();
|
|
223
|
+
let D = t.getLastKey(e.focusedKey, Q(f));
|
|
224
|
+
e.setFocusedKey(D), D != null && (Q(f) && f.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(D) : c && e.replaceSelection(D));
|
|
246
225
|
}
|
|
247
226
|
break;
|
|
248
227
|
case "PageDown":
|
|
249
228
|
if (t.getKeyPageBelow && e.focusedKey != null) {
|
|
250
229
|
let D = t.getKeyPageBelow(e.focusedKey);
|
|
251
|
-
D != null && (
|
|
230
|
+
D != null && (f.preventDefault(), E(D));
|
|
252
231
|
}
|
|
253
232
|
break;
|
|
254
233
|
case "PageUp":
|
|
255
234
|
if (t.getKeyPageAbove && e.focusedKey != null) {
|
|
256
235
|
let D = t.getKeyPageAbove(e.focusedKey);
|
|
257
|
-
D != null && (
|
|
236
|
+
D != null && (f.preventDefault(), E(D));
|
|
258
237
|
}
|
|
259
238
|
break;
|
|
260
239
|
case "a":
|
|
261
|
-
Q(
|
|
240
|
+
Q(f) && e.selectionMode === "multiple" && s !== !0 && (f.preventDefault(), e.selectAll());
|
|
262
241
|
break;
|
|
263
242
|
case "Escape":
|
|
264
|
-
a === "clearSelection" && !r && e.selectedKeys.size !== 0 && (
|
|
243
|
+
a === "clearSelection" && !r && e.selectedKeys.size !== 0 && (f.stopPropagation(), f.preventDefault(), e.clearSelection());
|
|
265
244
|
break;
|
|
266
245
|
case "Tab":
|
|
267
246
|
if (!d) {
|
|
268
|
-
if (
|
|
247
|
+
if (f.shiftKey) l.current.focus();
|
|
269
248
|
else {
|
|
270
|
-
let D =
|
|
249
|
+
let D = Yl(l.current, {
|
|
271
250
|
tabbable: !0
|
|
272
251
|
}), X, Z;
|
|
273
252
|
do
|
|
274
253
|
Z = D.lastChild(), Z && (X = Z);
|
|
275
254
|
while (Z);
|
|
276
|
-
X && !X.contains(document.activeElement) &&
|
|
255
|
+
X && !X.contains(document.activeElement) && ke(X);
|
|
277
256
|
}
|
|
278
257
|
break;
|
|
279
258
|
}
|
|
280
259
|
}
|
|
281
|
-
}, w =
|
|
260
|
+
}, w = P({
|
|
282
261
|
top: 0,
|
|
283
262
|
left: 0
|
|
284
263
|
});
|
|
285
|
-
|
|
286
|
-
var
|
|
264
|
+
ae(b, "scroll", y ? void 0 : () => {
|
|
265
|
+
var f, u, E, L;
|
|
287
266
|
w.current = {
|
|
288
|
-
top: (
|
|
289
|
-
left: (
|
|
267
|
+
top: (E = (f = b.current) === null || f === void 0 ? void 0 : f.scrollTop) !== null && E !== void 0 ? E : 0,
|
|
268
|
+
left: (L = (u = b.current) === null || u === void 0 ? void 0 : u.scrollLeft) !== null && L !== void 0 ? L : 0
|
|
290
269
|
};
|
|
291
270
|
});
|
|
292
|
-
let k = (
|
|
271
|
+
let k = (f) => {
|
|
293
272
|
if (e.isFocused) {
|
|
294
|
-
|
|
273
|
+
f.currentTarget.contains(f.target) || e.setFocused(!1);
|
|
295
274
|
return;
|
|
296
275
|
}
|
|
297
|
-
if (
|
|
276
|
+
if (f.currentTarget.contains(f.target)) {
|
|
298
277
|
if (e.setFocused(!0), e.focusedKey == null) {
|
|
299
|
-
var u,
|
|
278
|
+
var u, E;
|
|
300
279
|
let z = (_) => {
|
|
301
280
|
_ != null && (e.setFocusedKey(_), c && !e.isSelected(_) && e.replaceSelection(_));
|
|
302
|
-
},
|
|
303
|
-
var
|
|
304
|
-
|
|
305
|
-
} else !
|
|
281
|
+
}, q = f.relatedTarget;
|
|
282
|
+
var L, N;
|
|
283
|
+
q && f.currentTarget.compareDocumentPosition(q) & Node.DOCUMENT_POSITION_FOLLOWING ? z((L = e.lastSelectedKey) !== null && L !== void 0 ? L : (u = t.getLastKey) === null || u === void 0 ? void 0 : u.call(t)) : z((N = e.firstSelectedKey) !== null && N !== void 0 ? N : (E = t.getFirstKey) === null || E === void 0 ? void 0 : E.call(t));
|
|
284
|
+
} else !y && b.current && (b.current.scrollTop = w.current.top, b.current.scrollLeft = w.current.left);
|
|
306
285
|
if (e.focusedKey != null && b.current) {
|
|
307
|
-
let z =
|
|
308
|
-
z instanceof HTMLElement && (!z.contains(document.activeElement) && !
|
|
286
|
+
let z = de(l, e.focusedKey);
|
|
287
|
+
z instanceof HTMLElement && (!z.contains(document.activeElement) && !h && ke(z), Fe() === "keyboard" && Ye(z, {
|
|
309
288
|
containingElement: l.current
|
|
310
289
|
}));
|
|
311
290
|
}
|
|
312
291
|
}
|
|
313
|
-
}, F = (
|
|
314
|
-
|
|
315
|
-
}, C =
|
|
316
|
-
|
|
317
|
-
let { detail: u } =
|
|
318
|
-
|
|
292
|
+
}, F = (f) => {
|
|
293
|
+
f.currentTarget.contains(f.relatedTarget) || e.setFocused(!1);
|
|
294
|
+
}, C = P(!1);
|
|
295
|
+
ae(l, Te, h ? (f) => {
|
|
296
|
+
let { detail: u } = f;
|
|
297
|
+
f.stopPropagation(), e.setFocused(!0), (u == null ? void 0 : u.focusStrategy) === "first" && (C.current = !0);
|
|
319
298
|
} : void 0);
|
|
320
|
-
let
|
|
321
|
-
var
|
|
322
|
-
let
|
|
323
|
-
|
|
299
|
+
let A = ee(() => {
|
|
300
|
+
var f, u;
|
|
301
|
+
let E = (u = (f = t.getFirstKey) === null || f === void 0 ? void 0 : f.call(t)) !== null && u !== void 0 ? u : null;
|
|
302
|
+
E == null ? (Ve(l.current), e.collection.size > 0 && (C.current = !1)) : (e.setFocusedKey(E), C.current = !1);
|
|
324
303
|
});
|
|
325
|
-
|
|
326
|
-
C.current &&
|
|
304
|
+
Je(() => {
|
|
305
|
+
C.current && A();
|
|
327
306
|
}, [
|
|
328
307
|
e.collection,
|
|
329
|
-
|
|
308
|
+
A
|
|
330
309
|
]);
|
|
331
310
|
let M = ee(() => {
|
|
332
311
|
e.collection.size > 0 && (C.current = !1);
|
|
333
312
|
});
|
|
334
|
-
|
|
313
|
+
Je(() => {
|
|
335
314
|
M();
|
|
336
315
|
}, [
|
|
337
316
|
e.focusedKey,
|
|
338
317
|
M
|
|
339
|
-
]),
|
|
318
|
+
]), ae(l, wt, h ? (f) => {
|
|
340
319
|
var u;
|
|
341
|
-
|
|
320
|
+
f.stopPropagation(), e.setFocused(!1), !((u = f.detail) === null || u === void 0) && u.clearFocusKey && e.setFocusedKey(null);
|
|
342
321
|
} : void 0);
|
|
343
|
-
const G =
|
|
322
|
+
const G = P(i), B = P(!1);
|
|
344
323
|
Y(() => {
|
|
345
324
|
if (G.current) {
|
|
346
|
-
var
|
|
325
|
+
var f, u;
|
|
347
326
|
let N = null;
|
|
348
|
-
var
|
|
349
|
-
i === "first" && (N = (
|
|
350
|
-
var
|
|
351
|
-
i === "last" && (N = (
|
|
327
|
+
var E;
|
|
328
|
+
i === "first" && (N = (E = (f = t.getFirstKey) === null || f === void 0 ? void 0 : f.call(t)) !== null && E !== void 0 ? E : null);
|
|
329
|
+
var L;
|
|
330
|
+
i === "last" && (N = (L = (u = t.getLastKey) === null || u === void 0 ? void 0 : u.call(t)) !== null && L !== void 0 ? L : null);
|
|
352
331
|
let z = e.selectedKeys;
|
|
353
332
|
if (z.size) {
|
|
354
|
-
for (let
|
|
355
|
-
N =
|
|
333
|
+
for (let q of z) if (e.canSelectItem(q)) {
|
|
334
|
+
N = q;
|
|
356
335
|
break;
|
|
357
336
|
}
|
|
358
337
|
}
|
|
359
|
-
e.setFocused(!0), e.setFocusedKey(N), N == null && !
|
|
338
|
+
e.setFocused(!0), e.setFocusedKey(N), N == null && !h && l.current && Me(l.current), e.collection.size > 0 && (G.current = !1, B.current = !0);
|
|
360
339
|
}
|
|
361
340
|
});
|
|
362
|
-
let
|
|
341
|
+
let p = P(e.focusedKey), K = P(null);
|
|
363
342
|
Y(() => {
|
|
364
|
-
if (e.isFocused && e.focusedKey != null && (e.focusedKey !==
|
|
365
|
-
let
|
|
343
|
+
if (e.isFocused && e.focusedKey != null && (e.focusedKey !== p.current || B.current) && b.current && l.current) {
|
|
344
|
+
let f = Fe(), u = de(l, e.focusedKey);
|
|
366
345
|
if (!(u instanceof HTMLElement))
|
|
367
346
|
return;
|
|
368
|
-
(
|
|
369
|
-
b.current && (
|
|
347
|
+
(f === "keyboard" || B.current) && (K.current && cancelAnimationFrame(K.current), K.current = requestAnimationFrame(() => {
|
|
348
|
+
b.current && (_l(b.current, u), f !== "virtual" && Ye(u, {
|
|
370
349
|
containingElement: l.current
|
|
371
350
|
}));
|
|
372
351
|
}));
|
|
373
352
|
}
|
|
374
|
-
!
|
|
353
|
+
!h && e.isFocused && e.focusedKey == null && p.current != null && l.current && Me(l.current), p.current = e.focusedKey, B.current = !1;
|
|
375
354
|
}), Y(() => () => {
|
|
376
355
|
K.current && cancelAnimationFrame(K.current);
|
|
377
|
-
}, []),
|
|
378
|
-
|
|
356
|
+
}, []), ae(l, "react-aria-focus-scope-restore", (f) => {
|
|
357
|
+
f.preventDefault(), e.setFocused(!0);
|
|
379
358
|
});
|
|
380
359
|
let I = {
|
|
381
360
|
onKeyDown: S,
|
|
382
361
|
onFocus: k,
|
|
383
362
|
onBlur: F,
|
|
384
|
-
onMouseDown(
|
|
385
|
-
b.current ===
|
|
363
|
+
onMouseDown(f) {
|
|
364
|
+
b.current === f.target && f.preventDefault();
|
|
386
365
|
}
|
|
387
|
-
}, { typeSelectProps: V } =
|
|
366
|
+
}, { typeSelectProps: V } = ri({
|
|
388
367
|
keyboardDelegate: t,
|
|
389
368
|
selectionManager: e
|
|
390
369
|
});
|
|
391
|
-
|
|
370
|
+
v || (I = W(V, I));
|
|
392
371
|
let U;
|
|
393
|
-
|
|
394
|
-
let H =
|
|
372
|
+
h || (U = e.focusedKey == null ? 0 : -1);
|
|
373
|
+
let H = ii(e.collection);
|
|
395
374
|
return {
|
|
396
|
-
collectionProps:
|
|
375
|
+
collectionProps: W(I, {
|
|
397
376
|
tabIndex: U,
|
|
398
377
|
"data-collection": H
|
|
399
378
|
})
|
|
400
379
|
};
|
|
401
380
|
}
|
|
402
|
-
function
|
|
403
|
-
let { id: e, selectionManager: t, key: l, ref: i, shouldSelectOnPressUp: o, shouldUseVirtualFocus: r, focus: s, isDisabled: a, onAction: c, allowsDifferentPressOrigin:
|
|
404
|
-
e =
|
|
405
|
-
let
|
|
406
|
-
if (u.pointerType === "keyboard" &&
|
|
381
|
+
function ui(n) {
|
|
382
|
+
let { id: e, selectionManager: t, key: l, ref: i, shouldSelectOnPressUp: o, shouldUseVirtualFocus: r, focus: s, isDisabled: a, onAction: c, allowsDifferentPressOrigin: v, linkBehavior: h = "action" } = n, d = xt();
|
|
383
|
+
e = re(e);
|
|
384
|
+
let y = (u) => {
|
|
385
|
+
if (u.pointerType === "keyboard" && Ae(u)) t.toggleSelection(l);
|
|
407
386
|
else {
|
|
408
387
|
if (t.selectionMode === "none") return;
|
|
409
388
|
if (t.isLink(l)) {
|
|
410
|
-
if (
|
|
411
|
-
let
|
|
412
|
-
d.open(i.current, u,
|
|
389
|
+
if (h === "selection" && i.current) {
|
|
390
|
+
let E = t.getItemProps(l);
|
|
391
|
+
d.open(i.current, u, E.href, E.routerOptions), t.setSelectedKeys(t.selectedKeys);
|
|
413
392
|
return;
|
|
414
|
-
} else if (
|
|
393
|
+
} else if (h === "override" || h === "none") return;
|
|
415
394
|
}
|
|
416
395
|
t.selectionMode === "single" ? t.isSelected(l) && !t.disallowEmptySelection ? t.toggleSelection(l) : t.replaceSelection(l) : u && u.shiftKey ? t.extendSelection(l) : t.selectionBehavior === "toggle" || u && (Q(u) || u.pointerType === "touch" || u.pointerType === "virtual") ? t.toggleSelection(l) : t.replaceSelection(l);
|
|
417
396
|
}
|
|
418
397
|
};
|
|
419
398
|
Y(() => {
|
|
420
|
-
l === t.focusedKey && t.isFocused && (r ?
|
|
399
|
+
l === t.focusedKey && t.isFocused && (r ? Ve(i.current) : s ? s() : document.activeElement !== i.current && i.current && Me(i.current));
|
|
421
400
|
}, [
|
|
422
401
|
i,
|
|
423
402
|
l,
|
|
@@ -435,30 +414,30 @@ function hi(n) {
|
|
|
435
414
|
} : a && (b.onMouseDown = (u) => {
|
|
436
415
|
u.preventDefault();
|
|
437
416
|
});
|
|
438
|
-
let x = t.isLink(l) &&
|
|
417
|
+
let x = t.isLink(l) && h === "override", g = t.isLink(l) && h !== "selection" && h !== "none", $ = !a && t.canSelectItem(l) && !x, S = (c || g) && !a, w = S && (t.selectionBehavior === "replace" ? !$ : !$ || t.isEmpty), k = S && $ && t.selectionBehavior === "replace", F = w || k, C = P(null), A = F && $, M = P(!1), G = P(!1), B = (u) => {
|
|
439
418
|
if (c && c(), g && i.current) {
|
|
440
|
-
let
|
|
441
|
-
d.open(i.current, u,
|
|
419
|
+
let E = t.getItemProps(l);
|
|
420
|
+
d.open(i.current, u, E.href, E.routerOptions);
|
|
442
421
|
}
|
|
443
|
-
},
|
|
422
|
+
}, p = {
|
|
444
423
|
ref: i
|
|
445
424
|
};
|
|
446
|
-
o ? (
|
|
447
|
-
C.current = u.pointerType, M.current =
|
|
448
|
-
},
|
|
449
|
-
u.pointerType === "mouse" &&
|
|
450
|
-
},
|
|
451
|
-
u.pointerType !== "keyboard" && u.pointerType !== "mouse" &&
|
|
452
|
-
}) :
|
|
425
|
+
o ? (p.onPressStart = (u) => {
|
|
426
|
+
C.current = u.pointerType, M.current = A, u.pointerType === "keyboard" && (!F || Ze()) && y(u);
|
|
427
|
+
}, v ? (p.onPressUp = w ? void 0 : (u) => {
|
|
428
|
+
u.pointerType === "mouse" && $ && y(u);
|
|
429
|
+
}, p.onPress = w ? B : (u) => {
|
|
430
|
+
u.pointerType !== "keyboard" && u.pointerType !== "mouse" && $ && y(u);
|
|
431
|
+
}) : p.onPress = (u) => {
|
|
453
432
|
if (w || k && u.pointerType !== "mouse") {
|
|
454
|
-
if (u.pointerType === "keyboard" && !
|
|
433
|
+
if (u.pointerType === "keyboard" && !Xe()) return;
|
|
455
434
|
B(u);
|
|
456
|
-
} else u.pointerType !== "keyboard" &&
|
|
457
|
-
}) : (
|
|
458
|
-
C.current = u.pointerType, M.current =
|
|
459
|
-
},
|
|
460
|
-
(u.pointerType === "touch" || u.pointerType === "pen" || u.pointerType === "virtual" || u.pointerType === "keyboard" && F &&
|
|
461
|
-
}), b["data-collection"] =
|
|
435
|
+
} else u.pointerType !== "keyboard" && $ && y(u);
|
|
436
|
+
}) : (p.onPressStart = (u) => {
|
|
437
|
+
C.current = u.pointerType, M.current = A, G.current = w, $ && (u.pointerType === "mouse" && !w || u.pointerType === "keyboard" && (!S || Ze())) && y(u);
|
|
438
|
+
}, p.onPress = (u) => {
|
|
439
|
+
(u.pointerType === "touch" || u.pointerType === "pen" || u.pointerType === "virtual" || u.pointerType === "keyboard" && F && Xe() || u.pointerType === "mouse" && G.current) && (F ? B(u) : $ && y(u));
|
|
440
|
+
}), b["data-collection"] = ni(t.collection), b["data-key"] = l, p.preventFocusOnPress = r, r && (p = W(p, {
|
|
462
441
|
onPressStart(u) {
|
|
463
442
|
u.pointerType !== "touch" && (t.setFocused(!0), t.setFocusedKey(l));
|
|
464
443
|
},
|
|
@@ -466,27 +445,27 @@ function hi(n) {
|
|
|
466
445
|
u.pointerType === "touch" && (t.setFocused(!0), t.setFocusedKey(l));
|
|
467
446
|
}
|
|
468
447
|
}));
|
|
469
|
-
let { pressProps: K, isPressed: I } =
|
|
448
|
+
let { pressProps: K, isPressed: I } = mt(p), V = k ? (u) => {
|
|
470
449
|
C.current === "mouse" && (u.stopPropagation(), u.preventDefault(), B(u));
|
|
471
|
-
} : void 0, { longPressProps: U } =
|
|
472
|
-
isDisabled: !
|
|
450
|
+
} : void 0, { longPressProps: U } = Ql({
|
|
451
|
+
isDisabled: !A,
|
|
473
452
|
onLongPress(u) {
|
|
474
|
-
u.pointerType === "touch" && (
|
|
453
|
+
u.pointerType === "touch" && (y(u), t.setSelectionBehavior("toggle"));
|
|
475
454
|
}
|
|
476
455
|
}), H = (u) => {
|
|
477
456
|
C.current === "touch" && M.current && u.preventDefault();
|
|
478
|
-
},
|
|
479
|
-
|
|
457
|
+
}, f = t.isLink(l) ? (u) => {
|
|
458
|
+
Hl.isOpening || u.preventDefault();
|
|
480
459
|
} : void 0;
|
|
481
460
|
return {
|
|
482
|
-
itemProps:
|
|
461
|
+
itemProps: W(
|
|
483
462
|
b,
|
|
484
|
-
|
|
485
|
-
|
|
463
|
+
$ || w || r && !a ? K : {},
|
|
464
|
+
A ? U : {},
|
|
486
465
|
{
|
|
487
466
|
onDoubleClick: V,
|
|
488
467
|
onDragStartCapture: H,
|
|
489
|
-
onClick:
|
|
468
|
+
onClick: f,
|
|
490
469
|
id: e
|
|
491
470
|
},
|
|
492
471
|
// Prevent DOM focus from moving on mouse down when using virtual focus
|
|
@@ -498,23 +477,23 @@ function hi(n) {
|
|
|
498
477
|
isSelected: t.isSelected(l),
|
|
499
478
|
isFocused: t.isFocused && t.focusedKey === l,
|
|
500
479
|
isDisabled: a,
|
|
501
|
-
allowsSelection:
|
|
480
|
+
allowsSelection: $,
|
|
502
481
|
hasAction: F
|
|
503
482
|
};
|
|
504
483
|
}
|
|
505
|
-
function
|
|
484
|
+
function Xe() {
|
|
506
485
|
let n = window.event;
|
|
507
486
|
return (n == null ? void 0 : n.key) === "Enter";
|
|
508
487
|
}
|
|
509
|
-
function
|
|
488
|
+
function Ze() {
|
|
510
489
|
let n = window.event;
|
|
511
490
|
return (n == null ? void 0 : n.key) === " " || (n == null ? void 0 : n.code) === "Space";
|
|
512
491
|
}
|
|
513
|
-
class
|
|
492
|
+
class Qe {
|
|
514
493
|
getItemRect(e) {
|
|
515
494
|
let t = this.ref.current;
|
|
516
495
|
if (!t) return null;
|
|
517
|
-
let l = e != null ?
|
|
496
|
+
let l = e != null ? de(this.ref, e) : null;
|
|
518
497
|
if (!l) return null;
|
|
519
498
|
let i = t.getBoundingClientRect(), o = l.getBoundingClientRect();
|
|
520
499
|
return {
|
|
@@ -546,7 +525,7 @@ class et {
|
|
|
546
525
|
this.ref = e;
|
|
547
526
|
}
|
|
548
527
|
}
|
|
549
|
-
class
|
|
528
|
+
class Pt {
|
|
550
529
|
isDisabled(e) {
|
|
551
530
|
var t;
|
|
552
531
|
return this.disabledBehavior === "all" && (((t = e.props) === null || t === void 0 ? void 0 : t.isDisabled) || this.disabledKeys.has(e.key));
|
|
@@ -612,7 +591,7 @@ class kt {
|
|
|
612
591
|
getKeyPageAbove(e) {
|
|
613
592
|
let t = this.ref.current, l = this.layoutDelegate.getItemRect(e);
|
|
614
593
|
if (!l) return null;
|
|
615
|
-
if (t && !
|
|
594
|
+
if (t && !je(t)) return this.getFirstKey();
|
|
616
595
|
let i = e;
|
|
617
596
|
if (this.orientation === "horizontal") {
|
|
618
597
|
let o = Math.max(0, l.x + l.width - this.layoutDelegate.getVisibleRect().width);
|
|
@@ -628,7 +607,7 @@ class kt {
|
|
|
628
607
|
getKeyPageBelow(e) {
|
|
629
608
|
let t = this.ref.current, l = this.layoutDelegate.getItemRect(e);
|
|
630
609
|
if (!l) return null;
|
|
631
|
-
if (t && !
|
|
610
|
+
if (t && !je(t)) return this.getLastKey();
|
|
632
611
|
let i = e;
|
|
633
612
|
if (this.orientation === "horizontal") {
|
|
634
613
|
let o = Math.min(this.layoutDelegate.getContentSize().width, l.y - l.width + this.layoutDelegate.getVisibleRect().width);
|
|
@@ -656,17 +635,17 @@ class kt {
|
|
|
656
635
|
constructor(...e) {
|
|
657
636
|
if (e.length === 1) {
|
|
658
637
|
let t = e[0];
|
|
659
|
-
this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new
|
|
638
|
+
this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new Qe(t.ref);
|
|
660
639
|
} else
|
|
661
|
-
this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new
|
|
640
|
+
this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new Qe(this.ref);
|
|
662
641
|
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
|
|
663
642
|
}
|
|
664
643
|
}
|
|
665
|
-
function
|
|
666
|
-
let { selectionManager: e, collection: t, disabledKeys: l, ref: i, keyboardDelegate: o, layoutDelegate: r } = n, s =
|
|
644
|
+
function di(n) {
|
|
645
|
+
let { selectionManager: e, collection: t, disabledKeys: l, ref: i, keyboardDelegate: o, layoutDelegate: r } = n, s = Dt({
|
|
667
646
|
usage: "search",
|
|
668
647
|
sensitivity: "base"
|
|
669
|
-
}), a = e.disabledBehavior, c = T(() => o || new
|
|
648
|
+
}), a = e.disabledBehavior, c = T(() => o || new Pt({
|
|
670
649
|
collection: t,
|
|
671
650
|
disabledKeys: l,
|
|
672
651
|
disabledBehavior: a,
|
|
@@ -681,34 +660,34 @@ function pi(n) {
|
|
|
681
660
|
i,
|
|
682
661
|
s,
|
|
683
662
|
a
|
|
684
|
-
]), { collectionProps:
|
|
663
|
+
]), { collectionProps: v } = ai({
|
|
685
664
|
...n,
|
|
686
665
|
ref: i,
|
|
687
666
|
selectionManager: e,
|
|
688
667
|
keyboardDelegate: c
|
|
689
668
|
});
|
|
690
669
|
return {
|
|
691
|
-
listProps:
|
|
670
|
+
listProps: v
|
|
692
671
|
};
|
|
693
672
|
}
|
|
694
|
-
function
|
|
695
|
-
let l =
|
|
673
|
+
function ci(n, e, t) {
|
|
674
|
+
let l = se(n, {
|
|
696
675
|
labelable: !0
|
|
697
676
|
}), i = n.selectionBehavior || "toggle", o = n.linkBehavior || (i === "replace" ? "action" : "override");
|
|
698
677
|
i === "toggle" && o === "action" && (o = "override");
|
|
699
|
-
let { listProps: r } =
|
|
678
|
+
let { listProps: r } = di({
|
|
700
679
|
...n,
|
|
701
680
|
ref: t,
|
|
702
681
|
selectionManager: e.selectionManager,
|
|
703
682
|
collection: e.collection,
|
|
704
683
|
disabledKeys: e.disabledKeys,
|
|
705
684
|
linkBehavior: o
|
|
706
|
-
}), { focusWithinProps: s } =
|
|
685
|
+
}), { focusWithinProps: s } = Gl({
|
|
707
686
|
onFocusWithin: n.onFocus,
|
|
708
687
|
onBlurWithin: n.onBlur,
|
|
709
688
|
onFocusWithinChange: n.onFocusChange
|
|
710
|
-
}), a =
|
|
711
|
-
|
|
689
|
+
}), a = re(n.id);
|
|
690
|
+
Oe.set(e, {
|
|
712
691
|
id: a,
|
|
713
692
|
shouldUseVirtualFocus: n.shouldUseVirtualFocus,
|
|
714
693
|
shouldSelectOnPressUp: n.shouldSelectOnPressUp,
|
|
@@ -717,7 +696,7 @@ function vi(n, e, t) {
|
|
|
717
696
|
onAction: n.onAction,
|
|
718
697
|
linkBehavior: o
|
|
719
698
|
});
|
|
720
|
-
let { labelProps: c, fieldProps:
|
|
699
|
+
let { labelProps: c, fieldProps: v } = jl({
|
|
721
700
|
...n,
|
|
722
701
|
id: a,
|
|
723
702
|
// listbox is not an HTML input element so it
|
|
@@ -726,21 +705,21 @@ function vi(n, e, t) {
|
|
|
726
705
|
});
|
|
727
706
|
return {
|
|
728
707
|
labelProps: c,
|
|
729
|
-
listBoxProps:
|
|
708
|
+
listBoxProps: W(l, s, e.selectionManager.selectionMode === "multiple" ? {
|
|
730
709
|
"aria-multiselectable": "true"
|
|
731
710
|
} : {}, {
|
|
732
711
|
role: "listbox",
|
|
733
|
-
...
|
|
712
|
+
...W(v, r)
|
|
734
713
|
})
|
|
735
714
|
};
|
|
736
715
|
}
|
|
737
|
-
class
|
|
716
|
+
class fi {
|
|
738
717
|
build(e, t) {
|
|
739
|
-
return this.context = t,
|
|
718
|
+
return this.context = t, et(() => this.iterateCollection(e));
|
|
740
719
|
}
|
|
741
720
|
*iterateCollection(e) {
|
|
742
721
|
let { children: t, items: l } = e;
|
|
743
|
-
if (
|
|
722
|
+
if (m.isValidElement(t) && t.type === m.Fragment) yield* this.iterateCollection({
|
|
744
723
|
children: t.props.children,
|
|
745
724
|
items: l
|
|
746
725
|
});
|
|
@@ -756,7 +735,7 @@ class yi {
|
|
|
756
735
|
}), i++;
|
|
757
736
|
} else {
|
|
758
737
|
let i = [];
|
|
759
|
-
|
|
738
|
+
m.Children.forEach(t, (r) => {
|
|
760
739
|
r && i.push(r);
|
|
761
740
|
});
|
|
762
741
|
let o = 0;
|
|
@@ -788,16 +767,16 @@ class yi {
|
|
|
788
767
|
};
|
|
789
768
|
}
|
|
790
769
|
*getFullNode(e, t, l, i) {
|
|
791
|
-
if (
|
|
770
|
+
if (m.isValidElement(e.element) && e.element.type === m.Fragment) {
|
|
792
771
|
let g = [];
|
|
793
|
-
|
|
772
|
+
m.Children.forEach(e.element.props.children, (S) => {
|
|
794
773
|
g.push(S);
|
|
795
774
|
});
|
|
796
775
|
var o;
|
|
797
|
-
let
|
|
776
|
+
let $ = (o = e.index) !== null && o !== void 0 ? o : 0;
|
|
798
777
|
for (const S of g) yield* this.getFullNode({
|
|
799
778
|
element: S,
|
|
800
|
-
index:
|
|
779
|
+
index: $++
|
|
801
780
|
}, t, l, i);
|
|
802
781
|
return;
|
|
803
782
|
}
|
|
@@ -810,49 +789,49 @@ class yi {
|
|
|
810
789
|
}
|
|
811
790
|
r = t.renderer(e.value);
|
|
812
791
|
}
|
|
813
|
-
if (
|
|
792
|
+
if (m.isValidElement(r)) {
|
|
814
793
|
let g = r.type;
|
|
815
794
|
if (typeof g != "function" && typeof g.getCollectionNode != "function") {
|
|
816
795
|
let k = r.type;
|
|
817
796
|
throw new Error(`Unknown element <${k}> in collection.`);
|
|
818
797
|
}
|
|
819
|
-
let
|
|
798
|
+
let $ = g.getCollectionNode(r.props, this.context);
|
|
820
799
|
var s;
|
|
821
|
-
let S = (s = e.index) !== null && s !== void 0 ? s : 0, w =
|
|
800
|
+
let S = (s = e.index) !== null && s !== void 0 ? s : 0, w = $.next();
|
|
822
801
|
for (; !w.done && w.value; ) {
|
|
823
802
|
let k = w.value;
|
|
824
803
|
e.index = S;
|
|
825
804
|
var a;
|
|
826
805
|
let F = (a = k.key) !== null && a !== void 0 ? a : null;
|
|
827
806
|
F == null && (F = k.element ? null : this.getKey(r, e, t, l));
|
|
828
|
-
let
|
|
807
|
+
let A = [
|
|
829
808
|
...this.getFullNode({
|
|
830
809
|
...k,
|
|
831
810
|
key: F,
|
|
832
811
|
index: S,
|
|
833
|
-
wrapper:
|
|
812
|
+
wrapper: hi(e.wrapper, k.wrapper)
|
|
834
813
|
}, this.getChildState(t, k), l ? `${l}${r.key}` : r.key, i)
|
|
835
814
|
];
|
|
836
|
-
for (let M of
|
|
837
|
-
var c,
|
|
838
|
-
M.value = (
|
|
839
|
-
var
|
|
840
|
-
if (e.type && M.type !== e.type) throw new Error(`Unsupported type <${
|
|
815
|
+
for (let M of A) {
|
|
816
|
+
var c, v;
|
|
817
|
+
M.value = (v = (c = k.value) !== null && c !== void 0 ? c : e.value) !== null && v !== void 0 ? v : null, M.value && this.cache.set(M.value, M);
|
|
818
|
+
var h;
|
|
819
|
+
if (e.type && M.type !== e.type) throw new Error(`Unsupported type <${Ke(M.type)}> in <${Ke((h = i == null ? void 0 : i.type) !== null && h !== void 0 ? h : "unknown parent type")}>. Only <${Ke(e.type)}> is supported.`);
|
|
841
820
|
S++, yield M;
|
|
842
821
|
}
|
|
843
|
-
w =
|
|
822
|
+
w = $.next(A);
|
|
844
823
|
}
|
|
845
824
|
return;
|
|
846
825
|
}
|
|
847
826
|
if (e.key == null || e.type == null) return;
|
|
848
827
|
let d = this;
|
|
849
|
-
var
|
|
828
|
+
var y, b;
|
|
850
829
|
let x = {
|
|
851
830
|
type: e.type,
|
|
852
831
|
props: e.props,
|
|
853
832
|
key: e.key,
|
|
854
833
|
parentKey: i ? i.key : null,
|
|
855
|
-
value: (
|
|
834
|
+
value: (y = e.value) !== null && y !== void 0 ? y : null,
|
|
856
835
|
level: i ? i.level + 1 : 0,
|
|
857
836
|
index: e.index,
|
|
858
837
|
rendered: e.rendered,
|
|
@@ -861,15 +840,15 @@ class yi {
|
|
|
861
840
|
wrapper: e.wrapper,
|
|
862
841
|
shouldInvalidate: e.shouldInvalidate,
|
|
863
842
|
hasChildNodes: e.hasChildNodes || !1,
|
|
864
|
-
childNodes:
|
|
843
|
+
childNodes: et(function* () {
|
|
865
844
|
if (!e.hasChildNodes || !e.childNodes) return;
|
|
866
845
|
let g = 0;
|
|
867
|
-
for (let
|
|
868
|
-
|
|
846
|
+
for (let $ of e.childNodes()) {
|
|
847
|
+
$.key != null && ($.key = `${x.key}${$.key}`);
|
|
869
848
|
let S = d.getFullNode({
|
|
870
|
-
|
|
849
|
+
...$,
|
|
871
850
|
index: g
|
|
872
|
-
}, d.getChildState(t,
|
|
851
|
+
}, d.getChildState(t, $), x.key, x);
|
|
873
852
|
for (let w of S)
|
|
874
853
|
g++, yield w;
|
|
875
854
|
}
|
|
@@ -881,7 +860,7 @@ class yi {
|
|
|
881
860
|
this.cache = /* @__PURE__ */ new WeakMap();
|
|
882
861
|
}
|
|
883
862
|
}
|
|
884
|
-
function
|
|
863
|
+
function et(n) {
|
|
885
864
|
let e = [], t = null;
|
|
886
865
|
return {
|
|
887
866
|
*[Symbol.iterator]() {
|
|
@@ -892,16 +871,16 @@ function tt(n) {
|
|
|
892
871
|
}
|
|
893
872
|
};
|
|
894
873
|
}
|
|
895
|
-
function
|
|
874
|
+
function hi(n, e) {
|
|
896
875
|
if (n && e) return (t) => n(e(t));
|
|
897
876
|
if (n) return n;
|
|
898
877
|
if (e) return e;
|
|
899
878
|
}
|
|
900
|
-
function
|
|
879
|
+
function Ke(n) {
|
|
901
880
|
return n[0].toUpperCase() + n.slice(1);
|
|
902
881
|
}
|
|
903
|
-
function
|
|
904
|
-
let l = T(() => new
|
|
882
|
+
function pi(n, e, t) {
|
|
883
|
+
let l = T(() => new fi(), []), { children: i, items: o, collection: r } = n;
|
|
905
884
|
return T(() => {
|
|
906
885
|
if (r) return r;
|
|
907
886
|
let a = l.build({
|
|
@@ -918,77 +897,77 @@ function gi(n, e, t) {
|
|
|
918
897
|
e
|
|
919
898
|
]);
|
|
920
899
|
}
|
|
921
|
-
function
|
|
900
|
+
function kt(n, e) {
|
|
922
901
|
return typeof e.getChildren == "function" ? e.getChildren(n.key) : n.childNodes;
|
|
923
902
|
}
|
|
924
|
-
function
|
|
925
|
-
return
|
|
903
|
+
function vi(n) {
|
|
904
|
+
return yi(n);
|
|
926
905
|
}
|
|
927
|
-
function
|
|
906
|
+
function yi(n, e) {
|
|
928
907
|
for (let t of n)
|
|
929
908
|
return t;
|
|
930
909
|
}
|
|
931
|
-
function
|
|
910
|
+
function Tn(n) {
|
|
932
911
|
let e;
|
|
933
912
|
for (let t of n) e = t;
|
|
934
913
|
return e;
|
|
935
914
|
}
|
|
936
|
-
function
|
|
915
|
+
function De(n, e, t) {
|
|
937
916
|
if (e.parentKey === t.parentKey) return e.index - t.index;
|
|
938
917
|
let l = [
|
|
939
|
-
...
|
|
918
|
+
...tt(n, e),
|
|
940
919
|
e
|
|
941
920
|
], i = [
|
|
942
|
-
...
|
|
921
|
+
...tt(n, t),
|
|
943
922
|
t
|
|
944
923
|
], o = l.slice(0, i.length).findIndex((r, s) => r !== i[s]);
|
|
945
924
|
return o !== -1 ? (e = l[o], t = i[o], e.index - t.index) : l.findIndex((r) => r === t) >= 0 ? 1 : (i.findIndex((r) => r === e) >= 0, -1);
|
|
946
925
|
}
|
|
947
|
-
function
|
|
926
|
+
function tt(n, e) {
|
|
948
927
|
let t = [], l = e;
|
|
949
928
|
for (; (l == null ? void 0 : l.parentKey) != null; )
|
|
950
929
|
l = n.getItem(l.parentKey), l && t.unshift(l);
|
|
951
930
|
return t;
|
|
952
931
|
}
|
|
953
|
-
const
|
|
954
|
-
function
|
|
955
|
-
let e =
|
|
932
|
+
const lt = /* @__PURE__ */ new WeakMap();
|
|
933
|
+
function bi(n) {
|
|
934
|
+
let e = lt.get(n);
|
|
956
935
|
if (e != null) return e;
|
|
957
936
|
let t = 0, l = (i) => {
|
|
958
937
|
for (let o of i)
|
|
959
|
-
o.type === "section" ? l(
|
|
938
|
+
o.type === "section" ? l(kt(o, n)) : o.type === "item" && t++;
|
|
960
939
|
};
|
|
961
|
-
return l(n),
|
|
940
|
+
return l(n), lt.set(n, t), t;
|
|
962
941
|
}
|
|
963
|
-
function
|
|
942
|
+
function gi(n, e, t) {
|
|
964
943
|
var l, i;
|
|
965
|
-
let { key: o } = n, r =
|
|
944
|
+
let { key: o } = n, r = Oe.get(e);
|
|
966
945
|
var s;
|
|
967
946
|
let a = (s = n.isDisabled) !== null && s !== void 0 ? s : e.selectionManager.isDisabled(o);
|
|
968
947
|
var c;
|
|
969
|
-
let
|
|
970
|
-
var
|
|
971
|
-
let d = (
|
|
972
|
-
var
|
|
973
|
-
let b = (
|
|
948
|
+
let v = (c = n.isSelected) !== null && c !== void 0 ? c : e.selectionManager.isSelected(o);
|
|
949
|
+
var h;
|
|
950
|
+
let d = (h = n.shouldSelectOnPressUp) !== null && h !== void 0 ? h : r == null ? void 0 : r.shouldSelectOnPressUp;
|
|
951
|
+
var y;
|
|
952
|
+
let b = (y = n.shouldFocusOnHover) !== null && y !== void 0 ? y : r == null ? void 0 : r.shouldFocusOnHover;
|
|
974
953
|
var x;
|
|
975
954
|
let g = (x = n.shouldUseVirtualFocus) !== null && x !== void 0 ? x : r == null ? void 0 : r.shouldUseVirtualFocus;
|
|
976
|
-
var
|
|
977
|
-
let S = (
|
|
955
|
+
var $;
|
|
956
|
+
let S = ($ = n.isVirtualized) !== null && $ !== void 0 ? $ : r == null ? void 0 : r.isVirtualized, w = _e(), k = _e(), F = {
|
|
978
957
|
role: "option",
|
|
979
958
|
"aria-disabled": a || void 0,
|
|
980
|
-
"aria-selected": e.selectionManager.selectionMode !== "none" ?
|
|
959
|
+
"aria-selected": e.selectionManager.selectionMode !== "none" ? v : void 0
|
|
981
960
|
};
|
|
982
|
-
|
|
961
|
+
gt() && zl() || (F["aria-label"] = n["aria-label"], F["aria-labelledby"] = w, F["aria-describedby"] = k);
|
|
983
962
|
let C = e.collection.getItem(o);
|
|
984
963
|
if (S) {
|
|
985
|
-
let
|
|
986
|
-
F["aria-posinset"] = Number.isNaN(
|
|
964
|
+
let f = Number(C == null ? void 0 : C.index);
|
|
965
|
+
F["aria-posinset"] = Number.isNaN(f) ? void 0 : f + 1, F["aria-setsize"] = bi(e.collection);
|
|
987
966
|
}
|
|
988
|
-
let
|
|
989
|
-
var
|
|
990
|
-
return r == null || (
|
|
991
|
-
} : void 0, M =
|
|
967
|
+
let A = r != null && r.onAction ? () => {
|
|
968
|
+
var f;
|
|
969
|
+
return r == null || (f = r.onAction) === null || f === void 0 ? void 0 : f.call(r, o);
|
|
970
|
+
} : void 0, M = li(e, o), { itemProps: G, isPressed: B, isFocused: p, hasAction: K, allowsSelection: I } = ui({
|
|
992
971
|
selectionManager: e.selectionManager,
|
|
993
972
|
key: o,
|
|
994
973
|
ref: t,
|
|
@@ -997,21 +976,21 @@ function Si(n, e, t) {
|
|
|
997
976
|
isVirtualized: S,
|
|
998
977
|
shouldUseVirtualFocus: g,
|
|
999
978
|
isDisabled: a,
|
|
1000
|
-
onAction:
|
|
979
|
+
onAction: A || !(C == null || (l = C.props) === null || l === void 0) && l.onAction ? Ml(C == null || (i = C.props) === null || i === void 0 ? void 0 : i.onAction, A) : void 0,
|
|
1001
980
|
linkBehavior: r == null ? void 0 : r.linkBehavior,
|
|
1002
981
|
id: M
|
|
1003
|
-
}), { hoverProps: V } =
|
|
982
|
+
}), { hoverProps: V } = St({
|
|
1004
983
|
isDisabled: a || !b,
|
|
1005
984
|
onHoverStart() {
|
|
1006
|
-
|
|
985
|
+
Ge() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(o));
|
|
1007
986
|
}
|
|
1008
|
-
}), U =
|
|
987
|
+
}), U = se(C == null ? void 0 : C.props);
|
|
1009
988
|
delete U.id;
|
|
1010
|
-
let H =
|
|
989
|
+
let H = ql(C == null ? void 0 : C.props);
|
|
1011
990
|
return {
|
|
1012
991
|
optionProps: {
|
|
1013
992
|
...F,
|
|
1014
|
-
...
|
|
993
|
+
...W(U, G, V, H),
|
|
1015
994
|
id: M
|
|
1016
995
|
},
|
|
1017
996
|
labelProps: {
|
|
@@ -1020,17 +999,17 @@ function Si(n, e, t) {
|
|
|
1020
999
|
descriptionProps: {
|
|
1021
1000
|
id: k
|
|
1022
1001
|
},
|
|
1023
|
-
isFocused:
|
|
1024
|
-
isFocusVisible:
|
|
1025
|
-
isSelected:
|
|
1002
|
+
isFocused: p,
|
|
1003
|
+
isFocusVisible: p && e.selectionManager.isFocused && Ge(),
|
|
1004
|
+
isSelected: v,
|
|
1026
1005
|
isDisabled: a,
|
|
1027
1006
|
isPressed: B,
|
|
1028
1007
|
allowsSelection: I,
|
|
1029
1008
|
hasAction: K
|
|
1030
1009
|
};
|
|
1031
1010
|
}
|
|
1032
|
-
function
|
|
1033
|
-
let { heading: e, "aria-label": t } = n, l =
|
|
1011
|
+
function $i(n) {
|
|
1012
|
+
let { heading: e, "aria-label": t } = n, l = re();
|
|
1034
1013
|
return {
|
|
1035
1014
|
itemProps: {
|
|
1036
1015
|
role: "presentation"
|
|
@@ -1049,7 +1028,7 @@ function Ki(n) {
|
|
|
1049
1028
|
}
|
|
1050
1029
|
};
|
|
1051
1030
|
}
|
|
1052
|
-
var
|
|
1031
|
+
var ue = { exports: {} }, we = {};
|
|
1053
1032
|
/**
|
|
1054
1033
|
* @license React
|
|
1055
1034
|
* use-sync-external-store-shim.production.js
|
|
@@ -1059,48 +1038,48 @@ var de = { exports: {} }, Ee = {};
|
|
|
1059
1038
|
* This source code is licensed under the MIT license found in the
|
|
1060
1039
|
* LICENSE file in the root directory of this source tree.
|
|
1061
1040
|
*/
|
|
1062
|
-
var
|
|
1063
|
-
function
|
|
1064
|
-
if (
|
|
1065
|
-
|
|
1066
|
-
var n =
|
|
1067
|
-
function e(
|
|
1068
|
-
return
|
|
1041
|
+
var it;
|
|
1042
|
+
function mi() {
|
|
1043
|
+
if (it) return we;
|
|
1044
|
+
it = 1;
|
|
1045
|
+
var n = m;
|
|
1046
|
+
function e(h, d) {
|
|
1047
|
+
return h === d && (h !== 0 || 1 / h === 1 / d) || h !== h && d !== d;
|
|
1069
1048
|
}
|
|
1070
1049
|
var t = typeof Object.is == "function" ? Object.is : e, l = n.useState, i = n.useEffect, o = n.useLayoutEffect, r = n.useDebugValue;
|
|
1071
|
-
function s(
|
|
1072
|
-
var
|
|
1050
|
+
function s(h, d) {
|
|
1051
|
+
var y = d(), b = l({ inst: { value: y, getSnapshot: d } }), x = b[0].inst, g = b[1];
|
|
1073
1052
|
return o(
|
|
1074
1053
|
function() {
|
|
1075
|
-
x.value =
|
|
1054
|
+
x.value = y, x.getSnapshot = d, a(x) && g({ inst: x });
|
|
1076
1055
|
},
|
|
1077
|
-
[
|
|
1056
|
+
[h, y, d]
|
|
1078
1057
|
), i(
|
|
1079
1058
|
function() {
|
|
1080
|
-
return a(x) && g({ inst: x }),
|
|
1059
|
+
return a(x) && g({ inst: x }), h(function() {
|
|
1081
1060
|
a(x) && g({ inst: x });
|
|
1082
1061
|
});
|
|
1083
1062
|
},
|
|
1084
|
-
[
|
|
1085
|
-
), r(
|
|
1063
|
+
[h]
|
|
1064
|
+
), r(y), y;
|
|
1086
1065
|
}
|
|
1087
|
-
function a(
|
|
1088
|
-
var d =
|
|
1089
|
-
|
|
1066
|
+
function a(h) {
|
|
1067
|
+
var d = h.getSnapshot;
|
|
1068
|
+
h = h.value;
|
|
1090
1069
|
try {
|
|
1091
|
-
var
|
|
1092
|
-
return !t(
|
|
1070
|
+
var y = d();
|
|
1071
|
+
return !t(h, y);
|
|
1093
1072
|
} catch {
|
|
1094
1073
|
return !0;
|
|
1095
1074
|
}
|
|
1096
1075
|
}
|
|
1097
|
-
function c(
|
|
1076
|
+
function c(h, d) {
|
|
1098
1077
|
return d();
|
|
1099
1078
|
}
|
|
1100
|
-
var
|
|
1101
|
-
return
|
|
1079
|
+
var v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? c : s;
|
|
1080
|
+
return we.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : v, we;
|
|
1102
1081
|
}
|
|
1103
|
-
var
|
|
1082
|
+
var Ce = {};
|
|
1104
1083
|
/**
|
|
1105
1084
|
* @license React
|
|
1106
1085
|
* use-sync-external-store-shim.development.js
|
|
@@ -1110,77 +1089,77 @@ var Pe = {};
|
|
|
1110
1089
|
* This source code is licensed under the MIT license found in the
|
|
1111
1090
|
* LICENSE file in the root directory of this source tree.
|
|
1112
1091
|
*/
|
|
1113
|
-
var
|
|
1114
|
-
function
|
|
1115
|
-
return
|
|
1116
|
-
function n(
|
|
1117
|
-
return
|
|
1092
|
+
var nt;
|
|
1093
|
+
function xi() {
|
|
1094
|
+
return nt || (nt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1095
|
+
function n(y, b) {
|
|
1096
|
+
return y === b && (y !== 0 || 1 / y === 1 / b) || y !== y && b !== b;
|
|
1118
1097
|
}
|
|
1119
|
-
function e(
|
|
1120
|
-
|
|
1098
|
+
function e(y, b) {
|
|
1099
|
+
v || i.startTransition === void 0 || (v = !0, console.error(
|
|
1121
1100
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
1122
1101
|
));
|
|
1123
1102
|
var x = b();
|
|
1124
|
-
if (!
|
|
1103
|
+
if (!h) {
|
|
1125
1104
|
var g = b();
|
|
1126
1105
|
o(x, g) || (console.error(
|
|
1127
1106
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
1128
|
-
),
|
|
1107
|
+
), h = !0);
|
|
1129
1108
|
}
|
|
1130
1109
|
g = r({
|
|
1131
1110
|
inst: { value: x, getSnapshot: b }
|
|
1132
1111
|
});
|
|
1133
|
-
var
|
|
1112
|
+
var $ = g[0].inst, S = g[1];
|
|
1134
1113
|
return a(
|
|
1135
1114
|
function() {
|
|
1136
|
-
|
|
1115
|
+
$.value = x, $.getSnapshot = b, t($) && S({ inst: $ });
|
|
1137
1116
|
},
|
|
1138
|
-
[
|
|
1117
|
+
[y, x, b]
|
|
1139
1118
|
), s(
|
|
1140
1119
|
function() {
|
|
1141
|
-
return t(
|
|
1142
|
-
t(
|
|
1120
|
+
return t($) && S({ inst: $ }), y(function() {
|
|
1121
|
+
t($) && S({ inst: $ });
|
|
1143
1122
|
});
|
|
1144
1123
|
},
|
|
1145
|
-
[
|
|
1124
|
+
[y]
|
|
1146
1125
|
), c(x), x;
|
|
1147
1126
|
}
|
|
1148
|
-
function t(
|
|
1149
|
-
var b =
|
|
1150
|
-
|
|
1127
|
+
function t(y) {
|
|
1128
|
+
var b = y.getSnapshot;
|
|
1129
|
+
y = y.value;
|
|
1151
1130
|
try {
|
|
1152
1131
|
var x = b();
|
|
1153
|
-
return !o(
|
|
1132
|
+
return !o(y, x);
|
|
1154
1133
|
} catch {
|
|
1155
1134
|
return !0;
|
|
1156
1135
|
}
|
|
1157
1136
|
}
|
|
1158
|
-
function l(
|
|
1137
|
+
function l(y, b) {
|
|
1159
1138
|
return b();
|
|
1160
1139
|
}
|
|
1161
1140
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1162
|
-
var i =
|
|
1163
|
-
|
|
1164
|
-
}()),
|
|
1141
|
+
var i = m, o = typeof Object.is == "function" ? Object.is : n, r = i.useState, s = i.useEffect, a = i.useLayoutEffect, c = i.useDebugValue, v = !1, h = !1, d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? l : e;
|
|
1142
|
+
Ce.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1143
|
+
}()), Ce;
|
|
1165
1144
|
}
|
|
1166
|
-
var
|
|
1167
|
-
function
|
|
1168
|
-
return
|
|
1145
|
+
var ot;
|
|
1146
|
+
function Si() {
|
|
1147
|
+
return ot || (ot = 1, process.env.NODE_ENV === "production" ? ue.exports = mi() : ue.exports = xi()), ue.exports;
|
|
1169
1148
|
}
|
|
1170
|
-
var
|
|
1171
|
-
class
|
|
1149
|
+
var Ki = /* @__PURE__ */ Si();
|
|
1150
|
+
class Ne {
|
|
1172
1151
|
get childNodes() {
|
|
1173
1152
|
throw new Error("childNodes is not supported");
|
|
1174
1153
|
}
|
|
1175
1154
|
clone() {
|
|
1176
|
-
let e = new
|
|
1155
|
+
let e = new Ne(this.type, this.key);
|
|
1177
1156
|
return e.value = this.value, e.level = this.level, e.hasChildNodes = this.hasChildNodes, e.rendered = this.rendered, e.textValue = this.textValue, e["aria-label"] = this["aria-label"], e.index = this.index, e.parentKey = this.parentKey, e.prevKey = this.prevKey, e.nextKey = this.nextKey, e.firstChildKey = this.firstChildKey, e.lastChildKey = this.lastChildKey, e.props = this.props, e.render = this.render, e.colSpan = this.colSpan, e.colIndex = this.colIndex, e;
|
|
1178
1157
|
}
|
|
1179
1158
|
constructor(e, t) {
|
|
1180
1159
|
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = e, this.key = t;
|
|
1181
1160
|
}
|
|
1182
1161
|
}
|
|
1183
|
-
class
|
|
1162
|
+
class ze {
|
|
1184
1163
|
get size() {
|
|
1185
1164
|
return this.keyMap.size;
|
|
1186
1165
|
}
|
|
@@ -1260,11 +1239,11 @@ class Ue {
|
|
|
1260
1239
|
// TODO: an alternative is to simply walk the collection and add all item nodes that match the filter and any sections/separators we encounter
|
|
1261
1240
|
// to an array, then walk that new array and fix all the next/Prev keys while adding them to the new collection
|
|
1262
1241
|
UNSTABLE_filter(e) {
|
|
1263
|
-
let t = new
|
|
1242
|
+
let t = new ze(), l = null;
|
|
1264
1243
|
for (let i of this)
|
|
1265
1244
|
if (i.type === "section" && i.hasChildNodes) {
|
|
1266
1245
|
let o = i.clone(), r = null;
|
|
1267
|
-
for (let s of this.getChildren(i.key)) if (
|
|
1246
|
+
for (let s of this.getChildren(i.key)) if (rt(s, e, this, t)) {
|
|
1268
1247
|
let a = s.clone();
|
|
1269
1248
|
r == null && (o.firstChildKey = a.key), t.firstKey == null && (t.firstKey = o.key), r && r.parentKey === a.parentKey ? (r.nextKey = a.key, a.prevKey = r.key) : a.prevKey = null, a.nextKey = null, t.addNode(a), r = a;
|
|
1270
1249
|
}
|
|
@@ -1274,7 +1253,7 @@ class Ue {
|
|
|
1274
1253
|
o.nextKey = null, (l == null ? void 0 : l.type) === "section" && (l.nextKey = o.key, o.prevKey = l.key, l = o, t.addNode(o));
|
|
1275
1254
|
} else {
|
|
1276
1255
|
let o = i.clone();
|
|
1277
|
-
|
|
1256
|
+
rt(o, e, this, t) && (t.firstKey == null && (t.firstKey = o.key), l != null && l.type !== "section" && l.type !== "separator" && l.parentKey === o.parentKey ? (l.nextKey = o.key, o.prevKey = l.key) : o.prevKey = null, o.nextKey = null, t.addNode(o), l = o);
|
|
1278
1257
|
}
|
|
1279
1258
|
if ((l == null ? void 0 : l.type) === "separator" && l.nextKey === null) {
|
|
1280
1259
|
let i;
|
|
@@ -1286,7 +1265,7 @@ class Ue {
|
|
|
1286
1265
|
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1;
|
|
1287
1266
|
}
|
|
1288
1267
|
}
|
|
1289
|
-
function
|
|
1268
|
+
function rt(n, e, t, l) {
|
|
1290
1269
|
if (n.type === "subdialogtrigger" || n.type === "submenutrigger") {
|
|
1291
1270
|
let i = [
|
|
1292
1271
|
...t.getChildren(n.key)
|
|
@@ -1297,7 +1276,7 @@ function st(n, e, t, l) {
|
|
|
1297
1276
|
} else return !1;
|
|
1298
1277
|
} else return n.type === "header" ? !0 : e(n.textValue);
|
|
1299
1278
|
}
|
|
1300
|
-
class
|
|
1279
|
+
class It {
|
|
1301
1280
|
*[Symbol.iterator]() {
|
|
1302
1281
|
let e = this.firstChild;
|
|
1303
1282
|
for (; e; )
|
|
@@ -1384,7 +1363,7 @@ class Ft {
|
|
|
1384
1363
|
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
|
|
1385
1364
|
}
|
|
1386
1365
|
}
|
|
1387
|
-
class le extends
|
|
1366
|
+
class le extends It {
|
|
1388
1367
|
get index() {
|
|
1389
1368
|
return this._index;
|
|
1390
1369
|
}
|
|
@@ -1413,11 +1392,11 @@ class le extends Ft {
|
|
|
1413
1392
|
o.firstChildKey = (a = (t = this.firstVisibleChild) === null || t === void 0 ? void 0 : t.node.key) !== null && a !== void 0 ? a : null;
|
|
1414
1393
|
var c;
|
|
1415
1394
|
if (o.lastChildKey = (c = (l = this.lastVisibleChild) === null || l === void 0 ? void 0 : l.node.key) !== null && c !== void 0 ? c : null, (o.colSpan != null || o.colIndex != null) && i) {
|
|
1416
|
-
var
|
|
1417
|
-
let d = ((
|
|
1395
|
+
var v, h;
|
|
1396
|
+
let d = ((v = o.colIndex) !== null && v !== void 0 ? v : o.index) + ((h = o.colSpan) !== null && h !== void 0 ? h : 1);
|
|
1418
1397
|
if (d !== i.node.colIndex) {
|
|
1419
|
-
let
|
|
1420
|
-
|
|
1398
|
+
let y = i.getMutableNode();
|
|
1399
|
+
y.colIndex = d;
|
|
1421
1400
|
}
|
|
1422
1401
|
}
|
|
1423
1402
|
}
|
|
@@ -1455,10 +1434,10 @@ class le extends Ft {
|
|
|
1455
1434
|
removeAttribute() {
|
|
1456
1435
|
}
|
|
1457
1436
|
constructor(e, t) {
|
|
1458
|
-
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.hasSetProps = !1, this.isHidden = !1, this.node = new
|
|
1437
|
+
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.hasSetProps = !1, this.isHidden = !1, this.node = new Ne(e, `react-aria-${++t.nodeId}`);
|
|
1459
1438
|
}
|
|
1460
1439
|
}
|
|
1461
|
-
class
|
|
1440
|
+
class Di extends It {
|
|
1462
1441
|
get isConnected() {
|
|
1463
1442
|
return this.isMounted;
|
|
1464
1443
|
}
|
|
@@ -1510,27 +1489,27 @@ class Pi extends Ft {
|
|
|
1510
1489
|
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.isMounted = !0, this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
|
|
1511
1490
|
}
|
|
1512
1491
|
}
|
|
1513
|
-
function
|
|
1492
|
+
function Ft(n) {
|
|
1514
1493
|
let { children: e, items: t, idScope: l, addIdAndValue: i, dependencies: o = [] } = n, r = T(() => /* @__PURE__ */ new WeakMap(), o);
|
|
1515
1494
|
return T(() => {
|
|
1516
1495
|
if (t && typeof e == "function") {
|
|
1517
1496
|
let c = [];
|
|
1518
|
-
for (let
|
|
1519
|
-
let
|
|
1520
|
-
if (!
|
|
1521
|
-
|
|
1497
|
+
for (let v of t) {
|
|
1498
|
+
let h = r.get(v);
|
|
1499
|
+
if (!h) {
|
|
1500
|
+
h = e(v);
|
|
1522
1501
|
var s, a;
|
|
1523
|
-
let d = (a = (s =
|
|
1502
|
+
let d = (a = (s = h.props.id) !== null && s !== void 0 ? s : v.key) !== null && a !== void 0 ? a : v.id;
|
|
1524
1503
|
if (d == null) throw new Error("Could not determine key for item");
|
|
1525
|
-
l && (d = l + ":" + d),
|
|
1504
|
+
l && (d = l + ":" + d), h = ct(h, i ? {
|
|
1526
1505
|
key: d,
|
|
1527
1506
|
id: d,
|
|
1528
|
-
value:
|
|
1507
|
+
value: v
|
|
1529
1508
|
} : {
|
|
1530
1509
|
key: d
|
|
1531
|
-
}), r.set(
|
|
1510
|
+
}), r.set(v, h);
|
|
1532
1511
|
}
|
|
1533
|
-
c.push(
|
|
1512
|
+
c.push(h);
|
|
1534
1513
|
}
|
|
1535
1514
|
return c;
|
|
1536
1515
|
} else if (typeof e != "function") return e;
|
|
@@ -1542,33 +1521,33 @@ function Mt(n) {
|
|
|
1542
1521
|
i
|
|
1543
1522
|
]);
|
|
1544
1523
|
}
|
|
1545
|
-
const
|
|
1546
|
-
function
|
|
1547
|
-
if (
|
|
1524
|
+
const Mt = /* @__PURE__ */ O(!1), ie = /* @__PURE__ */ O(null);
|
|
1525
|
+
function wi(n) {
|
|
1526
|
+
if (R(ie))
|
|
1548
1527
|
return n.content;
|
|
1549
|
-
let { collection: t, document: l } =
|
|
1550
|
-
return /* @__PURE__ */
|
|
1528
|
+
let { collection: t, document: l } = ki(n.createCollection);
|
|
1529
|
+
return /* @__PURE__ */ m.createElement(m.Fragment, null, /* @__PURE__ */ m.createElement(Pl, null, /* @__PURE__ */ m.createElement(ie.Provider, {
|
|
1551
1530
|
value: l
|
|
1552
|
-
}, n.content)), /* @__PURE__ */
|
|
1531
|
+
}, n.content)), /* @__PURE__ */ m.createElement(Ci, {
|
|
1553
1532
|
render: n.children,
|
|
1554
1533
|
collection: t
|
|
1555
1534
|
}));
|
|
1556
1535
|
}
|
|
1557
|
-
function
|
|
1536
|
+
function Ci({ collection: n, render: e }) {
|
|
1558
1537
|
return e(n);
|
|
1559
1538
|
}
|
|
1560
|
-
function
|
|
1561
|
-
let l =
|
|
1539
|
+
function Ei(n, e, t) {
|
|
1540
|
+
let l = yt(), i = P(l);
|
|
1562
1541
|
i.current = l;
|
|
1563
1542
|
let o = J(() => i.current ? t() : e(), [
|
|
1564
1543
|
e,
|
|
1565
1544
|
t
|
|
1566
1545
|
]);
|
|
1567
|
-
return
|
|
1546
|
+
return Ki.useSyncExternalStore(n, o);
|
|
1568
1547
|
}
|
|
1569
|
-
const
|
|
1570
|
-
function
|
|
1571
|
-
let [e] = te(() => new
|
|
1548
|
+
const Pi = typeof m.useSyncExternalStore == "function" ? m.useSyncExternalStore : Ei;
|
|
1549
|
+
function ki(n) {
|
|
1550
|
+
let [e] = te(() => new Di((n == null ? void 0 : n()) || new ze())), t = J((r) => e.subscribe(r), [
|
|
1572
1551
|
e
|
|
1573
1552
|
]), l = J(() => {
|
|
1574
1553
|
let r = e.getCollection();
|
|
@@ -1577,8 +1556,8 @@ function Ti(n) {
|
|
|
1577
1556
|
e
|
|
1578
1557
|
]), i = J(() => (e.isSSR = !0, e.getCollection()), [
|
|
1579
1558
|
e
|
|
1580
|
-
]), o =
|
|
1581
|
-
return
|
|
1559
|
+
]), o = Pi(t, l, i);
|
|
1560
|
+
return Ee(() => (e.isMounted = !0, () => {
|
|
1582
1561
|
e.isMounted = !1;
|
|
1583
1562
|
}), [
|
|
1584
1563
|
e
|
|
@@ -1587,8 +1566,8 @@ function Ti(n) {
|
|
|
1587
1566
|
document: e
|
|
1588
1567
|
};
|
|
1589
1568
|
}
|
|
1590
|
-
const
|
|
1591
|
-
function
|
|
1569
|
+
const Re = /* @__PURE__ */ O(null);
|
|
1570
|
+
function Tt(n, e, t, l, i, o) {
|
|
1592
1571
|
let r = J((a) => {
|
|
1593
1572
|
a == null || a.setProps(e, t, l, o);
|
|
1594
1573
|
}, [
|
|
@@ -1596,81 +1575,81 @@ function Lt(n, e, t, l, i, o) {
|
|
|
1596
1575
|
t,
|
|
1597
1576
|
l,
|
|
1598
1577
|
o
|
|
1599
|
-
]), s =
|
|
1578
|
+
]), s = R(Re);
|
|
1600
1579
|
if (s) {
|
|
1601
1580
|
let a = s.ownerDocument.nodesByProps.get(e);
|
|
1602
|
-
return a || (a = s.ownerDocument.createElement(n), a.setProps(e, t, l, o), s.appendChild(a), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(e, a)), i ? /* @__PURE__ */
|
|
1581
|
+
return a || (a = s.ownerDocument.createElement(n), a.setProps(e, t, l, o), s.appendChild(a), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(e, a)), i ? /* @__PURE__ */ m.createElement(Re.Provider, {
|
|
1603
1582
|
value: a
|
|
1604
1583
|
}, i) : null;
|
|
1605
1584
|
}
|
|
1606
|
-
return /* @__PURE__ */
|
|
1585
|
+
return /* @__PURE__ */ m.createElement(n, {
|
|
1607
1586
|
ref: r
|
|
1608
1587
|
}, i);
|
|
1609
1588
|
}
|
|
1610
|
-
function
|
|
1611
|
-
let t = ({ node: i }) => e(i.props, i.props.ref, i), l =
|
|
1612
|
-
let r =
|
|
1613
|
-
if (!
|
|
1589
|
+
function Lt(n, e) {
|
|
1590
|
+
let t = ({ node: i }) => e(i.props, i.props.ref, i), l = ne((i, o) => {
|
|
1591
|
+
let r = R(We);
|
|
1592
|
+
if (!R(Mt)) {
|
|
1614
1593
|
if (e.length >= 3) throw new Error(e.name + " cannot be rendered outside a collection.");
|
|
1615
1594
|
return e(i, o);
|
|
1616
1595
|
}
|
|
1617
|
-
return
|
|
1596
|
+
return Tt(n, i, o, "children" in i ? i.children : null, null, (a) => (
|
|
1618
1597
|
// Forward FocusableContext to real DOM tree so tooltips work.
|
|
1619
|
-
/* @__PURE__ */
|
|
1598
|
+
/* @__PURE__ */ m.createElement(We.Provider, {
|
|
1620
1599
|
value: r
|
|
1621
|
-
}, /* @__PURE__ */
|
|
1600
|
+
}, /* @__PURE__ */ m.createElement(t, {
|
|
1622
1601
|
node: a
|
|
1623
1602
|
}))
|
|
1624
1603
|
));
|
|
1625
1604
|
});
|
|
1626
1605
|
return l.displayName = e.name, l;
|
|
1627
1606
|
}
|
|
1628
|
-
function
|
|
1629
|
-
let l = ({ node: o }) => e(o.props, o.props.ref, o), i =
|
|
1607
|
+
function Ii(n, e, t = At) {
|
|
1608
|
+
let l = ({ node: o }) => e(o.props, o.props.ref, o), i = ne((o, r) => {
|
|
1630
1609
|
let s = t(o);
|
|
1631
1610
|
var a;
|
|
1632
|
-
return (a =
|
|
1611
|
+
return (a = Tt(n, o, r, null, s, (c) => /* @__PURE__ */ m.createElement(l, {
|
|
1633
1612
|
node: c
|
|
1634
|
-
}))) !== null && a !== void 0 ? a : /* @__PURE__ */
|
|
1613
|
+
}))) !== null && a !== void 0 ? a : /* @__PURE__ */ m.createElement(m.Fragment, null);
|
|
1635
1614
|
});
|
|
1636
1615
|
return i.displayName = e.name, i;
|
|
1637
1616
|
}
|
|
1638
1617
|
function At(n) {
|
|
1639
|
-
return
|
|
1618
|
+
return Ft({
|
|
1640
1619
|
...n,
|
|
1641
1620
|
addIdAndValue: !0
|
|
1642
1621
|
});
|
|
1643
1622
|
}
|
|
1644
|
-
const
|
|
1645
|
-
function
|
|
1646
|
-
let e =
|
|
1623
|
+
const st = /* @__PURE__ */ O(null);
|
|
1624
|
+
function Fi(n) {
|
|
1625
|
+
let e = R(st), t = ((e == null ? void 0 : e.dependencies) || []).concat(n.dependencies), l = n.idScope || (e == null ? void 0 : e.idScope), i = At({
|
|
1647
1626
|
...n,
|
|
1648
1627
|
idScope: l,
|
|
1649
1628
|
dependencies: t
|
|
1650
1629
|
});
|
|
1651
|
-
return
|
|
1630
|
+
return R(ie) && (i = /* @__PURE__ */ m.createElement(Mi, null, i)), e = T(() => ({
|
|
1652
1631
|
dependencies: t,
|
|
1653
1632
|
idScope: l
|
|
1654
1633
|
}), [
|
|
1655
1634
|
l,
|
|
1656
1635
|
...t
|
|
1657
|
-
]), /* @__PURE__ */
|
|
1636
|
+
]), /* @__PURE__ */ m.createElement(st.Provider, {
|
|
1658
1637
|
value: e
|
|
1659
1638
|
}, i);
|
|
1660
1639
|
}
|
|
1661
|
-
function
|
|
1662
|
-
let e =
|
|
1640
|
+
function Mi({ children: n }) {
|
|
1641
|
+
let e = R(ie), t = T(() => /* @__PURE__ */ m.createElement(ie.Provider, {
|
|
1663
1642
|
value: null
|
|
1664
|
-
}, /* @__PURE__ */
|
|
1643
|
+
}, /* @__PURE__ */ m.createElement(Mt.Provider, {
|
|
1665
1644
|
value: !0
|
|
1666
1645
|
}, n)), [
|
|
1667
1646
|
n
|
|
1668
1647
|
]);
|
|
1669
|
-
return
|
|
1648
|
+
return yt() ? /* @__PURE__ */ m.createElement(Re.Provider, {
|
|
1670
1649
|
value: e
|
|
1671
|
-
}, t) : /* @__PURE__ */
|
|
1650
|
+
}, t) : /* @__PURE__ */ Fl(t, e);
|
|
1672
1651
|
}
|
|
1673
|
-
class
|
|
1652
|
+
class at {
|
|
1674
1653
|
*[Symbol.iterator]() {
|
|
1675
1654
|
yield* this.iterable;
|
|
1676
1655
|
}
|
|
@@ -1728,31 +1707,31 @@ class j extends Set {
|
|
|
1728
1707
|
super(e), e instanceof j ? (this.anchorKey = t ?? e.anchorKey, this.currentKey = l ?? e.currentKey) : (this.anchorKey = t ?? null, this.currentKey = l ?? null);
|
|
1729
1708
|
}
|
|
1730
1709
|
}
|
|
1731
|
-
function
|
|
1710
|
+
function Ti(n, e) {
|
|
1732
1711
|
if (n.size !== e.size) return !1;
|
|
1733
1712
|
for (let t of n)
|
|
1734
1713
|
if (!e.has(t)) return !1;
|
|
1735
1714
|
return !0;
|
|
1736
1715
|
}
|
|
1737
|
-
function
|
|
1738
|
-
let { selectionMode: e = "none", disallowEmptySelection: t = !1, allowDuplicateSelectionEvents: l, selectionBehavior: i = "toggle", disabledBehavior: o = "all" } = n, r =
|
|
1716
|
+
function Li(n) {
|
|
1717
|
+
let { selectionMode: e = "none", disallowEmptySelection: t = !1, allowDuplicateSelectionEvents: l, selectionBehavior: i = "toggle", disabledBehavior: o = "all" } = n, r = P(!1), [, s] = te(!1), a = P(null), c = P(null), [, v] = te(null), h = T(() => ut(n.selectedKeys), [
|
|
1739
1718
|
n.selectedKeys
|
|
1740
|
-
]), d = T(() =>
|
|
1719
|
+
]), d = T(() => ut(n.defaultSelectedKeys, new j()), [
|
|
1741
1720
|
n.defaultSelectedKeys
|
|
1742
|
-
]), [
|
|
1721
|
+
]), [y, b] = $t(h, d, n.onSelectionChange), x = T(() => n.disabledKeys ? new Set(n.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
1743
1722
|
n.disabledKeys
|
|
1744
|
-
]), [g,
|
|
1745
|
-
i === "replace" && g === "toggle" && typeof
|
|
1746
|
-
let S =
|
|
1723
|
+
]), [g, $] = te(i);
|
|
1724
|
+
i === "replace" && g === "toggle" && typeof y == "object" && y.size === 0 && $("replace");
|
|
1725
|
+
let S = P(i);
|
|
1747
1726
|
return Y(() => {
|
|
1748
|
-
i !== S.current && (
|
|
1727
|
+
i !== S.current && ($(i), S.current = i);
|
|
1749
1728
|
}, [
|
|
1750
1729
|
i
|
|
1751
1730
|
]), {
|
|
1752
1731
|
selectionMode: e,
|
|
1753
1732
|
disallowEmptySelection: t,
|
|
1754
1733
|
selectionBehavior: g,
|
|
1755
|
-
setSelectionBehavior:
|
|
1734
|
+
setSelectionBehavior: $,
|
|
1756
1735
|
get isFocused() {
|
|
1757
1736
|
return r.current;
|
|
1758
1737
|
},
|
|
@@ -1766,20 +1745,20 @@ function Vi(n) {
|
|
|
1766
1745
|
return c.current;
|
|
1767
1746
|
},
|
|
1768
1747
|
setFocusedKey(w, k = "first") {
|
|
1769
|
-
a.current = w, c.current = k,
|
|
1748
|
+
a.current = w, c.current = k, v(w);
|
|
1770
1749
|
},
|
|
1771
|
-
selectedKeys:
|
|
1750
|
+
selectedKeys: y,
|
|
1772
1751
|
setSelectedKeys(w) {
|
|
1773
|
-
(l || !
|
|
1752
|
+
(l || !Ti(w, y)) && b(w);
|
|
1774
1753
|
},
|
|
1775
1754
|
disabledKeys: x,
|
|
1776
1755
|
disabledBehavior: o
|
|
1777
1756
|
};
|
|
1778
1757
|
}
|
|
1779
|
-
function
|
|
1758
|
+
function ut(n, e) {
|
|
1780
1759
|
return n ? n === "all" ? "all" : new j(n) : e;
|
|
1781
1760
|
}
|
|
1782
|
-
class
|
|
1761
|
+
class Ue {
|
|
1783
1762
|
/**
|
|
1784
1763
|
* The type of selection that is allowed in the collection.
|
|
1785
1764
|
*/
|
|
@@ -1873,7 +1852,7 @@ class qe {
|
|
|
1873
1852
|
let e = null;
|
|
1874
1853
|
for (let l of this.state.selectedKeys) {
|
|
1875
1854
|
let i = this.collection.getItem(l);
|
|
1876
|
-
(!e || i &&
|
|
1855
|
+
(!e || i && De(this.collection, i, e) < 0) && (e = i);
|
|
1877
1856
|
}
|
|
1878
1857
|
var t;
|
|
1879
1858
|
return (t = e == null ? void 0 : e.key) !== null && t !== void 0 ? t : null;
|
|
@@ -1882,7 +1861,7 @@ class qe {
|
|
|
1882
1861
|
let e = null;
|
|
1883
1862
|
for (let l of this.state.selectedKeys) {
|
|
1884
1863
|
let i = this.collection.getItem(l);
|
|
1885
|
-
(!e || i &&
|
|
1864
|
+
(!e || i && De(this.collection, i, e) > 0) && (e = i);
|
|
1886
1865
|
}
|
|
1887
1866
|
var t;
|
|
1888
1867
|
return (t = e == null ? void 0 : e.key) !== null && t !== void 0 ? t : null;
|
|
@@ -1921,7 +1900,7 @@ class qe {
|
|
|
1921
1900
|
}
|
|
1922
1901
|
getKeyRange(e, t) {
|
|
1923
1902
|
let l = this.collection.getItem(e), i = this.collection.getItem(t);
|
|
1924
|
-
return l && i ?
|
|
1903
|
+
return l && i ? De(this.collection, l, i) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
|
|
1925
1904
|
}
|
|
1926
1905
|
getKeyRangeInternal(e, t) {
|
|
1927
1906
|
var l;
|
|
@@ -1987,7 +1966,7 @@ class qe {
|
|
|
1987
1966
|
let r = this.collection.getItem(l);
|
|
1988
1967
|
(r == null ? void 0 : r.type) === "item" && e.push(l);
|
|
1989
1968
|
var o;
|
|
1990
|
-
r != null && r.hasChildNodes && (this.allowsCellSelection || r.type !== "item") && t((o = (i =
|
|
1969
|
+
r != null && r.hasChildNodes && (this.allowsCellSelection || r.type !== "item") && t((o = (i = vi(kt(r, this.collection))) === null || i === void 0 ? void 0 : i.key) !== null && o !== void 0 ? o : null);
|
|
1991
1970
|
}
|
|
1992
1971
|
l = this.collection.getKeyAfter(l);
|
|
1993
1972
|
}
|
|
@@ -2047,7 +2026,7 @@ class qe {
|
|
|
2047
2026
|
return (t = this.collection.getItem(e)) === null || t === void 0 ? void 0 : t.props;
|
|
2048
2027
|
}
|
|
2049
2028
|
withCollection(e) {
|
|
2050
|
-
return new
|
|
2029
|
+
return new Ue(e, this.state, {
|
|
2051
2030
|
allowsCellSelection: this.allowsCellSelection,
|
|
2052
2031
|
layoutDelegate: this.layoutDelegate || void 0
|
|
2053
2032
|
});
|
|
@@ -2058,16 +2037,16 @@ class qe {
|
|
|
2058
2037
|
this.allowsCellSelection = (i = l == null ? void 0 : l.allowsCellSelection) !== null && i !== void 0 ? i : !1, this._isSelectAll = null, this.layoutDelegate = (l == null ? void 0 : l.layoutDelegate) || null;
|
|
2059
2038
|
}
|
|
2060
2039
|
}
|
|
2061
|
-
function
|
|
2062
|
-
let { filter: e, layoutDelegate: t } = n, l =
|
|
2040
|
+
function Ai(n) {
|
|
2041
|
+
let { filter: e, layoutDelegate: t } = n, l = Li(n), i = T(() => n.disabledKeys ? new Set(n.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
2063
2042
|
n.disabledKeys
|
|
2064
|
-
]), o = J((c) => e ? new
|
|
2043
|
+
]), o = J((c) => e ? new at(e(c)) : new at(c), [
|
|
2065
2044
|
e
|
|
2066
2045
|
]), r = T(() => ({
|
|
2067
2046
|
suppressTextValueWarning: n.suppressTextValueWarning
|
|
2068
2047
|
}), [
|
|
2069
2048
|
n.suppressTextValueWarning
|
|
2070
|
-
]), s =
|
|
2049
|
+
]), s = pi(n, o, r), a = T(() => new Ue(s, l, {
|
|
2071
2050
|
layoutDelegate: t
|
|
2072
2051
|
}), [
|
|
2073
2052
|
s,
|
|
@@ -2080,7 +2059,7 @@ function Oi(n) {
|
|
|
2080
2059
|
selectionManager: a
|
|
2081
2060
|
};
|
|
2082
2061
|
}
|
|
2083
|
-
function
|
|
2062
|
+
function Ri(n, e) {
|
|
2084
2063
|
let t = T(() => e ? n.collection.UNSTABLE_filter(e) : n.collection, [
|
|
2085
2064
|
n.collection,
|
|
2086
2065
|
e
|
|
@@ -2092,24 +2071,24 @@ function Ni(n, e) {
|
|
|
2092
2071
|
};
|
|
2093
2072
|
}
|
|
2094
2073
|
function Rt(n, e) {
|
|
2095
|
-
const t =
|
|
2074
|
+
const t = P(null);
|
|
2096
2075
|
Y(() => {
|
|
2097
2076
|
if (e.focusedKey != null && !n.getItem(e.focusedKey) && t.current) {
|
|
2098
|
-
const
|
|
2077
|
+
const v = t.current.getItem(e.focusedKey), h = [
|
|
2099
2078
|
...t.current.getKeys()
|
|
2100
|
-
].map((
|
|
2101
|
-
const S = t.current.getItem(
|
|
2079
|
+
].map(($) => {
|
|
2080
|
+
const S = t.current.getItem($);
|
|
2102
2081
|
return (S == null ? void 0 : S.type) === "item" ? S : null;
|
|
2103
|
-
}).filter((
|
|
2082
|
+
}).filter(($) => $ !== null), d = [
|
|
2104
2083
|
...n.getKeys()
|
|
2105
|
-
].map((
|
|
2106
|
-
const S = n.getItem(
|
|
2084
|
+
].map(($) => {
|
|
2085
|
+
const S = n.getItem($);
|
|
2107
2086
|
return (S == null ? void 0 : S.type) === "item" ? S : null;
|
|
2108
|
-
}).filter((
|
|
2087
|
+
}).filter(($) => $ !== null);
|
|
2109
2088
|
var l, i;
|
|
2110
|
-
const
|
|
2089
|
+
const y = ((l = h == null ? void 0 : h.length) !== null && l !== void 0 ? l : 0) - ((i = d == null ? void 0 : d.length) !== null && i !== void 0 ? i : 0);
|
|
2111
2090
|
var o, r, s;
|
|
2112
|
-
let b = Math.min(
|
|
2091
|
+
let b = Math.min(y > 1 ? Math.max(((o = v == null ? void 0 : v.index) !== null && o !== void 0 ? o : 0) - y + 1, 0) : (r = v == null ? void 0 : v.index) !== null && r !== void 0 ? r : 0, ((s = d == null ? void 0 : d.length) !== null && s !== void 0 ? s : 0) - 1), x = null, g = !1;
|
|
2113
2092
|
for (; b >= 0; ) {
|
|
2114
2093
|
if (!e.isDisabled(d[b].key)) {
|
|
2115
2094
|
x = d[b];
|
|
@@ -2119,7 +2098,7 @@ function Rt(n, e) {
|
|
|
2119
2098
|
else {
|
|
2120
2099
|
g = !0;
|
|
2121
2100
|
var a, c;
|
|
2122
|
-
b > ((a =
|
|
2101
|
+
b > ((a = v == null ? void 0 : v.index) !== null && a !== void 0 ? a : 0) && (b = (c = v == null ? void 0 : v.index) !== null && c !== void 0 ? c : 0), b--;
|
|
2123
2102
|
}
|
|
2124
2103
|
}
|
|
2125
2104
|
e.setFocusedKey(x ? x.key : null);
|
|
@@ -2130,20 +2109,20 @@ function Rt(n, e) {
|
|
|
2130
2109
|
e
|
|
2131
2110
|
]);
|
|
2132
2111
|
}
|
|
2133
|
-
const
|
|
2134
|
-
[e, t] =
|
|
2135
|
-
let { validationBehavior: l } =
|
|
2112
|
+
const Bi = /* @__PURE__ */ O(null), Bt = /* @__PURE__ */ O(null), Ln = /* @__PURE__ */ kl(function(e, t) {
|
|
2113
|
+
[e, t] = ce(e, t, Bt);
|
|
2114
|
+
let { validationBehavior: l } = ft(Tl) || {};
|
|
2136
2115
|
var i, o;
|
|
2137
|
-
let r = (o = (i = e.validationBehavior) !== null && i !== void 0 ? i : l) !== null && o !== void 0 ? o : "native", s =
|
|
2138
|
-
...
|
|
2116
|
+
let r = (o = (i = e.validationBehavior) !== null && i !== void 0 ? i : l) !== null && o !== void 0 ? o : "native", s = P(null), [a, c] = ce({}, s, Pe), [v, h] = ht(!e["aria-label"] && !e["aria-labelledby"]), [d, y] = te("input"), { labelProps: b, inputProps: x, descriptionProps: g, errorMessageProps: $, ...S } = Bl({
|
|
2117
|
+
...pt(e),
|
|
2139
2118
|
inputElementType: d,
|
|
2140
|
-
label:
|
|
2119
|
+
label: h,
|
|
2141
2120
|
validationBehavior: r
|
|
2142
2121
|
}, c), w = J((C) => {
|
|
2143
|
-
c.current = C, C &&
|
|
2122
|
+
c.current = C, C && y(C instanceof HTMLTextAreaElement ? "textarea" : "input");
|
|
2144
2123
|
}, [
|
|
2145
2124
|
c
|
|
2146
|
-
]), k =
|
|
2125
|
+
]), k = oe({
|
|
2147
2126
|
...e,
|
|
2148
2127
|
values: {
|
|
2149
2128
|
isDisabled: e.isDisabled || !1,
|
|
@@ -2152,8 +2131,8 @@ const zi = /* @__PURE__ */ O(null), Bt = /* @__PURE__ */ O(null), Rn = /* @__PUR
|
|
|
2152
2131
|
isRequired: e.isRequired || !1
|
|
2153
2132
|
},
|
|
2154
2133
|
defaultClassName: "react-aria-TextField"
|
|
2155
|
-
}), F =
|
|
2156
|
-
return delete F.id, /* @__PURE__ */
|
|
2134
|
+
}), F = se(e);
|
|
2135
|
+
return delete F.id, /* @__PURE__ */ m.createElement("div", {
|
|
2157
2136
|
...F,
|
|
2158
2137
|
...k,
|
|
2159
2138
|
ref: t,
|
|
@@ -2162,40 +2141,40 @@ const zi = /* @__PURE__ */ O(null), Bt = /* @__PURE__ */ O(null), Rn = /* @__PUR
|
|
|
2162
2141
|
"data-invalid": S.isInvalid || void 0,
|
|
2163
2142
|
"data-readonly": e.isReadOnly || void 0,
|
|
2164
2143
|
"data-required": e.isRequired || void 0
|
|
2165
|
-
}, /* @__PURE__ */
|
|
2144
|
+
}, /* @__PURE__ */ m.createElement(fe, {
|
|
2166
2145
|
values: [
|
|
2167
2146
|
[
|
|
2168
|
-
|
|
2147
|
+
Ll,
|
|
2169
2148
|
{
|
|
2170
2149
|
...b,
|
|
2171
|
-
ref:
|
|
2150
|
+
ref: v
|
|
2172
2151
|
}
|
|
2173
2152
|
],
|
|
2174
2153
|
[
|
|
2175
|
-
|
|
2154
|
+
Pe,
|
|
2176
2155
|
{
|
|
2177
|
-
...
|
|
2156
|
+
...W(x, a),
|
|
2178
2157
|
ref: w
|
|
2179
2158
|
}
|
|
2180
2159
|
],
|
|
2181
2160
|
[
|
|
2182
|
-
|
|
2161
|
+
Rl,
|
|
2183
2162
|
{
|
|
2184
2163
|
...x,
|
|
2185
2164
|
ref: w
|
|
2186
2165
|
}
|
|
2187
2166
|
],
|
|
2188
2167
|
[
|
|
2189
|
-
|
|
2168
|
+
bt,
|
|
2190
2169
|
{
|
|
2191
2170
|
slots: {
|
|
2192
2171
|
description: g,
|
|
2193
|
-
errorMessage:
|
|
2172
|
+
errorMessage: $
|
|
2194
2173
|
}
|
|
2195
2174
|
}
|
|
2196
2175
|
],
|
|
2197
2176
|
[
|
|
2198
|
-
|
|
2177
|
+
Al,
|
|
2199
2178
|
S
|
|
2200
2179
|
]
|
|
2201
2180
|
]
|
|
@@ -2374,66 +2353,66 @@ gl = {
|
|
|
2374
2353
|
"zh-CN": yl,
|
|
2375
2354
|
"zh-TW": bl
|
|
2376
2355
|
};
|
|
2377
|
-
function
|
|
2356
|
+
function Vi(n) {
|
|
2378
2357
|
return n && n.__esModule ? n.default : n;
|
|
2379
2358
|
}
|
|
2380
|
-
function
|
|
2381
|
-
let { inputRef: t, collectionRef: l, filter: i, disableAutoFocusFirst: o = !1 } = n, r =
|
|
2359
|
+
function Oi(n, e) {
|
|
2360
|
+
let { inputRef: t, collectionRef: l, filter: i, disableAutoFocusFirst: o = !1 } = n, r = re(), s = P(void 0), a = P(!1), c = P(null), v = P(null), h = Fe() !== "virtual";
|
|
2382
2361
|
Y(() => () => clearTimeout(s.current), []);
|
|
2383
|
-
let d = ee((
|
|
2384
|
-
!
|
|
2385
|
-
let K =
|
|
2386
|
-
|
|
2362
|
+
let d = ee((p) => {
|
|
2363
|
+
!p.isTrusted && h && t.current && Ie(Be(t.current)) !== t.current && t.current.focus();
|
|
2364
|
+
let K = p.target;
|
|
2365
|
+
p.isTrusted || !K || c.current === K.id || (clearTimeout(s.current), K !== l.current ? a.current ? (c.current = K.id, s.current = setTimeout(() => {
|
|
2387
2366
|
e.setFocusedNodeId(K.id);
|
|
2388
2367
|
}, 500)) : (c.current = K.id, e.setFocusedNodeId(K.id)) : (c.current = null, e.setFocusedNodeId(null)), a.current = !1);
|
|
2389
|
-
}),
|
|
2368
|
+
}), y = J((p) => {
|
|
2390
2369
|
var K;
|
|
2391
|
-
if (
|
|
2370
|
+
if (p != null) {
|
|
2392
2371
|
var I;
|
|
2393
|
-
(I =
|
|
2394
|
-
} else (K =
|
|
2372
|
+
(I = v.current) === null || I === void 0 || I.removeEventListener("focusin", d), v.current = p, p.addEventListener("focusin", d);
|
|
2373
|
+
} else (K = v.current) === null || K === void 0 || K.removeEventListener("focusin", d);
|
|
2395
2374
|
}, [
|
|
2396
2375
|
d
|
|
2397
|
-
]), b =
|
|
2376
|
+
]), b = he(T(() => vt(l, y), [
|
|
2398
2377
|
l,
|
|
2399
|
-
|
|
2378
|
+
y
|
|
2400
2379
|
])), x = ee(() => {
|
|
2401
|
-
var
|
|
2402
|
-
a.current = !0, (
|
|
2380
|
+
var p;
|
|
2381
|
+
a.current = !0, (p = l.current) === null || p === void 0 || p.dispatchEvent(new CustomEvent(Te, {
|
|
2403
2382
|
cancelable: !0,
|
|
2404
2383
|
bubbles: !0,
|
|
2405
2384
|
detail: {
|
|
2406
2385
|
focusStrategy: "first"
|
|
2407
2386
|
}
|
|
2408
2387
|
}));
|
|
2409
|
-
}), g = ee((
|
|
2388
|
+
}), g = ee((p) => {
|
|
2410
2389
|
var K;
|
|
2411
|
-
|
|
2412
|
-
let I = new CustomEvent(
|
|
2390
|
+
Ve(Ie()), c.current = null, e.setFocusedNodeId(null);
|
|
2391
|
+
let I = new CustomEvent(wt, {
|
|
2413
2392
|
cancelable: !0,
|
|
2414
2393
|
bubbles: !0,
|
|
2415
2394
|
detail: {
|
|
2416
|
-
clearFocusKey:
|
|
2395
|
+
clearFocusKey: p
|
|
2417
2396
|
}
|
|
2418
2397
|
});
|
|
2419
2398
|
clearTimeout(s.current), a.current = !1, (K = l.current) === null || K === void 0 || K.dispatchEvent(I);
|
|
2420
|
-
}),
|
|
2421
|
-
e.inputValue !==
|
|
2422
|
-
}, S =
|
|
2399
|
+
}), $ = (p) => {
|
|
2400
|
+
e.inputValue !== p && e.inputValue.length <= p.length && !o ? x() : g(!0), e.setInputValue(p);
|
|
2401
|
+
}, S = P(null), w = (p) => {
|
|
2423
2402
|
var K;
|
|
2424
|
-
if (S.current =
|
|
2403
|
+
if (S.current = p.target, p.nativeEvent.isComposing) return;
|
|
2425
2404
|
let I = c.current;
|
|
2426
|
-
switch (
|
|
2405
|
+
switch (p.key) {
|
|
2427
2406
|
case "a":
|
|
2428
|
-
if (Q(
|
|
2407
|
+
if (Q(p)) return;
|
|
2429
2408
|
break;
|
|
2430
2409
|
case "Escape":
|
|
2431
|
-
if (
|
|
2410
|
+
if (p.isDefaultPrevented()) return;
|
|
2432
2411
|
break;
|
|
2433
2412
|
case " ":
|
|
2434
2413
|
return;
|
|
2435
2414
|
case "Tab":
|
|
2436
|
-
"continuePropagation" in
|
|
2415
|
+
"continuePropagation" in p && p.continuePropagation();
|
|
2437
2416
|
return;
|
|
2438
2417
|
case "Home":
|
|
2439
2418
|
case "End":
|
|
@@ -2442,9 +2421,9 @@ function Hi(n, e) {
|
|
|
2442
2421
|
case "ArrowUp":
|
|
2443
2422
|
case "ArrowDown": {
|
|
2444
2423
|
var V;
|
|
2445
|
-
if ((
|
|
2446
|
-
|
|
2447
|
-
let H = new CustomEvent(
|
|
2424
|
+
if ((p.key === "Home" || p.key === "End") && I == null && p.shiftKey) return;
|
|
2425
|
+
p.preventDefault();
|
|
2426
|
+
let H = new CustomEvent(Te, {
|
|
2448
2427
|
cancelable: !0,
|
|
2449
2428
|
bubbles: !0
|
|
2450
2429
|
});
|
|
@@ -2452,28 +2431,28 @@ function Hi(n, e) {
|
|
|
2452
2431
|
break;
|
|
2453
2432
|
}
|
|
2454
2433
|
}
|
|
2455
|
-
|
|
2434
|
+
p.isPropagationStopped() || p.stopPropagation();
|
|
2456
2435
|
let U = !0;
|
|
2457
|
-
if (I == null) U = ((K = l.current) === null || K === void 0 ? void 0 : K.dispatchEvent(new KeyboardEvent(
|
|
2436
|
+
if (I == null) U = ((K = l.current) === null || K === void 0 ? void 0 : K.dispatchEvent(new KeyboardEvent(p.nativeEvent.type, p.nativeEvent))) || !1;
|
|
2458
2437
|
else {
|
|
2459
2438
|
let H = document.getElementById(I);
|
|
2460
|
-
U = (H == null ? void 0 : H.dispatchEvent(new KeyboardEvent(
|
|
2439
|
+
U = (H == null ? void 0 : H.dispatchEvent(new KeyboardEvent(p.nativeEvent.type, p.nativeEvent))) || !1;
|
|
2461
2440
|
}
|
|
2462
|
-
if (U) switch (
|
|
2441
|
+
if (U) switch (p.key) {
|
|
2463
2442
|
case "ArrowLeft":
|
|
2464
2443
|
case "ArrowRight":
|
|
2465
2444
|
g();
|
|
2466
2445
|
break;
|
|
2467
2446
|
}
|
|
2468
|
-
}, k = ee((
|
|
2469
|
-
if (
|
|
2447
|
+
}, k = ee((p) => {
|
|
2448
|
+
if (p.target === S.current) {
|
|
2470
2449
|
var K;
|
|
2471
|
-
|
|
2450
|
+
p.stopImmediatePropagation();
|
|
2472
2451
|
let I = c.current;
|
|
2473
|
-
if (I == null) (K = l.current) === null || K === void 0 || K.dispatchEvent(new KeyboardEvent(
|
|
2452
|
+
if (I == null) (K = l.current) === null || K === void 0 || K.dispatchEvent(new KeyboardEvent(p.type, p));
|
|
2474
2453
|
else {
|
|
2475
2454
|
let V = document.getElementById(I);
|
|
2476
|
-
V == null || V.dispatchEvent(new KeyboardEvent(
|
|
2455
|
+
V == null || V.dispatchEvent(new KeyboardEvent(p.type, p));
|
|
2477
2456
|
}
|
|
2478
2457
|
}
|
|
2479
2458
|
});
|
|
@@ -2482,23 +2461,23 @@ function Hi(n, e) {
|
|
|
2482
2461
|
}), [
|
|
2483
2462
|
k
|
|
2484
2463
|
]);
|
|
2485
|
-
let F =
|
|
2464
|
+
let F = Ul(Vi(gl), "@react-aria/autocomplete"), C = Ol({
|
|
2486
2465
|
id: r,
|
|
2487
2466
|
"aria-label": F.format("collectionLabel")
|
|
2488
|
-
}),
|
|
2467
|
+
}), A = J((p) => i ? i(p, e.inputValue) : !0, [
|
|
2489
2468
|
e.inputValue,
|
|
2490
2469
|
i
|
|
2491
|
-
]), M = (
|
|
2492
|
-
if (!
|
|
2470
|
+
]), M = (p) => {
|
|
2471
|
+
if (!p.isTrusted) return;
|
|
2493
2472
|
let K = c.current ? document.getElementById(c.current) : null;
|
|
2494
|
-
K &&
|
|
2495
|
-
}, G = (
|
|
2496
|
-
if (!
|
|
2473
|
+
K && Le(K, p.relatedTarget);
|
|
2474
|
+
}, G = (p) => {
|
|
2475
|
+
if (!p.isTrusted) return;
|
|
2497
2476
|
let K = c.current ? document.getElementById(c.current) : null;
|
|
2498
2477
|
if (K) {
|
|
2499
|
-
let I =
|
|
2478
|
+
let I = p.target;
|
|
2500
2479
|
queueMicrotask(() => {
|
|
2501
|
-
|
|
2480
|
+
Le(I, K), Ct(K, I);
|
|
2502
2481
|
});
|
|
2503
2482
|
}
|
|
2504
2483
|
};
|
|
@@ -2506,7 +2485,7 @@ function Hi(n, e) {
|
|
|
2506
2485
|
return {
|
|
2507
2486
|
textFieldProps: {
|
|
2508
2487
|
value: e.inputValue,
|
|
2509
|
-
onChange:
|
|
2488
|
+
onChange: $,
|
|
2510
2489
|
onKeyDown: w,
|
|
2511
2490
|
autoComplete: "off",
|
|
2512
2491
|
"aria-haspopup": "listbox",
|
|
@@ -2522,18 +2501,18 @@ function Hi(n, e) {
|
|
|
2522
2501
|
onBlur: M,
|
|
2523
2502
|
onFocus: G
|
|
2524
2503
|
},
|
|
2525
|
-
collectionProps:
|
|
2526
|
-
shouldUseVirtualFocus:
|
|
2504
|
+
collectionProps: W(C, {
|
|
2505
|
+
shouldUseVirtualFocus: h,
|
|
2527
2506
|
disallowTypeAhead: !0
|
|
2528
2507
|
}),
|
|
2529
2508
|
collectionRef: b,
|
|
2530
|
-
filter: i != null ?
|
|
2509
|
+
filter: i != null ? A : void 0
|
|
2531
2510
|
};
|
|
2532
2511
|
}
|
|
2533
|
-
function
|
|
2512
|
+
function Ni(n) {
|
|
2534
2513
|
let { onInputChange: e, inputValue: t, defaultInputValue: l = "" } = n, i = (c) => {
|
|
2535
2514
|
e && e(c);
|
|
2536
|
-
}, [o, r] = te(null), [s, a] =
|
|
2515
|
+
}, [o, r] = te(null), [s, a] = $t(t, l, i);
|
|
2537
2516
|
return {
|
|
2538
2517
|
inputValue: s,
|
|
2539
2518
|
setInputValue: a,
|
|
@@ -2541,25 +2520,25 @@ function qi(n) {
|
|
|
2541
2520
|
setFocusedNodeId: r
|
|
2542
2521
|
};
|
|
2543
2522
|
}
|
|
2544
|
-
const
|
|
2545
|
-
function
|
|
2546
|
-
let e =
|
|
2547
|
-
n =
|
|
2548
|
-
let { filter: t, disableAutoFocusFirst: l } = n, i =
|
|
2549
|
-
...
|
|
2523
|
+
const zi = /* @__PURE__ */ O(null), Ui = /* @__PURE__ */ O(null), $l = /* @__PURE__ */ O(null);
|
|
2524
|
+
function An(n) {
|
|
2525
|
+
let e = ft(zi, n.slot);
|
|
2526
|
+
n = W(e, n);
|
|
2527
|
+
let { filter: t, disableAutoFocusFirst: l } = n, i = Ni(n), o = P(null), r = P(null), { textFieldProps: s, collectionProps: a, collectionRef: c, filter: v } = Oi({
|
|
2528
|
+
...pt(n),
|
|
2550
2529
|
filter: t,
|
|
2551
2530
|
disableAutoFocusFirst: l,
|
|
2552
2531
|
inputRef: o,
|
|
2553
2532
|
collectionRef: r
|
|
2554
2533
|
}, i);
|
|
2555
|
-
return /* @__PURE__ */
|
|
2534
|
+
return /* @__PURE__ */ m.createElement(fe, {
|
|
2556
2535
|
values: [
|
|
2557
2536
|
[
|
|
2558
|
-
|
|
2537
|
+
Ui,
|
|
2559
2538
|
i
|
|
2560
2539
|
],
|
|
2561
2540
|
[
|
|
2562
|
-
|
|
2541
|
+
Bi,
|
|
2563
2542
|
s
|
|
2564
2543
|
],
|
|
2565
2544
|
[
|
|
@@ -2567,7 +2546,7 @@ function Bn(n) {
|
|
|
2567
2546
|
s
|
|
2568
2547
|
],
|
|
2569
2548
|
[
|
|
2570
|
-
|
|
2549
|
+
Pe,
|
|
2571
2550
|
{
|
|
2572
2551
|
ref: o
|
|
2573
2552
|
}
|
|
@@ -2575,7 +2554,7 @@ function Bn(n) {
|
|
|
2575
2554
|
[
|
|
2576
2555
|
$l,
|
|
2577
2556
|
{
|
|
2578
|
-
filter:
|
|
2557
|
+
filter: v,
|
|
2579
2558
|
collectionProps: a,
|
|
2580
2559
|
collectionRef: c
|
|
2581
2560
|
}
|
|
@@ -2583,31 +2562,31 @@ function Bn(n) {
|
|
|
2583
2562
|
]
|
|
2584
2563
|
}, n.children);
|
|
2585
2564
|
}
|
|
2586
|
-
const
|
|
2565
|
+
const Hi = /* @__PURE__ */ O(null), qi = {
|
|
2587
2566
|
CollectionRoot({ collection: n, renderDropIndicator: e }) {
|
|
2588
|
-
return
|
|
2567
|
+
return dt(n, null, e);
|
|
2589
2568
|
},
|
|
2590
2569
|
CollectionBranch({ collection: n, parent: e, renderDropIndicator: t }) {
|
|
2591
|
-
return
|
|
2570
|
+
return dt(n, e, t);
|
|
2592
2571
|
}
|
|
2593
2572
|
};
|
|
2594
|
-
function
|
|
2595
|
-
return
|
|
2573
|
+
function dt(n, e, t) {
|
|
2574
|
+
return Ft({
|
|
2596
2575
|
items: e ? n.getChildren(e.key) : n,
|
|
2597
2576
|
dependencies: [
|
|
2598
2577
|
t
|
|
2599
2578
|
],
|
|
2600
2579
|
children(l) {
|
|
2601
2580
|
let i = l.render(l);
|
|
2602
|
-
return !t || l.type !== "item" ? i : /* @__PURE__ */
|
|
2581
|
+
return !t || l.type !== "item" ? i : /* @__PURE__ */ m.createElement(m.Fragment, null, t({
|
|
2603
2582
|
type: "item",
|
|
2604
2583
|
key: l.key,
|
|
2605
2584
|
dropPosition: "before"
|
|
2606
|
-
}), i,
|
|
2585
|
+
}), i, Wi(n, l, t));
|
|
2607
2586
|
}
|
|
2608
2587
|
});
|
|
2609
2588
|
}
|
|
2610
|
-
function
|
|
2589
|
+
function Wi(n, e, t) {
|
|
2611
2590
|
let l = e.key, i = n.getKeyAfter(l), o = i != null ? n.getItem(i) : null;
|
|
2612
2591
|
for (; o != null && o.type !== "item"; )
|
|
2613
2592
|
i = n.getKeyAfter(o.key), o = i != null ? n.getItem(i) : null;
|
|
@@ -2622,29 +2601,29 @@ function Yi(n, e, t) {
|
|
|
2622
2601
|
key: a.key,
|
|
2623
2602
|
dropPosition: "after"
|
|
2624
2603
|
});
|
|
2625
|
-
/* @__PURE__ */
|
|
2604
|
+
/* @__PURE__ */ Cl(c) && s.push(/* @__PURE__ */ ct(c, {
|
|
2626
2605
|
key: `${a.key}-after`
|
|
2627
2606
|
})), a = a.parentKey != null ? n.getItem(a.parentKey) : null;
|
|
2628
2607
|
}
|
|
2629
2608
|
}
|
|
2630
2609
|
return s;
|
|
2631
2610
|
}
|
|
2632
|
-
const
|
|
2633
|
-
function
|
|
2611
|
+
const He = /* @__PURE__ */ O(qi);
|
|
2612
|
+
function Rn(n) {
|
|
2634
2613
|
return T(() => n != null ? /* @__PURE__ */ new Set([
|
|
2635
2614
|
n
|
|
2636
2615
|
]) : null, [
|
|
2637
2616
|
n
|
|
2638
2617
|
]);
|
|
2639
2618
|
}
|
|
2640
|
-
const
|
|
2641
|
-
let { render: l } =
|
|
2642
|
-
return /* @__PURE__ */
|
|
2619
|
+
const pe = /* @__PURE__ */ O({}), ml = /* @__PURE__ */ O(null), _i = /* @__PURE__ */ ne(function(e, t) {
|
|
2620
|
+
let { render: l } = R(ml);
|
|
2621
|
+
return /* @__PURE__ */ m.createElement(m.Fragment, null, l(e, t));
|
|
2643
2622
|
});
|
|
2644
2623
|
function xl(n, e) {
|
|
2645
2624
|
var t;
|
|
2646
2625
|
let l = n == null ? void 0 : n.renderDropIndicator, i = n == null || (t = n.isVirtualDragging) === null || t === void 0 ? void 0 : t.call(n), o = J((r) => {
|
|
2647
|
-
if (i || e != null && e.isDropTarget(r)) return l ? l(r) : /* @__PURE__ */
|
|
2626
|
+
if (i || e != null && e.isDropTarget(r)) return l ? l(r) : /* @__PURE__ */ m.createElement(_i, {
|
|
2648
2627
|
target: r
|
|
2649
2628
|
});
|
|
2650
2629
|
}, [
|
|
@@ -2654,7 +2633,7 @@ function xl(n, e) {
|
|
|
2654
2633
|
]);
|
|
2655
2634
|
return n != null && n.useDropIndicator ? o : void 0;
|
|
2656
2635
|
}
|
|
2657
|
-
function
|
|
2636
|
+
function Gi(n, e, t) {
|
|
2658
2637
|
var l, i;
|
|
2659
2638
|
let o = n.focusedKey, r = null;
|
|
2660
2639
|
if (!(e == null || (l = e.isVirtualDragging) === null || l === void 0) && l.call(e) && (t == null || (i = t.target) === null || i === void 0 ? void 0 : i.type) === "item") {
|
|
@@ -2670,39 +2649,39 @@ function Xi(n, e, t) {
|
|
|
2670
2649
|
r
|
|
2671
2650
|
]);
|
|
2672
2651
|
}
|
|
2673
|
-
const Sl = /* @__PURE__ */ O({}),
|
|
2674
|
-
return [e, t] =
|
|
2652
|
+
const Sl = /* @__PURE__ */ O({}), Bn = /* @__PURE__ */ Lt("header", function(e, t) {
|
|
2653
|
+
return [e, t] = ce(e, t, Sl), /* @__PURE__ */ m.createElement("header", {
|
|
2675
2654
|
className: "react-aria-Header",
|
|
2676
2655
|
...e,
|
|
2677
2656
|
ref: t
|
|
2678
2657
|
}, e.children);
|
|
2679
|
-
}),
|
|
2680
|
-
[e, t] =
|
|
2681
|
-
let l =
|
|
2682
|
-
return l ? /* @__PURE__ */
|
|
2658
|
+
}), ji = /* @__PURE__ */ O({}), Kl = /* @__PURE__ */ O(null), ve = /* @__PURE__ */ O(null), Vn = /* @__PURE__ */ ne(function(e, t) {
|
|
2659
|
+
[e, t] = ce(e, t, Kl);
|
|
2660
|
+
let l = R(ve);
|
|
2661
|
+
return l ? /* @__PURE__ */ m.createElement(Dl, {
|
|
2683
2662
|
state: l,
|
|
2684
2663
|
props: e,
|
|
2685
2664
|
listBoxRef: t
|
|
2686
|
-
}) : /* @__PURE__ */
|
|
2687
|
-
content: /* @__PURE__ */
|
|
2688
|
-
}, (i) => /* @__PURE__ */
|
|
2665
|
+
}) : /* @__PURE__ */ m.createElement(wi, {
|
|
2666
|
+
content: /* @__PURE__ */ m.createElement(Fi, e)
|
|
2667
|
+
}, (i) => /* @__PURE__ */ m.createElement(Yi, {
|
|
2689
2668
|
props: e,
|
|
2690
2669
|
listBoxRef: t,
|
|
2691
2670
|
collection: i
|
|
2692
2671
|
}));
|
|
2693
2672
|
});
|
|
2694
|
-
function
|
|
2673
|
+
function Yi({ props: n, listBoxRef: e, collection: t }) {
|
|
2695
2674
|
n = {
|
|
2696
2675
|
...n,
|
|
2697
2676
|
collection: t,
|
|
2698
2677
|
children: null,
|
|
2699
2678
|
items: null
|
|
2700
2679
|
};
|
|
2701
|
-
let { layoutDelegate: l } =
|
|
2680
|
+
let { layoutDelegate: l } = R(He), i = Ai({
|
|
2702
2681
|
...n,
|
|
2703
2682
|
layoutDelegate: l
|
|
2704
2683
|
});
|
|
2705
|
-
return /* @__PURE__ */
|
|
2684
|
+
return /* @__PURE__ */ m.createElement(Dl, {
|
|
2706
2685
|
state: i,
|
|
2707
2686
|
props: n,
|
|
2708
2687
|
listBoxRef: e
|
|
@@ -2710,7 +2689,7 @@ function Qi({ props: n, listBoxRef: e, collection: t }) {
|
|
|
2710
2689
|
}
|
|
2711
2690
|
function Dl({ state: n, props: e, listBoxRef: t }) {
|
|
2712
2691
|
var l;
|
|
2713
|
-
let { filter: i, collectionProps: o, collectionRef: r } =
|
|
2692
|
+
let { filter: i, collectionProps: o, collectionRef: r } = R($l) || {};
|
|
2714
2693
|
e = T(() => o ? {
|
|
2715
2694
|
...e,
|
|
2716
2695
|
...o
|
|
@@ -2719,127 +2698,127 @@ function Dl({ state: n, props: e, listBoxRef: t }) {
|
|
|
2719
2698
|
o
|
|
2720
2699
|
]);
|
|
2721
2700
|
let { dragAndDropHooks: s, layout: a = "stack", orientation: c = "vertical" } = e;
|
|
2722
|
-
t =
|
|
2701
|
+
t = he(T(() => vt(t, r !== void 0 ? r : null), [
|
|
2723
2702
|
r,
|
|
2724
2703
|
t
|
|
2725
2704
|
]));
|
|
2726
|
-
let
|
|
2705
|
+
let v = Ri(n, i), { collection: h, selectionManager: d } = v, y = !!(s != null && s.useDraggableCollectionState), b = !!(s != null && s.useDroppableCollectionState), { direction: x } = Kt(), { disabledBehavior: g, disabledKeys: $ } = d, S = Dt({
|
|
2727
2706
|
usage: "search",
|
|
2728
2707
|
sensitivity: "base"
|
|
2729
|
-
}), { isVirtualized: w, layoutDelegate: k, dropTargetDelegate: F, CollectionRoot: C } =
|
|
2730
|
-
collection:
|
|
2708
|
+
}), { isVirtualized: w, layoutDelegate: k, dropTargetDelegate: F, CollectionRoot: C } = R(He), A = T(() => e.keyboardDelegate || new Pt({
|
|
2709
|
+
collection: h,
|
|
2731
2710
|
collator: S,
|
|
2732
2711
|
ref: t,
|
|
2733
|
-
disabledKeys:
|
|
2712
|
+
disabledKeys: $,
|
|
2734
2713
|
disabledBehavior: g,
|
|
2735
2714
|
layout: a,
|
|
2736
2715
|
orientation: c,
|
|
2737
2716
|
direction: x,
|
|
2738
2717
|
layoutDelegate: k
|
|
2739
2718
|
}), [
|
|
2740
|
-
|
|
2719
|
+
h,
|
|
2741
2720
|
S,
|
|
2742
2721
|
t,
|
|
2743
2722
|
g,
|
|
2744
|
-
|
|
2723
|
+
$,
|
|
2745
2724
|
c,
|
|
2746
2725
|
x,
|
|
2747
2726
|
e.keyboardDelegate,
|
|
2748
2727
|
a,
|
|
2749
2728
|
k
|
|
2750
|
-
]), { listBoxProps: M } =
|
|
2729
|
+
]), { listBoxProps: M } = ci({
|
|
2751
2730
|
...e,
|
|
2752
|
-
shouldSelectOnPressUp:
|
|
2753
|
-
keyboardDelegate:
|
|
2731
|
+
shouldSelectOnPressUp: y || e.shouldSelectOnPressUp,
|
|
2732
|
+
keyboardDelegate: A,
|
|
2754
2733
|
isVirtualized: w
|
|
2755
|
-
},
|
|
2734
|
+
}, v, t), G = P(y), B = P(b);
|
|
2756
2735
|
Y(() => {
|
|
2757
|
-
process.env.NODE_ENV !== "production" && (G.current !==
|
|
2736
|
+
process.env.NODE_ENV !== "production" && (G.current !== y && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), B.current !== b && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
|
|
2758
2737
|
}, [
|
|
2759
|
-
|
|
2738
|
+
y,
|
|
2760
2739
|
b
|
|
2761
2740
|
]);
|
|
2762
|
-
let
|
|
2763
|
-
if (
|
|
2764
|
-
|
|
2765
|
-
collection:
|
|
2741
|
+
let p, K, I, V = !1, U = null, H = P(null);
|
|
2742
|
+
if (y && s) {
|
|
2743
|
+
p = s.useDraggableCollectionState({
|
|
2744
|
+
collection: h,
|
|
2766
2745
|
selectionManager: d,
|
|
2767
2746
|
preview: s.renderDragPreview ? H : void 0
|
|
2768
|
-
}), s.useDraggableCollection({},
|
|
2747
|
+
}), s.useDraggableCollection({}, p, t);
|
|
2769
2748
|
let _ = s.DragPreview;
|
|
2770
|
-
U = s.renderDragPreview ? /* @__PURE__ */
|
|
2749
|
+
U = s.renderDragPreview ? /* @__PURE__ */ m.createElement(_, {
|
|
2771
2750
|
ref: H
|
|
2772
2751
|
}, s.renderDragPreview) : null;
|
|
2773
2752
|
}
|
|
2774
2753
|
if (b && s) {
|
|
2775
2754
|
K = s.useDroppableCollectionState({
|
|
2776
|
-
collection:
|
|
2755
|
+
collection: h,
|
|
2777
2756
|
selectionManager: d
|
|
2778
2757
|
});
|
|
2779
|
-
let _ = s.dropTargetDelegate || F || new s.ListDropTargetDelegate(
|
|
2758
|
+
let _ = s.dropTargetDelegate || F || new s.ListDropTargetDelegate(h, t, {
|
|
2780
2759
|
orientation: c,
|
|
2781
2760
|
layout: a,
|
|
2782
2761
|
direction: x
|
|
2783
2762
|
});
|
|
2784
2763
|
I = s.useDroppableCollection({
|
|
2785
|
-
keyboardDelegate:
|
|
2764
|
+
keyboardDelegate: A,
|
|
2786
2765
|
dropTargetDelegate: _
|
|
2787
2766
|
}, K, t), V = K.isDropTarget({
|
|
2788
2767
|
type: "root"
|
|
2789
2768
|
});
|
|
2790
2769
|
}
|
|
2791
|
-
let { focusProps:
|
|
2770
|
+
let { focusProps: f, isFocused: u, isFocusVisible: E } = Xl(), L = v.collection.size === 0 || v.collection.size === 1 && ((l = v.collection.getItem(v.collection.getFirstKey())) === null || l === void 0 ? void 0 : l.type) === "loader", N = {
|
|
2792
2771
|
isDropTarget: V,
|
|
2793
|
-
isEmpty:
|
|
2772
|
+
isEmpty: L,
|
|
2794
2773
|
isFocused: u,
|
|
2795
|
-
isFocusVisible:
|
|
2774
|
+
isFocusVisible: E,
|
|
2796
2775
|
layout: e.layout || "stack",
|
|
2797
|
-
state:
|
|
2798
|
-
}, z =
|
|
2776
|
+
state: v
|
|
2777
|
+
}, z = oe({
|
|
2799
2778
|
className: e.className,
|
|
2800
2779
|
style: e.style,
|
|
2801
2780
|
defaultClassName: "react-aria-ListBox",
|
|
2802
2781
|
values: N
|
|
2803
|
-
}),
|
|
2804
|
-
return
|
|
2782
|
+
}), q = null;
|
|
2783
|
+
return L && e.renderEmptyState && (q = /* @__PURE__ */ m.createElement("div", {
|
|
2805
2784
|
// eslint-disable-next-line
|
|
2806
2785
|
role: "option",
|
|
2807
2786
|
style: {
|
|
2808
2787
|
display: "contents"
|
|
2809
2788
|
}
|
|
2810
|
-
}, e.renderEmptyState(N))), /* @__PURE__ */
|
|
2811
|
-
...
|
|
2812
|
-
...
|
|
2789
|
+
}, e.renderEmptyState(N))), /* @__PURE__ */ m.createElement(Jl, null, /* @__PURE__ */ m.createElement("div", {
|
|
2790
|
+
...se(e),
|
|
2791
|
+
...W(M, f, I == null ? void 0 : I.collectionProps),
|
|
2813
2792
|
...z,
|
|
2814
2793
|
ref: t,
|
|
2815
2794
|
slot: e.slot || void 0,
|
|
2816
2795
|
onScroll: e.onScroll,
|
|
2817
2796
|
"data-drop-target": V || void 0,
|
|
2818
|
-
"data-empty":
|
|
2797
|
+
"data-empty": L || void 0,
|
|
2819
2798
|
"data-focused": u || void 0,
|
|
2820
|
-
"data-focus-visible":
|
|
2799
|
+
"data-focus-visible": E || void 0,
|
|
2821
2800
|
"data-layout": e.layout || "stack",
|
|
2822
2801
|
"data-orientation": e.orientation || "vertical"
|
|
2823
|
-
}, /* @__PURE__ */
|
|
2802
|
+
}, /* @__PURE__ */ m.createElement(fe, {
|
|
2824
2803
|
values: [
|
|
2825
2804
|
[
|
|
2826
2805
|
Kl,
|
|
2827
2806
|
e
|
|
2828
2807
|
],
|
|
2829
2808
|
[
|
|
2830
|
-
|
|
2831
|
-
|
|
2809
|
+
ve,
|
|
2810
|
+
v
|
|
2832
2811
|
],
|
|
2833
2812
|
[
|
|
2834
|
-
|
|
2813
|
+
pe,
|
|
2835
2814
|
{
|
|
2836
2815
|
dragAndDropHooks: s,
|
|
2837
|
-
dragState:
|
|
2816
|
+
dragState: p,
|
|
2838
2817
|
dropState: K
|
|
2839
2818
|
}
|
|
2840
2819
|
],
|
|
2841
2820
|
[
|
|
2842
|
-
|
|
2821
|
+
ji,
|
|
2843
2822
|
{
|
|
2844
2823
|
elementType: "div"
|
|
2845
2824
|
}
|
|
@@ -2847,57 +2826,57 @@ function Dl({ state: n, props: e, listBoxRef: t }) {
|
|
|
2847
2826
|
[
|
|
2848
2827
|
ml,
|
|
2849
2828
|
{
|
|
2850
|
-
render:
|
|
2829
|
+
render: Ji
|
|
2851
2830
|
}
|
|
2852
2831
|
],
|
|
2853
2832
|
[
|
|
2854
|
-
|
|
2833
|
+
Hi,
|
|
2855
2834
|
{
|
|
2856
2835
|
name: "ListBoxSection",
|
|
2857
2836
|
render: wl
|
|
2858
2837
|
}
|
|
2859
2838
|
]
|
|
2860
2839
|
]
|
|
2861
|
-
}, /* @__PURE__ */
|
|
2862
|
-
collection:
|
|
2840
|
+
}, /* @__PURE__ */ m.createElement(C, {
|
|
2841
|
+
collection: h,
|
|
2863
2842
|
scrollRef: t,
|
|
2864
|
-
persistedKeys:
|
|
2843
|
+
persistedKeys: Gi(d, s, K),
|
|
2865
2844
|
renderDropIndicator: xl(s, K)
|
|
2866
|
-
})),
|
|
2845
|
+
})), q, U));
|
|
2867
2846
|
}
|
|
2868
2847
|
function wl(n, e, t, l = "react-aria-ListBoxSection") {
|
|
2869
|
-
let i =
|
|
2870
|
-
var
|
|
2871
|
-
let { headingProps:
|
|
2848
|
+
let i = R(ve), { dragAndDropHooks: o, dropState: r } = R(pe), { CollectionBranch: s } = R(He), [a, c] = ht();
|
|
2849
|
+
var v;
|
|
2850
|
+
let { headingProps: h, groupProps: d } = $i({
|
|
2872
2851
|
heading: c,
|
|
2873
|
-
"aria-label": (
|
|
2874
|
-
}),
|
|
2852
|
+
"aria-label": (v = n["aria-label"]) !== null && v !== void 0 ? v : void 0
|
|
2853
|
+
}), y = oe({
|
|
2875
2854
|
defaultClassName: l,
|
|
2876
2855
|
className: n.className,
|
|
2877
2856
|
style: n.style,
|
|
2878
2857
|
values: {}
|
|
2879
2858
|
});
|
|
2880
|
-
return /* @__PURE__ */
|
|
2881
|
-
...
|
|
2859
|
+
return /* @__PURE__ */ m.createElement("section", {
|
|
2860
|
+
...se(n),
|
|
2882
2861
|
...d,
|
|
2883
|
-
...
|
|
2862
|
+
...y,
|
|
2884
2863
|
ref: e
|
|
2885
|
-
}, /* @__PURE__ */
|
|
2864
|
+
}, /* @__PURE__ */ m.createElement(Sl.Provider, {
|
|
2886
2865
|
value: {
|
|
2887
|
-
...
|
|
2866
|
+
...h,
|
|
2888
2867
|
ref: a
|
|
2889
2868
|
}
|
|
2890
|
-
}, /* @__PURE__ */
|
|
2869
|
+
}, /* @__PURE__ */ m.createElement(s, {
|
|
2891
2870
|
collection: i.collection,
|
|
2892
2871
|
parent: t,
|
|
2893
2872
|
renderDropIndicator: xl(o, r)
|
|
2894
2873
|
})));
|
|
2895
2874
|
}
|
|
2896
|
-
const
|
|
2897
|
-
let i =
|
|
2875
|
+
const On = /* @__PURE__ */ Ii("section", wl), Nn = /* @__PURE__ */ Lt("item", function(e, t, l) {
|
|
2876
|
+
let i = he(t), o = R(ve), { dragAndDropHooks: r, dragState: s, dropState: a } = R(pe), { optionProps: c, labelProps: v, descriptionProps: h, ...d } = gi({
|
|
2898
2877
|
key: l.key,
|
|
2899
2878
|
"aria-label": e == null ? void 0 : e["aria-label"]
|
|
2900
|
-
}, o, i), { hoverProps:
|
|
2879
|
+
}, o, i), { hoverProps: y, isHovered: b } = St({
|
|
2901
2880
|
isDisabled: !d.allowsSelection && !d.hasAction,
|
|
2902
2881
|
onHoverStart: l.props.onHoverStart,
|
|
2903
2882
|
onHoverChange: l.props.onHoverChange,
|
|
@@ -2914,7 +2893,7 @@ const zn = /* @__PURE__ */ Li("section", wl), Un = /* @__PURE__ */ He("item", fu
|
|
|
2914
2893
|
dropPosition: "on"
|
|
2915
2894
|
}
|
|
2916
2895
|
}, a, i));
|
|
2917
|
-
let
|
|
2896
|
+
let $ = s && s.isDragging(l.key), S = oe({
|
|
2918
2897
|
...e,
|
|
2919
2898
|
id: void 0,
|
|
2920
2899
|
children: e.children,
|
|
@@ -2925,7 +2904,7 @@ const zn = /* @__PURE__ */ Li("section", wl), Un = /* @__PURE__ */ He("item", fu
|
|
|
2925
2904
|
selectionMode: o.selectionManager.selectionMode,
|
|
2926
2905
|
selectionBehavior: o.selectionManager.selectionBehavior,
|
|
2927
2906
|
allowsDragging: !!s,
|
|
2928
|
-
isDragging:
|
|
2907
|
+
isDragging: $,
|
|
2929
2908
|
isDropTarget: g == null ? void 0 : g.isDropTarget
|
|
2930
2909
|
}
|
|
2931
2910
|
});
|
|
@@ -2935,8 +2914,8 @@ const zn = /* @__PURE__ */ Li("section", wl), Un = /* @__PURE__ */ He("item", fu
|
|
|
2935
2914
|
l.textValue
|
|
2936
2915
|
]);
|
|
2937
2916
|
let w = e.href ? "a" : "div";
|
|
2938
|
-
return /* @__PURE__ */
|
|
2939
|
-
...
|
|
2917
|
+
return /* @__PURE__ */ m.createElement(w, {
|
|
2918
|
+
...W(c, y, x == null ? void 0 : x.dragProps, g == null ? void 0 : g.dropProps),
|
|
2940
2919
|
...S,
|
|
2941
2920
|
ref: i,
|
|
2942
2921
|
"data-allows-dragging": !!s || void 0,
|
|
@@ -2946,43 +2925,43 @@ const zn = /* @__PURE__ */ Li("section", wl), Un = /* @__PURE__ */ He("item", fu
|
|
|
2946
2925
|
"data-focused": d.isFocused || void 0,
|
|
2947
2926
|
"data-focus-visible": d.isFocusVisible || void 0,
|
|
2948
2927
|
"data-pressed": d.isPressed || void 0,
|
|
2949
|
-
"data-dragging":
|
|
2928
|
+
"data-dragging": $ || void 0,
|
|
2950
2929
|
"data-drop-target": (g == null ? void 0 : g.isDropTarget) || void 0,
|
|
2951
2930
|
"data-selection-mode": o.selectionManager.selectionMode === "none" ? void 0 : o.selectionManager.selectionMode
|
|
2952
|
-
}, /* @__PURE__ */
|
|
2931
|
+
}, /* @__PURE__ */ m.createElement(fe, {
|
|
2953
2932
|
values: [
|
|
2954
2933
|
[
|
|
2955
|
-
|
|
2934
|
+
bt,
|
|
2956
2935
|
{
|
|
2957
2936
|
slots: {
|
|
2958
|
-
[
|
|
2959
|
-
label:
|
|
2960
|
-
description:
|
|
2937
|
+
[El]: v,
|
|
2938
|
+
label: v,
|
|
2939
|
+
description: h
|
|
2961
2940
|
}
|
|
2962
2941
|
}
|
|
2963
2942
|
]
|
|
2964
2943
|
]
|
|
2965
2944
|
}, S.children));
|
|
2966
2945
|
});
|
|
2967
|
-
function
|
|
2968
|
-
e =
|
|
2969
|
-
let { dragAndDropHooks: t, dropState: l } =
|
|
2970
|
-
return o ? null : /* @__PURE__ */
|
|
2946
|
+
function Ji(n, e) {
|
|
2947
|
+
e = he(e);
|
|
2948
|
+
let { dragAndDropHooks: t, dropState: l } = R(pe), { dropIndicatorProps: i, isHidden: o, isDropTarget: r } = t.useDropIndicator(n, l, e);
|
|
2949
|
+
return o ? null : /* @__PURE__ */ m.createElement(Zi, {
|
|
2971
2950
|
...n,
|
|
2972
2951
|
dropIndicatorProps: i,
|
|
2973
2952
|
isDropTarget: r,
|
|
2974
2953
|
ref: e
|
|
2975
2954
|
});
|
|
2976
2955
|
}
|
|
2977
|
-
function
|
|
2978
|
-
let { dropIndicatorProps: t, isDropTarget: l, ...i } = n, o =
|
|
2956
|
+
function Xi(n, e) {
|
|
2957
|
+
let { dropIndicatorProps: t, isDropTarget: l, ...i } = n, o = oe({
|
|
2979
2958
|
...i,
|
|
2980
2959
|
defaultClassName: "react-aria-DropIndicator",
|
|
2981
2960
|
values: {
|
|
2982
2961
|
isDropTarget: l
|
|
2983
2962
|
}
|
|
2984
2963
|
});
|
|
2985
|
-
return /* @__PURE__ */
|
|
2964
|
+
return /* @__PURE__ */ m.createElement("div", {
|
|
2986
2965
|
...t,
|
|
2987
2966
|
...o,
|
|
2988
2967
|
// eslint-disable-next-line
|
|
@@ -2991,81 +2970,35 @@ function tn(n, e) {
|
|
|
2991
2970
|
"data-drop-target": l || void 0
|
|
2992
2971
|
});
|
|
2993
2972
|
}
|
|
2994
|
-
const
|
|
2995
|
-
He("loader", function(e, t, l) {
|
|
2996
|
-
let i = L(ae), { isVirtualized: o } = L(ye), { isLoading: r, onLoadMore: s, scrollOffset: a, ...c } = e, p = E(null), f = T(() => ({
|
|
2997
|
-
onLoadMore: s,
|
|
2998
|
-
collection: i == null ? void 0 : i.collection,
|
|
2999
|
-
sentinelRef: p,
|
|
3000
|
-
scrollOffset: a
|
|
3001
|
-
}), [
|
|
3002
|
-
s,
|
|
3003
|
-
a,
|
|
3004
|
-
i == null ? void 0 : i.collection
|
|
3005
|
-
]);
|
|
3006
|
-
ei(f, p);
|
|
3007
|
-
let d = ie({
|
|
3008
|
-
...c,
|
|
3009
|
-
id: void 0,
|
|
3010
|
-
children: l.rendered,
|
|
3011
|
-
defaultClassName: "react-aria-ListBoxLoadingIndicator",
|
|
3012
|
-
values: null
|
|
3013
|
-
}), v = {
|
|
3014
|
-
// For Android talkback
|
|
3015
|
-
tabIndex: -1
|
|
3016
|
-
};
|
|
3017
|
-
return o && (v["aria-posinset"] = l.index + 1, v["aria-setsize"] = i.collection.size), /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
|
|
3018
|
-
style: {
|
|
3019
|
-
position: "relative",
|
|
3020
|
-
width: 0,
|
|
3021
|
-
height: 0
|
|
3022
|
-
},
|
|
3023
|
-
inert: ti(!0)
|
|
3024
|
-
}, /* @__PURE__ */ $.createElement("div", {
|
|
3025
|
-
"data-testid": "loadMoreSentinel",
|
|
3026
|
-
ref: p,
|
|
3027
|
-
style: {
|
|
3028
|
-
position: "absolute",
|
|
3029
|
-
height: 1,
|
|
3030
|
-
width: 1
|
|
3031
|
-
}
|
|
3032
|
-
})), r && d.children && /* @__PURE__ */ $.createElement("div", {
|
|
3033
|
-
...q(ne(e), v),
|
|
3034
|
-
...d,
|
|
3035
|
-
// aria-selected isn't needed here since this option is not selectable.
|
|
3036
|
-
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
3037
|
-
role: "option",
|
|
3038
|
-
ref: t
|
|
3039
|
-
}, d.children));
|
|
3040
|
-
});
|
|
2973
|
+
const Zi = /* @__PURE__ */ ne(Xi);
|
|
3041
2974
|
export {
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
2975
|
+
Ql as $,
|
|
2976
|
+
Rn as A,
|
|
2977
|
+
Ai as a,
|
|
2978
|
+
Pt as b,
|
|
2979
|
+
ri as c,
|
|
2980
|
+
wi as d,
|
|
3048
2981
|
Kl as e,
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
2982
|
+
ve as f,
|
|
2983
|
+
Vn as g,
|
|
2984
|
+
Nn as h,
|
|
2985
|
+
On as i,
|
|
2986
|
+
Bn as j,
|
|
2987
|
+
Fi as k,
|
|
2988
|
+
Oe as l,
|
|
2989
|
+
ai as m,
|
|
2990
|
+
kt as n,
|
|
2991
|
+
bi as o,
|
|
2992
|
+
Ct as p,
|
|
2993
|
+
li as q,
|
|
2994
|
+
at as r,
|
|
2995
|
+
An as s,
|
|
2996
|
+
Ln as t,
|
|
2997
|
+
di as u,
|
|
2998
|
+
Tn as v,
|
|
2999
|
+
ui as w,
|
|
3000
|
+
Lt as x,
|
|
3001
|
+
He as y,
|
|
3002
|
+
qi as z
|
|
3070
3003
|
};
|
|
3071
|
-
//# sourceMappingURL=ListBox-
|
|
3004
|
+
//# sourceMappingURL=ListBox-Dss9OMcn.js.map
|