@televet/kibble-ui 4.0.0-beta.30 → 4.0.0-beta.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{IconLogo-BurrDDT6.js → IconLogo-D8EHZ4Is.js} +4 -4
- package/dist/chunks/{IconLogo-BurrDDT6.js.map → IconLogo-D8EHZ4Is.js.map} +1 -1
- package/dist/chunks/IconLogo-DedIxFq7.js +2 -0
- package/dist/chunks/{IconLogo-Dd5mp5A_.js.map → IconLogo-DedIxFq7.js.map} +1 -1
- package/dist/chunks/alert.component-CcCt-bb5.js +2 -0
- package/dist/chunks/alert.component-CcCt-bb5.js.map +1 -0
- package/dist/chunks/alert.component-Dk33kIVc.js +223 -0
- package/dist/chunks/alert.component-Dk33kIVc.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-Bj-v-tJK.js +420 -0
- package/dist/chunks/avatar.component-Bj-v-tJK.js.map +1 -0
- package/dist/chunks/avatar.component-LWnRY2X6.js +2 -0
- package/dist/chunks/avatar.component-LWnRY2X6.js.map +1 -0
- package/dist/chunks/{avatarGroup.component-DmZLSikp.js → avatarGroup.component-DEDlMSqD.js} +19 -20
- package/dist/chunks/{avatarGroup.component-DmZLSikp.js.map → avatarGroup.component-DEDlMSqD.js.map} +1 -1
- package/dist/chunks/avatarGroup.component-Onosz6A9.js +2 -0
- package/dist/chunks/{avatarGroup.component-DSqzbbcH.js.map → avatarGroup.component-Onosz6A9.js.map} +1 -1
- package/dist/chunks/box-DQTWVrl0.js +7 -0
- package/dist/chunks/box-DQTWVrl0.js.map +1 -0
- package/dist/chunks/box-DiiiZkF4.js +2 -0
- package/dist/chunks/box-DiiiZkF4.js.map +1 -0
- package/dist/chunks/{button.component-D2oz1NlP.js → button.component-BZHMvNis.js} +12 -12
- package/dist/chunks/{button.component-D2oz1NlP.js.map → button.component-BZHMvNis.js.map} +1 -1
- package/dist/chunks/button.component-DrvTYE-F.js +2 -0
- package/dist/chunks/{button.component-C0WP_LB_.js.map → button.component-DrvTYE-F.js.map} +1 -1
- package/dist/chunks/buttonGroup.component-CmMPEPEN.js +2 -0
- package/dist/chunks/buttonGroup.component-CmMPEPEN.js.map +1 -0
- package/dist/chunks/buttonGroup.component-DoNMqghO.js +77 -0
- package/dist/chunks/buttonGroup.component-DoNMqghO.js.map +1 -0
- package/dist/chunks/card.component-BdHsWz_5.js +2 -0
- package/dist/chunks/{card.component-DD6Qc8tF.js.map → card.component-BdHsWz_5.js.map} +1 -1
- package/dist/chunks/{card.component-C3ybHDES.js → card.component-Ds2Q5-dv.js} +6 -6
- package/dist/chunks/{card.component-C3ybHDES.js.map → card.component-Ds2Q5-dv.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-BeyzgJGW.js → characterCounter.component-2pxq0nJ_.js} +19 -17
- package/dist/chunks/{characterCounter.component-BeyzgJGW.js.map → characterCounter.component-2pxq0nJ_.js.map} +1 -1
- package/dist/chunks/characterCounter.component-OMu4axLo.js +2 -0
- package/dist/chunks/{characterCounter.component-DGpH9KSC.js.map → characterCounter.component-OMu4axLo.js.map} +1 -1
- package/dist/chunks/checkbox.component-6unW8bGD.js +300 -0
- package/dist/chunks/checkbox.component-6unW8bGD.js.map +1 -0
- package/dist/chunks/checkbox.component-CN7VT6Kl.js +2 -0
- package/dist/chunks/checkbox.component-CN7VT6Kl.js.map +1 -0
- package/dist/chunks/checkbox.records-1df_6uAA.js +266 -0
- package/dist/chunks/checkbox.records-1df_6uAA.js.map +1 -0
- package/dist/chunks/checkbox.records-BEJe1isy.js +2 -0
- package/dist/chunks/checkbox.records-BEJe1isy.js.map +1 -0
- package/dist/chunks/checkboxGroup.component-BJ12z-XW.js +2 -0
- package/dist/chunks/{checkboxGroup.component-C0JIZ2j9.js.map → checkboxGroup.component-BJ12z-XW.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-CYFE6CZn.js → checkboxGroup.component-Dbc4R5pg.js} +15 -15
- package/dist/chunks/{checkboxGroup.component-CYFE6CZn.js.map → checkboxGroup.component-Dbc4R5pg.js.map} +1 -1
- package/dist/chunks/config-Bka1LOUG.js +2 -0
- package/dist/chunks/config-Bka1LOUG.js.map +1 -0
- package/dist/chunks/config-CWIRw37z.js +57 -0
- package/dist/chunks/config-CWIRw37z.js.map +1 -0
- package/dist/chunks/conversationCard.component--lfMn8rH.js +2 -0
- package/dist/chunks/{conversationCard.component-CA2l_lHe.js.map → conversationCard.component--lfMn8rH.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-DM1izELD.js → conversationCard.component-D0iB6mGd.js} +45 -41
- package/dist/chunks/{conversationCard.component-DM1izELD.js.map → conversationCard.component-D0iB6mGd.js.map} +1 -1
- package/dist/chunks/create-recipe-context-ei7-Fhjc.js +61 -0
- package/dist/chunks/create-recipe-context-ei7-Fhjc.js.map +1 -0
- package/dist/chunks/create-recipe-context-yj-_0pxV.js +2 -0
- package/dist/chunks/create-recipe-context-yj-_0pxV.js.map +1 -0
- package/dist/chunks/create-slot-recipe-context-B6kmgvsX.js +96 -0
- package/dist/chunks/create-slot-recipe-context-B6kmgvsX.js.map +1 -0
- package/dist/chunks/create-slot-recipe-context-CNbTdeS5.js +2 -0
- package/dist/chunks/create-slot-recipe-context-CNbTdeS5.js.map +1 -0
- package/dist/chunks/datePicker.component-BjPLm6FH.js +3162 -0
- package/dist/chunks/datePicker.component-BjPLm6FH.js.map +1 -0
- package/dist/chunks/datePicker.component-DOq_pEln.js +15 -0
- package/dist/chunks/datePicker.component-DOq_pEln.js.map +1 -0
- package/dist/chunks/dialog-trigger-CUC9-uYl.js +2 -0
- package/dist/chunks/dialog-trigger-CUC9-uYl.js.map +1 -0
- package/dist/chunks/dialog-trigger-tzkv77T4.js +147 -0
- package/dist/chunks/dialog-trigger-tzkv77T4.js.map +1 -0
- package/dist/chunks/divider.types-CVrYEuME.js +47 -0
- package/dist/chunks/divider.types-CVrYEuME.js.map +1 -0
- package/dist/chunks/divider.types-Cum_pC7q.js +2 -0
- package/dist/chunks/divider.types-Cum_pC7q.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-D5ooFDGK.js +1471 -0
- package/dist/chunks/factory-D5ooFDGK.js.map +1 -0
- package/dist/chunks/factory-Djhmhla9.js +17 -0
- package/dist/chunks/factory-Djhmhla9.js.map +1 -0
- package/dist/chunks/flex-CoWH4MWg.js +2 -0
- package/dist/chunks/flex-CoWH4MWg.js.map +1 -0
- package/dist/chunks/flex-D2YmHSRL.js +40 -0
- package/dist/chunks/flex-D2YmHSRL.js.map +1 -0
- package/dist/chunks/float-3sTEdNja.js +64 -0
- package/dist/chunks/float-3sTEdNja.js.map +1 -0
- package/dist/chunks/float-D0XppGHj.js +2 -0
- package/dist/chunks/float-D0XppGHj.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-CUvFlFUM.js +2 -0
- package/dist/chunks/grid-item-CUvFlFUM.js.map +1 -0
- package/dist/chunks/grid-item-Demhr3R8.js +90 -0
- package/dist/chunks/grid-item-Demhr3R8.js.map +1 -0
- package/dist/chunks/group-CyV6CH8n.js +139 -0
- package/dist/chunks/group-CyV6CH8n.js.map +1 -0
- package/dist/chunks/group-gT4uiUTj.js +2 -0
- package/dist/chunks/group-gT4uiUTj.js.map +1 -0
- package/dist/chunks/h-stack-DS6_Nmps.js +2 -0
- package/dist/chunks/h-stack-DS6_Nmps.js.map +1 -0
- package/dist/chunks/h-stack-DWIPFE4q.js +12 -0
- package/dist/chunks/h-stack-DWIPFE4q.js.map +1 -0
- package/dist/chunks/heading.component-CVtGEEgj.js +2 -0
- package/dist/chunks/heading.component-CVtGEEgj.js.map +1 -0
- package/dist/chunks/heading.component-WidNm4DU.js +12 -0
- package/dist/chunks/heading.component-WidNm4DU.js.map +1 -0
- package/dist/chunks/icon-button-BhUHtq9f.js +119 -0
- package/dist/chunks/icon-button-BhUHtq9f.js.map +1 -0
- package/dist/chunks/icon-button-BoeNBxVE.js +2 -0
- package/dist/chunks/icon-button-BoeNBxVE.js.map +1 -0
- package/dist/chunks/{icon.component-DBE3p_Uc.js → icon.component-CqMlCLYe.js} +8 -8
- package/dist/chunks/{icon.component-DBE3p_Uc.js.map → icon.component-CqMlCLYe.js.map} +1 -1
- package/dist/chunks/icon.component-RnXzLy9Z.js +2 -0
- package/dist/chunks/{icon.component-BfsX-enJ.js.map → icon.component-RnXzLy9Z.js.map} +1 -1
- package/dist/chunks/icons-6idzI9fr.js +216 -0
- package/dist/chunks/icons-6idzI9fr.js.map +1 -0
- package/dist/chunks/icons-DsfswYKK.js +2 -0
- package/dist/chunks/icons-DsfswYKK.js.map +1 -0
- package/dist/chunks/index-63NGUyr9.js +389 -0
- package/dist/chunks/index-63NGUyr9.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-BGwwyukg.js +2 -0
- package/dist/chunks/index-BGwwyukg.js.map +1 -0
- package/dist/chunks/{index-vZE8Mg4a.js → index-BStpE8Il.js} +3 -3
- package/dist/chunks/{index-vZE8Mg4a.js.map → index-BStpE8Il.js.map} +1 -1
- package/dist/chunks/index-Bcp83GlU.js +376 -0
- package/dist/chunks/index-Bcp83GlU.js.map +1 -0
- package/dist/chunks/index-C1_01X--.js +6313 -0
- package/dist/chunks/index-C1_01X--.js.map +1 -0
- package/dist/chunks/index-C3d8HKg_.js +291 -0
- package/dist/chunks/index-C3d8HKg_.js.map +1 -0
- package/dist/chunks/index-CItwlE2r.js +2 -0
- package/dist/chunks/index-CItwlE2r.js.map +1 -0
- package/dist/chunks/index-CNSw8O4Z.js +2 -0
- package/dist/chunks/index-CNSw8O4Z.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-CgivotaP.js +20 -0
- package/dist/chunks/index-CgivotaP.js.map +1 -0
- package/dist/chunks/index-Cl4DH-b8.js +2 -0
- package/dist/chunks/index-Cl4DH-b8.js.map +1 -0
- package/dist/chunks/index-CsjrqSSN.js +2 -0
- package/dist/chunks/index-CsjrqSSN.js.map +1 -0
- package/dist/chunks/index-Cv1W043o.js +8 -0
- package/dist/chunks/index-Cv1W043o.js.map +1 -0
- package/dist/chunks/index-Cz4pncg8.js +322 -0
- package/dist/chunks/index-Cz4pncg8.js.map +1 -0
- package/dist/chunks/index-D1m6YWQg.js +2 -0
- package/dist/chunks/index-D1m6YWQg.js.map +1 -0
- package/dist/chunks/index-D79JhErY.js +141 -0
- package/dist/chunks/index-D79JhErY.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-DLvqBeH6.js +1018 -0
- package/dist/chunks/index-DLvqBeH6.js.map +1 -0
- package/dist/chunks/index-DQxjSq1v.js +257 -0
- package/dist/chunks/index-DQxjSq1v.js.map +1 -0
- package/dist/chunks/index-Dg2ABT8y.js +2 -0
- package/dist/chunks/index-Dg2ABT8y.js.map +1 -0
- package/dist/chunks/index-DgM7zI46.js +2 -0
- package/dist/chunks/index-DgM7zI46.js.map +1 -0
- package/dist/chunks/index-Dn2nvQ5m.js +1190 -0
- package/dist/chunks/index-Dn2nvQ5m.js.map +1 -0
- package/dist/chunks/index-JaYE81Ru.js +2 -0
- package/dist/chunks/index-JaYE81Ru.js.map +1 -0
- package/dist/chunks/index-Kw3RO_3f.js +444 -0
- package/dist/chunks/index-Kw3RO_3f.js.map +1 -0
- package/dist/chunks/index-bAktJOSP.js +2 -0
- package/dist/chunks/index-bAktJOSP.js.map +1 -0
- package/dist/chunks/index-naFRmuBR.js +2 -0
- package/dist/chunks/{index-DMJi1adP.js.map → index-naFRmuBR.js.map} +1 -1
- package/dist/chunks/index-sWaESJRS.js +1196 -0
- package/dist/chunks/index-sWaESJRS.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/jsx-runtime-CITbqOLs.js +23 -0
- package/dist/chunks/jsx-runtime-CITbqOLs.js.map +1 -0
- package/dist/chunks/link.component-B0NnnoNo.js +61 -0
- package/dist/chunks/link.component-B0NnnoNo.js.map +1 -0
- package/dist/chunks/link.component-DfPzeeWK.js +2 -0
- package/dist/chunks/link.component-DfPzeeWK.js.map +1 -0
- package/dist/chunks/list-AkEh0-z3.js +2 -0
- package/dist/chunks/list-AkEh0-z3.js.map +1 -0
- package/dist/chunks/list-CBFKkZsk.js +20 -0
- package/dist/chunks/list-CBFKkZsk.js.map +1 -0
- package/dist/chunks/logo.types-DWfVoh84.js +2 -0
- package/dist/chunks/{logo.types-B8atHDWW.js.map → logo.types-DWfVoh84.js.map} +1 -1
- package/dist/chunks/{logo.types-Bvrs8ZXC.js → logo.types-Di-vcqft.js} +20 -18
- package/dist/chunks/{logo.types-Bvrs8ZXC.js.map → logo.types-Di-vcqft.js.map} +1 -1
- package/dist/chunks/menu.component-CVq3JuDQ.js +2 -0
- package/dist/chunks/menu.component-CVq3JuDQ.js.map +1 -0
- package/dist/chunks/menu.component-D7YIaf-Z.js +668 -0
- package/dist/chunks/menu.component-D7YIaf-Z.js.map +1 -0
- package/dist/chunks/modal.types-BqYvHMJ1.js +2 -0
- package/dist/chunks/modal.types-BqYvHMJ1.js.map +1 -0
- package/dist/chunks/modal.types-hd4zRySC.js +192 -0
- package/dist/chunks/modal.types-hd4zRySC.js.map +1 -0
- package/dist/chunks/notificationCounter.component-C1kj4Fks.js +2 -0
- package/dist/chunks/{notificationCounter.component-DkgPZi0c.js.map → notificationCounter.component-C1kj4Fks.js.map} +1 -1
- package/dist/chunks/{notificationCounter.component-Bvbl2C8b.js → notificationCounter.component-DucbUl3J.js} +10 -7
- package/dist/chunks/{notificationCounter.component-Bvbl2C8b.js.map → notificationCounter.component-DucbUl3J.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-CFur6bma.js +2 -0
- package/dist/chunks/picture.component-CFur6bma.js.map +1 -0
- package/dist/chunks/picture.component-CcTQIBLG.js +35 -0
- package/dist/chunks/picture.component-CcTQIBLG.js.map +1 -0
- package/dist/chunks/pinInput.types-BkZoddhj.js +2 -0
- package/dist/chunks/pinInput.types-BkZoddhj.js.map +1 -0
- package/dist/chunks/pinInput.types-htAlsWUJ.js +161 -0
- package/dist/chunks/pinInput.types-htAlsWUJ.js.map +1 -0
- package/dist/chunks/popover-DK1Q0GmC.js +2 -0
- package/dist/chunks/popover-DK1Q0GmC.js.map +1 -0
- package/dist/chunks/popover-NyXIgDrR.js +110 -0
- package/dist/chunks/popover-NyXIgDrR.js.map +1 -0
- package/dist/chunks/popover-root-provider-DL0Y6XoH.js +2 -0
- package/dist/chunks/popover-root-provider-DL0Y6XoH.js.map +1 -0
- package/dist/chunks/popover-root-provider-_dExZRNY.js +43 -0
- package/dist/chunks/popover-root-provider-_dExZRNY.js.map +1 -0
- package/dist/chunks/popover.component-BU4ZYtgB.js +2 -0
- package/dist/chunks/popover.component-BU4ZYtgB.js.map +1 -0
- package/dist/chunks/popover.component-Di7A2mlT.js +323 -0
- package/dist/chunks/popover.component-Di7A2mlT.js.map +1 -0
- package/dist/chunks/popover.recipe-C7mfFIuD.js +478 -0
- package/dist/chunks/popover.recipe-C7mfFIuD.js.map +1 -0
- package/dist/chunks/popover.recipe-CFioNlNO.js +2 -0
- package/dist/chunks/popover.recipe-CFioNlNO.js.map +1 -0
- package/dist/chunks/radio.records-BvaGc_dX.js +382 -0
- package/dist/chunks/radio.records-BvaGc_dX.js.map +1 -0
- package/dist/chunks/radio.records-HAh4TB8-.js +2 -0
- package/dist/chunks/radio.records-HAh4TB8-.js.map +1 -0
- package/dist/chunks/radioGroup.component-AnXOfN3A.js +2 -0
- package/dist/chunks/radioGroup.component-AnXOfN3A.js.map +1 -0
- package/dist/chunks/radioGroup.component-Cdtgrekb.js +266 -0
- package/dist/chunks/radioGroup.component-Cdtgrekb.js.map +1 -0
- package/dist/chunks/{ratingDots.component-Bd43t7IQ.js → ratingDots.component-B-VtkikB.js} +31 -28
- package/dist/chunks/{ratingDots.component-Bd43t7IQ.js.map → ratingDots.component-B-VtkikB.js.map} +1 -1
- package/dist/chunks/ratingDots.component-wYh_RTGd.js +2 -0
- package/dist/chunks/{ratingDots.component-D4ppuVsC.js.map → ratingDots.component-wYh_RTGd.js.map} +1 -1
- package/dist/chunks/render-strategy-8uyKZcWI.js +2 -0
- package/dist/chunks/render-strategy-8uyKZcWI.js.map +1 -0
- package/dist/chunks/render-strategy-Cr139kIz.js +12 -0
- package/dist/chunks/render-strategy-Cr139kIz.js.map +1 -0
- package/dist/chunks/select.component-C9FC4hZN.js +344 -0
- package/dist/chunks/select.component-C9FC4hZN.js.map +1 -0
- package/dist/chunks/select.component-CtCEglbM.js +2 -0
- package/dist/chunks/select.component-CtCEglbM.js.map +1 -0
- package/dist/chunks/{dnd-B2xPQNV1.js → sortableList.component-BpkFj8Wt.js} +1015 -887
- package/dist/chunks/sortableList.component-BpkFj8Wt.js.map +1 -0
- package/dist/chunks/sortableList.component-Dft-FiMn.js +6 -0
- package/dist/chunks/sortableList.component-Dft-FiMn.js.map +1 -0
- package/dist/chunks/spinner-B981BEf0.js +2 -0
- package/dist/chunks/spinner-B981BEf0.js.map +1 -0
- package/dist/chunks/spinner-DUSVCecp.js +8 -0
- package/dist/chunks/spinner-DUSVCecp.js.map +1 -0
- package/dist/chunks/{spinner.component-Dv6ILpLw.js → spinner.component-BmT7fUg9.js} +21 -18
- package/dist/chunks/{spinner.component-Dv6ILpLw.js.map → spinner.component-BmT7fUg9.js.map} +1 -1
- package/dist/chunks/spinner.component-DPS-cIcA.js +2 -0
- package/dist/chunks/{spinner.component-BOvFHPif.js.map → spinner.component-DPS-cIcA.js.map} +1 -1
- package/dist/chunks/stack-BNCEW5sJ.js +85 -0
- package/dist/chunks/stack-BNCEW5sJ.js.map +1 -0
- package/dist/chunks/stack-DXGLsM8c.js +2 -0
- package/dist/chunks/stack-DXGLsM8c.js.map +1 -0
- package/dist/chunks/{styledAvatar.types-CwNCq3sT.js → styledAvatar.types-CI0j01cH.js} +3 -3
- package/dist/chunks/{styledAvatar.types-CwNCq3sT.js.map → styledAvatar.types-CI0j01cH.js.map} +1 -1
- package/dist/chunks/styledAvatar.types-CRb1HJCU.js +2 -0
- package/dist/chunks/{styledAvatar.types-PT4EAuEp.js.map → styledAvatar.types-CRb1HJCU.js.map} +1 -1
- package/dist/chunks/swatch.types-BtgRLAO2.js +2 -0
- package/dist/chunks/swatch.types-BtgRLAO2.js.map +1 -0
- package/dist/chunks/swatch.types-DMM5zh_t.js +67 -0
- package/dist/chunks/swatch.types-DMM5zh_t.js.map +1 -0
- package/dist/chunks/switch.component-Dl4g9R68.js +166 -0
- package/dist/chunks/switch.component-Dl4g9R68.js.map +1 -0
- package/dist/chunks/switch.component-Do0X7LJD.js +2 -0
- package/dist/chunks/switch.component-Do0X7LJD.js.map +1 -0
- package/dist/chunks/tabs.component-D1aPBr6M.js +639 -0
- package/dist/chunks/tabs.component-D1aPBr6M.js.map +1 -0
- package/dist/chunks/tabs.component-ISxMfB67.js +2 -0
- package/dist/chunks/tabs.component-ISxMfB67.js.map +1 -0
- package/dist/chunks/tag.component-BdVdchYv.js +82 -0
- package/dist/chunks/tag.component-BdVdchYv.js.map +1 -0
- package/dist/chunks/tag.component-Mi7eMQDk.js +2 -0
- package/dist/chunks/tag.component-Mi7eMQDk.js.map +1 -0
- package/dist/chunks/{tagBlock.component-mh1xalv9.js → tagBlock.component-BQRdsHPH.js} +18 -16
- package/dist/chunks/{tagBlock.component-mh1xalv9.js.map → tagBlock.component-BQRdsHPH.js.map} +1 -1
- package/dist/chunks/tagBlock.component-Dj3iPVJy.js +2 -0
- package/dist/chunks/{tagBlock.component-l95szZbR.js.map → tagBlock.component-Dj3iPVJy.js.map} +1 -1
- package/dist/chunks/text.component-uDfPjmx6.js +2 -0
- package/dist/chunks/text.component-uDfPjmx6.js.map +1 -0
- package/dist/chunks/text.component-ymbS_dRE.js +12 -0
- package/dist/chunks/text.component-ymbS_dRE.js.map +1 -0
- package/dist/chunks/textInput.component-CEF55yJj.js +2 -0
- package/dist/chunks/textInput.component-CEF55yJj.js.map +1 -0
- package/dist/chunks/textInput.component-DfqkWsJX.js +180 -0
- package/dist/chunks/textInput.component-DfqkWsJX.js.map +1 -0
- package/dist/chunks/textarea.component-1B3U7E2O.js +97 -0
- package/dist/chunks/textarea.component-1B3U7E2O.js.map +1 -0
- package/dist/chunks/textarea.component-BVGFuIZC.js +2 -0
- package/dist/chunks/textarea.component-BVGFuIZC.js.map +1 -0
- package/dist/chunks/{chakra-CM93-d7A.js → theme.provider-B2ycPYcf.js} +5058 -6193
- package/dist/chunks/theme.provider-B2ycPYcf.js.map +1 -0
- package/dist/chunks/theme.provider-BM3qjfO8.js +26 -0
- package/dist/chunks/theme.provider-BM3qjfO8.js.map +1 -0
- package/dist/chunks/{timePicker.component-De_cGEGp.js → timePicker.component-C7i3U49Y.js} +51 -48
- package/dist/chunks/{timePicker.component-De_cGEGp.js.map → timePicker.component-C7i3U49Y.js.map} +1 -1
- package/dist/chunks/timePicker.component-oN8iujB5.js +2 -0
- package/dist/chunks/{timePicker.component-xmuus8uL.js.map → timePicker.component-oN8iujB5.js.map} +1 -1
- package/dist/chunks/timeRange.component-BApcir-7.js +18 -0
- package/dist/chunks/{timeRange.component-DrzDwxwT.js.map → timeRange.component-BApcir-7.js.map} +1 -1
- package/dist/chunks/timeRange.component-XZD-d3X-.js +2 -0
- package/dist/chunks/{timeRange.component-CUvBh5g0.js.map → timeRange.component-XZD-d3X-.js.map} +1 -1
- package/dist/chunks/timestamp.component-25Br-GCm.js +54 -0
- package/dist/chunks/timestamp.component-25Br-GCm.js.map +1 -0
- package/dist/chunks/timestamp.component-DJZzpqBC.js +2 -0
- package/dist/chunks/timestamp.component-DJZzpqBC.js.map +1 -0
- package/dist/chunks/toaster.records-BSRUGTiS.js +824 -0
- package/dist/chunks/toaster.records-BSRUGTiS.js.map +1 -0
- package/dist/chunks/toaster.records-BTc-Lbzv.js +2 -0
- package/dist/chunks/toaster.records-BTc-Lbzv.js.map +1 -0
- package/dist/chunks/tooltip.component-CVPBpD3Z.js +2 -0
- package/dist/chunks/tooltip.component-CVPBpD3Z.js.map +1 -0
- package/dist/chunks/tooltip.component-Cf_csr_d.js +754 -0
- package/dist/chunks/tooltip.component-Cf_csr_d.js.map +1 -0
- package/dist/chunks/{typography.records-CG4wIBxE.js → typography.records-DA6XZIsX.js} +17 -5
- package/dist/chunks/typography.records-DA6XZIsX.js.map +1 -0
- package/dist/chunks/typography.records-DZdHSCkY.js +2 -0
- package/dist/chunks/typography.records-DZdHSCkY.js.map +1 -0
- package/dist/chunks/use-field-context-B8ygn96q.js +12 -0
- package/dist/chunks/use-field-context-B8ygn96q.js.map +1 -0
- package/dist/chunks/use-field-context-BPsEZCN4.js +2 -0
- package/dist/chunks/use-field-context-BPsEZCN4.js.map +1 -0
- package/dist/chunks/use-locale-context-Cc4BhWV1.js +22 -0
- package/dist/chunks/use-locale-context-Cc4BhWV1.js.map +1 -0
- package/dist/chunks/use-locale-context-zakBNK5b.js +2301 -0
- package/dist/chunks/use-locale-context-zakBNK5b.js.map +1 -0
- package/dist/chunks/use-recipe-CkP1U6f2.js +2 -0
- package/dist/chunks/use-recipe-CkP1U6f2.js.map +1 -0
- package/dist/chunks/use-recipe-D7cwXEim.js +13 -0
- package/dist/chunks/use-recipe-D7cwXEim.js.map +1 -0
- package/dist/chunks/use-slot-recipe-Bz5VPIbz.js +13 -0
- package/dist/chunks/use-slot-recipe-Bz5VPIbz.js.map +1 -0
- package/dist/chunks/use-slot-recipe-ClRnqDPf.js +2 -0
- package/dist/chunks/use-slot-recipe-ClRnqDPf.js.map +1 -0
- package/dist/chunks/v-stack-By2b5ZVX.js +2 -0
- package/dist/chunks/v-stack-By2b5ZVX.js.map +1 -0
- package/dist/chunks/v-stack-C_EMZ8cL.js +12 -0
- package/dist/chunks/v-stack-C_EMZ8cL.js.map +1 -0
- package/dist/chunks/walk-object-BQcbPtPs.js +28 -0
- package/dist/chunks/walk-object-BQcbPtPs.js.map +1 -0
- package/dist/chunks/walk-object-CwdvmBuz.js +2 -0
- package/dist/chunks/walk-object-CwdvmBuz.js.map +1 -0
- package/dist/chunks/withFormControl-CUnCiP8H.js +2 -0
- package/dist/chunks/withFormControl-CUnCiP8H.js.map +1 -0
- package/dist/chunks/withFormControl-DoBnTeb9.js +375 -0
- package/dist/chunks/withFormControl-DoBnTeb9.js.map +1 -0
- package/dist/chunks/withTruncation-CzqmBekU.js +2 -0
- package/dist/chunks/{withTruncation-BBPS7Ess.js.map → withTruncation-CzqmBekU.js.map} +1 -1
- package/dist/chunks/{withTruncation-B1xhd1td.js → withTruncation-iFpoL9YV.js} +4 -4
- package/dist/chunks/{withTruncation-B1xhd1td.js.map → withTruncation-iFpoL9YV.js.map} +1 -1
- package/dist/chunks/wrap-CdWJy79S.js +2 -0
- package/dist/chunks/wrap-CdWJy79S.js.map +1 -0
- package/dist/chunks/wrap-DwAuTaha.js +45 -0
- package/dist/chunks/wrap-DwAuTaha.js.map +1 -0
- package/dist/cjs/chakra/index.cjs +1 -1
- package/dist/cjs/chakra/index.cjs.map +1 -1
- 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/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/components/ConversationCard/index.cjs +1 -1
- package/dist/cjs/components/DatePicker/index.cjs +1 -1
- package/dist/cjs/components/Divider/index.cjs +1 -1
- package/dist/cjs/components/Divider/index.cjs.map +1 -1
- 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 +1 -1
- package/dist/cjs/components/Logo/index.cjs +1 -1
- 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 +1 -1
- 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/components/StyledAvatar/index.cjs +1 -1
- 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/components/TagBlock/index.cjs +1 -1
- 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/components/Timestamp/index.cjs +1 -1
- package/dist/cjs/components/Toast/index.cjs +1 -1
- 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/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/index.cjs.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +1 -1
- package/dist/cjs/theme/tokens/blurs/index.cjs +1 -1
- package/dist/esm/chakra/index.js +3216 -66
- package/dist/esm/chakra/index.js.map +1 -1
- package/dist/esm/components/Alert/index.js +1 -1
- 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 +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/components/ConversationCard/index.js +1 -1
- package/dist/esm/components/DatePicker/index.js +1 -1
- package/dist/esm/components/Divider/index.js +5 -24
- package/dist/esm/components/Divider/index.js.map +1 -1
- package/dist/esm/components/Heading/index.js +1 -1
- package/dist/esm/components/Icon/generated/index.js +1 -1
- package/dist/esm/components/Icon/index.js +1 -1
- package/dist/esm/components/Link/index.js +1 -1
- package/dist/esm/components/Logo/generated/index.js +1 -1
- package/dist/esm/components/Logo/index.js +1 -1
- 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 +4 -9
- 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 +1 -1
- 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/components/StyledAvatar/index.js +1 -1
- 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 +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/Text/index.js +1 -1
- package/dist/esm/components/TextInput/index.js +1 -1
- 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 +1 -1
- package/dist/esm/components/Toast/index.js +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +71 -71
- package/dist/esm/hocs/index.js +1 -1
- package/dist/esm/hooks/index.js +3 -17
- package/dist/esm/hooks/index.js.map +1 -1
- package/dist/esm/index.js +67 -67
- package/dist/esm/theme/index.js +1 -1
- package/dist/esm/theme/tokens/blurs/index.js +1 -2
- package/dist/esm/theme/tokens/blurs/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/IconLogo-Dd5mp5A_.js +0 -2
- package/dist/chunks/alert.component-BckFT52S.js +0 -182
- package/dist/chunks/alert.component-BckFT52S.js.map +0 -1
- package/dist/chunks/alert.component-E006OS2e.js +0 -2
- package/dist/chunks/alert.component-E006OS2e.js.map +0 -1
- package/dist/chunks/avatar.component-CRJ7JH0g.js +0 -2
- package/dist/chunks/avatar.component-CRJ7JH0g.js.map +0 -1
- package/dist/chunks/avatar.component-Ds5P6pYC.js +0 -307
- package/dist/chunks/avatar.component-Ds5P6pYC.js.map +0 -1
- package/dist/chunks/avatarGroup.component-DSqzbbcH.js +0 -2
- package/dist/chunks/button.component-C0WP_LB_.js +0 -2
- package/dist/chunks/buttonGroup.component-ChKXpEdS.js +0 -2
- package/dist/chunks/buttonGroup.component-ChKXpEdS.js.map +0 -1
- package/dist/chunks/buttonGroup.component-Dg4GN69o.js +0 -67
- package/dist/chunks/buttonGroup.component-Dg4GN69o.js.map +0 -1
- package/dist/chunks/card.component-DD6Qc8tF.js +0 -2
- package/dist/chunks/chakra-C0NbsW66.js +0 -5
- package/dist/chunks/chakra-C0NbsW66.js.map +0 -1
- package/dist/chunks/chakra-CM93-d7A.js.map +0 -1
- package/dist/chunks/characterCounter.component-DGpH9KSC.js +0 -2
- package/dist/chunks/checkbox.component-B8_UcvuT.js +0 -2
- package/dist/chunks/checkbox.component-B8_UcvuT.js.map +0 -1
- package/dist/chunks/checkbox.component-DmvrqdLZ.js +0 -90
- package/dist/chunks/checkbox.component-DmvrqdLZ.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-C0JIZ2j9.js +0 -2
- package/dist/chunks/conversationCard.component-CA2l_lHe.js +0 -2
- package/dist/chunks/date-CQ_hzmOK.js +0 -3598
- package/dist/chunks/date-CQ_hzmOK.js.map +0 -1
- package/dist/chunks/date-Dn1AgqaP.js +0 -15
- package/dist/chunks/date-Dn1AgqaP.js.map +0 -1
- package/dist/chunks/datePicker.component-B4vcW7h7.js +0 -2
- package/dist/chunks/datePicker.component-B4vcW7h7.js.map +0 -1
- package/dist/chunks/datePicker.component-cA-nGYqw.js +0 -749
- package/dist/chunks/datePicker.component-cA-nGYqw.js.map +0 -1
- package/dist/chunks/dnd-B2xPQNV1.js.map +0 -1
- package/dist/chunks/dnd-Whsk3gIz.js +0 -6
- package/dist/chunks/dnd-Whsk3gIz.js.map +0 -1
- package/dist/chunks/heading.component-gaqQG9s0.js +0 -2
- package/dist/chunks/heading.component-gaqQG9s0.js.map +0 -1
- package/dist/chunks/heading.component-hixOzKF-.js +0 -10
- package/dist/chunks/heading.component-hixOzKF-.js.map +0 -1
- package/dist/chunks/icon.component-BfsX-enJ.js +0 -2
- package/dist/chunks/index-DMJi1adP.js +0 -2
- package/dist/chunks/link.component-dqnMmYTA.js +0 -2
- package/dist/chunks/link.component-dqnMmYTA.js.map +0 -1
- package/dist/chunks/link.component-eJ17KWOU.js +0 -58
- package/dist/chunks/link.component-eJ17KWOU.js.map +0 -1
- package/dist/chunks/logo.types-B8atHDWW.js +0 -2
- package/dist/chunks/menu.component-BkBiiMuq.js +0 -390
- package/dist/chunks/menu.component-BkBiiMuq.js.map +0 -1
- package/dist/chunks/menu.component-DXMYm7dU.js +0 -2
- package/dist/chunks/menu.component-DXMYm7dU.js.map +0 -1
- package/dist/chunks/modal.types-DvtR-omH.js +0 -146
- package/dist/chunks/modal.types-DvtR-omH.js.map +0 -1
- package/dist/chunks/modal.types-z5WKe7Q0.js +0 -2
- package/dist/chunks/modal.types-z5WKe7Q0.js.map +0 -1
- package/dist/chunks/notificationCounter.component-DkgPZi0c.js +0 -2
- package/dist/chunks/pinInput.types-DHqvwJ2H.js +0 -2
- package/dist/chunks/pinInput.types-DHqvwJ2H.js.map +0 -1
- package/dist/chunks/pinInput.types-DyHMYDL5.js +0 -64
- package/dist/chunks/pinInput.types-DyHMYDL5.js.map +0 -1
- package/dist/chunks/popover.component-7qztHz-A.js +0 -221
- package/dist/chunks/popover.component-7qztHz-A.js.map +0 -1
- package/dist/chunks/popover.component-BHcW8kHH.js +0 -2
- package/dist/chunks/popover.component-BHcW8kHH.js.map +0 -1
- package/dist/chunks/popover.recipe-9UvOa6LD.js +0 -2
- package/dist/chunks/popover.recipe-9UvOa6LD.js.map +0 -1
- package/dist/chunks/popover.recipe-BecbuU0C.js +0 -123
- package/dist/chunks/popover.recipe-BecbuU0C.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-BGyp2laV.js +0 -2
- package/dist/chunks/radioGroup.component-BGyp2laV.js.map +0 -1
- package/dist/chunks/radioGroup.component-C_ZyLaHd.js +0 -151
- package/dist/chunks/radioGroup.component-C_ZyLaHd.js.map +0 -1
- package/dist/chunks/ratingDots.component-D4ppuVsC.js +0 -2
- package/dist/chunks/select.component-CbIIIuhy.js +0 -2
- package/dist/chunks/select.component-CbIIIuhy.js.map +0 -1
- package/dist/chunks/select.component-ZziZvaYN.js +0 -129
- package/dist/chunks/select.component-ZziZvaYN.js.map +0 -1
- package/dist/chunks/sortableList.component-C0TkrJ1w.js +0 -145
- package/dist/chunks/sortableList.component-C0TkrJ1w.js.map +0 -1
- package/dist/chunks/sortableList.component-qsHXIcpT.js +0 -2
- package/dist/chunks/sortableList.component-qsHXIcpT.js.map +0 -1
- package/dist/chunks/spinner.component-BOvFHPif.js +0 -2
- package/dist/chunks/styledAvatar.types-PT4EAuEp.js +0 -2
- package/dist/chunks/switch.component-B3FklslV.js +0 -2
- package/dist/chunks/switch.component-B3FklslV.js.map +0 -1
- package/dist/chunks/switch.component-BGEZmxHH.js +0 -53
- package/dist/chunks/switch.component-BGEZmxHH.js.map +0 -1
- package/dist/chunks/tabs.component-BrrimKx6.js +0 -2
- package/dist/chunks/tabs.component-BrrimKx6.js.map +0 -1
- package/dist/chunks/tabs.component-CUIaXeqI.js +0 -87
- package/dist/chunks/tabs.component-CUIaXeqI.js.map +0 -1
- package/dist/chunks/tag.component-DyKlm8xn.js +0 -66
- package/dist/chunks/tag.component-DyKlm8xn.js.map +0 -1
- package/dist/chunks/tag.component-eQu3O7if.js +0 -2
- package/dist/chunks/tag.component-eQu3O7if.js.map +0 -1
- package/dist/chunks/tagBlock.component-l95szZbR.js +0 -2
- package/dist/chunks/text.component-BEmVrJQy.js +0 -2
- package/dist/chunks/text.component-BEmVrJQy.js.map +0 -1
- package/dist/chunks/text.component-BqLgdeLf.js +0 -10
- package/dist/chunks/text.component-BqLgdeLf.js.map +0 -1
- package/dist/chunks/textInput.component-CWd-3re1.js +0 -2
- package/dist/chunks/textInput.component-CWd-3re1.js.map +0 -1
- package/dist/chunks/textInput.component-kHpXV881.js +0 -98
- package/dist/chunks/textInput.component-kHpXV881.js.map +0 -1
- package/dist/chunks/textarea.component-DZPiaMgB.js +0 -51
- package/dist/chunks/textarea.component-DZPiaMgB.js.map +0 -1
- package/dist/chunks/textarea.component-Du9r-ixW.js +0 -2
- package/dist/chunks/textarea.component-Du9r-ixW.js.map +0 -1
- package/dist/chunks/theme.provider-BBYAbeey.js +0 -2681
- package/dist/chunks/theme.provider-BBYAbeey.js.map +0 -1
- package/dist/chunks/theme.provider-BieTVY3q.js +0 -24
- package/dist/chunks/theme.provider-BieTVY3q.js.map +0 -1
- package/dist/chunks/timePicker.component-xmuus8uL.js +0 -2
- package/dist/chunks/timeRange.component-CUvBh5g0.js +0 -2
- package/dist/chunks/timeRange.component-DrzDwxwT.js +0 -17
- package/dist/chunks/timestamp.component-BpkM-el7.js +0 -2
- package/dist/chunks/timestamp.component-BpkM-el7.js.map +0 -1
- package/dist/chunks/timestamp.component-CCDsOjUf.js +0 -37
- package/dist/chunks/timestamp.component-CCDsOjUf.js.map +0 -1
- package/dist/chunks/toaster.records-Dm3AFmL1.js +0 -2
- package/dist/chunks/toaster.records-Dm3AFmL1.js.map +0 -1
- package/dist/chunks/toaster.records-GZYhSv5r.js +0 -47
- package/dist/chunks/toaster.records-GZYhSv5r.js.map +0 -1
- package/dist/chunks/tooltip.component-BCqNpAW9.js +0 -2
- package/dist/chunks/tooltip.component-BCqNpAW9.js.map +0 -1
- package/dist/chunks/tooltip.component-L2RWV-Gf.js +0 -70
- package/dist/chunks/tooltip.component-L2RWV-Gf.js.map +0 -1
- package/dist/chunks/typography.records-BPYXVuvi.js +0 -2
- package/dist/chunks/typography.records-BPYXVuvi.js.map +0 -1
- package/dist/chunks/typography.records-CG4wIBxE.js.map +0 -1
- package/dist/chunks/vendor-CRIhG-7s.js +0 -21518
- package/dist/chunks/vendor-CRIhG-7s.js.map +0 -1
- package/dist/chunks/vendor-DcKGwQlH.js +0 -64
- package/dist/chunks/vendor-DcKGwQlH.js.map +0 -1
- package/dist/chunks/withFormControl-C8kEF6Sj.js +0 -149
- package/dist/chunks/withFormControl-C8kEF6Sj.js.map +0 -1
- package/dist/chunks/withFormControl-uSeX61J8.js +0 -2
- package/dist/chunks/withFormControl-uSeX61J8.js.map +0 -1
- package/dist/chunks/withTruncation-BBPS7Ess.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const o=require("./jsx-runtime-CITbqOLs.js"),s=require("./factory-Djhmhla9.js"),n=r=>o.jsxRuntimeExports.jsx(s.chakra.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:o.jsxRuntimeExports.jsx("path",{d:"M20 6 9 17l-5-5"})}),t=r=>o.jsxRuntimeExports.jsx(s.chakra.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:o.jsxRuntimeExports.jsx("path",{d:"m18 15-6-6-6 6"})}),e=r=>o.jsxRuntimeExports.jsx(s.chakra.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:o.jsxRuntimeExports.jsx("path",{d:"m6 9 6 6 6-6"})}),i=r=>o.jsxRuntimeExports.jsx(s.chakra.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:o.jsxRuntimeExports.jsx("path",{d:"m9 18 6-6-6-6"})}),c=r=>o.jsxRuntimeExports.jsxs(s.chakra.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[o.jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"1"}),o.jsxRuntimeExports.jsx("circle",{cx:"19",cy:"12",r:"1"}),o.jsxRuntimeExports.jsx("circle",{cx:"5",cy:"12",r:"1"})]}),x=r=>o.jsxRuntimeExports.jsxs(s.chakra.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[o.jsxRuntimeExports.jsx("path",{d:"m5 12 7-7 7 7"}),o.jsxRuntimeExports.jsx("path",{d:"M12 19V5"})]}),l=r=>o.jsxRuntimeExports.jsxs(s.chakra.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[o.jsxRuntimeExports.jsx("path",{d:"M12 5v14"}),o.jsxRuntimeExports.jsx("path",{d:"m19 12-7 7-7-7"})]}),j=r=>o.jsxRuntimeExports.jsx(s.chakra.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...r,children:o.jsxRuntimeExports.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),u=r=>o.jsxRuntimeExports.jsx(s.chakra.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...r,children:o.jsxRuntimeExports.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),p=r=>o.jsxRuntimeExports.jsx(s.chakra.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...r,children:o.jsxRuntimeExports.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),h=r=>o.jsxRuntimeExports.jsx(s.chakra.svg,{viewBox:"0 0 24 24",fill:"currentColor",...r,children:o.jsxRuntimeExports.jsx("path",{d:"M6.5 10c-.223 0-.437.034-.65.065.069-.232.14-.468.254-.68.114-.308.292-.575.469-.844.148-.291.409-.488.601-.737.201-.242.475-.403.692-.604.213-.21.492-.315.714-.463.232-.133.434-.28.65-.35l.539-.222.474-.197-.485-1.938-.597.144c-.191.048-.424.104-.689.171-.271.05-.56.187-.882.312-.318.142-.686.238-1.028.466-.344.218-.741.4-1.091.692-.339.301-.748.562-1.05.945-.33.358-.656.734-.909 1.162-.293.408-.492.856-.702 1.299-.19.443-.343.896-.468 1.336-.237.882-.343 1.72-.384 2.437-.034.718-.014 1.315.028 1.747.015.204.043.402.063.539l.025.168.026-.006A4.5 4.5 0 1 0 6.5 10zm11 0c-.223 0-.437.034-.65.065.069-.232.14-.468.254-.68.114-.308.292-.575.469-.844.148-.291.409-.488.601-.737.201-.242.475-.403.692-.604.213-.21.492-.315.714-.463.232-.133.434-.28.65-.35l.539-.222.474-.197-.485-1.938-.597.144c-.191.048-.424.104-.689.171-.271.05-.56.187-.882.312-.317.143-.686.238-1.028.467-.344.218-.741.4-1.091.692-.339.301-.748.562-1.05.944-.33.358-.656.734-.909 1.162-.293.408-.492.856-.702 1.299-.19.443-.343.896-.468 1.336-.237.882-.343 1.72-.384 2.437-.034.718-.014 1.315.028 1.747.015.204.043.402.063.539l.025.168.026-.006A4.5 4.5 0 1 0 17.5 10z"})}),d=r=>o.jsxRuntimeExports.jsx(s.chakra.svg,{viewBox:"0 0 24 24",fill:"currentColor",...r,children:o.jsxRuntimeExports.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"})}),a=r=>o.jsxRuntimeExports.jsx(s.chakra.svg,{viewBox:"0 0 24 24",fill:"currentColor",...r,children:o.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),k=r=>o.jsxRuntimeExports.jsxs(s.chakra.svg,{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[o.jsxRuntimeExports.jsx("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),o.jsxRuntimeExports.jsx("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})]}),C=r=>o.jsxRuntimeExports.jsxs(s.chakra.svg,{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[o.jsxRuntimeExports.jsx("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),o.jsxRuntimeExports.jsx("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]}),m=r=>o.jsxRuntimeExports.jsxs(s.chakra.svg,{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[o.jsxRuntimeExports.jsx("path",{d:"m2 22 1-1h3l9-9"}),o.jsxRuntimeExports.jsx("path",{d:"M3 21v-3l9-9"}),o.jsxRuntimeExports.jsx("path",{d:"m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z"})]}),R=r=>o.jsxRuntimeExports.jsxs(s.chakra.svg,{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[o.jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"1"}),o.jsxRuntimeExports.jsx("circle",{cx:"19",cy:"12",r:"1"}),o.jsxRuntimeExports.jsx("circle",{cx:"5",cy:"12",r:"1"})]});exports.ArrowDownIcon=l;exports.ArrowUpIcon=x;exports.CheckCircleIcon=j;exports.CheckIcon=n;exports.ChevronDownIcon=e;exports.ChevronRightIcon=i;exports.ChevronUpIcon=t;exports.CloseIcon=a;exports.CopyIcon=C;exports.EllipsisIcon=R;exports.EllpsisIcon=c;exports.FileIcon=k;exports.InfoIcon=p;exports.PipetteIcon=m;exports.QuoteIcon=h;exports.StarIcon=d;exports.WarningIcon=u;
|
|
2
|
+
//# sourceMappingURL=icons-DsfswYKK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons-DsfswYKK.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/icons.js"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { jsx, jsxs } from 'react/jsx-runtime';\nimport { chakra } from '../styled-system/factory.js';\n\nconst CheckIcon = (props) => {\n return /* @__PURE__ */ jsx(\n chakra.svg,\n {\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: \"2\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n ...props,\n children: /* @__PURE__ */ jsx(\"path\", { d: \"M20 6 9 17l-5-5\" })\n }\n );\n};\nconst ChevronUpIcon = (props) => /* @__PURE__ */ jsx(\n chakra.svg,\n {\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: \"2\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n ...props,\n children: /* @__PURE__ */ jsx(\"path\", { d: \"m18 15-6-6-6 6\" })\n }\n);\nconst ChevronDownIcon = (props) => {\n return /* @__PURE__ */ jsx(\n chakra.svg,\n {\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: \"2\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n ...props,\n children: /* @__PURE__ */ jsx(\"path\", { d: \"m6 9 6 6 6-6\" })\n }\n );\n};\nconst ChevronRightIcon = (props) => /* @__PURE__ */ jsx(\n chakra.svg,\n {\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: \"2\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n ...props,\n children: /* @__PURE__ */ jsx(\"path\", { d: \"m9 18 6-6-6-6\" })\n }\n);\nconst EllpsisIcon = (props) => /* @__PURE__ */ jsxs(\n chakra.svg,\n {\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: \"2\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n ...props,\n children: [\n /* @__PURE__ */ jsx(\"circle\", { cx: \"12\", cy: \"12\", r: \"1\" }),\n /* @__PURE__ */ jsx(\"circle\", { cx: \"19\", cy: \"12\", r: \"1\" }),\n /* @__PURE__ */ jsx(\"circle\", { cx: \"5\", cy: \"12\", r: \"1\" })\n ]\n }\n);\nconst ArrowUpIcon = (props) => /* @__PURE__ */ jsxs(\n chakra.svg,\n {\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: \"3\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n ...props,\n children: [\n /* @__PURE__ */ jsx(\"path\", { d: \"m5 12 7-7 7 7\" }),\n /* @__PURE__ */ jsx(\"path\", { d: \"M12 19V5\" })\n ]\n }\n);\nconst ArrowDownIcon = (props) => /* @__PURE__ */ jsxs(\n chakra.svg,\n {\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: \"3\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n ...props,\n children: [\n /* @__PURE__ */ jsx(\"path\", { d: \"M12 5v14\" }),\n /* @__PURE__ */ jsx(\"path\", { d: \"m19 12-7 7-7-7\" })\n ]\n }\n);\nconst CheckCircleIcon = (props) => /* @__PURE__ */ jsx(\n chakra.svg,\n {\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: \"0\",\n viewBox: \"0 0 24 24\",\n ...props,\n children: /* @__PURE__ */ jsx(\"path\", { d: \"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z\" })\n }\n);\nconst WarningIcon = (props) => /* @__PURE__ */ jsx(\n chakra.svg,\n {\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: \"0\",\n viewBox: \"0 0 24 24\",\n ...props,\n children: /* @__PURE__ */ jsx(\"path\", { d: \"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z\" })\n }\n);\nconst InfoIcon = (props) => /* @__PURE__ */ jsx(\n chakra.svg,\n {\n viewBox: \"0 0 24 24\",\n fill: \"currentColor\",\n stroke: \"currentColor\",\n strokeWidth: \"0\",\n ...props,\n children: /* @__PURE__ */ jsx(\"path\", { d: \"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z\" })\n }\n);\nconst QuoteIcon = (props) => /* @__PURE__ */ jsx(chakra.svg, { viewBox: \"0 0 24 24\", fill: \"currentColor\", ...props, children: /* @__PURE__ */ jsx(\"path\", { d: \"M6.5 10c-.223 0-.437.034-.65.065.069-.232.14-.468.254-.68.114-.308.292-.575.469-.844.148-.291.409-.488.601-.737.201-.242.475-.403.692-.604.213-.21.492-.315.714-.463.232-.133.434-.28.65-.35l.539-.222.474-.197-.485-1.938-.597.144c-.191.048-.424.104-.689.171-.271.05-.56.187-.882.312-.318.142-.686.238-1.028.466-.344.218-.741.4-1.091.692-.339.301-.748.562-1.05.945-.33.358-.656.734-.909 1.162-.293.408-.492.856-.702 1.299-.19.443-.343.896-.468 1.336-.237.882-.343 1.72-.384 2.437-.034.718-.014 1.315.028 1.747.015.204.043.402.063.539l.025.168.026-.006A4.5 4.5 0 1 0 6.5 10zm11 0c-.223 0-.437.034-.65.065.069-.232.14-.468.254-.68.114-.308.292-.575.469-.844.148-.291.409-.488.601-.737.201-.242.475-.403.692-.604.213-.21.492-.315.714-.463.232-.133.434-.28.65-.35l.539-.222.474-.197-.485-1.938-.597.144c-.191.048-.424.104-.689.171-.271.05-.56.187-.882.312-.317.143-.686.238-1.028.467-.344.218-.741.4-1.091.692-.339.301-.748.562-1.05.944-.33.358-.656.734-.909 1.162-.293.408-.492.856-.702 1.299-.19.443-.343.896-.468 1.336-.237.882-.343 1.72-.384 2.437-.034.718-.014 1.315.028 1.747.015.204.043.402.063.539l.025.168.026-.006A4.5 4.5 0 1 0 17.5 10z\" }) });\nconst StarIcon = (props) => /* @__PURE__ */ jsx(chakra.svg, { viewBox: \"0 0 24 24\", fill: \"currentColor\", ...props, children: /* @__PURE__ */ jsx(\"path\", { d: \"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z\" }) });\nconst ErrorIcon = (props) => /* @__PURE__ */ jsx(chakra.svg, { viewBox: \"0 0 24 24\", fill: \"currentColor\", ...props, children: /* @__PURE__ */ jsx(\"path\", { d: \"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z\" }) });\nconst CloseIcon = (props) => /* @__PURE__ */ jsx(chakra.svg, { viewBox: \"0 0 24 24\", fill: \"currentColor\", ...props, children: /* @__PURE__ */ jsx(\n \"path\",\n {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z\"\n }\n) });\nconst FileIcon = (props) => /* @__PURE__ */ jsxs(\n chakra.svg,\n {\n stroke: \"currentColor\",\n fill: \"none\",\n strokeWidth: \"2\",\n viewBox: \"0 0 24 24\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n ...props,\n children: [\n /* @__PURE__ */ jsx(\"path\", { d: \"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" }),\n /* @__PURE__ */ jsx(\"path\", { d: \"M14 2v4a2 2 0 0 0 2 2h4\" })\n ]\n }\n);\nconst CopyIcon = (props) => /* @__PURE__ */ jsxs(\n chakra.svg,\n {\n stroke: \"currentColor\",\n fill: \"none\",\n strokeWidth: \"2\",\n viewBox: \"0 0 24 24\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n ...props,\n children: [\n /* @__PURE__ */ jsx(\"rect\", { width: \"14\", height: \"14\", x: \"8\", y: \"8\", rx: \"2\", ry: \"2\" }),\n /* @__PURE__ */ jsx(\"path\", { d: \"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" })\n ]\n }\n);\nconst PipetteIcon = (props) => /* @__PURE__ */ jsxs(\n chakra.svg,\n {\n stroke: \"currentColor\",\n fill: \"none\",\n strokeWidth: \"2\",\n viewBox: \"0 0 24 24\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n ...props,\n children: [\n /* @__PURE__ */ jsx(\"path\", { d: \"m2 22 1-1h3l9-9\" }),\n /* @__PURE__ */ jsx(\"path\", { d: \"M3 21v-3l9-9\" }),\n /* @__PURE__ */ jsx(\"path\", { d: \"m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z\" })\n ]\n }\n);\nconst EllipsisIcon = (props) => /* @__PURE__ */ jsxs(\n chakra.svg,\n {\n stroke: \"currentColor\",\n fill: \"none\",\n strokeWidth: \"2\",\n viewBox: \"0 0 24 24\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n ...props,\n children: [\n /* @__PURE__ */ jsx(\"circle\", { cx: \"12\", cy: \"12\", r: \"1\" }),\n /* @__PURE__ */ jsx(\"circle\", { cx: \"19\", cy: \"12\", r: \"1\" }),\n /* @__PURE__ */ jsx(\"circle\", { cx: \"5\", cy: \"12\", r: \"1\" })\n ]\n }\n);\n\nexport { ArrowDownIcon, ArrowUpIcon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CopyIcon, EllipsisIcon, EllpsisIcon, ErrorIcon, FileIcon, InfoIcon, PipetteIcon, QuoteIcon, StarIcon, WarningIcon };\n"],"names":["CheckIcon","props","jsx","chakra","ChevronUpIcon","ChevronDownIcon","ChevronRightIcon","EllpsisIcon","jsxs","ArrowUpIcon","ArrowDownIcon","CheckCircleIcon","WarningIcon","InfoIcon","QuoteIcon","StarIcon","CloseIcon","FileIcon","CopyIcon","PipetteIcon","EllipsisIcon"],"mappings":"6FAKMA,EAAaC,GACMC,EAAG,kBAAA,IACxBC,EAAAA,OAAO,IACP,CACE,QAAS,YACT,KAAM,OACN,OAAQ,eACR,YAAa,IACb,cAAe,QACf,eAAgB,QAChB,GAAGF,EACH,SAA0BC,EAAAA,kBAAAA,IAAI,OAAQ,CAAE,EAAG,iBAAmB,CAAA,CACpE,CACG,EAEGE,EAAiBH,GAA0BC,EAAG,kBAAA,IAClDC,EAAAA,OAAO,IACP,CACE,QAAS,YACT,KAAM,OACN,OAAQ,eACR,YAAa,IACb,cAAe,QACf,eAAgB,QAChB,GAAGF,EACH,SAA0BC,EAAAA,kBAAAA,IAAI,OAAQ,CAAE,EAAG,gBAAkB,CAAA,CACjE,CACA,EACMG,EAAmBJ,GACAC,EAAG,kBAAA,IACxBC,EAAAA,OAAO,IACP,CACE,QAAS,YACT,KAAM,OACN,OAAQ,eACR,YAAa,IACb,cAAe,QACf,eAAgB,QAChB,GAAGF,EACH,SAA0BC,EAAAA,kBAAAA,IAAI,OAAQ,CAAE,EAAG,cAAgB,CAAA,CACjE,CACG,EAEGI,EAAoBL,GAA0BC,EAAG,kBAAA,IACrDC,EAAAA,OAAO,IACP,CACE,QAAS,YACT,KAAM,OACN,OAAQ,eACR,YAAa,IACb,cAAe,QACf,eAAgB,QACh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gB,EAAYjB,GAA0BO,EAAI,kBAAA,KAC9CL,EAAAA,OAAO,IACP,CACE,OAAQ,eACR,KAAM,OACN,YAAa,IACb,QAAS,YACT,cAAe,QACf,eAAgB,QAChB,GAAGF,EACH,SAAU,CACQC,EAAG,kBAAA,IAAC,OAAQ,CAAE,MAAO,KAAM,OAAQ,KAAM,EAAG,IAAK,EAAG,IAAK,GAAI,IAAK,GAAI,IAAK,EAC3EA,EAAAA,kBAAAA,IAAI,OAAQ,CAAE,EAAG,yDAA2D,CAAA,CAClG,CACA,CACA,EACMiB,EAAelB,GAA0BO,EAAI,kBAAA,KACjDL,EAAAA,OAAO,IACP,CACE,OAAQ,eACR,KAAM,OACN,YAAa,IACb,QAAS,YACT,cAAe,QACf,eAAgB,QAChB,GAAGF,EACH,SAAU,CACQC,EAAAA,kBAAAA,IAAI,OAAQ,CAAE,EAAG,iBAAiB,CAAE,EACpCA,EAAAA,kBAAAA,IAAI,OAAQ,CAAE,EAAG,cAAc,CAAE,EACjCA,EAAAA,kBAAAA,IAAI,OAAQ,CAAE,EAAG,8FAAgG,CAAA,CACvI,CACA,CACA,EACMkB,EAAgBnB,GAA0BO,EAAI,kBAAA,KAClDL,EAAAA,OAAO,IACP,CACE,OAAQ,eACR,KAAM,OACN,YAAa,IACb,QAAS,YACT,cAAe,QACf,eAAgB,QAChB,GAAGF,EACH,SAAU,CACQC,wBAAI,SAAU,CAAE,GAAI,KAAM,GAAI,KAAM,EAAG,IAAK,EAC5CA,wBAAI,SAAU,CAAE,GAAI,KAAM,GAAI,KAAM,EAAG,IAAK,EAC5CA,wBAAI,SAAU,CAAE,GAAI,IAAK,GAAI,KAAM,EAAG,GAAK,CAAA,CACjE,CACA,CACA","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
import { r as K, a2 as R, ai as M, aj as L, ak as v, al as m, Y as g, g as O, am as S, a6 as A, an as _, ao as W, ab as P, ap as $ } from "./index-DLvqBeH6.js";
|
|
2
|
+
var N = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), k = {}, C = 0, B = (e) => e && (e.host || B(e.parentNode)), V = (e, i) => i.map((o) => {
|
|
3
|
+
if (e.contains(o)) return o;
|
|
4
|
+
const t = B(o);
|
|
5
|
+
return t && e.contains(t) ? t : (console.error("[zag-js > ariaHidden] target", o, "in not contained inside", e, ". Doing nothing"), null);
|
|
6
|
+
}).filter((o) => !!o), H = (e) => e.localName === "next-route-announcer" || e.localName === "script" || e.hasAttribute("aria-live") ? !0 : e.matches("[data-live-announcer]"), U = (e, i) => {
|
|
7
|
+
const { parentNode: o, markerName: t, controlAttribute: s } = i, n = V(o, Array.isArray(e) ? e : [e]);
|
|
8
|
+
k[t] || (k[t] = /* @__PURE__ */ new WeakMap());
|
|
9
|
+
const a = k[t], u = [], l = /* @__PURE__ */ new Set(), r = new Set(n), d = (c) => {
|
|
10
|
+
!c || l.has(c) || (l.add(c), d(c.parentNode));
|
|
11
|
+
};
|
|
12
|
+
n.forEach(d);
|
|
13
|
+
const b = (c) => {
|
|
14
|
+
!c || r.has(c) || Array.prototype.forEach.call(c.children, (f) => {
|
|
15
|
+
if (l.has(f))
|
|
16
|
+
b(f);
|
|
17
|
+
else
|
|
18
|
+
try {
|
|
19
|
+
if (H(f)) return;
|
|
20
|
+
const w = f.getAttribute(s) === "true", T = (N.get(f) || 0) + 1, x = (a.get(f) || 0) + 1;
|
|
21
|
+
N.set(f, T), a.set(f, x), u.push(f), T === 1 && w && I.set(f, !0), x === 1 && f.setAttribute(t, ""), w || f.setAttribute(s, "true");
|
|
22
|
+
} catch (p) {
|
|
23
|
+
console.error("[zag-js > ariaHidden] cannot operate on ", f, p);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
return b(o), l.clear(), C++, () => {
|
|
28
|
+
u.forEach((c) => {
|
|
29
|
+
const f = N.get(c) - 1, p = a.get(c) - 1;
|
|
30
|
+
N.set(c, f), a.set(c, p), f || (I.has(c) || c.removeAttribute(s), I.delete(c)), p || c.removeAttribute(t);
|
|
31
|
+
}), C--, C || (N = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), k = {});
|
|
32
|
+
};
|
|
33
|
+
}, Y = (e) => (Array.isArray(e) ? e[0] : e).ownerDocument.body, X = (e, i = Y(e), o = "data-aria-hidden") => {
|
|
34
|
+
if (i)
|
|
35
|
+
return U(e, {
|
|
36
|
+
parentNode: i,
|
|
37
|
+
markerName: o,
|
|
38
|
+
controlAttribute: "aria-hidden"
|
|
39
|
+
});
|
|
40
|
+
}, j = (e) => {
|
|
41
|
+
const i = requestAnimationFrame(() => e());
|
|
42
|
+
return () => cancelAnimationFrame(i);
|
|
43
|
+
};
|
|
44
|
+
function it(e, i = {}) {
|
|
45
|
+
const { defer: o = !0 } = i, t = o ? j : (n) => n(), s = [];
|
|
46
|
+
return s.push(
|
|
47
|
+
t(() => {
|
|
48
|
+
const a = (typeof e == "function" ? e() : e).filter(Boolean);
|
|
49
|
+
a.length !== 0 && s.push(X(a));
|
|
50
|
+
})
|
|
51
|
+
), () => {
|
|
52
|
+
s.forEach((n) => n?.());
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
var q = Object.defineProperty, z = (e, i, o) => i in e ? q(e, i, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[i] = o, h = (e, i, o) => z(e, typeof i != "symbol" ? i + "" : i, o), G = {
|
|
56
|
+
activateTrap(e, i) {
|
|
57
|
+
if (e.length > 0) {
|
|
58
|
+
const t = e[e.length - 1];
|
|
59
|
+
t !== i && t.pause();
|
|
60
|
+
}
|
|
61
|
+
const o = e.indexOf(i);
|
|
62
|
+
o === -1 || e.splice(o, 1), e.push(i);
|
|
63
|
+
},
|
|
64
|
+
deactivateTrap(e, i) {
|
|
65
|
+
const o = e.indexOf(i);
|
|
66
|
+
o !== -1 && e.splice(o, 1), e.length > 0 && e[e.length - 1].unpause();
|
|
67
|
+
}
|
|
68
|
+
}, J = [], Q = class {
|
|
69
|
+
constructor(e, i) {
|
|
70
|
+
h(this, "trapStack"), h(this, "config"), h(this, "doc"), h(this, "state", {
|
|
71
|
+
containers: [],
|
|
72
|
+
containerGroups: [],
|
|
73
|
+
tabbableGroups: [],
|
|
74
|
+
nodeFocusedBeforeActivation: null,
|
|
75
|
+
mostRecentlyFocusedNode: null,
|
|
76
|
+
active: !1,
|
|
77
|
+
paused: !1,
|
|
78
|
+
delayInitialFocusTimer: void 0,
|
|
79
|
+
recentNavEvent: void 0
|
|
80
|
+
}), h(this, "listenerCleanups", []), h(this, "handleFocus", (t) => {
|
|
81
|
+
const s = O(t), n = this.findContainerIndex(s, t) >= 0;
|
|
82
|
+
if (n || S(s))
|
|
83
|
+
n && (this.state.mostRecentlyFocusedNode = s);
|
|
84
|
+
else {
|
|
85
|
+
t.stopImmediatePropagation();
|
|
86
|
+
let a, u = !0;
|
|
87
|
+
if (this.state.mostRecentlyFocusedNode)
|
|
88
|
+
if (m(this.state.mostRecentlyFocusedNode) > 0) {
|
|
89
|
+
const l = this.findContainerIndex(this.state.mostRecentlyFocusedNode), { tabbableNodes: r } = this.state.containerGroups[l];
|
|
90
|
+
if (r.length > 0) {
|
|
91
|
+
const d = r.findIndex((b) => b === this.state.mostRecentlyFocusedNode);
|
|
92
|
+
d >= 0 && (this.config.isKeyForward(this.state.recentNavEvent) ? d + 1 < r.length && (a = r[d + 1], u = !1) : d - 1 >= 0 && (a = r[d - 1], u = !1));
|
|
93
|
+
}
|
|
94
|
+
} else
|
|
95
|
+
this.state.containerGroups.some((l) => l.tabbableNodes.some((r) => m(r) > 0)) || (u = !1);
|
|
96
|
+
else
|
|
97
|
+
u = !1;
|
|
98
|
+
u && (a = this.findNextNavNode({
|
|
99
|
+
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
100
|
+
// outside the trap causing the focus escape we're trying to fix)
|
|
101
|
+
target: this.state.mostRecentlyFocusedNode,
|
|
102
|
+
isBackward: this.config.isKeyBackward(this.state.recentNavEvent)
|
|
103
|
+
})), a ? this.tryFocus(a) : this.tryFocus(this.state.mostRecentlyFocusedNode || this.getInitialFocusNode());
|
|
104
|
+
}
|
|
105
|
+
this.state.recentNavEvent = void 0;
|
|
106
|
+
}), h(this, "handlePointerDown", (t) => {
|
|
107
|
+
const s = O(t);
|
|
108
|
+
if (!(this.findContainerIndex(s, t) >= 0)) {
|
|
109
|
+
if (y(this.config.clickOutsideDeactivates, t)) {
|
|
110
|
+
this.deactivate({ returnFocus: this.config.returnFocusOnDeactivate });
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
y(this.config.allowOutsideClick, t) || t.preventDefault();
|
|
114
|
+
}
|
|
115
|
+
}), h(this, "handleClick", (t) => {
|
|
116
|
+
const s = O(t);
|
|
117
|
+
this.findContainerIndex(s, t) >= 0 || y(this.config.clickOutsideDeactivates, t) || y(this.config.allowOutsideClick, t) || (t.preventDefault(), t.stopImmediatePropagation());
|
|
118
|
+
}), h(this, "handleTabKey", (t) => {
|
|
119
|
+
if (this.config.isKeyForward(t) || this.config.isKeyBackward(t)) {
|
|
120
|
+
this.state.recentNavEvent = t;
|
|
121
|
+
const s = this.config.isKeyBackward(t), n = this.findNextNavNode({ event: t, isBackward: s });
|
|
122
|
+
if (!n) return;
|
|
123
|
+
F(t) && t.preventDefault(), this.tryFocus(n);
|
|
124
|
+
}
|
|
125
|
+
}), h(this, "handleEscapeKey", (t) => {
|
|
126
|
+
Z(t) && y(this.config.escapeDeactivates, t) !== !1 && (t.preventDefault(), this.deactivate());
|
|
127
|
+
}), h(this, "_mutationObserver"), h(this, "setupMutationObserver", () => {
|
|
128
|
+
const t = this.doc.defaultView || window;
|
|
129
|
+
this._mutationObserver = new t.MutationObserver((s) => {
|
|
130
|
+
s.some((a) => Array.from(a.removedNodes).some((l) => l === this.state.mostRecentlyFocusedNode)) && this.tryFocus(this.getInitialFocusNode());
|
|
131
|
+
});
|
|
132
|
+
}), h(this, "updateObservedNodes", () => {
|
|
133
|
+
this._mutationObserver?.disconnect(), this.state.active && !this.state.paused && this.state.containers.map((t) => {
|
|
134
|
+
this._mutationObserver?.observe(t, { subtree: !0, childList: !0 });
|
|
135
|
+
});
|
|
136
|
+
}), h(this, "getInitialFocusNode", () => {
|
|
137
|
+
let t = this.getNodeForOption("initialFocus", { hasFallback: !0 });
|
|
138
|
+
if (t === !1)
|
|
139
|
+
return !1;
|
|
140
|
+
if (t === void 0 || t && !A(t))
|
|
141
|
+
if (this.findContainerIndex(this.doc.activeElement) >= 0)
|
|
142
|
+
t = this.doc.activeElement;
|
|
143
|
+
else {
|
|
144
|
+
const s = this.state.tabbableGroups[0];
|
|
145
|
+
t = s && s.firstTabbableNode || this.getNodeForOption("fallbackFocus");
|
|
146
|
+
}
|
|
147
|
+
else t === null && (t = this.getNodeForOption("fallbackFocus"));
|
|
148
|
+
if (!t)
|
|
149
|
+
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
150
|
+
return t.isConnected || (t = this.getNodeForOption("fallbackFocus")), t;
|
|
151
|
+
}), h(this, "tryFocus", (t) => {
|
|
152
|
+
if (t !== !1 && t !== _(this.doc)) {
|
|
153
|
+
if (!t || !t.focus) {
|
|
154
|
+
this.tryFocus(this.getInitialFocusNode());
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
t.focus({ preventScroll: !!this.config.preventScroll }), this.state.mostRecentlyFocusedNode = t, tt(t) && t.select();
|
|
158
|
+
}
|
|
159
|
+
}), h(this, "deactivate", (t) => {
|
|
160
|
+
if (!this.state.active) return this;
|
|
161
|
+
const s = {
|
|
162
|
+
onDeactivate: this.config.onDeactivate,
|
|
163
|
+
onPostDeactivate: this.config.onPostDeactivate,
|
|
164
|
+
checkCanReturnFocus: this.config.checkCanReturnFocus,
|
|
165
|
+
...t
|
|
166
|
+
};
|
|
167
|
+
clearTimeout(this.state.delayInitialFocusTimer), this.state.delayInitialFocusTimer = void 0, this.removeListeners(), this.state.active = !1, this.state.paused = !1, this.updateObservedNodes(), G.deactivateTrap(this.trapStack, this);
|
|
168
|
+
const n = this.getOption(s, "onDeactivate"), a = this.getOption(s, "onPostDeactivate"), u = this.getOption(s, "checkCanReturnFocus"), l = this.getOption(s, "returnFocus", "returnFocusOnDeactivate");
|
|
169
|
+
n?.();
|
|
170
|
+
const r = () => {
|
|
171
|
+
E(() => {
|
|
172
|
+
if (l) {
|
|
173
|
+
const d = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);
|
|
174
|
+
this.tryFocus(d);
|
|
175
|
+
}
|
|
176
|
+
a?.();
|
|
177
|
+
});
|
|
178
|
+
};
|
|
179
|
+
if (l && u) {
|
|
180
|
+
const d = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);
|
|
181
|
+
return u(d).then(r, r), this;
|
|
182
|
+
}
|
|
183
|
+
return r(), this;
|
|
184
|
+
}), h(this, "pause", (t) => {
|
|
185
|
+
if (this.state.paused || !this.state.active)
|
|
186
|
+
return this;
|
|
187
|
+
const s = this.getOption(t, "onPause"), n = this.getOption(t, "onPostPause");
|
|
188
|
+
return this.state.paused = !0, s?.(), this.removeListeners(), this.updateObservedNodes(), n?.(), this;
|
|
189
|
+
}), h(this, "unpause", (t) => {
|
|
190
|
+
if (!this.state.paused || !this.state.active)
|
|
191
|
+
return this;
|
|
192
|
+
const s = this.getOption(t, "onUnpause"), n = this.getOption(t, "onPostUnpause");
|
|
193
|
+
return this.state.paused = !1, s?.(), this.updateTabbableNodes(), this.addListeners(), this.updateObservedNodes(), n?.(), this;
|
|
194
|
+
}), h(this, "updateContainerElements", (t) => (this.state.containers = Array.isArray(t) ? t.filter(Boolean) : [t].filter(Boolean), this.state.active && this.updateTabbableNodes(), this.updateObservedNodes(), this)), h(this, "getReturnFocusNode", (t) => {
|
|
195
|
+
const s = this.getNodeForOption("setReturnFocus", {
|
|
196
|
+
params: [t]
|
|
197
|
+
});
|
|
198
|
+
return s || (s === !1 ? !1 : t);
|
|
199
|
+
}), h(this, "getOption", (t, s, n) => t && t[s] !== void 0 ? t[s] : (
|
|
200
|
+
// @ts-expect-error
|
|
201
|
+
this.config[n || s]
|
|
202
|
+
)), h(this, "getNodeForOption", (t, { hasFallback: s = !1, params: n = [] } = {}) => {
|
|
203
|
+
let a = this.config[t];
|
|
204
|
+
if (typeof a == "function" && (a = a(...n)), a === !0 && (a = void 0), !a) {
|
|
205
|
+
if (a === void 0 || a === !1)
|
|
206
|
+
return a;
|
|
207
|
+
throw new Error(`\`${t}\` was specified but was not a node, or did not return a node`);
|
|
208
|
+
}
|
|
209
|
+
let u = a;
|
|
210
|
+
if (typeof a == "string") {
|
|
211
|
+
try {
|
|
212
|
+
u = this.doc.querySelector(a);
|
|
213
|
+
} catch (l) {
|
|
214
|
+
throw new Error(`\`${t}\` appears to be an invalid selector; error="${l.message}"`);
|
|
215
|
+
}
|
|
216
|
+
if (!u && !s)
|
|
217
|
+
throw new Error(`\`${t}\` as selector refers to no known node`);
|
|
218
|
+
}
|
|
219
|
+
return u;
|
|
220
|
+
}), h(this, "findNextNavNode", (t) => {
|
|
221
|
+
const { event: s, isBackward: n = !1 } = t, a = t.target || O(s);
|
|
222
|
+
this.updateTabbableNodes();
|
|
223
|
+
let u = null;
|
|
224
|
+
if (this.state.tabbableGroups.length > 0) {
|
|
225
|
+
const l = this.findContainerIndex(a, s), r = l >= 0 ? this.state.containerGroups[l] : void 0;
|
|
226
|
+
if (l < 0)
|
|
227
|
+
n ? u = this.state.tabbableGroups[this.state.tabbableGroups.length - 1].lastTabbableNode : u = this.state.tabbableGroups[0].firstTabbableNode;
|
|
228
|
+
else if (n) {
|
|
229
|
+
let d = this.state.tabbableGroups.findIndex(
|
|
230
|
+
({ firstTabbableNode: b }) => a === b
|
|
231
|
+
);
|
|
232
|
+
if (d < 0 && (r?.container === a || A(a) && !v(a) && !r?.nextTabbableNode(a, !1)) && (d = l), d >= 0) {
|
|
233
|
+
const b = d === 0 ? this.state.tabbableGroups.length - 1 : d - 1, c = this.state.tabbableGroups[b];
|
|
234
|
+
u = m(a) >= 0 ? c.lastTabbableNode : c.lastDomTabbableNode;
|
|
235
|
+
} else F(s) || (u = r?.nextTabbableNode(a, !1));
|
|
236
|
+
} else {
|
|
237
|
+
let d = this.state.tabbableGroups.findIndex(
|
|
238
|
+
({ lastTabbableNode: b }) => a === b
|
|
239
|
+
);
|
|
240
|
+
if (d < 0 && (r?.container === a || A(a) && !v(a) && !r?.nextTabbableNode(a)) && (d = l), d >= 0) {
|
|
241
|
+
const b = d === this.state.tabbableGroups.length - 1 ? 0 : d + 1, c = this.state.tabbableGroups[b];
|
|
242
|
+
u = m(a) >= 0 ? c.firstTabbableNode : c.firstDomTabbableNode;
|
|
243
|
+
} else F(s) || (u = r?.nextTabbableNode(a));
|
|
244
|
+
}
|
|
245
|
+
} else
|
|
246
|
+
u = this.getNodeForOption("fallbackFocus");
|
|
247
|
+
return u;
|
|
248
|
+
}), this.trapStack = i.trapStack || J;
|
|
249
|
+
const o = {
|
|
250
|
+
returnFocusOnDeactivate: !0,
|
|
251
|
+
escapeDeactivates: !0,
|
|
252
|
+
delayInitialFocus: !0,
|
|
253
|
+
isKeyForward(t) {
|
|
254
|
+
return F(t) && !t.shiftKey;
|
|
255
|
+
},
|
|
256
|
+
isKeyBackward(t) {
|
|
257
|
+
return F(t) && t.shiftKey;
|
|
258
|
+
},
|
|
259
|
+
...i
|
|
260
|
+
};
|
|
261
|
+
this.doc = o.document || R(Array.isArray(e) ? e[0] : e), this.config = o, this.updateContainerElements(e), this.setupMutationObserver();
|
|
262
|
+
}
|
|
263
|
+
get active() {
|
|
264
|
+
return this.state.active;
|
|
265
|
+
}
|
|
266
|
+
get paused() {
|
|
267
|
+
return this.state.paused;
|
|
268
|
+
}
|
|
269
|
+
findContainerIndex(e, i) {
|
|
270
|
+
const o = typeof i?.composedPath == "function" ? i.composedPath() : void 0;
|
|
271
|
+
return this.state.containerGroups.findIndex(
|
|
272
|
+
({ container: t, tabbableNodes: s }) => t.contains(e) || o?.includes(t) || s.find((n) => n === e)
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
updateTabbableNodes() {
|
|
276
|
+
if (this.state.containerGroups = this.state.containers.map((e) => {
|
|
277
|
+
const i = M(e), o = L(e), t = i.length > 0 ? i[0] : void 0, s = i.length > 0 ? i[i.length - 1] : void 0, n = o.find((r) => v(r)), a = o.slice().reverse().find((r) => v(r)), u = !!i.find((r) => m(r) > 0);
|
|
278
|
+
function l(r, d = !0) {
|
|
279
|
+
const b = i.indexOf(r);
|
|
280
|
+
return b < 0 ? d ? o.slice(o.indexOf(r) + 1).find((c) => v(c)) : o.slice(0, o.indexOf(r)).reverse().find((c) => v(c)) : i[b + (d ? 1 : -1)];
|
|
281
|
+
}
|
|
282
|
+
return {
|
|
283
|
+
container: e,
|
|
284
|
+
tabbableNodes: i,
|
|
285
|
+
focusableNodes: o,
|
|
286
|
+
posTabIndexesFound: u,
|
|
287
|
+
firstTabbableNode: t,
|
|
288
|
+
lastTabbableNode: s,
|
|
289
|
+
firstDomTabbableNode: n,
|
|
290
|
+
lastDomTabbableNode: a,
|
|
291
|
+
nextTabbableNode: l
|
|
292
|
+
};
|
|
293
|
+
}), this.state.tabbableGroups = this.state.containerGroups.filter((e) => e.tabbableNodes.length > 0), this.state.tabbableGroups.length <= 0 && !this.getNodeForOption("fallbackFocus"))
|
|
294
|
+
throw new Error(
|
|
295
|
+
"Your focus-trap must have at least one container with at least one tabbable node in it at all times"
|
|
296
|
+
);
|
|
297
|
+
if (this.state.containerGroups.find((e) => e.posTabIndexesFound) && this.state.containerGroups.length > 1)
|
|
298
|
+
throw new Error(
|
|
299
|
+
"At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps."
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
addListeners() {
|
|
303
|
+
if (this.state.active)
|
|
304
|
+
return G.activateTrap(this.trapStack, this), this.state.delayInitialFocusTimer = this.config.delayInitialFocus ? E(() => {
|
|
305
|
+
this.tryFocus(this.getInitialFocusNode());
|
|
306
|
+
}) : this.tryFocus(this.getInitialFocusNode()), this.listenerCleanups.push(
|
|
307
|
+
g(this.doc, "focusin", this.handleFocus, !0),
|
|
308
|
+
g(this.doc, "mousedown", this.handlePointerDown, { capture: !0, passive: !1 }),
|
|
309
|
+
g(this.doc, "touchstart", this.handlePointerDown, { capture: !0, passive: !1 }),
|
|
310
|
+
g(this.doc, "click", this.handleClick, { capture: !0, passive: !1 }),
|
|
311
|
+
g(this.doc, "keydown", this.handleTabKey, { capture: !0, passive: !1 }),
|
|
312
|
+
g(this.doc, "keydown", this.handleEscapeKey)
|
|
313
|
+
), this;
|
|
314
|
+
}
|
|
315
|
+
removeListeners() {
|
|
316
|
+
if (this.state.active)
|
|
317
|
+
return this.listenerCleanups.forEach((e) => e()), this.listenerCleanups = [], this;
|
|
318
|
+
}
|
|
319
|
+
activate(e) {
|
|
320
|
+
if (this.state.active)
|
|
321
|
+
return this;
|
|
322
|
+
const i = this.getOption(e, "onActivate"), o = this.getOption(e, "onPostActivate"), t = this.getOption(e, "checkCanFocusTrap");
|
|
323
|
+
t || this.updateTabbableNodes(), this.state.active = !0, this.state.paused = !1, this.state.nodeFocusedBeforeActivation = this.doc.activeElement || null, i?.();
|
|
324
|
+
const s = () => {
|
|
325
|
+
t && this.updateTabbableNodes(), this.addListeners(), this.updateObservedNodes(), o?.();
|
|
326
|
+
};
|
|
327
|
+
return t ? (t(this.state.containers.concat()).then(s, s), this) : (s(), this);
|
|
328
|
+
}
|
|
329
|
+
}, F = (e) => e.key === "Tab", y = (e, ...i) => typeof e == "function" ? e(...i) : e, Z = (e) => !e.isComposing && e.key === "Escape", E = (e) => setTimeout(e, 0), tt = (e) => e.localName === "input" && "select" in e && typeof e.select == "function";
|
|
330
|
+
function at(e, i = {}) {
|
|
331
|
+
let o;
|
|
332
|
+
const t = K(() => {
|
|
333
|
+
const s = typeof e == "function" ? e() : e;
|
|
334
|
+
if (s) {
|
|
335
|
+
o = new Q(s, {
|
|
336
|
+
escapeDeactivates: !1,
|
|
337
|
+
allowOutsideClick: !0,
|
|
338
|
+
preventScroll: !0,
|
|
339
|
+
returnFocusOnDeactivate: !0,
|
|
340
|
+
delayInitialFocus: !1,
|
|
341
|
+
fallbackFocus: s,
|
|
342
|
+
...i,
|
|
343
|
+
document: R(s)
|
|
344
|
+
});
|
|
345
|
+
try {
|
|
346
|
+
o.activate();
|
|
347
|
+
} catch {
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
return function() {
|
|
352
|
+
o?.deactivate(), t();
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
var D = "data-scroll-lock";
|
|
356
|
+
function et(e) {
|
|
357
|
+
const i = e.getBoundingClientRect().left;
|
|
358
|
+
return Math.round(i) + e.scrollLeft ? "paddingLeft" : "paddingRight";
|
|
359
|
+
}
|
|
360
|
+
function ot(e) {
|
|
361
|
+
const i = e ?? document, o = i.defaultView ?? window, { documentElement: t, body: s } = i;
|
|
362
|
+
if (s.hasAttribute(D)) return;
|
|
363
|
+
s.setAttribute(D, "");
|
|
364
|
+
const a = o.innerWidth - t.clientWidth, u = () => W(t, "--scrollbar-width", `${a}px`), l = et(t), r = () => P(s, {
|
|
365
|
+
overflow: "hidden",
|
|
366
|
+
[l]: `${a}px`
|
|
367
|
+
}), d = () => {
|
|
368
|
+
const { scrollX: c, scrollY: f, visualViewport: p } = o, w = p?.offsetLeft ?? 0, T = p?.offsetTop ?? 0, x = P(s, {
|
|
369
|
+
position: "fixed",
|
|
370
|
+
overflow: "hidden",
|
|
371
|
+
top: `${-(f - Math.floor(T))}px`,
|
|
372
|
+
left: `${-(c - Math.floor(w))}px`,
|
|
373
|
+
right: "0",
|
|
374
|
+
[l]: `${a}px`
|
|
375
|
+
});
|
|
376
|
+
return () => {
|
|
377
|
+
x?.(), o.scrollTo({ left: c, top: f, behavior: "instant" });
|
|
378
|
+
};
|
|
379
|
+
}, b = [u(), $() ? d() : r()];
|
|
380
|
+
return () => {
|
|
381
|
+
b.forEach((c) => c?.()), s.removeAttribute(D);
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
export {
|
|
385
|
+
it as a,
|
|
386
|
+
ot as p,
|
|
387
|
+
at as t
|
|
388
|
+
};
|
|
389
|
+
//# sourceMappingURL=index-63NGUyr9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-63NGUyr9.js","sources":["../../node_modules/@zag-js/aria-hidden/dist/index.mjs","../../node_modules/@zag-js/focus-trap/dist/index.mjs","../../node_modules/@zag-js/remove-scroll/dist/index.mjs"],"sourcesContent":["// src/walk-tree-outside.ts\nvar counterMap = /* @__PURE__ */ new WeakMap();\nvar uncontrolledNodes = /* @__PURE__ */ new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = (node) => node && (node.host || unwrapHost(node.parentNode));\nvar correctTargets = (parent, targets) => targets.map((target) => {\n if (parent.contains(target)) return target;\n const correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error(\"[zag-js > ariaHidden] target\", target, \"in not contained inside\", parent, \". Doing nothing\");\n return null;\n}).filter((x) => Boolean(x));\nvar isIgnoredNode = (node) => {\n if (node.localName === \"next-route-announcer\") return true;\n if (node.localName === \"script\") return true;\n if (node.hasAttribute(\"aria-live\")) return true;\n return node.matches(\"[data-live-announcer]\");\n};\nvar walkTreeOutside = (originalTarget, props) => {\n const { parentNode, markerName, controlAttribute} = props;\n const targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n markerMap[markerName] || (markerMap[markerName] = /* @__PURE__ */ new WeakMap());\n const markerCounter = markerMap[markerName];\n const hiddenNodes = [];\n const elementsToKeep = /* @__PURE__ */ new Set();\n const elementsToStop = new Set(targets);\n const keep = (el) => {\n if (!el || elementsToKeep.has(el)) return;\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n const deep = (parent) => {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, (node) => {\n if (elementsToKeep.has(node)) {\n deep(node);\n } else {\n try {\n if (isIgnoredNode(node)) return;\n const attr = node.getAttribute(controlAttribute);\n const alreadyHidden = attr === \"true\" ;\n const counterValue = (counterMap.get(node) || 0) + 1;\n const markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, \"\");\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, \"true\" );\n }\n } catch (e) {\n console.error(\"[zag-js > ariaHidden] cannot operate on \", node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return () => {\n hiddenNodes.forEach((node) => {\n const counterValue = counterMap.get(node) - 1;\n const markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n counterMap = /* @__PURE__ */ new WeakMap();\n counterMap = /* @__PURE__ */ new WeakMap();\n uncontrolledNodes = /* @__PURE__ */ new WeakMap();\n markerMap = {};\n }\n };\n};\n\n// src/aria-hidden.ts\nvar getParentNode = (originalTarget) => {\n const target = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return target.ownerDocument.body;\n};\nvar hideOthers = (originalTarget, parentNode = getParentNode(originalTarget), markerName = \"data-aria-hidden\") => {\n if (!parentNode) return;\n return walkTreeOutside(originalTarget, {\n parentNode,\n markerName,\n controlAttribute: \"aria-hidden\"});\n};\n\n// src/index.ts\nvar raf = (fn) => {\n const frameId = requestAnimationFrame(() => fn());\n return () => cancelAnimationFrame(frameId);\n};\nfunction ariaHidden(targetsOrFn, options = {}) {\n const { defer = true } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const targets = typeof targetsOrFn === \"function\" ? targetsOrFn() : targetsOrFn;\n const elements = targets.filter(Boolean);\n if (elements.length === 0) return;\n cleanups.push(hideOthers(elements));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\n\nexport { ariaHidden };\n","import { getDocument, getTabbables, getFocusables, isTabbable, getTabIndex, addDomEvent, raf, getEventTarget, isDocument, isFocusable, getActiveElement } from '@zag-js/dom-query';\n\nvar __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\nvar activeFocusTraps = {\n activateTrap(trapStack, trap) {\n if (trapStack.length > 0) {\n const activeTrap = trapStack[trapStack.length - 1];\n if (activeTrap !== trap) {\n activeTrap.pause();\n }\n }\n const trapIndex = trapStack.indexOf(trap);\n if (trapIndex === -1) {\n trapStack.push(trap);\n } else {\n trapStack.splice(trapIndex, 1);\n trapStack.push(trap);\n }\n },\n deactivateTrap(trapStack, trap) {\n const trapIndex = trapStack.indexOf(trap);\n if (trapIndex !== -1) {\n trapStack.splice(trapIndex, 1);\n }\n if (trapStack.length > 0) {\n trapStack[trapStack.length - 1].unpause();\n }\n }\n};\nvar sharedTrapStack = [];\nvar FocusTrap = class {\n constructor(elements, options) {\n __publicField(this, \"trapStack\");\n __publicField(this, \"config\");\n __publicField(this, \"doc\");\n __publicField(this, \"state\", {\n containers: [],\n containerGroups: [],\n tabbableGroups: [],\n nodeFocusedBeforeActivation: null,\n mostRecentlyFocusedNode: null,\n active: false,\n paused: false,\n delayInitialFocusTimer: void 0,\n recentNavEvent: void 0\n });\n __publicField(this, \"listenerCleanups\", []);\n __publicField(this, \"handleFocus\", (event) => {\n const target = getEventTarget(event);\n const targetContained = this.findContainerIndex(target, event) >= 0;\n if (targetContained || isDocument(target)) {\n if (targetContained) {\n this.state.mostRecentlyFocusedNode = target;\n }\n } else {\n event.stopImmediatePropagation();\n let nextNode;\n let navAcrossContainers = true;\n if (this.state.mostRecentlyFocusedNode) {\n if (getTabIndex(this.state.mostRecentlyFocusedNode) > 0) {\n const mruContainerIdx = this.findContainerIndex(this.state.mostRecentlyFocusedNode);\n const { tabbableNodes } = this.state.containerGroups[mruContainerIdx];\n if (tabbableNodes.length > 0) {\n const mruTabIdx = tabbableNodes.findIndex((node) => node === this.state.mostRecentlyFocusedNode);\n if (mruTabIdx >= 0) {\n if (this.config.isKeyForward(this.state.recentNavEvent)) {\n if (mruTabIdx + 1 < tabbableNodes.length) {\n nextNode = tabbableNodes[mruTabIdx + 1];\n navAcrossContainers = false;\n }\n } else {\n if (mruTabIdx - 1 >= 0) {\n nextNode = tabbableNodes[mruTabIdx - 1];\n navAcrossContainers = false;\n }\n }\n }\n }\n } else {\n if (!this.state.containerGroups.some((g) => g.tabbableNodes.some((n) => getTabIndex(n) > 0))) {\n navAcrossContainers = false;\n }\n }\n } else {\n navAcrossContainers = false;\n }\n if (navAcrossContainers) {\n nextNode = this.findNextNavNode({\n // move FROM the MRU node, not event-related node (which will be the node that is\n // outside the trap causing the focus escape we're trying to fix)\n target: this.state.mostRecentlyFocusedNode,\n isBackward: this.config.isKeyBackward(this.state.recentNavEvent)\n });\n }\n if (nextNode) {\n this.tryFocus(nextNode);\n } else {\n this.tryFocus(this.state.mostRecentlyFocusedNode || this.getInitialFocusNode());\n }\n }\n this.state.recentNavEvent = void 0;\n });\n __publicField(this, \"handlePointerDown\", (event) => {\n const target = getEventTarget(event);\n if (this.findContainerIndex(target, event) >= 0) {\n return;\n }\n if (valueOrHandler(this.config.clickOutsideDeactivates, event)) {\n this.deactivate({ returnFocus: this.config.returnFocusOnDeactivate });\n return;\n }\n if (valueOrHandler(this.config.allowOutsideClick, event)) {\n return;\n }\n event.preventDefault();\n });\n __publicField(this, \"handleClick\", (event) => {\n const target = getEventTarget(event);\n if (this.findContainerIndex(target, event) >= 0) {\n return;\n }\n if (valueOrHandler(this.config.clickOutsideDeactivates, event)) {\n return;\n }\n if (valueOrHandler(this.config.allowOutsideClick, event)) {\n return;\n }\n event.preventDefault();\n event.stopImmediatePropagation();\n });\n __publicField(this, \"handleTabKey\", (event) => {\n if (this.config.isKeyForward(event) || this.config.isKeyBackward(event)) {\n this.state.recentNavEvent = event;\n const isBackward = this.config.isKeyBackward(event);\n const destinationNode = this.findNextNavNode({ event, isBackward });\n if (!destinationNode) return;\n if (isTabEvent(event)) {\n event.preventDefault();\n }\n this.tryFocus(destinationNode);\n }\n });\n __publicField(this, \"handleEscapeKey\", (event) => {\n if (isEscapeEvent(event) && valueOrHandler(this.config.escapeDeactivates, event) !== false) {\n event.preventDefault();\n this.deactivate();\n }\n });\n __publicField(this, \"_mutationObserver\");\n __publicField(this, \"setupMutationObserver\", () => {\n const win = this.doc.defaultView || window;\n this._mutationObserver = new win.MutationObserver((mutations) => {\n const isFocusedNodeRemoved = mutations.some((mutation) => {\n const removedNodes = Array.from(mutation.removedNodes);\n return removedNodes.some((node) => node === this.state.mostRecentlyFocusedNode);\n });\n if (isFocusedNodeRemoved) {\n this.tryFocus(this.getInitialFocusNode());\n }\n });\n });\n __publicField(this, \"updateObservedNodes\", () => {\n this._mutationObserver?.disconnect();\n if (this.state.active && !this.state.paused) {\n this.state.containers.map((container) => {\n this._mutationObserver?.observe(container, { subtree: true, childList: true });\n });\n }\n });\n __publicField(this, \"getInitialFocusNode\", () => {\n let node = this.getNodeForOption(\"initialFocus\", { hasFallback: true });\n if (node === false) {\n return false;\n }\n if (node === void 0 || node && !isFocusable(node)) {\n if (this.findContainerIndex(this.doc.activeElement) >= 0) {\n node = this.doc.activeElement;\n } else {\n const firstTabbableGroup = this.state.tabbableGroups[0];\n const firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;\n node = firstTabbableNode || this.getNodeForOption(\"fallbackFocus\");\n }\n } else if (node === null) {\n node = this.getNodeForOption(\"fallbackFocus\");\n }\n if (!node) {\n throw new Error(\"Your focus-trap needs to have at least one focusable element\");\n }\n if (!node.isConnected) {\n node = this.getNodeForOption(\"fallbackFocus\");\n }\n return node;\n });\n __publicField(this, \"tryFocus\", (node) => {\n if (node === false) return;\n if (node === getActiveElement(this.doc)) return;\n if (!node || !node.focus) {\n this.tryFocus(this.getInitialFocusNode());\n return;\n }\n node.focus({ preventScroll: !!this.config.preventScroll });\n this.state.mostRecentlyFocusedNode = node;\n if (isSelectableInput(node)) {\n node.select();\n }\n });\n __publicField(this, \"deactivate\", (deactivateOptions) => {\n if (!this.state.active) return this;\n const options = {\n onDeactivate: this.config.onDeactivate,\n onPostDeactivate: this.config.onPostDeactivate,\n checkCanReturnFocus: this.config.checkCanReturnFocus,\n ...deactivateOptions\n };\n clearTimeout(this.state.delayInitialFocusTimer);\n this.state.delayInitialFocusTimer = void 0;\n this.removeListeners();\n this.state.active = false;\n this.state.paused = false;\n this.updateObservedNodes();\n activeFocusTraps.deactivateTrap(this.trapStack, this);\n const onDeactivate = this.getOption(options, \"onDeactivate\");\n const onPostDeactivate = this.getOption(options, \"onPostDeactivate\");\n const checkCanReturnFocus = this.getOption(options, \"checkCanReturnFocus\");\n const returnFocus = this.getOption(options, \"returnFocus\", \"returnFocusOnDeactivate\");\n onDeactivate?.();\n const finishDeactivation = () => {\n delay(() => {\n if (returnFocus) {\n const returnFocusNode = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);\n this.tryFocus(returnFocusNode);\n }\n onPostDeactivate?.();\n });\n };\n if (returnFocus && checkCanReturnFocus) {\n const returnFocusNode = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);\n checkCanReturnFocus(returnFocusNode).then(finishDeactivation, finishDeactivation);\n return this;\n }\n finishDeactivation();\n return this;\n });\n __publicField(this, \"pause\", (pauseOptions) => {\n if (this.state.paused || !this.state.active) {\n return this;\n }\n const onPause = this.getOption(pauseOptions, \"onPause\");\n const onPostPause = this.getOption(pauseOptions, \"onPostPause\");\n this.state.paused = true;\n onPause?.();\n this.removeListeners();\n this.updateObservedNodes();\n onPostPause?.();\n return this;\n });\n __publicField(this, \"unpause\", (unpauseOptions) => {\n if (!this.state.paused || !this.state.active) {\n return this;\n }\n const onUnpause = this.getOption(unpauseOptions, \"onUnpause\");\n const onPostUnpause = this.getOption(unpauseOptions, \"onPostUnpause\");\n this.state.paused = false;\n onUnpause?.();\n this.updateTabbableNodes();\n this.addListeners();\n this.updateObservedNodes();\n onPostUnpause?.();\n return this;\n });\n __publicField(this, \"updateContainerElements\", (containerElements) => {\n this.state.containers = Array.isArray(containerElements) ? containerElements.filter(Boolean) : [containerElements].filter(Boolean);\n if (this.state.active) {\n this.updateTabbableNodes();\n }\n this.updateObservedNodes();\n return this;\n });\n __publicField(this, \"getReturnFocusNode\", (previousActiveElement) => {\n const node = this.getNodeForOption(\"setReturnFocus\", {\n params: [previousActiveElement]\n });\n return node ? node : node === false ? false : previousActiveElement;\n });\n __publicField(this, \"getOption\", (configOverrideOptions, optionName, configOptionName) => {\n return configOverrideOptions && configOverrideOptions[optionName] !== void 0 ? configOverrideOptions[optionName] : (\n // @ts-expect-error\n this.config[configOptionName || optionName]\n );\n });\n __publicField(this, \"getNodeForOption\", (optionName, { hasFallback = false, params = [] } = {}) => {\n let optionValue = this.config[optionName];\n if (typeof optionValue === \"function\") optionValue = optionValue(...params);\n if (optionValue === true) optionValue = void 0;\n if (!optionValue) {\n if (optionValue === void 0 || optionValue === false) {\n return optionValue;\n }\n throw new Error(`\\`${optionName}\\` was specified but was not a node, or did not return a node`);\n }\n let node = optionValue;\n if (typeof optionValue === \"string\") {\n try {\n node = this.doc.querySelector(optionValue);\n } catch (err) {\n throw new Error(`\\`${optionName}\\` appears to be an invalid selector; error=\"${err.message}\"`);\n }\n if (!node) {\n if (!hasFallback) {\n throw new Error(`\\`${optionName}\\` as selector refers to no known node`);\n }\n }\n }\n return node;\n });\n __publicField(this, \"findNextNavNode\", (opts) => {\n const { event, isBackward = false } = opts;\n const target = opts.target || getEventTarget(event);\n this.updateTabbableNodes();\n let destinationNode = null;\n if (this.state.tabbableGroups.length > 0) {\n const containerIndex = this.findContainerIndex(target, event);\n const containerGroup = containerIndex >= 0 ? this.state.containerGroups[containerIndex] : void 0;\n if (containerIndex < 0) {\n if (isBackward) {\n destinationNode = this.state.tabbableGroups[this.state.tabbableGroups.length - 1].lastTabbableNode;\n } else {\n destinationNode = this.state.tabbableGroups[0].firstTabbableNode;\n }\n } else if (isBackward) {\n let startOfGroupIndex = this.state.tabbableGroups.findIndex(\n ({ firstTabbableNode }) => target === firstTabbableNode\n );\n if (startOfGroupIndex < 0 && (containerGroup?.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup?.nextTabbableNode(target, false))) {\n startOfGroupIndex = containerIndex;\n }\n if (startOfGroupIndex >= 0) {\n const destinationGroupIndex = startOfGroupIndex === 0 ? this.state.tabbableGroups.length - 1 : startOfGroupIndex - 1;\n const destinationGroup = this.state.tabbableGroups[destinationGroupIndex];\n destinationNode = getTabIndex(target) >= 0 ? destinationGroup.lastTabbableNode : destinationGroup.lastDomTabbableNode;\n } else if (!isTabEvent(event)) {\n destinationNode = containerGroup?.nextTabbableNode(target, false);\n }\n } else {\n let lastOfGroupIndex = this.state.tabbableGroups.findIndex(\n ({ lastTabbableNode }) => target === lastTabbableNode\n );\n if (lastOfGroupIndex < 0 && (containerGroup?.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup?.nextTabbableNode(target))) {\n lastOfGroupIndex = containerIndex;\n }\n if (lastOfGroupIndex >= 0) {\n const destinationGroupIndex = lastOfGroupIndex === this.state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;\n const destinationGroup = this.state.tabbableGroups[destinationGroupIndex];\n destinationNode = getTabIndex(target) >= 0 ? destinationGroup.firstTabbableNode : destinationGroup.firstDomTabbableNode;\n } else if (!isTabEvent(event)) {\n destinationNode = containerGroup?.nextTabbableNode(target);\n }\n }\n } else {\n destinationNode = this.getNodeForOption(\"fallbackFocus\");\n }\n return destinationNode;\n });\n this.trapStack = options.trapStack || sharedTrapStack;\n const config = {\n returnFocusOnDeactivate: true,\n escapeDeactivates: true,\n delayInitialFocus: true,\n isKeyForward(e) {\n return isTabEvent(e) && !e.shiftKey;\n },\n isKeyBackward(e) {\n return isTabEvent(e) && e.shiftKey;\n },\n ...options\n };\n this.doc = config.document || getDocument(Array.isArray(elements) ? elements[0] : elements);\n this.config = config;\n this.updateContainerElements(elements);\n this.setupMutationObserver();\n }\n get active() {\n return this.state.active;\n }\n get paused() {\n return this.state.paused;\n }\n findContainerIndex(element, event) {\n const composedPath = typeof event?.composedPath === \"function\" ? event.composedPath() : void 0;\n return this.state.containerGroups.findIndex(\n ({ container, tabbableNodes }) => container.contains(element) || composedPath?.includes(container) || tabbableNodes.find((node) => node === element)\n );\n }\n updateTabbableNodes() {\n this.state.containerGroups = this.state.containers.map((container) => {\n const tabbableNodes = getTabbables(container);\n const focusableNodes = getFocusables(container);\n const firstTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[0] : void 0;\n const lastTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : void 0;\n const firstDomTabbableNode = focusableNodes.find((node) => isTabbable(node));\n const lastDomTabbableNode = focusableNodes.slice().reverse().find((node) => isTabbable(node));\n const posTabIndexesFound = !!tabbableNodes.find((node) => getTabIndex(node) > 0);\n function nextTabbableNode(node, forward = true) {\n const nodeIdx = tabbableNodes.indexOf(node);\n if (nodeIdx < 0) {\n if (forward) {\n return focusableNodes.slice(focusableNodes.indexOf(node) + 1).find((el) => isTabbable(el));\n }\n return focusableNodes.slice(0, focusableNodes.indexOf(node)).reverse().find((el) => isTabbable(el));\n }\n return tabbableNodes[nodeIdx + (forward ? 1 : -1)];\n }\n return {\n container,\n tabbableNodes,\n focusableNodes,\n posTabIndexesFound,\n firstTabbableNode,\n lastTabbableNode,\n firstDomTabbableNode,\n lastDomTabbableNode,\n nextTabbableNode\n };\n });\n this.state.tabbableGroups = this.state.containerGroups.filter((group) => group.tabbableNodes.length > 0);\n if (this.state.tabbableGroups.length <= 0 && !this.getNodeForOption(\"fallbackFocus\")) {\n throw new Error(\n \"Your focus-trap must have at least one container with at least one tabbable node in it at all times\"\n );\n }\n if (this.state.containerGroups.find((g) => g.posTabIndexesFound) && this.state.containerGroups.length > 1) {\n throw new Error(\n \"At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.\"\n );\n }\n }\n addListeners() {\n if (!this.state.active) return;\n activeFocusTraps.activateTrap(this.trapStack, this);\n this.state.delayInitialFocusTimer = this.config.delayInitialFocus ? delay(() => {\n this.tryFocus(this.getInitialFocusNode());\n }) : this.tryFocus(this.getInitialFocusNode());\n this.listenerCleanups.push(\n addDomEvent(this.doc, \"focusin\", this.handleFocus, true),\n addDomEvent(this.doc, \"mousedown\", this.handlePointerDown, { capture: true, passive: false }),\n addDomEvent(this.doc, \"touchstart\", this.handlePointerDown, { capture: true, passive: false }),\n addDomEvent(this.doc, \"click\", this.handleClick, { capture: true, passive: false }),\n addDomEvent(this.doc, \"keydown\", this.handleTabKey, { capture: true, passive: false }),\n addDomEvent(this.doc, \"keydown\", this.handleEscapeKey)\n );\n return this;\n }\n removeListeners() {\n if (!this.state.active) return;\n this.listenerCleanups.forEach((cleanup) => cleanup());\n this.listenerCleanups = [];\n return this;\n }\n activate(activateOptions) {\n if (this.state.active) {\n return this;\n }\n const onActivate = this.getOption(activateOptions, \"onActivate\");\n const onPostActivate = this.getOption(activateOptions, \"onPostActivate\");\n const checkCanFocusTrap = this.getOption(activateOptions, \"checkCanFocusTrap\");\n if (!checkCanFocusTrap) {\n this.updateTabbableNodes();\n }\n this.state.active = true;\n this.state.paused = false;\n this.state.nodeFocusedBeforeActivation = this.doc.activeElement || null;\n onActivate?.();\n const finishActivation = () => {\n if (checkCanFocusTrap) {\n this.updateTabbableNodes();\n }\n this.addListeners();\n this.updateObservedNodes();\n onPostActivate?.();\n };\n if (checkCanFocusTrap) {\n checkCanFocusTrap(this.state.containers.concat()).then(finishActivation, finishActivation);\n return this;\n }\n finishActivation();\n return this;\n }\n};\nvar isTabEvent = (event) => event.key === \"Tab\";\nvar valueOrHandler = (value, ...params) => typeof value === \"function\" ? value(...params) : value;\nvar isEscapeEvent = (event) => !event.isComposing && event.key === \"Escape\";\nvar delay = (fn) => setTimeout(fn, 0);\nvar isSelectableInput = (node) => node.localName === \"input\" && \"select\" in node && typeof node.select === \"function\";\n\n// src/index.ts\nfunction trapFocus(el, options = {}) {\n let trap;\n const cleanup = raf(() => {\n const contentEl = typeof el === \"function\" ? el() : el;\n if (!contentEl) return;\n trap = new FocusTrap(contentEl, {\n escapeDeactivates: false,\n allowOutsideClick: true,\n preventScroll: true,\n returnFocusOnDeactivate: true,\n delayInitialFocus: false,\n fallbackFocus: contentEl,\n ...options,\n document: getDocument(contentEl)\n });\n try {\n trap.activate();\n } catch {\n }\n });\n return function destroy() {\n trap?.deactivate();\n cleanup();\n };\n}\n\nexport { FocusTrap, trapFocus };\n","import { setStyleProperty, setStyle, isIos } from '@zag-js/dom-query';\n\n// src/index.ts\nvar LOCK_CLASSNAME = \"data-scroll-lock\";\nfunction getPaddingProperty(documentElement) {\n const documentLeft = documentElement.getBoundingClientRect().left;\n const scrollbarX = Math.round(documentLeft) + documentElement.scrollLeft;\n return scrollbarX ? \"paddingLeft\" : \"paddingRight\";\n}\nfunction preventBodyScroll(_document) {\n const doc = _document ?? document;\n const win = doc.defaultView ?? window;\n const { documentElement, body } = doc;\n const locked = body.hasAttribute(LOCK_CLASSNAME);\n if (locked) return;\n body.setAttribute(LOCK_CLASSNAME, \"\");\n const scrollbarWidth = win.innerWidth - documentElement.clientWidth;\n const setScrollbarWidthProperty = () => setStyleProperty(documentElement, \"--scrollbar-width\", `${scrollbarWidth}px`);\n const paddingProperty = getPaddingProperty(documentElement);\n const setBodyStyle = () => setStyle(body, {\n overflow: \"hidden\",\n [paddingProperty]: `${scrollbarWidth}px`\n });\n const setBodyStyleIOS = () => {\n const { scrollX, scrollY, visualViewport } = win;\n const offsetLeft = visualViewport?.offsetLeft ?? 0;\n const offsetTop = visualViewport?.offsetTop ?? 0;\n const restoreStyle = setStyle(body, {\n position: \"fixed\",\n overflow: \"hidden\",\n top: `${-(scrollY - Math.floor(offsetTop))}px`,\n left: `${-(scrollX - Math.floor(offsetLeft))}px`,\n right: \"0\",\n [paddingProperty]: `${scrollbarWidth}px`\n });\n return () => {\n restoreStyle?.();\n win.scrollTo({ left: scrollX, top: scrollY, behavior: \"instant\" });\n };\n };\n const cleanups = [setScrollbarWidthProperty(), isIos() ? setBodyStyleIOS() : setBodyStyle()];\n return () => {\n cleanups.forEach((fn) => fn?.());\n body.removeAttribute(LOCK_CLASSNAME);\n };\n}\n\nexport { preventBodyScroll };\n"],"names":["counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","isIgnoredNode","walkTreeOutside","originalTarget","props","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","alreadyHidden","counterValue","markerValue","e","getParentNode","hideOthers","raf","fn","frameId","ariaHidden","targetsOrFn","options","defer","func","v","cleanups","elements","__defProp","__defNormalProp","obj","key","value","__publicField","activeFocusTraps","trapStack","trap","activeTrap","trapIndex","sharedTrapStack","FocusTrap","event","getEventTarget","targetContained","isDocument","nextNode","navAcrossContainers","getTabIndex","mruContainerIdx","tabbableNodes","mruTabIdx","g","n","valueOrHandler","isBackward","destinationNode","isTabEvent","isEscapeEvent","win","mutations","mutation","container","isFocusable","firstTabbableGroup","getActiveElement","isSelectableInput","deactivateOptions","onDeactivate","onPostDeactivate","checkCanReturnFocus","returnFocus","finishDeactivation","delay","returnFocusNode","pauseOptions","onPause","onPostPause","unpauseOptions","onUnpause","onPostUnpause","containerElements","previousActiveElement","configOverrideOptions","optionName","configOptionName","hasFallback","params","optionValue","err","opts","containerIndex","containerGroup","startOfGroupIndex","firstTabbableNode","isTabbable","destinationGroupIndex","destinationGroup","lastOfGroupIndex","lastTabbableNode","config","getDocument","element","composedPath","getTabbables","focusableNodes","getFocusables","firstDomTabbableNode","lastDomTabbableNode","posTabIndexesFound","nextTabbableNode","forward","nodeIdx","group","addDomEvent","cleanup","activateOptions","onActivate","onPostActivate","checkCanFocusTrap","finishActivation","trapFocus","contentEl","LOCK_CLASSNAME","getPaddingProperty","documentElement","documentLeft","preventBodyScroll","_document","doc","body","scrollbarWidth","setScrollbarWidthProperty","setStyleProperty","paddingProperty","setBodyStyle","setStyle","setBodyStyleIOS","scrollX","scrollY","visualViewport","offsetLeft","offsetTop","restoreStyle","isIos"],"mappings":";AACA,IAAIA,IAA6B,oBAAI,QAAS,GAC1CC,IAAoC,oBAAI,QAAS,GACjDC,IAAY,CAAE,GACdC,IAAY,GACZC,IAAa,CAACC,MAASA,MAASA,EAAK,QAAQD,EAAWC,EAAK,UAAU,IACvEC,IAAiB,CAACC,GAAQC,MAAYA,EAAQ,IAAI,CAACC,MAAW;AAChE,MAAIF,EAAO,SAASE,CAAM,EAAG,QAAOA;AACpC,QAAMC,IAAkBN,EAAWK,CAAM;AACzC,SAAIC,KAAmBH,EAAO,SAASG,CAAe,IAC7CA,KAET,QAAQ,MAAM,gCAAgCD,GAAQ,2BAA2BF,GAAQ,iBAAiB,GACnG;AACT,CAAC,EAAE,OAAO,CAACI,MAAM,EAAQA,CAAE,GACvBC,IAAgB,CAACP,MACfA,EAAK,cAAc,0BACnBA,EAAK,cAAc,YACnBA,EAAK,aAAa,WAAW,IAAU,KACpCA,EAAK,QAAQ,uBAAuB,GAEzCQ,IAAkB,CAACC,GAAgBC,MAAU;AAC/C,QAAM,EAAE,YAAAC,GAAY,YAAAC,GAAY,kBAAAC,E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,CAACR,MAAOA,IAAE,CAAI,GAC/B+G,EAAK,gBAAgBP,CAAc;AAAA,EACpC;AACH;","x_google_ignoreList":[0,1,2]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const n=require("./index-CZ42b9rT.js");var g=new WeakMap,w=new WeakMap,x={},I=0,E=e=>e&&(e.host||E(e.parentNode)),A=(e,i)=>i.map(o=>{if(e.contains(o))return o;const t=E(o);return t&&e.contains(t)?t:(console.error("[zag-js > ariaHidden] target",o,"in not contained inside",e,". Doing nothing"),null)}).filter(o=>!!o),C=e=>e.localName==="next-route-announcer"||e.localName==="script"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),P=(e,i)=>{const{parentNode:o,markerName:t,controlAttribute:s}=i,r=A(o,Array.isArray(e)?e:[e]);x[t]||(x[t]=new WeakMap);const a=x[t],d=[],h=new Set,c=new Set(r),l=u=>{!u||h.has(u)||(h.add(u),l(u.parentNode))};r.forEach(l);const p=u=>{!u||c.has(u)||Array.prototype.forEach.call(u.children,b=>{if(h.has(b))p(b);else try{if(C(b))return;const F=b.getAttribute(s)==="true",y=(g.get(b)||0)+1,T=(a.get(b)||0)+1;g.set(b,y),a.set(b,T),d.push(b),y===1&&F&&w.set(b,!0),T===1&&b.setAttribute(t,""),F||b.setAttribute(s,"true")}catch(v){console.error("[zag-js > ariaHidden] cannot operate on ",b,v)}})};return p(o),h.clear(),I++,()=>{d.forEach(u=>{const b=g.get(u)-1,v=a.get(u)-1;g.set(u,b),a.set(u,v),b||(w.has(u)||u.removeAttribute(s),w.delete(u)),v||u.removeAttribute(t)}),I--,I||(g=new WeakMap,g=new WeakMap,w=new WeakMap,x={})}},G=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,R=(e,i=G(e),o="data-aria-hidden")=>{if(i)return P(e,{parentNode:i,markerName:o,controlAttribute:"aria-hidden"})},B=e=>{const i=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(i)};function S(e,i={}){const{defer:o=!0}=i,t=o?B:r=>r(),s=[];return s.push(t(()=>{const a=(typeof e=="function"?e():e).filter(Boolean);a.length!==0&&s.push(R(a))})),()=>{s.forEach(r=>r?.())}}var K=Object.defineProperty,M=(e,i,o)=>i in e?K(e,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[i]=o,f=(e,i,o)=>M(e,typeof i!="symbol"?i+"":i,o),k={activateTrap(e,i){if(e.length>0){const t=e[e.length-1];t!==i&&t.pause()}const o=e.indexOf(i);o===-1||e.splice(o,1),e.push(i)},deactivateTrap(e,i){const o=e.indexOf(i);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},L=[],_=class{constructor(e,i){f(this,"trapStack"),f(this,"config"),f(this,"doc"),f(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),f(this,"listenerCleanups",[]),f(this,"handleFocus",t=>{const s=n.getEventTarget(t),r=this.findContainerIndex(s,t)>=0;if(r||n.isDocument(s))r&&(this.state.mostRecentlyFocusedNode=s);else{t.stopImmediatePropagation();let a,d=!0;if(this.state.mostRecentlyFocusedNode)if(n.getTabIndex(this.state.mostRecentlyFocusedNode)>0){const h=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[h];if(c.length>0){const l=c.findIndex(p=>p===this.state.mostRecentlyFocusedNode);l>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?l+1<c.length&&(a=c[l+1],d=!1):l-1>=0&&(a=c[l-1],d=!1))}}else this.state.containerGroups.some(h=>h.tabbableNodes.some(c=>n.getTabIndex(c)>0))||(d=!1);else d=!1;d&&(a=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),a?this.tryFocus(a):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),f(this,"handlePointerDown",t=>{const s=n.getEventTarget(t);if(!(this.findContainerIndex(s,t)>=0)){if(m(this.config.clickOutsideDeactivates,t)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}m(this.config.allowOutsideClick,t)||t.preventDefault()}}),f(this,"handleClick",t=>{const s=n.getEventTarget(t);this.findContainerIndex(s,t)>=0||m(this.config.clickOutsideDeactivates,t)||m(this.config.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())}),f(this,"handleTabKey",t=>{if(this.config.isKeyForward(t)||this.config.isKeyBackward(t)){this.state.recentNavEvent=t;const s=this.config.isKeyBackward(t),r=this.findNextNavNode({event:t,isBackward:s});if(!r)return;N(t)&&t.preventDefault(),this.tryFocus(r)}}),f(this,"handleEscapeKey",t=>{W(t)&&m(this.config.escapeDeactivates,t)!==!1&&(t.preventDefault(),this.deactivate())}),f(this,"_mutationObserver"),f(this,"setupMutationObserver",()=>{const t=this.doc.defaultView||window;this._mutationObserver=new t.MutationObserver(s=>{s.some(a=>Array.from(a.removedNodes).some(h=>h===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),f(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(t=>{this._mutationObserver?.observe(t,{subtree:!0,childList:!0})})}),f(this,"getInitialFocusNode",()=>{let t=this.getNodeForOption("initialFocus",{hasFallback:!0});if(t===!1)return!1;if(t===void 0||t&&!n.isFocusable(t))if(this.findContainerIndex(this.doc.activeElement)>=0)t=this.doc.activeElement;else{const s=this.state.tabbableGroups[0];t=s&&s.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else t===null&&(t=this.getNodeForOption("fallbackFocus"));if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t.isConnected||(t=this.getNodeForOption("fallbackFocus")),t}),f(this,"tryFocus",t=>{if(t!==!1&&t!==n.getActiveElement(this.doc)){if(!t||!t.focus){this.tryFocus(this.getInitialFocusNode());return}t.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=t,$(t)&&t.select()}}),f(this,"deactivate",t=>{if(!this.state.active)return this;const s={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...t};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),k.deactivateTrap(this.trapStack,this);const r=this.getOption(s,"onDeactivate"),a=this.getOption(s,"onPostDeactivate"),d=this.getOption(s,"checkCanReturnFocus"),h=this.getOption(s,"returnFocus","returnFocusOnDeactivate");r?.();const c=()=>{D(()=>{if(h){const l=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(l)}a?.()})};if(h&&d){const l=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return d(l).then(c,c),this}return c(),this}),f(this,"pause",t=>{if(this.state.paused||!this.state.active)return this;const s=this.getOption(t,"onPause"),r=this.getOption(t,"onPostPause");return this.state.paused=!0,s?.(),this.removeListeners(),this.updateObservedNodes(),r?.(),this}),f(this,"unpause",t=>{if(!this.state.paused||!this.state.active)return this;const s=this.getOption(t,"onUnpause"),r=this.getOption(t,"onPostUnpause");return this.state.paused=!1,s?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.(),this}),f(this,"updateContainerElements",t=>(this.state.containers=Array.isArray(t)?t.filter(Boolean):[t].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),f(this,"getReturnFocusNode",t=>{const s=this.getNodeForOption("setReturnFocus",{params:[t]});return s||(s===!1?!1:t)}),f(this,"getOption",(t,s,r)=>t&&t[s]!==void 0?t[s]:this.config[r||s]),f(this,"getNodeForOption",(t,{hasFallback:s=!1,params:r=[]}={})=>{let a=this.config[t];if(typeof a=="function"&&(a=a(...r)),a===!0&&(a=void 0),!a){if(a===void 0||a===!1)return a;throw new Error(`\`${t}\` was specified but was not a node, or did not return a node`)}let d=a;if(typeof a=="string"){try{d=this.doc.querySelector(a)}catch(h){throw new Error(`\`${t}\` appears to be an invalid selector; error="${h.message}"`)}if(!d&&!s)throw new Error(`\`${t}\` as selector refers to no known node`)}return d}),f(this,"findNextNavNode",t=>{const{event:s,isBackward:r=!1}=t,a=t.target||n.getEventTarget(s);this.updateTabbableNodes();let d=null;if(this.state.tabbableGroups.length>0){const h=this.findContainerIndex(a,s),c=h>=0?this.state.containerGroups[h]:void 0;if(h<0)r?d=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:d=this.state.tabbableGroups[0].firstTabbableNode;else if(r){let l=this.state.tabbableGroups.findIndex(({firstTabbableNode:p})=>a===p);if(l<0&&(c?.container===a||n.isFocusable(a)&&!n.isTabbable(a)&&!c?.nextTabbableNode(a,!1))&&(l=h),l>=0){const p=l===0?this.state.tabbableGroups.length-1:l-1,u=this.state.tabbableGroups[p];d=n.getTabIndex(a)>=0?u.lastTabbableNode:u.lastDomTabbableNode}else N(s)||(d=c?.nextTabbableNode(a,!1))}else{let l=this.state.tabbableGroups.findIndex(({lastTabbableNode:p})=>a===p);if(l<0&&(c?.container===a||n.isFocusable(a)&&!n.isTabbable(a)&&!c?.nextTabbableNode(a))&&(l=h),l>=0){const p=l===this.state.tabbableGroups.length-1?0:l+1,u=this.state.tabbableGroups[p];d=n.getTabIndex(a)>=0?u.firstTabbableNode:u.firstDomTabbableNode}else N(s)||(d=c?.nextTabbableNode(a))}}else d=this.getNodeForOption("fallbackFocus");return d}),this.trapStack=i.trapStack||L;const o={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(t){return N(t)&&!t.shiftKey},isKeyBackward(t){return N(t)&&t.shiftKey},...i};this.doc=o.document||n.getDocument(Array.isArray(e)?e[0]:e),this.config=o,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,i){const o=typeof i?.composedPath=="function"?i.composedPath():void 0;return this.state.containerGroups.findIndex(({container:t,tabbableNodes:s})=>t.contains(e)||o?.includes(t)||s.find(r=>r===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const i=n.getTabbables(e),o=n.getFocusables(e),t=i.length>0?i[0]:void 0,s=i.length>0?i[i.length-1]:void 0,r=o.find(c=>n.isTabbable(c)),a=o.slice().reverse().find(c=>n.isTabbable(c)),d=!!i.find(c=>n.getTabIndex(c)>0);function h(c,l=!0){const p=i.indexOf(c);return p<0?l?o.slice(o.indexOf(c)+1).find(u=>n.isTabbable(u)):o.slice(0,o.indexOf(c)).reverse().find(u=>n.isTabbable(u)):i[p+(l?1:-1)]}return{container:e,tabbableNodes:i,focusableNodes:o,posTabIndexesFound:d,firstTabbableNode:t,lastTabbableNode:s,firstDomTabbableNode:r,lastDomTabbableNode:a,nextTabbableNode:h}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return k.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?D(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(n.addDomEvent(this.doc,"focusin",this.handleFocus,!0),n.addDomEvent(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const i=this.getOption(e,"onActivate"),o=this.getOption(e,"onPostActivate"),t=this.getOption(e,"checkCanFocusTrap");t||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,i?.();const s=()=>{t&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),o?.()};return t?(t(this.state.containers.concat()).then(s,s),this):(s(),this)}},N=e=>e.key==="Tab",m=(e,...i)=>typeof e=="function"?e(...i):e,W=e=>!e.isComposing&&e.key==="Escape",D=e=>setTimeout(e,0),$=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function V(e,i={}){let o;const t=n.raf(()=>{const s=typeof e=="function"?e():e;if(s){o=new _(s,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:s,...i,document:n.getDocument(s)});try{o.activate()}catch{}}});return function(){o?.deactivate(),t()}}var O="data-scroll-lock";function H(e){const i=e.getBoundingClientRect().left;return Math.round(i)+e.scrollLeft?"paddingLeft":"paddingRight"}function U(e){const i=e??document,o=i.defaultView??window,{documentElement:t,body:s}=i;if(s.hasAttribute(O))return;s.setAttribute(O,"");const a=o.innerWidth-t.clientWidth,d=()=>n.setStyleProperty(t,"--scrollbar-width",`${a}px`),h=H(t),c=()=>n.setStyle(s,{overflow:"hidden",[h]:`${a}px`}),l=()=>{const{scrollX:u,scrollY:b,visualViewport:v}=o,F=v?.offsetLeft??0,y=v?.offsetTop??0,T=n.setStyle(s,{position:"fixed",overflow:"hidden",top:`${-(b-Math.floor(y))}px`,left:`${-(u-Math.floor(F))}px`,right:"0",[h]:`${a}px`});return()=>{T?.(),o.scrollTo({left:u,top:b,behavior:"instant"})}},p=[d(),n.isIos()?l():c()];return()=>{p.forEach(u=>u?.()),s.removeAttribute(O)}}exports.ariaHidden=S;exports.preventBodyScroll=U;exports.trapFocus=V;
|
|
2
|
+
//# sourceMappingURL=index-BBZxmcrY.js.map
|