@televet/kibble-ui 4.0.0-beta.67 → 4.0.0-beta.69
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/{alert.types-B7BlPX2-.js → alert.types-BTwB1SOp.js} +11 -10
- package/dist/chunks/{alert.types-B7BlPX2-.js.map → alert.types-BTwB1SOp.js.map} +1 -1
- package/dist/chunks/alert.types-Cjh2MIRP.js +2 -0
- package/dist/chunks/{alert.types-BsvcbTZD.js.map → alert.types-Cjh2MIRP.js.map} +1 -1
- 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-CB5m8zha.js → avatar.component-BnOmYhL2.js} +27 -27
- package/dist/chunks/{avatar.component-CB5m8zha.js.map → avatar.component-BnOmYhL2.js.map} +1 -1
- package/dist/chunks/avatar.component-CbtJE4RJ.js +2 -0
- package/dist/chunks/{avatar.component-RKtP3MZt.js.map → avatar.component-CbtJE4RJ.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-CKFjjo2R.js → avatarGroup.component-Bcb1Fxwv.js} +2 -2
- package/dist/chunks/{avatarGroup.component-CKFjjo2R.js.map → avatarGroup.component-Bcb1Fxwv.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-CjBeAxHZ.js → avatarGroup.component-D4lmT752.js} +2 -2
- package/dist/chunks/{avatarGroup.component-CjBeAxHZ.js.map → avatarGroup.component-D4lmT752.js.map} +1 -1
- package/dist/chunks/{button.component-DahLrK9h.js → button.component-BpF3MzbZ.js} +3 -3
- package/dist/chunks/{button.component-DahLrK9h.js.map → button.component-BpF3MzbZ.js.map} +1 -1
- package/dist/chunks/{button.component-BQA_MGYQ.js → button.component-Dd9AfGox.js} +2 -2
- package/dist/chunks/{button.component-BQA_MGYQ.js.map → button.component-Dd9AfGox.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-UKmJh2zn.js → buttonGroup.component-DzQFhbS7.js} +5 -5
- package/dist/chunks/{buttonGroup.component-UKmJh2zn.js.map → buttonGroup.component-DzQFhbS7.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-BI44nuxH.js → buttonGroup.component-aes3EERQ.js} +2 -2
- package/dist/chunks/{buttonGroup.component-BI44nuxH.js.map → buttonGroup.component-aes3EERQ.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-xgc8P1mp.js → characterCounter.component-UgnBVIt2.js} +2 -2
- package/dist/chunks/{characterCounter.component-xgc8P1mp.js.map → characterCounter.component-UgnBVIt2.js.map} +1 -1
- package/dist/chunks/characterCounter.component-WGffeYNG.js +2 -0
- package/dist/chunks/{characterCounter.component-B8efVNy4.js.map → characterCounter.component-WGffeYNG.js.map} +1 -1
- package/dist/chunks/checkbox.component-BEP-GPhs.js +2 -0
- package/dist/chunks/{checkbox.component-DO9NDbmM.js.map → checkbox.component-BEP-GPhs.js.map} +1 -1
- package/dist/chunks/{checkbox.component-5GtlYTnJ.js → checkbox.component-C6lXKzXZ.js} +16 -16
- package/dist/chunks/{checkbox.component-5GtlYTnJ.js.map → checkbox.component-C6lXKzXZ.js.map} +1 -1
- package/dist/chunks/checkbox.records-CXszv_gF.js +2 -0
- package/dist/chunks/{checkbox.records-D7NUtCRR.js.map → checkbox.records-CXszv_gF.js.map} +1 -1
- package/dist/chunks/{checkbox.records-69wNHjsY.js → checkbox.records-Gz6DOO_0.js} +8 -8
- package/dist/chunks/{checkbox.records-69wNHjsY.js.map → checkbox.records-Gz6DOO_0.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-C1sPgVro.js → checkboxGroup.component-Dc_r6mYN.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-C1sPgVro.js.map → checkboxGroup.component-Dc_r6mYN.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-Dq3jCGDU.js → checkboxGroup.component-DhXdSILq.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-Dq3jCGDU.js.map → checkboxGroup.component-DhXdSILq.js.map} +1 -1
- package/dist/chunks/conversationCard.component-1OCCeSNc.js +2 -0
- package/dist/chunks/{conversationCard.component-qWYvoxVn.js.map → conversationCard.component-1OCCeSNc.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-LpR5eSru.js → conversationCard.component-Eb3E-4jY.js} +20 -18
- package/dist/chunks/{conversationCard.component-LpR5eSru.js.map → conversationCard.component-Eb3E-4jY.js.map} +1 -1
- package/dist/chunks/{datePicker.component-DVR8Ech4.js → datePicker.component-CTbeLdvH.js} +87 -85
- package/dist/chunks/{datePicker.component-DVR8Ech4.js.map → datePicker.component-CTbeLdvH.js.map} +1 -1
- package/dist/chunks/datePicker.component-DvAwsX_7.js +15 -0
- package/dist/chunks/{datePicker.component-CLR0tErm.js.map → datePicker.component-DvAwsX_7.js.map} +1 -1
- package/dist/chunks/dialog-trigger-B5NK0lr-.js +2 -0
- package/dist/chunks/{dialog-trigger-JNnMRY13.js.map → dialog-trigger-B5NK0lr-.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-C6rpz6Do.js → dialog-trigger-BPlPzPU-.js} +9 -9
- package/dist/chunks/{dialog-trigger-C6rpz6Do.js.map → dialog-trigger-BPlPzPU-.js.map} +1 -1
- package/dist/chunks/group-Cv7AQw1b.js +2 -0
- package/dist/chunks/{group-Dv1hO5IW.js.map → group-Cv7AQw1b.js.map} +1 -1
- package/dist/chunks/{group-DKypflCt.js → group-DPCVolOl.js} +2 -2
- package/dist/chunks/{group-DKypflCt.js.map → group-DPCVolOl.js.map} +1 -1
- package/dist/chunks/heading.component-DJaIpxi0.js +12 -0
- package/dist/chunks/heading.component-DJaIpxi0.js.map +1 -0
- package/dist/chunks/heading.component-lFK21HJl.js +2 -0
- package/dist/chunks/heading.component-lFK21HJl.js.map +1 -0
- package/dist/chunks/icon-button-DTZOklQ9.js +119 -0
- package/dist/chunks/icon-button-DTZOklQ9.js.map +1 -0
- package/dist/chunks/icon-button-DtjZ-SdQ.js +2 -0
- package/dist/chunks/icon-button-DtjZ-SdQ.js.map +1 -0
- package/dist/chunks/icon.component-C0e0UGBw.js +2 -0
- package/dist/chunks/icon.component-C0e0UGBw.js.map +1 -0
- package/dist/chunks/icon.component-DGNCL1Yc.js +42 -0
- package/dist/chunks/icon.component-DGNCL1Yc.js.map +1 -0
- package/dist/chunks/index-BBZxmcrY.js +2 -0
- package/dist/chunks/index-BBZxmcrY.js.map +1 -0
- package/dist/chunks/index-BDnnTdaJ.js +2 -0
- package/dist/chunks/{index-BiyIeWSg.js.map → index-BDnnTdaJ.js.map} +1 -1
- package/dist/chunks/index-BGwwyukg.js +2 -0
- package/dist/chunks/index-BGwwyukg.js.map +1 -0
- package/dist/chunks/index-BNYygzo-.js +376 -0
- package/dist/chunks/index-BNYygzo-.js.map +1 -0
- package/dist/chunks/index-BYf7SZUC.js +2 -0
- package/dist/chunks/{index-DeprNCOL.js.map → index-BYf7SZUC.js.map} +1 -1
- package/dist/chunks/{index-CxHMu1In.js → index-C2kxTsiE.js} +23 -21
- package/dist/chunks/{index-CxHMu1In.js.map → index-C2kxTsiE.js.map} +1 -1
- package/dist/chunks/index-COoMV9Mh.js +2 -0
- package/dist/chunks/{index-BpKhRg2I.js.map → index-COoMV9Mh.js.map} +1 -1
- package/dist/chunks/index-CYk-7wwG.js +1018 -0
- package/dist/chunks/index-CYk-7wwG.js.map +1 -0
- package/dist/chunks/index-CZ42b9rT.js +3 -0
- package/dist/chunks/index-CZ42b9rT.js.map +1 -0
- package/dist/chunks/index-CZz7hHWb.js +2 -0
- package/dist/chunks/index-CZz7hHWb.js.map +1 -0
- package/dist/chunks/{index-DRABh-Lp.js → index-CjNAJEk5.js} +106 -105
- package/dist/chunks/{index-DRABh-Lp.js.map → index-CjNAJEk5.js.map} +1 -1
- package/dist/chunks/{index-B9cDqm2a.js → index-Co91SHhW.js} +3 -3
- package/dist/chunks/{index-B9cDqm2a.js.map → index-Co91SHhW.js.map} +1 -1
- package/dist/chunks/index-D-rN7ETu.js +2 -0
- package/dist/chunks/{index-CmVbgcH8.js.map → index-D-rN7ETu.js.map} +1 -1
- package/dist/chunks/{index-BL1VW2oK.js → index-D9DU-5GF.js} +55 -54
- package/dist/chunks/{index-BL1VW2oK.js.map → index-D9DU-5GF.js.map} +1 -1
- package/dist/chunks/index-DUHFrLMI.js +389 -0
- package/dist/chunks/index-DUHFrLMI.js.map +1 -0
- package/dist/chunks/{index-Bn03tQNC.js → index-DcJZ8q0f.js} +20 -19
- package/dist/chunks/{index-Bn03tQNC.js.map → index-DcJZ8q0f.js.map} +1 -1
- package/dist/chunks/index-MlhL0PDC.js +2 -0
- package/dist/chunks/{index-CzzrUbmu.js.map → index-MlhL0PDC.js.map} +1 -1
- package/dist/chunks/{index-YfA5zlSf.js → index-S1uNQPZj.js} +5 -5
- package/dist/chunks/{index-YfA5zlSf.js.map → index-S1uNQPZj.js.map} +1 -1
- package/dist/chunks/index-UWtj4ULm.js +8 -0
- package/dist/chunks/{index-DFbSzgk8.js.map → index-UWtj4ULm.js.map} +1 -1
- package/dist/chunks/index-ZaGEDS_0.js +2 -0
- package/dist/chunks/{index-BDCLWoQU.js.map → index-ZaGEDS_0.js.map} +1 -1
- package/dist/chunks/index-j7W9Hyzx.js +322 -0
- package/dist/chunks/index-j7W9Hyzx.js.map +1 -0
- package/dist/chunks/{index-Ciu8P7c-.js → index-ryFIinh4.js} +7 -7
- package/dist/chunks/{index-Ciu8P7c-.js.map → index-ryFIinh4.js.map} +1 -1
- package/dist/chunks/{link.component-BQJI6gPi.js → link.component-CCFg-LIe.js} +2 -2
- package/dist/chunks/{link.component-BQJI6gPi.js.map → link.component-CCFg-LIe.js.map} +1 -1
- package/dist/chunks/{link.component-Cs05IsXP.js → link.component-DprieyUG.js} +2 -2
- package/dist/chunks/{link.component-Cs05IsXP.js.map → link.component-DprieyUG.js.map} +1 -1
- package/dist/chunks/{menu.component-CAr2xdZY.js → menu.component-CrRs7bHi.js} +28 -28
- package/dist/chunks/{menu.component-CAr2xdZY.js.map → menu.component-CrRs7bHi.js.map} +1 -1
- package/dist/chunks/menu.component-Ob_ob-5Z.js +2 -0
- package/dist/chunks/{menu.component-BgAx3SsR.js.map → menu.component-Ob_ob-5Z.js.map} +1 -1
- package/dist/chunks/modal.types-Bq8QqBuR.js +2 -0
- package/dist/chunks/{modal.types-CtHJAyfq.js.map → modal.types-Bq8QqBuR.js.map} +1 -1
- package/dist/chunks/{modal.types-B7PDc2GJ.js → modal.types-DCe2G-mT.js} +6 -6
- package/dist/chunks/{modal.types-B7PDc2GJ.js.map → modal.types-DCe2G-mT.js.map} +1 -1
- package/dist/chunks/{pinInput.types-TfkrphC7.js → pinInput.types-ChHs2RV-.js} +17 -17
- package/dist/chunks/{pinInput.types-TfkrphC7.js.map → pinInput.types-ChHs2RV-.js.map} +1 -1
- package/dist/chunks/pinInput.types-hI4GxH_1.js +2 -0
- package/dist/chunks/{pinInput.types-a0_2OLBO.js.map → pinInput.types-hI4GxH_1.js.map} +1 -1
- package/dist/chunks/popover-80QH8HEJ.js +2 -0
- package/dist/chunks/popover-80QH8HEJ.js.map +1 -0
- package/dist/chunks/popover-B9rNOU0g.js +110 -0
- package/dist/chunks/popover-B9rNOU0g.js.map +1 -0
- package/dist/chunks/popover-root-provider-CeLLpesI.js +43 -0
- package/dist/chunks/popover-root-provider-CeLLpesI.js.map +1 -0
- package/dist/chunks/popover-root-provider-DAMDDAHQ.js +2 -0
- package/dist/chunks/popover-root-provider-DAMDDAHQ.js.map +1 -0
- package/dist/chunks/popover.component-BIpq3zkh.js +322 -0
- package/dist/chunks/popover.component-BIpq3zkh.js.map +1 -0
- package/dist/chunks/popover.component-Dz0_vSF2.js +2 -0
- package/dist/chunks/popover.component-Dz0_vSF2.js.map +1 -0
- package/dist/chunks/popover.recipe--gMRcQTS.js +479 -0
- package/dist/chunks/popover.recipe--gMRcQTS.js.map +1 -0
- package/dist/chunks/popover.recipe-DLeyokHo.js +2 -0
- package/dist/chunks/popover.recipe-DLeyokHo.js.map +1 -0
- package/dist/chunks/radio.records-CAWibIHJ.js +2 -0
- package/dist/chunks/{radio.records-zKzNxtns.js.map → radio.records-CAWibIHJ.js.map} +1 -1
- package/dist/chunks/{radio.records-DBS_lqNe.js → radio.records-gz4RRw4x.js} +9 -9
- package/dist/chunks/{radio.records-DBS_lqNe.js.map → radio.records-gz4RRw4x.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-DBLLIgCZ.js → radioGroup.component-wTDMlFMI.js} +17 -17
- package/dist/chunks/{radioGroup.component-DBLLIgCZ.js.map → radioGroup.component-wTDMlFMI.js.map} +1 -1
- package/dist/chunks/radioGroup.component-xCr6p4DS.js +2 -0
- package/dist/chunks/{radioGroup.component-fpo_KMOY.js.map → radioGroup.component-xCr6p4DS.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-DG2nCpxT.js → ratingDots.component-DNeSgGRt.js} +5 -5
- package/dist/chunks/{ratingDots.component-DG2nCpxT.js.map → ratingDots.component-DNeSgGRt.js.map} +1 -1
- package/dist/chunks/ratingDots.component-DvlGbBPz.js +2 -0
- package/dist/chunks/{ratingDots.component-DJEDUD_9.js.map → ratingDots.component-DvlGbBPz.js.map} +1 -1
- package/dist/chunks/render-strategy-BmWbSgqh.js +2 -0
- package/dist/chunks/{render-strategy-C80bGq2n.js.map → render-strategy-BmWbSgqh.js.map} +1 -1
- package/dist/chunks/{render-strategy-DN75XQJB.js → render-strategy-C8hwN3bm.js} +2 -2
- package/dist/chunks/{render-strategy-DN75XQJB.js.map → render-strategy-C8hwN3bm.js.map} +1 -1
- package/dist/chunks/select.component-1__YvaFF.js +2 -0
- package/dist/chunks/{select.component-Bmop2_tX.js.map → select.component-1__YvaFF.js.map} +1 -1
- package/dist/chunks/{select.component-DyXwbDeO.js → select.component-DN5g4aQG.js} +46 -46
- package/dist/chunks/{select.component-DyXwbDeO.js.map → select.component-DN5g4aQG.js.map} +1 -1
- package/dist/chunks/{sortableList.component-CbZAQrKl.js → sortableList.component-DI2da4B_.js} +4 -4
- package/dist/chunks/{sortableList.component-CbZAQrKl.js.map → sortableList.component-DI2da4B_.js.map} +1 -1
- package/dist/chunks/{sortableList.component-b2t_K7ho.js → sortableList.component-U3Kci1Jk.js} +2 -2
- package/dist/chunks/{sortableList.component-b2t_K7ho.js.map → sortableList.component-U3Kci1Jk.js.map} +1 -1
- package/dist/chunks/spinner-BWqSIW6m.js +8 -0
- package/dist/chunks/spinner-BWqSIW6m.js.map +1 -0
- package/dist/chunks/spinner-BnpL14kK.js +2 -0
- package/dist/chunks/spinner-BnpL14kK.js.map +1 -0
- package/dist/chunks/{spinner.component-B1vU-FCd.js → spinner.component-DER6c5R6.js} +4 -4
- package/dist/chunks/{spinner.component-B1vU-FCd.js.map → spinner.component-DER6c5R6.js.map} +1 -1
- package/dist/chunks/spinner.component-DUIpnXU8.js +2 -0
- package/dist/chunks/{spinner.component-CjQb7JjK.js.map → spinner.component-DUIpnXU8.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-DstfmllC.js → styledAvatar.types-EGc1-I1N.js} +2 -2
- package/dist/chunks/{styledAvatar.types-DstfmllC.js.map → styledAvatar.types-EGc1-I1N.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-D8VWyELN.js → styledAvatar.types-HA5wRy7y.js} +2 -2
- package/dist/chunks/{styledAvatar.types-D8VWyELN.js.map → styledAvatar.types-HA5wRy7y.js.map} +1 -1
- package/dist/chunks/{switch.component-DO9fxk_-.js → switch.component-6TiuST9H.js} +22 -22
- package/dist/chunks/{switch.component-DO9fxk_-.js.map → switch.component-6TiuST9H.js.map} +1 -1
- package/dist/chunks/switch.component-BPS2pQZx.js +2 -0
- package/dist/chunks/{switch.component-ARZzuYrq.js.map → switch.component-BPS2pQZx.js.map} +1 -1
- package/dist/chunks/tabs.component-DnbHYXT-.js +2 -0
- package/dist/chunks/{tabs.component-DRpNF8p-.js.map → tabs.component-DnbHYXT-.js.map} +1 -1
- package/dist/chunks/{tabs.component-BWTDtLWN.js → tabs.component-RpmipiEe.js} +55 -55
- package/dist/chunks/{tabs.component-BWTDtLWN.js.map → tabs.component-RpmipiEe.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-C3BrjwNJ.js → tagBlock.component-C-CNF4In.js} +17 -16
- package/dist/chunks/{tagBlock.component-C3BrjwNJ.js.map → tagBlock.component-C-CNF4In.js.map} +1 -1
- package/dist/chunks/tagBlock.component-DgmTLlRz.js +2 -0
- package/dist/chunks/{tagBlock.component-Bahf1v33.js.map → tagBlock.component-DgmTLlRz.js.map} +1 -1
- package/dist/chunks/text.component-BGUHMpKP.js +12 -0
- package/dist/chunks/text.component-BGUHMpKP.js.map +1 -0
- package/dist/chunks/text.component-BJ5u8GVO.js +2 -0
- package/dist/chunks/text.component-BJ5u8GVO.js.map +1 -0
- package/dist/chunks/{textInput.component-LPGbDHwZ.js → textInput.component-B2S0GcHU.js} +14 -14
- package/dist/chunks/{textInput.component-LPGbDHwZ.js.map → textInput.component-B2S0GcHU.js.map} +1 -1
- package/dist/chunks/textInput.component-D1L2qv1M.js +2 -0
- package/dist/chunks/{textInput.component-DDo9eUvp.js.map → textInput.component-D1L2qv1M.js.map} +1 -1
- package/dist/chunks/textarea.component-BEgF2Yny.js +2 -0
- package/dist/chunks/{textarea.component-5Ou5g_MJ.js.map → textarea.component-BEgF2Yny.js.map} +1 -1
- package/dist/chunks/{textarea.component-ClYqhTJX.js → textarea.component-DB51bevU.js} +12 -12
- package/dist/chunks/{textarea.component-ClYqhTJX.js.map → textarea.component-DB51bevU.js.map} +1 -1
- package/dist/chunks/{theme.provider-vZgSb-q5.js → theme.provider-Dez6uepg.js} +1900 -2011
- package/dist/chunks/theme.provider-Dez6uepg.js.map +1 -0
- package/dist/chunks/theme.provider-u0ofgWRM.js +26 -0
- package/dist/chunks/theme.provider-u0ofgWRM.js.map +1 -0
- package/dist/chunks/{timePicker.component-AgnrqtFu.js → timePicker.component-DsQUV8fR.js} +4 -4
- package/dist/chunks/{timePicker.component-AgnrqtFu.js.map → timePicker.component-DsQUV8fR.js.map} +1 -1
- package/dist/chunks/{timePicker.component-Bx0fHgrN.js → timePicker.component-av1t2G-i.js} +2 -2
- package/dist/chunks/{timePicker.component-Bx0fHgrN.js.map → timePicker.component-av1t2G-i.js.map} +1 -1
- package/dist/chunks/{timeRange.component-B3Nv-nLB.js → timeRange.component-B7syLsrU.js} +2 -2
- package/dist/chunks/{timeRange.component-B3Nv-nLB.js.map → timeRange.component-B7syLsrU.js.map} +1 -1
- package/dist/chunks/{timeRange.component-C14RiUcS.js → timeRange.component-bIQZJ4MP.js} +2 -2
- package/dist/chunks/{timeRange.component-C14RiUcS.js.map → timeRange.component-bIQZJ4MP.js.map} +1 -1
- package/dist/chunks/timestamp.component-CNlZ6Jw2.js +2 -0
- package/dist/chunks/{timestamp.component-DEx0cUkA.js.map → timestamp.component-CNlZ6Jw2.js.map} +1 -1
- package/dist/chunks/timestamp.component-ZcL8FlD-.js +54 -0
- package/dist/chunks/{timestamp.component-Kxi_bKp1.js.map → timestamp.component-ZcL8FlD-.js.map} +1 -1
- package/dist/chunks/{toaster.records-CKeu_PyD.js → toaster.records-BGfpUOVt.js} +22 -21
- package/dist/chunks/{toaster.records-CKeu_PyD.js.map → toaster.records-BGfpUOVt.js.map} +1 -1
- package/dist/chunks/toaster.records-BJo0j1IZ.js +2 -0
- package/dist/chunks/{toaster.records-CGym-iT-.js.map → toaster.records-BJo0j1IZ.js.map} +1 -1
- package/dist/chunks/tooltip.component-B4S3qwsH.js +2 -0
- package/dist/chunks/tooltip.component-B4S3qwsH.js.map +1 -0
- package/dist/chunks/tooltip.component-OLohVRIH.js +755 -0
- package/dist/chunks/tooltip.component-OLohVRIH.js.map +1 -0
- package/dist/chunks/{icon.component-D84o075X.js → typography-Cqrokog3.js} +6 -43
- package/dist/chunks/typography-Cqrokog3.js.map +1 -0
- package/dist/chunks/typography-CtiaGoJG.js +2 -0
- package/dist/chunks/typography-CtiaGoJG.js.map +1 -0
- package/dist/chunks/{typography.records-BeoK0Uyj.js → typography.records-C6G_65b4.js} +2 -2
- package/dist/chunks/{typography.records-BeoK0Uyj.js.map → typography.records-C6G_65b4.js.map} +1 -1
- package/dist/chunks/{typography.records-XkUlmiSk.js → typography.records-jnjWfTLS.js} +2 -2
- package/dist/chunks/{typography.records-XkUlmiSk.js.map → typography.records-jnjWfTLS.js.map} +1 -1
- package/dist/chunks/use-field-context--wBJQY1R.js +2 -0
- package/dist/chunks/{use-field-context-DnTe9gdc.js.map → use-field-context--wBJQY1R.js.map} +1 -1
- package/dist/chunks/{use-field-context-1gfMkjvo.js → use-field-context-B_G7Yziz.js} +2 -2
- package/dist/chunks/{use-field-context-1gfMkjvo.js.map → use-field-context-B_G7Yziz.js.map} +1 -1
- package/dist/chunks/use-locale-context-BdqHZ8L8.js +22 -0
- package/dist/chunks/use-locale-context-BdqHZ8L8.js.map +1 -0
- package/dist/chunks/use-locale-context-D-agiW5E.js +2301 -0
- package/dist/chunks/use-locale-context-D-agiW5E.js.map +1 -0
- package/dist/chunks/{withFormControl-DfqMqkSU.js → withFormControl-DIT4DbIl.js} +39 -39
- package/dist/chunks/{withFormControl-DfqMqkSU.js.map → withFormControl-DIT4DbIl.js.map} +1 -1
- package/dist/chunks/withFormControl-DzgoWpP6.js +2 -0
- package/dist/chunks/{withFormControl-kyGjRFza.js.map → withFormControl-DzgoWpP6.js.map} +1 -1
- package/dist/chunks/withTruncation-CVhXtaaF.js +67 -0
- package/dist/chunks/withTruncation-CVhXtaaF.js.map +1 -0
- package/dist/chunks/withTruncation-CYH02HoE.js +2 -0
- package/dist/chunks/withTruncation-CYH02HoE.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/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/Heading/index.cjs +1 -1
- package/dist/cjs/components/Icon/index.cjs +1 -1
- package/dist/cjs/components/Link/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/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/Switch/index.cjs +1 -1
- package/dist/cjs/components/Tabs/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/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +1 -1
- package/dist/esm/chakra/index.js +147 -146
- 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/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/Heading/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/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +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/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/Text/index.js +2 -2
- 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 +92 -89
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/index.js +114 -111
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/index.js +1 -1
- package/dist/types/components/Menu/menu.recipe.d.ts +1 -1
- package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
- package/dist/types/components/PinInput/pinInput.recipe.d.ts +1 -1
- package/dist/types/components/Spinner/spinner.recipe.d.ts +1 -1
- package/dist/types/components/TimePicker/timePicker.recipe.d.ts +1 -1
- package/dist/types/components/Tooltip/tooltip.component.d.ts +2 -4
- package/dist/types/components/Tooltip/tooltip.recipe.d.ts +1 -0
- package/dist/types/theme/tokens/shadows/shadows.config.d.ts +3 -3
- package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +8 -8
- package/package.json +1 -1
- package/dist/chunks/alert.types-BsvcbTZD.js +0 -2
- package/dist/chunks/avatar.component-RKtP3MZt.js +0 -2
- package/dist/chunks/characterCounter.component-B8efVNy4.js +0 -2
- package/dist/chunks/checkbox.component-DO9NDbmM.js +0 -2
- package/dist/chunks/checkbox.records-D7NUtCRR.js +0 -2
- package/dist/chunks/conversationCard.component-qWYvoxVn.js +0 -2
- package/dist/chunks/datePicker.component-CLR0tErm.js +0 -15
- package/dist/chunks/dialog-trigger-JNnMRY13.js +0 -2
- package/dist/chunks/group-Dv1hO5IW.js +0 -2
- package/dist/chunks/heading.component-DkT5GYvU.js +0 -2
- package/dist/chunks/heading.component-DkT5GYvU.js.map +0 -1
- package/dist/chunks/heading.component-d5jKnwm5.js +0 -976
- package/dist/chunks/heading.component-d5jKnwm5.js.map +0 -1
- package/dist/chunks/icon-button-BTDZq0Tr.js +0 -121
- package/dist/chunks/icon-button-BTDZq0Tr.js.map +0 -1
- package/dist/chunks/icon-button-khcu437F.js +0 -2
- package/dist/chunks/icon-button-khcu437F.js.map +0 -1
- package/dist/chunks/icon.component-D84o075X.js.map +0 -1
- package/dist/chunks/icon.component-DjiNNeqF.js +0 -2
- package/dist/chunks/icon.component-DjiNNeqF.js.map +0 -1
- package/dist/chunks/index-BDCLWoQU.js +0 -2
- package/dist/chunks/index-BIjZoyJk.js +0 -70
- package/dist/chunks/index-BIjZoyJk.js.map +0 -1
- package/dist/chunks/index-BiyIeWSg.js +0 -2
- package/dist/chunks/index-BlGAWSIX.js +0 -3
- package/dist/chunks/index-BlGAWSIX.js.map +0 -1
- package/dist/chunks/index-BpKhRg2I.js +0 -2
- package/dist/chunks/index-Cb49D-ky.js +0 -1328
- package/dist/chunks/index-Cb49D-ky.js.map +0 -1
- package/dist/chunks/index-CmVbgcH8.js +0 -2
- package/dist/chunks/index-CzzrUbmu.js +0 -2
- package/dist/chunks/index-DFbSzgk8.js +0 -8
- package/dist/chunks/index-DeprNCOL.js +0 -2
- package/dist/chunks/index-Fztcdoo_.js +0 -2
- package/dist/chunks/index-Fztcdoo_.js.map +0 -1
- package/dist/chunks/menu.component-BgAx3SsR.js +0 -2
- package/dist/chunks/modal.context-DSKLfsJK.js +0 -12
- package/dist/chunks/modal.context-DSKLfsJK.js.map +0 -1
- package/dist/chunks/modal.context-EJ67QNzq.js +0 -2
- package/dist/chunks/modal.context-EJ67QNzq.js.map +0 -1
- package/dist/chunks/modal.types-CtHJAyfq.js +0 -2
- package/dist/chunks/pinInput.types-a0_2OLBO.js +0 -2
- package/dist/chunks/portal-CtkZ5xTm.js +0 -3087
- package/dist/chunks/portal-CtkZ5xTm.js.map +0 -1
- package/dist/chunks/portal-kmAjRmaV.js +0 -22
- package/dist/chunks/portal-kmAjRmaV.js.map +0 -1
- package/dist/chunks/radio.records-zKzNxtns.js +0 -2
- package/dist/chunks/radioGroup.component-fpo_KMOY.js +0 -2
- package/dist/chunks/ratingDots.component-DJEDUD_9.js +0 -2
- package/dist/chunks/render-strategy-C80bGq2n.js +0 -2
- package/dist/chunks/select.component-Bmop2_tX.js +0 -2
- package/dist/chunks/spinner.component-CjQb7JjK.js +0 -2
- package/dist/chunks/switch.component-ARZzuYrq.js +0 -2
- package/dist/chunks/tabs.component-DRpNF8p-.js +0 -2
- package/dist/chunks/tagBlock.component-Bahf1v33.js +0 -2
- package/dist/chunks/textInput.component-DDo9eUvp.js +0 -2
- package/dist/chunks/textarea.component-5Ou5g_MJ.js +0 -2
- package/dist/chunks/theme.provider-DWJTtjw5.js +0 -26
- package/dist/chunks/theme.provider-DWJTtjw5.js.map +0 -1
- package/dist/chunks/theme.provider-vZgSb-q5.js.map +0 -1
- package/dist/chunks/timestamp.component-DEx0cUkA.js +0 -2
- package/dist/chunks/timestamp.component-Kxi_bKp1.js +0 -53
- package/dist/chunks/toaster.records-CGym-iT-.js +0 -2
- package/dist/chunks/use-field-context-DnTe9gdc.js +0 -2
- package/dist/chunks/withFormControl-kyGjRFza.js +0 -2
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
import { r as K, a2 as R, ai as M, aj as L, ak as v, al as m, R as g, D as O, am as S, a6 as A, an as _, ao as W, ab as P, ap as $ } from "./index-CYk-7wwG.js";
|
|
2
|
+
var N = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), k = {}, D = 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(), D++, () => {
|
|
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
|
+
}), D--, D || (N = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), k = {});
|
|
32
|
+
};
|
|
33
|
+
}, X = (e) => (Array.isArray(e) ? e[0] : e).ownerDocument.body, Y = (e, i = X(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(Y(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 C = "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(C)) return;
|
|
363
|
+
s.setAttribute(C, "");
|
|
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(C);
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
export {
|
|
385
|
+
it as a,
|
|
386
|
+
ot as p,
|
|
387
|
+
at as t
|
|
388
|
+
};
|
|
389
|
+
//# sourceMappingURL=index-DUHFrLMI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DUHFrLMI.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;AACz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C,MAAM,GAAG,EAAEJ,IAAU,KAAK,MAAMG,CAAU,EAAE;AAAA,MAC5C,OAAO;AAAA,MACP,CAACP,CAAe,GAAG,GAAGH,CAAc;AAAA,IAC1C,CAAK;AACD,WAAO,MAAM;AACX,MAAAY,IAAgB,GAChBpF,EAAI,SAAS,EAAE,MAAM+E,GAAS,KAAKC,GAAS,UAAU,WAAW;AAAA,IAClE;AAAA,EACF,GACKhH,IAAW,CAACyG,EAA2B,GAAEY,EAAK,IAAKP,EAAe,IAAKF,GAAc;AAC3F,SAAO,MAAM;AACX,IAAA5G,EAAS,QAAQ,CAACR,MAAOA,IAAE,CAAI,GAC/B+G,EAAK,gBAAgBP,CAAc;AAAA,EACpC;AACH;","x_google_ignoreList":[0,1,2]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as J,
|
|
1
|
+
import { j as z, G as M, H as w, c as oe, y as ue, I as Y, r as x, g as de, o as ce, B as he, J as B, K as ge, b as me, L as fe, M as Ie, q as j, D as pe, N as ve, v as Ee, d as h, k as ye, O as Oe } from "./index-CYk-7wwG.js";
|
|
2
|
+
import { g as J, d as Te, b as L } from "./use-locale-context-D-agiW5E.js";
|
|
3
|
+
import { t as Re } from "./index-j7W9Hyzx.js";
|
|
3
4
|
var Ve = Object.defineProperty, Ce = (e, s, t) => s in e ? Ve(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t, u = (e, s, t) => Ce(e, typeof s != "symbol" ? s + "" : s, t), F = {
|
|
4
5
|
itemToValue(e) {
|
|
5
6
|
return typeof e == "string" ? e : M(e) && w(e, "value") ? e.value : "";
|
|
@@ -183,7 +184,7 @@ function A(e, s, t) {
|
|
|
183
184
|
e = [...e.slice(0, s[l]), ...e.slice(s[l] + 1)];
|
|
184
185
|
return t = Math.max(0, t - s.filter((l) => l < t).length), [...e.slice(0, t), ...i, ...e.slice(t)];
|
|
185
186
|
}
|
|
186
|
-
var Ge =
|
|
187
|
+
var Ge = me("select").parts(
|
|
187
188
|
"label",
|
|
188
189
|
"positioner",
|
|
189
190
|
"trigger",
|
|
@@ -202,18 +203,18 @@ var Ge = fe("select").parts(
|
|
|
202
203
|
), f = Ge.build(), ie = (e) => new ee(e);
|
|
203
204
|
ie.empty = () => new ee({ items: [] });
|
|
204
205
|
var Ae = (e) => e.ids?.root ?? `select:${e.id}`, W = (e) => e.ids?.content ?? `select:${e.id}:content`, U = (e) => e.ids?.trigger ?? `select:${e.id}:trigger`, se = (e) => e.ids?.clearTrigger ?? `select:${e.id}:clear-trigger`, P = (e) => e.ids?.label ?? `select:${e.id}:label`, Pe = (e) => e.ids?.control ?? `select:${e.id}:control`, K = (e, s) => e.ids?.item?.(s) ?? `select:${e.id}:option:${s}`, $ = (e) => e.ids?.hiddenSelect ?? `select:${e.id}:select`, le = (e) => e.ids?.positioner ?? `select:${e.id}:positioner`, Fe = (e, s) => e.ids?.itemGroup?.(s) ?? `select:${e.id}:optgroup:${s}`, Q = (e, s) => e.ids?.itemGroupLabel?.(s) ?? `select:${e.id}:optgroup-label:${s}`, _ = (e) => e.getById($(e)), b = (e) => e.getById(W(e)), T = (e) => e.getById(U(e)), Le = (e) => e.getById(se(e)), X = (e) => e.getById(le(e)), Ne = (e, s) => e.getById(K(e, s));
|
|
205
|
-
function
|
|
206
|
+
function we(e, s) {
|
|
206
207
|
const { context: t, prop: i, scope: l, state: n, computed: o, send: r } = e, c = i("disabled") || t.get("fieldsetDisabled"), m = i("invalid"), v = i("readOnly"), I = i("composite"), y = i("collection"), p = n.hasTag("open"), E = n.matches("focused"), V = t.get("highlightedValue"), ne = t.get("highlightedItem"), re = t.get("selectedItems"), N = t.get("currentPlacement"), q = o("isTypingAhead"), k = o("isInteractive"), D = V ? K(l, V) : void 0;
|
|
207
208
|
function G(a) {
|
|
208
209
|
const d = y.getItemDisabled(a.item), g = y.getItemValue(a.item);
|
|
209
|
-
return
|
|
210
|
+
return Oe(g, () => `[zag-js] No value found for item ${JSON.stringify(a.item)}`), {
|
|
210
211
|
value: g,
|
|
211
212
|
disabled: !!(c || d),
|
|
212
213
|
highlighted: V === g,
|
|
213
214
|
selected: t.get("value").includes(g)
|
|
214
215
|
};
|
|
215
216
|
}
|
|
216
|
-
const ae =
|
|
217
|
+
const ae = Te({
|
|
217
218
|
...i("positioning"),
|
|
218
219
|
placement: N
|
|
219
220
|
});
|
|
@@ -388,7 +389,7 @@ function Me(e, s) {
|
|
|
388
389
|
"data-state": d.selected ? "checked" : "unchecked",
|
|
389
390
|
"data-highlighted": h(d.highlighted),
|
|
390
391
|
"data-disabled": h(d.disabled),
|
|
391
|
-
"aria-disabled":
|
|
392
|
+
"aria-disabled": ye(d.disabled),
|
|
392
393
|
onPointerMove(g) {
|
|
393
394
|
d.disabled || g.pointerType !== "mouse" || d.value !== V && r({ type: "ITEM.POINTER_MOVE", value: d.value });
|
|
394
395
|
},
|
|
@@ -464,7 +465,7 @@ function Me(e, s) {
|
|
|
464
465
|
"aria-hidden": !0,
|
|
465
466
|
id: $(l),
|
|
466
467
|
defaultValue: d,
|
|
467
|
-
style:
|
|
468
|
+
style: Ee,
|
|
468
469
|
tabIndex: -1,
|
|
469
470
|
// Some browser extensions will focus the hidden select.
|
|
470
471
|
// Let's forward the focus to the trigger.
|
|
@@ -497,8 +498,8 @@ function Me(e, s) {
|
|
|
497
498
|
"aria-labelledby": P(l),
|
|
498
499
|
tabIndex: 0,
|
|
499
500
|
onKeyDown(a) {
|
|
500
|
-
if (!k || !
|
|
501
|
-
if (a.key === "Tab" && !
|
|
501
|
+
if (!k || !fe(a)) return;
|
|
502
|
+
if (a.key === "Tab" && !Ie(a)) {
|
|
502
503
|
a.preventDefault();
|
|
503
504
|
return;
|
|
504
505
|
}
|
|
@@ -526,8 +527,8 @@ function Me(e, s) {
|
|
|
526
527
|
g(a), a.preventDefault();
|
|
527
528
|
return;
|
|
528
529
|
}
|
|
529
|
-
const R =
|
|
530
|
-
|
|
530
|
+
const R = pe(a);
|
|
531
|
+
ve(R) || B.isValidEvent(a) && (r({ type: "CONTENT.TYPEAHEAD", key: a.key }), a.preventDefault());
|
|
531
532
|
}
|
|
532
533
|
});
|
|
533
534
|
},
|
|
@@ -543,7 +544,7 @@ function Me(e, s) {
|
|
|
543
544
|
}
|
|
544
545
|
};
|
|
545
546
|
}
|
|
546
|
-
var { and: S, not: O, or: ke } = ue(),
|
|
547
|
+
var { and: S, not: O, or: ke } = ue(), xe = oe({
|
|
547
548
|
props({ props: e }) {
|
|
548
549
|
return {
|
|
549
550
|
loopFocus: !1,
|
|
@@ -919,7 +920,7 @@ var { and: S, not: O, or: ke } = ue(), we = oe({
|
|
|
919
920
|
},
|
|
920
921
|
effects: {
|
|
921
922
|
trackFormControlState({ context: e, scope: s }) {
|
|
922
|
-
return
|
|
923
|
+
return he(_(s), {
|
|
923
924
|
onFieldsetDisabledChange(t) {
|
|
924
925
|
e.set("fieldsetDisabled", t);
|
|
925
926
|
},
|
|
@@ -932,7 +933,7 @@ var { and: S, not: O, or: ke } = ue(), we = oe({
|
|
|
932
933
|
trackDismissableElement({ scope: e, send: s, prop: t }) {
|
|
933
934
|
const i = () => b(e);
|
|
934
935
|
let l = !0;
|
|
935
|
-
return
|
|
936
|
+
return Re(i, {
|
|
936
937
|
defer: !0,
|
|
937
938
|
exclude: [T(e), Le(e)],
|
|
938
939
|
onFocusOutside: t("onFocusOutside"),
|
|
@@ -965,7 +966,7 @@ var { and: S, not: O, or: ke } = ue(), we = oe({
|
|
|
965
966
|
v?.({ index: I, immediate: o });
|
|
966
967
|
return;
|
|
967
968
|
}
|
|
968
|
-
|
|
969
|
+
ge(c, { rootEl: m, block: "nearest" });
|
|
969
970
|
};
|
|
970
971
|
return x(() => l(!0)), ce(() => b(t), {
|
|
971
972
|
defer: !0,
|
|
@@ -1183,7 +1184,7 @@ L()(["htmlFor"]);
|
|
|
1183
1184
|
export {
|
|
1184
1185
|
ee as L,
|
|
1185
1186
|
Ge as a,
|
|
1186
|
-
|
|
1187
|
-
|
|
1187
|
+
we as c,
|
|
1188
|
+
xe as m
|
|
1188
1189
|
};
|
|
1189
|
-
//# sourceMappingURL=index-
|
|
1190
|
+
//# sourceMappingURL=index-DcJZ8q0f.js.map
|