@commercetools/nimbus 0.0.9-rc5 → 0.0.9-rc7
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/accordion.d.ts +157 -0
- package/dist/alert.d.ts +173 -0
- package/dist/avatar.d.ts +70 -0
- package/dist/badge.d.ts +102 -0
- package/dist/box.d.ts +14 -0
- package/dist/button.d.ts +38 -0
- package/dist/calendar.d.ts +26 -0
- package/dist/card.d.ts +134 -0
- package/dist/checkbox.d.ts +73 -0
- package/dist/chunks/Button-DOBmPkg6.js +2 -0
- package/dist/chunks/Button-DOBmPkg6.js.map +1 -0
- package/dist/chunks/Button-Dtn-lV5G.js +79 -0
- package/dist/chunks/Button-Dtn-lV5G.js.map +1 -0
- package/dist/chunks/DateField-C2G53tNO.js +2564 -0
- package/dist/chunks/DateField-C2G53tNO.js.map +1 -0
- package/dist/chunks/DateField-D0hZjHMU.js +2 -0
- package/dist/chunks/DateField-D0hZjHMU.js.map +1 -0
- package/dist/chunks/Dialog-CFCn7n-k.js +2 -0
- package/dist/chunks/Dialog-CFCn7n-k.js.map +1 -0
- package/dist/chunks/Dialog-DsJ3jo2g.js +870 -0
- package/dist/chunks/Dialog-DsJ3jo2g.js.map +1 -0
- package/dist/chunks/FocusScope-B6O_mZ9T.js +627 -0
- package/dist/chunks/FocusScope-B6O_mZ9T.js.map +1 -0
- package/dist/chunks/FocusScope-Dz6kDOQY.js +2 -0
- package/dist/chunks/FocusScope-Dz6kDOQY.js.map +1 -0
- package/dist/chunks/Form-DdaqVtM4.js +8 -0
- package/dist/chunks/Form-DdaqVtM4.js.map +1 -0
- package/dist/chunks/Form-DqkTf3LZ.js +2 -0
- package/dist/chunks/Form-DqkTf3LZ.js.map +1 -0
- package/dist/chunks/Group-BMf2x0bV.js +78 -0
- package/dist/chunks/Group-BMf2x0bV.js.map +1 -0
- package/dist/chunks/Group-DR52Cv_h.js +2 -0
- package/dist/chunks/Group-DR52Cv_h.js.map +1 -0
- package/dist/chunks/Hidden-BxRZGdEW.js +2 -0
- package/dist/chunks/Hidden-BxRZGdEW.js.map +1 -0
- package/dist/chunks/Hidden-D6Lfpu1U.js +35 -0
- package/dist/chunks/Hidden-D6Lfpu1U.js.map +1 -0
- package/dist/chunks/Input-C6fX3A5E.js +43 -0
- package/dist/chunks/Input-C6fX3A5E.js.map +1 -0
- package/dist/chunks/Input-CRt1BJ4n.js +2 -0
- package/dist/chunks/Input-CRt1BJ4n.js.map +1 -0
- package/dist/chunks/ListBox-CHhUqc7T.js +18 -0
- package/dist/chunks/ListBox-CHhUqc7T.js.map +1 -0
- package/dist/chunks/ListBox-DH3lufv2.js +3071 -0
- package/dist/chunks/ListBox-DH3lufv2.js.map +1 -0
- package/dist/chunks/LiveAnnouncer-B6177m92.js +52 -0
- package/dist/chunks/LiveAnnouncer-B6177m92.js.map +1 -0
- package/dist/chunks/LiveAnnouncer-CwEWPU8b.js +2 -0
- package/dist/chunks/LiveAnnouncer-CwEWPU8b.js.map +1 -0
- package/dist/chunks/NumberFormatter-DewVDY5w.js +2 -0
- package/dist/chunks/NumberFormatter-DewVDY5w.js.map +1 -0
- package/dist/chunks/NumberFormatter-DgOUVrge.js +120 -0
- package/dist/chunks/NumberFormatter-DgOUVrge.js.map +1 -0
- package/dist/chunks/OverlayArrow-B1kv2W8j.js +479 -0
- package/dist/chunks/OverlayArrow-B1kv2W8j.js.map +1 -0
- package/dist/chunks/OverlayArrow-DsxKFiKE.js +2 -0
- package/dist/chunks/OverlayArrow-DsxKFiKE.js.map +1 -0
- package/dist/chunks/RSPContexts-CxXY5Uko.js +11 -0
- package/dist/chunks/RSPContexts-CxXY5Uko.js.map +1 -0
- package/dist/chunks/RSPContexts-qzadeFSO.js +2 -0
- package/dist/chunks/RSPContexts-qzadeFSO.js.map +1 -0
- package/dist/chunks/SSRProvider-D8lZ0o6A.js +51 -0
- package/dist/chunks/SSRProvider-D8lZ0o6A.js.map +1 -0
- package/dist/chunks/SSRProvider-DZRLwxPS.js +2 -0
- package/dist/chunks/SSRProvider-DZRLwxPS.js.map +1 -0
- package/dist/chunks/Text-BWSfeB9p.js +2 -0
- package/dist/chunks/Text-BWSfeB9p.js.map +1 -0
- package/dist/chunks/Text-DOcU1ycg.js +6 -0
- package/dist/chunks/Text-DOcU1ycg.js.map +1 -0
- package/dist/chunks/TextArea-D-S_3q08.js +42 -0
- package/dist/chunks/TextArea-D-S_3q08.js.map +1 -0
- package/dist/chunks/TextArea-Ud71sffr.js +2 -0
- package/dist/chunks/TextArea-Ud71sffr.js.map +1 -0
- package/dist/chunks/VisuallyHidden-BpUTcba_.js +41 -0
- package/dist/chunks/VisuallyHidden-BpUTcba_.js.map +1 -0
- package/dist/chunks/VisuallyHidden-BxenYie4.js +2 -0
- package/dist/chunks/VisuallyHidden-BxenYie4.js.map +1 -0
- package/dist/chunks/accordion-8pelAIyn.js +2 -0
- package/dist/chunks/accordion-8pelAIyn.js.map +1 -0
- package/dist/chunks/accordion-Dc3IqP_d.js +221 -0
- package/dist/chunks/accordion-Dc3IqP_d.js.map +1 -0
- package/dist/chunks/alert-DSpVYhCa.js +186 -0
- package/dist/chunks/alert-DSpVYhCa.js.map +1 -0
- package/dist/chunks/alert-DxoCjJDr.js +2 -0
- package/dist/chunks/alert-DxoCjJDr.js.map +1 -0
- package/dist/chunks/avatar-Aa0LrRpo.js +2 -0
- package/dist/chunks/avatar-Aa0LrRpo.js.map +1 -0
- package/dist/chunks/avatar-p4QfPsxN.js +37 -0
- package/dist/chunks/avatar-p4QfPsxN.js.map +1 -0
- package/dist/chunks/avatar.recipe-BV5OkaPx.js +39 -0
- package/dist/chunks/avatar.recipe-BV5OkaPx.js.map +1 -0
- package/dist/chunks/avatar.recipe-aGNBZhVF.js +2 -0
- package/dist/chunks/avatar.recipe-aGNBZhVF.js.map +1 -0
- package/dist/chunks/badge-BFbBB0US.js +2 -0
- package/dist/chunks/badge-BFbBB0US.js.map +1 -0
- package/dist/chunks/badge-CbqLqIo9.js +76 -0
- package/dist/chunks/badge-CbqLqIo9.js.map +1 -0
- package/dist/chunks/box-DD4jYgS7.js +11 -0
- package/dist/chunks/box-DD4jYgS7.js.map +1 -0
- package/dist/chunks/box-FU6tRPFs.js +2 -0
- package/dist/chunks/box-FU6tRPFs.js.map +1 -0
- package/dist/chunks/button-Ckftvc2h.js +66 -0
- package/dist/chunks/button-Ckftvc2h.js.map +1 -0
- package/dist/chunks/button-vfAeHh1t.js +2 -0
- package/dist/chunks/button-vfAeHh1t.js.map +1 -0
- package/dist/chunks/button.recipe-DHk13lGU.js +2 -0
- package/dist/chunks/button.recipe-DHk13lGU.js.map +1 -0
- package/dist/chunks/button.recipe-DbFAOebT.js +191 -0
- package/dist/chunks/button.recipe-DbFAOebT.js.map +1 -0
- package/dist/chunks/calendar-Bz_gsrGo.js +1577 -0
- package/dist/chunks/calendar-Bz_gsrGo.js.map +1 -0
- package/dist/chunks/calendar-Cs2rHplP.js +2 -0
- package/dist/chunks/calendar-Cs2rHplP.js.map +1 -0
- package/dist/chunks/calendar.recipe-RdPylgdo.js +101 -0
- package/dist/chunks/calendar.recipe-RdPylgdo.js.map +1 -0
- package/dist/chunks/calendar.recipe-gUaUNltl.js +2 -0
- package/dist/chunks/calendar.recipe-gUaUNltl.js.map +1 -0
- package/dist/chunks/card-B0BsL4ol.js +2 -0
- package/dist/chunks/card-B0BsL4ol.js.map +1 -0
- package/dist/chunks/card-CQwHrkIF.js +138 -0
- package/dist/chunks/card-CQwHrkIF.js.map +1 -0
- package/dist/chunks/checkbox-C5jtHkVZ.js +89 -0
- package/dist/chunks/checkbox-C5jtHkVZ.js.map +1 -0
- package/dist/chunks/checkbox-Cwb_QZjZ.js +2 -0
- package/dist/chunks/checkbox-Cwb_QZjZ.js.map +1 -0
- package/dist/chunks/code-CI8aUhmu.js +6 -0
- package/dist/chunks/code-CI8aUhmu.js.map +1 -0
- package/dist/chunks/code-Dg4Larbo.js +2 -0
- package/dist/chunks/code-Dg4Larbo.js.map +1 -0
- package/dist/chunks/combobox--lHdni2Z.js +1896 -0
- package/dist/chunks/combobox--lHdni2Z.js.map +1 -0
- package/dist/chunks/combobox-BACFWgP3.js +2 -0
- package/dist/chunks/combobox-BACFWgP3.js.map +1 -0
- package/dist/chunks/combobox.recipe-BzaPWi66.js +2 -0
- package/dist/chunks/combobox.recipe-BzaPWi66.js.map +1 -0
- package/dist/chunks/combobox.recipe-KVsma6zb.js +382 -0
- package/dist/chunks/combobox.recipe-KVsma6zb.js.map +1 -0
- package/dist/chunks/context-BmQ51HC8.js +2 -0
- package/dist/chunks/context-BmQ51HC8.js.map +1 -0
- package/dist/chunks/context-CgP0qpkX.js +94 -0
- package/dist/chunks/context-CgP0qpkX.js.map +1 -0
- package/dist/chunks/date-input-9oZMESC7.js +2 -0
- package/dist/chunks/date-input-9oZMESC7.js.map +1 -0
- package/dist/chunks/date-input-DK9U-Nh8.js +16 -0
- package/dist/chunks/date-input-DK9U-Nh8.js.map +1 -0
- package/dist/chunks/date-input.recipe-BcsevQtW.js +119 -0
- package/dist/chunks/date-input.recipe-BcsevQtW.js.map +1 -0
- package/dist/chunks/date-input.recipe-Cf9e8VAr.js +2 -0
- package/dist/chunks/date-input.recipe-Cf9e8VAr.js.map +1 -0
- package/dist/chunks/date-picker-CwXGnIiO.js +2 -0
- package/dist/chunks/date-picker-CwXGnIiO.js.map +1 -0
- package/dist/chunks/date-picker-ShPOqwXi.js +487 -0
- package/dist/chunks/date-picker-ShPOqwXi.js.map +1 -0
- package/dist/chunks/date-picker.recipe-5Avb06qp.js +2 -0
- package/dist/chunks/date-picker.recipe-5Avb06qp.js.map +1 -0
- package/dist/chunks/date-picker.recipe-BJ79OJaw.js +82 -0
- package/dist/chunks/date-picker.recipe-BJ79OJaw.js.map +1 -0
- package/dist/chunks/dialog-C1HRMUcF.js +33 -0
- package/dist/chunks/dialog-C1HRMUcF.js.map +1 -0
- package/dist/chunks/dialog-amEwvIoM.js +2 -0
- package/dist/chunks/dialog-amEwvIoM.js.map +1 -0
- package/dist/chunks/extractStyleProps-CxgBrz3O.js +11 -0
- package/dist/chunks/extractStyleProps-CxgBrz3O.js.map +1 -0
- package/dist/chunks/extractStyleProps-lyk7D-zN.js +2 -0
- package/dist/chunks/extractStyleProps-lyk7D-zN.js.map +1 -0
- package/dist/chunks/filterDOMProps-BS2lrgFA.js +2 -0
- package/dist/chunks/filterDOMProps-BS2lrgFA.js.map +1 -0
- package/dist/chunks/filterDOMProps-D6KHYVBX.js +25 -0
- package/dist/chunks/filterDOMProps-D6KHYVBX.js.map +1 -0
- package/dist/chunks/focusSafely-D_uW2Kp-.js +58 -0
- package/dist/chunks/focusSafely-D_uW2Kp-.js.map +1 -0
- package/dist/chunks/focusSafely-DuMeO0J4.js +2 -0
- package/dist/chunks/focusSafely-DuMeO0J4.js.map +1 -0
- package/dist/chunks/form-field-BUoO6HEy.js +11 -0
- package/dist/chunks/form-field-BUoO6HEy.js.map +1 -0
- package/dist/chunks/form-field-Dr8lL5SU.js +309 -0
- package/dist/chunks/form-field-Dr8lL5SU.js.map +1 -0
- package/dist/chunks/getScrollParent-DE66eQI-.js +15 -0
- package/dist/chunks/getScrollParent-DE66eQI-.js.map +1 -0
- package/dist/chunks/getScrollParent-Dc1cnLDE.js +2 -0
- package/dist/chunks/getScrollParent-Dc1cnLDE.js.map +1 -0
- package/dist/chunks/grid-CLVDMJAz.js +14 -0
- package/dist/chunks/grid-CLVDMJAz.js.map +1 -0
- package/dist/chunks/grid-xr2A-OqD.js +2 -0
- package/dist/chunks/grid-xr2A-OqD.js.map +1 -0
- package/dist/chunks/icon-CjRXcxB9.js +31 -0
- package/dist/chunks/icon-CjRXcxB9.js.map +1 -0
- package/dist/chunks/icon-D50i-dqv.js +2 -0
- package/dist/chunks/icon-D50i-dqv.js.map +1 -0
- package/dist/chunks/icon-button-1V59UrF-.js +14 -0
- package/dist/chunks/icon-button-1V59UrF-.js.map +1 -0
- package/dist/chunks/icon-button-CE-LnFNq.js +2 -0
- package/dist/chunks/icon-button-CE-LnFNq.js.map +1 -0
- package/dist/chunks/image-DCirAAnr.js +2 -0
- package/dist/chunks/image-DCirAAnr.js.map +1 -0
- package/dist/chunks/image-rXPA3shk.js +8 -0
- package/dist/chunks/image-rXPA3shk.js.map +1 -0
- package/dist/chunks/kbd-BKH_SGCC.js +6 -0
- package/dist/chunks/kbd-BKH_SGCC.js.map +1 -0
- package/dist/chunks/kbd-Bhv8ae1I.js +2 -0
- package/dist/chunks/kbd-Bhv8ae1I.js.map +1 -0
- package/dist/chunks/link-1lfvUDKX.js +49 -0
- package/dist/chunks/link-1lfvUDKX.js.map +1 -0
- package/dist/chunks/link-CCDnA-Z-.js +2 -0
- package/dist/chunks/link-CCDnA-Z-.js.map +1 -0
- package/dist/chunks/link.recipe-CG3leGAx.js +2 -0
- package/dist/chunks/link.recipe-CG3leGAx.js.map +1 -0
- package/dist/chunks/link.recipe-CbFF3IUG.js +51 -0
- package/dist/chunks/link.recipe-CbFF3IUG.js.map +1 -0
- package/dist/chunks/list-8yfreyzi.js +2 -0
- package/dist/chunks/list-8yfreyzi.js.map +1 -0
- package/dist/chunks/list-B21joBrq.js +13 -0
- package/dist/chunks/list-B21joBrq.js.map +1 -0
- package/dist/chunks/loading-spinner-B2I1CsuC.js +2 -0
- package/dist/chunks/loading-spinner-B2I1CsuC.js.map +1 -0
- package/dist/chunks/loading-spinner-CJh2luQX.js +137 -0
- package/dist/chunks/loading-spinner-CJh2luQX.js.map +1 -0
- package/dist/chunks/make-element-focusable-ByC0LOwU.js +2 -0
- package/dist/chunks/make-element-focusable-ByC0LOwU.js.map +1 -0
- package/dist/chunks/make-element-focusable-urU2Yczu.js +22 -0
- package/dist/chunks/make-element-focusable-urU2Yczu.js.map +1 -0
- package/dist/chunks/mergeProps-BeIu4MsM.js +2 -0
- package/dist/chunks/mergeProps-BeIu4MsM.js.map +1 -0
- package/dist/chunks/mergeProps-DAjoWNOq.js +128 -0
- package/dist/chunks/mergeProps-DAjoWNOq.js.map +1 -0
- package/dist/chunks/multiline-text-input-B8v-mx89.js +12 -0
- package/dist/chunks/multiline-text-input-B8v-mx89.js.map +1 -0
- package/dist/chunks/multiline-text-input-BS9tsQnR.js +116 -0
- package/dist/chunks/multiline-text-input-BS9tsQnR.js.map +1 -0
- package/dist/chunks/nimbus-provider-CFSRgGKt.js +1530 -0
- package/dist/chunks/nimbus-provider-CFSRgGKt.js.map +1 -0
- package/dist/chunks/nimbus-provider-jZPLt7_j.js +2 -0
- package/dist/chunks/nimbus-provider-jZPLt7_j.js.map +1 -0
- package/dist/chunks/number-5qMXmHyn.js +21 -0
- package/dist/chunks/number-5qMXmHyn.js.map +1 -0
- package/dist/chunks/number-CnrRPi4_.js +2 -0
- package/dist/chunks/number-CnrRPi4_.js.map +1 -0
- package/dist/chunks/number-input-BFA-uYaI.js +652 -0
- package/dist/chunks/number-input-BFA-uYaI.js.map +1 -0
- package/dist/chunks/number-input-CDaEIN66.js +2 -0
- package/dist/chunks/number-input-CDaEIN66.js.map +1 -0
- package/dist/chunks/number-input.recipe-2n6A2w0m.js +2 -0
- package/dist/chunks/number-input.recipe-2n6A2w0m.js.map +1 -0
- package/dist/chunks/number-input.recipe-CbLyhXgE.js +209 -0
- package/dist/chunks/number-input.recipe-CbLyhXgE.js.map +1 -0
- package/dist/chunks/password-input-CEUQjqeT.js +50 -0
- package/dist/chunks/password-input-CEUQjqeT.js.map +1 -0
- package/dist/chunks/password-input-CYZ0QR0V.js +2 -0
- package/dist/chunks/password-input-CYZ0QR0V.js.map +1 -0
- package/dist/chunks/radio-input-5mFGE9qS.js +2 -0
- package/dist/chunks/radio-input-5mFGE9qS.js.map +1 -0
- package/dist/chunks/radio-input-cone4teU.js +319 -0
- package/dist/chunks/radio-input-cone4teU.js.map +1 -0
- package/dist/chunks/radio-input.recipe-DdXB4lqs.js +2 -0
- package/dist/chunks/radio-input.recipe-DdXB4lqs.js.map +1 -0
- package/dist/chunks/radio-input.recipe-QYiFg_Kf.js +75 -0
- package/dist/chunks/radio-input.recipe-QYiFg_Kf.js.map +1 -0
- package/dist/chunks/scrollIntoView-B01y55fg.js +2 -0
- package/dist/chunks/scrollIntoView-B01y55fg.js.map +1 -0
- package/dist/chunks/scrollIntoView-Dtwi5Vrc.js +83 -0
- package/dist/chunks/scrollIntoView-Dtwi5Vrc.js.map +1 -0
- package/dist/chunks/select-BZ2LnuaW.js +791 -0
- package/dist/chunks/select-BZ2LnuaW.js.map +1 -0
- package/dist/chunks/select-CSp1HFJF.js +2 -0
- package/dist/chunks/select-CSp1HFJF.js.map +1 -0
- package/dist/chunks/select.recipe-DS5ZRkug.js +203 -0
- package/dist/chunks/select.recipe-DS5ZRkug.js.map +1 -0
- package/dist/chunks/select.recipe-DUHFWlQt.js +2 -0
- package/dist/chunks/select.recipe-DUHFWlQt.js.map +1 -0
- package/dist/chunks/simple-grid-CHgTayx6.js +2 -0
- package/dist/chunks/simple-grid-CHgTayx6.js.map +1 -0
- package/dist/chunks/simple-grid-D6PoDK0-.js +14 -0
- package/dist/chunks/simple-grid-D6PoDK0-.js.map +1 -0
- package/dist/chunks/stack-__ugxVHD.js +11 -0
- package/dist/chunks/stack-__ugxVHD.js.map +1 -0
- package/dist/chunks/stack-wFUhYQQb.js +2 -0
- package/dist/chunks/stack-wFUhYQQb.js.map +1 -0
- package/dist/chunks/switch-CZji_hBH.js +2 -0
- package/dist/chunks/switch-CZji_hBH.js.map +1 -0
- package/dist/chunks/switch-QvuLHJL-.js +78 -0
- package/dist/chunks/switch-QvuLHJL-.js.map +1 -0
- package/dist/chunks/switch.recipe-D3gb3Xj_.js +100 -0
- package/dist/chunks/switch.recipe-D3gb3Xj_.js.map +1 -0
- package/dist/chunks/switch.recipe-DHopLj_g.js +2 -0
- package/dist/chunks/switch.recipe-DHopLj_g.js.map +1 -0
- package/dist/chunks/tag-group-JxvggHdo.js +1347 -0
- package/dist/chunks/tag-group-JxvggHdo.js.map +1 -0
- package/dist/chunks/tag-group-v87SYIPj.js +2 -0
- package/dist/chunks/tag-group-v87SYIPj.js.map +1 -0
- package/dist/chunks/text-BTD3oGaQ.js +24 -0
- package/dist/chunks/text-BTD3oGaQ.js.map +1 -0
- package/dist/chunks/text-BjzNgHxv.js +2 -0
- package/dist/chunks/text-BjzNgHxv.js.map +1 -0
- package/dist/chunks/text-input-CpABYE1g.js +17 -0
- package/dist/chunks/text-input-CpABYE1g.js.map +1 -0
- package/dist/chunks/text-input-Ov6DSJhs.js +2 -0
- package/dist/chunks/text-input-Ov6DSJhs.js.map +1 -0
- package/dist/chunks/text-input.recipe-CGpq33Pp.js +64 -0
- package/dist/chunks/text-input.recipe-CGpq33Pp.js.map +1 -0
- package/dist/chunks/text-input.recipe-DxzvFMOB.js +2 -0
- package/dist/chunks/text-input.recipe-DxzvFMOB.js.map +1 -0
- package/dist/chunks/time-input-BIUdp4gX.js +2 -0
- package/dist/chunks/time-input-BIUdp4gX.js.map +1 -0
- package/dist/chunks/time-input-DS6RgF12.js +129 -0
- package/dist/chunks/time-input-DS6RgF12.js.map +1 -0
- package/dist/chunks/toggle-button-group-0a-aeCiH.js +265 -0
- package/dist/chunks/toggle-button-group-0a-aeCiH.js.map +1 -0
- package/dist/chunks/toggle-button-group-BdLaFCWe.js +2 -0
- package/dist/chunks/toggle-button-group-BdLaFCWe.js.map +1 -0
- package/dist/chunks/tooltip-BdwdWMCL.js +273 -0
- package/dist/chunks/tooltip-BdwdWMCL.js.map +1 -0
- package/dist/chunks/tooltip-_9ZfCa2D.js +2 -0
- package/dist/chunks/tooltip-_9ZfCa2D.js.map +1 -0
- package/dist/chunks/tooltip.recipe-CkNOA8Sg.js +2 -0
- package/dist/chunks/tooltip.recipe-CkNOA8Sg.js.map +1 -0
- package/dist/chunks/tooltip.recipe-D9fYIQZz.js +24 -0
- package/dist/chunks/tooltip.recipe-D9fYIQZz.js.map +1 -0
- package/dist/chunks/useButton-BRqxk71F.js +2 -0
- package/dist/chunks/useButton-BRqxk71F.js.map +1 -0
- package/dist/chunks/useButton-CGSIlDH9.js +48 -0
- package/dist/chunks/useButton-CGSIlDH9.js.map +1 -0
- package/dist/chunks/useCollator-PO0ZNDFD.js +12 -0
- package/dist/chunks/useCollator-PO0ZNDFD.js.map +1 -0
- package/dist/chunks/useCollator-ajK3YU47.js +2 -0
- package/dist/chunks/useCollator-ajK3YU47.js.map +1 -0
- package/dist/chunks/useControlledState-D0L6S_5r.js +2 -0
- package/dist/chunks/useControlledState-D0L6S_5r.js.map +1 -0
- package/dist/chunks/useControlledState-u436Wbp1.js +31 -0
- package/dist/chunks/useControlledState-u436Wbp1.js.map +1 -0
- package/dist/chunks/useDateFormatter-BYTqyfPM.js +2 -0
- package/dist/chunks/useDateFormatter-BYTqyfPM.js.map +1 -0
- package/dist/chunks/useDateFormatter-CZ3YJIiV.js +1581 -0
- package/dist/chunks/useDateFormatter-CZ3YJIiV.js.map +1 -0
- package/dist/chunks/useEvent-9hDa8zoA.js +22 -0
- package/dist/chunks/useEvent-9hDa8zoA.js.map +1 -0
- package/dist/chunks/useEvent-DCXRKhH2.js +2 -0
- package/dist/chunks/useEvent-DCXRKhH2.js.map +1 -0
- package/dist/chunks/useField-3jug3XBb.js +36 -0
- package/dist/chunks/useField-3jug3XBb.js.map +1 -0
- package/dist/chunks/useField-BeaT9Ud9.js +2 -0
- package/dist/chunks/useField-BeaT9Ud9.js.map +1 -0
- package/dist/chunks/useFocus-CP2rlXSg.js +2 -0
- package/dist/chunks/useFocus-CP2rlXSg.js.map +1 -0
- package/dist/chunks/useFocus-mfjoACQ_.js +184 -0
- package/dist/chunks/useFocus-mfjoACQ_.js.map +1 -0
- package/dist/chunks/useFocusRing-C4z9NtLP.js +2 -0
- package/dist/chunks/useFocusRing-C4z9NtLP.js.map +1 -0
- package/dist/chunks/useFocusRing-C8yOnkHj.js +34 -0
- package/dist/chunks/useFocusRing-C8yOnkHj.js.map +1 -0
- package/dist/chunks/useFocusWithin-BENrOz43.js +2 -0
- package/dist/chunks/useFocusWithin-BENrOz43.js.map +1 -0
- package/dist/chunks/useFocusWithin-CLd9itwe.js +55 -0
- package/dist/chunks/useFocusWithin-CLd9itwe.js.map +1 -0
- package/dist/chunks/useFocusable-C7jAQfqU.js +2 -0
- package/dist/chunks/useFocusable-C7jAQfqU.js.map +1 -0
- package/dist/chunks/useFocusable-IwGfkXQG.js +75 -0
- package/dist/chunks/useFocusable-IwGfkXQG.js.map +1 -0
- package/dist/chunks/useFormReset-Bt5-6Arg.js +2 -0
- package/dist/chunks/useFormReset-Bt5-6Arg.js.map +1 -0
- package/dist/chunks/useFormReset-CzGCrdxu.js +21 -0
- package/dist/chunks/useFormReset-CzGCrdxu.js.map +1 -0
- package/dist/chunks/useFormValidation-BSXga2hX.js +2 -0
- package/dist/chunks/useFormValidation-BSXga2hX.js.map +1 -0
- package/dist/chunks/useFormValidation-BcDTI6Mp.js +179 -0
- package/dist/chunks/useFormValidation-BcDTI6Mp.js.map +1 -0
- package/dist/chunks/useHover-ByIffPdS.js +2 -0
- package/dist/chunks/useHover-ByIffPdS.js.map +1 -0
- package/dist/chunks/useHover-CbdI4C89.js +85 -0
- package/dist/chunks/useHover-CbdI4C89.js.map +1 -0
- package/dist/chunks/useLabel-As7K6zBZ.js +2 -0
- package/dist/chunks/useLabel-As7K6zBZ.js.map +1 -0
- package/dist/chunks/useLabel-Dd6M1Y4b.js +24 -0
- package/dist/chunks/useLabel-Dd6M1Y4b.js.map +1 -0
- package/dist/chunks/useLabels-B-BeKbzR.js +2 -0
- package/dist/chunks/useLabels-B-BeKbzR.js.map +1 -0
- package/dist/chunks/useLabels-B1BLA0b7.js +18 -0
- package/dist/chunks/useLabels-B1BLA0b7.js.map +1 -0
- package/dist/chunks/useLocalizedStringFormatter-CDXOVKSV.js +2 -0
- package/dist/chunks/useLocalizedStringFormatter-CDXOVKSV.js.map +1 -0
- package/dist/chunks/useLocalizedStringFormatter-JGrQYmnh.js +97 -0
- package/dist/chunks/useLocalizedStringFormatter-JGrQYmnh.js.map +1 -0
- package/dist/chunks/useNumberFormatter-DS6s5teN.js +2 -0
- package/dist/chunks/useNumberFormatter-DS6s5teN.js.map +1 -0
- package/dist/chunks/useNumberFormatter-Dx-esBDc.js +14 -0
- package/dist/chunks/useNumberFormatter-Dx-esBDc.js.map +1 -0
- package/dist/chunks/useObjectRef-4v2MxSjQ.js +2 -0
- package/dist/chunks/useObjectRef-4v2MxSjQ.js.map +1 -0
- package/dist/chunks/useObjectRef-CaJ5pgjX.js +30 -0
- package/dist/chunks/useObjectRef-CaJ5pgjX.js.map +1 -0
- package/dist/chunks/usePress-C9YKhG_e.js +8 -0
- package/dist/chunks/usePress-C9YKhG_e.js.map +1 -0
- package/dist/chunks/usePress-dJvNd3G7.js +526 -0
- package/dist/chunks/usePress-dJvNd3G7.js.map +1 -0
- package/dist/chunks/useSingleSelectListState-CwUhrKQb.js +2 -0
- package/dist/chunks/useSingleSelectListState-CwUhrKQb.js.map +1 -0
- package/dist/chunks/useSingleSelectListState-DovbyYzZ.js +269 -0
- package/dist/chunks/useSingleSelectListState-DovbyYzZ.js.map +1 -0
- package/dist/chunks/useSpinButton-D16epD7I.js +432 -0
- package/dist/chunks/useSpinButton-D16epD7I.js.map +1 -0
- package/dist/chunks/useSpinButton-UFcBxg8e.js +2 -0
- package/dist/chunks/useSpinButton-UFcBxg8e.js.map +1 -0
- package/dist/chunks/useTextField-DFfK-BZg.js +88 -0
- package/dist/chunks/useTextField-DFfK-BZg.js.map +1 -0
- package/dist/chunks/useTextField-lejiPfpS.js +2 -0
- package/dist/chunks/useTextField-lejiPfpS.js.map +1 -0
- package/dist/chunks/useToggle-BUU7amte.js +2 -0
- package/dist/chunks/useToggle-BUU7amte.js.map +1 -0
- package/dist/chunks/useToggle-Cp-w42gr.js +50 -0
- package/dist/chunks/useToggle-Cp-w42gr.js.map +1 -0
- package/dist/chunks/useToggleState-B5pE_WmM.js +2 -0
- package/dist/chunks/useToggleState-B5pE_WmM.js.map +1 -0
- package/dist/chunks/useToggleState-Bz5rAf4C.js +19 -0
- package/dist/chunks/useToggleState-Bz5rAf4C.js.map +1 -0
- package/dist/chunks/useUpdateEffect-CCDx8D4X.js +14 -0
- package/dist/chunks/useUpdateEffect-CCDx8D4X.js.map +1 -0
- package/dist/chunks/useUpdateEffect-sk3kiVGz.js +2 -0
- package/dist/chunks/useUpdateEffect-sk3kiVGz.js.map +1 -0
- package/dist/chunks/utils-BzPwFwlw.js +2 -0
- package/dist/chunks/utils-BzPwFwlw.js.map +1 -0
- package/dist/chunks/utils-DTmE9QvG.js +128 -0
- package/dist/chunks/utils-DTmE9QvG.js.map +1 -0
- package/dist/chunks/utils-XbOVivul.js +2 -0
- package/dist/chunks/utils-XbOVivul.js.map +1 -0
- package/dist/chunks/utils-wW2ZswvI.js +231 -0
- package/dist/chunks/utils-wW2ZswvI.js.map +1 -0
- package/dist/chunks/visually-hidden-Qd_t4hAG.js +2 -0
- package/dist/chunks/visually-hidden-Qd_t4hAG.js.map +1 -0
- package/dist/chunks/visually-hidden-T2B120j4.js +11 -0
- package/dist/chunks/visually-hidden-T2B120j4.js.map +1 -0
- package/dist/code.d.ts +10 -0
- package/dist/combobox.d.ts +275 -0
- package/dist/components/accordion.cjs +2 -0
- package/dist/components/accordion.cjs.map +1 -0
- package/dist/components/accordion.es.js +10 -0
- package/dist/components/accordion.es.js.map +1 -0
- package/dist/components/alert.cjs +2 -0
- package/dist/components/alert.cjs.map +1 -0
- package/dist/components/alert.es.js +10 -0
- package/dist/components/alert.es.js.map +1 -0
- package/dist/components/avatar.cjs +2 -0
- package/dist/components/avatar.cjs.map +1 -0
- package/dist/components/avatar.es.js +5 -0
- package/dist/components/avatar.es.js.map +1 -0
- package/dist/components/badge.cjs +2 -0
- package/dist/components/badge.cjs.map +1 -0
- package/dist/components/badge.es.js +5 -0
- package/dist/components/badge.es.js.map +1 -0
- package/dist/components/box.cjs +2 -0
- package/dist/components/box.cjs.map +1 -0
- package/dist/components/box.es.js +5 -0
- package/dist/components/box.es.js.map +1 -0
- package/dist/components/button.cjs +2 -0
- package/dist/components/button.cjs.map +1 -0
- package/dist/components/button.es.js +5 -0
- package/dist/components/button.es.js.map +1 -0
- package/dist/components/calendar.cjs +2 -0
- package/dist/components/calendar.cjs.map +1 -0
- package/dist/components/calendar.es.js +5 -0
- package/dist/components/calendar.es.js.map +1 -0
- package/dist/components/card.cjs +2 -0
- package/dist/components/card.cjs.map +1 -0
- package/dist/components/card.es.js +8 -0
- package/dist/components/card.es.js.map +1 -0
- package/dist/components/checkbox.cjs +2 -0
- package/dist/components/checkbox.cjs.map +1 -0
- package/dist/components/checkbox.es.js +5 -0
- package/dist/components/checkbox.es.js.map +1 -0
- package/dist/components/code.cjs +2 -0
- package/dist/components/code.cjs.map +1 -0
- package/dist/components/code.es.js +5 -0
- package/dist/components/code.es.js.map +1 -0
- package/dist/components/combobox.cjs +2 -0
- package/dist/components/combobox.cjs.map +1 -0
- package/dist/components/combobox.es.js +8 -0
- package/dist/components/combobox.es.js.map +1 -0
- package/dist/components/components.cjs +2 -0
- package/dist/components/components.cjs.map +1 -0
- package/dist/components/components.es.js +125 -0
- package/dist/components/components.es.js.map +1 -0
- package/dist/components/date-input.cjs +2 -0
- package/dist/components/date-input.cjs.map +1 -0
- package/dist/components/date-input.es.js +5 -0
- package/dist/components/date-input.es.js.map +1 -0
- package/dist/components/date-picker.cjs +2 -0
- package/dist/components/date-picker.cjs.map +1 -0
- package/dist/components/date-picker.es.js +5 -0
- package/dist/components/date-picker.es.js.map +1 -0
- package/dist/components/dialog.cjs +2 -0
- package/dist/components/dialog.cjs.map +1 -0
- package/dist/components/dialog.es.js +5 -0
- package/dist/components/dialog.es.js.map +1 -0
- package/dist/components/flex.cjs +2 -0
- package/dist/components/flex.cjs.map +1 -0
- package/dist/components/flex.es.js +5 -0
- package/dist/components/flex.es.js.map +1 -0
- package/dist/components/form-field.cjs +2 -0
- package/dist/components/form-field.cjs.map +1 -0
- package/dist/components/form-field.es.js +11 -0
- package/dist/components/form-field.es.js.map +1 -0
- package/dist/components/grid.cjs +2 -0
- package/dist/components/grid.cjs.map +1 -0
- package/dist/components/grid.es.js +5 -0
- package/dist/components/grid.es.js.map +1 -0
- package/dist/components/heading.cjs +2 -0
- package/dist/components/heading.cjs.map +1 -0
- package/dist/components/heading.es.js +5 -0
- package/dist/components/heading.es.js.map +1 -0
- package/dist/components/icon-button.cjs +2 -0
- package/dist/components/icon-button.cjs.map +1 -0
- package/dist/components/icon-button.es.js +5 -0
- package/dist/components/icon-button.es.js.map +1 -0
- package/dist/components/icon.cjs +2 -0
- package/dist/components/icon.cjs.map +1 -0
- package/dist/components/icon.es.js +5 -0
- package/dist/components/icon.es.js.map +1 -0
- package/dist/components/image.cjs +2 -0
- package/dist/components/image.cjs.map +1 -0
- package/dist/components/image.es.js +5 -0
- package/dist/components/image.es.js.map +1 -0
- package/dist/components/kbd.cjs +2 -0
- package/dist/components/kbd.cjs.map +1 -0
- package/dist/components/kbd.es.js +5 -0
- package/dist/components/kbd.es.js.map +1 -0
- package/dist/components/link.cjs +2 -0
- package/dist/components/link.cjs.map +1 -0
- package/dist/components/link.es.js +5 -0
- package/dist/components/link.es.js.map +1 -0
- package/dist/components/list.cjs +2 -0
- package/dist/components/list.cjs.map +1 -0
- package/dist/components/list.es.js +8 -0
- package/dist/components/list.es.js.map +1 -0
- package/dist/components/loading-spinner.cjs +2 -0
- package/dist/components/loading-spinner.cjs.map +1 -0
- package/dist/components/loading-spinner.es.js +5 -0
- package/dist/components/loading-spinner.es.js.map +1 -0
- package/dist/components/multiline-text-input.cjs +2 -0
- package/dist/components/multiline-text-input.cjs.map +1 -0
- package/dist/components/multiline-text-input.es.js +5 -0
- package/dist/components/multiline-text-input.es.js.map +1 -0
- package/dist/components/nimbus-provider.cjs +2 -0
- package/dist/components/nimbus-provider.cjs.map +1 -0
- package/dist/components/nimbus-provider.es.js +8 -0
- package/dist/components/nimbus-provider.es.js.map +1 -0
- package/dist/components/number-input.cjs +2 -0
- package/dist/components/number-input.cjs.map +1 -0
- package/dist/components/number-input.es.js +5 -0
- package/dist/components/number-input.es.js.map +1 -0
- package/dist/components/password-input.cjs +2 -0
- package/dist/components/password-input.cjs.map +1 -0
- package/dist/components/password-input.es.js +5 -0
- package/dist/components/password-input.es.js.map +1 -0
- package/dist/components/radio-input.cjs +2 -0
- package/dist/components/radio-input.cjs.map +1 -0
- package/dist/components/radio-input.es.js +7 -0
- package/dist/components/radio-input.es.js.map +1 -0
- package/dist/components/select.cjs +2 -0
- package/dist/components/select.cjs.map +1 -0
- package/dist/components/select.es.js +9 -0
- package/dist/components/select.es.js.map +1 -0
- package/dist/components/simple-grid.cjs +2 -0
- package/dist/components/simple-grid.cjs.map +1 -0
- package/dist/components/simple-grid.es.js +5 -0
- package/dist/components/simple-grid.es.js.map +1 -0
- package/dist/components/stack.cjs +2 -0
- package/dist/components/stack.cjs.map +1 -0
- package/dist/components/stack.es.js +5 -0
- package/dist/components/stack.es.js.map +1 -0
- package/dist/components/switch.cjs +2 -0
- package/dist/components/switch.cjs.map +1 -0
- package/dist/components/switch.es.js +5 -0
- package/dist/components/switch.es.js.map +1 -0
- package/dist/components/table.cjs +2 -0
- package/dist/components/table.cjs.map +1 -0
- package/dist/components/table.es.js +5 -0
- package/dist/components/table.es.js.map +1 -0
- package/dist/components/tag-group.cjs +2 -0
- package/dist/components/tag-group.cjs.map +1 -0
- package/dist/components/tag-group.es.js +5 -0
- package/dist/components/tag-group.es.js.map +1 -0
- package/dist/components/text-input.cjs +2 -0
- package/dist/components/text-input.cjs.map +1 -0
- package/dist/components/text-input.es.js +5 -0
- package/dist/components/text-input.es.js.map +1 -0
- package/dist/components/text.cjs +2 -0
- package/dist/components/text.cjs.map +1 -0
- package/dist/components/text.es.js +5 -0
- package/dist/components/text.es.js.map +1 -0
- package/dist/components/time-input.cjs +2 -0
- package/dist/components/time-input.cjs.map +1 -0
- package/dist/components/time-input.es.js +5 -0
- package/dist/components/time-input.es.js.map +1 -0
- package/dist/components/toggle-button-group.cjs +2 -0
- package/dist/components/toggle-button-group.cjs.map +1 -0
- package/dist/components/toggle-button-group.es.js +7 -0
- package/dist/components/toggle-button-group.es.js.map +1 -0
- package/dist/components/tooltip.cjs +2 -0
- package/dist/components/tooltip.cjs.map +1 -0
- package/dist/components/tooltip.es.js +9 -0
- package/dist/components/tooltip.es.js.map +1 -0
- package/dist/components/visually-hidden.cjs +2 -0
- package/dist/components/visually-hidden.cjs.map +1 -0
- package/dist/components/visually-hidden.es.js +5 -0
- package/dist/components/visually-hidden.es.js.map +1 -0
- package/dist/components.d.ts +2668 -0
- package/dist/date-input.d.ts +94 -0
- package/dist/date-picker.d.ts +164 -0
- package/dist/dialog.d.ts +33 -0
- package/dist/flex.d.ts +5 -0
- package/dist/form-field.d.ts +131 -0
- package/dist/grid.d.ts +28 -0
- package/dist/heading.d.ts +5 -0
- package/dist/icon-button.d.ts +53 -0
- package/dist/icon.d.ts +99 -0
- package/dist/image.d.ts +18 -0
- package/dist/index.cjs +1 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +934 -748
- package/dist/index.es.js +308 -22041
- package/dist/index.es.js.map +1 -1
- package/dist/kbd.d.ts +10 -0
- package/dist/link.d.ts +92 -0
- package/dist/list.d.ts +21 -0
- package/dist/loading-spinner.d.ts +88 -0
- package/dist/multiline-text-input.d.ts +76 -0
- package/dist/nimbus-provider.d.ts +23 -0
- package/dist/number-input.d.ts +143 -0
- package/dist/password-input.d.ts +74 -0
- package/dist/radio-input.d.ts +70 -0
- package/dist/select.d.ts +143 -0
- package/dist/setup-jsdom-polyfills.cjs.map +1 -1
- package/dist/setup-jsdom-polyfills.es.js.map +1 -1
- package/dist/simple-grid.d.ts +28 -0
- package/dist/stack.d.ts +14 -0
- package/dist/switch.d.ts +75 -0
- package/dist/table.d.ts +5 -0
- package/dist/tag-group.d.ts +99 -0
- package/dist/text-input.d.ts +68 -0
- package/dist/text.d.ts +20 -0
- package/dist/time-input.d.ts +102 -0
- package/dist/toggle-button-group.d.ts +107 -0
- package/dist/tooltip.d.ts +134 -0
- package/dist/visually-hidden.d.ts +15 -0
- package/package.json +6 -5
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const a=require("./utils-BzPwFwlw.js"),s=require("react"),K=require("./SSRProvider-DZRLwxPS.js");function x(e){var n;return typeof window>"u"||window.navigator==null?!1:((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent)}function L(e){var n;return typeof window<"u"&&window.navigator!=null?e.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function $(e){if(process.env.NODE_ENV==="test")return e;let n=null;return()=>(n==null&&(n=e()),n)}const m=$(function(){return L(/^Mac/i)}),k=$(function(){return L(/^iPhone/i)}),M=$(function(){return L(/^iPad/i)||m()&&navigator.maxTouchPoints>1}),F=$(function(){return k()||M()}),O=$(function(){return m()||F()}),B=$(function(){return x(/AppleWebKit/i)&&!H()}),H=$(function(){return x(/Chrome/i)}),h=$(function(){return x(/Android/i)}),N=$(function(){return x(/Firefox/i)});function D(e){return e.mozInputSource===0&&e.isTrusted?!0:h()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function j(e){return!h()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}let d=null,l=new Set,b=new Map,i=!1,g=!1;const V={Tab:!0,Escape:!0};function w(e,n){for(let t of l)t(e,n)}function W(e){return!(e.metaKey||!m()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function v(e){i=!0,W(e)&&(d="keyboard",w("keyboard",e))}function f(e){d="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(i=!0,w("pointer",e))}function S(e){D(e)&&(i=!0,d="virtual")}function C(e){e.target===window||e.target===document||a.$8a9cb279dc87e130$export$fda7da73ab5d4c48||!e.isTrusted||(!i&&!g&&(d="virtual",w("virtual",e)),i=!1,g=!1)}function P(){a.$8a9cb279dc87e130$export$fda7da73ab5d4c48||(i=!1,g=!0)}function E(e){if(typeof window>"u"||typeof document>"u"||b.get(a.$431fbd86ca7dc216$export$f21a1ffae260145a(e)))return;const n=a.$431fbd86ca7dc216$export$f21a1ffae260145a(e),t=a.$431fbd86ca7dc216$export$b204af158042fbac(e);let r=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){i=!0,r.apply(this,arguments)},t.addEventListener("keydown",v,!0),t.addEventListener("keyup",v,!0),t.addEventListener("click",S,!0),n.addEventListener("focus",C,!0),n.addEventListener("blur",P,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",f,!0),t.addEventListener("pointermove",f,!0),t.addEventListener("pointerup",f,!0)):process.env.NODE_ENV==="test"&&(t.addEventListener("mousedown",f,!0),t.addEventListener("mousemove",f,!0),t.addEventListener("mouseup",f,!0)),n.addEventListener("beforeunload",()=>{_(e)},{once:!0}),b.set(n,{focus:r})}const _=(e,n)=>{const t=a.$431fbd86ca7dc216$export$f21a1ffae260145a(e),r=a.$431fbd86ca7dc216$export$b204af158042fbac(e);n&&r.removeEventListener("DOMContentLoaded",n),b.has(t)&&(t.HTMLElement.prototype.focus=b.get(t).focus,r.removeEventListener("keydown",v,!0),r.removeEventListener("keyup",v,!0),r.removeEventListener("click",S,!0),t.removeEventListener("focus",C,!0),t.removeEventListener("blur",P,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",f,!0),r.removeEventListener("pointermove",f,!0),r.removeEventListener("pointerup",f,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",f,!0),r.removeEventListener("mousemove",f,!0),r.removeEventListener("mouseup",f,!0)),b.delete(t))};function q(e){const n=a.$431fbd86ca7dc216$export$b204af158042fbac(e);let t;return n.readyState!=="loading"?E(e):(t=()=>{E(e)},n.addEventListener("DOMContentLoaded",t)),()=>_(e,t)}typeof document<"u"&&q();function A(){return d!=="pointer"}function R(){return d}function U(e){d=e,w(e,null)}function z(){E();let[e,n]=s.useState(d);return s.useEffect(()=>{let t=()=>{n(d)};return l.add(t),()=>{l.delete(t)}},[]),K.$b5e257d569688ac6$export$535bd6ca7f90a273()?null:e}const G=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Y(e,n,t){let r=a.$431fbd86ca7dc216$export$b204af158042fbac(t==null?void 0:t.target);const o=typeof window<"u"?a.$431fbd86ca7dc216$export$f21a1ffae260145a(t==null?void 0:t.target).HTMLInputElement:HTMLInputElement,u=typeof window<"u"?a.$431fbd86ca7dc216$export$f21a1ffae260145a(t==null?void 0:t.target).HTMLTextAreaElement:HTMLTextAreaElement,p=typeof window<"u"?a.$431fbd86ca7dc216$export$f21a1ffae260145a(t==null?void 0:t.target).HTMLElement:HTMLElement,y=typeof window<"u"?a.$431fbd86ca7dc216$export$f21a1ffae260145a(t==null?void 0:t.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!G.has(r.activeElement.type)||r.activeElement instanceof u||r.activeElement instanceof p&&r.activeElement.isContentEditable,!(e&&n==="keyboard"&&t instanceof y&&!V[t.key])}function J(e,n,t){E(),s.useEffect(()=>{let r=(o,u)=>{Y(!!(t!=null&&t.isTextInput),o,u)&&e(A())};return l.add(r),()=>{l.delete(r)}},n)}function Q(e){let{isDisabled:n,onFocus:t,onBlur:r,onFocusChange:o}=e;const u=s.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),o&&o(!1),!0},[r,o]),p=a.$8a9cb279dc87e130$export$715c682d09d639cc(u),y=s.useCallback(c=>{const T=a.$431fbd86ca7dc216$export$b204af158042fbac(c.target),I=T?a.$d4ee10de306f2510$export$cd4e5573fbe2b576(T):a.$d4ee10de306f2510$export$cd4e5573fbe2b576();c.target===c.currentTarget&&I===a.$d4ee10de306f2510$export$e58f029f0fbfdb29(c.nativeEvent)&&(t&&t(c),o&&o(!0),p(c))},[o,t,p]);return{focusProps:{onFocus:!n&&(t||o||r)?y:void 0,onBlur:!n&&(r||o)?u:void 0}}}exports.$507fabe10e71c6fb$export$630ff653c5ada6a9=R;exports.$507fabe10e71c6fb$export$8397ddfc504fdb9a=U;exports.$507fabe10e71c6fb$export$98e20ec92f614cfe=z;exports.$507fabe10e71c6fb$export$b9b3dfddab17db27=A;exports.$507fabe10e71c6fb$export$ec71b4b83ac08ec3=J;exports.$6a7db85432448f7f$export$29bf1b5f2c56cf63=j;exports.$6a7db85432448f7f$export$60278871457622de=D;exports.$a1ea59d68270f0dd$export$f8168d8dd8fd66e6=Q;exports.$c87311424ea30a05$export$186c6964ca17d99=k;exports.$c87311424ea30a05$export$6446a186d09e379e=H;exports.$c87311424ea30a05$export$78551043582a6a98=B;exports.$c87311424ea30a05$export$7bef049ce92e4224=M;exports.$c87311424ea30a05$export$9ac100e40613ea10=m;exports.$c87311424ea30a05$export$a11b0059900ceec8=h;exports.$c87311424ea30a05$export$b7d78993b74f766d=N;exports.$c87311424ea30a05$export$e1865c3bedcd822b=O;exports.$c87311424ea30a05$export$fedb369cb70207f1=F;
|
|
2
|
+
//# sourceMappingURL=useFocus-CP2rlXSg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFocus-CP2rlXSg.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.29.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/platform.mjs","../../../../node_modules/.pnpm/@react-aria+utils@3.29.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/isVirtualEvent.mjs","../../../../node_modules/.pnpm/@react-aria+interactions@3.25.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/interactions/dist/useFocusVisible.mjs","../../../../node_modules/.pnpm/@react-aria+interactions@3.25.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/interactions/dist/useFocus.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $c87311424ea30a05$var$testUserAgent(re) {\n var _window_navigator_userAgentData;\n if (typeof window === 'undefined' || window.navigator == null) return false;\n return ((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand)=>re.test(brand.brand))) || re.test(window.navigator.userAgent);\n}\nfunction $c87311424ea30a05$var$testPlatform(re) {\n var _window_navigator_userAgentData;\n return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;\n}\nfunction $c87311424ea30a05$var$cached(fn) {\n if (process.env.NODE_ENV === 'test') return fn;\n let res = null;\n return ()=>{\n if (res == null) res = fn();\n return res;\n };\n}\nconst $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testPlatform(/^Mac/i);\n});\nconst $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testPlatform(/^iPhone/i);\n});\nconst $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.\n $c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;\n});\nconst $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();\n});\nconst $c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();\n});\nconst $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();\n});\nconst $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/Chrome/i);\n});\nconst $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/Android/i);\n});\nconst $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/Firefox/i);\n});\n\n\nexport {$c87311424ea30a05$export$9ac100e40613ea10 as isMac, $c87311424ea30a05$export$186c6964ca17d99 as isIPhone, $c87311424ea30a05$export$7bef049ce92e4224 as isIPad, $c87311424ea30a05$export$fedb369cb70207f1 as isIOS, $c87311424ea30a05$export$e1865c3bedcd822b as isAppleDevice, $c87311424ea30a05$export$78551043582a6a98 as isWebKit, $c87311424ea30a05$export$6446a186d09e379e as isChrome, $c87311424ea30a05$export$a11b0059900ceec8 as isAndroid, $c87311424ea30a05$export$b7d78993b74f766d as isFirefox};\n//# sourceMappingURL=platform.module.js.map\n","import {isAndroid as $c87311424ea30a05$export$a11b0059900ceec8} from \"./platform.mjs\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $6a7db85432448f7f$export$60278871457622de(event) {\n // JAWS/NVDA with Firefox.\n if (event.mozInputSource === 0 && event.isTrusted) return true;\n // Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead\n // If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check\n // to detect TalkBack virtual clicks.\n if ((0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.pointerType) return event.type === 'click' && event.buttons === 1;\n return event.detail === 0 && !event.pointerType;\n}\nfunction $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {\n // If the pointer size is zero, then we assume it's from a screen reader.\n // Android TalkBack double tap will sometimes return a event with width and height of 1\n // and pointerType === 'mouse' so we need to check for a specific combination of event attributes.\n // Cannot use \"event.pressure === 0\" as the sole check due to Safari pointer events always returning pressure === 0\n // instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush\n // Talkback double tap from Windows Firefox touch screen press\n return !(0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse';\n}\n\n\nexport {$6a7db85432448f7f$export$60278871457622de as isVirtualClick, $6a7db85432448f7f$export$29bf1b5f2c56cf63 as isVirtualPointerEvent};\n//# sourceMappingURL=isVirtualEvent.module.js.map\n","import {ignoreFocusEvent as $8a9cb279dc87e130$export$fda7da73ab5d4c48} from \"./utils.mjs\";\nimport {isMac as $28AnR$isMac, isVirtualClick as $28AnR$isVirtualClick, getOwnerWindow as $28AnR$getOwnerWindow, getOwnerDocument as $28AnR$getOwnerDocument} from \"@react-aria/utils\";\nimport {useState as $28AnR$useState, useEffect as $28AnR$useEffect} from \"react\";\nimport {useIsSSR as $28AnR$useIsSSR} from \"@react-aria/ssr\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\n\nlet $507fabe10e71c6fb$var$currentModality = null;\nlet $507fabe10e71c6fb$var$changeHandlers = new Set();\nlet $507fabe10e71c6fb$export$d90243b58daecda7 = new Map(); // We use a map here to support setting event listeners across multiple document objects.\nlet $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\nlet $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n// Only Tab or Esc keys will make focus visible on text input elements\nconst $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {\n Tab: true,\n Escape: true\n};\nfunction $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {\n for (let handler of $507fabe10e71c6fb$var$changeHandlers)handler(modality, e);\n}\n/**\n * Helper function to determine if a KeyboardEvent is unmodified and could make keyboard focus styles visible.\n */ function $507fabe10e71c6fb$var$isValidKey(e) {\n // Control and Shift keys trigger when navigating back to the tab with keyboard.\n return !(e.metaKey || !(0, $28AnR$isMac)() && e.altKey || e.ctrlKey || e.key === 'Control' || e.key === 'Shift' || e.key === 'Meta');\n}\nfunction $507fabe10e71c6fb$var$handleKeyboardEvent(e) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n if ($507fabe10e71c6fb$var$isValidKey(e)) {\n $507fabe10e71c6fb$var$currentModality = 'keyboard';\n $507fabe10e71c6fb$var$triggerChangeHandlers('keyboard', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handlePointerEvent(e) {\n $507fabe10e71c6fb$var$currentModality = 'pointer';\n if (e.type === 'mousedown' || e.type === 'pointerdown') {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$triggerChangeHandlers('pointer', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handleClickEvent(e) {\n if ((0, $28AnR$isVirtualClick)(e)) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n }\n}\nfunction $507fabe10e71c6fb$var$handleFocusEvent(e) {\n // Firefox fires two extra focus events when the user first clicks into an iframe:\n // first on the window, then on the document. We ignore these events so they don't\n // cause keyboard focus rings to appear.\n if (e.target === window || e.target === document || (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) || !e.isTrusted) return;\n // If a focus event occurs without a preceding keyboard or pointer event, switch to virtual modality.\n // This occurs, for example, when navigating a form with the next/previous buttons on iOS.\n if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n $507fabe10e71c6fb$var$triggerChangeHandlers('virtual', e);\n }\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n}\nfunction $507fabe10e71c6fb$var$handleWindowBlur() {\n if (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) return;\n // When the window is blurred, reset state. This is necessary when tabbing out of the window,\n // for example, since a subsequent focus event won't be fired.\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = true;\n}\n/**\n * Setup global event listeners to control when keyboard focus style should be visible.\n */ function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {\n if (typeof window === 'undefined' || typeof document === 'undefined' || $507fabe10e71c6fb$export$d90243b58daecda7.get((0, $28AnR$getOwnerWindow)(element))) return;\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n // Programmatic focus() calls shouldn't affect the current input modality.\n // However, we need to detect other cases when a focus event occurs without\n // a preceding user event (e.g. screen reader focus). Overriding the focus\n // method on HTMLElement.prototype is a bit hacky, but works.\n let focus = windowObject.HTMLElement.prototype.focus;\n windowObject.HTMLElement.prototype.focus = function() {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n focus.apply(this, arguments);\n };\n documentObject.addEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n // Register focus events on the window so they are sure to happen\n // before React's event listeners (registered on the document).\n windowObject.addEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.addEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.addEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.addEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n // Add unmount handler\n windowObject.addEventListener('beforeunload', ()=>{\n $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);\n }, {\n once: true\n });\n $507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {\n focus: focus\n });\n}\nconst $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener)=>{\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n if (loadListener) documentObject.removeEventListener('DOMContentLoaded', loadListener);\n if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;\n windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;\n documentObject.removeEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n windowObject.removeEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.removeEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.removeEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.removeEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);\n};\nfunction $507fabe10e71c6fb$export$2f1888112f558a7d(element) {\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n let loadListener;\n if (documentObject.readyState !== 'loading') $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n else {\n loadListener = ()=>{\n $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n };\n documentObject.addEventListener('DOMContentLoaded', loadListener);\n }\n return ()=>$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);\n}\n// Server-side rendering does not have the document object defined\n// eslint-disable-next-line no-restricted-globals\nif (typeof document !== 'undefined') $507fabe10e71c6fb$export$2f1888112f558a7d();\nfunction $507fabe10e71c6fb$export$b9b3dfddab17db27() {\n return $507fabe10e71c6fb$var$currentModality !== 'pointer';\n}\nfunction $507fabe10e71c6fb$export$630ff653c5ada6a9() {\n return $507fabe10e71c6fb$var$currentModality;\n}\nfunction $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {\n $507fabe10e71c6fb$var$currentModality = modality;\n $507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);\n}\nfunction $507fabe10e71c6fb$export$98e20ec92f614cfe() {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n let [modality, setModality] = (0, $28AnR$useState)($507fabe10e71c6fb$var$currentModality);\n (0, $28AnR$useEffect)(()=>{\n let handler = ()=>{\n setModality($507fabe10e71c6fb$var$currentModality);\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n }, []);\n return (0, $28AnR$useIsSSR)() ? null : modality;\n}\nconst $507fabe10e71c6fb$var$nonTextInputTypes = new Set([\n 'checkbox',\n 'radio',\n 'range',\n 'color',\n 'file',\n 'image',\n 'button',\n 'submit',\n 'reset'\n]);\n/**\n * If this is attached to text input component, return if the event is a focus event (Tab/Escape keys pressed) so that\n * focus visible style can be properly set.\n */ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {\n let document1 = (0, $28AnR$getOwnerDocument)(e === null || e === void 0 ? void 0 : e.target);\n const IHTMLInputElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;\n const IHTMLTextAreaElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;\n const IHTMLElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;\n const IKeyboardEvent = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;\n // For keyboard events that occur on a non-input element that will move focus into input element (aka ArrowLeft going from Datepicker button to the main input group)\n // we need to rely on the user passing isTextInput into here. This way we can skip toggling focus visiblity for said input element\n isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;\n return !(isTextInput && modality === 'keyboard' && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);\n}\nfunction $507fabe10e71c6fb$export$ffd9e5021c1fb2d6(props = {}) {\n let { isTextInput: isTextInput, autoFocus: autoFocus } = props;\n let [isFocusVisibleState, setFocusVisible] = (0, $28AnR$useState)(autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27());\n $507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible)=>{\n setFocusVisible(isFocusVisible);\n }, [\n isTextInput\n ], {\n isTextInput: isTextInput\n });\n return {\n isFocusVisible: isFocusVisibleState\n };\n}\nfunction $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n (0, $28AnR$useEffect)(()=>{\n let handler = (modality, e)=>{\n // We want to early return for any keyboard events that occur inside text inputs EXCEPT for Tab and Escape\n if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;\n fn($507fabe10e71c6fb$export$b9b3dfddab17db27());\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n}\n\n\nexport {$507fabe10e71c6fb$export$d90243b58daecda7 as hasSetupGlobalListeners, $507fabe10e71c6fb$export$2f1888112f558a7d as addWindowFocusTracking, $507fabe10e71c6fb$export$b9b3dfddab17db27 as isFocusVisible, $507fabe10e71c6fb$export$630ff653c5ada6a9 as getInteractionModality, $507fabe10e71c6fb$export$8397ddfc504fdb9a as setInteractionModality, $507fabe10e71c6fb$export$98e20ec92f614cfe as useInteractionModality, $507fabe10e71c6fb$export$ffd9e5021c1fb2d6 as useFocusVisible, $507fabe10e71c6fb$export$ec71b4b83ac08ec3 as useFocusVisibleListener};\n//# sourceMappingURL=useFocusVisible.module.js.map\n","import {useSyntheticBlurEvent as $8a9cb279dc87e130$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {useCallback as $hf0lj$useCallback} from \"react\";\nimport {getOwnerDocument as $hf0lj$getOwnerDocument, getActiveElement as $hf0lj$getActiveElement, getEventTarget as $hf0lj$getEventTarget} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\nfunction $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {\n let { isDisabled: isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange: onFocusChange } = props;\n const onBlur = (0, $hf0lj$useCallback)((e)=>{\n if (e.target === e.currentTarget) {\n if (onBlurProp) onBlurProp(e);\n if (onFocusChange) onFocusChange(false);\n return true;\n }\n }, [\n onBlurProp,\n onFocusChange\n ]);\n const onSyntheticFocus = (0, $8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);\n const onFocus = (0, $hf0lj$useCallback)((e)=>{\n // Double check that document.activeElement actually matches e.target in case a previously chained\n // focus handler already moved focus somewhere else.\n const ownerDocument = (0, $hf0lj$getOwnerDocument)(e.target);\n const activeElement = ownerDocument ? (0, $hf0lj$getActiveElement)(ownerDocument) : (0, $hf0lj$getActiveElement)();\n if (e.target === e.currentTarget && activeElement === (0, $hf0lj$getEventTarget)(e.nativeEvent)) {\n if (onFocusProp) onFocusProp(e);\n if (onFocusChange) onFocusChange(true);\n onSyntheticFocus(e);\n }\n }, [\n onFocusChange,\n onFocusProp,\n onSyntheticFocus\n ]);\n return {\n focusProps: {\n onFocus: !isDisabled && (onFocusProp || onFocusChange || onBlurProp) ? onFocus : undefined,\n onBlur: !isDisabled && (onBlurProp || onFocusChange) ? onBlur : undefined\n }\n };\n}\n\n\nexport {$a1ea59d68270f0dd$export$f8168d8dd8fd66e6 as useFocus};\n//# sourceMappingURL=useFocus.module.js.map\n"],"names":["$c87311424ea30a05$var$testUserAgent","re","_window_navigator_userAgentData","brand","$c87311424ea30a05$var$testPlatform","$c87311424ea30a05$var$cached","fn","res","$c87311424ea30a05$export$9ac100e40613ea10","$c87311424ea30a05$export$186c6964ca17d99","$c87311424ea30a05$export$7bef049ce92e4224","$c87311424ea30a05$export$fedb369cb70207f1","$c87311424ea30a05$export$e1865c3bedcd822b","$c87311424ea30a05$export$78551043582a6a98","$c87311424ea30a05$export$6446a186d09e379e","$c87311424ea30a05$export$a11b0059900ceec8","$c87311424ea30a05$export$b7d78993b74f766d","$6a7db85432448f7f$export$60278871457622de","event","$6a7db85432448f7f$export$29bf1b5f2c56cf63","$507fabe10e71c6fb$var$currentModality","$507fabe10e71c6fb$var$changeHandlers","$507fabe10e71c6fb$export$d90243b58daecda7","$507fabe10e71c6fb$var$hasEventBeforeFocus","$507fabe10e71c6fb$var$hasBlurredWindowRecently","$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS","$507fabe10e71c6fb$var$triggerChangeHandlers","modality","e","handler","$507fabe10e71c6fb$var$isValidKey","$28AnR$isMac","$507fabe10e71c6fb$var$handleKeyboardEvent","$507fabe10e71c6fb$var$handlePointerEvent","$507fabe10e71c6fb$var$handleClickEvent","$28AnR$isVirtualClick","$507fabe10e71c6fb$var$handleFocusEvent","$8a9cb279dc87e130$export$fda7da73ab5d4c48","$507fabe10e71c6fb$var$handleWindowBlur","$507fabe10e71c6fb$var$setupGlobalFocusEvents","element","$28AnR$getOwnerWindow","windowObject","documentObject","$28AnR$getOwnerDocument","focus","$507fabe10e71c6fb$var$tearDownWindowFocusTracking","loadListener","$507fabe10e71c6fb$export$2f1888112f558a7d","$507fabe10e71c6fb$export$b9b3dfddab17db27","$507fabe10e71c6fb$export$630ff653c5ada6a9","$507fabe10e71c6fb$export$8397ddfc504fdb9a","$507fabe10e71c6fb$export$98e20ec92f614cfe","setModality","$28AnR$useState","$28AnR$useEffect","$28AnR$useIsSSR","$507fabe10e71c6fb$var$nonTextInputTypes","$507fabe10e71c6fb$var$isKeyboardFocusEvent","isTextInput","document1","IHTMLInputElement","IHTMLTextAreaElement","IHTMLElement","IKeyboardEvent","$507fabe10e71c6fb$export$ec71b4b83ac08ec3","deps","opts","$a1ea59d68270f0dd$export$f8168d8dd8fd66e6","props","isDisabled","onFocusProp","onBlurProp","onFocusChange","onBlur","$hf0lj$useCallback","onSyntheticFocus","$8a9cb279dc87e130$export$715c682d09d639cc","onFocus","ownerDocument","$hf0lj$getOwnerDocument","activeElement","$hf0lj$getActiveElement","$hf0lj$getEventTarget"],"mappings":"8GAUI,SAASA,EAAoCC,EAAI,CACjD,IAAIC,EACJ,OAAI,OAAO,OAAW,KAAe,OAAO,WAAa,KAAa,KAC7DA,EAAkC,OAAO,UAAU,iBAAsB,MAAQA,IAAoC,OAAS,OAASA,EAAgC,OAAO,KAAMC,GAAQF,EAAG,KAAKE,EAAM,KAAK,CAAC,IAAMF,EAAG,K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AEJ,EAAEqC,CAAI,CACX,CCzNA,SAASE,EAA0CC,EAAO,CACtD,GAAI,CAAE,WAAYC,EAAY,QAASC,EAAa,OAAQC,EAAY,cAAeC,CAAa,EAAKJ,EACzG,MAAMK,EAAaC,cAAqB/C,GAAI,CACxC,GAAIA,EAAE,SAAWA,EAAE,cACf,OAAI4C,GAAYA,EAAW5C,CAAC,EACxB6C,GAAeA,EAAc,EAAK,EAC/B,EAEnB,EAAO,CACCD,EACAC,CACR,CAAK,EACKG,EAAuBC,EAAyC,0CAAEH,CAAM,EACxEI,EAAcH,cAAqB/C,GAAI,CAGzC,MAAMmD,EAAoBC,4CAAyBpD,EAAE,MAAM,EACrDqD,EAAgBF,EAAoBG,EAAuB,0CAAEH,CAAa,EAAQG,4CAA0B,EAC9GtD,EAAE,SAAWA,EAAE,eAAiBqD,IAAsBE,EAAqB,0CAAEvD,EAAE,WAAW,IACtF2C,GAAaA,EAAY3C,CAAC,EAC1B6C,GAAeA,EAAc,EAAI,EACrCG,EAAiBhD,CAAC,EAE9B,EAAO,CACC6C,EACAF,EACAK,CACR,CAAK,EACD,MAAO,CACH,WAAY,CACR,QAAS,CAACN,IAAeC,GAAeE,GAAiBD,GAAcM,EAAU,OACjF,OAAQ,CAACR,IAAeE,GAAcC,GAAiBC,EAAS,MAC5E,CACK,CACL","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { $ as u, b, m as M, d as K, e as T, f as O } from "./utils-wW2ZswvI.js";
|
|
2
|
+
import { useEffect as F, useState as P, useCallback as k } from "react";
|
|
3
|
+
import { $ as S } from "./SSRProvider-D8lZ0o6A.js";
|
|
4
|
+
function m(e) {
|
|
5
|
+
var n;
|
|
6
|
+
return typeof window > "u" || window.navigator == null ? !1 : ((n = window.navigator.userAgentData) === null || n === void 0 ? void 0 : n.brands.some((t) => e.test(t.brand))) || e.test(window.navigator.userAgent);
|
|
7
|
+
}
|
|
8
|
+
function L(e) {
|
|
9
|
+
var n;
|
|
10
|
+
return typeof window < "u" && window.navigator != null ? e.test(((n = window.navigator.userAgentData) === null || n === void 0 ? void 0 : n.platform) || window.navigator.platform) : !1;
|
|
11
|
+
}
|
|
12
|
+
function f(e) {
|
|
13
|
+
if (process.env.NODE_ENV === "test") return e;
|
|
14
|
+
let n = null;
|
|
15
|
+
return () => (n == null && (n = e()), n);
|
|
16
|
+
}
|
|
17
|
+
const x = f(function() {
|
|
18
|
+
return L(/^Mac/i);
|
|
19
|
+
}), B = f(function() {
|
|
20
|
+
return L(/^iPhone/i);
|
|
21
|
+
}), N = f(function() {
|
|
22
|
+
return L(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
23
|
+
x() && navigator.maxTouchPoints > 1;
|
|
24
|
+
}), j = f(function() {
|
|
25
|
+
return B() || N();
|
|
26
|
+
}), Z = f(function() {
|
|
27
|
+
return x() || j();
|
|
28
|
+
}), ee = f(function() {
|
|
29
|
+
return m(/AppleWebKit/i) && !V();
|
|
30
|
+
}), V = f(function() {
|
|
31
|
+
return m(/Chrome/i);
|
|
32
|
+
}), H = f(function() {
|
|
33
|
+
return m(/Android/i);
|
|
34
|
+
}), te = f(function() {
|
|
35
|
+
return m(/Firefox/i);
|
|
36
|
+
});
|
|
37
|
+
function W(e) {
|
|
38
|
+
return e.mozInputSource === 0 && e.isTrusted ? !0 : H() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
39
|
+
}
|
|
40
|
+
function ne(e) {
|
|
41
|
+
return !H() && e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
|
|
42
|
+
}
|
|
43
|
+
let d = null, l = /* @__PURE__ */ new Set(), $ = /* @__PURE__ */ new Map(), c = !1, g = !1;
|
|
44
|
+
const U = {
|
|
45
|
+
Tab: !0,
|
|
46
|
+
Escape: !0
|
|
47
|
+
};
|
|
48
|
+
function w(e, n) {
|
|
49
|
+
for (let t of l) t(e, n);
|
|
50
|
+
}
|
|
51
|
+
function z(e) {
|
|
52
|
+
return !(e.metaKey || !x() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
53
|
+
}
|
|
54
|
+
function p(e) {
|
|
55
|
+
c = !0, z(e) && (d = "keyboard", w("keyboard", e));
|
|
56
|
+
}
|
|
57
|
+
function a(e) {
|
|
58
|
+
d = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (c = !0, w("pointer", e));
|
|
59
|
+
}
|
|
60
|
+
function D(e) {
|
|
61
|
+
W(e) && (c = !0, d = "virtual");
|
|
62
|
+
}
|
|
63
|
+
function _(e) {
|
|
64
|
+
e.target === window || e.target === document || M || !e.isTrusted || (!c && !g && (d = "virtual", w("virtual", e)), c = !1, g = !1);
|
|
65
|
+
}
|
|
66
|
+
function A() {
|
|
67
|
+
M || (c = !1, g = !0);
|
|
68
|
+
}
|
|
69
|
+
function E(e) {
|
|
70
|
+
if (typeof window > "u" || typeof document > "u" || $.get(u(e))) return;
|
|
71
|
+
const n = u(e), t = b(e);
|
|
72
|
+
let r = n.HTMLElement.prototype.focus;
|
|
73
|
+
n.HTMLElement.prototype.focus = function() {
|
|
74
|
+
c = !0, r.apply(this, arguments);
|
|
75
|
+
}, t.addEventListener("keydown", p, !0), t.addEventListener("keyup", p, !0), t.addEventListener("click", D, !0), n.addEventListener("focus", _, !0), n.addEventListener("blur", A, !1), typeof PointerEvent < "u" ? (t.addEventListener("pointerdown", a, !0), t.addEventListener("pointermove", a, !0), t.addEventListener("pointerup", a, !0)) : process.env.NODE_ENV === "test" && (t.addEventListener("mousedown", a, !0), t.addEventListener("mousemove", a, !0), t.addEventListener("mouseup", a, !0)), n.addEventListener("beforeunload", () => {
|
|
76
|
+
C(e);
|
|
77
|
+
}, {
|
|
78
|
+
once: !0
|
|
79
|
+
}), $.set(n, {
|
|
80
|
+
focus: r
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
const C = (e, n) => {
|
|
84
|
+
const t = u(e), r = b(e);
|
|
85
|
+
n && r.removeEventListener("DOMContentLoaded", n), $.has(t) && (t.HTMLElement.prototype.focus = $.get(t).focus, r.removeEventListener("keydown", p, !0), r.removeEventListener("keyup", p, !0), r.removeEventListener("click", D, !0), t.removeEventListener("focus", _, !0), t.removeEventListener("blur", A, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", a, !0), r.removeEventListener("pointermove", a, !0), r.removeEventListener("pointerup", a, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", a, !0), r.removeEventListener("mousemove", a, !0), r.removeEventListener("mouseup", a, !0)), $.delete(t));
|
|
86
|
+
};
|
|
87
|
+
function G(e) {
|
|
88
|
+
const n = b(e);
|
|
89
|
+
let t;
|
|
90
|
+
return n.readyState !== "loading" ? E(e) : (t = () => {
|
|
91
|
+
E(e);
|
|
92
|
+
}, n.addEventListener("DOMContentLoaded", t)), () => C(e, t);
|
|
93
|
+
}
|
|
94
|
+
typeof document < "u" && G();
|
|
95
|
+
function R() {
|
|
96
|
+
return d !== "pointer";
|
|
97
|
+
}
|
|
98
|
+
function re() {
|
|
99
|
+
return d;
|
|
100
|
+
}
|
|
101
|
+
function oe(e) {
|
|
102
|
+
d = e, w(e, null);
|
|
103
|
+
}
|
|
104
|
+
function ae() {
|
|
105
|
+
E();
|
|
106
|
+
let [e, n] = P(d);
|
|
107
|
+
return F(() => {
|
|
108
|
+
let t = () => {
|
|
109
|
+
n(d);
|
|
110
|
+
};
|
|
111
|
+
return l.add(t), () => {
|
|
112
|
+
l.delete(t);
|
|
113
|
+
};
|
|
114
|
+
}, []), S() ? null : e;
|
|
115
|
+
}
|
|
116
|
+
const Y = /* @__PURE__ */ new Set([
|
|
117
|
+
"checkbox",
|
|
118
|
+
"radio",
|
|
119
|
+
"range",
|
|
120
|
+
"color",
|
|
121
|
+
"file",
|
|
122
|
+
"image",
|
|
123
|
+
"button",
|
|
124
|
+
"submit",
|
|
125
|
+
"reset"
|
|
126
|
+
]);
|
|
127
|
+
function q(e, n, t) {
|
|
128
|
+
let r = b(t == null ? void 0 : t.target);
|
|
129
|
+
const o = typeof window < "u" ? u(t == null ? void 0 : t.target).HTMLInputElement : HTMLInputElement, s = typeof window < "u" ? u(t == null ? void 0 : t.target).HTMLTextAreaElement : HTMLTextAreaElement, v = typeof window < "u" ? u(t == null ? void 0 : t.target).HTMLElement : HTMLElement, y = typeof window < "u" ? u(t == null ? void 0 : t.target).KeyboardEvent : KeyboardEvent;
|
|
130
|
+
return e = e || r.activeElement instanceof o && !Y.has(r.activeElement.type) || r.activeElement instanceof s || r.activeElement instanceof v && r.activeElement.isContentEditable, !(e && n === "keyboard" && t instanceof y && !U[t.key]);
|
|
131
|
+
}
|
|
132
|
+
function ie(e, n, t) {
|
|
133
|
+
E(), F(() => {
|
|
134
|
+
let r = (o, s) => {
|
|
135
|
+
q(!!(t != null && t.isTextInput), o, s) && e(R());
|
|
136
|
+
};
|
|
137
|
+
return l.add(r), () => {
|
|
138
|
+
l.delete(r);
|
|
139
|
+
};
|
|
140
|
+
}, n);
|
|
141
|
+
}
|
|
142
|
+
function de(e) {
|
|
143
|
+
let { isDisabled: n, onFocus: t, onBlur: r, onFocusChange: o } = e;
|
|
144
|
+
const s = k((i) => {
|
|
145
|
+
if (i.target === i.currentTarget)
|
|
146
|
+
return r && r(i), o && o(!1), !0;
|
|
147
|
+
}, [
|
|
148
|
+
r,
|
|
149
|
+
o
|
|
150
|
+
]), v = K(s), y = k((i) => {
|
|
151
|
+
const h = b(i.target), I = h ? T(h) : T();
|
|
152
|
+
i.target === i.currentTarget && I === O(i.nativeEvent) && (t && t(i), o && o(!0), v(i));
|
|
153
|
+
}, [
|
|
154
|
+
o,
|
|
155
|
+
t,
|
|
156
|
+
v
|
|
157
|
+
]);
|
|
158
|
+
return {
|
|
159
|
+
focusProps: {
|
|
160
|
+
onFocus: !n && (t || o || r) ? y : void 0,
|
|
161
|
+
onBlur: !n && (r || o) ? s : void 0
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
export {
|
|
166
|
+
R as $,
|
|
167
|
+
ie as a,
|
|
168
|
+
de as b,
|
|
169
|
+
oe as c,
|
|
170
|
+
re as d,
|
|
171
|
+
H as e,
|
|
172
|
+
V as f,
|
|
173
|
+
ee as g,
|
|
174
|
+
te as h,
|
|
175
|
+
x as i,
|
|
176
|
+
N as j,
|
|
177
|
+
j as k,
|
|
178
|
+
ne as l,
|
|
179
|
+
W as m,
|
|
180
|
+
B as n,
|
|
181
|
+
Z as o,
|
|
182
|
+
ae as p
|
|
183
|
+
};
|
|
184
|
+
//# sourceMappingURL=useFocus-mfjoACQ_.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFocus-mfjoACQ_.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.29.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/platform.mjs","../../../../node_modules/.pnpm/@react-aria+utils@3.29.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/isVirtualEvent.mjs","../../../../node_modules/.pnpm/@react-aria+interactions@3.25.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/interactions/dist/useFocusVisible.mjs","../../../../node_modules/.pnpm/@react-aria+interactions@3.25.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/interactions/dist/useFocus.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $c87311424ea30a05$var$testUserAgent(re) {\n var _window_navigator_userAgentData;\n if (typeof window === 'undefined' || window.navigator == null) return false;\n return ((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand)=>re.test(brand.brand))) || re.test(window.navigator.userAgent);\n}\nfunction $c87311424ea30a05$var$testPlatform(re) {\n var _window_navigator_userAgentData;\n return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;\n}\nfunction $c87311424ea30a05$var$cached(fn) {\n if (process.env.NODE_ENV === 'test') return fn;\n let res = null;\n return ()=>{\n if (res == null) res = fn();\n return res;\n };\n}\nconst $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testPlatform(/^Mac/i);\n});\nconst $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testPlatform(/^iPhone/i);\n});\nconst $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.\n $c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;\n});\nconst $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();\n});\nconst $c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();\n});\nconst $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();\n});\nconst $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/Chrome/i);\n});\nconst $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/Android/i);\n});\nconst $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/Firefox/i);\n});\n\n\nexport {$c87311424ea30a05$export$9ac100e40613ea10 as isMac, $c87311424ea30a05$export$186c6964ca17d99 as isIPhone, $c87311424ea30a05$export$7bef049ce92e4224 as isIPad, $c87311424ea30a05$export$fedb369cb70207f1 as isIOS, $c87311424ea30a05$export$e1865c3bedcd822b as isAppleDevice, $c87311424ea30a05$export$78551043582a6a98 as isWebKit, $c87311424ea30a05$export$6446a186d09e379e as isChrome, $c87311424ea30a05$export$a11b0059900ceec8 as isAndroid, $c87311424ea30a05$export$b7d78993b74f766d as isFirefox};\n//# sourceMappingURL=platform.module.js.map\n","import {isAndroid as $c87311424ea30a05$export$a11b0059900ceec8} from \"./platform.mjs\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $6a7db85432448f7f$export$60278871457622de(event) {\n // JAWS/NVDA with Firefox.\n if (event.mozInputSource === 0 && event.isTrusted) return true;\n // Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead\n // If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check\n // to detect TalkBack virtual clicks.\n if ((0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.pointerType) return event.type === 'click' && event.buttons === 1;\n return event.detail === 0 && !event.pointerType;\n}\nfunction $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {\n // If the pointer size is zero, then we assume it's from a screen reader.\n // Android TalkBack double tap will sometimes return a event with width and height of 1\n // and pointerType === 'mouse' so we need to check for a specific combination of event attributes.\n // Cannot use \"event.pressure === 0\" as the sole check due to Safari pointer events always returning pressure === 0\n // instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush\n // Talkback double tap from Windows Firefox touch screen press\n return !(0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse';\n}\n\n\nexport {$6a7db85432448f7f$export$60278871457622de as isVirtualClick, $6a7db85432448f7f$export$29bf1b5f2c56cf63 as isVirtualPointerEvent};\n//# sourceMappingURL=isVirtualEvent.module.js.map\n","import {ignoreFocusEvent as $8a9cb279dc87e130$export$fda7da73ab5d4c48} from \"./utils.mjs\";\nimport {isMac as $28AnR$isMac, isVirtualClick as $28AnR$isVirtualClick, getOwnerWindow as $28AnR$getOwnerWindow, getOwnerDocument as $28AnR$getOwnerDocument} from \"@react-aria/utils\";\nimport {useState as $28AnR$useState, useEffect as $28AnR$useEffect} from \"react\";\nimport {useIsSSR as $28AnR$useIsSSR} from \"@react-aria/ssr\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\n\nlet $507fabe10e71c6fb$var$currentModality = null;\nlet $507fabe10e71c6fb$var$changeHandlers = new Set();\nlet $507fabe10e71c6fb$export$d90243b58daecda7 = new Map(); // We use a map here to support setting event listeners across multiple document objects.\nlet $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\nlet $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n// Only Tab or Esc keys will make focus visible on text input elements\nconst $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {\n Tab: true,\n Escape: true\n};\nfunction $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {\n for (let handler of $507fabe10e71c6fb$var$changeHandlers)handler(modality, e);\n}\n/**\n * Helper function to determine if a KeyboardEvent is unmodified and could make keyboard focus styles visible.\n */ function $507fabe10e71c6fb$var$isValidKey(e) {\n // Control and Shift keys trigger when navigating back to the tab with keyboard.\n return !(e.metaKey || !(0, $28AnR$isMac)() && e.altKey || e.ctrlKey || e.key === 'Control' || e.key === 'Shift' || e.key === 'Meta');\n}\nfunction $507fabe10e71c6fb$var$handleKeyboardEvent(e) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n if ($507fabe10e71c6fb$var$isValidKey(e)) {\n $507fabe10e71c6fb$var$currentModality = 'keyboard';\n $507fabe10e71c6fb$var$triggerChangeHandlers('keyboard', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handlePointerEvent(e) {\n $507fabe10e71c6fb$var$currentModality = 'pointer';\n if (e.type === 'mousedown' || e.type === 'pointerdown') {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$triggerChangeHandlers('pointer', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handleClickEvent(e) {\n if ((0, $28AnR$isVirtualClick)(e)) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n }\n}\nfunction $507fabe10e71c6fb$var$handleFocusEvent(e) {\n // Firefox fires two extra focus events when the user first clicks into an iframe:\n // first on the window, then on the document. We ignore these events so they don't\n // cause keyboard focus rings to appear.\n if (e.target === window || e.target === document || (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) || !e.isTrusted) return;\n // If a focus event occurs without a preceding keyboard or pointer event, switch to virtual modality.\n // This occurs, for example, when navigating a form with the next/previous buttons on iOS.\n if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n $507fabe10e71c6fb$var$triggerChangeHandlers('virtual', e);\n }\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n}\nfunction $507fabe10e71c6fb$var$handleWindowBlur() {\n if (0, $8a9cb279dc87e130$export$fda7da73ab5d4c48) return;\n // When the window is blurred, reset state. This is necessary when tabbing out of the window,\n // for example, since a subsequent focus event won't be fired.\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = true;\n}\n/**\n * Setup global event listeners to control when keyboard focus style should be visible.\n */ function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {\n if (typeof window === 'undefined' || typeof document === 'undefined' || $507fabe10e71c6fb$export$d90243b58daecda7.get((0, $28AnR$getOwnerWindow)(element))) return;\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n // Programmatic focus() calls shouldn't affect the current input modality.\n // However, we need to detect other cases when a focus event occurs without\n // a preceding user event (e.g. screen reader focus). Overriding the focus\n // method on HTMLElement.prototype is a bit hacky, but works.\n let focus = windowObject.HTMLElement.prototype.focus;\n windowObject.HTMLElement.prototype.focus = function() {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n focus.apply(this, arguments);\n };\n documentObject.addEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n // Register focus events on the window so they are sure to happen\n // before React's event listeners (registered on the document).\n windowObject.addEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.addEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.addEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.addEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n // Add unmount handler\n windowObject.addEventListener('beforeunload', ()=>{\n $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);\n }, {\n once: true\n });\n $507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {\n focus: focus\n });\n}\nconst $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener)=>{\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n if (loadListener) documentObject.removeEventListener('DOMContentLoaded', loadListener);\n if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;\n windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;\n documentObject.removeEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n windowObject.removeEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.removeEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.removeEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else if (process.env.NODE_ENV === 'test') {\n documentObject.removeEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);\n};\nfunction $507fabe10e71c6fb$export$2f1888112f558a7d(element) {\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n let loadListener;\n if (documentObject.readyState !== 'loading') $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n else {\n loadListener = ()=>{\n $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n };\n documentObject.addEventListener('DOMContentLoaded', loadListener);\n }\n return ()=>$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);\n}\n// Server-side rendering does not have the document object defined\n// eslint-disable-next-line no-restricted-globals\nif (typeof document !== 'undefined') $507fabe10e71c6fb$export$2f1888112f558a7d();\nfunction $507fabe10e71c6fb$export$b9b3dfddab17db27() {\n return $507fabe10e71c6fb$var$currentModality !== 'pointer';\n}\nfunction $507fabe10e71c6fb$export$630ff653c5ada6a9() {\n return $507fabe10e71c6fb$var$currentModality;\n}\nfunction $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {\n $507fabe10e71c6fb$var$currentModality = modality;\n $507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);\n}\nfunction $507fabe10e71c6fb$export$98e20ec92f614cfe() {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n let [modality, setModality] = (0, $28AnR$useState)($507fabe10e71c6fb$var$currentModality);\n (0, $28AnR$useEffect)(()=>{\n let handler = ()=>{\n setModality($507fabe10e71c6fb$var$currentModality);\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n }, []);\n return (0, $28AnR$useIsSSR)() ? null : modality;\n}\nconst $507fabe10e71c6fb$var$nonTextInputTypes = new Set([\n 'checkbox',\n 'radio',\n 'range',\n 'color',\n 'file',\n 'image',\n 'button',\n 'submit',\n 'reset'\n]);\n/**\n * If this is attached to text input component, return if the event is a focus event (Tab/Escape keys pressed) so that\n * focus visible style can be properly set.\n */ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {\n let document1 = (0, $28AnR$getOwnerDocument)(e === null || e === void 0 ? void 0 : e.target);\n const IHTMLInputElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;\n const IHTMLTextAreaElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;\n const IHTMLElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;\n const IKeyboardEvent = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;\n // For keyboard events that occur on a non-input element that will move focus into input element (aka ArrowLeft going from Datepicker button to the main input group)\n // we need to rely on the user passing isTextInput into here. This way we can skip toggling focus visiblity for said input element\n isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;\n return !(isTextInput && modality === 'keyboard' && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);\n}\nfunction $507fabe10e71c6fb$export$ffd9e5021c1fb2d6(props = {}) {\n let { isTextInput: isTextInput, autoFocus: autoFocus } = props;\n let [isFocusVisibleState, setFocusVisible] = (0, $28AnR$useState)(autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27());\n $507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible)=>{\n setFocusVisible(isFocusVisible);\n }, [\n isTextInput\n ], {\n isTextInput: isTextInput\n });\n return {\n isFocusVisible: isFocusVisibleState\n };\n}\nfunction $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n (0, $28AnR$useEffect)(()=>{\n let handler = (modality, e)=>{\n // We want to early return for any keyboard events that occur inside text inputs EXCEPT for Tab and Escape\n if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;\n fn($507fabe10e71c6fb$export$b9b3dfddab17db27());\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n}\n\n\nexport {$507fabe10e71c6fb$export$d90243b58daecda7 as hasSetupGlobalListeners, $507fabe10e71c6fb$export$2f1888112f558a7d as addWindowFocusTracking, $507fabe10e71c6fb$export$b9b3dfddab17db27 as isFocusVisible, $507fabe10e71c6fb$export$630ff653c5ada6a9 as getInteractionModality, $507fabe10e71c6fb$export$8397ddfc504fdb9a as setInteractionModality, $507fabe10e71c6fb$export$98e20ec92f614cfe as useInteractionModality, $507fabe10e71c6fb$export$ffd9e5021c1fb2d6 as useFocusVisible, $507fabe10e71c6fb$export$ec71b4b83ac08ec3 as useFocusVisibleListener};\n//# sourceMappingURL=useFocusVisible.module.js.map\n","import {useSyntheticBlurEvent as $8a9cb279dc87e130$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {useCallback as $hf0lj$useCallback} from \"react\";\nimport {getOwnerDocument as $hf0lj$getOwnerDocument, getActiveElement as $hf0lj$getActiveElement, getEventTarget as $hf0lj$getEventTarget} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\nfunction $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {\n let { isDisabled: isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange: onFocusChange } = props;\n const onBlur = (0, $hf0lj$useCallback)((e)=>{\n if (e.target === e.currentTarget) {\n if (onBlurProp) onBlurProp(e);\n if (onFocusChange) onFocusChange(false);\n return true;\n }\n }, [\n onBlurProp,\n onFocusChange\n ]);\n const onSyntheticFocus = (0, $8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);\n const onFocus = (0, $hf0lj$useCallback)((e)=>{\n // Double check that document.activeElement actually matches e.target in case a previously chained\n // focus handler already moved focus somewhere else.\n const ownerDocument = (0, $hf0lj$getOwnerDocument)(e.target);\n const activeElement = ownerDocument ? (0, $hf0lj$getActiveElement)(ownerDocument) : (0, $hf0lj$getActiveElement)();\n if (e.target === e.currentTarget && activeElement === (0, $hf0lj$getEventTarget)(e.nativeEvent)) {\n if (onFocusProp) onFocusProp(e);\n if (onFocusChange) onFocusChange(true);\n onSyntheticFocus(e);\n }\n }, [\n onFocusChange,\n onFocusProp,\n onSyntheticFocus\n ]);\n return {\n focusProps: {\n onFocus: !isDisabled && (onFocusProp || onFocusChange || onBlurProp) ? onFocus : undefined,\n onBlur: !isDisabled && (onBlurProp || onFocusChange) ? onBlur : undefined\n }\n };\n}\n\n\nexport {$a1ea59d68270f0dd$export$f8168d8dd8fd66e6 as useFocus};\n//# sourceMappingURL=useFocus.module.js.map\n"],"names":["$c87311424ea30a05$var$testUserAgent","re","_window_navigator_userAgentData","brand","$c87311424ea30a05$var$testPlatform","$c87311424ea30a05$var$cached","fn","res","$c87311424ea30a05$export$9ac100e40613ea10","$c87311424ea30a05$export$186c6964ca17d99","$c87311424ea30a05$export$7bef049ce92e4224","$c87311424ea30a05$export$fedb369cb70207f1","$c87311424ea30a05$export$e1865c3bedcd822b","$c87311424ea30a05$export$78551043582a6a98","$c87311424ea30a05$export$6446a186d09e379e","$c87311424ea30a05$export$a11b0059900ceec8","$c87311424ea30a05$export$b7d78993b74f766d","$6a7db85432448f7f$export$60278871457622de","event","$6a7db85432448f7f$export$29bf1b5f2c56cf63","$507fabe10e71c6fb$var$currentModality","$507fabe10e71c6fb$var$changeHandlers","$507fabe10e71c6fb$export$d90243b58daecda7","$507fabe10e71c6fb$var$hasEventBeforeFocus","$507fabe10e71c6fb$var$hasBlurredWindowRecently","$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS","$507fabe10e71c6fb$var$triggerChangeHandlers","modality","e","handler","$507fabe10e71c6fb$var$isValidKey","$28AnR$isMac","$507fabe10e71c6fb$var$handleKeyboardEvent","$507fabe10e71c6fb$var$handlePointerEvent","$507fabe10e71c6fb$var$handleClickEvent","$28AnR$isVirtualClick","$507fabe10e71c6fb$var$handleFocusEvent","$8a9cb279dc87e130$export$fda7da73ab5d4c48","$507fabe10e71c6fb$var$handleWindowBlur","$507fabe10e71c6fb$var$setupGlobalFocusEvents","element","$28AnR$getOwnerWindow","windowObject","documentObject","$28AnR$getOwnerDocument","focus","$507fabe10e71c6fb$var$tearDownWindowFocusTracking","loadListener","$507fabe10e71c6fb$export$2f1888112f558a7d","$507fabe10e71c6fb$export$b9b3dfddab17db27","$507fabe10e71c6fb$export$630ff653c5ada6a9","$507fabe10e71c6fb$export$8397ddfc504fdb9a","$507fabe10e71c6fb$export$98e20ec92f614cfe","setModality","$28AnR$useState","$28AnR$useEffect","$28AnR$useIsSSR","$507fabe10e71c6fb$var$nonTextInputTypes","$507fabe10e71c6fb$var$isKeyboardFocusEvent","isTextInput","document1","IHTMLInputElement","IHTMLTextAreaElement","IHTMLElement","IKeyboardEvent","$507fabe10e71c6fb$export$ec71b4b83ac08ec3","deps","opts","$a1ea59d68270f0dd$export$f8168d8dd8fd66e6","props","isDisabled","onFocusProp","onBlurProp","onFocusChange","onBlur","$hf0lj$useCallback","onSyntheticFocus","$8a9cb279dc87e130$export$715c682d09d639cc","onFocus","ownerDocument","$hf0lj$getOwnerDocument","activeElement","$hf0lj$getActiveElement","$hf0lj$getEventTarget"],"mappings":";;;AAUI,SAASA,EAAoCC,GAAI;AACjD,MAAIC;AACJ,SAAI,OAAO,SAAW,OAAe,OAAO,aAAa,OAAa,OAC7DA,IAAkC,OAAO,UAAU,mBAAsB,QAAQA,MAAoC,SAAS,SAASA,EAAgC,OAAO,KAAK,CAACC,MAAQF,EAAG,KAAKE,EAAM,KAAK,CAAC,MAAMF,EAAG,KAAK,OAAO,UAAU,SAAS;AACrQ;AACA,SAASG,EAAmCH,GAAI;AAC5C,MAAIC;AACJ,SAAO,OAAO,SAAW,OAAe,OAAO,aAAa,OAAOD,EAAG,OAAOC,IAAkC,OAAO,UAAU,mBAAsB,QAAQA,MAAoC,SAAS,SAASA,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I;AACX;ACzNA,SAASE,GAA0CC,GAAO;AACtD,MAAI,EAAE,YAAYC,GAAY,SAASC,GAAa,QAAQC,GAAY,eAAeC,EAAa,IAAKJ;AACzG,QAAMK,IAAaC,EAAoB,CAAC/C,MAAI;AACxC,QAAIA,EAAE,WAAWA,EAAE;AACf,aAAI4C,KAAYA,EAAW5C,CAAC,GACxB6C,KAAeA,EAAc,EAAK,GAC/B;AAAA,EAEnB,GAAO;AAAA,IACCD;AAAA,IACAC;AAAA,EACR,CAAK,GACKG,IAAuBC,EAA2CH,CAAM,GACxEI,IAAcH,EAAoB,CAAC/C,MAAI;AAGzC,UAAMmD,IAAoBC,EAAyBpD,EAAE,MAAM,GACrDqD,IAAgBF,IAAoBG,EAAyBH,CAAa,IAAQG,EAA0B;AAClH,IAAItD,EAAE,WAAWA,EAAE,iBAAiBqD,MAAsBE,EAAuBvD,EAAE,WAAW,MACtF2C,KAAaA,EAAY3C,CAAC,GAC1B6C,KAAeA,EAAc,EAAI,GACrCG,EAAiBhD,CAAC;AAAA,EAE9B,GAAO;AAAA,IACC6C;AAAA,IACAF;AAAA,IACAK;AAAA,EACR,CAAK;AACD,SAAO;AAAA,IACH,YAAY;AAAA,MACR,SAAS,CAACN,MAAeC,KAAeE,KAAiBD,KAAcM,IAAU;AAAA,MACjF,QAAQ,CAACR,MAAeE,KAAcC,KAAiBC,IAAS;AAAA,IAC5E;AAAA,EACK;AACL;","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const i=require("./useFocus-CP2rlXSg.js"),p=require("./useFocusWithin-BENrOz43.js"),s=require("react");function h(r={}){let{autoFocus:a=!1,isTextInput:f,within:c}=r,e=s.useRef({isFocused:!1,isFocusVisible:a||i.$507fabe10e71c6fb$export$b9b3dfddab17db27()}),[n,b]=s.useState(!1),[d,l]=s.useState(()=>e.current.isFocused&&e.current.isFocusVisible),u=s.useCallback(()=>l(e.current.isFocused&&e.current.isFocusVisible),[]),o=s.useCallback(t=>{e.current.isFocused=t,b(t),u()},[u]);i.$507fabe10e71c6fb$export$ec71b4b83ac08ec3(t=>{e.current.isFocusVisible=t,u()},[],{isTextInput:f});let{focusProps:F}=i.$a1ea59d68270f0dd$export$f8168d8dd8fd66e6({isDisabled:c,onFocusChange:o}),{focusWithinProps:$}=p.$9ab94262bd0047c7$export$420e68273165f4ec({isDisabled:!c,onFocusWithinChange:o});return{isFocused:n,isFocusVisible:d,focusProps:c?$:F}}exports.$f7dceffc5ad7768b$export$4e328f61c538687f=h;
|
|
2
|
+
//# sourceMappingURL=useFocusRing-C4z9NtLP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFocusRing-C4z9NtLP.js","sources":["../../../../node_modules/.pnpm/@react-aria+focus@3.20.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/focus/dist/useFocusRing.mjs"],"sourcesContent":["import {isFocusVisible as $isWE5$isFocusVisible, useFocusVisibleListener as $isWE5$useFocusVisibleListener, useFocus as $isWE5$useFocus, useFocusWithin as $isWE5$useFocusWithin} from \"@react-aria/interactions\";\nimport {useRef as $isWE5$useRef, useState as $isWE5$useState, useCallback as $isWE5$useCallback} from \"react\";\n\n\n\nfunction $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {\n let { autoFocus: autoFocus = false, isTextInput: isTextInput, within: within } = props;\n let state = (0, $isWE5$useRef)({\n isFocused: false,\n isFocusVisible: autoFocus || (0, $isWE5$isFocusVisible)()\n });\n let [isFocused, setFocused] = (0, $isWE5$useState)(false);\n let [isFocusVisibleState, setFocusVisible] = (0, $isWE5$useState)(()=>state.current.isFocused && state.current.isFocusVisible);\n let updateState = (0, $isWE5$useCallback)(()=>setFocusVisible(state.current.isFocused && state.current.isFocusVisible), []);\n let onFocusChange = (0, $isWE5$useCallback)((isFocused)=>{\n state.current.isFocused = isFocused;\n setFocused(isFocused);\n updateState();\n }, [\n updateState\n ]);\n (0, $isWE5$useFocusVisibleListener)((isFocusVisible)=>{\n state.current.isFocusVisible = isFocusVisible;\n updateState();\n }, [], {\n isTextInput: isTextInput\n });\n let { focusProps: focusProps } = (0, $isWE5$useFocus)({\n isDisabled: within,\n onFocusChange: onFocusChange\n });\n let { focusWithinProps: focusWithinProps } = (0, $isWE5$useFocusWithin)({\n isDisabled: !within,\n onFocusWithinChange: onFocusChange\n });\n return {\n isFocused: isFocused,\n isFocusVisible: isFocusVisibleState,\n focusProps: within ? focusWithinProps : focusProps\n };\n}\n\n\nexport {$f7dceffc5ad7768b$export$4e328f61c538687f as useFocusRing};\n//# sourceMappingURL=useFocusRing.module.js.map\n"],"names":["$f7dceffc5ad7768b$export$4e328f61c538687f","props","autoFocus","isTextInput","within","state","$isWE5$useRef","$isWE5$isFocusVisible","isFocused","setFocused","$isWE5$useState","isFocusVisibleState","setFocusVisible","updateState","$isWE5$useCallback","onFocusChange","$isWE5$useFocusVisibleListener","isFocusVisible","focusProps","$isWE5$useFocus","focusWithinProps","$isWE5$useFocusWithin"],"mappings":"oHAKA,SAASA,EAA0CC,EAAQ,GAAI,CAC3D,GAAI,CAAE,UAAWC,EAAY,GAAO,YAAaC,EAAa,OAAQC,CAAM,EAAKH,EAC7EI,EAAYC,SAAe,CAC3B,UAAW,GACX,eAAgBJ,GAAiBK,EAAqB,0CAAA,CAC9D,CAAK,EACG,CAACC,EAAWC,CAAU,EAAQC,EAAAA,SAAiB,EAAK,EACpD,CAACC,EAAqBC,CAAe,EAAQF,EAAAA,SAAiB,IAAIL,EAAM,QAAQ,WAAaA,EAAM,QAAQ,cAAc,EACzHQ,EAAkBC,cAAoB,IAAIF,EAAgBP,EAAM,QAAQ,WAAaA,EAAM,QAAQ,cAAc,EAAG,CAAA,CAAE,EACtHU,EAAoBD,cAAqBN,GAAY,CACrDH,EAAM,QAAQ,UAAYG,EAC1BC,EAAWD,CAAS,EACpBK,EAAa,CACrB,EAAO,CACCA,CACR,CAAK,EACGG,EAAAA,0CAAiCC,GAAiB,CAClDZ,EAAM,QAAQ,eAAiBY,EAC/BJ,EAAa,CAChB,EAAE,GAAI,CACH,YAAaV,CACrB,CAAK,EACD,GAAI,CAAE,WAAYe,CAAY,EAAOC,EAAAA,0CAAiB,CAClD,WAAYf,EACZ,cAAeW,CACvB,CAAK,EACG,CAAE,iBAAkBK,CAAkB,EAAOC,EAAAA,0CAAuB,CACpE,WAAY,CAACjB,EACb,oBAAqBW,CAC7B,CAAK,EACD,MAAO,CACH,UAAWP,EACX,eAAgBG,EAChB,WAAYP,EAASgB,EAAmBF,CAC3C,CACL","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { $, a as x, b as h } from "./useFocus-mfjoACQ_.js";
|
|
2
|
+
import { $ as V } from "./useFocusWithin-CLd9itwe.js";
|
|
3
|
+
import { useRef as m, useState as c, useCallback as u } from "react";
|
|
4
|
+
function I(a = {}) {
|
|
5
|
+
let { autoFocus: r = !1, isTextInput: f, within: t } = a, e = m({
|
|
6
|
+
isFocused: !1,
|
|
7
|
+
isFocusVisible: r || $()
|
|
8
|
+
}), [b, d] = c(!1), [n, l] = c(() => e.current.isFocused && e.current.isFocusVisible), i = u(() => l(e.current.isFocused && e.current.isFocusVisible), []), o = u((s) => {
|
|
9
|
+
e.current.isFocused = s, d(s), i();
|
|
10
|
+
}, [
|
|
11
|
+
i
|
|
12
|
+
]);
|
|
13
|
+
x((s) => {
|
|
14
|
+
e.current.isFocusVisible = s, i();
|
|
15
|
+
}, [], {
|
|
16
|
+
isTextInput: f
|
|
17
|
+
});
|
|
18
|
+
let { focusProps: p } = h({
|
|
19
|
+
isDisabled: t,
|
|
20
|
+
onFocusChange: o
|
|
21
|
+
}), { focusWithinProps: F } = V({
|
|
22
|
+
isDisabled: !t,
|
|
23
|
+
onFocusWithinChange: o
|
|
24
|
+
});
|
|
25
|
+
return {
|
|
26
|
+
isFocused: b,
|
|
27
|
+
isFocusVisible: n,
|
|
28
|
+
focusProps: t ? F : p
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
I as $
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=useFocusRing-C8yOnkHj.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFocusRing-C8yOnkHj.js","sources":["../../../../node_modules/.pnpm/@react-aria+focus@3.20.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/focus/dist/useFocusRing.mjs"],"sourcesContent":["import {isFocusVisible as $isWE5$isFocusVisible, useFocusVisibleListener as $isWE5$useFocusVisibleListener, useFocus as $isWE5$useFocus, useFocusWithin as $isWE5$useFocusWithin} from \"@react-aria/interactions\";\nimport {useRef as $isWE5$useRef, useState as $isWE5$useState, useCallback as $isWE5$useCallback} from \"react\";\n\n\n\nfunction $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {\n let { autoFocus: autoFocus = false, isTextInput: isTextInput, within: within } = props;\n let state = (0, $isWE5$useRef)({\n isFocused: false,\n isFocusVisible: autoFocus || (0, $isWE5$isFocusVisible)()\n });\n let [isFocused, setFocused] = (0, $isWE5$useState)(false);\n let [isFocusVisibleState, setFocusVisible] = (0, $isWE5$useState)(()=>state.current.isFocused && state.current.isFocusVisible);\n let updateState = (0, $isWE5$useCallback)(()=>setFocusVisible(state.current.isFocused && state.current.isFocusVisible), []);\n let onFocusChange = (0, $isWE5$useCallback)((isFocused)=>{\n state.current.isFocused = isFocused;\n setFocused(isFocused);\n updateState();\n }, [\n updateState\n ]);\n (0, $isWE5$useFocusVisibleListener)((isFocusVisible)=>{\n state.current.isFocusVisible = isFocusVisible;\n updateState();\n }, [], {\n isTextInput: isTextInput\n });\n let { focusProps: focusProps } = (0, $isWE5$useFocus)({\n isDisabled: within,\n onFocusChange: onFocusChange\n });\n let { focusWithinProps: focusWithinProps } = (0, $isWE5$useFocusWithin)({\n isDisabled: !within,\n onFocusWithinChange: onFocusChange\n });\n return {\n isFocused: isFocused,\n isFocusVisible: isFocusVisibleState,\n focusProps: within ? focusWithinProps : focusProps\n };\n}\n\n\nexport {$f7dceffc5ad7768b$export$4e328f61c538687f as useFocusRing};\n//# sourceMappingURL=useFocusRing.module.js.map\n"],"names":["$f7dceffc5ad7768b$export$4e328f61c538687f","props","autoFocus","isTextInput","within","state","$isWE5$useRef","$isWE5$isFocusVisible","isFocused","setFocused","$isWE5$useState","isFocusVisibleState","setFocusVisible","updateState","$isWE5$useCallback","onFocusChange","$isWE5$useFocusVisibleListener","isFocusVisible","focusProps","$isWE5$useFocus","focusWithinProps","$isWE5$useFocusWithin"],"mappings":";;;AAKA,SAASA,EAA0CC,IAAQ,IAAI;AAC3D,MAAI,EAAE,WAAWC,IAAY,IAAO,aAAaC,GAAa,QAAQC,EAAM,IAAKH,GAC7EI,IAAYC,EAAe;AAAA,IAC3B,WAAW;AAAA,IACX,gBAAgBJ,KAAiBK,EAAqB;AAAA,EAC9D,CAAK,GACG,CAACC,GAAWC,CAAU,IAAQC,EAAiB,EAAK,GACpD,CAACC,GAAqBC,CAAe,IAAQF,EAAiB,MAAIL,EAAM,QAAQ,aAAaA,EAAM,QAAQ,cAAc,GACzHQ,IAAkBC,EAAoB,MAAIF,EAAgBP,EAAM,QAAQ,aAAaA,EAAM,QAAQ,cAAc,GAAG,CAAA,CAAE,GACtHU,IAAoBD,EAAoB,CAACN,MAAY;AACrD,IAAAH,EAAM,QAAQ,YAAYG,GAC1BC,EAAWD,CAAS,GACpBK,EAAa;AAAA,EACrB,GAAO;AAAA,IACCA;AAAA,EACR,CAAK;AACD,EAAIG,EAAgC,CAACC,MAAiB;AAClD,IAAAZ,EAAM,QAAQ,iBAAiBY,GAC/BJ,EAAa;AAAA,EAChB,GAAE,IAAI;AAAA,IACH,aAAaV;AAAA,EACrB,CAAK;AACD,MAAI,EAAE,YAAYe,EAAY,IAAOC,EAAiB;AAAA,IAClD,YAAYf;AAAA,IACZ,eAAeW;AAAA,EACvB,CAAK,GACG,EAAE,kBAAkBK,EAAkB,IAAOC,EAAuB;AAAA,IACpE,YAAY,CAACjB;AAAA,IACb,qBAAqBW;AAAA,EAC7B,CAAK;AACD,SAAO;AAAA,IACH,WAAWP;AAAA,IACX,gBAAgBG;AAAA,IAChB,YAAYP,IAASgB,IAAmBF;AAAA,EAC3C;AACL;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const t=require("./utils-BzPwFwlw.js"),u=require("react");function x(h){let{isDisabled:F,onBlurWithin:c,onFocusWithin:o,onFocusWithinChange:r}=h,n=u.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:l}=t.$03deb23ff14920c4$export$4eaf04e54aa8eed6(),i=u.useCallback(e=>{e.currentTarget.contains(e.target)&&n.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(n.current.isFocusWithin=!1,l(),c&&c(e),r&&r(!1))},[c,r,n,l]),f=t.$8a9cb279dc87e130$export$715c682d09d639cc(i),g=u.useCallback(e=>{if(!e.currentTarget.contains(e.target))return;const a=t.$431fbd86ca7dc216$export$b204af158042fbac(e.target),W=t.$d4ee10de306f2510$export$cd4e5573fbe2b576(a);if(!n.current.isFocusWithin&&W===t.$d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)){o&&o(e),r&&r(!0),n.current.isFocusWithin=!0,f(e);let d=e.currentTarget;s(a,"focus",$=>{if(n.current.isFocusWithin&&!t.$d4ee10de306f2510$export$4282f70798064fe0(d,$.target)){let b=new a.defaultView.FocusEvent("blur",{relatedTarget:$.target});t.$8a9cb279dc87e130$export$c2b7abe5d61ec696(b,d);let p=t.$8a9cb279dc87e130$export$525bc4921d56d4a(b);i(p)}},{capture:!0})}},[o,r,f,s,i]);return F?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:g,onBlur:i}}}exports.$9ab94262bd0047c7$export$420e68273165f4ec=x;
|
|
2
|
+
//# sourceMappingURL=useFocusWithin-BENrOz43.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFocusWithin-BENrOz43.js","sources":["../../../../node_modules/.pnpm/@react-aria+interactions@3.25.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/interactions/dist/useFocusWithin.mjs"],"sourcesContent":["import {createSyntheticEvent as $8a9cb279dc87e130$export$525bc4921d56d4a, setEventTarget as $8a9cb279dc87e130$export$c2b7abe5d61ec696, useSyntheticBlurEvent as $8a9cb279dc87e130$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {useRef as $3b9Q0$useRef, useCallback as $3b9Q0$useCallback} from \"react\";\nimport {useGlobalListeners as $3b9Q0$useGlobalListeners, getOwnerDocument as $3b9Q0$getOwnerDocument, getActiveElement as $3b9Q0$getActiveElement, getEventTarget as $3b9Q0$getEventTarget, nodeContains as $3b9Q0$nodeContains} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\nfunction $9ab94262bd0047c7$export$420e68273165f4ec(props) {\n let { isDisabled: isDisabled, onBlurWithin: onBlurWithin, onFocusWithin: onFocusWithin, onFocusWithinChange: onFocusWithinChange } = props;\n let state = (0, $3b9Q0$useRef)({\n isFocusWithin: false\n });\n let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (0, $3b9Q0$useGlobalListeners)();\n let onBlur = (0, $3b9Q0$useCallback)((e)=>{\n // Ignore events bubbling through portals.\n if (!e.currentTarget.contains(e.target)) return;\n // We don't want to trigger onBlurWithin and then immediately onFocusWithin again\n // when moving focus inside the element. Only trigger if the currentTarget doesn't\n // include the relatedTarget (where focus is moving).\n if (state.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget)) {\n state.current.isFocusWithin = false;\n removeAllGlobalListeners();\n if (onBlurWithin) onBlurWithin(e);\n if (onFocusWithinChange) onFocusWithinChange(false);\n }\n }, [\n onBlurWithin,\n onFocusWithinChange,\n state,\n removeAllGlobalListeners\n ]);\n let onSyntheticFocus = (0, $8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);\n let onFocus = (0, $3b9Q0$useCallback)((e)=>{\n // Ignore events bubbling through portals.\n if (!e.currentTarget.contains(e.target)) return;\n // Double check that document.activeElement actually matches e.target in case a previously chained\n // focus handler already moved focus somewhere else.\n const ownerDocument = (0, $3b9Q0$getOwnerDocument)(e.target);\n const activeElement = (0, $3b9Q0$getActiveElement)(ownerDocument);\n if (!state.current.isFocusWithin && activeElement === (0, $3b9Q0$getEventTarget)(e.nativeEvent)) {\n if (onFocusWithin) onFocusWithin(e);\n if (onFocusWithinChange) onFocusWithinChange(true);\n state.current.isFocusWithin = true;\n onSyntheticFocus(e);\n // Browsers don't fire blur events when elements are removed from the DOM.\n // However, if a focus event occurs outside the element we're tracking, we\n // can manually fire onBlur.\n let currentTarget = e.currentTarget;\n addGlobalListener(ownerDocument, 'focus', (e)=>{\n if (state.current.isFocusWithin && !(0, $3b9Q0$nodeContains)(currentTarget, e.target)) {\n let nativeEvent = new ownerDocument.defaultView.FocusEvent('blur', {\n relatedTarget: e.target\n });\n (0, $8a9cb279dc87e130$export$c2b7abe5d61ec696)(nativeEvent, currentTarget);\n let event = (0, $8a9cb279dc87e130$export$525bc4921d56d4a)(nativeEvent);\n onBlur(event);\n }\n }, {\n capture: true\n });\n }\n }, [\n onFocusWithin,\n onFocusWithinChange,\n onSyntheticFocus,\n addGlobalListener,\n onBlur\n ]);\n if (isDisabled) return {\n focusWithinProps: {\n // These cannot be null, that would conflict in mergeProps\n onFocus: undefined,\n onBlur: undefined\n }\n };\n return {\n focusWithinProps: {\n onFocus: onFocus,\n onBlur: onBlur\n }\n };\n}\n\n\nexport {$9ab94262bd0047c7$export$420e68273165f4ec as useFocusWithin};\n//# sourceMappingURL=useFocusWithin.module.js.map\n"],"names":["$9ab94262bd0047c7$export$420e68273165f4ec","props","isDisabled","onBlurWithin","onFocusWithin","onFocusWithinChange","state","$3b9Q0$useRef","addGlobalListener","removeAllGlobalListeners","$3b9Q0$useGlobalListeners","onBlur","$3b9Q0$useCallback","onSyntheticFocus","$8a9cb279dc87e130$export$715c682d09d639cc","onFocus","ownerDocument","$3b9Q0$getOwnerDocument","activeElement","$3b9Q0$getActiveElement","$3b9Q0$getEventTarget","currentTarget","e","$3b9Q0$nodeContains","nativeEvent","$8a9cb279dc87e130$export$c2b7abe5d61ec696","event","$8a9cb279dc87e130$export$525bc4921d56d4a"],"mappings":"uEAqBA,SAASA,EAA0CC,EAAO,CACtD,GAAI,CAAE,WAAYC,EAAY,aAAcC,EAAc,cAAeC,EAAe,oBAAqBC,CAAmB,EAAKJ,EACjIK,EAAYC,SAAe,CAC3B,cAAe,EACvB,CAAK,EACG,CAAE,kBAAmBC,EAAmB,yBAA0BC,CAAwB,EAASC,4CAA4B,EAC/HC,EAAaC,cAAqB,GAAI,CAEjC,EAAE,cAAc,SAAS,EAAE,MAAM,GAIlCN,EAAM,QAAQ,eAAiB,CAAC,EAAE,cAAc,SAAS,EAAE,aAAa,IACxEA,EAAM,QAAQ,cAAgB,GAC9BG,EAA0B,EACtBN,GAAcA,EAAa,CAAC,EAC5BE,GAAqBA,EAAoB,EAAK,EAE9D,EAAO,CACCF,EACAE,EACAC,EACAG,CACR,CAAK,EACGI,EAAuBC,EAAyC,0CAAEH,CAAM,EACxEI,EAAcH,cAAqB,GAAI,CAEvC,GAAI,CAAC,EAAE,cAAc,SAAS,EAAE,MAAM,EAAG,OAGzC,MAAMI,EAAoBC,4CAAyB,EAAE,MAAM,EACrDC,EAAoBC,EAAuB,0CAAEH,CAAa,EAChE,GAAI,CAACV,EAAM,QAAQ,eAAiBY,IAAsBE,EAAqB,0CAAE,EAAE,WAAW,EAAG,CACzFhB,GAAeA,EAAc,CAAC,EAC9BC,GAAqBA,EAAoB,EAAI,EACjDC,EAAM,QAAQ,cAAgB,GAC9BO,EAAiB,CAAC,EAIlB,IAAIQ,EAAgB,EAAE,cACtBb,EAAkBQ,EAAe,QAAUM,GAAI,CAC3C,GAAIhB,EAAM,QAAQ,eAAiB,CAAKiB,EAAAA,0CAAqBF,EAAeC,EAAE,MAAM,EAAG,CACnF,IAAIE,EAAc,IAAIR,EAAc,YAAY,WAAW,OAAQ,CAC/D,cAAeM,EAAE,MACzC,CAAqB,EACGG,EAAyC,0CAAED,EAAaH,CAAa,EACzE,IAAIK,EAAYC,EAAwC,yCAAEH,CAAW,EACrEb,EAAOe,CAAK,CAChC,CACA,EAAe,CACC,QAAS,EACzB,CAAa,CACb,CACA,EAAO,CACCtB,EACAC,EACAQ,EACAL,EACAG,CACR,CAAK,EACD,OAAIT,EAAmB,CACnB,iBAAkB,CAEd,QAAS,OACT,OAAQ,MACpB,CACK,EACM,CACH,iBAAkB,CACd,QAASa,EACT,OAAQJ,CACpB,CACK,CACL","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { a as W, d as x, b as v, e as m, f as T, c as B, g as E, h as G } from "./utils-wW2ZswvI.js";
|
|
2
|
+
import { useRef as L, useCallback as $ } from "react";
|
|
3
|
+
function D(b) {
|
|
4
|
+
let { isDisabled: h, onBlurWithin: i, onFocusWithin: o, onFocusWithinChange: t } = b, r = L({
|
|
5
|
+
isFocusWithin: !1
|
|
6
|
+
}), { addGlobalListener: c, removeAllGlobalListeners: s } = W(), n = $((e) => {
|
|
7
|
+
e.currentTarget.contains(e.target) && r.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget) && (r.current.isFocusWithin = !1, s(), i && i(e), t && t(!1));
|
|
8
|
+
}, [
|
|
9
|
+
i,
|
|
10
|
+
t,
|
|
11
|
+
r,
|
|
12
|
+
s
|
|
13
|
+
]), u = x(n), g = $((e) => {
|
|
14
|
+
if (!e.currentTarget.contains(e.target)) return;
|
|
15
|
+
const a = v(e.target), p = m(a);
|
|
16
|
+
if (!r.current.isFocusWithin && p === T(e.nativeEvent)) {
|
|
17
|
+
o && o(e), t && t(!0), r.current.isFocusWithin = !0, u(e);
|
|
18
|
+
let f = e.currentTarget;
|
|
19
|
+
c(a, "focus", (l) => {
|
|
20
|
+
if (r.current.isFocusWithin && !B(f, l.target)) {
|
|
21
|
+
let d = new a.defaultView.FocusEvent("blur", {
|
|
22
|
+
relatedTarget: l.target
|
|
23
|
+
});
|
|
24
|
+
E(d, f);
|
|
25
|
+
let F = G(d);
|
|
26
|
+
n(F);
|
|
27
|
+
}
|
|
28
|
+
}, {
|
|
29
|
+
capture: !0
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}, [
|
|
33
|
+
o,
|
|
34
|
+
t,
|
|
35
|
+
u,
|
|
36
|
+
c,
|
|
37
|
+
n
|
|
38
|
+
]);
|
|
39
|
+
return h ? {
|
|
40
|
+
focusWithinProps: {
|
|
41
|
+
// These cannot be null, that would conflict in mergeProps
|
|
42
|
+
onFocus: void 0,
|
|
43
|
+
onBlur: void 0
|
|
44
|
+
}
|
|
45
|
+
} : {
|
|
46
|
+
focusWithinProps: {
|
|
47
|
+
onFocus: g,
|
|
48
|
+
onBlur: n
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
D as $
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=useFocusWithin-CLd9itwe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFocusWithin-CLd9itwe.js","sources":["../../../../node_modules/.pnpm/@react-aria+interactions@3.25.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/interactions/dist/useFocusWithin.mjs"],"sourcesContent":["import {createSyntheticEvent as $8a9cb279dc87e130$export$525bc4921d56d4a, setEventTarget as $8a9cb279dc87e130$export$c2b7abe5d61ec696, useSyntheticBlurEvent as $8a9cb279dc87e130$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {useRef as $3b9Q0$useRef, useCallback as $3b9Q0$useCallback} from \"react\";\nimport {useGlobalListeners as $3b9Q0$useGlobalListeners, getOwnerDocument as $3b9Q0$getOwnerDocument, getActiveElement as $3b9Q0$getActiveElement, getEventTarget as $3b9Q0$getEventTarget, nodeContains as $3b9Q0$nodeContains} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\nfunction $9ab94262bd0047c7$export$420e68273165f4ec(props) {\n let { isDisabled: isDisabled, onBlurWithin: onBlurWithin, onFocusWithin: onFocusWithin, onFocusWithinChange: onFocusWithinChange } = props;\n let state = (0, $3b9Q0$useRef)({\n isFocusWithin: false\n });\n let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (0, $3b9Q0$useGlobalListeners)();\n let onBlur = (0, $3b9Q0$useCallback)((e)=>{\n // Ignore events bubbling through portals.\n if (!e.currentTarget.contains(e.target)) return;\n // We don't want to trigger onBlurWithin and then immediately onFocusWithin again\n // when moving focus inside the element. Only trigger if the currentTarget doesn't\n // include the relatedTarget (where focus is moving).\n if (state.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget)) {\n state.current.isFocusWithin = false;\n removeAllGlobalListeners();\n if (onBlurWithin) onBlurWithin(e);\n if (onFocusWithinChange) onFocusWithinChange(false);\n }\n }, [\n onBlurWithin,\n onFocusWithinChange,\n state,\n removeAllGlobalListeners\n ]);\n let onSyntheticFocus = (0, $8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);\n let onFocus = (0, $3b9Q0$useCallback)((e)=>{\n // Ignore events bubbling through portals.\n if (!e.currentTarget.contains(e.target)) return;\n // Double check that document.activeElement actually matches e.target in case a previously chained\n // focus handler already moved focus somewhere else.\n const ownerDocument = (0, $3b9Q0$getOwnerDocument)(e.target);\n const activeElement = (0, $3b9Q0$getActiveElement)(ownerDocument);\n if (!state.current.isFocusWithin && activeElement === (0, $3b9Q0$getEventTarget)(e.nativeEvent)) {\n if (onFocusWithin) onFocusWithin(e);\n if (onFocusWithinChange) onFocusWithinChange(true);\n state.current.isFocusWithin = true;\n onSyntheticFocus(e);\n // Browsers don't fire blur events when elements are removed from the DOM.\n // However, if a focus event occurs outside the element we're tracking, we\n // can manually fire onBlur.\n let currentTarget = e.currentTarget;\n addGlobalListener(ownerDocument, 'focus', (e)=>{\n if (state.current.isFocusWithin && !(0, $3b9Q0$nodeContains)(currentTarget, e.target)) {\n let nativeEvent = new ownerDocument.defaultView.FocusEvent('blur', {\n relatedTarget: e.target\n });\n (0, $8a9cb279dc87e130$export$c2b7abe5d61ec696)(nativeEvent, currentTarget);\n let event = (0, $8a9cb279dc87e130$export$525bc4921d56d4a)(nativeEvent);\n onBlur(event);\n }\n }, {\n capture: true\n });\n }\n }, [\n onFocusWithin,\n onFocusWithinChange,\n onSyntheticFocus,\n addGlobalListener,\n onBlur\n ]);\n if (isDisabled) return {\n focusWithinProps: {\n // These cannot be null, that would conflict in mergeProps\n onFocus: undefined,\n onBlur: undefined\n }\n };\n return {\n focusWithinProps: {\n onFocus: onFocus,\n onBlur: onBlur\n }\n };\n}\n\n\nexport {$9ab94262bd0047c7$export$420e68273165f4ec as useFocusWithin};\n//# sourceMappingURL=useFocusWithin.module.js.map\n"],"names":["$9ab94262bd0047c7$export$420e68273165f4ec","props","isDisabled","onBlurWithin","onFocusWithin","onFocusWithinChange","state","$3b9Q0$useRef","addGlobalListener","removeAllGlobalListeners","$3b9Q0$useGlobalListeners","onBlur","$3b9Q0$useCallback","onSyntheticFocus","$8a9cb279dc87e130$export$715c682d09d639cc","onFocus","ownerDocument","$3b9Q0$getOwnerDocument","activeElement","$3b9Q0$getActiveElement","$3b9Q0$getEventTarget","currentTarget","e","$3b9Q0$nodeContains","nativeEvent","$8a9cb279dc87e130$export$c2b7abe5d61ec696","event","$8a9cb279dc87e130$export$525bc4921d56d4a"],"mappings":";;AAqBA,SAASA,EAA0CC,GAAO;AACtD,MAAI,EAAE,YAAYC,GAAY,cAAcC,GAAc,eAAeC,GAAe,qBAAqBC,EAAmB,IAAKJ,GACjIK,IAAYC,EAAe;AAAA,IAC3B,eAAe;AAAA,EACvB,CAAK,GACG,EAAE,mBAAmBC,GAAmB,0BAA0BC,EAAwB,IAASC,EAA4B,GAC/HC,IAAaC,EAAoB,CAAC,MAAI;AAEtC,IAAK,EAAE,cAAc,SAAS,EAAE,MAAM,KAIlCN,EAAM,QAAQ,iBAAiB,CAAC,EAAE,cAAc,SAAS,EAAE,aAAa,MACxEA,EAAM,QAAQ,gBAAgB,IAC9BG,EAA0B,GACtBN,KAAcA,EAAa,CAAC,GAC5BE,KAAqBA,EAAoB,EAAK;AAAA,EAE9D,GAAO;AAAA,IACCF;AAAA,IACAE;AAAA,IACAC;AAAA,IACAG;AAAA,EACR,CAAK,GACGI,IAAuBC,EAA2CH,CAAM,GACxEI,IAAcH,EAAoB,CAAC,MAAI;AAEvC,QAAI,CAAC,EAAE,cAAc,SAAS,EAAE,MAAM,EAAG;AAGzC,UAAMI,IAAoBC,EAAyB,EAAE,MAAM,GACrDC,IAAoBC,EAAyBH,CAAa;AAChE,QAAI,CAACV,EAAM,QAAQ,iBAAiBY,MAAsBE,EAAuB,EAAE,WAAW,GAAG;AAC7F,MAAIhB,KAAeA,EAAc,CAAC,GAC9BC,KAAqBA,EAAoB,EAAI,GACjDC,EAAM,QAAQ,gBAAgB,IAC9BO,EAAiB,CAAC;AAIlB,UAAIQ,IAAgB,EAAE;AACtB,MAAAb,EAAkBQ,GAAe,SAAS,CAACM,MAAI;AAC3C,YAAIhB,EAAM,QAAQ,iBAAiB,CAAKiB,EAAqBF,GAAeC,EAAE,MAAM,GAAG;AACnF,cAAIE,IAAc,IAAIR,EAAc,YAAY,WAAW,QAAQ;AAAA,YAC/D,eAAeM,EAAE;AAAA,UACzC,CAAqB;AACD,UAAIG,EAA2CD,GAAaH,CAAa;AACzE,cAAIK,IAAYC,EAA0CH,CAAW;AACrE,UAAAb,EAAOe,CAAK;AAAA,QAChC;AAAA,MACA,GAAe;AAAA,QACC,SAAS;AAAA,MACzB,CAAa;AAAA,IACb;AAAA,EACA,GAAO;AAAA,IACCtB;AAAA,IACAC;AAAA,IACAQ;AAAA,IACAL;AAAA,IACAG;AAAA,EACR,CAAK;AACD,SAAIT,IAAmB;AAAA,IACnB,kBAAkB;AAAA;AAAA,MAEd,SAAS;AAAA,MACT,QAAQ;AAAA,IACpB;AAAA,EACK,IACM;AAAA,IACH,kBAAkB;AAAA,MACd,SAASa;AAAA,MACT,QAAQJ;AAAA,IACpB;AAAA,EACK;AACL;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const b=require("./focusSafely-DuMeO0J4.js"),l=require("./useFocus-CP2rlXSg.js"),i=require("./mergeProps-BeIu4MsM.js"),p=require("./useObjectRef-4v2MxSjQ.js"),f=require("react");function $(e){if(!e)return;let t=!0;return r=>{let o={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(o),t&&r.stopPropagation()}}function x(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:$(e.onKeyDown),onKeyUp:$(e.onKeyUp)}}}let u=f.createContext(null);function P(e){let t=f.useContext(u)||{};b.$e7801be82b4b2a53$export$4debdb1a3f0fa79e(t,e);let{ref:r,...o}=t;return o}const v=f.forwardRef(function(t,r){let{children:o,...n}=t,a=p.$df56164dff5785e2$export$4338b53315abf666(r),c={...n,ref:a};return f.createElement(u.Provider,{value:c},o)});function D(e,t){let{focusProps:r}=l.$a1ea59d68270f0dd$export$f8168d8dd8fd66e6(e),{keyboardProps:o}=x(e),n=i.$3ef42575df84b30b$export$9d1611c77c2fe928(r,o),a=P(t),c=e.isDisabled?{}:a,d=f.useRef(e.autoFocus);f.useEffect(()=>{d.current&&t.current&&b.$3ad3f6e1647bc98d$export$80f3e147d781571c(t.current),d.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:i.$3ef42575df84b30b$export$9d1611c77c2fe928({...n,tabIndex:s},c)}}exports.$f645667febf57a63$export$13f3202a3e5ddd5=v;exports.$f645667febf57a63$export$4c014de7c8940b4c=D;exports.$f645667febf57a63$export$f9762fab77588ecb=u;
|
|
2
|
+
//# sourceMappingURL=useFocusable-C7jAQfqU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFocusable-C7jAQfqU.js","sources":["../../../../node_modules/.pnpm/@react-aria+interactions@3.25.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/interactions/dist/createEventHandler.mjs","../../../../node_modules/.pnpm/@react-aria+interactions@3.25.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/interactions/dist/useKeyboard.mjs","../../../../node_modules/.pnpm/@react-aria+interactions@3.25.3_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/interactions/dist/useFocusable.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $93925083ecbb358c$export$48d1ea6320830260(handler) {\n if (!handler) return undefined;\n let shouldStopPropagation = true;\n return (e)=>{\n let event = {\n ...e,\n preventDefault () {\n e.preventDefault();\n },\n isDefaultPrevented () {\n return e.isDefaultPrevented();\n },\n stopPropagation () {\n if (shouldStopPropagation && process.env.NODE_ENV !== 'production') console.error('stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.');\n else shouldStopPropagation = true;\n },\n continuePropagation () {\n shouldStopPropagation = false;\n },\n isPropagationStopped () {\n return shouldStopPropagation;\n }\n };\n handler(event);\n if (shouldStopPropagation) e.stopPropagation();\n };\n}\n\n\nexport {$93925083ecbb358c$export$48d1ea6320830260 as createEventHandler};\n//# sourceMappingURL=createEventHandler.module.js.map\n","import {createEventHandler as $93925083ecbb358c$export$48d1ea6320830260} from \"./createEventHandler.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $46d819fcbaf35654$export$8f71654801c2f7cd(props) {\n return {\n keyboardProps: props.isDisabled ? {} : {\n onKeyDown: (0, $93925083ecbb358c$export$48d1ea6320830260)(props.onKeyDown),\n onKeyUp: (0, $93925083ecbb358c$export$48d1ea6320830260)(props.onKeyUp)\n }\n };\n}\n\n\nexport {$46d819fcbaf35654$export$8f71654801c2f7cd as useKeyboard};\n//# sourceMappingURL=useKeyboard.module.js.map\n","import {focusSafely as $3ad3f6e1647bc98d$export$80f3e147d781571c} from \"./focusSafely.mjs\";\nimport {useFocus as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6} from \"./useFocus.mjs\";\nimport {useKeyboard as $46d819fcbaf35654$export$8f71654801c2f7cd} from \"./useKeyboard.mjs\";\nimport {useSyncRef as $fcPuG$useSyncRef, useObjectRef as $fcPuG$useObjectRef, mergeProps as $fcPuG$mergeProps, getOwnerWindow as $fcPuG$getOwnerWindow, isFocusable as $fcPuG$isFocusable, mergeRefs as $fcPuG$mergeRefs} from \"@react-aria/utils\";\nimport $fcPuG$react, {useContext as $fcPuG$useContext, useRef as $fcPuG$useRef, useEffect as $fcPuG$useEffect, forwardRef as $fcPuG$forwardRef} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nlet $f645667febf57a63$export$f9762fab77588ecb = /*#__PURE__*/ (0, $fcPuG$react).createContext(null);\nfunction $f645667febf57a63$var$useFocusableContext(ref) {\n let context = (0, $fcPuG$useContext)($f645667febf57a63$export$f9762fab77588ecb) || {};\n (0, $fcPuG$useSyncRef)(context, ref);\n // eslint-disable-next-line\n let { ref: _, ...otherProps } = context;\n return otherProps;\n}\nconst $f645667febf57a63$export$13f3202a3e5ddd5 = /*#__PURE__*/ (0, $fcPuG$react).forwardRef(function FocusableProvider(props, ref) {\n let { children: children, ...otherProps } = props;\n let objRef = (0, $fcPuG$useObjectRef)(ref);\n let context = {\n ...otherProps,\n ref: objRef\n };\n return /*#__PURE__*/ (0, $fcPuG$react).createElement($f645667febf57a63$export$f9762fab77588ecb.Provider, {\n value: context\n }, children);\n});\nfunction $f645667febf57a63$export$4c014de7c8940b4c(props, domRef) {\n let { focusProps: focusProps } = (0, $a1ea59d68270f0dd$export$f8168d8dd8fd66e6)(props);\n let { keyboardProps: keyboardProps } = (0, $46d819fcbaf35654$export$8f71654801c2f7cd)(props);\n let interactions = (0, $fcPuG$mergeProps)(focusProps, keyboardProps);\n let domProps = $f645667febf57a63$var$useFocusableContext(domRef);\n let interactionProps = props.isDisabled ? {} : domProps;\n let autoFocusRef = (0, $fcPuG$useRef)(props.autoFocus);\n (0, $fcPuG$useEffect)(()=>{\n if (autoFocusRef.current && domRef.current) (0, $3ad3f6e1647bc98d$export$80f3e147d781571c)(domRef.current);\n autoFocusRef.current = false;\n }, [\n domRef\n ]);\n // Always set a tabIndex so that Safari allows focusing native buttons and inputs.\n let tabIndex = props.excludeFromTabOrder ? -1 : 0;\n if (props.isDisabled) tabIndex = undefined;\n return {\n focusableProps: (0, $fcPuG$mergeProps)({\n ...interactions,\n tabIndex: tabIndex\n }, interactionProps)\n };\n}\nconst $f645667febf57a63$export$35a3bebf7ef2d934 = /*#__PURE__*/ (0, $fcPuG$forwardRef)(({ children: children, ...props }, ref)=>{\n ref = (0, $fcPuG$useObjectRef)(ref);\n let { focusableProps: focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c(props, ref);\n let child = (0, $fcPuG$react).Children.only(children);\n (0, $fcPuG$useEffect)(()=>{\n if (process.env.NODE_ENV === 'production') return;\n let el = ref.current;\n if (!el || !(el instanceof (0, $fcPuG$getOwnerWindow)(el).Element)) {\n console.error('<Focusable> child must forward its ref to a DOM element.');\n return;\n }\n if (!props.isDisabled && !(0, $fcPuG$isFocusable)(el)) {\n console.warn('<Focusable> child must be focusable. Please ensure the tabIndex prop is passed through.');\n return;\n }\n if (el.localName !== 'button' && el.localName !== 'input' && el.localName !== 'select' && el.localName !== 'textarea' && el.localName !== 'a' && el.localName !== 'area' && el.localName !== 'summary' && el.localName !== 'img' && el.localName !== 'svg') {\n let role = el.getAttribute('role');\n if (!role) console.warn('<Focusable> child must have an interactive ARIA role.');\n else if (// https://w3c.github.io/aria/#widget_roles\n role !== 'application' && role !== 'button' && role !== 'checkbox' && role !== 'combobox' && role !== 'gridcell' && role !== 'link' && role !== 'menuitem' && role !== 'menuitemcheckbox' && role !== 'menuitemradio' && role !== 'option' && role !== 'radio' && role !== 'searchbox' && role !== 'separator' && role !== 'slider' && role !== 'spinbutton' && role !== 'switch' && role !== 'tab' && role !== 'tabpanel' && role !== 'textbox' && role !== 'treeitem' && // aria-describedby is also announced on these roles\n role !== 'img' && role !== 'meter' && role !== 'progressbar') console.warn(`<Focusable> child must have an interactive ARIA role. Got \"${role}\".`);\n }\n }, [\n ref,\n props.isDisabled\n ]);\n // @ts-ignore\n let childRef = parseInt((0, $fcPuG$react).version, 10) < 19 ? child.ref : child.props.ref;\n return /*#__PURE__*/ (0, $fcPuG$react).cloneElement(child, {\n ...(0, $fcPuG$mergeProps)(focusableProps, child.props),\n // @ts-ignore\n ref: (0, $fcPuG$mergeRefs)(childRef, ref)\n });\n});\n\n\nexport {$f645667febf57a63$export$f9762fab77588ecb as FocusableContext, $f645667febf57a63$export$13f3202a3e5ddd5 as FocusableProvider, $f645667febf57a63$export$4c014de7c8940b4c as useFocusable, $f645667febf57a63$export$35a3bebf7ef2d934 as Focusable};\n//# sourceMappingURL=useFocusable.module.js.map\n"],"names":["$93925083ecbb358c$export$48d1ea6320830260","handler","shouldStopPropagation","e","event","$46d819fcbaf35654$export$8f71654801c2f7cd","props","$f645667febf57a63$export$f9762fab77588ecb","$fcPuG$react","$f645667febf57a63$var$useFocusableContext","ref","context","$fcPuG$useContext","$fcPuG$useSyncRef","_","otherProps","$f645667febf57a63$export$13f3202a3e5ddd5","children","objRef","$fcPuG$useObjectRef","$f645667febf57a63$export$4c014de7c8940b4c","domRef","focusProps","$a1ea59d68270f0dd$export$f8168d8dd8fd66e6","keyboardProps","interactions","$fcPuG$mergeProps","domProps","interactionProps","autoFocusRef","$fcPuG$useRef","$fcPuG$useEffect","$3ad3f6e1647bc98d$export$80f3e147d781571c","tabIndex"],"mappings":"+LAUI,SAASA,EAA0CC,EAAS,CAC5D,GAAI,CAACA,EAAS,OACd,IAAIC,EAAwB,GAC5B,OAAQC,GAAI,CACR,IAAIC,EAAQ,CACR,GAAGD,EACH,gBAAkB,CACdA,EAAE,eAAgB,CACrB,EACD,oBAAsB,CAClB,OAAOA,EAAE,mBAAoB,CAChC,EACD,iBAAmB,CACXD,GAAyB,QAAQ,IAAI,WAAa,aAAc,QAAQ,MAAM,sIAAsI,EACnNA,EAAwB,EAChC,EACD,qBAAuB,CACnBA,EAAwB,EAC3B,EACD,sBAAwB,CACpB,OAAOA,CACvB,CACS,EACDD,EAAQG,CAAK,EACTF,GAAuBC,EAAE,gBAAiB,CACjD,CACL,CCvBA,SAASE,EAA0CC,EAAO,CACtD,MAAO,CACH,cAAeA,EAAM,WAAa,GAAK,CACnC,UAAeN,EAA2CM,EAAM,SAAS,EACzE,QAAaN,EAA2CM,EAAM,OAAO,CACjF,CACK,CACL,CCCG,IAACC,EAA8DC,EAAc,cAAc,IAAI,EAClG,SAASC,EAA0CC,EAAK,CACpD,IAAIC,EAAcC,aAAmBL,CAAyC,GAAK,CAAE,EACjFM,EAAiB,0CAAEF,EAASD,CAAG,EAEnC,GAAI,CAAE,IAAKI,EAAG,GAAGC,CAAY,EAAGJ,EAChC,OAAOI,CACX,CACK,MAACC,EAA6DR,EAAc,WAAW,SAA2BF,EAAOI,EAA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