@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,526 @@
|
|
|
1
|
+
import { i as oe, b as O, a as be, g as Te, h as he, c as p, f as u, n as q, $ as V } from "./utils-wW2ZswvI.js";
|
|
2
|
+
import { b as Pe, a as Ee } from "./focusSafely-D_uW2Kp-.js";
|
|
3
|
+
import { h as me, g as Se, i as G, j as Ke, k as le, l as we, m as J } from "./useFocus-mfjoACQ_.js";
|
|
4
|
+
import xe, { useContext as fe, createContext as ke, useState as _e, useRef as Oe, useMemo as Me, useEffect as Q } from "react";
|
|
5
|
+
import { b as k, $ as ce, e as Ce } from "./mergeProps-DAjoWNOq.js";
|
|
6
|
+
import { flushSync as Ie } from "react-dom";
|
|
7
|
+
const Ae = /* @__PURE__ */ ke({
|
|
8
|
+
isNative: !0,
|
|
9
|
+
open: Ue,
|
|
10
|
+
useHref: (t) => t
|
|
11
|
+
});
|
|
12
|
+
function ue() {
|
|
13
|
+
return fe(Ae);
|
|
14
|
+
}
|
|
15
|
+
function et(t, n) {
|
|
16
|
+
let i = t.getAttribute("target");
|
|
17
|
+
return (!i || i === "_self") && t.origin === location.origin && !t.hasAttribute("download") && !n.metaKey && // open in new tab (mac)
|
|
18
|
+
!n.ctrlKey && // open in new tab (windows)
|
|
19
|
+
!n.altKey && // download
|
|
20
|
+
!n.shiftKey;
|
|
21
|
+
}
|
|
22
|
+
function I(t, n, i = !0) {
|
|
23
|
+
var o, d;
|
|
24
|
+
let { metaKey: y, ctrlKey: $, altKey: g, shiftKey: S } = n;
|
|
25
|
+
me() && (!((d = window.event) === null || d === void 0 || (o = d.type) === null || o === void 0) && o.startsWith("key")) && t.target === "_blank" && (G() ? y = !0 : $ = !0);
|
|
26
|
+
let P = Se() && G() && !Ke() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
|
|
27
|
+
keyIdentifier: "Enter",
|
|
28
|
+
metaKey: y,
|
|
29
|
+
ctrlKey: $,
|
|
30
|
+
altKey: g,
|
|
31
|
+
shiftKey: S
|
|
32
|
+
}) : new MouseEvent("click", {
|
|
33
|
+
metaKey: y,
|
|
34
|
+
ctrlKey: $,
|
|
35
|
+
altKey: g,
|
|
36
|
+
shiftKey: S,
|
|
37
|
+
bubbles: !0,
|
|
38
|
+
cancelable: !0
|
|
39
|
+
});
|
|
40
|
+
I.isOpening = i, oe(t), t.dispatchEvent(P), I.isOpening = !1;
|
|
41
|
+
}
|
|
42
|
+
I.isOpening = !1;
|
|
43
|
+
function Le(t, n) {
|
|
44
|
+
if (t instanceof HTMLAnchorElement) n(t);
|
|
45
|
+
else if (t.hasAttribute("data-href")) {
|
|
46
|
+
let i = document.createElement("a");
|
|
47
|
+
i.href = t.getAttribute("data-href"), t.hasAttribute("data-target") && (i.target = t.getAttribute("data-target")), t.hasAttribute("data-rel") && (i.rel = t.getAttribute("data-rel")), t.hasAttribute("data-download") && (i.download = t.getAttribute("data-download")), t.hasAttribute("data-ping") && (i.ping = t.getAttribute("data-ping")), t.hasAttribute("data-referrer-policy") && (i.referrerPolicy = t.getAttribute("data-referrer-policy")), t.appendChild(i), n(i), t.removeChild(i);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function Ue(t, n) {
|
|
51
|
+
Le(t, (i) => I(i, n));
|
|
52
|
+
}
|
|
53
|
+
function tt(t) {
|
|
54
|
+
let n = ue();
|
|
55
|
+
var i;
|
|
56
|
+
const o = n.useHref((i = t.href) !== null && i !== void 0 ? i : "");
|
|
57
|
+
return {
|
|
58
|
+
"data-href": t.href ? o : void 0,
|
|
59
|
+
"data-target": t.target,
|
|
60
|
+
"data-rel": t.rel,
|
|
61
|
+
"data-download": t.download,
|
|
62
|
+
"data-ping": t.ping,
|
|
63
|
+
"data-referrer-policy": t.referrerPolicy
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function rt(t) {
|
|
67
|
+
let n = ue();
|
|
68
|
+
var i;
|
|
69
|
+
const o = n.useHref((i = t == null ? void 0 : t.href) !== null && i !== void 0 ? i : "");
|
|
70
|
+
return {
|
|
71
|
+
href: t != null && t.href ? o : void 0,
|
|
72
|
+
target: t == null ? void 0 : t.target,
|
|
73
|
+
rel: t == null ? void 0 : t.rel,
|
|
74
|
+
download: t == null ? void 0 : t.download,
|
|
75
|
+
ping: t == null ? void 0 : t.ping,
|
|
76
|
+
referrerPolicy: t == null ? void 0 : t.referrerPolicy
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
let C = "default", j = "", X = /* @__PURE__ */ new WeakMap();
|
|
80
|
+
function Z(t) {
|
|
81
|
+
if (le()) {
|
|
82
|
+
if (C === "default") {
|
|
83
|
+
const n = O(t);
|
|
84
|
+
j = n.documentElement.style.webkitUserSelect, n.documentElement.style.webkitUserSelect = "none";
|
|
85
|
+
}
|
|
86
|
+
C = "disabled";
|
|
87
|
+
} else if (t instanceof HTMLElement || t instanceof SVGElement) {
|
|
88
|
+
let n = "userSelect" in t.style ? "userSelect" : "webkitUserSelect";
|
|
89
|
+
X.set(t, t.style[n]), t.style[n] = "none";
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function F(t) {
|
|
93
|
+
if (le()) {
|
|
94
|
+
if (C !== "disabled") return;
|
|
95
|
+
C = "restoring", setTimeout(() => {
|
|
96
|
+
Pe(() => {
|
|
97
|
+
if (C === "restoring") {
|
|
98
|
+
const n = O(t);
|
|
99
|
+
n.documentElement.style.webkitUserSelect === "none" && (n.documentElement.style.webkitUserSelect = j || ""), j = "", C = "default";
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}, 300);
|
|
103
|
+
} else if ((t instanceof HTMLElement || t instanceof SVGElement) && t && X.has(t)) {
|
|
104
|
+
let n = X.get(t), i = "userSelect" in t.style ? "userSelect" : "webkitUserSelect";
|
|
105
|
+
t.style[i] === "none" && (t.style[i] = n), t.getAttribute("style") === "" && t.removeAttribute("style"), X.delete(t);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
const de = xe.createContext({
|
|
109
|
+
register: () => {
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
de.displayName = "PressResponderContext";
|
|
113
|
+
function De(t, n) {
|
|
114
|
+
return n.get ? n.get.call(t) : n.value;
|
|
115
|
+
}
|
|
116
|
+
function pe(t, n, i) {
|
|
117
|
+
if (!n.has(t)) throw new TypeError("attempted to " + i + " private field on non-instance");
|
|
118
|
+
return n.get(t);
|
|
119
|
+
}
|
|
120
|
+
function Ye(t, n) {
|
|
121
|
+
var i = pe(t, n, "get");
|
|
122
|
+
return De(t, i);
|
|
123
|
+
}
|
|
124
|
+
function Xe(t, n) {
|
|
125
|
+
if (n.has(t))
|
|
126
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
127
|
+
}
|
|
128
|
+
function He(t, n, i) {
|
|
129
|
+
Xe(t, n), n.set(t, i);
|
|
130
|
+
}
|
|
131
|
+
function Re(t, n, i) {
|
|
132
|
+
if (n.set) n.set.call(t, i);
|
|
133
|
+
else {
|
|
134
|
+
if (!n.writable)
|
|
135
|
+
throw new TypeError("attempted to set read only private field");
|
|
136
|
+
n.value = i;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
function ee(t, n, i) {
|
|
140
|
+
var o = pe(t, n, "set");
|
|
141
|
+
return Re(t, o, i), i;
|
|
142
|
+
}
|
|
143
|
+
function Ne(t) {
|
|
144
|
+
let n = fe(de);
|
|
145
|
+
if (n) {
|
|
146
|
+
let { register: i, ...o } = n;
|
|
147
|
+
t = ce(o, t), i();
|
|
148
|
+
}
|
|
149
|
+
return Ee(n, t.ref), t;
|
|
150
|
+
}
|
|
151
|
+
var D = /* @__PURE__ */ new WeakMap();
|
|
152
|
+
class Y {
|
|
153
|
+
continuePropagation() {
|
|
154
|
+
ee(this, D, !1);
|
|
155
|
+
}
|
|
156
|
+
get shouldStopPropagation() {
|
|
157
|
+
return Ye(this, D);
|
|
158
|
+
}
|
|
159
|
+
constructor(n, i, o, d) {
|
|
160
|
+
He(this, D, {
|
|
161
|
+
writable: !0,
|
|
162
|
+
value: void 0
|
|
163
|
+
}), ee(this, D, !0);
|
|
164
|
+
var y;
|
|
165
|
+
let $ = (y = d == null ? void 0 : d.target) !== null && y !== void 0 ? y : o.currentTarget;
|
|
166
|
+
const g = $ == null ? void 0 : $.getBoundingClientRect();
|
|
167
|
+
let S, P = 0, A, b = null;
|
|
168
|
+
o.clientX != null && o.clientY != null && (A = o.clientX, b = o.clientY), g && (A != null && b != null ? (S = A - g.left, P = b - g.top) : (S = g.width / 2, P = g.height / 2)), this.type = n, this.pointerType = i, this.target = o.currentTarget, this.shiftKey = o.shiftKey, this.metaKey = o.metaKey, this.ctrlKey = o.ctrlKey, this.altKey = o.altKey, this.x = S, this.y = P;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
const te = Symbol("linkClicked"), re = "react-aria-pressable-style", ne = "data-react-aria-pressable";
|
|
172
|
+
function nt(t) {
|
|
173
|
+
let { onPress: n, onPressChange: i, onPressStart: o, onPressEnd: d, onPressUp: y, onClick: $, isDisabled: g, isPressed: S, preventFocusOnPress: P, shouldCancelOnPointerExit: A, allowTextSelectionOnPress: b, ref: H, ...ge } = Ne(t), [ye, W] = _e(!1), M = Oe({
|
|
174
|
+
isPressed: !1,
|
|
175
|
+
ignoreEmulatedMouseEvents: !1,
|
|
176
|
+
didFirePressStart: !1,
|
|
177
|
+
isTriggeringEvent: !1,
|
|
178
|
+
activePointerId: null,
|
|
179
|
+
target: null,
|
|
180
|
+
isOverTarget: !1,
|
|
181
|
+
pointerType: null,
|
|
182
|
+
disposables: []
|
|
183
|
+
}), { addGlobalListener: w, removeAllGlobalListeners: L } = be(), E = k((e, s) => {
|
|
184
|
+
let v = M.current;
|
|
185
|
+
if (g || v.didFirePressStart) return !1;
|
|
186
|
+
let a = !0;
|
|
187
|
+
if (v.isTriggeringEvent = !0, o) {
|
|
188
|
+
let c = new Y("pressstart", s, e);
|
|
189
|
+
o(c), a = c.shouldStopPropagation;
|
|
190
|
+
}
|
|
191
|
+
return i && i(!0), v.isTriggeringEvent = !1, v.didFirePressStart = !0, W(!0), a;
|
|
192
|
+
}), h = k((e, s, v = !0) => {
|
|
193
|
+
let a = M.current;
|
|
194
|
+
if (!a.didFirePressStart) return !1;
|
|
195
|
+
a.didFirePressStart = !1, a.isTriggeringEvent = !0;
|
|
196
|
+
let c = !0;
|
|
197
|
+
if (d) {
|
|
198
|
+
let r = new Y("pressend", s, e);
|
|
199
|
+
d(r), c = r.shouldStopPropagation;
|
|
200
|
+
}
|
|
201
|
+
if (i && i(!1), W(!1), n && v && !g) {
|
|
202
|
+
let r = new Y("press", s, e);
|
|
203
|
+
n(r), c && (c = r.shouldStopPropagation);
|
|
204
|
+
}
|
|
205
|
+
return a.isTriggeringEvent = !1, c;
|
|
206
|
+
}), x = k((e, s) => {
|
|
207
|
+
let v = M.current;
|
|
208
|
+
if (g) return !1;
|
|
209
|
+
if (y) {
|
|
210
|
+
v.isTriggeringEvent = !0;
|
|
211
|
+
let a = new Y("pressup", s, e);
|
|
212
|
+
return y(a), v.isTriggeringEvent = !1, a.shouldStopPropagation;
|
|
213
|
+
}
|
|
214
|
+
return !0;
|
|
215
|
+
}), T = k((e) => {
|
|
216
|
+
let s = M.current;
|
|
217
|
+
if (s.isPressed && s.target) {
|
|
218
|
+
s.didFirePressStart && s.pointerType != null && h(_(s.target, e), s.pointerType, !1), s.isPressed = !1, s.isOverTarget = !1, s.activePointerId = null, s.pointerType = null, L(), b || F(s.target);
|
|
219
|
+
for (let v of s.disposables) v();
|
|
220
|
+
s.disposables = [];
|
|
221
|
+
}
|
|
222
|
+
}), U = k((e) => {
|
|
223
|
+
A && T(e);
|
|
224
|
+
}), R = k((e) => {
|
|
225
|
+
$ == null || $(e);
|
|
226
|
+
}), N = k((e, s) => {
|
|
227
|
+
if ($) {
|
|
228
|
+
let v = new MouseEvent("click", e);
|
|
229
|
+
Te(v, s), $(he(v));
|
|
230
|
+
}
|
|
231
|
+
}), $e = Me(() => {
|
|
232
|
+
let e = M.current, s = {
|
|
233
|
+
onKeyDown(a) {
|
|
234
|
+
if (B(a.nativeEvent, a.currentTarget) && p(a.currentTarget, u(a.nativeEvent))) {
|
|
235
|
+
var c;
|
|
236
|
+
se(u(a.nativeEvent), a.key) && a.preventDefault();
|
|
237
|
+
let r = !0;
|
|
238
|
+
if (!e.isPressed && !a.repeat) {
|
|
239
|
+
e.target = a.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = E(a, "keyboard");
|
|
240
|
+
let l = a.currentTarget, f = (m) => {
|
|
241
|
+
B(m, l) && !m.repeat && p(l, u(m)) && e.target && x(_(e.target, m), "keyboard");
|
|
242
|
+
};
|
|
243
|
+
w(O(a.currentTarget), "keyup", Ce(f, v), !0);
|
|
244
|
+
}
|
|
245
|
+
r && a.stopPropagation(), a.metaKey && G() && ((c = e.metaKeyEvents) === null || c === void 0 || c.set(a.key, a.nativeEvent));
|
|
246
|
+
} else a.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
247
|
+
},
|
|
248
|
+
onClick(a) {
|
|
249
|
+
if (!(a && !p(a.currentTarget, u(a.nativeEvent))) && a && a.button === 0 && !e.isTriggeringEvent && !I.isOpening) {
|
|
250
|
+
let c = !0;
|
|
251
|
+
if (g && a.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || J(a.nativeEvent))) {
|
|
252
|
+
let r = E(a, "virtual"), l = x(a, "virtual"), f = h(a, "virtual");
|
|
253
|
+
R(a), c = r && l && f;
|
|
254
|
+
} else if (e.isPressed && e.pointerType !== "keyboard") {
|
|
255
|
+
let r = e.pointerType || a.nativeEvent.pointerType || "virtual", l = x(_(a.currentTarget, a), r), f = h(_(a.currentTarget, a), r, !0);
|
|
256
|
+
c = l && f, e.isOverTarget = !1, R(a), T(a);
|
|
257
|
+
}
|
|
258
|
+
e.ignoreEmulatedMouseEvents = !1, c && a.stopPropagation();
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}, v = (a) => {
|
|
262
|
+
var c;
|
|
263
|
+
if (e.isPressed && e.target && B(a, e.target)) {
|
|
264
|
+
var r;
|
|
265
|
+
se(u(a), a.key) && a.preventDefault();
|
|
266
|
+
let f = u(a), m = p(e.target, u(a));
|
|
267
|
+
h(_(e.target, a), "keyboard", m), m && N(a, e.target), L(), a.key !== "Enter" && z(e.target) && p(e.target, f) && !a[te] && (a[te] = !0, I(e.target, a, !1)), e.isPressed = !1, (r = e.metaKeyEvents) === null || r === void 0 || r.delete(a.key);
|
|
268
|
+
} else if (a.key === "Meta" && (!((c = e.metaKeyEvents) === null || c === void 0) && c.size)) {
|
|
269
|
+
var l;
|
|
270
|
+
let f = e.metaKeyEvents;
|
|
271
|
+
e.metaKeyEvents = void 0;
|
|
272
|
+
for (let m of f.values()) (l = e.target) === null || l === void 0 || l.dispatchEvent(new KeyboardEvent("keyup", m));
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
if (typeof PointerEvent < "u") {
|
|
276
|
+
s.onPointerDown = (r) => {
|
|
277
|
+
if (r.button !== 0 || !p(r.currentTarget, u(r.nativeEvent))) return;
|
|
278
|
+
if (we(r.nativeEvent)) {
|
|
279
|
+
e.pointerType = "virtual";
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
e.pointerType = r.pointerType;
|
|
283
|
+
let l = !0;
|
|
284
|
+
if (!e.isPressed) {
|
|
285
|
+
e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = r.pointerId, e.target = r.currentTarget, b || Z(e.target), l = E(r, e.pointerType);
|
|
286
|
+
let f = u(r.nativeEvent);
|
|
287
|
+
"releasePointerCapture" in f && f.releasePointerCapture(r.pointerId), w(O(r.currentTarget), "pointerup", a, !1), w(O(r.currentTarget), "pointercancel", c, !1);
|
|
288
|
+
}
|
|
289
|
+
l && r.stopPropagation();
|
|
290
|
+
}, s.onMouseDown = (r) => {
|
|
291
|
+
if (p(r.currentTarget, u(r.nativeEvent)) && r.button === 0) {
|
|
292
|
+
if (P) {
|
|
293
|
+
let l = q(r.target);
|
|
294
|
+
l && e.disposables.push(l);
|
|
295
|
+
}
|
|
296
|
+
r.stopPropagation();
|
|
297
|
+
}
|
|
298
|
+
}, s.onPointerUp = (r) => {
|
|
299
|
+
!p(r.currentTarget, u(r.nativeEvent)) || e.pointerType === "virtual" || r.button === 0 && !e.isPressed && x(r, e.pointerType || r.pointerType);
|
|
300
|
+
}, s.onPointerEnter = (r) => {
|
|
301
|
+
r.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, E(_(e.target, r), e.pointerType));
|
|
302
|
+
}, s.onPointerLeave = (r) => {
|
|
303
|
+
r.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, h(_(e.target, r), e.pointerType, !1), U(r));
|
|
304
|
+
};
|
|
305
|
+
let a = (r) => {
|
|
306
|
+
if (r.pointerId === e.activePointerId && e.isPressed && r.button === 0 && e.target) {
|
|
307
|
+
if (p(e.target, u(r)) && e.pointerType != null) {
|
|
308
|
+
let l = !1, f = setTimeout(() => {
|
|
309
|
+
e.isPressed && e.target instanceof HTMLElement && (l ? T(r) : (oe(e.target), e.target.click()));
|
|
310
|
+
}, 80);
|
|
311
|
+
w(r.currentTarget, "click", () => l = !0, !0), e.disposables.push(() => clearTimeout(f));
|
|
312
|
+
} else T(r);
|
|
313
|
+
e.isOverTarget = !1;
|
|
314
|
+
}
|
|
315
|
+
}, c = (r) => {
|
|
316
|
+
T(r);
|
|
317
|
+
};
|
|
318
|
+
s.onDragStart = (r) => {
|
|
319
|
+
p(r.currentTarget, u(r.nativeEvent)) && T(r);
|
|
320
|
+
};
|
|
321
|
+
} else if (process.env.NODE_ENV === "test") {
|
|
322
|
+
s.onMouseDown = (r) => {
|
|
323
|
+
if (r.button !== 0 || !p(r.currentTarget, u(r.nativeEvent))) return;
|
|
324
|
+
if (e.ignoreEmulatedMouseEvents) {
|
|
325
|
+
r.stopPropagation();
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
if (e.isPressed = !0, e.isOverTarget = !0, e.target = r.currentTarget, e.pointerType = J(r.nativeEvent) ? "virtual" : "mouse", Ie(() => E(r, e.pointerType)) && r.stopPropagation(), P) {
|
|
329
|
+
let f = q(r.target);
|
|
330
|
+
f && e.disposables.push(f);
|
|
331
|
+
}
|
|
332
|
+
w(O(r.currentTarget), "mouseup", a, !1);
|
|
333
|
+
}, s.onMouseEnter = (r) => {
|
|
334
|
+
if (!p(r.currentTarget, u(r.nativeEvent))) return;
|
|
335
|
+
let l = !0;
|
|
336
|
+
e.isPressed && !e.ignoreEmulatedMouseEvents && e.pointerType != null && (e.isOverTarget = !0, l = E(r, e.pointerType)), l && r.stopPropagation();
|
|
337
|
+
}, s.onMouseLeave = (r) => {
|
|
338
|
+
if (!p(r.currentTarget, u(r.nativeEvent))) return;
|
|
339
|
+
let l = !0;
|
|
340
|
+
e.isPressed && !e.ignoreEmulatedMouseEvents && e.pointerType != null && (e.isOverTarget = !1, l = h(r, e.pointerType, !1), U(r)), l && r.stopPropagation();
|
|
341
|
+
}, s.onMouseUp = (r) => {
|
|
342
|
+
p(r.currentTarget, u(r.nativeEvent)) && !e.ignoreEmulatedMouseEvents && r.button === 0 && !e.isPressed && x(r, e.pointerType || "mouse");
|
|
343
|
+
};
|
|
344
|
+
let a = (r) => {
|
|
345
|
+
if (r.button === 0) {
|
|
346
|
+
if (e.ignoreEmulatedMouseEvents) {
|
|
347
|
+
e.ignoreEmulatedMouseEvents = !1;
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
e.target && e.target.contains(r.target) && e.pointerType != null || T(r), e.isOverTarget = !1;
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
s.onTouchStart = (r) => {
|
|
354
|
+
if (!p(r.currentTarget, u(r.nativeEvent))) return;
|
|
355
|
+
let l = Fe(r.nativeEvent);
|
|
356
|
+
if (!l) return;
|
|
357
|
+
e.activePointerId = l.identifier, e.ignoreEmulatedMouseEvents = !0, e.isOverTarget = !0, e.isPressed = !0, e.target = r.currentTarget, e.pointerType = "touch", b || Z(e.target), E(K(e.target, r), e.pointerType) && r.stopPropagation(), w(V(r.currentTarget), "scroll", c, !0);
|
|
358
|
+
}, s.onTouchMove = (r) => {
|
|
359
|
+
if (!p(r.currentTarget, u(r.nativeEvent))) return;
|
|
360
|
+
if (!e.isPressed) {
|
|
361
|
+
r.stopPropagation();
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
let l = ie(r.nativeEvent, e.activePointerId), f = !0;
|
|
365
|
+
l && ae(l, r.currentTarget) ? !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, f = E(K(e.target, r), e.pointerType)) : e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, f = h(K(e.target, r), e.pointerType, !1), U(K(e.target, r))), f && r.stopPropagation();
|
|
366
|
+
}, s.onTouchEnd = (r) => {
|
|
367
|
+
if (!p(r.currentTarget, u(r.nativeEvent))) return;
|
|
368
|
+
if (!e.isPressed) {
|
|
369
|
+
r.stopPropagation();
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
let l = ie(r.nativeEvent, e.activePointerId), f = !0;
|
|
373
|
+
l && ae(l, r.currentTarget) && e.pointerType != null ? (x(K(e.target, r), e.pointerType), f = h(K(e.target, r), e.pointerType), N(r.nativeEvent, e.target)) : e.isOverTarget && e.pointerType != null && (f = h(K(e.target, r), e.pointerType, !1)), f && r.stopPropagation(), e.isPressed = !1, e.activePointerId = null, e.isOverTarget = !1, e.ignoreEmulatedMouseEvents = !0, e.target && !b && F(e.target), L();
|
|
374
|
+
}, s.onTouchCancel = (r) => {
|
|
375
|
+
p(r.currentTarget, u(r.nativeEvent)) && (r.stopPropagation(), e.isPressed && T(K(e.target, r)));
|
|
376
|
+
};
|
|
377
|
+
let c = (r) => {
|
|
378
|
+
e.isPressed && p(u(r), e.target) && T({
|
|
379
|
+
currentTarget: e.target,
|
|
380
|
+
shiftKey: !1,
|
|
381
|
+
ctrlKey: !1,
|
|
382
|
+
metaKey: !1,
|
|
383
|
+
altKey: !1
|
|
384
|
+
});
|
|
385
|
+
};
|
|
386
|
+
s.onDragStart = (r) => {
|
|
387
|
+
p(r.currentTarget, u(r.nativeEvent)) && T(r);
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
return s;
|
|
391
|
+
}, [
|
|
392
|
+
w,
|
|
393
|
+
g,
|
|
394
|
+
P,
|
|
395
|
+
L,
|
|
396
|
+
b,
|
|
397
|
+
T,
|
|
398
|
+
U,
|
|
399
|
+
h,
|
|
400
|
+
E,
|
|
401
|
+
x,
|
|
402
|
+
R,
|
|
403
|
+
N
|
|
404
|
+
]);
|
|
405
|
+
return Q(() => {
|
|
406
|
+
if (!H || process.env.NODE_ENV === "test") return;
|
|
407
|
+
const e = O(H.current);
|
|
408
|
+
if (!e || !e.head || e.getElementById(re)) return;
|
|
409
|
+
const s = e.createElement("style");
|
|
410
|
+
s.id = re, s.textContent = `
|
|
411
|
+
@layer {
|
|
412
|
+
[${ne}] {
|
|
413
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
`.trim(), e.head.prepend(s);
|
|
417
|
+
}, [
|
|
418
|
+
H
|
|
419
|
+
]), Q(() => {
|
|
420
|
+
let e = M.current;
|
|
421
|
+
return () => {
|
|
422
|
+
var s;
|
|
423
|
+
b || F((s = e.target) !== null && s !== void 0 ? s : void 0);
|
|
424
|
+
for (let v of e.disposables) v();
|
|
425
|
+
e.disposables = [];
|
|
426
|
+
};
|
|
427
|
+
}, [
|
|
428
|
+
b
|
|
429
|
+
]), {
|
|
430
|
+
isPressed: S || ye,
|
|
431
|
+
pressProps: ce(ge, $e, {
|
|
432
|
+
[ne]: !0
|
|
433
|
+
})
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
function z(t) {
|
|
437
|
+
return t.tagName === "A" && t.hasAttribute("href");
|
|
438
|
+
}
|
|
439
|
+
function B(t, n) {
|
|
440
|
+
const { key: i, code: o } = t, d = n, y = d.getAttribute("role");
|
|
441
|
+
return (i === "Enter" || i === " " || i === "Spacebar" || o === "Space") && !(d instanceof V(d).HTMLInputElement && !ve(d, i) || d instanceof V(d).HTMLTextAreaElement || d.isContentEditable) && // Links should only trigger with Enter key
|
|
442
|
+
!((y === "link" || !y && z(d)) && i !== "Enter");
|
|
443
|
+
}
|
|
444
|
+
function Fe(t) {
|
|
445
|
+
const { targetTouches: n } = t;
|
|
446
|
+
return n.length > 0 ? n[0] : null;
|
|
447
|
+
}
|
|
448
|
+
function ie(t, n) {
|
|
449
|
+
const i = t.changedTouches;
|
|
450
|
+
for (let o = 0; o < i.length; o++) {
|
|
451
|
+
const d = i[o];
|
|
452
|
+
if (d.identifier === n) return d;
|
|
453
|
+
}
|
|
454
|
+
return null;
|
|
455
|
+
}
|
|
456
|
+
function K(t, n) {
|
|
457
|
+
let i = 0, o = 0;
|
|
458
|
+
return n.targetTouches && n.targetTouches.length === 1 && (i = n.targetTouches[0].clientX, o = n.targetTouches[0].clientY), {
|
|
459
|
+
currentTarget: t,
|
|
460
|
+
shiftKey: n.shiftKey,
|
|
461
|
+
ctrlKey: n.ctrlKey,
|
|
462
|
+
metaKey: n.metaKey,
|
|
463
|
+
altKey: n.altKey,
|
|
464
|
+
clientX: i,
|
|
465
|
+
clientY: o
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
function _(t, n) {
|
|
469
|
+
let i = n.clientX, o = n.clientY;
|
|
470
|
+
return {
|
|
471
|
+
currentTarget: t,
|
|
472
|
+
shiftKey: n.shiftKey,
|
|
473
|
+
ctrlKey: n.ctrlKey,
|
|
474
|
+
metaKey: n.metaKey,
|
|
475
|
+
altKey: n.altKey,
|
|
476
|
+
clientX: i,
|
|
477
|
+
clientY: o
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
function Be(t) {
|
|
481
|
+
let n = 0, i = 0;
|
|
482
|
+
return t.width !== void 0 ? n = t.width / 2 : t.radiusX !== void 0 && (n = t.radiusX), t.height !== void 0 ? i = t.height / 2 : t.radiusY !== void 0 && (i = t.radiusY), {
|
|
483
|
+
top: t.clientY - i,
|
|
484
|
+
right: t.clientX + n,
|
|
485
|
+
bottom: t.clientY + i,
|
|
486
|
+
left: t.clientX - n
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
function Ve(t, n) {
|
|
490
|
+
return !(t.left > n.right || n.left > t.right || t.top > n.bottom || n.top > t.bottom);
|
|
491
|
+
}
|
|
492
|
+
function ae(t, n) {
|
|
493
|
+
let i = n.getBoundingClientRect(), o = Be(t);
|
|
494
|
+
return Ve(i, o);
|
|
495
|
+
}
|
|
496
|
+
function Ge(t) {
|
|
497
|
+
return t instanceof HTMLInputElement ? !1 : t instanceof HTMLButtonElement ? t.type !== "submit" && t.type !== "reset" : !z(t);
|
|
498
|
+
}
|
|
499
|
+
function se(t, n) {
|
|
500
|
+
return t instanceof HTMLInputElement ? !ve(t, n) : Ge(t);
|
|
501
|
+
}
|
|
502
|
+
const je = /* @__PURE__ */ new Set([
|
|
503
|
+
"checkbox",
|
|
504
|
+
"radio",
|
|
505
|
+
"range",
|
|
506
|
+
"color",
|
|
507
|
+
"file",
|
|
508
|
+
"image",
|
|
509
|
+
"button",
|
|
510
|
+
"submit",
|
|
511
|
+
"reset"
|
|
512
|
+
]);
|
|
513
|
+
function ve(t, n) {
|
|
514
|
+
return t.type === "checkbox" || t.type === "radio" ? n === " " : je.has(t.type);
|
|
515
|
+
}
|
|
516
|
+
export {
|
|
517
|
+
nt as $,
|
|
518
|
+
He as _,
|
|
519
|
+
ue as a,
|
|
520
|
+
rt as b,
|
|
521
|
+
et as c,
|
|
522
|
+
de as d,
|
|
523
|
+
I as e,
|
|
524
|
+
tt as f
|
|
525
|
+
};
|
|
526
|
+
//# sourceMappingURL=usePress-dJvNd3G7.js.map
|