@televet/kibble-ui 4.0.0-beta.7 → 4.0.0-beta.71
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/README.md +40 -0
- package/dist/chunks/IconLogo-C4aZqkn1.js +2 -0
- package/dist/chunks/IconLogo-C4aZqkn1.js.map +1 -0
- package/dist/chunks/IconLogo-D8EHZ4Is.js +62 -0
- package/dist/chunks/IconLogo-D8EHZ4Is.js.map +1 -0
- package/dist/chunks/alert.types-8JN84Qgi.js +219 -0
- package/dist/chunks/alert.types-8JN84Qgi.js.map +1 -0
- package/dist/chunks/alert.types-eZV4C-Lo.js +2 -0
- package/dist/chunks/alert.types-eZV4C-Lo.js.map +1 -0
- package/dist/chunks/attr-BMs6szZx.js +2 -0
- package/dist/chunks/attr-BMs6szZx.js.map +1 -0
- package/dist/chunks/attr-sm10PXOd.js +5 -0
- package/dist/chunks/attr-sm10PXOd.js.map +1 -0
- package/dist/chunks/avatar.component-DFECejcq.js +2 -0
- package/dist/chunks/avatar.component-DFECejcq.js.map +1 -0
- package/dist/chunks/avatar.component-DHEnOmiw.js +420 -0
- package/dist/chunks/avatar.component-DHEnOmiw.js.map +1 -0
- package/dist/chunks/{avatarGroup.component-CceV-fW0.js → avatarGroup.component-BivC9ghH.js} +27 -28
- package/dist/chunks/{avatarGroup.component-CceV-fW0.js.map → avatarGroup.component-BivC9ghH.js.map} +1 -1
- package/dist/chunks/avatarGroup.component-CidA0JNq.js +2 -0
- package/dist/chunks/{avatarGroup.component-Q43nemix.js.map → avatarGroup.component-CidA0JNq.js.map} +1 -1
- package/dist/chunks/box-Baq7UBls.js +2 -0
- package/dist/chunks/box-Baq7UBls.js.map +1 -0
- package/dist/chunks/box-Ck9I7FYv.js +7 -0
- package/dist/chunks/box-Ck9I7FYv.js.map +1 -0
- package/dist/chunks/{button.component-BtkAjIWe.js → button.component-BpF3MzbZ.js} +10 -10
- package/dist/chunks/button.component-BpF3MzbZ.js.map +1 -0
- package/dist/chunks/button.component-Dd9AfGox.js +2 -0
- package/dist/chunks/button.component-Dd9AfGox.js.map +1 -0
- package/dist/chunks/buttonGroup.component-B6Z97Z5w.js +77 -0
- package/dist/chunks/buttonGroup.component-B6Z97Z5w.js.map +1 -0
- package/dist/chunks/buttonGroup.component-dEH5U2U9.js +2 -0
- package/dist/chunks/buttonGroup.component-dEH5U2U9.js.map +1 -0
- package/dist/chunks/card.component-DNX41NGG.js +59 -0
- package/dist/chunks/card.component-DNX41NGG.js.map +1 -0
- package/dist/chunks/card.component-KNc4HKSh.js +2 -0
- package/dist/chunks/card.component-KNc4HKSh.js.map +1 -0
- package/dist/chunks/card.types-Cixp7ouC.js +5 -0
- package/dist/chunks/card.types-Cixp7ouC.js.map +1 -0
- package/dist/chunks/card.types-MvkQTTZF.js +2 -0
- package/dist/chunks/card.types-MvkQTTZF.js.map +1 -0
- package/dist/chunks/{characterCounter.component-DhiMcztY.js → characterCounter.component-BnJlAXbZ.js} +14 -12
- package/dist/chunks/{characterCounter.component-DhiMcztY.js.map → characterCounter.component-BnJlAXbZ.js.map} +1 -1
- package/dist/chunks/characterCounter.component-D32B_18y.js +2 -0
- package/dist/chunks/{characterCounter.component-BXxyn_IB.js.map → characterCounter.component-D32B_18y.js.map} +1 -1
- package/dist/chunks/checkbox.component-Oc8lxpMw.js +2 -0
- package/dist/chunks/checkbox.component-Oc8lxpMw.js.map +1 -0
- package/dist/chunks/checkbox.component-PJondNuh.js +310 -0
- package/dist/chunks/checkbox.component-PJondNuh.js.map +1 -0
- package/dist/chunks/checkbox.records-B1tMW87O.js +2 -0
- package/dist/chunks/checkbox.records-B1tMW87O.js.map +1 -0
- package/dist/chunks/checkbox.records-BtZVOsgd.js +266 -0
- package/dist/chunks/checkbox.records-BtZVOsgd.js.map +1 -0
- package/dist/chunks/checkboxGroup.component-DUlVhjLO.js +52 -0
- package/dist/chunks/{checkboxGroup.component-DcIdfbbl.js.map → checkboxGroup.component-DUlVhjLO.js.map} +1 -1
- package/dist/chunks/checkboxGroup.component-Du63au-w.js +2 -0
- package/dist/chunks/{checkboxGroup.component-BYKUQW4y.js.map → checkboxGroup.component-Du63au-w.js.map} +1 -1
- package/dist/chunks/config-BFcXpdZo.js +2 -0
- package/dist/chunks/config-BFcXpdZo.js.map +1 -0
- package/dist/chunks/config-DlTdf-Yt.js +57 -0
- package/dist/chunks/config-DlTdf-Yt.js.map +1 -0
- package/dist/chunks/conversationCard.component-C1PQnKmJ.js +2 -0
- package/dist/chunks/conversationCard.component-C1PQnKmJ.js.map +1 -0
- package/dist/chunks/{conversationCard.component-BSfDNuuw.js → conversationCard.component-CYnBgT3a.js} +51 -49
- package/dist/chunks/conversationCard.component-CYnBgT3a.js.map +1 -0
- package/dist/chunks/create-recipe-context-D7FewUR4.js +62 -0
- package/dist/chunks/create-recipe-context-D7FewUR4.js.map +1 -0
- package/dist/chunks/create-recipe-context-sESms8Eo.js +2 -0
- package/dist/chunks/create-recipe-context-sESms8Eo.js.map +1 -0
- package/dist/chunks/create-slot-recipe-context-BJmsuxih.js +97 -0
- package/dist/chunks/create-slot-recipe-context-BJmsuxih.js.map +1 -0
- package/dist/chunks/create-slot-recipe-context-IwVIgtBt.js +2 -0
- package/dist/chunks/create-slot-recipe-context-IwVIgtBt.js.map +1 -0
- package/dist/chunks/datePicker.component-B7jzOKQ9.js +15 -0
- package/dist/chunks/datePicker.component-B7jzOKQ9.js.map +1 -0
- package/dist/chunks/datePicker.component-Cu0sCxMB.js +3165 -0
- package/dist/chunks/datePicker.component-Cu0sCxMB.js.map +1 -0
- package/dist/chunks/dialog-trigger-B5NK0lr-.js +2 -0
- package/dist/chunks/dialog-trigger-B5NK0lr-.js.map +1 -0
- package/dist/chunks/dialog-trigger-BPlPzPU-.js +78 -0
- package/dist/chunks/dialog-trigger-BPlPzPU-.js.map +1 -0
- package/dist/chunks/divider.types-0j5qRXed.js +47 -0
- package/dist/chunks/divider.types-0j5qRXed.js.map +1 -0
- package/dist/chunks/divider.types-CK5oFy-i.js +2 -0
- package/dist/chunks/divider.types-CK5oFy-i.js.map +1 -0
- package/dist/chunks/empty-B5_AO6Pg.js +2 -0
- package/dist/chunks/empty-B5_AO6Pg.js.map +1 -0
- package/dist/chunks/empty-BU2EAux9.js +8 -0
- package/dist/chunks/empty-BU2EAux9.js.map +1 -0
- package/dist/chunks/factory-Ctbv0Ozn.js +500 -0
- package/dist/chunks/factory-Ctbv0Ozn.js.map +1 -0
- package/dist/chunks/factory-D6tdBUPG.js +3 -0
- package/dist/chunks/factory-D6tdBUPG.js.map +1 -0
- package/dist/chunks/flex-D14H6HbP.js +2 -0
- package/dist/chunks/flex-D14H6HbP.js.map +1 -0
- package/dist/chunks/flex-smlF8uQG.js +40 -0
- package/dist/chunks/flex-smlF8uQG.js.map +1 -0
- package/dist/chunks/float-DYLtz2A6.js +64 -0
- package/dist/chunks/float-DYLtz2A6.js.map +1 -0
- package/dist/chunks/float-OQXnYWBw.js +2 -0
- package/dist/chunks/float-OQXnYWBw.js.map +1 -0
- package/dist/chunks/format-BRt-TIiQ.js +2 -0
- package/dist/chunks/format-BRt-TIiQ.js.map +1 -0
- package/dist/chunks/format-DgHM6wFr.js +1275 -0
- package/dist/chunks/format-DgHM6wFr.js.map +1 -0
- package/dist/chunks/grid-item-BV4dwEBP.js +90 -0
- package/dist/chunks/grid-item-BV4dwEBP.js.map +1 -0
- package/dist/chunks/grid-item-CR-sXrjU.js +2 -0
- package/dist/chunks/grid-item-CR-sXrjU.js.map +1 -0
- package/dist/chunks/group-Cv7AQw1b.js +2 -0
- package/dist/chunks/group-Cv7AQw1b.js.map +1 -0
- package/dist/chunks/group-DPCVolOl.js +139 -0
- package/dist/chunks/group-DPCVolOl.js.map +1 -0
- package/dist/chunks/h-stack-Bjx9hlJo.js +2 -0
- package/dist/chunks/h-stack-Bjx9hlJo.js.map +1 -0
- package/dist/chunks/h-stack-Ce6JSBK2.js +12 -0
- package/dist/chunks/h-stack-Ce6JSBK2.js.map +1 -0
- package/dist/chunks/heading.component-D4rtbYK8.js +12 -0
- package/dist/chunks/heading.component-D4rtbYK8.js.map +1 -0
- package/dist/chunks/heading.component-uv536wYF.js +2 -0
- package/dist/chunks/heading.component-uv536wYF.js.map +1 -0
- package/dist/chunks/icon-button-DTZOklQ9.js +119 -0
- package/dist/chunks/icon-button-DTZOklQ9.js.map +1 -0
- package/dist/chunks/icon-button-DtjZ-SdQ.js +2 -0
- package/dist/chunks/icon-button-DtjZ-SdQ.js.map +1 -0
- package/dist/chunks/icon.component-C0e0UGBw.js +2 -0
- package/dist/chunks/icon.component-C0e0UGBw.js.map +1 -0
- package/dist/chunks/{icon.component-DjNY589M.js → icon.component-DGNCL1Yc.js} +14 -16
- package/dist/chunks/icon.component-DGNCL1Yc.js.map +1 -0
- package/dist/chunks/icons-BXxdrBrf.js +216 -0
- package/dist/chunks/icons-BXxdrBrf.js.map +1 -0
- package/dist/chunks/icons-CTpAjbC-.js +2 -0
- package/dist/chunks/icons-CTpAjbC-.js.map +1 -0
- package/dist/chunks/index-BBZxmcrY.js +2 -0
- package/dist/chunks/index-BBZxmcrY.js.map +1 -0
- package/dist/chunks/index-BDnnTdaJ.js +2 -0
- package/dist/chunks/index-BDnnTdaJ.js.map +1 -0
- package/dist/chunks/index-BGwwyukg.js +2 -0
- package/dist/chunks/index-BGwwyukg.js.map +1 -0
- package/dist/chunks/index-BNYygzo-.js +376 -0
- package/dist/chunks/index-BNYygzo-.js.map +1 -0
- package/dist/chunks/index-BYf7SZUC.js +2 -0
- package/dist/chunks/index-BYf7SZUC.js.map +1 -0
- package/dist/chunks/index-BknUKotT.js +38 -0
- package/dist/chunks/index-BknUKotT.js.map +1 -0
- package/dist/chunks/index-C2kxTsiE.js +291 -0
- package/dist/chunks/index-C2kxTsiE.js.map +1 -0
- package/dist/chunks/index-COoMV9Mh.js +2 -0
- package/dist/chunks/index-COoMV9Mh.js.map +1 -0
- package/dist/chunks/index-CYk-7wwG.js +1018 -0
- package/dist/chunks/index-CYk-7wwG.js.map +1 -0
- package/dist/chunks/index-CZ42b9rT.js +3 -0
- package/dist/chunks/index-CZ42b9rT.js.map +1 -0
- package/dist/chunks/index-CZz7hHWb.js +2 -0
- package/dist/chunks/index-CZz7hHWb.js.map +1 -0
- package/dist/chunks/index-CgivotaP.js +20 -0
- package/dist/chunks/index-CgivotaP.js.map +1 -0
- package/dist/chunks/index-CjNAJEk5.js +6313 -0
- package/dist/chunks/index-CjNAJEk5.js.map +1 -0
- package/dist/chunks/index-CkYZf9Pm.js +2 -0
- package/dist/chunks/index-CkYZf9Pm.js.map +1 -0
- package/dist/chunks/index-Co91SHhW.js +141 -0
- package/dist/chunks/index-Co91SHhW.js.map +1 -0
- package/dist/chunks/index-CzrXl0uD.js +2 -0
- package/dist/chunks/index-CzrXl0uD.js.map +1 -0
- package/dist/chunks/index-D9DU-5GF.js +1196 -0
- package/dist/chunks/index-D9DU-5GF.js.map +1 -0
- package/dist/chunks/index-DAWHN3cH.js +86 -0
- package/dist/chunks/index-DAWHN3cH.js.map +1 -0
- package/dist/chunks/index-DD49WSSW.js +2 -0
- package/dist/chunks/index-DD49WSSW.js.map +1 -0
- package/dist/chunks/index-DUHFrLMI.js +389 -0
- package/dist/chunks/index-DUHFrLMI.js.map +1 -0
- package/dist/chunks/index-DcJZ8q0f.js +1190 -0
- package/dist/chunks/index-DcJZ8q0f.js.map +1 -0
- package/dist/chunks/index-MlhL0PDC.js +2 -0
- package/dist/chunks/index-MlhL0PDC.js.map +1 -0
- package/dist/chunks/index-S1uNQPZj.js +444 -0
- package/dist/chunks/index-S1uNQPZj.js.map +1 -0
- package/dist/chunks/index-UWtj4ULm.js +8 -0
- package/dist/chunks/index-UWtj4ULm.js.map +1 -0
- package/dist/chunks/index-ZaGEDS_0.js +2 -0
- package/dist/chunks/index-ZaGEDS_0.js.map +1 -0
- package/dist/chunks/index-iyefwwxw.js +2 -0
- package/dist/chunks/index-iyefwwxw.js.map +1 -0
- package/dist/chunks/index-j7W9Hyzx.js +322 -0
- package/dist/chunks/index-j7W9Hyzx.js.map +1 -0
- package/dist/chunks/index-z-FFv-gK.js +257 -0
- package/dist/chunks/index-z-FFv-gK.js.map +1 -0
- package/dist/chunks/jsx-runtime-BjDatQAs.js +23 -0
- package/dist/chunks/jsx-runtime-BjDatQAs.js.map +1 -0
- package/dist/chunks/jsx-runtime-C5mzlN2N.js +285 -0
- package/dist/chunks/jsx-runtime-C5mzlN2N.js.map +1 -0
- package/dist/chunks/link.component-CCFg-LIe.js +2 -0
- package/dist/chunks/link.component-CCFg-LIe.js.map +1 -0
- package/dist/chunks/link.component-DprieyUG.js +60 -0
- package/dist/chunks/link.component-DprieyUG.js.map +1 -0
- package/dist/chunks/list-C_LmDoyW.js +2 -0
- package/dist/chunks/list-C_LmDoyW.js.map +1 -0
- package/dist/chunks/list-DqH5ttQG.js +20 -0
- package/dist/chunks/list-DqH5ttQG.js.map +1 -0
- package/dist/chunks/logo.types-By8TqyNf.js +76 -0
- package/dist/chunks/logo.types-By8TqyNf.js.map +1 -0
- package/dist/chunks/logo.types-CA_5hGAi.js +2 -0
- package/dist/chunks/logo.types-CA_5hGAi.js.map +1 -0
- package/dist/chunks/menu.component-DCtztozy.js +2 -0
- package/dist/chunks/menu.component-DCtztozy.js.map +1 -0
- package/dist/chunks/menu.component-DaWlH0RE.js +678 -0
- package/dist/chunks/menu.component-DaWlH0RE.js.map +1 -0
- package/dist/chunks/modal.types-Cx0d9C_x.js +206 -0
- package/dist/chunks/modal.types-Cx0d9C_x.js.map +1 -0
- package/dist/chunks/modal.types-DBKm96OL.js +2 -0
- package/dist/chunks/modal.types-DBKm96OL.js.map +1 -0
- package/dist/chunks/{notificationCounter.component-DU5P6Ilh.js → notificationCounter.component-Bei8mHSZ.js} +10 -8
- package/dist/chunks/{notificationCounter.component-DU5P6Ilh.js.map → notificationCounter.component-Bei8mHSZ.js.map} +1 -1
- package/dist/chunks/notificationCounter.component-BhZcuBmr.js +2 -0
- package/dist/chunks/{notificationCounter.component-D6v39lna.js.map → notificationCounter.component-BhZcuBmr.js.map} +1 -1
- package/dist/chunks/notificationCounter.types-B_-siNfi.js +2 -0
- package/dist/chunks/notificationCounter.types-B_-siNfi.js.map +1 -0
- package/dist/chunks/notificationCounter.types-S7ENT1Oj.js +11 -0
- package/dist/chunks/notificationCounter.types-S7ENT1Oj.js.map +1 -0
- package/dist/chunks/omit-C-j4TrF5.js +10 -0
- package/dist/chunks/omit-C-j4TrF5.js.map +1 -0
- package/dist/chunks/omit-DqNeoZ8h.js +2 -0
- package/dist/chunks/omit-DqNeoZ8h.js.map +1 -0
- package/dist/chunks/picture.component-C2C2r_BU.js +2 -0
- package/dist/chunks/picture.component-C2C2r_BU.js.map +1 -0
- package/dist/chunks/picture.component-DKbaaL64.js +35 -0
- package/dist/chunks/picture.component-DKbaaL64.js.map +1 -0
- package/dist/chunks/pinInput.types-DG_lLcFk.js +2 -0
- package/dist/chunks/pinInput.types-DG_lLcFk.js.map +1 -0
- package/dist/chunks/pinInput.types-HUZl_UUD.js +161 -0
- package/dist/chunks/pinInput.types-HUZl_UUD.js.map +1 -0
- package/dist/chunks/popover-80QH8HEJ.js +2 -0
- package/dist/chunks/popover-80QH8HEJ.js.map +1 -0
- package/dist/chunks/popover-B9rNOU0g.js +110 -0
- package/dist/chunks/popover-B9rNOU0g.js.map +1 -0
- package/dist/chunks/popover-root-provider-CeLLpesI.js +43 -0
- package/dist/chunks/popover-root-provider-CeLLpesI.js.map +1 -0
- package/dist/chunks/popover-root-provider-DAMDDAHQ.js +2 -0
- package/dist/chunks/popover-root-provider-DAMDDAHQ.js.map +1 -0
- package/dist/chunks/popover.component-D27f6GTu.js +322 -0
- package/dist/chunks/popover.component-D27f6GTu.js.map +1 -0
- package/dist/chunks/popover.component-KGVUAj9L.js +2 -0
- package/dist/chunks/popover.component-KGVUAj9L.js.map +1 -0
- package/dist/chunks/popover.recipe--gMRcQTS.js +479 -0
- package/dist/chunks/popover.recipe--gMRcQTS.js.map +1 -0
- package/dist/chunks/popover.recipe-DLeyokHo.js +2 -0
- package/dist/chunks/popover.recipe-DLeyokHo.js.map +1 -0
- package/dist/chunks/provider-ClCAdPxy.js +47 -0
- package/dist/chunks/provider-ClCAdPxy.js.map +1 -0
- package/dist/chunks/provider-NDo8kOkE.js +2 -0
- package/dist/chunks/provider-NDo8kOkE.js.map +1 -0
- package/dist/chunks/radio.records-C-MuxSPZ.js +2 -0
- package/dist/chunks/radio.records-C-MuxSPZ.js.map +1 -0
- package/dist/chunks/radio.records-DzITb4sg.js +382 -0
- package/dist/chunks/radio.records-DzITb4sg.js.map +1 -0
- package/dist/chunks/radioGroup.component-PdVYD3bp.js +275 -0
- package/dist/chunks/radioGroup.component-PdVYD3bp.js.map +1 -0
- package/dist/chunks/radioGroup.component-wgmJPLDW.js +2 -0
- package/dist/chunks/radioGroup.component-wgmJPLDW.js.map +1 -0
- package/dist/chunks/ratingDots.component-CUPAiIW_.js +2 -0
- package/dist/chunks/{ratingDots.component-DOZX6EE0.js.map → ratingDots.component-CUPAiIW_.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-B4OK_lXC.js → ratingDots.component-ClZHNCmw.js} +31 -28
- package/dist/chunks/{ratingDots.component-B4OK_lXC.js.map → ratingDots.component-ClZHNCmw.js.map} +1 -1
- package/dist/chunks/render-strategy-BmWbSgqh.js +2 -0
- package/dist/chunks/render-strategy-BmWbSgqh.js.map +1 -0
- package/dist/chunks/render-strategy-C8hwN3bm.js +12 -0
- package/dist/chunks/render-strategy-C8hwN3bm.js.map +1 -0
- package/dist/chunks/select.component-CGqMFhui.js +2 -0
- package/dist/chunks/select.component-CGqMFhui.js.map +1 -0
- package/dist/chunks/select.component-DHP33P1O.js +391 -0
- package/dist/chunks/select.component-DHP33P1O.js.map +1 -0
- package/dist/chunks/{dnd-DDR6viHX.js → sortableList.component-1gWWNAQS.js} +1015 -887
- package/dist/chunks/sortableList.component-1gWWNAQS.js.map +1 -0
- package/dist/chunks/sortableList.component-BLYlOg_f.js +6 -0
- package/dist/chunks/sortableList.component-BLYlOg_f.js.map +1 -0
- package/dist/chunks/spinner-BWqSIW6m.js +8 -0
- package/dist/chunks/spinner-BWqSIW6m.js.map +1 -0
- package/dist/chunks/spinner-BnpL14kK.js +2 -0
- package/dist/chunks/spinner-BnpL14kK.js.map +1 -0
- package/dist/chunks/{spinner.component-D5tkelNc.js → spinner.component-BnWQ5OjN.js} +21 -19
- package/dist/chunks/spinner.component-BnWQ5OjN.js.map +1 -0
- package/dist/chunks/spinner.component-Ebdkd2br.js +2 -0
- package/dist/chunks/{spinner.component-CUuidnSK.js.map → spinner.component-Ebdkd2br.js.map} +1 -1
- package/dist/chunks/stack-BKu3hWEQ.js +2 -0
- package/dist/chunks/stack-BKu3hWEQ.js.map +1 -0
- package/dist/chunks/stack-Dnuh5Zgf.js +85 -0
- package/dist/chunks/stack-Dnuh5Zgf.js.map +1 -0
- package/dist/chunks/styledAvatar.types-B1WPMZAS.js +2 -0
- package/dist/chunks/styledAvatar.types-B1WPMZAS.js.map +1 -0
- package/dist/chunks/{styledAvatar.types-CoxQchLt.js → styledAvatar.types-C0KWX23C.js} +3 -3
- package/dist/chunks/styledAvatar.types-C0KWX23C.js.map +1 -0
- package/dist/chunks/swatch.types-DbgA3RWc.js +67 -0
- package/dist/chunks/swatch.types-DbgA3RWc.js.map +1 -0
- package/dist/chunks/swatch.types-DiX-4lpJ.js +2 -0
- package/dist/chunks/swatch.types-DiX-4lpJ.js.map +1 -0
- package/dist/chunks/switch.component-CbZlg5Iz.js +166 -0
- package/dist/chunks/switch.component-CbZlg5Iz.js.map +1 -0
- package/dist/chunks/switch.component-D5kgSKKx.js +2 -0
- package/dist/chunks/switch.component-D5kgSKKx.js.map +1 -0
- package/dist/chunks/tabs.component-Bi1vanBo.js +639 -0
- package/dist/chunks/tabs.component-Bi1vanBo.js.map +1 -0
- package/dist/chunks/tabs.component-SlXJb1rB.js +2 -0
- package/dist/chunks/tabs.component-SlXJb1rB.js.map +1 -0
- package/dist/chunks/tag.component-C6a6EzZB.js +2 -0
- package/dist/chunks/tag.component-C6a6EzZB.js.map +1 -0
- package/dist/chunks/tag.component-pexJ0TAT.js +82 -0
- package/dist/chunks/tag.component-pexJ0TAT.js.map +1 -0
- package/dist/chunks/{tagBlock.component-LX4_ve_f.js → tagBlock.component-C6cfZb0d.js} +18 -17
- package/dist/chunks/tagBlock.component-C6cfZb0d.js.map +1 -0
- package/dist/chunks/tagBlock.component-CLB4ggMT.js +2 -0
- package/dist/chunks/tagBlock.component-CLB4ggMT.js.map +1 -0
- package/dist/chunks/text.component-BZQWS29V.js +2 -0
- package/dist/chunks/text.component-BZQWS29V.js.map +1 -0
- package/dist/chunks/text.component-BZSCPJLf.js +12 -0
- package/dist/chunks/text.component-BZSCPJLf.js.map +1 -0
- package/dist/chunks/textInput.component-B0VClMq5.js +2 -0
- package/dist/chunks/textInput.component-B0VClMq5.js.map +1 -0
- package/dist/chunks/textInput.component-kSJAjj78.js +180 -0
- package/dist/chunks/textInput.component-kSJAjj78.js.map +1 -0
- package/dist/chunks/textarea.component-BubrZCI9.js +98 -0
- package/dist/chunks/textarea.component-BubrZCI9.js.map +1 -0
- package/dist/chunks/textarea.component-DZ89XNHw.js +2 -0
- package/dist/chunks/textarea.component-DZ89XNHw.js.map +1 -0
- package/dist/chunks/{chakra-BqBkjpvZ.js → theme.provider-BK05OKFS.js} +5186 -4303
- package/dist/chunks/theme.provider-BK05OKFS.js.map +1 -0
- package/dist/chunks/theme.provider-DNwKSEWO.js +48 -0
- package/dist/chunks/theme.provider-DNwKSEWO.js.map +1 -0
- package/dist/chunks/timePicker.component-DyoR0UBJ.js +2 -0
- package/dist/chunks/{timePicker.component-Dw_FjiQX.js.map → timePicker.component-DyoR0UBJ.js.map} +1 -1
- package/dist/chunks/{timePicker.component--ABdI3GF.js → timePicker.component-hHOzJUi7.js} +46 -43
- package/dist/chunks/{timePicker.component--ABdI3GF.js.map → timePicker.component-hHOzJUi7.js.map} +1 -1
- package/dist/chunks/timeRange.component-C2anTUsM.js +2 -0
- package/dist/chunks/{timeRange.component-RLisXhuw.js.map → timeRange.component-C2anTUsM.js.map} +1 -1
- package/dist/chunks/timeRange.component-PlO6xxkd.js +18 -0
- package/dist/chunks/{timeRange.component-B3OvVyo_.js.map → timeRange.component-PlO6xxkd.js.map} +1 -1
- package/dist/chunks/timestamp.component-C__DC7oq.js +54 -0
- package/dist/chunks/timestamp.component-C__DC7oq.js.map +1 -0
- package/dist/chunks/timestamp.component-T3aszXN_.js +2 -0
- package/dist/chunks/timestamp.component-T3aszXN_.js.map +1 -0
- package/dist/chunks/toaster.records-BGfpUOVt.js +824 -0
- package/dist/chunks/toaster.records-BGfpUOVt.js.map +1 -0
- package/dist/chunks/toaster.records-BJo0j1IZ.js +2 -0
- package/dist/chunks/toaster.records-BJo0j1IZ.js.map +1 -0
- package/dist/chunks/tooltip.component-G-RF87Zw.js +750 -0
- package/dist/chunks/tooltip.component-G-RF87Zw.js.map +1 -0
- package/dist/chunks/tooltip.component-Vo-2841s.js +2 -0
- package/dist/chunks/tooltip.component-Vo-2841s.js.map +1 -0
- package/dist/chunks/typography-Cqrokog3.js.map +1 -1
- package/dist/chunks/typography-CtiaGoJG.js.map +1 -1
- package/dist/chunks/typography.records-C6G_65b4.js +2 -0
- package/dist/chunks/typography.records-C6G_65b4.js.map +1 -0
- package/dist/chunks/typography.records-jnjWfTLS.js +66 -0
- package/dist/chunks/typography.records-jnjWfTLS.js.map +1 -0
- package/dist/chunks/use-breakpoint-MQ7agQJe.js +72 -0
- package/dist/chunks/use-breakpoint-MQ7agQJe.js.map +1 -0
- package/dist/chunks/use-breakpoint-uBg4-8yY.js +2 -0
- package/dist/chunks/use-breakpoint-uBg4-8yY.js.map +1 -0
- package/dist/chunks/use-field-context--wBJQY1R.js +2 -0
- package/dist/chunks/use-field-context--wBJQY1R.js.map +1 -0
- package/dist/chunks/use-field-context-B_G7Yziz.js +12 -0
- package/dist/chunks/use-field-context-B_G7Yziz.js.map +1 -0
- package/dist/chunks/use-locale-context-BdqHZ8L8.js +22 -0
- package/dist/chunks/use-locale-context-BdqHZ8L8.js.map +1 -0
- package/dist/chunks/use-locale-context-D-agiW5E.js +2301 -0
- package/dist/chunks/use-locale-context-D-agiW5E.js.map +1 -0
- package/dist/chunks/use-recipe-DaPWl_pL.js +2 -0
- package/dist/chunks/use-recipe-DaPWl_pL.js.map +1 -0
- package/dist/chunks/use-recipe-d63ABaZ3.js +13 -0
- package/dist/chunks/use-recipe-d63ABaZ3.js.map +1 -0
- package/dist/chunks/use-slot-recipe-8liupslO.js +2 -0
- package/dist/chunks/use-slot-recipe-8liupslO.js.map +1 -0
- package/dist/chunks/use-slot-recipe-DhtQ1j_5.js +13 -0
- package/dist/chunks/use-slot-recipe-DhtQ1j_5.js.map +1 -0
- package/dist/chunks/v-stack-BZT7R_9f.js +12 -0
- package/dist/chunks/v-stack-BZT7R_9f.js.map +1 -0
- package/dist/chunks/v-stack-DxjgpeJ0.js +2 -0
- package/dist/chunks/v-stack-DxjgpeJ0.js.map +1 -0
- package/dist/chunks/walk-object-BrTExCqQ.js +2 -0
- package/dist/chunks/walk-object-BrTExCqQ.js.map +1 -0
- package/dist/chunks/walk-object-_CL3Bkm9.js +28 -0
- package/dist/chunks/walk-object-_CL3Bkm9.js.map +1 -0
- package/dist/chunks/withFormControl-5ywq6Y2v.js +376 -0
- package/dist/chunks/withFormControl-5ywq6Y2v.js.map +1 -0
- package/dist/chunks/withFormControl-_nV7mlmV.js +2 -0
- package/dist/chunks/withFormControl-_nV7mlmV.js.map +1 -0
- package/dist/chunks/{withTruncation-C2xFKhgB.js → withTruncation-D4DrwvZ2.js} +21 -28
- package/dist/chunks/{withTruncation-BskZBBVs.js.map → withTruncation-D4DrwvZ2.js.map} +1 -1
- package/dist/chunks/withTruncation-DH07KRFn.js +2 -0
- package/dist/chunks/{withTruncation-C2xFKhgB.js.map → withTruncation-DH07KRFn.js.map} +1 -1
- package/dist/chunks/wrap-B8tBNeBY.js +45 -0
- package/dist/chunks/wrap-B8tBNeBY.js.map +1 -0
- package/dist/chunks/wrap-CNn1kyJX.js +2 -0
- package/dist/chunks/wrap-CNn1kyJX.js.map +1 -0
- package/dist/cjs/chakra/index.cjs +2 -0
- package/dist/cjs/chakra/index.cjs.map +1 -0
- package/dist/cjs/cli/generate-theme-types.cjs +6 -0
- package/dist/cjs/cli/generate-theme-types.cjs.map +1 -0
- package/dist/cjs/cli/postinstall.cjs +3 -0
- package/dist/cjs/cli/postinstall.cjs.map +1 -0
- package/dist/cjs/components/Alert/index.cjs +1 -1
- package/dist/cjs/components/Avatar/index.cjs +1 -1
- package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
- package/dist/cjs/components/Button/index.cjs +1 -1
- package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
- package/dist/cjs/components/Card/index.cjs +1 -1
- package/dist/cjs/components/Card/index.cjs.map +1 -1
- package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
- package/dist/cjs/components/Checkbox/index.cjs +1 -1
- package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
- package/dist/cjs/{patterns → components}/ConversationCard/index.cjs +1 -1
- package/dist/cjs/components/DatePicker/index.cjs +1 -1
- package/dist/cjs/components/Divider/index.cjs +2 -0
- package/dist/cjs/components/Heading/index.cjs +1 -1
- package/dist/cjs/components/Icon/generated/index.cjs +1 -1
- package/dist/cjs/components/Icon/generated/index.cjs.map +1 -1
- package/dist/cjs/components/Icon/index.cjs +1 -1
- package/dist/cjs/components/Link/index.cjs +1 -1
- package/dist/cjs/components/Logo/generated/index.cjs +2 -0
- package/dist/cjs/components/Logo/index.cjs +2 -0
- package/dist/cjs/components/Menu/index.cjs +1 -1
- package/dist/cjs/components/Modal/index.cjs +1 -1
- package/dist/cjs/components/NotificationCounter/index.cjs +1 -1
- package/dist/cjs/components/NotificationCounter/index.cjs.map +1 -1
- package/dist/cjs/components/Picture/index.cjs +1 -1
- package/dist/cjs/components/Picture/index.cjs.map +1 -1
- package/dist/cjs/components/PinInput/index.cjs +2 -0
- package/dist/cjs/components/Popover/index.cjs +1 -1
- package/dist/cjs/components/RadioGroup/index.cjs +1 -1
- package/dist/cjs/components/RatingDots/index.cjs +1 -1
- package/dist/cjs/components/Select/index.cjs +1 -1
- package/dist/cjs/components/SortableList/index.cjs +1 -1
- package/dist/cjs/components/Spinner/index.cjs +1 -1
- package/dist/cjs/{patterns → components}/StyledAvatar/index.cjs +1 -1
- package/dist/cjs/components/StyledAvatar/index.cjs.map +1 -0
- package/dist/cjs/components/Swatch/index.cjs +1 -1
- package/dist/cjs/components/Swatch/index.cjs.map +1 -1
- package/dist/cjs/components/Switch/index.cjs +1 -1
- package/dist/cjs/components/Tabs/index.cjs +1 -1
- package/dist/cjs/components/Tag/index.cjs +1 -1
- package/dist/cjs/{patterns → components}/TagBlock/index.cjs +1 -1
- package/dist/cjs/components/TagBlock/index.cjs.map +1 -0
- package/dist/cjs/components/Text/index.cjs +1 -1
- package/dist/cjs/components/TextInput/index.cjs +1 -1
- package/dist/cjs/components/Textarea/index.cjs +1 -1
- package/dist/cjs/components/TimePicker/index.cjs +1 -1
- package/dist/cjs/components/TimeRange/index.cjs +1 -1
- package/dist/cjs/{patterns → components}/Timestamp/index.cjs +1 -1
- package/dist/cjs/components/Timestamp/index.cjs.map +1 -0
- package/dist/cjs/components/Toast/index.cjs +2 -0
- package/dist/cjs/components/Toast/index.cjs.map +1 -0
- package/dist/cjs/components/Tooltip/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/hocs/index.cjs +1 -1
- package/dist/cjs/hocs/index.cjs.map +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/index.cjs.map +1 -1
- package/dist/cjs/hooks/useBreakpoint/index.cjs +2 -0
- package/dist/cjs/hooks/useBreakpoint/index.cjs.map +1 -0
- package/dist/cjs/hooks/useDeviceType/index.cjs +2 -0
- package/dist/cjs/hooks/useDeviceType/index.cjs.map +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/shared/index.cjs +2 -0
- package/dist/cjs/shared/index.cjs.map +1 -0
- package/dist/cjs/shared/records/index.cjs +2 -0
- package/dist/cjs/shared/records/index.cjs.map +1 -0
- package/dist/cjs/theme/index.cjs +1 -23
- package/dist/cjs/theme/index.cjs.map +1 -1
- package/dist/cjs/theme/tokens/blurs/index.cjs +1 -1
- package/dist/cjs/theme/tokens/blurs/index.cjs.map +1 -1
- package/dist/cjs/theme/tokens/borders/index.cjs +1 -1
- package/dist/cjs/theme/tokens/borders/index.cjs.map +1 -1
- package/dist/cjs/theme/tokens/index.cjs +1 -1
- package/dist/cjs/theme/tokens/shadows/index.cjs +1 -1
- package/dist/cjs/theme/tokens/shadows/index.cjs.map +1 -1
- package/dist/cjs/theme/tokens/sizes/index.cjs +1 -1
- package/dist/cjs/theme/tokens/sizes/index.cjs.map +1 -1
- package/dist/cjs/theme/tokens/spacing/index.cjs +1 -1
- package/dist/cjs/theme/tokens/spacing/index.cjs.map +1 -1
- package/dist/cjs/theme/tokens/transitions/index.cjs +1 -1
- package/dist/cjs/theme/tokens/transitions/index.cjs.map +1 -1
- package/dist/cjs/theme/tokens/typography/index.cjs +1 -1
- package/dist/cjs/theme/tokens/typography/index.cjs.map +1 -1
- package/dist/cjs/theme/tokens/zIndices/index.cjs +1 -1
- package/dist/cjs/theme/tokens/zIndices/index.cjs.map +1 -1
- package/dist/esm/chakra/index.js +3227 -0
- package/dist/esm/chakra/index.js.map +1 -0
- package/dist/esm/cli/generate-theme-types.js +22 -0
- package/dist/esm/cli/generate-theme-types.js.map +1 -0
- package/dist/esm/cli/postinstall.js +21 -0
- package/dist/esm/cli/postinstall.js.map +1 -0
- package/dist/esm/components/Alert/index.js +3 -5
- package/dist/esm/components/Avatar/index.js +1 -1
- package/dist/esm/components/AvatarGroup/index.js +1 -1
- package/dist/esm/components/Button/index.js +1 -1
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/Card/index.js +4 -5
- package/dist/esm/components/Card/index.js.map +1 -1
- package/dist/esm/components/CharacterCounter/index.js +1 -1
- package/dist/esm/components/Checkbox/index.js +1 -1
- package/dist/esm/components/CheckboxGroup/index.js +1 -1
- package/dist/esm/{patterns → components}/ConversationCard/index.js +1 -1
- package/dist/esm/components/DatePicker/index.js +3 -4
- package/dist/esm/components/Divider/index.js +8 -0
- package/dist/esm/components/Heading/index.js +2 -4
- package/dist/esm/components/Heading/index.js.map +1 -1
- package/dist/esm/components/Icon/generated/index.js +373 -338
- package/dist/esm/components/Icon/generated/index.js.map +1 -1
- package/dist/esm/components/Icon/index.js +4 -6
- package/dist/esm/components/Link/index.js +1 -1
- package/dist/esm/components/Logo/generated/index.js +6 -0
- package/dist/esm/components/Logo/index.js +7 -0
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/NotificationCounter/index.js +5 -11
- package/dist/esm/components/NotificationCounter/index.js.map +1 -1
- package/dist/esm/components/Picture/index.js +1 -16
- package/dist/esm/components/Picture/index.js.map +1 -1
- package/dist/esm/components/PinInput/index.js +6 -0
- package/dist/esm/components/PinInput/index.js.map +1 -0
- package/dist/esm/components/Popover/index.js +1 -1
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/RatingDots/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/SortableList/index.js +1 -1
- package/dist/esm/components/Spinner/index.js +1 -1
- package/dist/esm/{patterns → components}/StyledAvatar/index.js +1 -1
- package/dist/esm/components/StyledAvatar/index.js.map +1 -0
- package/dist/esm/components/Swatch/index.js +3 -62
- package/dist/esm/components/Swatch/index.js.map +1 -1
- package/dist/esm/components/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/index.js +1 -1
- package/dist/esm/components/Tag/index.js +5 -6
- package/dist/esm/{patterns → components}/TagBlock/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js.map +1 -0
- package/dist/esm/components/Text/index.js +2 -4
- package/dist/esm/components/Text/index.js.map +1 -1
- package/dist/esm/components/TextInput/index.js +2 -3
- package/dist/esm/components/Textarea/index.js +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/Timestamp/index.js +5 -0
- package/dist/esm/components/Timestamp/index.js.map +1 -0
- package/dist/esm/components/Toast/index.js +59 -0
- package/dist/esm/components/Toast/index.js.map +1 -0
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +122 -111
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/hocs/index.js +3 -35
- package/dist/esm/hocs/index.js.map +1 -1
- package/dist/esm/hooks/index.js +7 -17
- package/dist/esm/hooks/index.js.map +1 -1
- package/dist/esm/hooks/useBreakpoint/index.js +12 -0
- package/dist/esm/hooks/useBreakpoint/index.js.map +1 -0
- package/dist/esm/hooks/useDeviceType/index.js +12 -0
- package/dist/esm/hooks/useDeviceType/index.js.map +1 -0
- package/dist/esm/index.js +141 -115
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/shared/index.js +9 -0
- package/dist/esm/shared/index.js.map +1 -0
- package/dist/esm/shared/records/index.js +18 -0
- package/dist/esm/shared/records/index.js.map +1 -0
- package/dist/esm/theme/index.js +4 -2477
- package/dist/esm/theme/index.js.map +1 -1
- package/dist/esm/theme/tokens/blurs/index.js +1 -13
- package/dist/esm/theme/tokens/blurs/index.js.map +1 -1
- package/dist/esm/theme/tokens/borders/index.js +1 -22
- package/dist/esm/theme/tokens/borders/index.js.map +1 -1
- package/dist/esm/theme/tokens/index.js +2 -26
- package/dist/esm/theme/tokens/index.js.map +1 -1
- package/dist/esm/theme/tokens/shadows/index.js +1 -55
- package/dist/esm/theme/tokens/shadows/index.js.map +1 -1
- package/dist/esm/theme/tokens/sizes/index.js +1 -28
- package/dist/esm/theme/tokens/sizes/index.js.map +1 -1
- package/dist/esm/theme/tokens/spacing/index.js +1 -38
- package/dist/esm/theme/tokens/spacing/index.js.map +1 -1
- package/dist/esm/theme/tokens/transitions/index.js +1 -17
- package/dist/esm/theme/tokens/transitions/index.js.map +1 -1
- package/dist/esm/theme/tokens/typography/index.js +1 -53
- package/dist/esm/theme/tokens/typography/index.js.map +1 -1
- package/dist/esm/theme/tokens/zIndices/index.js +1 -19
- package/dist/esm/theme/tokens/zIndices/index.js.map +1 -1
- package/dist/types/chakra/index.d.ts +52 -0
- package/dist/types/cli/generate-theme-types.d.ts +2 -0
- package/dist/types/cli/postinstall.d.ts +2 -0
- package/dist/types/components/Alert/alert.component.d.ts +5 -13
- package/dist/types/components/Alert/alert.recipe.d.ts +1 -1
- package/dist/types/components/Alert/index.d.ts +0 -1
- package/dist/types/components/Avatar/avatar.recipe.d.ts +1 -1
- package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.component.d.ts +1 -1
- package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.recipe.d.ts +2 -2
- package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.types.d.ts +1 -1
- package/dist/types/components/Button/button.component.d.ts +2 -3
- package/dist/types/components/Button/button.recipe.d.ts +2 -2
- package/dist/types/components/Card/card.component.d.ts +1 -1
- package/dist/types/components/Card/index.d.ts +0 -1
- package/dist/types/{patterns → components}/ConversationCard/components/ConversationCardButtons/conversationCardButtons.component.d.ts +1 -1
- package/dist/types/{patterns → components}/ConversationCard/components/ConversationCardContent/conversationCardContent.component.d.ts +1 -1
- package/dist/types/{patterns → components}/ConversationCard/components/ConversationCardFooter/conversationCardFooter.component.d.ts +2 -2
- package/dist/types/{patterns → components}/ConversationCard/components/ConversationCardTags/conversationCardTags.component.d.ts +1 -1
- package/dist/types/{patterns → components}/ConversationCard/conversationCard.component.d.ts +1 -1
- package/dist/types/components/DatePicker/index.d.ts +0 -1
- package/dist/types/components/Divider/divider.component.d.ts +4 -0
- package/dist/types/components/Divider/divider.types.d.ts +6 -0
- package/dist/types/components/Divider/index.d.ts +2 -0
- package/dist/types/components/Heading/heading.component.d.ts +1 -2
- package/dist/types/components/Heading/heading.recipe.d.ts +1 -1
- package/dist/types/components/Heading/heading.types.d.ts +1 -1
- package/dist/types/components/Heading/index.d.ts +0 -1
- package/dist/types/components/Icon/generated/AiMicrophone.d.ts +10 -0
- package/dist/types/components/Icon/generated/index.d.ts +1 -1
- package/dist/types/components/Icon/icon.component.d.ts +2 -3
- package/dist/types/components/Icon/index.d.ts +0 -1
- package/dist/types/components/Link/link.recipe.d.ts +1 -1
- package/dist/types/components/Logo/generated/FullLogo.d.ts +10 -0
- package/dist/types/components/Logo/generated/IconLogo.d.ts +10 -0
- package/dist/types/components/Logo/generated/index.d.ts +4 -0
- package/dist/types/components/Logo/index.d.ts +2 -0
- package/dist/types/components/Logo/logo.component.d.ts +10 -0
- package/dist/types/components/Logo/logo.recipe.d.ts +9 -0
- package/dist/types/components/Logo/logo.types.d.ts +4 -0
- package/dist/types/components/Menu/components/MenuItem/menuItem.component.d.ts +3 -2
- package/dist/types/components/Menu/menu.component.d.ts +1 -1
- package/dist/types/components/Modal/context/modal.context.d.ts +6 -0
- package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
- package/dist/types/components/NotificationCounter/index.d.ts +0 -1
- package/dist/types/components/NotificationCounter/notificationCounter.recipe.d.ts +2 -2
- package/dist/types/components/PinInput/index.d.ts +2 -0
- package/dist/types/components/PinInput/pinInput.component.d.ts +10 -0
- package/dist/types/components/PinInput/pinInput.recipe.d.ts +21 -0
- package/dist/types/components/PinInput/pinInput.records.d.ts +1 -0
- package/dist/types/components/PinInput/pinInput.types.d.ts +2 -0
- package/dist/types/components/Popover/popover.recipe.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +1 -0
- package/dist/types/components/Select/select.component.d.ts +3 -0
- package/dist/types/components/SortableList/index.d.ts +1 -0
- package/dist/types/components/Spinner/spinner.component.d.ts +1 -1
- package/dist/types/components/Spinner/spinner.recipe.d.ts +2 -2
- package/dist/types/{patterns → components}/StyledAvatar/styledAvatar.component.d.ts +1 -1
- package/dist/types/components/Swatch/swatch.recipe.d.ts +1 -1
- package/dist/types/components/Tabs/tabs.recipe.d.ts +1 -1
- package/dist/types/components/Tag/index.d.ts +0 -1
- package/dist/types/components/Tag/tag.recipe.d.ts +1 -1
- package/dist/types/{patterns → components}/TagBlock/tagBlock.component.d.ts +1 -1
- package/dist/types/components/Text/index.d.ts +0 -1
- package/dist/types/components/Text/text.component.d.ts +1 -2
- package/dist/types/components/Text/text.recipe.d.ts +1 -2
- package/dist/types/components/Text/text.types.d.ts +1 -1
- package/dist/types/components/TextInput/index.d.ts +0 -1
- package/dist/types/{patterns → components}/Timestamp/timestamp.component.d.ts +1 -1
- package/dist/types/components/Toast/components/ToastAction/toastAction.component.d.ts +12 -0
- package/dist/types/components/Toast/components/Toaster/toaster.component.d.ts +7 -0
- package/dist/types/components/Toast/components/Toaster/toaster.records.d.ts +11 -0
- package/dist/types/components/Toast/components/Toaster/toaster.types.d.ts +12 -0
- package/dist/types/components/Toast/index.d.ts +2 -0
- package/dist/types/components/Toast/toast.component.d.ts +14 -0
- package/dist/types/components/Toast/toast.recipe.d.ts +21 -0
- package/dist/types/components/Toast/toast.types.d.ts +19 -0
- package/dist/types/components/Toast/useToast.d.ts +3 -0
- package/dist/types/components/Tooltip/tooltip.recipe.d.ts +1 -0
- package/dist/types/components/index.d.ts +9 -1
- package/dist/types/hocs/withFormControl/withFormControl.d.ts +2 -1
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/useBreakpoint/index.d.ts +1 -0
- package/dist/types/hooks/useDeviceType/index.d.ts +3 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/shared/index.d.ts +1 -0
- package/dist/types/shared/records/index.d.ts +1 -0
- package/dist/types/shared/records/status.d.ts +5 -0
- package/dist/types/shared/records/typography.d.ts +1 -1
- package/dist/types/theme/index.d.ts +2 -1
- package/dist/types/theme/providers/theme.provider.d.ts +3 -1
- package/dist/types/theme/semanticTokens/semanticTokens.config.d.ts +4 -0
- package/dist/types/theme/semanticTokens/semanticTokens.records.d.ts +8 -0
- package/dist/types/theme/theme.config.d.ts +2 -0
- package/dist/types/theme/tokens/blurs/blurs.config.d.ts +6 -6
- package/dist/types/theme/tokens/blurs/index.d.ts +0 -1
- package/dist/types/theme/tokens/borders/borders.config.d.ts +9 -9
- package/dist/types/theme/tokens/borders/index.d.ts +0 -1
- package/dist/types/theme/tokens/shadows/index.d.ts +0 -1
- package/dist/types/theme/tokens/shadows/shadows.config.d.ts +11 -11
- package/dist/types/theme/tokens/sizes/index.d.ts +0 -1
- package/dist/types/theme/tokens/sizes/sizes.config.d.ts +24 -10
- package/dist/types/theme/tokens/spacing/index.d.ts +0 -1
- package/dist/types/theme/tokens/spacing/spacing.config.d.ts +21 -21
- package/dist/types/theme/tokens/transitions/index.d.ts +0 -1
- package/dist/types/theme/tokens/transitions/transitions.config.d.ts +6 -6
- package/dist/types/theme/tokens/typography/index.d.ts +0 -1
- package/dist/types/theme/tokens/typography/typography.config.d.ts +29 -74
- package/dist/types/theme/tokens/zIndices/index.d.ts +0 -1
- package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +11 -11
- package/package.json +73 -43
- package/dist/chunks/alert.types-BgmtNKXK.js +0 -2
- package/dist/chunks/alert.types-BgmtNKXK.js.map +0 -1
- package/dist/chunks/alert.types-Bxdx-xbS.js +0 -172
- package/dist/chunks/alert.types-Bxdx-xbS.js.map +0 -1
- package/dist/chunks/avatar.component-BdxN6QYq.js +0 -307
- package/dist/chunks/avatar.component-BdxN6QYq.js.map +0 -1
- package/dist/chunks/avatar.component-BzPaBLJu.js +0 -2
- package/dist/chunks/avatar.component-BzPaBLJu.js.map +0 -1
- package/dist/chunks/avatarGroup.component-Q43nemix.js +0 -2
- package/dist/chunks/button.component-B0GkYzVz.js +0 -2
- package/dist/chunks/button.component-B0GkYzVz.js.map +0 -1
- package/dist/chunks/button.component-BtkAjIWe.js.map +0 -1
- package/dist/chunks/buttonGroup.component-B2VRV-q9.js +0 -2
- package/dist/chunks/buttonGroup.component-B2VRV-q9.js.map +0 -1
- package/dist/chunks/buttonGroup.component-ZElXi_Hz.js +0 -67
- package/dist/chunks/buttonGroup.component-ZElXi_Hz.js.map +0 -1
- package/dist/chunks/card.component-HX-4Y0j7.js +0 -51
- package/dist/chunks/card.component-HX-4Y0j7.js.map +0 -1
- package/dist/chunks/card.component-ZIoJIWVV.js +0 -2
- package/dist/chunks/card.component-ZIoJIWVV.js.map +0 -1
- package/dist/chunks/chakra-BqBkjpvZ.js.map +0 -1
- package/dist/chunks/chakra-DmF8Cxqs.js +0 -5
- package/dist/chunks/chakra-DmF8Cxqs.js.map +0 -1
- package/dist/chunks/characterCounter.component-BXxyn_IB.js +0 -2
- package/dist/chunks/checkbox.component-DCdt-YxF.js +0 -90
- package/dist/chunks/checkbox.component-DCdt-YxF.js.map +0 -1
- package/dist/chunks/checkbox.component-jiWqSWP0.js +0 -2
- package/dist/chunks/checkbox.component-jiWqSWP0.js.map +0 -1
- package/dist/chunks/checkbox.records-DJfdKuOe.js +0 -2
- package/dist/chunks/checkbox.records-DJfdKuOe.js.map +0 -1
- package/dist/chunks/checkbox.records-JWbKQ684.js +0 -14
- package/dist/chunks/checkbox.records-JWbKQ684.js.map +0 -1
- package/dist/chunks/checkboxGroup.component-BYKUQW4y.js +0 -2
- package/dist/chunks/checkboxGroup.component-DcIdfbbl.js +0 -51
- package/dist/chunks/conversationCard.component-BSfDNuuw.js.map +0 -1
- package/dist/chunks/conversationCard.component-BcHNpQ76.js +0 -2
- package/dist/chunks/conversationCard.component-BcHNpQ76.js.map +0 -1
- package/dist/chunks/date-1NFv48Qu.js +0 -3598
- package/dist/chunks/date-1NFv48Qu.js.map +0 -1
- package/dist/chunks/date-Du64Exix.js +0 -15
- package/dist/chunks/date-Du64Exix.js.map +0 -1
- package/dist/chunks/datePicker.component-CnRDt24V.js +0 -2
- package/dist/chunks/datePicker.component-CnRDt24V.js.map +0 -1
- package/dist/chunks/datePicker.component-DubnEnlU.js +0 -750
- package/dist/chunks/datePicker.component-DubnEnlU.js.map +0 -1
- package/dist/chunks/dnd-4IMP_kRN.js +0 -6
- package/dist/chunks/dnd-4IMP_kRN.js.map +0 -1
- package/dist/chunks/dnd-DDR6viHX.js.map +0 -1
- package/dist/chunks/heading.component-B8niLTxz.js +0 -10
- package/dist/chunks/heading.component-B8niLTxz.js.map +0 -1
- package/dist/chunks/heading.component-CExbjSBi.js +0 -2
- package/dist/chunks/heading.component-CExbjSBi.js.map +0 -1
- package/dist/chunks/heading.records-BaWnrbgl.js +0 -14
- package/dist/chunks/heading.records-BaWnrbgl.js.map +0 -1
- package/dist/chunks/heading.records-CbR05iL_.js +0 -2
- package/dist/chunks/heading.records-CbR05iL_.js.map +0 -1
- package/dist/chunks/icon.component-DjNY589M.js.map +0 -1
- package/dist/chunks/icon.component-DtX9HDyk.js +0 -2
- package/dist/chunks/icon.component-DtX9HDyk.js.map +0 -1
- package/dist/chunks/link.component-DjkiASIu.js +0 -58
- package/dist/chunks/link.component-DjkiASIu.js.map +0 -1
- package/dist/chunks/link.component-XWINESZ0.js +0 -2
- package/dist/chunks/link.component-XWINESZ0.js.map +0 -1
- package/dist/chunks/menu.component-CT28-CuT.js +0 -2
- package/dist/chunks/menu.component-CT28-CuT.js.map +0 -1
- package/dist/chunks/menu.component-gxhQh-pU.js +0 -390
- package/dist/chunks/menu.component-gxhQh-pU.js.map +0 -1
- package/dist/chunks/modal.types-CcUqszK6.js +0 -2
- package/dist/chunks/modal.types-CcUqszK6.js.map +0 -1
- package/dist/chunks/modal.types-pXkUwszR.js +0 -146
- package/dist/chunks/modal.types-pXkUwszR.js.map +0 -1
- package/dist/chunks/notificationCounter.component-D6v39lna.js +0 -2
- package/dist/chunks/popover.component-CnJmg9qf.js +0 -221
- package/dist/chunks/popover.component-CnJmg9qf.js.map +0 -1
- package/dist/chunks/popover.component-DdC0CY7-.js +0 -2
- package/dist/chunks/popover.component-DdC0CY7-.js.map +0 -1
- package/dist/chunks/popover.recipe-DnCuZJd3.js +0 -123
- package/dist/chunks/popover.recipe-DnCuZJd3.js.map +0 -1
- package/dist/chunks/popover.recipe-Pfz3evii.js +0 -2
- package/dist/chunks/popover.recipe-Pfz3evii.js.map +0 -1
- package/dist/chunks/radio.records-BxCn4oUd.js +0 -2
- package/dist/chunks/radio.records-BxCn4oUd.js.map +0 -1
- package/dist/chunks/radio.records-Cc3kP4Vn.js +0 -14
- package/dist/chunks/radio.records-Cc3kP4Vn.js.map +0 -1
- package/dist/chunks/radioGroup.component-Cmi6MDqq.js +0 -2
- package/dist/chunks/radioGroup.component-Cmi6MDqq.js.map +0 -1
- package/dist/chunks/radioGroup.component-D96ItNYx.js +0 -151
- package/dist/chunks/radioGroup.component-D96ItNYx.js.map +0 -1
- package/dist/chunks/ratingDots.component-DOZX6EE0.js +0 -2
- package/dist/chunks/select.component-CqhmG4oz.js +0 -2
- package/dist/chunks/select.component-CqhmG4oz.js.map +0 -1
- package/dist/chunks/select.component-_JVxRL_-.js +0 -129
- package/dist/chunks/select.component-_JVxRL_-.js.map +0 -1
- package/dist/chunks/sortableList.component-BH9-C_Pe.js +0 -2
- package/dist/chunks/sortableList.component-BH9-C_Pe.js.map +0 -1
- package/dist/chunks/sortableList.component-CdDArkRq.js +0 -145
- package/dist/chunks/sortableList.component-CdDArkRq.js.map +0 -1
- package/dist/chunks/spinner.component-CUuidnSK.js +0 -2
- package/dist/chunks/spinner.component-D5tkelNc.js.map +0 -1
- package/dist/chunks/styledAvatar.types-CMdLnJHx.js +0 -2
- package/dist/chunks/styledAvatar.types-CMdLnJHx.js.map +0 -1
- package/dist/chunks/styledAvatar.types-CoxQchLt.js.map +0 -1
- package/dist/chunks/switch.component-6jkW8-JB.js +0 -2
- package/dist/chunks/switch.component-6jkW8-JB.js.map +0 -1
- package/dist/chunks/switch.component-BopLXT0i.js +0 -53
- package/dist/chunks/switch.component-BopLXT0i.js.map +0 -1
- package/dist/chunks/tabs.component-BJv145kf.js +0 -2
- package/dist/chunks/tabs.component-BJv145kf.js.map +0 -1
- package/dist/chunks/tabs.component-DTvdLvkX.js +0 -87
- package/dist/chunks/tabs.component-DTvdLvkX.js.map +0 -1
- package/dist/chunks/tag.component-DK64cZSr.js +0 -67
- package/dist/chunks/tag.component-DK64cZSr.js.map +0 -1
- package/dist/chunks/tag.component-D_hbxu6m.js +0 -2
- package/dist/chunks/tag.component-D_hbxu6m.js.map +0 -1
- package/dist/chunks/tagBlock.component-LX4_ve_f.js.map +0 -1
- package/dist/chunks/tagBlock.component-a2gERgrx.js +0 -2
- package/dist/chunks/tagBlock.component-a2gERgrx.js.map +0 -1
- package/dist/chunks/text.component-CBa_saMP.js +0 -2
- package/dist/chunks/text.component-CBa_saMP.js.map +0 -1
- package/dist/chunks/text.component-XYjOAc2s.js +0 -10
- package/dist/chunks/text.component-XYjOAc2s.js.map +0 -1
- package/dist/chunks/text.records-BK_JBYsT.js +0 -16
- package/dist/chunks/text.records-BK_JBYsT.js.map +0 -1
- package/dist/chunks/text.records-CIL3bbY0.js +0 -2
- package/dist/chunks/text.records-CIL3bbY0.js.map +0 -1
- package/dist/chunks/textInput.component-Bk7D4sbG.js +0 -99
- package/dist/chunks/textInput.component-Bk7D4sbG.js.map +0 -1
- package/dist/chunks/textInput.component-GSpfSqUc.js +0 -2
- package/dist/chunks/textInput.component-GSpfSqUc.js.map +0 -1
- package/dist/chunks/textarea.component-B8U8KcND.js +0 -2
- package/dist/chunks/textarea.component-B8U8KcND.js.map +0 -1
- package/dist/chunks/textarea.component-CT8iVuNX.js +0 -51
- package/dist/chunks/textarea.component-CT8iVuNX.js.map +0 -1
- package/dist/chunks/timePicker.component-Dw_FjiQX.js +0 -2
- package/dist/chunks/timeRange.component-B3OvVyo_.js +0 -17
- package/dist/chunks/timeRange.component-RLisXhuw.js +0 -2
- package/dist/chunks/timestamp.component-CuqY4euh.js +0 -2
- package/dist/chunks/timestamp.component-CuqY4euh.js.map +0 -1
- package/dist/chunks/timestamp.component-D764INLm.js +0 -37
- package/dist/chunks/timestamp.component-D764INLm.js.map +0 -1
- package/dist/chunks/tooltip.component-C3v2m2T2.js +0 -70
- package/dist/chunks/tooltip.component-C3v2m2T2.js.map +0 -1
- package/dist/chunks/tooltip.component-qWFa28S5.js +0 -2
- package/dist/chunks/tooltip.component-qWFa28S5.js.map +0 -1
- package/dist/chunks/vendor-BBfll6i3.js +0 -11757
- package/dist/chunks/vendor-BBfll6i3.js.map +0 -1
- package/dist/chunks/vendor-D-x6W6ez.js +0 -57
- package/dist/chunks/vendor-D-x6W6ez.js.map +0 -1
- package/dist/chunks/withFormControl-B269FujS.js +0 -149
- package/dist/chunks/withFormControl-B269FujS.js.map +0 -1
- package/dist/chunks/withFormControl-Cy6Bwv0i.js +0 -2
- package/dist/chunks/withFormControl-Cy6Bwv0i.js.map +0 -1
- package/dist/chunks/withTruncation-BskZBBVs.js +0 -2
- package/dist/cjs/patterns/index.cjs +0 -2
- package/dist/esm/patterns/Timestamp/index.js +0 -5
- package/dist/esm/patterns/index.js +0 -13
- package/dist/esm/patterns/index.js.map +0 -1
- package/dist/types/components/Alert/alert.records.d.ts +0 -5
- package/dist/types/components/Alert/docs/alert.argTypes.d.ts +0 -5
- package/dist/types/components/Alert.d.ts +0 -2
- package/dist/types/components/Avatar/components/AvatarBadge/docs/avatarBadge.argTypes.d.ts +0 -3
- package/dist/types/components/Avatar/docs/avatar.argTypes.d.ts +0 -3
- package/dist/types/components/Avatar.d.ts +0 -2
- package/dist/types/components/AvatarGroup/docs/avatarGroup.argTypes.d.ts +0 -3
- package/dist/types/components/AvatarGroup.d.ts +0 -2
- package/dist/types/components/Button/docs/button.argTypes.d.ts +0 -3
- package/dist/types/components/Button.d.ts +0 -2
- package/dist/types/components/ButtonGroup/docs/buttonGroup.argTypes.d.ts +0 -3
- package/dist/types/components/ButtonGroup.d.ts +0 -2
- package/dist/types/components/Card/docs/card.argTypes.d.ts +0 -3
- package/dist/types/components/Card.d.ts +0 -2
- package/dist/types/components/CharacterCounter/docs/characterCounter.argTypes.d.ts +0 -3
- package/dist/types/components/CharacterCounter.d.ts +0 -2
- package/dist/types/components/Checkbox/docs/checkbox.argTypes.d.ts +0 -3
- package/dist/types/components/Checkbox.d.ts +0 -2
- package/dist/types/components/CheckboxGroup/docs/checkboxGroup.argTypes.d.ts +0 -3
- package/dist/types/components/CheckboxGroup.d.ts +0 -2
- package/dist/types/components/DatePicker/docs/datePicker.argTypes.d.ts +0 -3
- package/dist/types/components/DatePicker.d.ts +0 -2
- package/dist/types/components/Heading/docs/heading.argTypes.d.ts +0 -3
- package/dist/types/components/Heading.d.ts +0 -2
- package/dist/types/components/Icon/docs/icon.argTypes.d.ts +0 -3
- package/dist/types/components/Icon/generated.d.ts +0 -2
- package/dist/types/components/Icon.d.ts +0 -2
- package/dist/types/components/Link/docs/link.argTypes.d.ts +0 -5
- package/dist/types/components/Link.d.ts +0 -2
- package/dist/types/components/Menu/docs/menu.argTypes.d.ts +0 -4
- package/dist/types/components/Menu.d.ts +0 -2
- package/dist/types/components/Modal/docs/modal.argTypes.d.ts +0 -3
- package/dist/types/components/Modal.d.ts +0 -2
- package/dist/types/components/NotificationCounter/docs/notificationCounter.argTypes.d.ts +0 -3
- package/dist/types/components/NotificationCounter.d.ts +0 -2
- package/dist/types/components/Picture/docs/picture.argTypes.d.ts +0 -3
- package/dist/types/components/Picture.d.ts +0 -2
- package/dist/types/components/Popover/docs/popover.argTypes.d.ts +0 -3
- package/dist/types/components/Popover.d.ts +0 -2
- package/dist/types/components/RadioGroup/components/Radio/docs/radio.argTypes.d.ts +0 -3
- package/dist/types/components/RadioGroup/docs/radioGroup.argTypes.d.ts +0 -3
- package/dist/types/components/RadioGroup.d.ts +0 -2
- package/dist/types/components/RatingDots/docs/ratingDots.argTypes.d.ts +0 -3
- package/dist/types/components/RatingDots.d.ts +0 -2
- package/dist/types/components/Select/docs/select.argTypes.d.ts +0 -3
- package/dist/types/components/Select.d.ts +0 -2
- package/dist/types/components/SortableList/docs/sortableList.argTypes.d.ts +0 -3
- package/dist/types/components/SortableList.d.ts +0 -2
- package/dist/types/components/Spinner/docs/spinner.argTypes.d.ts +0 -3
- package/dist/types/components/Spinner.d.ts +0 -2
- package/dist/types/components/Swatch/docs/swatch.argTypes.d.ts +0 -3
- package/dist/types/components/Swatch.d.ts +0 -2
- package/dist/types/components/Switch/docs/switch.argTypes.d.ts +0 -3
- package/dist/types/components/Switch.d.ts +0 -2
- package/dist/types/components/Tabs/components/Tab/docs/tab.argTypes.d.ts +0 -3
- package/dist/types/components/Tabs/docs/tabs.argTypes.d.ts +0 -3
- package/dist/types/components/Tabs.d.ts +0 -2
- package/dist/types/components/Tag/docs/tag.argTypes.d.ts +0 -3
- package/dist/types/components/Tag.d.ts +0 -2
- package/dist/types/components/Text/docs/text.argTypes.d.ts +0 -3
- package/dist/types/components/Text.d.ts +0 -2
- package/dist/types/components/TextInput/docs/textInput.argTypes.d.ts +0 -3
- package/dist/types/components/TextInput.d.ts +0 -2
- package/dist/types/components/Textarea/docs/textarea.argTypes.d.ts +0 -3
- package/dist/types/components/Textarea.d.ts +0 -2
- package/dist/types/components/TimePicker/docs/timePicker.argTypes.d.ts +0 -3
- package/dist/types/components/TimePicker.d.ts +0 -2
- package/dist/types/components/TimeRange/docs/timeRange.argTypes.d.ts +0 -3
- package/dist/types/components/TimeRange.d.ts +0 -2
- package/dist/types/components/Tooltip/docs/tooltip.argTypes.d.ts +0 -3
- package/dist/types/components/Tooltip.d.ts +0 -2
- package/dist/types/components.d.ts +0 -2
- package/dist/types/hocs.d.ts +0 -2
- package/dist/types/hooks.d.ts +0 -2
- package/dist/types/patterns/ConversationCard/docs/conversationCard.argTypes.d.ts +0 -12
- package/dist/types/patterns/ConversationCard/docs/conversationCard.storiesData.d.ts +0 -22
- package/dist/types/patterns/ConversationCard.d.ts +0 -2
- package/dist/types/patterns/StyledAvatar/docs/styledAvatar.argTypes.d.ts +0 -3
- package/dist/types/patterns/StyledAvatar.d.ts +0 -2
- package/dist/types/patterns/TagBlock/docs/tagBlock.argTypes.d.ts +0 -3
- package/dist/types/patterns/TagBlock.d.ts +0 -2
- package/dist/types/patterns/Timestamp/docs/timestamp.argTypes.d.ts +0 -3
- package/dist/types/patterns/Timestamp.d.ts +0 -2
- package/dist/types/patterns/index.d.ts +0 -4
- package/dist/types/patterns.d.ts +0 -2
- package/dist/types/shared/types.d.ts +0 -2
- package/dist/types/theme/semanticTokens/docs/semanticTokens.d.ts +0 -7
- package/dist/types/theme/semanticTokens.d.ts +0 -2
- package/dist/types/theme/tokens/blurs.d.ts +0 -2
- package/dist/types/theme/tokens/borders/docs/borders.d.ts +0 -5
- package/dist/types/theme/tokens/borders.d.ts +0 -2
- package/dist/types/theme/tokens/colors.d.ts +0 -2
- package/dist/types/theme/tokens/shadows/docs/shadows.d.ts +0 -6
- package/dist/types/theme/tokens/shadows.d.ts +0 -2
- package/dist/types/theme/tokens/sizes.d.ts +0 -2
- package/dist/types/theme/tokens/spacing.d.ts +0 -2
- package/dist/types/theme/tokens/transitions.d.ts +0 -2
- package/dist/types/theme/tokens/typography/docs/typography.d.ts +0 -2
- package/dist/types/theme/tokens/typography.d.ts +0 -2
- package/dist/types/theme/tokens/zIndices.d.ts +0 -2
- package/dist/types/theme/tokens.d.ts +0 -2
- package/dist/types/theme.d.ts +0 -2
- /package/dist/cjs/{patterns → components}/ConversationCard/index.cjs.map +0 -0
- /package/dist/cjs/{patterns/StyledAvatar → components/Divider}/index.cjs.map +0 -0
- /package/dist/cjs/{patterns/TagBlock → components/Logo/generated}/index.cjs.map +0 -0
- /package/dist/cjs/{patterns/Timestamp → components/Logo}/index.cjs.map +0 -0
- /package/dist/cjs/{patterns → components/PinInput}/index.cjs.map +0 -0
- /package/dist/esm/{patterns → components}/ConversationCard/index.js.map +0 -0
- /package/dist/esm/{patterns/StyledAvatar → components/Divider}/index.js.map +0 -0
- /package/dist/esm/{patterns/TagBlock → components/Logo/generated}/index.js.map +0 -0
- /package/dist/esm/{patterns/Timestamp → components/Logo}/index.js.map +0 -0
- /package/dist/types/{patterns → components}/ConversationCard/components/ConversationCardAvatarGroup/conversationCardAvatarGroup.component.d.ts +0 -0
- /package/dist/types/{patterns → components}/ConversationCard/components/ConversationCardHeader/conversationCardHeader.component.d.ts +0 -0
- /package/dist/types/{patterns → components}/ConversationCard/index.d.ts +0 -0
- /package/dist/types/{patterns → components}/StyledAvatar/index.d.ts +0 -0
- /package/dist/types/{patterns → components}/StyledAvatar/styledAvatar.types.d.ts +0 -0
- /package/dist/types/{patterns → components}/TagBlock/index.d.ts +0 -0
- /package/dist/types/{patterns → components}/TagBlock/tagBlock.types.d.ts +0 -0
- /package/dist/types/{patterns → components}/Timestamp/index.d.ts +0 -0
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { j as _ } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import M, { useLayoutEffect as Bn, useEffect as O, useRef as N, useMemo as E, useCallback as F, useState as B, memo as Fn, useReducer as Xn, createContext as Ee, useContext as ce, forwardRef as $n, cloneElement as Yn } from "react";
|
|
3
|
+
import { r as Be } from "./use-locale-context-D-agiW5E.js";
|
|
4
|
+
import { B as Kn } from "./button.component-BpF3MzbZ.js";
|
|
5
|
+
import { W as Un } from "./text.component-BZSCPJLf.js";
|
|
6
|
+
import { F as Wn } from "./flex-smlF8uQG.js";
|
|
7
|
+
import { L as Hn, a as Vn } from "./list-DqH5ttQG.js";
|
|
8
|
+
function qn() {
|
|
4
9
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
5
10
|
t[n] = arguments[n];
|
|
6
|
-
return
|
|
11
|
+
return E(
|
|
7
12
|
() => (r) => {
|
|
8
13
|
t.forEach((o) => o(r));
|
|
9
14
|
},
|
|
@@ -11,38 +16,38 @@ function Fn() {
|
|
|
11
16
|
t
|
|
12
17
|
);
|
|
13
18
|
}
|
|
14
|
-
const
|
|
15
|
-
function
|
|
19
|
+
const ct = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
20
|
+
function Ae(e) {
|
|
16
21
|
const t = Object.prototype.toString.call(e);
|
|
17
22
|
return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
18
23
|
t === "[object global]";
|
|
19
24
|
}
|
|
20
|
-
function
|
|
25
|
+
function Rt(e) {
|
|
21
26
|
return "nodeType" in e;
|
|
22
27
|
}
|
|
23
|
-
function
|
|
28
|
+
function X(e) {
|
|
24
29
|
var t, n;
|
|
25
|
-
return e ?
|
|
30
|
+
return e ? Ae(e) ? e : Rt(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
|
|
26
31
|
}
|
|
27
|
-
function
|
|
32
|
+
function Et(e) {
|
|
28
33
|
const {
|
|
29
34
|
Document: t
|
|
30
|
-
} =
|
|
35
|
+
} = X(e);
|
|
31
36
|
return e instanceof t;
|
|
32
37
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
38
|
+
function We(e) {
|
|
39
|
+
return Ae(e) ? !1 : e instanceof X(e).HTMLElement;
|
|
35
40
|
}
|
|
36
|
-
function
|
|
37
|
-
return e instanceof
|
|
41
|
+
function rn(e) {
|
|
42
|
+
return e instanceof X(e).SVGElement;
|
|
38
43
|
}
|
|
39
|
-
function
|
|
40
|
-
return e ?
|
|
44
|
+
function Ie(e) {
|
|
45
|
+
return e ? Ae(e) ? e.document : Rt(e) ? Et(e) ? e : We(e) || rn(e) ? e.ownerDocument : document : document : document;
|
|
41
46
|
}
|
|
42
|
-
const
|
|
43
|
-
function
|
|
44
|
-
const t =
|
|
45
|
-
return
|
|
47
|
+
const Q = ct ? Bn : O;
|
|
48
|
+
function ut(e) {
|
|
49
|
+
const t = N(e);
|
|
50
|
+
return Q(() => {
|
|
46
51
|
t.current = e;
|
|
47
52
|
}), F(function() {
|
|
48
53
|
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
|
@@ -50,24 +55,24 @@ function ct(e) {
|
|
|
50
55
|
return t.current == null ? void 0 : t.current(...r);
|
|
51
56
|
}, []);
|
|
52
57
|
}
|
|
53
|
-
function
|
|
54
|
-
const e =
|
|
58
|
+
function _n() {
|
|
59
|
+
const e = N(null), t = F((r, o) => {
|
|
55
60
|
e.current = setInterval(r, o);
|
|
56
61
|
}, []), n = F(() => {
|
|
57
62
|
e.current !== null && (clearInterval(e.current), e.current = null);
|
|
58
63
|
}, []);
|
|
59
64
|
return [t, n];
|
|
60
65
|
}
|
|
61
|
-
function
|
|
66
|
+
function Ye(e, t) {
|
|
62
67
|
t === void 0 && (t = [e]);
|
|
63
|
-
const n =
|
|
64
|
-
return
|
|
68
|
+
const n = N(e);
|
|
69
|
+
return Q(() => {
|
|
65
70
|
n.current !== e && (n.current = e);
|
|
66
71
|
}, t), n;
|
|
67
72
|
}
|
|
68
|
-
function
|
|
69
|
-
const n =
|
|
70
|
-
return
|
|
73
|
+
function He(e, t) {
|
|
74
|
+
const n = N();
|
|
75
|
+
return E(
|
|
71
76
|
() => {
|
|
72
77
|
const r = e(n.current);
|
|
73
78
|
return n.current = r, r;
|
|
@@ -76,8 +81,8 @@ function We(e, t) {
|
|
|
76
81
|
[...t]
|
|
77
82
|
);
|
|
78
83
|
}
|
|
79
|
-
function
|
|
80
|
-
const t =
|
|
84
|
+
function rt(e) {
|
|
85
|
+
const t = ut(e), n = N(null), r = F(
|
|
81
86
|
(o) => {
|
|
82
87
|
o !== n.current && t?.(o, n.current), n.current = o;
|
|
83
88
|
},
|
|
@@ -86,30 +91,30 @@ function nt(e) {
|
|
|
86
91
|
);
|
|
87
92
|
return [n, r];
|
|
88
93
|
}
|
|
89
|
-
function
|
|
90
|
-
const t =
|
|
91
|
-
return
|
|
94
|
+
function ot(e) {
|
|
95
|
+
const t = N();
|
|
96
|
+
return O(() => {
|
|
92
97
|
t.current = e;
|
|
93
98
|
}, [e]), t.current;
|
|
94
99
|
}
|
|
95
|
-
let
|
|
96
|
-
function
|
|
97
|
-
return
|
|
100
|
+
let mt = {};
|
|
101
|
+
function Ve(e, t) {
|
|
102
|
+
return E(() => {
|
|
98
103
|
if (t)
|
|
99
104
|
return t;
|
|
100
|
-
const n =
|
|
101
|
-
return
|
|
105
|
+
const n = mt[e] == null ? 0 : mt[e] + 1;
|
|
106
|
+
return mt[e] = n, e + "-" + n;
|
|
102
107
|
}, [e, t]);
|
|
103
108
|
}
|
|
104
|
-
function
|
|
109
|
+
function on(e) {
|
|
105
110
|
return function(t) {
|
|
106
111
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
107
112
|
r[o - 1] = arguments[o];
|
|
108
113
|
return r.reduce((i, s) => {
|
|
109
114
|
const a = Object.entries(s);
|
|
110
|
-
for (const [l,
|
|
115
|
+
for (const [l, c] of a) {
|
|
111
116
|
const d = i[l];
|
|
112
|
-
d != null && (i[l] = d + e *
|
|
117
|
+
d != null && (i[l] = d + e * c);
|
|
113
118
|
}
|
|
114
119
|
return i;
|
|
115
120
|
}, {
|
|
@@ -117,28 +122,28 @@ function _t(e) {
|
|
|
117
122
|
});
|
|
118
123
|
};
|
|
119
124
|
}
|
|
120
|
-
const
|
|
121
|
-
function
|
|
125
|
+
const Re = /* @__PURE__ */ on(1), Ke = /* @__PURE__ */ on(-1);
|
|
126
|
+
function Jn(e) {
|
|
122
127
|
return "clientX" in e && "clientY" in e;
|
|
123
128
|
}
|
|
124
|
-
function
|
|
129
|
+
function dt(e) {
|
|
125
130
|
if (!e)
|
|
126
131
|
return !1;
|
|
127
132
|
const {
|
|
128
133
|
KeyboardEvent: t
|
|
129
|
-
} =
|
|
134
|
+
} = X(e.target);
|
|
130
135
|
return t && e instanceof t;
|
|
131
136
|
}
|
|
132
|
-
function
|
|
137
|
+
function Gn(e) {
|
|
133
138
|
if (!e)
|
|
134
139
|
return !1;
|
|
135
140
|
const {
|
|
136
141
|
TouchEvent: t
|
|
137
|
-
} =
|
|
142
|
+
} = X(e.target);
|
|
138
143
|
return t && e instanceof t;
|
|
139
144
|
}
|
|
140
|
-
function
|
|
141
|
-
if (
|
|
145
|
+
function it(e) {
|
|
146
|
+
if (Gn(e)) {
|
|
142
147
|
if (e.touches && e.touches.length) {
|
|
143
148
|
const {
|
|
144
149
|
clientX: t,
|
|
@@ -159,7 +164,7 @@ function ot(e) {
|
|
|
159
164
|
};
|
|
160
165
|
}
|
|
161
166
|
}
|
|
162
|
-
return
|
|
167
|
+
return Jn(e) ? {
|
|
163
168
|
x: e.clientX,
|
|
164
169
|
y: e.clientY
|
|
165
170
|
} : null;
|
|
@@ -203,24 +208,24 @@ const be = /* @__PURE__ */ Object.freeze({
|
|
|
203
208
|
return t + " " + n + "ms " + r;
|
|
204
209
|
}
|
|
205
210
|
}
|
|
206
|
-
}),
|
|
207
|
-
function
|
|
208
|
-
return e.matches(
|
|
211
|
+
}), Yt = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
212
|
+
function Qn(e) {
|
|
213
|
+
return e.matches(Yt) ? e : e.querySelector(Yt);
|
|
209
214
|
}
|
|
210
|
-
const
|
|
215
|
+
const Zn = {
|
|
211
216
|
display: "none"
|
|
212
217
|
};
|
|
213
|
-
function
|
|
218
|
+
function er(e) {
|
|
214
219
|
let {
|
|
215
220
|
id: t,
|
|
216
221
|
value: n
|
|
217
222
|
} = e;
|
|
218
223
|
return M.createElement("div", {
|
|
219
224
|
id: t,
|
|
220
|
-
style:
|
|
225
|
+
style: Zn
|
|
221
226
|
}, n);
|
|
222
227
|
}
|
|
223
|
-
function
|
|
228
|
+
function tr(e) {
|
|
224
229
|
let {
|
|
225
230
|
id: t,
|
|
226
231
|
announcement: n,
|
|
@@ -248,8 +253,8 @@ function Wn(e) {
|
|
|
248
253
|
"aria-atomic": !0
|
|
249
254
|
}, n);
|
|
250
255
|
}
|
|
251
|
-
function
|
|
252
|
-
const [e, t] =
|
|
256
|
+
function nr() {
|
|
257
|
+
const [e, t] = B("");
|
|
253
258
|
return {
|
|
254
259
|
announce: F((r) => {
|
|
255
260
|
r != null && t(r);
|
|
@@ -257,17 +262,17 @@ function Hn() {
|
|
|
257
262
|
announcement: e
|
|
258
263
|
};
|
|
259
264
|
}
|
|
260
|
-
const
|
|
261
|
-
function
|
|
262
|
-
const t =
|
|
263
|
-
|
|
265
|
+
const sn = /* @__PURE__ */ Ee(null);
|
|
266
|
+
function rr(e) {
|
|
267
|
+
const t = ce(sn);
|
|
268
|
+
O(() => {
|
|
264
269
|
if (!t)
|
|
265
270
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
266
271
|
return t(e);
|
|
267
272
|
}, [e, t]);
|
|
268
273
|
}
|
|
269
|
-
function
|
|
270
|
-
const [e] =
|
|
274
|
+
function or() {
|
|
275
|
+
const [e] = B(() => /* @__PURE__ */ new Set()), t = F((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
271
276
|
return [F((r) => {
|
|
272
277
|
let {
|
|
273
278
|
type: o,
|
|
@@ -279,13 +284,13 @@ function qn() {
|
|
|
279
284
|
});
|
|
280
285
|
}, [e]), t];
|
|
281
286
|
}
|
|
282
|
-
const
|
|
287
|
+
const ir = {
|
|
283
288
|
draggable: `
|
|
284
289
|
To pick up a draggable item, press the space bar.
|
|
285
290
|
While dragging, use the arrow keys to move the item.
|
|
286
291
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
287
292
|
`
|
|
288
|
-
},
|
|
293
|
+
}, sr = {
|
|
289
294
|
onDragStart(e) {
|
|
290
295
|
let {
|
|
291
296
|
active: t
|
|
@@ -313,63 +318,63 @@ const Jn = {
|
|
|
313
318
|
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
314
319
|
}
|
|
315
320
|
};
|
|
316
|
-
function
|
|
321
|
+
function ar(e) {
|
|
317
322
|
let {
|
|
318
|
-
announcements: t =
|
|
323
|
+
announcements: t = sr,
|
|
319
324
|
container: n,
|
|
320
325
|
hiddenTextDescribedById: r,
|
|
321
|
-
screenReaderInstructions: o =
|
|
326
|
+
screenReaderInstructions: o = ir
|
|
322
327
|
} = e;
|
|
323
328
|
const {
|
|
324
329
|
announce: i,
|
|
325
330
|
announcement: s
|
|
326
|
-
} =
|
|
327
|
-
if (
|
|
328
|
-
|
|
329
|
-
}, []),
|
|
330
|
-
onDragStart(
|
|
331
|
+
} = nr(), a = Ve("DndLiveRegion"), [l, c] = B(!1);
|
|
332
|
+
if (O(() => {
|
|
333
|
+
c(!0);
|
|
334
|
+
}, []), rr(E(() => ({
|
|
335
|
+
onDragStart(u) {
|
|
331
336
|
let {
|
|
332
337
|
active: g
|
|
333
|
-
} =
|
|
338
|
+
} = u;
|
|
334
339
|
i(t.onDragStart({
|
|
335
340
|
active: g
|
|
336
341
|
}));
|
|
337
342
|
},
|
|
338
|
-
onDragMove(
|
|
343
|
+
onDragMove(u) {
|
|
339
344
|
let {
|
|
340
345
|
active: g,
|
|
341
346
|
over: f
|
|
342
|
-
} =
|
|
347
|
+
} = u;
|
|
343
348
|
t.onDragMove && i(t.onDragMove({
|
|
344
349
|
active: g,
|
|
345
350
|
over: f
|
|
346
351
|
}));
|
|
347
352
|
},
|
|
348
|
-
onDragOver(
|
|
353
|
+
onDragOver(u) {
|
|
349
354
|
let {
|
|
350
355
|
active: g,
|
|
351
356
|
over: f
|
|
352
|
-
} =
|
|
357
|
+
} = u;
|
|
353
358
|
i(t.onDragOver({
|
|
354
359
|
active: g,
|
|
355
360
|
over: f
|
|
356
361
|
}));
|
|
357
362
|
},
|
|
358
|
-
onDragEnd(
|
|
363
|
+
onDragEnd(u) {
|
|
359
364
|
let {
|
|
360
365
|
active: g,
|
|
361
366
|
over: f
|
|
362
|
-
} =
|
|
367
|
+
} = u;
|
|
363
368
|
i(t.onDragEnd({
|
|
364
369
|
active: g,
|
|
365
370
|
over: f
|
|
366
371
|
}));
|
|
367
372
|
},
|
|
368
|
-
onDragCancel(
|
|
373
|
+
onDragCancel(u) {
|
|
369
374
|
let {
|
|
370
375
|
active: g,
|
|
371
376
|
over: f
|
|
372
|
-
} =
|
|
377
|
+
} = u;
|
|
373
378
|
i(t.onDragCancel({
|
|
374
379
|
active: g,
|
|
375
380
|
over: f
|
|
@@ -377,23 +382,23 @@ function _n(e) {
|
|
|
377
382
|
}
|
|
378
383
|
}), [i, t])), !l)
|
|
379
384
|
return null;
|
|
380
|
-
const d = M.createElement(M.Fragment, null, M.createElement(
|
|
385
|
+
const d = M.createElement(M.Fragment, null, M.createElement(er, {
|
|
381
386
|
id: r,
|
|
382
387
|
value: o.draggable
|
|
383
|
-
}), M.createElement(
|
|
388
|
+
}), M.createElement(tr, {
|
|
384
389
|
id: a,
|
|
385
390
|
announcement: s
|
|
386
391
|
}));
|
|
387
|
-
return n ?
|
|
392
|
+
return n ? Be.createPortal(d, n) : d;
|
|
388
393
|
}
|
|
389
394
|
var P;
|
|
390
395
|
(function(e) {
|
|
391
396
|
e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
|
|
392
397
|
})(P || (P = {}));
|
|
393
|
-
function
|
|
398
|
+
function st() {
|
|
394
399
|
}
|
|
395
|
-
function
|
|
396
|
-
return
|
|
400
|
+
function Kt(e, t) {
|
|
401
|
+
return E(
|
|
397
402
|
() => ({
|
|
398
403
|
sensor: e,
|
|
399
404
|
options: t ?? {}
|
|
@@ -402,24 +407,24 @@ function Io(e, t) {
|
|
|
402
407
|
[e, t]
|
|
403
408
|
);
|
|
404
409
|
}
|
|
405
|
-
function
|
|
410
|
+
function lr() {
|
|
406
411
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
407
412
|
t[n] = arguments[n];
|
|
408
|
-
return
|
|
413
|
+
return E(
|
|
409
414
|
() => [...t].filter((r) => r != null),
|
|
410
415
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
411
416
|
[...t]
|
|
412
417
|
);
|
|
413
418
|
}
|
|
414
|
-
const
|
|
419
|
+
const Z = /* @__PURE__ */ Object.freeze({
|
|
415
420
|
x: 0,
|
|
416
421
|
y: 0
|
|
417
422
|
});
|
|
418
|
-
function
|
|
423
|
+
function cr(e, t) {
|
|
419
424
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
420
425
|
}
|
|
421
|
-
function
|
|
422
|
-
const n =
|
|
426
|
+
function ur(e, t) {
|
|
427
|
+
const n = it(e);
|
|
423
428
|
if (!n)
|
|
424
429
|
return "0 0";
|
|
425
430
|
const r = {
|
|
@@ -428,7 +433,7 @@ function Zn(e, t) {
|
|
|
428
433
|
};
|
|
429
434
|
return r.x + "% " + r.y + "%";
|
|
430
435
|
}
|
|
431
|
-
function
|
|
436
|
+
function dr(e, t) {
|
|
432
437
|
let {
|
|
433
438
|
data: {
|
|
434
439
|
value: n
|
|
@@ -440,7 +445,7 @@ function er(e, t) {
|
|
|
440
445
|
} = t;
|
|
441
446
|
return n - r;
|
|
442
447
|
}
|
|
443
|
-
function
|
|
448
|
+
function fr(e, t) {
|
|
444
449
|
let {
|
|
445
450
|
data: {
|
|
446
451
|
value: n
|
|
@@ -452,7 +457,7 @@ function tr(e, t) {
|
|
|
452
457
|
} = t;
|
|
453
458
|
return r - n;
|
|
454
459
|
}
|
|
455
|
-
function
|
|
460
|
+
function Ut(e) {
|
|
456
461
|
let {
|
|
457
462
|
left: t,
|
|
458
463
|
top: n,
|
|
@@ -473,45 +478,45 @@ function Ft(e) {
|
|
|
473
478
|
y: n + r
|
|
474
479
|
}];
|
|
475
480
|
}
|
|
476
|
-
function
|
|
481
|
+
function an(e, t) {
|
|
477
482
|
if (!e || e.length === 0)
|
|
478
483
|
return null;
|
|
479
484
|
const [n] = e;
|
|
480
485
|
return n[t];
|
|
481
486
|
}
|
|
482
|
-
const
|
|
487
|
+
const gr = (e) => {
|
|
483
488
|
let {
|
|
484
489
|
collisionRect: t,
|
|
485
490
|
droppableRects: n,
|
|
486
491
|
droppableContainers: r
|
|
487
492
|
} = e;
|
|
488
|
-
const o =
|
|
493
|
+
const o = Ut(t), i = [];
|
|
489
494
|
for (const s of r) {
|
|
490
495
|
const {
|
|
491
496
|
id: a
|
|
492
497
|
} = s, l = n.get(a);
|
|
493
498
|
if (l) {
|
|
494
|
-
const
|
|
499
|
+
const c = Ut(l), d = o.reduce((g, f, w) => g + cr(c[w], f), 0), u = Number((d / 4).toFixed(4));
|
|
495
500
|
i.push({
|
|
496
501
|
id: a,
|
|
497
502
|
data: {
|
|
498
503
|
droppableContainer: s,
|
|
499
|
-
value:
|
|
504
|
+
value: u
|
|
500
505
|
}
|
|
501
506
|
});
|
|
502
507
|
}
|
|
503
508
|
}
|
|
504
|
-
return i.sort(
|
|
509
|
+
return i.sort(dr);
|
|
505
510
|
};
|
|
506
|
-
function
|
|
511
|
+
function hr(e, t) {
|
|
507
512
|
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), i = Math.min(t.top + t.height, e.top + e.height), s = o - r, a = i - n;
|
|
508
513
|
if (r < o && n < i) {
|
|
509
|
-
const l = t.width * t.height,
|
|
510
|
-
return Number(
|
|
514
|
+
const l = t.width * t.height, c = e.width * e.height, d = s * a, u = d / (l + c - d);
|
|
515
|
+
return Number(u.toFixed(4));
|
|
511
516
|
}
|
|
512
517
|
return 0;
|
|
513
518
|
}
|
|
514
|
-
const
|
|
519
|
+
const vr = (e) => {
|
|
515
520
|
let {
|
|
516
521
|
collisionRect: t,
|
|
517
522
|
droppableRects: n,
|
|
@@ -523,7 +528,7 @@ const or = (e) => {
|
|
|
523
528
|
id: s
|
|
524
529
|
} = i, a = n.get(s);
|
|
525
530
|
if (a) {
|
|
526
|
-
const l =
|
|
531
|
+
const l = hr(a, t);
|
|
527
532
|
l > 0 && o.push({
|
|
528
533
|
id: s,
|
|
529
534
|
data: {
|
|
@@ -533,22 +538,22 @@ const or = (e) => {
|
|
|
533
538
|
});
|
|
534
539
|
}
|
|
535
540
|
}
|
|
536
|
-
return o.sort(
|
|
541
|
+
return o.sort(fr);
|
|
537
542
|
};
|
|
538
|
-
function
|
|
543
|
+
function pr(e, t, n) {
|
|
539
544
|
return {
|
|
540
545
|
...e,
|
|
541
546
|
scaleX: t && n ? t.width / n.width : 1,
|
|
542
547
|
scaleY: t && n ? t.height / n.height : 1
|
|
543
548
|
};
|
|
544
549
|
}
|
|
545
|
-
function
|
|
550
|
+
function ln(e, t) {
|
|
546
551
|
return e && t ? {
|
|
547
552
|
x: e.left - t.left,
|
|
548
553
|
y: e.top - t.top
|
|
549
|
-
} :
|
|
554
|
+
} : Z;
|
|
550
555
|
}
|
|
551
|
-
function
|
|
556
|
+
function br(e) {
|
|
552
557
|
return function(n) {
|
|
553
558
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
554
559
|
o[i - 1] = arguments[i];
|
|
@@ -563,8 +568,8 @@ function sr(e) {
|
|
|
563
568
|
});
|
|
564
569
|
};
|
|
565
570
|
}
|
|
566
|
-
const
|
|
567
|
-
function
|
|
571
|
+
const mr = /* @__PURE__ */ br(1);
|
|
572
|
+
function cn(e) {
|
|
568
573
|
if (e.startsWith("matrix3d(")) {
|
|
569
574
|
const t = e.slice(9, -1).split(/, /);
|
|
570
575
|
return {
|
|
@@ -584,8 +589,8 @@ function tn(e) {
|
|
|
584
589
|
}
|
|
585
590
|
return null;
|
|
586
591
|
}
|
|
587
|
-
function
|
|
588
|
-
const r =
|
|
592
|
+
function yr(e, t, n) {
|
|
593
|
+
const r = cn(t);
|
|
589
594
|
if (!r)
|
|
590
595
|
return e;
|
|
591
596
|
const {
|
|
@@ -593,28 +598,28 @@ function lr(e, t, n) {
|
|
|
593
598
|
scaleY: i,
|
|
594
599
|
x: s,
|
|
595
600
|
y: a
|
|
596
|
-
} = r, l = e.left - s - (1 - o) * parseFloat(n),
|
|
601
|
+
} = r, l = e.left - s - (1 - o) * parseFloat(n), c = e.top - a - (1 - i) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = o ? e.width / o : e.width, u = i ? e.height / i : e.height;
|
|
597
602
|
return {
|
|
598
603
|
width: d,
|
|
599
|
-
height:
|
|
600
|
-
top:
|
|
604
|
+
height: u,
|
|
605
|
+
top: c,
|
|
601
606
|
right: l + d,
|
|
602
|
-
bottom:
|
|
607
|
+
bottom: c + u,
|
|
603
608
|
left: l
|
|
604
609
|
};
|
|
605
610
|
}
|
|
606
|
-
const
|
|
611
|
+
const wr = {
|
|
607
612
|
ignoreTransform: !1
|
|
608
613
|
};
|
|
609
|
-
function
|
|
610
|
-
t === void 0 && (t =
|
|
614
|
+
function Oe(e, t) {
|
|
615
|
+
t === void 0 && (t = wr);
|
|
611
616
|
let n = e.getBoundingClientRect();
|
|
612
617
|
if (t.ignoreTransform) {
|
|
613
618
|
const {
|
|
614
|
-
transform:
|
|
619
|
+
transform: c,
|
|
615
620
|
transformOrigin: d
|
|
616
|
-
} =
|
|
617
|
-
|
|
621
|
+
} = X(e).getComputedStyle(e);
|
|
622
|
+
c && (n = yr(n, c, d));
|
|
618
623
|
}
|
|
619
624
|
const {
|
|
620
625
|
top: r,
|
|
@@ -633,12 +638,12 @@ function Ae(e, t) {
|
|
|
633
638
|
right: l
|
|
634
639
|
};
|
|
635
640
|
}
|
|
636
|
-
function
|
|
637
|
-
return
|
|
641
|
+
function Wt(e) {
|
|
642
|
+
return Oe(e, {
|
|
638
643
|
ignoreTransform: !0
|
|
639
644
|
});
|
|
640
645
|
}
|
|
641
|
-
function
|
|
646
|
+
function xr(e) {
|
|
642
647
|
const t = e.innerWidth, n = e.innerHeight;
|
|
643
648
|
return {
|
|
644
649
|
top: 0,
|
|
@@ -649,62 +654,62 @@ function ur(e) {
|
|
|
649
654
|
height: n
|
|
650
655
|
};
|
|
651
656
|
}
|
|
652
|
-
function
|
|
653
|
-
return t === void 0 && (t =
|
|
657
|
+
function Dr(e, t) {
|
|
658
|
+
return t === void 0 && (t = X(e).getComputedStyle(e)), t.position === "fixed";
|
|
654
659
|
}
|
|
655
|
-
function
|
|
656
|
-
t === void 0 && (t =
|
|
660
|
+
function Sr(e, t) {
|
|
661
|
+
t === void 0 && (t = X(e).getComputedStyle(e));
|
|
657
662
|
const n = /(auto|scroll|overlay)/;
|
|
658
663
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
659
664
|
const i = t[o];
|
|
660
665
|
return typeof i == "string" ? n.test(i) : !1;
|
|
661
666
|
});
|
|
662
667
|
}
|
|
663
|
-
function
|
|
668
|
+
function ft(e, t) {
|
|
664
669
|
const n = [];
|
|
665
670
|
function r(o) {
|
|
666
671
|
if (t != null && n.length >= t || !o)
|
|
667
672
|
return n;
|
|
668
|
-
if (
|
|
673
|
+
if (Et(o) && o.scrollingElement != null && !n.includes(o.scrollingElement))
|
|
669
674
|
return n.push(o.scrollingElement), n;
|
|
670
|
-
if (!
|
|
675
|
+
if (!We(o) || rn(o) || n.includes(o))
|
|
671
676
|
return n;
|
|
672
|
-
const i =
|
|
673
|
-
return o !== e &&
|
|
677
|
+
const i = X(e).getComputedStyle(o);
|
|
678
|
+
return o !== e && Sr(o, i) && n.push(o), Dr(o, i) ? n : r(o.parentNode);
|
|
674
679
|
}
|
|
675
680
|
return e ? r(e) : n;
|
|
676
681
|
}
|
|
677
|
-
function
|
|
678
|
-
const [t] =
|
|
682
|
+
function un(e) {
|
|
683
|
+
const [t] = ft(e, 1);
|
|
679
684
|
return t ?? null;
|
|
680
685
|
}
|
|
681
|
-
function
|
|
682
|
-
return !
|
|
686
|
+
function yt(e) {
|
|
687
|
+
return !ct || !e ? null : Ae(e) ? e : Rt(e) ? Et(e) || e === Ie(e).scrollingElement ? window : We(e) ? e : null : null;
|
|
683
688
|
}
|
|
684
|
-
function
|
|
685
|
-
return
|
|
689
|
+
function dn(e) {
|
|
690
|
+
return Ae(e) ? e.scrollX : e.scrollLeft;
|
|
686
691
|
}
|
|
687
|
-
function
|
|
688
|
-
return
|
|
692
|
+
function fn(e) {
|
|
693
|
+
return Ae(e) ? e.scrollY : e.scrollTop;
|
|
689
694
|
}
|
|
690
|
-
function
|
|
695
|
+
function Dt(e) {
|
|
691
696
|
return {
|
|
692
|
-
x:
|
|
693
|
-
y:
|
|
697
|
+
x: dn(e),
|
|
698
|
+
y: fn(e)
|
|
694
699
|
};
|
|
695
700
|
}
|
|
696
701
|
var k;
|
|
697
702
|
(function(e) {
|
|
698
703
|
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
699
704
|
})(k || (k = {}));
|
|
700
|
-
function
|
|
701
|
-
return !
|
|
705
|
+
function gn(e) {
|
|
706
|
+
return !ct || !e ? !1 : e === document.scrollingElement;
|
|
702
707
|
}
|
|
703
|
-
function
|
|
708
|
+
function hn(e) {
|
|
704
709
|
const t = {
|
|
705
710
|
x: 0,
|
|
706
711
|
y: 0
|
|
707
|
-
}, n =
|
|
712
|
+
}, n = gn(e) ? {
|
|
708
713
|
height: window.innerHeight,
|
|
709
714
|
width: window.innerWidth
|
|
710
715
|
} : {
|
|
@@ -723,24 +728,24 @@ function an(e) {
|
|
|
723
728
|
minScroll: t
|
|
724
729
|
};
|
|
725
730
|
}
|
|
726
|
-
const
|
|
731
|
+
const Cr = {
|
|
727
732
|
x: 0.2,
|
|
728
733
|
y: 0.2
|
|
729
734
|
};
|
|
730
|
-
function
|
|
735
|
+
function Rr(e, t, n, r, o) {
|
|
731
736
|
let {
|
|
732
737
|
top: i,
|
|
733
738
|
left: s,
|
|
734
739
|
right: a,
|
|
735
740
|
bottom: l
|
|
736
741
|
} = n;
|
|
737
|
-
r === void 0 && (r = 10), o === void 0 && (o =
|
|
742
|
+
r === void 0 && (r = 10), o === void 0 && (o = Cr);
|
|
738
743
|
const {
|
|
739
|
-
isTop:
|
|
744
|
+
isTop: c,
|
|
740
745
|
isBottom: d,
|
|
741
|
-
isLeft:
|
|
746
|
+
isLeft: u,
|
|
742
747
|
isRight: g
|
|
743
|
-
} =
|
|
748
|
+
} = hn(e), f = {
|
|
744
749
|
x: 0,
|
|
745
750
|
y: 0
|
|
746
751
|
}, w = {
|
|
@@ -750,12 +755,12 @@ function hr(e, t, n, r, o) {
|
|
|
750
755
|
height: t.height * o.y,
|
|
751
756
|
width: t.width * o.x
|
|
752
757
|
};
|
|
753
|
-
return !
|
|
758
|
+
return !c && i <= t.top + h.height ? (f.y = k.Backward, w.y = r * Math.abs((t.top + h.height - i) / h.height)) : !d && l >= t.bottom - h.height && (f.y = k.Forward, w.y = r * Math.abs((t.bottom - h.height - l) / h.height)), !g && a >= t.right - h.width ? (f.x = k.Forward, w.x = r * Math.abs((t.right - h.width - a) / h.width)) : !u && s <= t.left + h.width && (f.x = k.Backward, w.x = r * Math.abs((t.left + h.width - s) / h.width)), {
|
|
754
759
|
direction: f,
|
|
755
760
|
speed: w
|
|
756
761
|
};
|
|
757
762
|
}
|
|
758
|
-
function
|
|
763
|
+
function Er(e) {
|
|
759
764
|
if (e === document.scrollingElement) {
|
|
760
765
|
const {
|
|
761
766
|
innerWidth: i,
|
|
@@ -785,17 +790,17 @@ function vr(e) {
|
|
|
785
790
|
height: e.clientHeight
|
|
786
791
|
};
|
|
787
792
|
}
|
|
788
|
-
function
|
|
789
|
-
return e.reduce((t, n) =>
|
|
793
|
+
function vn(e) {
|
|
794
|
+
return e.reduce((t, n) => Re(t, Dt(n)), Z);
|
|
790
795
|
}
|
|
791
|
-
function
|
|
792
|
-
return e.reduce((t, n) => t +
|
|
796
|
+
function Ar(e) {
|
|
797
|
+
return e.reduce((t, n) => t + dn(n), 0);
|
|
793
798
|
}
|
|
794
|
-
function
|
|
795
|
-
return e.reduce((t, n) => t +
|
|
799
|
+
function Ir(e) {
|
|
800
|
+
return e.reduce((t, n) => t + fn(n), 0);
|
|
796
801
|
}
|
|
797
|
-
function
|
|
798
|
-
if (t === void 0 && (t =
|
|
802
|
+
function pn(e, t) {
|
|
803
|
+
if (t === void 0 && (t = Oe), !e)
|
|
799
804
|
return;
|
|
800
805
|
const {
|
|
801
806
|
top: n,
|
|
@@ -803,24 +808,24 @@ function cn(e, t) {
|
|
|
803
808
|
bottom: o,
|
|
804
809
|
right: i
|
|
805
810
|
} = t(e);
|
|
806
|
-
|
|
811
|
+
un(e) && (o <= 0 || i <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
|
|
807
812
|
block: "center",
|
|
808
813
|
inline: "center"
|
|
809
814
|
});
|
|
810
815
|
}
|
|
811
|
-
const
|
|
812
|
-
class
|
|
816
|
+
const Or = [["x", ["left", "right"], Ar], ["y", ["top", "bottom"], Ir]];
|
|
817
|
+
class At {
|
|
813
818
|
constructor(t, n) {
|
|
814
819
|
this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
|
|
815
|
-
const r =
|
|
820
|
+
const r = ft(n), o = vn(r);
|
|
816
821
|
this.rect = {
|
|
817
822
|
...t
|
|
818
823
|
}, this.width = t.width, this.height = t.height;
|
|
819
|
-
for (const [i, s, a] of
|
|
824
|
+
for (const [i, s, a] of Or)
|
|
820
825
|
for (const l of s)
|
|
821
826
|
Object.defineProperty(this, l, {
|
|
822
827
|
get: () => {
|
|
823
|
-
const
|
|
828
|
+
const c = a(r), d = o[i] - c;
|
|
824
829
|
return this.rect[l] + d;
|
|
825
830
|
},
|
|
826
831
|
enumerable: !0
|
|
@@ -830,7 +835,7 @@ class Et {
|
|
|
830
835
|
});
|
|
831
836
|
}
|
|
832
837
|
}
|
|
833
|
-
class
|
|
838
|
+
class Fe {
|
|
834
839
|
constructor(t) {
|
|
835
840
|
this.target = void 0, this.listeners = [], this.removeAll = () => {
|
|
836
841
|
this.listeners.forEach((n) => {
|
|
@@ -844,13 +849,13 @@ class Be {
|
|
|
844
849
|
(o = this.target) == null || o.addEventListener(t, n, r), this.listeners.push([t, n, r]);
|
|
845
850
|
}
|
|
846
851
|
}
|
|
847
|
-
function
|
|
852
|
+
function Nr(e) {
|
|
848
853
|
const {
|
|
849
854
|
EventTarget: t
|
|
850
|
-
} =
|
|
851
|
-
return e instanceof t ? e :
|
|
855
|
+
} = X(e);
|
|
856
|
+
return e instanceof t ? e : Ie(e);
|
|
852
857
|
}
|
|
853
|
-
function
|
|
858
|
+
function wt(e, t) {
|
|
854
859
|
const n = Math.abs(e.x), r = Math.abs(e.y);
|
|
855
860
|
return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t ? r > t.y : !1;
|
|
856
861
|
}
|
|
@@ -858,21 +863,21 @@ var q;
|
|
|
858
863
|
(function(e) {
|
|
859
864
|
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
860
865
|
})(q || (q = {}));
|
|
861
|
-
function
|
|
866
|
+
function Ht(e) {
|
|
862
867
|
e.preventDefault();
|
|
863
868
|
}
|
|
864
|
-
function
|
|
869
|
+
function Tr(e) {
|
|
865
870
|
e.stopPropagation();
|
|
866
871
|
}
|
|
867
872
|
var D;
|
|
868
873
|
(function(e) {
|
|
869
874
|
e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
|
|
870
875
|
})(D || (D = {}));
|
|
871
|
-
const
|
|
876
|
+
const bn = {
|
|
872
877
|
start: [D.Space, D.Enter],
|
|
873
878
|
cancel: [D.Esc],
|
|
874
879
|
end: [D.Space, D.Enter, D.Tab]
|
|
875
|
-
},
|
|
880
|
+
}, Mr = (e, t) => {
|
|
876
881
|
let {
|
|
877
882
|
currentCoordinates: n
|
|
878
883
|
} = t;
|
|
@@ -899,7 +904,7 @@ const un = {
|
|
|
899
904
|
};
|
|
900
905
|
}
|
|
901
906
|
};
|
|
902
|
-
class
|
|
907
|
+
class It {
|
|
903
908
|
constructor(t) {
|
|
904
909
|
this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
|
|
905
910
|
const {
|
|
@@ -907,7 +912,7 @@ class dn {
|
|
|
907
912
|
target: n
|
|
908
913
|
}
|
|
909
914
|
} = t;
|
|
910
|
-
this.props = t, this.listeners = new
|
|
915
|
+
this.props = t, this.listeners = new Fe(Ie(n)), this.windowListeners = new Fe(X(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
911
916
|
}
|
|
912
917
|
attach() {
|
|
913
918
|
this.handleStart(), this.windowListeners.add(q.Resize, this.handleCancel), this.windowListeners.add(q.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(q.Keydown, this.handleKeyDown));
|
|
@@ -917,17 +922,17 @@ class dn {
|
|
|
917
922
|
activeNode: t,
|
|
918
923
|
onStart: n
|
|
919
924
|
} = this.props, r = t.node.current;
|
|
920
|
-
r &&
|
|
925
|
+
r && pn(r), n(Z);
|
|
921
926
|
}
|
|
922
927
|
handleKeyDown(t) {
|
|
923
|
-
if (
|
|
928
|
+
if (dt(t)) {
|
|
924
929
|
const {
|
|
925
930
|
active: n,
|
|
926
931
|
context: r,
|
|
927
932
|
options: o
|
|
928
933
|
} = this.props, {
|
|
929
|
-
keyboardCodes: i =
|
|
930
|
-
coordinateGetter: s =
|
|
934
|
+
keyboardCodes: i = bn,
|
|
935
|
+
coordinateGetter: s = Mr,
|
|
931
936
|
scrollBehavior: a = "smooth"
|
|
932
937
|
} = o, {
|
|
933
938
|
code: l
|
|
@@ -941,19 +946,19 @@ class dn {
|
|
|
941
946
|
return;
|
|
942
947
|
}
|
|
943
948
|
const {
|
|
944
|
-
collisionRect:
|
|
945
|
-
} = r.current, d =
|
|
946
|
-
x:
|
|
947
|
-
y:
|
|
948
|
-
} :
|
|
949
|
+
collisionRect: c
|
|
950
|
+
} = r.current, d = c ? {
|
|
951
|
+
x: c.left,
|
|
952
|
+
y: c.top
|
|
953
|
+
} : Z;
|
|
949
954
|
this.referenceCoordinates || (this.referenceCoordinates = d);
|
|
950
|
-
const
|
|
955
|
+
const u = s(t, {
|
|
951
956
|
active: n,
|
|
952
957
|
context: r.current,
|
|
953
958
|
currentCoordinates: d
|
|
954
959
|
});
|
|
955
|
-
if (
|
|
956
|
-
const g =
|
|
960
|
+
if (u) {
|
|
961
|
+
const g = Ke(u, d), f = {
|
|
957
962
|
x: 0,
|
|
958
963
|
y: 0
|
|
959
964
|
}, {
|
|
@@ -964,44 +969,44 @@ class dn {
|
|
|
964
969
|
isTop: b,
|
|
965
970
|
isRight: m,
|
|
966
971
|
isLeft: p,
|
|
967
|
-
isBottom:
|
|
968
|
-
maxScroll:
|
|
972
|
+
isBottom: S,
|
|
973
|
+
maxScroll: C,
|
|
969
974
|
minScroll: R
|
|
970
|
-
} =
|
|
971
|
-
x: Math.min(v === D.Right ? y.right - y.width / 2 : y.right, Math.max(v === D.Right ? y.left : y.left + y.width / 2,
|
|
972
|
-
y: Math.min(v === D.Down ? y.bottom - y.height / 2 : y.bottom, Math.max(v === D.Down ? y.top : y.top + y.height / 2,
|
|
973
|
-
},
|
|
974
|
-
if (
|
|
975
|
-
const
|
|
975
|
+
} = hn(h), y = Er(h), x = {
|
|
976
|
+
x: Math.min(v === D.Right ? y.right - y.width / 2 : y.right, Math.max(v === D.Right ? y.left : y.left + y.width / 2, u.x)),
|
|
977
|
+
y: Math.min(v === D.Down ? y.bottom - y.height / 2 : y.bottom, Math.max(v === D.Down ? y.top : y.top + y.height / 2, u.y))
|
|
978
|
+
}, T = v === D.Right && !m || v === D.Left && !p, L = v === D.Down && !S || v === D.Up && !b;
|
|
979
|
+
if (T && x.x !== u.x) {
|
|
980
|
+
const I = h.scrollLeft + g.x, J = v === D.Right && I <= C.x || v === D.Left && I >= R.x;
|
|
976
981
|
if (J && !g.y) {
|
|
977
982
|
h.scrollTo({
|
|
978
|
-
left:
|
|
983
|
+
left: I,
|
|
979
984
|
behavior: a
|
|
980
985
|
});
|
|
981
986
|
return;
|
|
982
987
|
}
|
|
983
|
-
J ? f.x = h.scrollLeft -
|
|
988
|
+
J ? f.x = h.scrollLeft - I : f.x = v === D.Right ? h.scrollLeft - C.x : h.scrollLeft - R.x, f.x && h.scrollBy({
|
|
984
989
|
left: -f.x,
|
|
985
990
|
behavior: a
|
|
986
991
|
});
|
|
987
992
|
break;
|
|
988
|
-
} else if (L && x.y !==
|
|
989
|
-
const
|
|
993
|
+
} else if (L && x.y !== u.y) {
|
|
994
|
+
const I = h.scrollTop + g.y, J = v === D.Down && I <= C.y || v === D.Up && I >= R.y;
|
|
990
995
|
if (J && !g.x) {
|
|
991
996
|
h.scrollTo({
|
|
992
|
-
top:
|
|
997
|
+
top: I,
|
|
993
998
|
behavior: a
|
|
994
999
|
});
|
|
995
1000
|
return;
|
|
996
1001
|
}
|
|
997
|
-
J ? f.y = h.scrollTop -
|
|
1002
|
+
J ? f.y = h.scrollTop - I : f.y = v === D.Down ? h.scrollTop - C.y : h.scrollTop - R.y, f.y && h.scrollBy({
|
|
998
1003
|
top: -f.y,
|
|
999
1004
|
behavior: a
|
|
1000
1005
|
});
|
|
1001
1006
|
break;
|
|
1002
1007
|
}
|
|
1003
1008
|
}
|
|
1004
|
-
this.handleMove(t,
|
|
1009
|
+
this.handleMove(t, Re(Ke(u, this.referenceCoordinates), f));
|
|
1005
1010
|
}
|
|
1006
1011
|
}
|
|
1007
1012
|
}
|
|
@@ -1027,11 +1032,11 @@ class dn {
|
|
|
1027
1032
|
this.listeners.removeAll(), this.windowListeners.removeAll();
|
|
1028
1033
|
}
|
|
1029
1034
|
}
|
|
1030
|
-
|
|
1035
|
+
It.activators = [{
|
|
1031
1036
|
eventName: "onKeyDown",
|
|
1032
1037
|
handler: (e, t, n) => {
|
|
1033
1038
|
let {
|
|
1034
|
-
keyboardCodes: r =
|
|
1039
|
+
keyboardCodes: r = bn,
|
|
1035
1040
|
onActivation: o
|
|
1036
1041
|
} = t, {
|
|
1037
1042
|
active: i
|
|
@@ -1048,22 +1053,22 @@ dn.activators = [{
|
|
|
1048
1053
|
return !1;
|
|
1049
1054
|
}
|
|
1050
1055
|
}];
|
|
1051
|
-
function
|
|
1056
|
+
function Vt(e) {
|
|
1052
1057
|
return !!(e && "distance" in e);
|
|
1053
1058
|
}
|
|
1054
|
-
function
|
|
1059
|
+
function qt(e) {
|
|
1055
1060
|
return !!(e && "delay" in e);
|
|
1056
1061
|
}
|
|
1057
|
-
class
|
|
1062
|
+
class Ot {
|
|
1058
1063
|
constructor(t, n, r) {
|
|
1059
1064
|
var o;
|
|
1060
|
-
r === void 0 && (r =
|
|
1065
|
+
r === void 0 && (r = Nr(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
|
|
1061
1066
|
const {
|
|
1062
1067
|
event: i
|
|
1063
1068
|
} = t, {
|
|
1064
1069
|
target: s
|
|
1065
1070
|
} = i;
|
|
1066
|
-
this.props = t, this.events = n, this.document =
|
|
1071
|
+
this.props = t, this.events = n, this.document = Ie(s), this.documentListeners = new Fe(this.document), this.listeners = new Fe(r), this.windowListeners = new Fe(X(s)), this.initialCoordinates = (o = it(i)) != null ? o : Z, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
1067
1072
|
}
|
|
1068
1073
|
attach() {
|
|
1069
1074
|
const {
|
|
@@ -1077,18 +1082,18 @@ class At {
|
|
|
1077
1082
|
} = this;
|
|
1078
1083
|
if (this.listeners.add(t.move.name, this.handleMove, {
|
|
1079
1084
|
passive: !1
|
|
1080
|
-
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(q.Resize, this.handleCancel), this.windowListeners.add(q.DragStart,
|
|
1085
|
+
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(q.Resize, this.handleCancel), this.windowListeners.add(q.DragStart, Ht), this.windowListeners.add(q.VisibilityChange, this.handleCancel), this.windowListeners.add(q.ContextMenu, Ht), this.documentListeners.add(q.Keydown, this.handleKeydown), n) {
|
|
1081
1086
|
if (r != null && r({
|
|
1082
1087
|
event: this.props.event,
|
|
1083
1088
|
activeNode: this.props.activeNode,
|
|
1084
1089
|
options: this.props.options
|
|
1085
1090
|
}))
|
|
1086
1091
|
return this.handleStart();
|
|
1087
|
-
if (
|
|
1092
|
+
if (qt(n)) {
|
|
1088
1093
|
this.timeoutId = setTimeout(this.handleStart, n.delay), this.handlePending(n);
|
|
1089
1094
|
return;
|
|
1090
1095
|
}
|
|
1091
|
-
if (
|
|
1096
|
+
if (Vt(n)) {
|
|
1092
1097
|
this.handlePending(n);
|
|
1093
1098
|
return;
|
|
1094
1099
|
}
|
|
@@ -1111,7 +1116,7 @@ class At {
|
|
|
1111
1116
|
} = this, {
|
|
1112
1117
|
onStart: n
|
|
1113
1118
|
} = this.props;
|
|
1114
|
-
t && (this.activated = !0, this.documentListeners.add(q.Click,
|
|
1119
|
+
t && (this.activated = !0, this.documentListeners.add(q.Click, Tr, {
|
|
1115
1120
|
capture: !0
|
|
1116
1121
|
}), this.removeTextSelection(), this.documentListeners.add(q.SelectionChange, this.removeTextSelection), n(t));
|
|
1117
1122
|
}
|
|
@@ -1129,17 +1134,17 @@ class At {
|
|
|
1129
1134
|
} = i;
|
|
1130
1135
|
if (!o)
|
|
1131
1136
|
return;
|
|
1132
|
-
const l = (n =
|
|
1137
|
+
const l = (n = it(t)) != null ? n : Z, c = Ke(o, l);
|
|
1133
1138
|
if (!r && a) {
|
|
1134
|
-
if (
|
|
1135
|
-
if (a.tolerance != null &&
|
|
1139
|
+
if (Vt(a)) {
|
|
1140
|
+
if (a.tolerance != null && wt(c, a.tolerance))
|
|
1136
1141
|
return this.handleCancel();
|
|
1137
|
-
if (
|
|
1142
|
+
if (wt(c, a.distance))
|
|
1138
1143
|
return this.handleStart();
|
|
1139
1144
|
}
|
|
1140
|
-
if (
|
|
1145
|
+
if (qt(a) && wt(c, a.tolerance))
|
|
1141
1146
|
return this.handleCancel();
|
|
1142
|
-
this.handlePending(a,
|
|
1147
|
+
this.handlePending(a, c);
|
|
1143
1148
|
return;
|
|
1144
1149
|
}
|
|
1145
1150
|
t.cancelable && t.preventDefault(), s(l);
|
|
@@ -1166,7 +1171,7 @@ class At {
|
|
|
1166
1171
|
(t = this.document.getSelection()) == null || t.removeAllRanges();
|
|
1167
1172
|
}
|
|
1168
1173
|
}
|
|
1169
|
-
const
|
|
1174
|
+
const Lr = {
|
|
1170
1175
|
cancel: {
|
|
1171
1176
|
name: "pointercancel"
|
|
1172
1177
|
},
|
|
@@ -1177,15 +1182,15 @@ const Dr = {
|
|
|
1177
1182
|
name: "pointerup"
|
|
1178
1183
|
}
|
|
1179
1184
|
};
|
|
1180
|
-
class
|
|
1185
|
+
class Nt extends Ot {
|
|
1181
1186
|
constructor(t) {
|
|
1182
1187
|
const {
|
|
1183
1188
|
event: n
|
|
1184
|
-
} = t, r =
|
|
1185
|
-
super(t,
|
|
1189
|
+
} = t, r = Ie(n.target);
|
|
1190
|
+
super(t, Lr, r);
|
|
1186
1191
|
}
|
|
1187
1192
|
}
|
|
1188
|
-
|
|
1193
|
+
Nt.activators = [{
|
|
1189
1194
|
eventName: "onPointerDown",
|
|
1190
1195
|
handler: (e, t) => {
|
|
1191
1196
|
let {
|
|
@@ -1198,7 +1203,7 @@ fn.activators = [{
|
|
|
1198
1203
|
}), !0);
|
|
1199
1204
|
}
|
|
1200
1205
|
}];
|
|
1201
|
-
const
|
|
1206
|
+
const Pr = {
|
|
1202
1207
|
move: {
|
|
1203
1208
|
name: "mousemove"
|
|
1204
1209
|
},
|
|
@@ -1206,16 +1211,16 @@ const Cr = {
|
|
|
1206
1211
|
name: "mouseup"
|
|
1207
1212
|
}
|
|
1208
1213
|
};
|
|
1209
|
-
var
|
|
1214
|
+
var St;
|
|
1210
1215
|
(function(e) {
|
|
1211
1216
|
e[e.RightClick = 2] = "RightClick";
|
|
1212
|
-
})(
|
|
1213
|
-
class
|
|
1217
|
+
})(St || (St = {}));
|
|
1218
|
+
class kr extends Ot {
|
|
1214
1219
|
constructor(t) {
|
|
1215
|
-
super(t,
|
|
1220
|
+
super(t, Pr, Ie(t.event.target));
|
|
1216
1221
|
}
|
|
1217
1222
|
}
|
|
1218
|
-
|
|
1223
|
+
kr.activators = [{
|
|
1219
1224
|
eventName: "onMouseDown",
|
|
1220
1225
|
handler: (e, t) => {
|
|
1221
1226
|
let {
|
|
@@ -1223,12 +1228,12 @@ Sr.activators = [{
|
|
|
1223
1228
|
} = e, {
|
|
1224
1229
|
onActivation: r
|
|
1225
1230
|
} = t;
|
|
1226
|
-
return n.button ===
|
|
1231
|
+
return n.button === St.RightClick ? !1 : (r?.({
|
|
1227
1232
|
event: n
|
|
1228
1233
|
}), !0);
|
|
1229
1234
|
}
|
|
1230
1235
|
}];
|
|
1231
|
-
const
|
|
1236
|
+
const xt = {
|
|
1232
1237
|
cancel: {
|
|
1233
1238
|
name: "touchcancel"
|
|
1234
1239
|
},
|
|
@@ -1239,22 +1244,22 @@ const wt = {
|
|
|
1239
1244
|
name: "touchend"
|
|
1240
1245
|
}
|
|
1241
1246
|
};
|
|
1242
|
-
class
|
|
1247
|
+
class zr extends Ot {
|
|
1243
1248
|
constructor(t) {
|
|
1244
|
-
super(t,
|
|
1249
|
+
super(t, xt);
|
|
1245
1250
|
}
|
|
1246
1251
|
static setup() {
|
|
1247
|
-
return window.addEventListener(
|
|
1252
|
+
return window.addEventListener(xt.move.name, t, {
|
|
1248
1253
|
capture: !1,
|
|
1249
1254
|
passive: !1
|
|
1250
1255
|
}), function() {
|
|
1251
|
-
window.removeEventListener(
|
|
1256
|
+
window.removeEventListener(xt.move.name, t);
|
|
1252
1257
|
};
|
|
1253
1258
|
function t() {
|
|
1254
1259
|
}
|
|
1255
1260
|
}
|
|
1256
1261
|
}
|
|
1257
|
-
|
|
1262
|
+
zr.activators = [{
|
|
1258
1263
|
eventName: "onTouchStart",
|
|
1259
1264
|
handler: (e, t) => {
|
|
1260
1265
|
let {
|
|
@@ -1270,77 +1275,77 @@ Rr.activators = [{
|
|
|
1270
1275
|
}), !0);
|
|
1271
1276
|
}
|
|
1272
1277
|
}];
|
|
1273
|
-
var
|
|
1278
|
+
var Xe;
|
|
1274
1279
|
(function(e) {
|
|
1275
1280
|
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
|
|
1276
|
-
})(
|
|
1277
|
-
var
|
|
1281
|
+
})(Xe || (Xe = {}));
|
|
1282
|
+
var at;
|
|
1278
1283
|
(function(e) {
|
|
1279
1284
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
1280
|
-
})(
|
|
1281
|
-
function
|
|
1285
|
+
})(at || (at = {}));
|
|
1286
|
+
function jr(e) {
|
|
1282
1287
|
let {
|
|
1283
1288
|
acceleration: t,
|
|
1284
|
-
activator: n =
|
|
1289
|
+
activator: n = Xe.Pointer,
|
|
1285
1290
|
canScroll: r,
|
|
1286
1291
|
draggingRect: o,
|
|
1287
1292
|
enabled: i,
|
|
1288
1293
|
interval: s = 5,
|
|
1289
|
-
order: a =
|
|
1294
|
+
order: a = at.TreeOrder,
|
|
1290
1295
|
pointerCoordinates: l,
|
|
1291
|
-
scrollableAncestors:
|
|
1296
|
+
scrollableAncestors: c,
|
|
1292
1297
|
scrollableAncestorRects: d,
|
|
1293
|
-
delta:
|
|
1298
|
+
delta: u,
|
|
1294
1299
|
threshold: g
|
|
1295
1300
|
} = e;
|
|
1296
|
-
const f =
|
|
1297
|
-
delta:
|
|
1301
|
+
const f = Fr({
|
|
1302
|
+
delta: u,
|
|
1298
1303
|
disabled: !i
|
|
1299
|
-
}), [w, h] =
|
|
1304
|
+
}), [w, h] = _n(), v = N({
|
|
1300
1305
|
x: 0,
|
|
1301
1306
|
y: 0
|
|
1302
|
-
}), b =
|
|
1307
|
+
}), b = N({
|
|
1303
1308
|
x: 0,
|
|
1304
1309
|
y: 0
|
|
1305
|
-
}), m =
|
|
1310
|
+
}), m = E(() => {
|
|
1306
1311
|
switch (n) {
|
|
1307
|
-
case
|
|
1312
|
+
case Xe.Pointer:
|
|
1308
1313
|
return l ? {
|
|
1309
1314
|
top: l.y,
|
|
1310
1315
|
bottom: l.y,
|
|
1311
1316
|
left: l.x,
|
|
1312
1317
|
right: l.x
|
|
1313
1318
|
} : null;
|
|
1314
|
-
case
|
|
1319
|
+
case Xe.DraggableRect:
|
|
1315
1320
|
return o;
|
|
1316
1321
|
}
|
|
1317
|
-
}, [n, o, l]), p =
|
|
1322
|
+
}, [n, o, l]), p = N(null), S = F(() => {
|
|
1318
1323
|
const R = p.current;
|
|
1319
1324
|
if (!R)
|
|
1320
1325
|
return;
|
|
1321
1326
|
const y = v.current.x * b.current.x, x = v.current.y * b.current.y;
|
|
1322
1327
|
R.scrollBy(y, x);
|
|
1323
|
-
}, []),
|
|
1324
|
-
|
|
1328
|
+
}, []), C = E(() => a === at.TreeOrder ? [...c].reverse() : c, [a, c]);
|
|
1329
|
+
O(
|
|
1325
1330
|
() => {
|
|
1326
|
-
if (!i || !
|
|
1331
|
+
if (!i || !c.length || !m) {
|
|
1327
1332
|
h();
|
|
1328
1333
|
return;
|
|
1329
1334
|
}
|
|
1330
|
-
for (const R of
|
|
1335
|
+
for (const R of C) {
|
|
1331
1336
|
if (r?.(R) === !1)
|
|
1332
1337
|
continue;
|
|
1333
|
-
const y =
|
|
1338
|
+
const y = c.indexOf(R), x = d[y];
|
|
1334
1339
|
if (!x)
|
|
1335
1340
|
continue;
|
|
1336
1341
|
const {
|
|
1337
|
-
direction:
|
|
1342
|
+
direction: T,
|
|
1338
1343
|
speed: L
|
|
1339
|
-
} =
|
|
1340
|
-
for (const
|
|
1341
|
-
f[
|
|
1344
|
+
} = Rr(R, x, m, t, g);
|
|
1345
|
+
for (const I of ["x", "y"])
|
|
1346
|
+
f[I][T[I]] || (L[I] = 0, T[I] = 0);
|
|
1342
1347
|
if (L.x > 0 || L.y > 0) {
|
|
1343
|
-
h(), p.current = R, w(
|
|
1348
|
+
h(), p.current = R, w(S, s), v.current = L, b.current = T;
|
|
1344
1349
|
return;
|
|
1345
1350
|
}
|
|
1346
1351
|
}
|
|
@@ -1355,7 +1360,7 @@ function Er(e) {
|
|
|
1355
1360
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1356
1361
|
[
|
|
1357
1362
|
t,
|
|
1358
|
-
|
|
1363
|
+
S,
|
|
1359
1364
|
r,
|
|
1360
1365
|
h,
|
|
1361
1366
|
i,
|
|
@@ -1365,15 +1370,15 @@ function Er(e) {
|
|
|
1365
1370
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1366
1371
|
JSON.stringify(f),
|
|
1367
1372
|
w,
|
|
1368
|
-
|
|
1369
|
-
|
|
1373
|
+
c,
|
|
1374
|
+
C,
|
|
1370
1375
|
d,
|
|
1371
1376
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1372
1377
|
JSON.stringify(g)
|
|
1373
1378
|
]
|
|
1374
1379
|
);
|
|
1375
1380
|
}
|
|
1376
|
-
const
|
|
1381
|
+
const Br = {
|
|
1377
1382
|
x: {
|
|
1378
1383
|
[k.Backward]: !1,
|
|
1379
1384
|
[k.Forward]: !1
|
|
@@ -1383,15 +1388,15 @@ const Ar = {
|
|
|
1383
1388
|
[k.Forward]: !1
|
|
1384
1389
|
}
|
|
1385
1390
|
};
|
|
1386
|
-
function
|
|
1391
|
+
function Fr(e) {
|
|
1387
1392
|
let {
|
|
1388
1393
|
delta: t,
|
|
1389
1394
|
disabled: n
|
|
1390
1395
|
} = e;
|
|
1391
|
-
const r =
|
|
1392
|
-
return
|
|
1396
|
+
const r = ot(t);
|
|
1397
|
+
return He((o) => {
|
|
1393
1398
|
if (n || !r || !o)
|
|
1394
|
-
return
|
|
1399
|
+
return Br;
|
|
1395
1400
|
const i = {
|
|
1396
1401
|
x: Math.sign(t.x - r.x),
|
|
1397
1402
|
y: Math.sign(t.y - r.y)
|
|
@@ -1408,15 +1413,15 @@ function Or(e) {
|
|
|
1408
1413
|
};
|
|
1409
1414
|
}, [n, t, r]);
|
|
1410
1415
|
}
|
|
1411
|
-
function
|
|
1416
|
+
function Xr(e, t) {
|
|
1412
1417
|
const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
|
|
1413
|
-
return
|
|
1418
|
+
return He((o) => {
|
|
1414
1419
|
var i;
|
|
1415
1420
|
return t == null ? null : (i = r ?? o) != null ? i : null;
|
|
1416
1421
|
}, [r, t]);
|
|
1417
1422
|
}
|
|
1418
|
-
function
|
|
1419
|
-
return
|
|
1423
|
+
function $r(e, t) {
|
|
1424
|
+
return E(() => e.reduce((n, r) => {
|
|
1420
1425
|
const {
|
|
1421
1426
|
sensor: o
|
|
1422
1427
|
} = r, i = o.activators.map((s) => ({
|
|
@@ -1426,31 +1431,31 @@ function Tr(e, t) {
|
|
|
1426
1431
|
return [...n, ...i];
|
|
1427
1432
|
}, []), [e, t]);
|
|
1428
1433
|
}
|
|
1429
|
-
var
|
|
1434
|
+
var Ue;
|
|
1430
1435
|
(function(e) {
|
|
1431
1436
|
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
|
|
1432
|
-
})(
|
|
1437
|
+
})(Ue || (Ue = {}));
|
|
1433
1438
|
var Ct;
|
|
1434
1439
|
(function(e) {
|
|
1435
1440
|
e.Optimized = "optimized";
|
|
1436
1441
|
})(Ct || (Ct = {}));
|
|
1437
|
-
const
|
|
1438
|
-
function
|
|
1442
|
+
const _t = /* @__PURE__ */ new Map();
|
|
1443
|
+
function Yr(e, t) {
|
|
1439
1444
|
let {
|
|
1440
1445
|
dragging: n,
|
|
1441
1446
|
dependencies: r,
|
|
1442
1447
|
config: o
|
|
1443
1448
|
} = t;
|
|
1444
|
-
const [i, s] =
|
|
1449
|
+
const [i, s] = B(null), {
|
|
1445
1450
|
frequency: a,
|
|
1446
1451
|
measure: l,
|
|
1447
|
-
strategy:
|
|
1448
|
-
} = o, d =
|
|
1452
|
+
strategy: c
|
|
1453
|
+
} = o, d = N(e), u = v(), g = Ye(u), f = F(function(b) {
|
|
1449
1454
|
b === void 0 && (b = []), !g.current && s((m) => m === null ? b : m.concat(b.filter((p) => !m.includes(p))));
|
|
1450
|
-
}, [g]), w =
|
|
1451
|
-
if (
|
|
1452
|
-
return
|
|
1453
|
-
if (!b || b ===
|
|
1455
|
+
}, [g]), w = N(null), h = He((b) => {
|
|
1456
|
+
if (u && !n)
|
|
1457
|
+
return _t;
|
|
1458
|
+
if (!b || b === _t || d.current !== e || i != null) {
|
|
1454
1459
|
const m = /* @__PURE__ */ new Map();
|
|
1455
1460
|
for (let p of e) {
|
|
1456
1461
|
if (!p)
|
|
@@ -1459,63 +1464,63 @@ function Nr(e, t) {
|
|
|
1459
1464
|
m.set(p.id, p.rect.current);
|
|
1460
1465
|
continue;
|
|
1461
1466
|
}
|
|
1462
|
-
const
|
|
1463
|
-
p.rect.current =
|
|
1467
|
+
const S = p.node.current, C = S ? new At(l(S), S) : null;
|
|
1468
|
+
p.rect.current = C, C && m.set(p.id, C);
|
|
1464
1469
|
}
|
|
1465
1470
|
return m;
|
|
1466
1471
|
}
|
|
1467
1472
|
return b;
|
|
1468
|
-
}, [e, i, n,
|
|
1469
|
-
return
|
|
1473
|
+
}, [e, i, n, u, l]);
|
|
1474
|
+
return O(() => {
|
|
1470
1475
|
d.current = e;
|
|
1471
|
-
}, [e]),
|
|
1476
|
+
}, [e]), O(
|
|
1472
1477
|
() => {
|
|
1473
|
-
|
|
1478
|
+
u || f();
|
|
1474
1479
|
},
|
|
1475
1480
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1476
|
-
[n,
|
|
1477
|
-
),
|
|
1481
|
+
[n, u]
|
|
1482
|
+
), O(
|
|
1478
1483
|
() => {
|
|
1479
1484
|
i && i.length > 0 && s(null);
|
|
1480
1485
|
},
|
|
1481
1486
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1482
1487
|
[JSON.stringify(i)]
|
|
1483
|
-
),
|
|
1488
|
+
), O(
|
|
1484
1489
|
() => {
|
|
1485
|
-
|
|
1490
|
+
u || typeof a != "number" || w.current !== null || (w.current = setTimeout(() => {
|
|
1486
1491
|
f(), w.current = null;
|
|
1487
1492
|
}, a));
|
|
1488
1493
|
},
|
|
1489
1494
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1490
|
-
[a,
|
|
1495
|
+
[a, u, f, ...r]
|
|
1491
1496
|
), {
|
|
1492
1497
|
droppableRects: h,
|
|
1493
1498
|
measureDroppableContainers: f,
|
|
1494
1499
|
measuringScheduled: i != null
|
|
1495
1500
|
};
|
|
1496
1501
|
function v() {
|
|
1497
|
-
switch (
|
|
1498
|
-
case
|
|
1502
|
+
switch (c) {
|
|
1503
|
+
case Ue.Always:
|
|
1499
1504
|
return !1;
|
|
1500
|
-
case
|
|
1505
|
+
case Ue.BeforeDragging:
|
|
1501
1506
|
return n;
|
|
1502
1507
|
default:
|
|
1503
1508
|
return !n;
|
|
1504
1509
|
}
|
|
1505
1510
|
}
|
|
1506
1511
|
}
|
|
1507
|
-
function
|
|
1508
|
-
return
|
|
1512
|
+
function Tt(e, t) {
|
|
1513
|
+
return He((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
1509
1514
|
}
|
|
1510
|
-
function
|
|
1511
|
-
return
|
|
1515
|
+
function Kr(e, t) {
|
|
1516
|
+
return Tt(e, t);
|
|
1512
1517
|
}
|
|
1513
|
-
function
|
|
1518
|
+
function Ur(e) {
|
|
1514
1519
|
let {
|
|
1515
1520
|
callback: t,
|
|
1516
1521
|
disabled: n
|
|
1517
1522
|
} = e;
|
|
1518
|
-
const r =
|
|
1523
|
+
const r = ut(t), o = E(() => {
|
|
1519
1524
|
if (n || typeof window > "u" || typeof window.MutationObserver > "u")
|
|
1520
1525
|
return;
|
|
1521
1526
|
const {
|
|
@@ -1523,14 +1528,14 @@ function Lr(e) {
|
|
|
1523
1528
|
} = window;
|
|
1524
1529
|
return new i(r);
|
|
1525
1530
|
}, [r, n]);
|
|
1526
|
-
return
|
|
1531
|
+
return O(() => () => o?.disconnect(), [o]), o;
|
|
1527
1532
|
}
|
|
1528
|
-
function
|
|
1533
|
+
function gt(e) {
|
|
1529
1534
|
let {
|
|
1530
1535
|
callback: t,
|
|
1531
1536
|
disabled: n
|
|
1532
1537
|
} = e;
|
|
1533
|
-
const r =
|
|
1538
|
+
const r = ut(t), o = E(
|
|
1534
1539
|
() => {
|
|
1535
1540
|
if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
|
|
1536
1541
|
return;
|
|
@@ -1542,75 +1547,75 @@ function ft(e) {
|
|
|
1542
1547
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1543
1548
|
[n]
|
|
1544
1549
|
);
|
|
1545
|
-
return
|
|
1550
|
+
return O(() => () => o?.disconnect(), [o]), o;
|
|
1546
1551
|
}
|
|
1547
|
-
function
|
|
1548
|
-
return new
|
|
1552
|
+
function Wr(e) {
|
|
1553
|
+
return new At(Oe(e), e);
|
|
1549
1554
|
}
|
|
1550
|
-
function
|
|
1551
|
-
t === void 0 && (t =
|
|
1552
|
-
const [r, o] =
|
|
1555
|
+
function Jt(e, t, n) {
|
|
1556
|
+
t === void 0 && (t = Wr);
|
|
1557
|
+
const [r, o] = B(null);
|
|
1553
1558
|
function i() {
|
|
1554
1559
|
o((l) => {
|
|
1555
1560
|
if (!e)
|
|
1556
1561
|
return null;
|
|
1557
1562
|
if (e.isConnected === !1) {
|
|
1558
|
-
var
|
|
1559
|
-
return (
|
|
1563
|
+
var c;
|
|
1564
|
+
return (c = l ?? n) != null ? c : null;
|
|
1560
1565
|
}
|
|
1561
1566
|
const d = t(e);
|
|
1562
1567
|
return JSON.stringify(l) === JSON.stringify(d) ? l : d;
|
|
1563
1568
|
});
|
|
1564
1569
|
}
|
|
1565
|
-
const s =
|
|
1570
|
+
const s = Ur({
|
|
1566
1571
|
callback(l) {
|
|
1567
1572
|
if (e)
|
|
1568
|
-
for (const
|
|
1573
|
+
for (const c of l) {
|
|
1569
1574
|
const {
|
|
1570
1575
|
type: d,
|
|
1571
|
-
target:
|
|
1572
|
-
} =
|
|
1573
|
-
if (d === "childList" &&
|
|
1576
|
+
target: u
|
|
1577
|
+
} = c;
|
|
1578
|
+
if (d === "childList" && u instanceof HTMLElement && u.contains(e)) {
|
|
1574
1579
|
i();
|
|
1575
1580
|
break;
|
|
1576
1581
|
}
|
|
1577
1582
|
}
|
|
1578
1583
|
}
|
|
1579
|
-
}), a =
|
|
1584
|
+
}), a = gt({
|
|
1580
1585
|
callback: i
|
|
1581
1586
|
});
|
|
1582
|
-
return
|
|
1587
|
+
return Q(() => {
|
|
1583
1588
|
i(), e ? (a?.observe(e), s?.observe(document.body, {
|
|
1584
1589
|
childList: !0,
|
|
1585
1590
|
subtree: !0
|
|
1586
1591
|
})) : (a?.disconnect(), s?.disconnect());
|
|
1587
1592
|
}, [e]), r;
|
|
1588
1593
|
}
|
|
1589
|
-
function
|
|
1590
|
-
const t =
|
|
1591
|
-
return
|
|
1594
|
+
function Hr(e) {
|
|
1595
|
+
const t = Tt(e);
|
|
1596
|
+
return ln(e, t);
|
|
1592
1597
|
}
|
|
1593
|
-
const
|
|
1594
|
-
function
|
|
1595
|
-
const t =
|
|
1596
|
-
return
|
|
1598
|
+
const Gt = [];
|
|
1599
|
+
function Vr(e) {
|
|
1600
|
+
const t = N(e), n = He((r) => e ? r && r !== Gt && e && t.current && e.parentNode === t.current.parentNode ? r : ft(e) : Gt, [e]);
|
|
1601
|
+
return O(() => {
|
|
1597
1602
|
t.current = e;
|
|
1598
1603
|
}, [e]), n;
|
|
1599
1604
|
}
|
|
1600
|
-
function
|
|
1601
|
-
const [t, n] =
|
|
1602
|
-
const s =
|
|
1603
|
-
s && n((a) => a ? (a.set(s,
|
|
1605
|
+
function qr(e) {
|
|
1606
|
+
const [t, n] = B(null), r = N(e), o = F((i) => {
|
|
1607
|
+
const s = yt(i.target);
|
|
1608
|
+
s && n((a) => a ? (a.set(s, Dt(s)), new Map(a)) : null);
|
|
1604
1609
|
}, []);
|
|
1605
|
-
return
|
|
1610
|
+
return O(() => {
|
|
1606
1611
|
const i = r.current;
|
|
1607
1612
|
if (e !== i) {
|
|
1608
1613
|
s(i);
|
|
1609
1614
|
const a = e.map((l) => {
|
|
1610
|
-
const
|
|
1611
|
-
return
|
|
1615
|
+
const c = yt(l);
|
|
1616
|
+
return c ? (c.addEventListener("scroll", o, {
|
|
1612
1617
|
passive: !0
|
|
1613
|
-
}), [
|
|
1618
|
+
}), [c, Dt(c)]) : null;
|
|
1614
1619
|
}).filter((l) => l != null);
|
|
1615
1620
|
n(a.length ? new Map(a) : null), r.current = e;
|
|
1616
1621
|
}
|
|
@@ -1619,30 +1624,30 @@ function Br(e) {
|
|
|
1619
1624
|
};
|
|
1620
1625
|
function s(a) {
|
|
1621
1626
|
a.forEach((l) => {
|
|
1622
|
-
const
|
|
1623
|
-
|
|
1627
|
+
const c = yt(l);
|
|
1628
|
+
c?.removeEventListener("scroll", o);
|
|
1624
1629
|
});
|
|
1625
1630
|
}
|
|
1626
|
-
}, [o, e]),
|
|
1631
|
+
}, [o, e]), E(() => e.length ? t ? Array.from(t.values()).reduce((i, s) => Re(i, s), Z) : vn(e) : Z, [e, t]);
|
|
1627
1632
|
}
|
|
1628
|
-
function
|
|
1633
|
+
function Qt(e, t) {
|
|
1629
1634
|
t === void 0 && (t = []);
|
|
1630
|
-
const n =
|
|
1631
|
-
return
|
|
1635
|
+
const n = N(null);
|
|
1636
|
+
return O(
|
|
1632
1637
|
() => {
|
|
1633
1638
|
n.current = null;
|
|
1634
1639
|
},
|
|
1635
1640
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1636
1641
|
t
|
|
1637
|
-
),
|
|
1638
|
-
const r = e !==
|
|
1642
|
+
), O(() => {
|
|
1643
|
+
const r = e !== Z;
|
|
1639
1644
|
r && !n.current && (n.current = e), !r && n.current && (n.current = null);
|
|
1640
|
-
}, [e]), n.current ?
|
|
1645
|
+
}, [e]), n.current ? Ke(e, n.current) : Z;
|
|
1641
1646
|
}
|
|
1642
|
-
function
|
|
1643
|
-
|
|
1647
|
+
function _r(e) {
|
|
1648
|
+
O(
|
|
1644
1649
|
() => {
|
|
1645
|
-
if (!
|
|
1650
|
+
if (!ct)
|
|
1646
1651
|
return;
|
|
1647
1652
|
const t = e.map((n) => {
|
|
1648
1653
|
let {
|
|
@@ -1665,8 +1670,8 @@ function Fr(e) {
|
|
|
1665
1670
|
})
|
|
1666
1671
|
);
|
|
1667
1672
|
}
|
|
1668
|
-
function
|
|
1669
|
-
return
|
|
1673
|
+
function Jr(e, t) {
|
|
1674
|
+
return E(() => e.reduce((n, r) => {
|
|
1670
1675
|
let {
|
|
1671
1676
|
eventName: o,
|
|
1672
1677
|
handler: i
|
|
@@ -1676,84 +1681,84 @@ function Xr(e, t) {
|
|
|
1676
1681
|
}, n;
|
|
1677
1682
|
}, {}), [e, t]);
|
|
1678
1683
|
}
|
|
1679
|
-
function
|
|
1680
|
-
return
|
|
1684
|
+
function mn(e) {
|
|
1685
|
+
return E(() => e ? xr(e) : null, [e]);
|
|
1681
1686
|
}
|
|
1682
|
-
const
|
|
1683
|
-
function
|
|
1684
|
-
t === void 0 && (t =
|
|
1685
|
-
const [n] = e, r =
|
|
1687
|
+
const Zt = [];
|
|
1688
|
+
function Gr(e, t) {
|
|
1689
|
+
t === void 0 && (t = Oe);
|
|
1690
|
+
const [n] = e, r = mn(n ? X(n) : null), [o, i] = B(Zt);
|
|
1686
1691
|
function s() {
|
|
1687
|
-
i(() => e.length ? e.map((l) =>
|
|
1692
|
+
i(() => e.length ? e.map((l) => gn(l) ? r : new At(t(l), l)) : Zt);
|
|
1688
1693
|
}
|
|
1689
|
-
const a =
|
|
1694
|
+
const a = gt({
|
|
1690
1695
|
callback: s
|
|
1691
1696
|
});
|
|
1692
|
-
return
|
|
1697
|
+
return Q(() => {
|
|
1693
1698
|
a?.disconnect(), s(), e.forEach((l) => a?.observe(l));
|
|
1694
1699
|
}, [e]), o;
|
|
1695
1700
|
}
|
|
1696
|
-
function
|
|
1701
|
+
function yn(e) {
|
|
1697
1702
|
if (!e)
|
|
1698
1703
|
return null;
|
|
1699
1704
|
if (e.children.length > 1)
|
|
1700
1705
|
return e;
|
|
1701
1706
|
const t = e.children[0];
|
|
1702
|
-
return
|
|
1707
|
+
return We(t) ? t : e;
|
|
1703
1708
|
}
|
|
1704
|
-
function
|
|
1709
|
+
function Qr(e) {
|
|
1705
1710
|
let {
|
|
1706
1711
|
measure: t
|
|
1707
1712
|
} = e;
|
|
1708
|
-
const [n, r] =
|
|
1713
|
+
const [n, r] = B(null), o = F((c) => {
|
|
1709
1714
|
for (const {
|
|
1710
1715
|
target: d
|
|
1711
|
-
} of
|
|
1712
|
-
if (
|
|
1713
|
-
r((
|
|
1716
|
+
} of c)
|
|
1717
|
+
if (We(d)) {
|
|
1718
|
+
r((u) => {
|
|
1714
1719
|
const g = t(d);
|
|
1715
|
-
return
|
|
1716
|
-
...
|
|
1720
|
+
return u ? {
|
|
1721
|
+
...u,
|
|
1717
1722
|
width: g.width,
|
|
1718
1723
|
height: g.height
|
|
1719
1724
|
} : g;
|
|
1720
1725
|
});
|
|
1721
1726
|
break;
|
|
1722
1727
|
}
|
|
1723
|
-
}, [t]), i =
|
|
1728
|
+
}, [t]), i = gt({
|
|
1724
1729
|
callback: o
|
|
1725
|
-
}), s = F((
|
|
1726
|
-
const d =
|
|
1730
|
+
}), s = F((c) => {
|
|
1731
|
+
const d = yn(c);
|
|
1727
1732
|
i?.disconnect(), d && i?.observe(d), r(d ? t(d) : null);
|
|
1728
|
-
}, [t, i]), [a, l] =
|
|
1729
|
-
return
|
|
1733
|
+
}, [t, i]), [a, l] = rt(s);
|
|
1734
|
+
return E(() => ({
|
|
1730
1735
|
nodeRef: a,
|
|
1731
1736
|
rect: n,
|
|
1732
1737
|
setRef: l
|
|
1733
1738
|
}), [n, a, l]);
|
|
1734
1739
|
}
|
|
1735
|
-
const
|
|
1736
|
-
sensor:
|
|
1740
|
+
const Zr = [{
|
|
1741
|
+
sensor: Nt,
|
|
1737
1742
|
options: {}
|
|
1738
1743
|
}, {
|
|
1739
|
-
sensor:
|
|
1744
|
+
sensor: It,
|
|
1740
1745
|
options: {}
|
|
1741
|
-
}],
|
|
1746
|
+
}], eo = {
|
|
1742
1747
|
current: {}
|
|
1743
|
-
},
|
|
1748
|
+
}, nt = {
|
|
1744
1749
|
draggable: {
|
|
1745
|
-
measure:
|
|
1750
|
+
measure: Wt
|
|
1746
1751
|
},
|
|
1747
1752
|
droppable: {
|
|
1748
|
-
measure:
|
|
1749
|
-
strategy:
|
|
1753
|
+
measure: Wt,
|
|
1754
|
+
strategy: Ue.WhileDragging,
|
|
1750
1755
|
frequency: Ct.Optimized
|
|
1751
1756
|
},
|
|
1752
1757
|
dragOverlay: {
|
|
1753
|
-
measure:
|
|
1758
|
+
measure: Oe
|
|
1754
1759
|
}
|
|
1755
1760
|
};
|
|
1756
|
-
class
|
|
1761
|
+
class $e extends Map {
|
|
1757
1762
|
get(t) {
|
|
1758
1763
|
var n;
|
|
1759
1764
|
return t != null && (n = super.get(t)) != null ? n : void 0;
|
|
@@ -1774,7 +1779,7 @@ class Xe extends Map {
|
|
|
1774
1779
|
return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
|
|
1775
1780
|
}
|
|
1776
1781
|
}
|
|
1777
|
-
const
|
|
1782
|
+
const to = {
|
|
1778
1783
|
activatorEvent: null,
|
|
1779
1784
|
active: null,
|
|
1780
1785
|
activeNode: null,
|
|
@@ -1783,22 +1788,22 @@ const Ur = {
|
|
|
1783
1788
|
containerNodeRect: null,
|
|
1784
1789
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
1785
1790
|
droppableRects: /* @__PURE__ */ new Map(),
|
|
1786
|
-
droppableContainers: /* @__PURE__ */ new
|
|
1791
|
+
droppableContainers: /* @__PURE__ */ new $e(),
|
|
1787
1792
|
over: null,
|
|
1788
1793
|
dragOverlay: {
|
|
1789
1794
|
nodeRef: {
|
|
1790
1795
|
current: null
|
|
1791
1796
|
},
|
|
1792
1797
|
rect: null,
|
|
1793
|
-
setRef:
|
|
1798
|
+
setRef: st
|
|
1794
1799
|
},
|
|
1795
1800
|
scrollableAncestors: [],
|
|
1796
1801
|
scrollableAncestorRects: [],
|
|
1797
|
-
measuringConfiguration:
|
|
1798
|
-
measureDroppableContainers:
|
|
1802
|
+
measuringConfiguration: nt,
|
|
1803
|
+
measureDroppableContainers: st,
|
|
1799
1804
|
windowRect: null,
|
|
1800
1805
|
measuringScheduled: !1
|
|
1801
|
-
},
|
|
1806
|
+
}, wn = {
|
|
1802
1807
|
activatorEvent: null,
|
|
1803
1808
|
activators: [],
|
|
1804
1809
|
active: null,
|
|
@@ -1806,12 +1811,12 @@ const Ur = {
|
|
|
1806
1811
|
ariaDescribedById: {
|
|
1807
1812
|
draggable: ""
|
|
1808
1813
|
},
|
|
1809
|
-
dispatch:
|
|
1814
|
+
dispatch: st,
|
|
1810
1815
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
1811
1816
|
over: null,
|
|
1812
|
-
measureDroppableContainers:
|
|
1813
|
-
},
|
|
1814
|
-
function
|
|
1817
|
+
measureDroppableContainers: st
|
|
1818
|
+
}, qe = /* @__PURE__ */ Ee(wn), xn = /* @__PURE__ */ Ee(to);
|
|
1819
|
+
function no() {
|
|
1815
1820
|
return {
|
|
1816
1821
|
draggable: {
|
|
1817
1822
|
active: null,
|
|
@@ -1826,11 +1831,11 @@ function Wr() {
|
|
|
1826
1831
|
}
|
|
1827
1832
|
},
|
|
1828
1833
|
droppable: {
|
|
1829
|
-
containers: new
|
|
1834
|
+
containers: new $e()
|
|
1830
1835
|
}
|
|
1831
1836
|
};
|
|
1832
1837
|
}
|
|
1833
|
-
function
|
|
1838
|
+
function ro(e, t) {
|
|
1834
1839
|
switch (t.type) {
|
|
1835
1840
|
case P.DragStart:
|
|
1836
1841
|
return {
|
|
@@ -1874,7 +1879,7 @@ function Hr(e, t) {
|
|
|
1874
1879
|
element: n
|
|
1875
1880
|
} = t, {
|
|
1876
1881
|
id: r
|
|
1877
|
-
} = n, o = new
|
|
1882
|
+
} = n, o = new $e(e.droppable.containers);
|
|
1878
1883
|
return o.set(r, n), {
|
|
1879
1884
|
...e,
|
|
1880
1885
|
droppable: {
|
|
@@ -1891,7 +1896,7 @@ function Hr(e, t) {
|
|
|
1891
1896
|
} = t, i = e.droppable.containers.get(n);
|
|
1892
1897
|
if (!i || r !== i.key)
|
|
1893
1898
|
return e;
|
|
1894
|
-
const s = new
|
|
1899
|
+
const s = new $e(e.droppable.containers);
|
|
1895
1900
|
return s.set(n, {
|
|
1896
1901
|
...i,
|
|
1897
1902
|
disabled: o
|
|
@@ -1910,7 +1915,7 @@ function Hr(e, t) {
|
|
|
1910
1915
|
} = t, o = e.droppable.containers.get(n);
|
|
1911
1916
|
if (!o || r !== o.key)
|
|
1912
1917
|
return e;
|
|
1913
|
-
const i = new
|
|
1918
|
+
const i = new $e(e.droppable.containers);
|
|
1914
1919
|
return i.delete(n), {
|
|
1915
1920
|
...e,
|
|
1916
1921
|
droppable: {
|
|
@@ -1923,7 +1928,7 @@ function Hr(e, t) {
|
|
|
1923
1928
|
return e;
|
|
1924
1929
|
}
|
|
1925
1930
|
}
|
|
1926
|
-
function
|
|
1931
|
+
function oo(e) {
|
|
1927
1932
|
let {
|
|
1928
1933
|
disabled: t
|
|
1929
1934
|
} = e;
|
|
@@ -1931,27 +1936,27 @@ function Vr(e) {
|
|
|
1931
1936
|
active: n,
|
|
1932
1937
|
activatorEvent: r,
|
|
1933
1938
|
draggableNodes: o
|
|
1934
|
-
} =
|
|
1935
|
-
return
|
|
1939
|
+
} = ce(qe), i = ot(r), s = ot(n?.id);
|
|
1940
|
+
return O(() => {
|
|
1936
1941
|
if (!t && !r && i && s != null) {
|
|
1937
|
-
if (!
|
|
1942
|
+
if (!dt(i) || document.activeElement === i.target)
|
|
1938
1943
|
return;
|
|
1939
1944
|
const a = o.get(s);
|
|
1940
1945
|
if (!a)
|
|
1941
1946
|
return;
|
|
1942
1947
|
const {
|
|
1943
1948
|
activatorNode: l,
|
|
1944
|
-
node:
|
|
1949
|
+
node: c
|
|
1945
1950
|
} = a;
|
|
1946
|
-
if (!l.current && !
|
|
1951
|
+
if (!l.current && !c.current)
|
|
1947
1952
|
return;
|
|
1948
1953
|
requestAnimationFrame(() => {
|
|
1949
|
-
for (const d of [l.current,
|
|
1954
|
+
for (const d of [l.current, c.current]) {
|
|
1950
1955
|
if (!d)
|
|
1951
1956
|
continue;
|
|
1952
|
-
const
|
|
1953
|
-
if (
|
|
1954
|
-
|
|
1957
|
+
const u = Qn(d);
|
|
1958
|
+
if (u) {
|
|
1959
|
+
u.focus();
|
|
1955
1960
|
break;
|
|
1956
1961
|
}
|
|
1957
1962
|
}
|
|
@@ -1959,7 +1964,7 @@ function Vr(e) {
|
|
|
1959
1964
|
}
|
|
1960
1965
|
}, [r, t, o, s, i]), null;
|
|
1961
1966
|
}
|
|
1962
|
-
function
|
|
1967
|
+
function Dn(e, t) {
|
|
1963
1968
|
let {
|
|
1964
1969
|
transform: n,
|
|
1965
1970
|
...r
|
|
@@ -1969,19 +1974,19 @@ function bn(e, t) {
|
|
|
1969
1974
|
...r
|
|
1970
1975
|
}), n) : n;
|
|
1971
1976
|
}
|
|
1972
|
-
function
|
|
1973
|
-
return
|
|
1977
|
+
function io(e) {
|
|
1978
|
+
return E(
|
|
1974
1979
|
() => ({
|
|
1975
1980
|
draggable: {
|
|
1976
|
-
...
|
|
1981
|
+
...nt.draggable,
|
|
1977
1982
|
...e?.draggable
|
|
1978
1983
|
},
|
|
1979
1984
|
droppable: {
|
|
1980
|
-
...
|
|
1985
|
+
...nt.droppable,
|
|
1981
1986
|
...e?.droppable
|
|
1982
1987
|
},
|
|
1983
1988
|
dragOverlay: {
|
|
1984
|
-
...
|
|
1989
|
+
...nt.dragOverlay,
|
|
1985
1990
|
...e?.dragOverlay
|
|
1986
1991
|
}
|
|
1987
1992
|
}),
|
|
@@ -1989,104 +1994,104 @@ function qr(e) {
|
|
|
1989
1994
|
[e?.draggable, e?.droppable, e?.dragOverlay]
|
|
1990
1995
|
);
|
|
1991
1996
|
}
|
|
1992
|
-
function
|
|
1997
|
+
function so(e) {
|
|
1993
1998
|
let {
|
|
1994
1999
|
activeNode: t,
|
|
1995
2000
|
measure: n,
|
|
1996
2001
|
initialRect: r,
|
|
1997
2002
|
config: o = !0
|
|
1998
2003
|
} = e;
|
|
1999
|
-
const i =
|
|
2004
|
+
const i = N(!1), {
|
|
2000
2005
|
x: s,
|
|
2001
2006
|
y: a
|
|
2002
2007
|
} = typeof o == "boolean" ? {
|
|
2003
2008
|
x: o,
|
|
2004
2009
|
y: o
|
|
2005
2010
|
} : o;
|
|
2006
|
-
|
|
2011
|
+
Q(() => {
|
|
2007
2012
|
if (!s && !a || !t) {
|
|
2008
2013
|
i.current = !1;
|
|
2009
2014
|
return;
|
|
2010
2015
|
}
|
|
2011
2016
|
if (i.current || !r)
|
|
2012
2017
|
return;
|
|
2013
|
-
const
|
|
2014
|
-
if (!
|
|
2018
|
+
const c = t?.node.current;
|
|
2019
|
+
if (!c || c.isConnected === !1)
|
|
2015
2020
|
return;
|
|
2016
|
-
const d = n(
|
|
2017
|
-
if (s || (
|
|
2018
|
-
const g =
|
|
2021
|
+
const d = n(c), u = ln(d, r);
|
|
2022
|
+
if (s || (u.x = 0), a || (u.y = 0), i.current = !0, Math.abs(u.x) > 0 || Math.abs(u.y) > 0) {
|
|
2023
|
+
const g = un(c);
|
|
2019
2024
|
g && g.scrollBy({
|
|
2020
|
-
top:
|
|
2021
|
-
left:
|
|
2025
|
+
top: u.y,
|
|
2026
|
+
left: u.x
|
|
2022
2027
|
});
|
|
2023
2028
|
}
|
|
2024
2029
|
}, [t, s, a, r, n]);
|
|
2025
2030
|
}
|
|
2026
|
-
const
|
|
2027
|
-
...
|
|
2031
|
+
const ht = /* @__PURE__ */ Ee({
|
|
2032
|
+
...Z,
|
|
2028
2033
|
scaleX: 1,
|
|
2029
2034
|
scaleY: 1
|
|
2030
2035
|
});
|
|
2031
|
-
var
|
|
2036
|
+
var pe;
|
|
2032
2037
|
(function(e) {
|
|
2033
2038
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
2034
|
-
})(
|
|
2035
|
-
const
|
|
2039
|
+
})(pe || (pe = {}));
|
|
2040
|
+
const ao = /* @__PURE__ */ Fn(function(t) {
|
|
2036
2041
|
var n, r, o, i;
|
|
2037
2042
|
let {
|
|
2038
2043
|
id: s,
|
|
2039
2044
|
accessibility: a,
|
|
2040
2045
|
autoScroll: l = !0,
|
|
2041
|
-
children:
|
|
2042
|
-
sensors: d =
|
|
2043
|
-
collisionDetection:
|
|
2046
|
+
children: c,
|
|
2047
|
+
sensors: d = Zr,
|
|
2048
|
+
collisionDetection: u = vr,
|
|
2044
2049
|
measuring: g,
|
|
2045
2050
|
modifiers: f,
|
|
2046
2051
|
...w
|
|
2047
2052
|
} = t;
|
|
2048
|
-
const h =
|
|
2053
|
+
const h = Xn(ro, void 0, no), [v, b] = h, [m, p] = or(), [S, C] = B(pe.Uninitialized), R = S === pe.Initialized, {
|
|
2049
2054
|
draggable: {
|
|
2050
2055
|
active: y,
|
|
2051
2056
|
nodes: x,
|
|
2052
|
-
translate:
|
|
2057
|
+
translate: T
|
|
2053
2058
|
},
|
|
2054
2059
|
droppable: {
|
|
2055
2060
|
containers: L
|
|
2056
2061
|
}
|
|
2057
|
-
} = v,
|
|
2062
|
+
} = v, I = y != null ? x.get(y) : null, J = N({
|
|
2058
2063
|
initial: null,
|
|
2059
2064
|
translated: null
|
|
2060
|
-
}), G =
|
|
2061
|
-
var
|
|
2065
|
+
}), G = E(() => {
|
|
2066
|
+
var j;
|
|
2062
2067
|
return y != null ? {
|
|
2063
2068
|
id: y,
|
|
2064
2069
|
// It's possible for the active node to unmount while dragging
|
|
2065
|
-
data: (
|
|
2070
|
+
data: (j = I?.data) != null ? j : eo,
|
|
2066
2071
|
rect: J
|
|
2067
2072
|
} : null;
|
|
2068
|
-
}, [y,
|
|
2069
|
-
droppableRects:
|
|
2070
|
-
measureDroppableContainers:
|
|
2071
|
-
measuringScheduled:
|
|
2072
|
-
} =
|
|
2073
|
+
}, [y, I]), ee = N(null), [Ne, _e] = B(null), [Y, Je] = B(null), oe = Ye(w, Object.values(w)), Te = Ve("DndDescribedBy", s), Ge = E(() => L.getEnabled(), [L]), $ = io(g), {
|
|
2074
|
+
droppableRects: ie,
|
|
2075
|
+
measureDroppableContainers: me,
|
|
2076
|
+
measuringScheduled: Me
|
|
2077
|
+
} = Yr(Ge, {
|
|
2073
2078
|
dragging: R,
|
|
2074
|
-
dependencies: [
|
|
2075
|
-
config:
|
|
2076
|
-
}), H =
|
|
2077
|
-
|
|
2079
|
+
dependencies: [T.x, T.y],
|
|
2080
|
+
config: $.droppable
|
|
2081
|
+
}), H = Xr(x, y), Qe = E(() => Y ? it(Y) : null, [Y]), ue = jn(), se = Kr(H, $.draggable.measure);
|
|
2082
|
+
so({
|
|
2078
2083
|
activeNode: y != null ? x.get(y) : null,
|
|
2079
|
-
config:
|
|
2080
|
-
initialRect:
|
|
2081
|
-
measure:
|
|
2084
|
+
config: ue.layoutShiftCompensation,
|
|
2085
|
+
initialRect: se,
|
|
2086
|
+
measure: $.draggable.measure
|
|
2082
2087
|
});
|
|
2083
|
-
const
|
|
2088
|
+
const A = Jt(H, $.draggable.measure, se), Le = Jt(H ? H.parentElement : null), te = N({
|
|
2084
2089
|
activatorEvent: null,
|
|
2085
2090
|
active: null,
|
|
2086
2091
|
activeNode: H,
|
|
2087
2092
|
collisionRect: null,
|
|
2088
2093
|
collisions: null,
|
|
2089
|
-
droppableRects:
|
|
2094
|
+
droppableRects: ie,
|
|
2090
2095
|
draggableNodes: x,
|
|
2091
2096
|
draggingNode: null,
|
|
2092
2097
|
draggingNodeRect: null,
|
|
@@ -2094,105 +2099,105 @@ const No = /* @__PURE__ */ Pn(function(t) {
|
|
|
2094
2099
|
over: null,
|
|
2095
2100
|
scrollableAncestors: [],
|
|
2096
2101
|
scrollAdjustedTranslate: null
|
|
2097
|
-
}),
|
|
2098
|
-
measure:
|
|
2099
|
-
}),
|
|
2102
|
+
}), ye = L.getNodeFor((n = te.current.over) == null ? void 0 : n.id), ae = Qr({
|
|
2103
|
+
measure: $.dragOverlay.measure
|
|
2104
|
+
}), we = (r = ae.nodeRef.current) != null ? r : H, xe = R ? (o = ae.rect) != null ? o : A : null, Pt = !!(ae.nodeRef.current && ae.rect), kt = Hr(Pt ? null : A), vt = mn(we ? X(we) : null), de = Vr(R ? ye ?? H : null), Ze = Gr(de), et = Dn(f, {
|
|
2100
2105
|
transform: {
|
|
2101
|
-
x:
|
|
2102
|
-
y:
|
|
2106
|
+
x: T.x - kt.x,
|
|
2107
|
+
y: T.y - kt.y,
|
|
2103
2108
|
scaleX: 1,
|
|
2104
2109
|
scaleY: 1
|
|
2105
2110
|
},
|
|
2106
2111
|
activatorEvent: Y,
|
|
2107
2112
|
active: G,
|
|
2108
|
-
activeNodeRect:
|
|
2109
|
-
containerNodeRect:
|
|
2110
|
-
draggingNodeRect:
|
|
2111
|
-
over:
|
|
2112
|
-
overlayNodeRect:
|
|
2113
|
-
scrollableAncestors:
|
|
2114
|
-
scrollableAncestorRects:
|
|
2115
|
-
windowRect:
|
|
2116
|
-
}),
|
|
2113
|
+
activeNodeRect: A,
|
|
2114
|
+
containerNodeRect: Le,
|
|
2115
|
+
draggingNodeRect: xe,
|
|
2116
|
+
over: te.current.over,
|
|
2117
|
+
overlayNodeRect: ae.rect,
|
|
2118
|
+
scrollableAncestors: de,
|
|
2119
|
+
scrollableAncestorRects: Ze,
|
|
2120
|
+
windowRect: vt
|
|
2121
|
+
}), zt = Qe ? Re(Qe, T) : null, jt = qr(de), Nn = Qt(jt), Tn = Qt(jt, [A]), De = Re(et, Nn), Se = xe ? mr(xe, et) : null, Pe = G && Se ? u({
|
|
2117
2122
|
active: G,
|
|
2118
|
-
collisionRect:
|
|
2119
|
-
droppableRects:
|
|
2123
|
+
collisionRect: Se,
|
|
2124
|
+
droppableRects: ie,
|
|
2120
2125
|
droppableContainers: Ge,
|
|
2121
|
-
pointerCoordinates:
|
|
2122
|
-
}) : null,
|
|
2123
|
-
(
|
|
2126
|
+
pointerCoordinates: zt
|
|
2127
|
+
}) : null, Bt = an(Pe, "id"), [fe, Ft] = B(null), Mn = Pt ? et : Re(et, Tn), Ln = pr(Mn, (i = fe?.rect) != null ? i : null, A), pt = N(null), Xt = F(
|
|
2128
|
+
(j, K) => {
|
|
2124
2129
|
let {
|
|
2125
2130
|
sensor: U,
|
|
2126
|
-
options:
|
|
2131
|
+
options: ge
|
|
2127
2132
|
} = K;
|
|
2128
|
-
if (
|
|
2133
|
+
if (ee.current == null)
|
|
2129
2134
|
return;
|
|
2130
|
-
const V = x.get(
|
|
2135
|
+
const V = x.get(ee.current);
|
|
2131
2136
|
if (!V)
|
|
2132
2137
|
return;
|
|
2133
|
-
const W =
|
|
2134
|
-
active:
|
|
2138
|
+
const W = j.nativeEvent, ne = new U({
|
|
2139
|
+
active: ee.current,
|
|
2135
2140
|
activeNode: V,
|
|
2136
2141
|
event: W,
|
|
2137
|
-
options:
|
|
2142
|
+
options: ge,
|
|
2138
2143
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
2139
2144
|
// otherwise they are frozen in time with the stale arguments
|
|
2140
|
-
context:
|
|
2145
|
+
context: te,
|
|
2141
2146
|
onAbort(z) {
|
|
2142
2147
|
if (!x.get(z))
|
|
2143
2148
|
return;
|
|
2144
2149
|
const {
|
|
2145
|
-
onDragAbort:
|
|
2146
|
-
} =
|
|
2150
|
+
onDragAbort: re
|
|
2151
|
+
} = oe.current, le = {
|
|
2147
2152
|
id: z
|
|
2148
2153
|
};
|
|
2149
|
-
|
|
2154
|
+
re?.(le), m({
|
|
2150
2155
|
type: "onDragAbort",
|
|
2151
|
-
event:
|
|
2156
|
+
event: le
|
|
2152
2157
|
});
|
|
2153
2158
|
},
|
|
2154
|
-
onPending(z,
|
|
2159
|
+
onPending(z, he, re, le) {
|
|
2155
2160
|
if (!x.get(z))
|
|
2156
2161
|
return;
|
|
2157
2162
|
const {
|
|
2158
|
-
onDragPending:
|
|
2159
|
-
} =
|
|
2163
|
+
onDragPending: ze
|
|
2164
|
+
} = oe.current, ve = {
|
|
2160
2165
|
id: z,
|
|
2161
|
-
constraint:
|
|
2162
|
-
initialCoordinates:
|
|
2163
|
-
offset:
|
|
2166
|
+
constraint: he,
|
|
2167
|
+
initialCoordinates: re,
|
|
2168
|
+
offset: le
|
|
2164
2169
|
};
|
|
2165
|
-
|
|
2170
|
+
ze?.(ve), m({
|
|
2166
2171
|
type: "onDragPending",
|
|
2167
|
-
event:
|
|
2172
|
+
event: ve
|
|
2168
2173
|
});
|
|
2169
2174
|
},
|
|
2170
2175
|
onStart(z) {
|
|
2171
|
-
const
|
|
2172
|
-
if (
|
|
2176
|
+
const he = ee.current;
|
|
2177
|
+
if (he == null)
|
|
2173
2178
|
return;
|
|
2174
|
-
const
|
|
2175
|
-
if (!
|
|
2179
|
+
const re = x.get(he);
|
|
2180
|
+
if (!re)
|
|
2176
2181
|
return;
|
|
2177
2182
|
const {
|
|
2178
|
-
onDragStart:
|
|
2179
|
-
} =
|
|
2183
|
+
onDragStart: le
|
|
2184
|
+
} = oe.current, ke = {
|
|
2180
2185
|
activatorEvent: W,
|
|
2181
2186
|
active: {
|
|
2182
|
-
id:
|
|
2183
|
-
data:
|
|
2187
|
+
id: he,
|
|
2188
|
+
data: re.data,
|
|
2184
2189
|
rect: J
|
|
2185
2190
|
}
|
|
2186
2191
|
};
|
|
2187
|
-
|
|
2188
|
-
|
|
2192
|
+
Be.unstable_batchedUpdates(() => {
|
|
2193
|
+
le?.(ke), C(pe.Initializing), b({
|
|
2189
2194
|
type: P.DragStart,
|
|
2190
2195
|
initialCoordinates: z,
|
|
2191
|
-
active:
|
|
2196
|
+
active: he
|
|
2192
2197
|
}), m({
|
|
2193
2198
|
type: "onDragStart",
|
|
2194
|
-
event:
|
|
2195
|
-
}),
|
|
2199
|
+
event: ke
|
|
2200
|
+
}), _e(pt.current), Je(W);
|
|
2196
2201
|
});
|
|
2197
2202
|
},
|
|
2198
2203
|
onMove(z) {
|
|
@@ -2204,38 +2209,38 @@ const No = /* @__PURE__ */ Pn(function(t) {
|
|
|
2204
2209
|
onEnd: Ce(P.DragEnd),
|
|
2205
2210
|
onCancel: Ce(P.DragCancel)
|
|
2206
2211
|
});
|
|
2207
|
-
|
|
2212
|
+
pt.current = ne;
|
|
2208
2213
|
function Ce(z) {
|
|
2209
2214
|
return async function() {
|
|
2210
2215
|
const {
|
|
2211
|
-
active:
|
|
2212
|
-
collisions:
|
|
2213
|
-
over:
|
|
2214
|
-
scrollAdjustedTranslate:
|
|
2215
|
-
} =
|
|
2216
|
-
let
|
|
2217
|
-
if (
|
|
2216
|
+
active: re,
|
|
2217
|
+
collisions: le,
|
|
2218
|
+
over: ke,
|
|
2219
|
+
scrollAdjustedTranslate: ze
|
|
2220
|
+
} = te.current;
|
|
2221
|
+
let ve = null;
|
|
2222
|
+
if (re && ze) {
|
|
2218
2223
|
const {
|
|
2219
|
-
cancelDrop:
|
|
2220
|
-
} =
|
|
2221
|
-
|
|
2224
|
+
cancelDrop: je
|
|
2225
|
+
} = oe.current;
|
|
2226
|
+
ve = {
|
|
2222
2227
|
activatorEvent: W,
|
|
2223
|
-
active:
|
|
2224
|
-
collisions:
|
|
2225
|
-
delta:
|
|
2226
|
-
over:
|
|
2227
|
-
}, z === P.DragEnd && typeof
|
|
2228
|
+
active: re,
|
|
2229
|
+
collisions: le,
|
|
2230
|
+
delta: ze,
|
|
2231
|
+
over: ke
|
|
2232
|
+
}, z === P.DragEnd && typeof je == "function" && await Promise.resolve(je(ve)) && (z = P.DragCancel);
|
|
2228
2233
|
}
|
|
2229
|
-
|
|
2234
|
+
ee.current = null, Be.unstable_batchedUpdates(() => {
|
|
2230
2235
|
b({
|
|
2231
2236
|
type: z
|
|
2232
|
-
}),
|
|
2233
|
-
const
|
|
2234
|
-
if (
|
|
2235
|
-
const
|
|
2236
|
-
|
|
2237
|
-
type:
|
|
2238
|
-
event:
|
|
2237
|
+
}), C(pe.Uninitialized), Ft(null), _e(null), Je(null), pt.current = null;
|
|
2238
|
+
const je = z === P.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2239
|
+
if (ve) {
|
|
2240
|
+
const bt = oe.current[je];
|
|
2241
|
+
bt?.(ve), m({
|
|
2242
|
+
type: je,
|
|
2243
|
+
event: ve
|
|
2239
2244
|
});
|
|
2240
2245
|
}
|
|
2241
2246
|
});
|
|
@@ -2244,75 +2249,75 @@ const No = /* @__PURE__ */ Pn(function(t) {
|
|
|
2244
2249
|
},
|
|
2245
2250
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2246
2251
|
[x]
|
|
2247
|
-
),
|
|
2248
|
-
const V = U.nativeEvent, W = x.get(
|
|
2252
|
+
), Pn = F((j, K) => (U, ge) => {
|
|
2253
|
+
const V = U.nativeEvent, W = x.get(ge);
|
|
2249
2254
|
if (
|
|
2250
2255
|
// Another sensor is already instantiating
|
|
2251
|
-
|
|
2256
|
+
ee.current !== null || // No active draggable
|
|
2252
2257
|
!W || // Event has already been captured
|
|
2253
2258
|
V.dndKit || V.defaultPrevented
|
|
2254
2259
|
)
|
|
2255
2260
|
return;
|
|
2256
|
-
const
|
|
2261
|
+
const ne = {
|
|
2257
2262
|
active: W
|
|
2258
2263
|
};
|
|
2259
|
-
|
|
2264
|
+
j(U, K.options, ne) === !0 && (V.dndKit = {
|
|
2260
2265
|
capturedBy: K.sensor
|
|
2261
|
-
},
|
|
2262
|
-
}, [x,
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
}, [
|
|
2266
|
+
}, ee.current = ge, Xt(U, K));
|
|
2267
|
+
}, [x, Xt]), $t = $r(d, Pn);
|
|
2268
|
+
_r(d), Q(() => {
|
|
2269
|
+
A && S === pe.Initializing && C(pe.Initialized);
|
|
2270
|
+
}, [A, S]), O(
|
|
2266
2271
|
() => {
|
|
2267
2272
|
const {
|
|
2268
|
-
onDragMove:
|
|
2269
|
-
} =
|
|
2273
|
+
onDragMove: j
|
|
2274
|
+
} = oe.current, {
|
|
2270
2275
|
active: K,
|
|
2271
2276
|
activatorEvent: U,
|
|
2272
|
-
collisions:
|
|
2277
|
+
collisions: ge,
|
|
2273
2278
|
over: V
|
|
2274
|
-
} =
|
|
2279
|
+
} = te.current;
|
|
2275
2280
|
if (!K || !U)
|
|
2276
2281
|
return;
|
|
2277
2282
|
const W = {
|
|
2278
2283
|
active: K,
|
|
2279
2284
|
activatorEvent: U,
|
|
2280
|
-
collisions:
|
|
2285
|
+
collisions: ge,
|
|
2281
2286
|
delta: {
|
|
2282
|
-
x:
|
|
2283
|
-
y:
|
|
2287
|
+
x: De.x,
|
|
2288
|
+
y: De.y
|
|
2284
2289
|
},
|
|
2285
2290
|
over: V
|
|
2286
2291
|
};
|
|
2287
|
-
|
|
2288
|
-
|
|
2292
|
+
Be.unstable_batchedUpdates(() => {
|
|
2293
|
+
j?.(W), m({
|
|
2289
2294
|
type: "onDragMove",
|
|
2290
2295
|
event: W
|
|
2291
2296
|
});
|
|
2292
2297
|
});
|
|
2293
2298
|
},
|
|
2294
2299
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2295
|
-
[
|
|
2296
|
-
),
|
|
2300
|
+
[De.x, De.y]
|
|
2301
|
+
), O(
|
|
2297
2302
|
() => {
|
|
2298
2303
|
const {
|
|
2299
|
-
active:
|
|
2304
|
+
active: j,
|
|
2300
2305
|
activatorEvent: K,
|
|
2301
2306
|
collisions: U,
|
|
2302
|
-
droppableContainers:
|
|
2307
|
+
droppableContainers: ge,
|
|
2303
2308
|
scrollAdjustedTranslate: V
|
|
2304
|
-
} =
|
|
2305
|
-
if (!
|
|
2309
|
+
} = te.current;
|
|
2310
|
+
if (!j || ee.current == null || !K || !V)
|
|
2306
2311
|
return;
|
|
2307
2312
|
const {
|
|
2308
2313
|
onDragOver: W
|
|
2309
|
-
} =
|
|
2310
|
-
id:
|
|
2311
|
-
rect:
|
|
2312
|
-
data:
|
|
2313
|
-
disabled:
|
|
2314
|
+
} = oe.current, ne = ge.get(Bt), Ce = ne && ne.rect.current ? {
|
|
2315
|
+
id: ne.id,
|
|
2316
|
+
rect: ne.rect.current,
|
|
2317
|
+
data: ne.data,
|
|
2318
|
+
disabled: ne.disabled
|
|
2314
2319
|
} : null, z = {
|
|
2315
|
-
active:
|
|
2320
|
+
active: j,
|
|
2316
2321
|
activatorEvent: K,
|
|
2317
2322
|
collisions: U,
|
|
2318
2323
|
delta: {
|
|
@@ -2321,89 +2326,89 @@ const No = /* @__PURE__ */ Pn(function(t) {
|
|
|
2321
2326
|
},
|
|
2322
2327
|
over: Ce
|
|
2323
2328
|
};
|
|
2324
|
-
|
|
2325
|
-
|
|
2329
|
+
Be.unstable_batchedUpdates(() => {
|
|
2330
|
+
Ft(Ce), W?.(z), m({
|
|
2326
2331
|
type: "onDragOver",
|
|
2327
2332
|
event: z
|
|
2328
2333
|
});
|
|
2329
2334
|
});
|
|
2330
2335
|
},
|
|
2331
2336
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2332
|
-
[
|
|
2333
|
-
),
|
|
2334
|
-
|
|
2337
|
+
[Bt]
|
|
2338
|
+
), Q(() => {
|
|
2339
|
+
te.current = {
|
|
2335
2340
|
activatorEvent: Y,
|
|
2336
2341
|
active: G,
|
|
2337
2342
|
activeNode: H,
|
|
2338
|
-
collisionRect:
|
|
2339
|
-
collisions:
|
|
2340
|
-
droppableRects:
|
|
2343
|
+
collisionRect: Se,
|
|
2344
|
+
collisions: Pe,
|
|
2345
|
+
droppableRects: ie,
|
|
2341
2346
|
draggableNodes: x,
|
|
2342
|
-
draggingNode:
|
|
2343
|
-
draggingNodeRect:
|
|
2347
|
+
draggingNode: we,
|
|
2348
|
+
draggingNodeRect: xe,
|
|
2344
2349
|
droppableContainers: L,
|
|
2345
|
-
over:
|
|
2346
|
-
scrollableAncestors:
|
|
2347
|
-
scrollAdjustedTranslate:
|
|
2350
|
+
over: fe,
|
|
2351
|
+
scrollableAncestors: de,
|
|
2352
|
+
scrollAdjustedTranslate: De
|
|
2348
2353
|
}, J.current = {
|
|
2349
|
-
initial:
|
|
2350
|
-
translated:
|
|
2354
|
+
initial: xe,
|
|
2355
|
+
translated: Se
|
|
2351
2356
|
};
|
|
2352
|
-
}, [G, H,
|
|
2353
|
-
...
|
|
2354
|
-
delta:
|
|
2355
|
-
draggingRect:
|
|
2356
|
-
pointerCoordinates:
|
|
2357
|
-
scrollableAncestors:
|
|
2358
|
-
scrollableAncestorRects:
|
|
2357
|
+
}, [G, H, Pe, Se, x, we, xe, ie, L, fe, de, De]), jr({
|
|
2358
|
+
...ue,
|
|
2359
|
+
delta: T,
|
|
2360
|
+
draggingRect: Se,
|
|
2361
|
+
pointerCoordinates: zt,
|
|
2362
|
+
scrollableAncestors: de,
|
|
2363
|
+
scrollableAncestorRects: Ze
|
|
2359
2364
|
});
|
|
2360
|
-
const
|
|
2365
|
+
const kn = E(() => ({
|
|
2361
2366
|
active: G,
|
|
2362
2367
|
activeNode: H,
|
|
2363
|
-
activeNodeRect:
|
|
2368
|
+
activeNodeRect: A,
|
|
2364
2369
|
activatorEvent: Y,
|
|
2365
|
-
collisions:
|
|
2366
|
-
containerNodeRect:
|
|
2367
|
-
dragOverlay:
|
|
2370
|
+
collisions: Pe,
|
|
2371
|
+
containerNodeRect: Le,
|
|
2372
|
+
dragOverlay: ae,
|
|
2368
2373
|
draggableNodes: x,
|
|
2369
2374
|
droppableContainers: L,
|
|
2370
|
-
droppableRects:
|
|
2371
|
-
over:
|
|
2372
|
-
measureDroppableContainers:
|
|
2373
|
-
scrollableAncestors:
|
|
2374
|
-
scrollableAncestorRects:
|
|
2375
|
-
measuringConfiguration:
|
|
2376
|
-
measuringScheduled:
|
|
2377
|
-
windowRect:
|
|
2378
|
-
}), [G, H,
|
|
2375
|
+
droppableRects: ie,
|
|
2376
|
+
over: fe,
|
|
2377
|
+
measureDroppableContainers: me,
|
|
2378
|
+
scrollableAncestors: de,
|
|
2379
|
+
scrollableAncestorRects: Ze,
|
|
2380
|
+
measuringConfiguration: $,
|
|
2381
|
+
measuringScheduled: Me,
|
|
2382
|
+
windowRect: vt
|
|
2383
|
+
}), [G, H, A, Y, Pe, Le, ae, x, L, ie, fe, me, de, Ze, $, Me, vt]), zn = E(() => ({
|
|
2379
2384
|
activatorEvent: Y,
|
|
2380
|
-
activators:
|
|
2385
|
+
activators: $t,
|
|
2381
2386
|
active: G,
|
|
2382
|
-
activeNodeRect:
|
|
2387
|
+
activeNodeRect: A,
|
|
2383
2388
|
ariaDescribedById: {
|
|
2384
|
-
draggable:
|
|
2389
|
+
draggable: Te
|
|
2385
2390
|
},
|
|
2386
2391
|
dispatch: b,
|
|
2387
2392
|
draggableNodes: x,
|
|
2388
|
-
over:
|
|
2389
|
-
measureDroppableContainers:
|
|
2390
|
-
}), [Y,
|
|
2391
|
-
return M.createElement(
|
|
2393
|
+
over: fe,
|
|
2394
|
+
measureDroppableContainers: me
|
|
2395
|
+
}), [Y, $t, G, A, b, Te, x, fe, me]);
|
|
2396
|
+
return M.createElement(sn.Provider, {
|
|
2392
2397
|
value: p
|
|
2393
|
-
}, M.createElement(
|
|
2394
|
-
value:
|
|
2395
|
-
}, M.createElement(
|
|
2396
|
-
value:
|
|
2397
|
-
}, M.createElement(
|
|
2398
|
-
value:
|
|
2399
|
-
},
|
|
2398
|
+
}, M.createElement(qe.Provider, {
|
|
2399
|
+
value: zn
|
|
2400
|
+
}, M.createElement(xn.Provider, {
|
|
2401
|
+
value: kn
|
|
2402
|
+
}, M.createElement(ht.Provider, {
|
|
2403
|
+
value: Ln
|
|
2404
|
+
}, c)), M.createElement(oo, {
|
|
2400
2405
|
disabled: a?.restoreFocus === !1
|
|
2401
|
-
})), M.createElement(
|
|
2406
|
+
})), M.createElement(ar, {
|
|
2402
2407
|
...a,
|
|
2403
|
-
hiddenTextDescribedById:
|
|
2408
|
+
hiddenTextDescribedById: Te
|
|
2404
2409
|
}));
|
|
2405
|
-
function
|
|
2406
|
-
const
|
|
2410
|
+
function jn() {
|
|
2411
|
+
const j = Ne?.autoScrollEnabled === !1, K = typeof l == "object" ? l.enabled === !1 : l === !1, U = R && !j && !K;
|
|
2407
2412
|
return typeof l == "object" ? {
|
|
2408
2413
|
...l,
|
|
2409
2414
|
enabled: U
|
|
@@ -2411,118 +2416,118 @@ const No = /* @__PURE__ */ Pn(function(t) {
|
|
|
2411
2416
|
enabled: U
|
|
2412
2417
|
};
|
|
2413
2418
|
}
|
|
2414
|
-
}),
|
|
2415
|
-
function
|
|
2419
|
+
}), lo = /* @__PURE__ */ Ee(null), en = "button", co = "Draggable";
|
|
2420
|
+
function uo(e) {
|
|
2416
2421
|
let {
|
|
2417
2422
|
id: t,
|
|
2418
2423
|
data: n,
|
|
2419
2424
|
disabled: r = !1,
|
|
2420
2425
|
attributes: o
|
|
2421
2426
|
} = e;
|
|
2422
|
-
const i =
|
|
2427
|
+
const i = Ve(co), {
|
|
2423
2428
|
activators: s,
|
|
2424
2429
|
activatorEvent: a,
|
|
2425
2430
|
active: l,
|
|
2426
|
-
activeNodeRect:
|
|
2431
|
+
activeNodeRect: c,
|
|
2427
2432
|
ariaDescribedById: d,
|
|
2428
|
-
draggableNodes:
|
|
2433
|
+
draggableNodes: u,
|
|
2429
2434
|
over: g
|
|
2430
|
-
} =
|
|
2431
|
-
role: f =
|
|
2435
|
+
} = ce(qe), {
|
|
2436
|
+
role: f = en,
|
|
2432
2437
|
roleDescription: w = "draggable",
|
|
2433
2438
|
tabIndex: h = 0
|
|
2434
|
-
} = o ?? {}, v = l?.id === t, b =
|
|
2435
|
-
|
|
2436
|
-
() => (
|
|
2439
|
+
} = o ?? {}, v = l?.id === t, b = ce(v ? ht : lo), [m, p] = rt(), [S, C] = rt(), R = Jr(s, t), y = Ye(n);
|
|
2440
|
+
Q(
|
|
2441
|
+
() => (u.set(t, {
|
|
2437
2442
|
id: t,
|
|
2438
2443
|
key: i,
|
|
2439
2444
|
node: m,
|
|
2440
|
-
activatorNode:
|
|
2445
|
+
activatorNode: S,
|
|
2441
2446
|
data: y
|
|
2442
2447
|
}), () => {
|
|
2443
|
-
const
|
|
2444
|
-
|
|
2448
|
+
const T = u.get(t);
|
|
2449
|
+
T && T.key === i && u.delete(t);
|
|
2445
2450
|
}),
|
|
2446
2451
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2447
|
-
[
|
|
2452
|
+
[u, t]
|
|
2448
2453
|
);
|
|
2449
|
-
const x =
|
|
2454
|
+
const x = E(() => ({
|
|
2450
2455
|
role: f,
|
|
2451
2456
|
tabIndex: h,
|
|
2452
2457
|
"aria-disabled": r,
|
|
2453
|
-
"aria-pressed": v && f ===
|
|
2458
|
+
"aria-pressed": v && f === en ? !0 : void 0,
|
|
2454
2459
|
"aria-roledescription": w,
|
|
2455
2460
|
"aria-describedby": d.draggable
|
|
2456
2461
|
}), [r, f, h, v, w, d.draggable]);
|
|
2457
2462
|
return {
|
|
2458
2463
|
active: l,
|
|
2459
2464
|
activatorEvent: a,
|
|
2460
|
-
activeNodeRect:
|
|
2465
|
+
activeNodeRect: c,
|
|
2461
2466
|
attributes: x,
|
|
2462
2467
|
isDragging: v,
|
|
2463
2468
|
listeners: r ? void 0 : R,
|
|
2464
2469
|
node: m,
|
|
2465
2470
|
over: g,
|
|
2466
2471
|
setNodeRef: p,
|
|
2467
|
-
setActivatorNodeRef:
|
|
2472
|
+
setActivatorNodeRef: C,
|
|
2468
2473
|
transform: b
|
|
2469
2474
|
};
|
|
2470
2475
|
}
|
|
2471
|
-
function
|
|
2472
|
-
return
|
|
2476
|
+
function Mt() {
|
|
2477
|
+
return ce(xn);
|
|
2473
2478
|
}
|
|
2474
|
-
const
|
|
2479
|
+
const fo = "Droppable", go = {
|
|
2475
2480
|
timeout: 25
|
|
2476
2481
|
};
|
|
2477
|
-
function
|
|
2482
|
+
function ho(e) {
|
|
2478
2483
|
let {
|
|
2479
2484
|
data: t,
|
|
2480
2485
|
disabled: n = !1,
|
|
2481
2486
|
id: r,
|
|
2482
2487
|
resizeObserverConfig: o
|
|
2483
2488
|
} = e;
|
|
2484
|
-
const i =
|
|
2489
|
+
const i = Ve(fo), {
|
|
2485
2490
|
active: s,
|
|
2486
2491
|
dispatch: a,
|
|
2487
2492
|
over: l,
|
|
2488
|
-
measureDroppableContainers:
|
|
2489
|
-
} =
|
|
2493
|
+
measureDroppableContainers: c
|
|
2494
|
+
} = ce(qe), d = N({
|
|
2490
2495
|
disabled: n
|
|
2491
|
-
}),
|
|
2496
|
+
}), u = N(!1), g = N(null), f = N(null), {
|
|
2492
2497
|
disabled: w,
|
|
2493
2498
|
updateMeasurementsFor: h,
|
|
2494
2499
|
timeout: v
|
|
2495
2500
|
} = {
|
|
2496
|
-
...
|
|
2501
|
+
...go,
|
|
2497
2502
|
...o
|
|
2498
|
-
}, b =
|
|
2503
|
+
}, b = Ye(h ?? r), m = F(
|
|
2499
2504
|
() => {
|
|
2500
|
-
if (!
|
|
2501
|
-
|
|
2505
|
+
if (!u.current) {
|
|
2506
|
+
u.current = !0;
|
|
2502
2507
|
return;
|
|
2503
2508
|
}
|
|
2504
2509
|
f.current != null && clearTimeout(f.current), f.current = setTimeout(() => {
|
|
2505
|
-
|
|
2510
|
+
c(Array.isArray(b.current) ? b.current : [b.current]), f.current = null;
|
|
2506
2511
|
}, v);
|
|
2507
2512
|
},
|
|
2508
2513
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2509
2514
|
[v]
|
|
2510
|
-
), p =
|
|
2515
|
+
), p = gt({
|
|
2511
2516
|
callback: m,
|
|
2512
2517
|
disabled: w || !s
|
|
2513
|
-
}),
|
|
2514
|
-
p && (
|
|
2515
|
-
}, [p]), [
|
|
2516
|
-
return
|
|
2517
|
-
!p || !
|
|
2518
|
-
}, [
|
|
2518
|
+
}), S = F((x, T) => {
|
|
2519
|
+
p && (T && (p.unobserve(T), u.current = !1), x && p.observe(x));
|
|
2520
|
+
}, [p]), [C, R] = rt(S), y = Ye(t);
|
|
2521
|
+
return O(() => {
|
|
2522
|
+
!p || !C.current || (p.disconnect(), u.current = !1, p.observe(C.current));
|
|
2523
|
+
}, [C, p]), O(
|
|
2519
2524
|
() => (a({
|
|
2520
2525
|
type: P.RegisterDroppable,
|
|
2521
2526
|
element: {
|
|
2522
2527
|
id: r,
|
|
2523
2528
|
key: i,
|
|
2524
2529
|
disabled: n,
|
|
2525
|
-
node:
|
|
2530
|
+
node: C,
|
|
2526
2531
|
rect: g,
|
|
2527
2532
|
data: y
|
|
2528
2533
|
}
|
|
@@ -2533,7 +2538,7 @@ function to(e) {
|
|
|
2533
2538
|
})),
|
|
2534
2539
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2535
2540
|
[r]
|
|
2536
|
-
),
|
|
2541
|
+
), O(() => {
|
|
2537
2542
|
n !== d.current.disabled && (a({
|
|
2538
2543
|
type: P.SetDroppableDisabled,
|
|
2539
2544
|
id: r,
|
|
@@ -2544,52 +2549,52 @@ function to(e) {
|
|
|
2544
2549
|
active: s,
|
|
2545
2550
|
rect: g,
|
|
2546
2551
|
isOver: l?.id === r,
|
|
2547
|
-
node:
|
|
2552
|
+
node: C,
|
|
2548
2553
|
over: l,
|
|
2549
2554
|
setNodeRef: R
|
|
2550
2555
|
};
|
|
2551
2556
|
}
|
|
2552
|
-
function
|
|
2557
|
+
function vo(e) {
|
|
2553
2558
|
let {
|
|
2554
2559
|
animation: t,
|
|
2555
2560
|
children: n
|
|
2556
2561
|
} = e;
|
|
2557
|
-
const [r, o] =
|
|
2558
|
-
return !n && !r && a && o(a),
|
|
2562
|
+
const [r, o] = B(null), [i, s] = B(null), a = ot(n);
|
|
2563
|
+
return !n && !r && a && o(a), Q(() => {
|
|
2559
2564
|
if (!i)
|
|
2560
2565
|
return;
|
|
2561
|
-
const l = r?.key,
|
|
2562
|
-
if (l == null ||
|
|
2566
|
+
const l = r?.key, c = r?.props.id;
|
|
2567
|
+
if (l == null || c == null) {
|
|
2563
2568
|
o(null);
|
|
2564
2569
|
return;
|
|
2565
2570
|
}
|
|
2566
|
-
Promise.resolve(t(
|
|
2571
|
+
Promise.resolve(t(c, i)).then(() => {
|
|
2567
2572
|
o(null);
|
|
2568
2573
|
});
|
|
2569
|
-
}, [t, r, i]), M.createElement(M.Fragment, null, n, r ?
|
|
2574
|
+
}, [t, r, i]), M.createElement(M.Fragment, null, n, r ? Yn(r, {
|
|
2570
2575
|
ref: s
|
|
2571
2576
|
}) : null);
|
|
2572
2577
|
}
|
|
2573
|
-
const
|
|
2578
|
+
const po = {
|
|
2574
2579
|
x: 0,
|
|
2575
2580
|
y: 0,
|
|
2576
2581
|
scaleX: 1,
|
|
2577
2582
|
scaleY: 1
|
|
2578
2583
|
};
|
|
2579
|
-
function
|
|
2584
|
+
function bo(e) {
|
|
2580
2585
|
let {
|
|
2581
2586
|
children: t
|
|
2582
2587
|
} = e;
|
|
2583
|
-
return M.createElement(
|
|
2584
|
-
value:
|
|
2585
|
-
}, M.createElement(
|
|
2586
|
-
value:
|
|
2588
|
+
return M.createElement(qe.Provider, {
|
|
2589
|
+
value: wn
|
|
2590
|
+
}, M.createElement(ht.Provider, {
|
|
2591
|
+
value: po
|
|
2587
2592
|
}, t));
|
|
2588
2593
|
}
|
|
2589
|
-
const
|
|
2594
|
+
const mo = {
|
|
2590
2595
|
position: "fixed",
|
|
2591
2596
|
touchAction: "none"
|
|
2592
|
-
},
|
|
2597
|
+
}, yo = (e) => dt(e) ? "transform 250ms ease" : void 0, wo = /* @__PURE__ */ $n((e, t) => {
|
|
2593
2598
|
let {
|
|
2594
2599
|
as: n,
|
|
2595
2600
|
activatorEvent: r,
|
|
@@ -2598,23 +2603,23 @@ const io = {
|
|
|
2598
2603
|
className: s,
|
|
2599
2604
|
rect: a,
|
|
2600
2605
|
style: l,
|
|
2601
|
-
transform:
|
|
2602
|
-
transition: d =
|
|
2606
|
+
transform: c,
|
|
2607
|
+
transition: d = yo
|
|
2603
2608
|
} = e;
|
|
2604
2609
|
if (!a)
|
|
2605
2610
|
return null;
|
|
2606
|
-
const
|
|
2607
|
-
...
|
|
2611
|
+
const u = o ? c : {
|
|
2612
|
+
...c,
|
|
2608
2613
|
scaleX: 1,
|
|
2609
2614
|
scaleY: 1
|
|
2610
2615
|
}, g = {
|
|
2611
|
-
...
|
|
2616
|
+
...mo,
|
|
2612
2617
|
width: a.width,
|
|
2613
2618
|
height: a.height,
|
|
2614
2619
|
top: a.top,
|
|
2615
2620
|
left: a.left,
|
|
2616
|
-
transform: be.Transform.toString(
|
|
2617
|
-
transformOrigin: o && r ?
|
|
2621
|
+
transform: be.Transform.toString(u),
|
|
2622
|
+
transformOrigin: o && r ? ur(r, a) : void 0,
|
|
2618
2623
|
transition: typeof d == "function" ? d(r) : d,
|
|
2619
2624
|
...l
|
|
2620
2625
|
};
|
|
@@ -2623,7 +2628,7 @@ const io = {
|
|
|
2623
2628
|
style: g,
|
|
2624
2629
|
ref: t
|
|
2625
2630
|
}, i);
|
|
2626
|
-
}),
|
|
2631
|
+
}), Sn = (e) => (t) => {
|
|
2627
2632
|
let {
|
|
2628
2633
|
active: n,
|
|
2629
2634
|
dragOverlay: r
|
|
@@ -2639,11 +2644,11 @@ const io = {
|
|
|
2639
2644
|
for (const [a, l] of Object.entries(i.dragOverlay))
|
|
2640
2645
|
l !== void 0 && r.node.style.setProperty(a, l);
|
|
2641
2646
|
return s != null && s.active && n.node.classList.add(s.active), s != null && s.dragOverlay && r.node.classList.add(s.dragOverlay), function() {
|
|
2642
|
-
for (const [l,
|
|
2643
|
-
n.node.style.setProperty(l,
|
|
2647
|
+
for (const [l, c] of Object.entries(o))
|
|
2648
|
+
n.node.style.setProperty(l, c);
|
|
2644
2649
|
s != null && s.active && n.node.classList.remove(s.active);
|
|
2645
2650
|
};
|
|
2646
|
-
},
|
|
2651
|
+
}, xo = (e) => {
|
|
2647
2652
|
let {
|
|
2648
2653
|
transform: {
|
|
2649
2654
|
initial: t,
|
|
@@ -2655,11 +2660,11 @@ const io = {
|
|
|
2655
2660
|
}, {
|
|
2656
2661
|
transform: be.Transform.toString(n)
|
|
2657
2662
|
}];
|
|
2658
|
-
},
|
|
2663
|
+
}, Do = {
|
|
2659
2664
|
duration: 250,
|
|
2660
2665
|
easing: "ease",
|
|
2661
|
-
keyframes:
|
|
2662
|
-
sideEffects: /* @__PURE__ */
|
|
2666
|
+
keyframes: xo,
|
|
2667
|
+
sideEffects: /* @__PURE__ */ Sn({
|
|
2663
2668
|
styles: {
|
|
2664
2669
|
active: {
|
|
2665
2670
|
opacity: "0"
|
|
@@ -2667,14 +2672,14 @@ const io = {
|
|
|
2667
2672
|
}
|
|
2668
2673
|
})
|
|
2669
2674
|
};
|
|
2670
|
-
function
|
|
2675
|
+
function So(e) {
|
|
2671
2676
|
let {
|
|
2672
2677
|
config: t,
|
|
2673
2678
|
draggableNodes: n,
|
|
2674
2679
|
droppableContainers: r,
|
|
2675
2680
|
measuringConfiguration: o
|
|
2676
2681
|
} = e;
|
|
2677
|
-
return
|
|
2682
|
+
return ut((i, s) => {
|
|
2678
2683
|
if (t === null)
|
|
2679
2684
|
return;
|
|
2680
2685
|
const a = n.get(i);
|
|
@@ -2683,16 +2688,16 @@ function fo(e) {
|
|
|
2683
2688
|
const l = a.node.current;
|
|
2684
2689
|
if (!l)
|
|
2685
2690
|
return;
|
|
2686
|
-
const
|
|
2687
|
-
if (!
|
|
2691
|
+
const c = yn(s);
|
|
2692
|
+
if (!c)
|
|
2688
2693
|
return;
|
|
2689
2694
|
const {
|
|
2690
2695
|
transform: d
|
|
2691
|
-
} =
|
|
2692
|
-
if (!
|
|
2696
|
+
} = X(s).getComputedStyle(s), u = cn(d);
|
|
2697
|
+
if (!u)
|
|
2693
2698
|
return;
|
|
2694
|
-
const g = typeof t == "function" ? t :
|
|
2695
|
-
return
|
|
2699
|
+
const g = typeof t == "function" ? t : Co(t);
|
|
2700
|
+
return pn(l, o.draggable.measure), g({
|
|
2696
2701
|
active: {
|
|
2697
2702
|
id: i,
|
|
2698
2703
|
data: a.data,
|
|
@@ -2702,22 +2707,22 @@ function fo(e) {
|
|
|
2702
2707
|
draggableNodes: n,
|
|
2703
2708
|
dragOverlay: {
|
|
2704
2709
|
node: s,
|
|
2705
|
-
rect: o.dragOverlay.measure(
|
|
2710
|
+
rect: o.dragOverlay.measure(c)
|
|
2706
2711
|
},
|
|
2707
2712
|
droppableContainers: r,
|
|
2708
2713
|
measuringConfiguration: o,
|
|
2709
|
-
transform:
|
|
2714
|
+
transform: u
|
|
2710
2715
|
});
|
|
2711
2716
|
});
|
|
2712
2717
|
}
|
|
2713
|
-
function
|
|
2718
|
+
function Co(e) {
|
|
2714
2719
|
const {
|
|
2715
2720
|
duration: t,
|
|
2716
2721
|
easing: n,
|
|
2717
2722
|
sideEffects: r,
|
|
2718
2723
|
keyframes: o
|
|
2719
2724
|
} = {
|
|
2720
|
-
...
|
|
2725
|
+
...Do,
|
|
2721
2726
|
...e
|
|
2722
2727
|
};
|
|
2723
2728
|
return (i) => {
|
|
@@ -2725,22 +2730,22 @@ function go(e) {
|
|
|
2725
2730
|
active: s,
|
|
2726
2731
|
dragOverlay: a,
|
|
2727
2732
|
transform: l,
|
|
2728
|
-
...
|
|
2733
|
+
...c
|
|
2729
2734
|
} = i;
|
|
2730
2735
|
if (!t)
|
|
2731
2736
|
return;
|
|
2732
2737
|
const d = {
|
|
2733
2738
|
x: a.rect.left - s.rect.left,
|
|
2734
2739
|
y: a.rect.top - s.rect.top
|
|
2735
|
-
},
|
|
2740
|
+
}, u = {
|
|
2736
2741
|
scaleX: l.scaleX !== 1 ? s.rect.width * l.scaleX / a.rect.width : 1,
|
|
2737
2742
|
scaleY: l.scaleY !== 1 ? s.rect.height * l.scaleY / a.rect.height : 1
|
|
2738
2743
|
}, g = {
|
|
2739
2744
|
x: l.x - d.x,
|
|
2740
2745
|
y: l.y - d.y,
|
|
2741
|
-
...
|
|
2746
|
+
...u
|
|
2742
2747
|
}, f = o({
|
|
2743
|
-
...
|
|
2748
|
+
...c,
|
|
2744
2749
|
active: s,
|
|
2745
2750
|
dragOverlay: a,
|
|
2746
2751
|
transform: {
|
|
@@ -2753,7 +2758,7 @@ function go(e) {
|
|
|
2753
2758
|
const v = r?.({
|
|
2754
2759
|
active: s,
|
|
2755
2760
|
dragOverlay: a,
|
|
2756
|
-
...
|
|
2761
|
+
...c
|
|
2757
2762
|
}), b = a.node.animate(f, {
|
|
2758
2763
|
duration: t,
|
|
2759
2764
|
easing: n,
|
|
@@ -2766,14 +2771,14 @@ function go(e) {
|
|
|
2766
2771
|
});
|
|
2767
2772
|
};
|
|
2768
2773
|
}
|
|
2769
|
-
let
|
|
2770
|
-
function
|
|
2771
|
-
return
|
|
2774
|
+
let tn = 0;
|
|
2775
|
+
function Ro(e) {
|
|
2776
|
+
return E(() => {
|
|
2772
2777
|
if (e != null)
|
|
2773
|
-
return
|
|
2778
|
+
return tn++, tn;
|
|
2774
2779
|
}, [e]);
|
|
2775
2780
|
}
|
|
2776
|
-
const
|
|
2781
|
+
const Eo = /* @__PURE__ */ M.memo((e) => {
|
|
2777
2782
|
let {
|
|
2778
2783
|
adjustScale: t = !1,
|
|
2779
2784
|
children: n,
|
|
@@ -2783,11 +2788,11 @@ const Mo = /* @__PURE__ */ M.memo((e) => {
|
|
|
2783
2788
|
modifiers: s,
|
|
2784
2789
|
wrapperElement: a = "div",
|
|
2785
2790
|
className: l,
|
|
2786
|
-
zIndex:
|
|
2791
|
+
zIndex: c = 999
|
|
2787
2792
|
} = e;
|
|
2788
2793
|
const {
|
|
2789
2794
|
activatorEvent: d,
|
|
2790
|
-
active:
|
|
2795
|
+
active: u,
|
|
2791
2796
|
activeNodeRect: g,
|
|
2792
2797
|
containerNodeRect: f,
|
|
2793
2798
|
draggableNodes: w,
|
|
@@ -2796,59 +2801,59 @@ const Mo = /* @__PURE__ */ M.memo((e) => {
|
|
|
2796
2801
|
over: b,
|
|
2797
2802
|
measuringConfiguration: m,
|
|
2798
2803
|
scrollableAncestors: p,
|
|
2799
|
-
scrollableAncestorRects:
|
|
2800
|
-
windowRect:
|
|
2801
|
-
} =
|
|
2804
|
+
scrollableAncestorRects: S,
|
|
2805
|
+
windowRect: C
|
|
2806
|
+
} = Mt(), R = ce(ht), y = Ro(u?.id), x = Dn(s, {
|
|
2802
2807
|
activatorEvent: d,
|
|
2803
|
-
active:
|
|
2808
|
+
active: u,
|
|
2804
2809
|
activeNodeRect: g,
|
|
2805
2810
|
containerNodeRect: f,
|
|
2806
2811
|
draggingNodeRect: v.rect,
|
|
2807
2812
|
over: b,
|
|
2808
2813
|
overlayNodeRect: v.rect,
|
|
2809
2814
|
scrollableAncestors: p,
|
|
2810
|
-
scrollableAncestorRects:
|
|
2815
|
+
scrollableAncestorRects: S,
|
|
2811
2816
|
transform: R,
|
|
2812
|
-
windowRect:
|
|
2813
|
-
}),
|
|
2817
|
+
windowRect: C
|
|
2818
|
+
}), T = Tt(g), L = So({
|
|
2814
2819
|
config: r,
|
|
2815
2820
|
draggableNodes: w,
|
|
2816
2821
|
droppableContainers: h,
|
|
2817
2822
|
measuringConfiguration: m
|
|
2818
|
-
}),
|
|
2819
|
-
return M.createElement(
|
|
2823
|
+
}), I = T ? v.setRef : void 0;
|
|
2824
|
+
return M.createElement(bo, null, M.createElement(vo, {
|
|
2820
2825
|
animation: L
|
|
2821
|
-
},
|
|
2826
|
+
}, u && y ? M.createElement(wo, {
|
|
2822
2827
|
key: y,
|
|
2823
|
-
id:
|
|
2824
|
-
ref:
|
|
2828
|
+
id: u.id,
|
|
2829
|
+
ref: I,
|
|
2825
2830
|
as: a,
|
|
2826
2831
|
activatorEvent: d,
|
|
2827
2832
|
adjustScale: t,
|
|
2828
2833
|
className: l,
|
|
2829
2834
|
transition: i,
|
|
2830
|
-
rect:
|
|
2835
|
+
rect: T,
|
|
2831
2836
|
style: {
|
|
2832
|
-
zIndex:
|
|
2837
|
+
zIndex: c,
|
|
2833
2838
|
...o
|
|
2834
2839
|
},
|
|
2835
2840
|
transform: x
|
|
2836
2841
|
}, n) : null));
|
|
2837
2842
|
});
|
|
2838
|
-
function
|
|
2843
|
+
function Lt(e, t, n) {
|
|
2839
2844
|
const r = e.slice();
|
|
2840
2845
|
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
2841
2846
|
}
|
|
2842
|
-
function
|
|
2847
|
+
function Ao(e, t) {
|
|
2843
2848
|
return e.reduce((n, r, o) => {
|
|
2844
2849
|
const i = t.get(r);
|
|
2845
2850
|
return i && (n[o] = i), n;
|
|
2846
2851
|
}, Array(e.length));
|
|
2847
2852
|
}
|
|
2848
|
-
function
|
|
2853
|
+
function tt(e) {
|
|
2849
2854
|
return e !== null && e >= 0;
|
|
2850
2855
|
}
|
|
2851
|
-
function
|
|
2856
|
+
function Io(e, t) {
|
|
2852
2857
|
if (e === t)
|
|
2853
2858
|
return !0;
|
|
2854
2859
|
if (e.length !== t.length)
|
|
@@ -2858,88 +2863,88 @@ function po(e, t) {
|
|
|
2858
2863
|
return !1;
|
|
2859
2864
|
return !0;
|
|
2860
2865
|
}
|
|
2861
|
-
function
|
|
2866
|
+
function Oo(e) {
|
|
2862
2867
|
return typeof e == "boolean" ? {
|
|
2863
2868
|
draggable: e,
|
|
2864
2869
|
droppable: e
|
|
2865
2870
|
} : e;
|
|
2866
2871
|
}
|
|
2867
|
-
const
|
|
2872
|
+
const Cn = (e) => {
|
|
2868
2873
|
let {
|
|
2869
2874
|
rects: t,
|
|
2870
2875
|
activeIndex: n,
|
|
2871
2876
|
overIndex: r,
|
|
2872
2877
|
index: o
|
|
2873
2878
|
} = e;
|
|
2874
|
-
const i =
|
|
2879
|
+
const i = Lt(t, r, n), s = t[o], a = i[o];
|
|
2875
2880
|
return !a || !s ? null : {
|
|
2876
2881
|
x: a.left - s.left,
|
|
2877
2882
|
y: a.top - s.top,
|
|
2878
2883
|
scaleX: a.width / s.width,
|
|
2879
2884
|
scaleY: a.height / s.height
|
|
2880
2885
|
};
|
|
2881
|
-
},
|
|
2886
|
+
}, Rn = "Sortable", En = /* @__PURE__ */ M.createContext({
|
|
2882
2887
|
activeIndex: -1,
|
|
2883
|
-
containerId:
|
|
2888
|
+
containerId: Rn,
|
|
2884
2889
|
disableTransforms: !1,
|
|
2885
2890
|
items: [],
|
|
2886
2891
|
overIndex: -1,
|
|
2887
2892
|
useDragOverlay: !1,
|
|
2888
2893
|
sortedRects: [],
|
|
2889
|
-
strategy:
|
|
2894
|
+
strategy: Cn,
|
|
2890
2895
|
disabled: {
|
|
2891
2896
|
draggable: !1,
|
|
2892
2897
|
droppable: !1
|
|
2893
2898
|
}
|
|
2894
2899
|
});
|
|
2895
|
-
function
|
|
2900
|
+
function No(e) {
|
|
2896
2901
|
let {
|
|
2897
2902
|
children: t,
|
|
2898
2903
|
id: n,
|
|
2899
2904
|
items: r,
|
|
2900
|
-
strategy: o =
|
|
2905
|
+
strategy: o = Cn,
|
|
2901
2906
|
disabled: i = !1
|
|
2902
2907
|
} = e;
|
|
2903
2908
|
const {
|
|
2904
2909
|
active: s,
|
|
2905
2910
|
dragOverlay: a,
|
|
2906
2911
|
droppableRects: l,
|
|
2907
|
-
over:
|
|
2912
|
+
over: c,
|
|
2908
2913
|
measureDroppableContainers: d
|
|
2909
|
-
} =
|
|
2910
|
-
|
|
2914
|
+
} = Mt(), u = Ve(Rn, n), g = a.rect !== null, f = E(() => r.map((R) => typeof R == "object" && "id" in R ? R.id : R), [r]), w = s != null, h = s ? f.indexOf(s.id) : -1, v = c ? f.indexOf(c.id) : -1, b = N(f), m = !Io(f, b.current), p = v !== -1 && h === -1 || m, S = Oo(i);
|
|
2915
|
+
Q(() => {
|
|
2911
2916
|
m && w && d(f);
|
|
2912
|
-
}, [m, f, w, d]),
|
|
2917
|
+
}, [m, f, w, d]), O(() => {
|
|
2913
2918
|
b.current = f;
|
|
2914
2919
|
}, [f]);
|
|
2915
|
-
const
|
|
2920
|
+
const C = E(
|
|
2916
2921
|
() => ({
|
|
2917
2922
|
activeIndex: h,
|
|
2918
|
-
containerId:
|
|
2919
|
-
disabled:
|
|
2923
|
+
containerId: u,
|
|
2924
|
+
disabled: S,
|
|
2920
2925
|
disableTransforms: p,
|
|
2921
2926
|
items: f,
|
|
2922
2927
|
overIndex: v,
|
|
2923
2928
|
useDragOverlay: g,
|
|
2924
|
-
sortedRects:
|
|
2929
|
+
sortedRects: Ao(f, l),
|
|
2925
2930
|
strategy: o
|
|
2926
2931
|
}),
|
|
2927
2932
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2928
|
-
[h,
|
|
2933
|
+
[h, u, S.draggable, S.droppable, p, f, v, l, g, o]
|
|
2929
2934
|
);
|
|
2930
|
-
return M.createElement(
|
|
2931
|
-
value:
|
|
2935
|
+
return M.createElement(En.Provider, {
|
|
2936
|
+
value: C
|
|
2932
2937
|
}, t);
|
|
2933
2938
|
}
|
|
2934
|
-
const
|
|
2939
|
+
const To = (e) => {
|
|
2935
2940
|
let {
|
|
2936
2941
|
id: t,
|
|
2937
2942
|
items: n,
|
|
2938
2943
|
activeIndex: r,
|
|
2939
2944
|
overIndex: o
|
|
2940
2945
|
} = e;
|
|
2941
|
-
return
|
|
2942
|
-
},
|
|
2946
|
+
return Lt(n, r, o).indexOf(t);
|
|
2947
|
+
}, Mo = (e) => {
|
|
2943
2948
|
let {
|
|
2944
2949
|
containerId: t,
|
|
2945
2950
|
isSorting: n,
|
|
@@ -2949,62 +2954,62 @@ const mo = (e) => {
|
|
|
2949
2954
|
newIndex: s,
|
|
2950
2955
|
previousItems: a,
|
|
2951
2956
|
previousContainerId: l,
|
|
2952
|
-
transition:
|
|
2957
|
+
transition: c
|
|
2953
2958
|
} = e;
|
|
2954
|
-
return !
|
|
2955
|
-
},
|
|
2959
|
+
return !c || !r || a !== i && o === s ? !1 : n ? !0 : s !== o && t === l;
|
|
2960
|
+
}, Lo = {
|
|
2956
2961
|
duration: 200,
|
|
2957
2962
|
easing: "ease"
|
|
2958
|
-
},
|
|
2959
|
-
property:
|
|
2963
|
+
}, An = "transform", Po = /* @__PURE__ */ be.Transition.toString({
|
|
2964
|
+
property: An,
|
|
2960
2965
|
duration: 0,
|
|
2961
2966
|
easing: "linear"
|
|
2962
|
-
}),
|
|
2967
|
+
}), ko = {
|
|
2963
2968
|
roleDescription: "sortable"
|
|
2964
2969
|
};
|
|
2965
|
-
function
|
|
2970
|
+
function zo(e) {
|
|
2966
2971
|
let {
|
|
2967
2972
|
disabled: t,
|
|
2968
2973
|
index: n,
|
|
2969
2974
|
node: r,
|
|
2970
2975
|
rect: o
|
|
2971
2976
|
} = e;
|
|
2972
|
-
const [i, s] =
|
|
2973
|
-
return
|
|
2977
|
+
const [i, s] = B(null), a = N(n);
|
|
2978
|
+
return Q(() => {
|
|
2974
2979
|
if (!t && n !== a.current && r.current) {
|
|
2975
2980
|
const l = o.current;
|
|
2976
2981
|
if (l) {
|
|
2977
|
-
const
|
|
2982
|
+
const c = Oe(r.current, {
|
|
2978
2983
|
ignoreTransform: !0
|
|
2979
2984
|
}), d = {
|
|
2980
|
-
x: l.left -
|
|
2981
|
-
y: l.top -
|
|
2982
|
-
scaleX: l.width /
|
|
2983
|
-
scaleY: l.height /
|
|
2985
|
+
x: l.left - c.left,
|
|
2986
|
+
y: l.top - c.top,
|
|
2987
|
+
scaleX: l.width / c.width,
|
|
2988
|
+
scaleY: l.height / c.height
|
|
2984
2989
|
};
|
|
2985
2990
|
(d.x || d.y) && s(d);
|
|
2986
2991
|
}
|
|
2987
2992
|
}
|
|
2988
2993
|
n !== a.current && (a.current = n);
|
|
2989
|
-
}, [t, n, r, o]),
|
|
2994
|
+
}, [t, n, r, o]), O(() => {
|
|
2990
2995
|
i && s(null);
|
|
2991
2996
|
}, [i]), i;
|
|
2992
2997
|
}
|
|
2993
|
-
function
|
|
2998
|
+
function jo(e) {
|
|
2994
2999
|
let {
|
|
2995
|
-
animateLayoutChanges: t =
|
|
3000
|
+
animateLayoutChanges: t = Mo,
|
|
2996
3001
|
attributes: n,
|
|
2997
3002
|
disabled: r,
|
|
2998
3003
|
data: o,
|
|
2999
|
-
getNewIndex: i =
|
|
3004
|
+
getNewIndex: i = To,
|
|
3000
3005
|
id: s,
|
|
3001
3006
|
strategy: a,
|
|
3002
3007
|
resizeObserverConfig: l,
|
|
3003
|
-
transition:
|
|
3008
|
+
transition: c = Lo
|
|
3004
3009
|
} = e;
|
|
3005
3010
|
const {
|
|
3006
3011
|
items: d,
|
|
3007
|
-
containerId:
|
|
3012
|
+
containerId: u,
|
|
3008
3013
|
activeIndex: g,
|
|
3009
3014
|
disabled: f,
|
|
3010
3015
|
disableTransforms: w,
|
|
@@ -3012,131 +3017,131 @@ function Po(e) {
|
|
|
3012
3017
|
overIndex: v,
|
|
3013
3018
|
useDragOverlay: b,
|
|
3014
3019
|
strategy: m
|
|
3015
|
-
} =
|
|
3020
|
+
} = ce(En), p = Bo(r, f), S = d.indexOf(s), C = E(() => ({
|
|
3016
3021
|
sortable: {
|
|
3017
|
-
containerId:
|
|
3018
|
-
index:
|
|
3022
|
+
containerId: u,
|
|
3023
|
+
index: S,
|
|
3019
3024
|
items: d
|
|
3020
3025
|
},
|
|
3021
3026
|
...o
|
|
3022
|
-
}), [
|
|
3027
|
+
}), [u, o, S, d]), R = E(() => d.slice(d.indexOf(s)), [d, s]), {
|
|
3023
3028
|
rect: y,
|
|
3024
3029
|
node: x,
|
|
3025
|
-
isOver:
|
|
3030
|
+
isOver: T,
|
|
3026
3031
|
setNodeRef: L
|
|
3027
|
-
} =
|
|
3032
|
+
} = ho({
|
|
3028
3033
|
id: s,
|
|
3029
|
-
data:
|
|
3034
|
+
data: C,
|
|
3030
3035
|
disabled: p.droppable,
|
|
3031
3036
|
resizeObserverConfig: {
|
|
3032
3037
|
updateMeasurementsFor: R,
|
|
3033
3038
|
...l
|
|
3034
3039
|
}
|
|
3035
3040
|
}), {
|
|
3036
|
-
active:
|
|
3041
|
+
active: I,
|
|
3037
3042
|
activatorEvent: J,
|
|
3038
3043
|
activeNodeRect: G,
|
|
3039
|
-
attributes:
|
|
3040
|
-
setNodeRef:
|
|
3041
|
-
listeners:
|
|
3044
|
+
attributes: ee,
|
|
3045
|
+
setNodeRef: Ne,
|
|
3046
|
+
listeners: _e,
|
|
3042
3047
|
isDragging: Y,
|
|
3043
3048
|
over: Je,
|
|
3044
|
-
setActivatorNodeRef:
|
|
3045
|
-
transform:
|
|
3046
|
-
} =
|
|
3049
|
+
setActivatorNodeRef: oe,
|
|
3050
|
+
transform: Te
|
|
3051
|
+
} = uo({
|
|
3047
3052
|
id: s,
|
|
3048
|
-
data:
|
|
3053
|
+
data: C,
|
|
3049
3054
|
attributes: {
|
|
3050
|
-
...
|
|
3055
|
+
...ko,
|
|
3051
3056
|
...n
|
|
3052
3057
|
},
|
|
3053
3058
|
disabled: p.draggable
|
|
3054
|
-
}), Ge =
|
|
3059
|
+
}), Ge = qn(L, Ne), $ = !!I, ie = $ && !w && tt(g) && tt(v), me = !b && Y, Me = me && ie ? Te : null, Qe = ie ? Me ?? (a ?? m)({
|
|
3055
3060
|
rects: h,
|
|
3056
3061
|
activeNodeRect: G,
|
|
3057
3062
|
activeIndex: g,
|
|
3058
3063
|
overIndex: v,
|
|
3059
|
-
index:
|
|
3060
|
-
}) : null,
|
|
3064
|
+
index: S
|
|
3065
|
+
}) : null, ue = tt(g) && tt(v) ? i({
|
|
3061
3066
|
id: s,
|
|
3062
3067
|
items: d,
|
|
3063
3068
|
activeIndex: g,
|
|
3064
3069
|
overIndex: v
|
|
3065
|
-
}) :
|
|
3066
|
-
activeId:
|
|
3070
|
+
}) : S, se = I?.id, A = N({
|
|
3071
|
+
activeId: se,
|
|
3067
3072
|
items: d,
|
|
3068
|
-
newIndex:
|
|
3069
|
-
containerId:
|
|
3070
|
-
}),
|
|
3071
|
-
active:
|
|
3072
|
-
containerId:
|
|
3073
|
+
newIndex: ue,
|
|
3074
|
+
containerId: u
|
|
3075
|
+
}), Le = d !== A.current.items, te = t({
|
|
3076
|
+
active: I,
|
|
3077
|
+
containerId: u,
|
|
3073
3078
|
isDragging: Y,
|
|
3074
|
-
isSorting:
|
|
3079
|
+
isSorting: $,
|
|
3075
3080
|
id: s,
|
|
3076
|
-
index:
|
|
3081
|
+
index: S,
|
|
3077
3082
|
items: d,
|
|
3078
|
-
newIndex:
|
|
3079
|
-
previousItems:
|
|
3080
|
-
previousContainerId:
|
|
3081
|
-
transition:
|
|
3082
|
-
wasDragging:
|
|
3083
|
-
}),
|
|
3084
|
-
disabled: !
|
|
3085
|
-
index:
|
|
3083
|
+
newIndex: A.current.newIndex,
|
|
3084
|
+
previousItems: A.current.items,
|
|
3085
|
+
previousContainerId: A.current.containerId,
|
|
3086
|
+
transition: c,
|
|
3087
|
+
wasDragging: A.current.activeId != null
|
|
3088
|
+
}), ye = zo({
|
|
3089
|
+
disabled: !te,
|
|
3090
|
+
index: S,
|
|
3086
3091
|
node: x,
|
|
3087
3092
|
rect: y
|
|
3088
3093
|
});
|
|
3089
|
-
return
|
|
3090
|
-
|
|
3091
|
-
}, [
|
|
3092
|
-
if (
|
|
3094
|
+
return O(() => {
|
|
3095
|
+
$ && A.current.newIndex !== ue && (A.current.newIndex = ue), u !== A.current.containerId && (A.current.containerId = u), d !== A.current.items && (A.current.items = d);
|
|
3096
|
+
}, [$, ue, u, d]), O(() => {
|
|
3097
|
+
if (se === A.current.activeId)
|
|
3093
3098
|
return;
|
|
3094
|
-
if (
|
|
3095
|
-
|
|
3099
|
+
if (se != null && A.current.activeId == null) {
|
|
3100
|
+
A.current.activeId = se;
|
|
3096
3101
|
return;
|
|
3097
3102
|
}
|
|
3098
|
-
const
|
|
3099
|
-
|
|
3103
|
+
const we = setTimeout(() => {
|
|
3104
|
+
A.current.activeId = se;
|
|
3100
3105
|
}, 50);
|
|
3101
|
-
return () => clearTimeout(
|
|
3102
|
-
}, [
|
|
3103
|
-
active:
|
|
3106
|
+
return () => clearTimeout(we);
|
|
3107
|
+
}, [se]), {
|
|
3108
|
+
active: I,
|
|
3104
3109
|
activeIndex: g,
|
|
3105
|
-
attributes:
|
|
3106
|
-
data:
|
|
3110
|
+
attributes: ee,
|
|
3111
|
+
data: C,
|
|
3107
3112
|
rect: y,
|
|
3108
|
-
index:
|
|
3109
|
-
newIndex:
|
|
3113
|
+
index: S,
|
|
3114
|
+
newIndex: ue,
|
|
3110
3115
|
items: d,
|
|
3111
|
-
isOver:
|
|
3112
|
-
isSorting:
|
|
3116
|
+
isOver: T,
|
|
3117
|
+
isSorting: $,
|
|
3113
3118
|
isDragging: Y,
|
|
3114
|
-
listeners:
|
|
3119
|
+
listeners: _e,
|
|
3115
3120
|
node: x,
|
|
3116
3121
|
overIndex: v,
|
|
3117
3122
|
over: Je,
|
|
3118
3123
|
setNodeRef: Ge,
|
|
3119
|
-
setActivatorNodeRef:
|
|
3124
|
+
setActivatorNodeRef: oe,
|
|
3120
3125
|
setDroppableNodeRef: L,
|
|
3121
|
-
setDraggableNodeRef:
|
|
3122
|
-
transform:
|
|
3123
|
-
transition:
|
|
3126
|
+
setDraggableNodeRef: Ne,
|
|
3127
|
+
transform: ye ?? Qe,
|
|
3128
|
+
transition: ae()
|
|
3124
3129
|
};
|
|
3125
|
-
function
|
|
3130
|
+
function ae() {
|
|
3126
3131
|
if (
|
|
3127
3132
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
3128
|
-
|
|
3129
|
-
|
|
3133
|
+
ye || // Or to prevent items jumping to back to their "new" position when items change
|
|
3134
|
+
Le && A.current.newIndex === S
|
|
3130
3135
|
)
|
|
3131
|
-
return
|
|
3132
|
-
if (!(
|
|
3136
|
+
return Po;
|
|
3137
|
+
if (!(me && !dt(J) || !c) && ($ || te))
|
|
3133
3138
|
return be.Transition.toString({
|
|
3134
|
-
...
|
|
3135
|
-
property:
|
|
3139
|
+
...c,
|
|
3140
|
+
property: An
|
|
3136
3141
|
});
|
|
3137
3142
|
}
|
|
3138
3143
|
}
|
|
3139
|
-
function
|
|
3144
|
+
function Bo(e, t) {
|
|
3140
3145
|
var n, r;
|
|
3141
3146
|
return typeof e == "boolean" ? {
|
|
3142
3147
|
draggable: e,
|
|
@@ -3147,13 +3152,13 @@ function So(e, t) {
|
|
|
3147
3152
|
droppable: (r = e?.droppable) != null ? r : t.droppable
|
|
3148
3153
|
};
|
|
3149
3154
|
}
|
|
3150
|
-
function
|
|
3155
|
+
function lt(e) {
|
|
3151
3156
|
if (!e)
|
|
3152
3157
|
return !1;
|
|
3153
3158
|
const t = e.data.current;
|
|
3154
3159
|
return !!(t && "sortable" in t && typeof t.sortable == "object" && "containerId" in t.sortable && "items" in t.sortable && "index" in t.sortable);
|
|
3155
3160
|
}
|
|
3156
|
-
const
|
|
3161
|
+
const Fo = [D.Down, D.Right, D.Up, D.Left], Xo = (e, t) => {
|
|
3157
3162
|
let {
|
|
3158
3163
|
context: {
|
|
3159
3164
|
active: n,
|
|
@@ -3164,73 +3169,196 @@ const Ro = [D.Down, D.Right, D.Up, D.Left], ko = (e, t) => {
|
|
|
3164
3169
|
scrollableAncestors: a
|
|
3165
3170
|
}
|
|
3166
3171
|
} = t;
|
|
3167
|
-
if (
|
|
3172
|
+
if (Fo.includes(e.code)) {
|
|
3168
3173
|
if (e.preventDefault(), !n || !r)
|
|
3169
3174
|
return;
|
|
3170
3175
|
const l = [];
|
|
3171
|
-
i.getEnabled().forEach((
|
|
3172
|
-
if (!
|
|
3176
|
+
i.getEnabled().forEach((u) => {
|
|
3177
|
+
if (!u || u != null && u.disabled)
|
|
3173
3178
|
return;
|
|
3174
|
-
const g = o.get(
|
|
3179
|
+
const g = o.get(u.id);
|
|
3175
3180
|
if (g)
|
|
3176
3181
|
switch (e.code) {
|
|
3177
3182
|
case D.Down:
|
|
3178
|
-
r.top < g.top && l.push(
|
|
3183
|
+
r.top < g.top && l.push(u);
|
|
3179
3184
|
break;
|
|
3180
3185
|
case D.Up:
|
|
3181
|
-
r.top > g.top && l.push(
|
|
3186
|
+
r.top > g.top && l.push(u);
|
|
3182
3187
|
break;
|
|
3183
3188
|
case D.Left:
|
|
3184
|
-
r.left > g.left && l.push(
|
|
3189
|
+
r.left > g.left && l.push(u);
|
|
3185
3190
|
break;
|
|
3186
3191
|
case D.Right:
|
|
3187
|
-
r.left < g.left && l.push(
|
|
3192
|
+
r.left < g.left && l.push(u);
|
|
3188
3193
|
break;
|
|
3189
3194
|
}
|
|
3190
3195
|
});
|
|
3191
|
-
const
|
|
3196
|
+
const c = gr({
|
|
3192
3197
|
collisionRect: r,
|
|
3193
3198
|
droppableRects: o,
|
|
3194
3199
|
droppableContainers: l
|
|
3195
3200
|
});
|
|
3196
|
-
let d =
|
|
3197
|
-
if (d === s?.id &&
|
|
3198
|
-
const
|
|
3199
|
-
if (w && f &&
|
|
3200
|
-
const v =
|
|
3201
|
+
let d = an(c, "id");
|
|
3202
|
+
if (d === s?.id && c.length > 1 && (d = c[1].id), d != null) {
|
|
3203
|
+
const u = i.get(n.id), g = i.get(d), f = g ? o.get(g.id) : null, w = g?.node.current;
|
|
3204
|
+
if (w && f && u && g) {
|
|
3205
|
+
const v = ft(w).some((R, y) => a[y] !== R), b = In(u, g), m = $o(u, g), p = v || !b ? {
|
|
3201
3206
|
x: 0,
|
|
3202
3207
|
y: 0
|
|
3203
3208
|
} : {
|
|
3204
3209
|
x: m ? r.width - f.width : 0,
|
|
3205
3210
|
y: m ? r.height - f.height : 0
|
|
3206
|
-
},
|
|
3211
|
+
}, S = {
|
|
3207
3212
|
x: f.left,
|
|
3208
3213
|
y: f.top
|
|
3209
3214
|
};
|
|
3210
|
-
return p.x && p.y ?
|
|
3215
|
+
return p.x && p.y ? S : Ke(S, p);
|
|
3211
3216
|
}
|
|
3212
3217
|
}
|
|
3213
3218
|
}
|
|
3214
3219
|
};
|
|
3215
|
-
function
|
|
3216
|
-
return !
|
|
3220
|
+
function In(e, t) {
|
|
3221
|
+
return !lt(e) || !lt(t) ? !1 : e.data.current.sortable.containerId === t.data.current.sortable.containerId;
|
|
3217
3222
|
}
|
|
3218
|
-
function
|
|
3219
|
-
return !
|
|
3223
|
+
function $o(e, t) {
|
|
3224
|
+
return !lt(e) || !lt(t) || !In(e, t) ? !1 : e.data.current.sortable.index < t.data.current.sortable.index;
|
|
3220
3225
|
}
|
|
3226
|
+
const On = Ee({
|
|
3227
|
+
attributes: void 0,
|
|
3228
|
+
listeners: void 0,
|
|
3229
|
+
ref() {
|
|
3230
|
+
}
|
|
3231
|
+
}), Yo = ({
|
|
3232
|
+
...e
|
|
3233
|
+
}) => {
|
|
3234
|
+
const { attributes: t, listeners: n, ref: r } = ce(On), o = Mt();
|
|
3235
|
+
return /* @__PURE__ */ _.jsx(
|
|
3236
|
+
Kn,
|
|
3237
|
+
{
|
|
3238
|
+
className: "SortableList__DragHandle",
|
|
3239
|
+
"data-testid": "kibble-sortable-list-drag-handle",
|
|
3240
|
+
ref: r,
|
|
3241
|
+
cursor: o.activatorEvent ? "grabbing" : "grab",
|
|
3242
|
+
iconName: "grid",
|
|
3243
|
+
size: "sm",
|
|
3244
|
+
variant: "ghostNeutral",
|
|
3245
|
+
...t,
|
|
3246
|
+
...n,
|
|
3247
|
+
...e
|
|
3248
|
+
}
|
|
3249
|
+
);
|
|
3250
|
+
}, nn = ({
|
|
3251
|
+
content: e,
|
|
3252
|
+
hideHandle: t,
|
|
3253
|
+
id: n,
|
|
3254
|
+
itemProps: r
|
|
3255
|
+
}) => {
|
|
3256
|
+
const {
|
|
3257
|
+
attributes: o,
|
|
3258
|
+
isDragging: i,
|
|
3259
|
+
listeners: s,
|
|
3260
|
+
setNodeRef: a,
|
|
3261
|
+
setActivatorNodeRef: l,
|
|
3262
|
+
transform: c,
|
|
3263
|
+
transition: d
|
|
3264
|
+
} = jo({
|
|
3265
|
+
id: n
|
|
3266
|
+
}), u = E(
|
|
3267
|
+
() => ({
|
|
3268
|
+
attributes: o,
|
|
3269
|
+
listeners: s,
|
|
3270
|
+
ref: l
|
|
3271
|
+
}),
|
|
3272
|
+
[o, s, l]
|
|
3273
|
+
);
|
|
3274
|
+
return /* @__PURE__ */ _.jsx(On.Provider, { value: u, children: /* @__PURE__ */ _.jsx(
|
|
3275
|
+
Hn,
|
|
3276
|
+
{
|
|
3277
|
+
className: "SortableList__Item",
|
|
3278
|
+
"data-testid": "kibble-sortable-list-item",
|
|
3279
|
+
ref: a,
|
|
3280
|
+
...r,
|
|
3281
|
+
listStyleType: "none",
|
|
3282
|
+
...i && { opacity: 0.4 },
|
|
3283
|
+
transition: d,
|
|
3284
|
+
transform: be.Translate.toString(c),
|
|
3285
|
+
children: /* @__PURE__ */ _.jsxs(Wn, { alignItems: "center", gap: 2, width: "100%", children: [
|
|
3286
|
+
!t && /* @__PURE__ */ _.jsx(Yo, {}),
|
|
3287
|
+
typeof e == "string" ? /* @__PURE__ */ _.jsx(Un, { size: "sm", children: e }) : e
|
|
3288
|
+
] })
|
|
3289
|
+
}
|
|
3290
|
+
) });
|
|
3291
|
+
}, Go = ({
|
|
3292
|
+
hideHandle: e = !1,
|
|
3293
|
+
items: t,
|
|
3294
|
+
itemsProps: n,
|
|
3295
|
+
onChange: r,
|
|
3296
|
+
...o
|
|
3297
|
+
}) => {
|
|
3298
|
+
const [i, s] = B(null), a = E(
|
|
3299
|
+
() => t.find((c) => c.id === i?.id),
|
|
3300
|
+
[i, t]
|
|
3301
|
+
), l = lr(
|
|
3302
|
+
Kt(Nt),
|
|
3303
|
+
Kt(It, {
|
|
3304
|
+
coordinateGetter: Xo
|
|
3305
|
+
})
|
|
3306
|
+
);
|
|
3307
|
+
return /* @__PURE__ */ _.jsx(
|
|
3308
|
+
ao,
|
|
3309
|
+
{
|
|
3310
|
+
sensors: l,
|
|
3311
|
+
onDragStart: ({ active: c }) => {
|
|
3312
|
+
s(c);
|
|
3313
|
+
},
|
|
3314
|
+
onDragEnd: ({ active: c, over: d }) => {
|
|
3315
|
+
if (d && c.id !== d?.id) {
|
|
3316
|
+
const u = t.findIndex(({ id: f }) => f === c.id), g = t.findIndex(({ id: f }) => f === d.id);
|
|
3317
|
+
r(Lt(t, u, g));
|
|
3318
|
+
}
|
|
3319
|
+
s(null);
|
|
3320
|
+
},
|
|
3321
|
+
onDragCancel: () => s(null),
|
|
3322
|
+
children: /* @__PURE__ */ _.jsx(No, { items: t, children: /* @__PURE__ */ _.jsxs(
|
|
3323
|
+
Vn,
|
|
3324
|
+
{
|
|
3325
|
+
className: "SortableList",
|
|
3326
|
+
"data-testid": "kibble-sortable-list",
|
|
3327
|
+
gap: 2,
|
|
3328
|
+
...o,
|
|
3329
|
+
children: [
|
|
3330
|
+
t.map((c) => /* @__PURE__ */ _.jsx(
|
|
3331
|
+
nn,
|
|
3332
|
+
{
|
|
3333
|
+
...c,
|
|
3334
|
+
itemProps: n,
|
|
3335
|
+
hideHandle: e
|
|
3336
|
+
},
|
|
3337
|
+
c.id
|
|
3338
|
+
)),
|
|
3339
|
+
a && /* @__PURE__ */ _.jsx(Eo, { dropAnimation: Ko, children: /* @__PURE__ */ _.jsx(
|
|
3340
|
+
nn,
|
|
3341
|
+
{
|
|
3342
|
+
...a,
|
|
3343
|
+
itemProps: n,
|
|
3344
|
+
hideHandle: e
|
|
3345
|
+
}
|
|
3346
|
+
) })
|
|
3347
|
+
]
|
|
3348
|
+
}
|
|
3349
|
+
) })
|
|
3350
|
+
}
|
|
3351
|
+
);
|
|
3352
|
+
}, Ko = {
|
|
3353
|
+
sideEffects: Sn({
|
|
3354
|
+
styles: {
|
|
3355
|
+
active: {
|
|
3356
|
+
opacity: "0.4"
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3359
|
+
})
|
|
3360
|
+
};
|
|
3221
3361
|
export {
|
|
3222
|
-
|
|
3223
|
-
No as D,
|
|
3224
|
-
dn as K,
|
|
3225
|
-
fn as P,
|
|
3226
|
-
Lo as S,
|
|
3227
|
-
Po as a,
|
|
3228
|
-
To as b,
|
|
3229
|
-
Io as c,
|
|
3230
|
-
Mo as d,
|
|
3231
|
-
lo as e,
|
|
3232
|
-
yn as f,
|
|
3233
|
-
ko as s,
|
|
3234
|
-
mn as u
|
|
3362
|
+
Go as S
|
|
3235
3363
|
};
|
|
3236
|
-
//# sourceMappingURL=
|
|
3364
|
+
//# sourceMappingURL=sortableList.component-1gWWNAQS.js.map
|