@televet/kibble-ui 4.0.0-beta.65 → 4.0.0-beta.67
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-Dth5h5qO.js → alert.types-B7BlPX2-.js} +10 -11
- package/dist/chunks/{alert.types-Dth5h5qO.js.map → alert.types-B7BlPX2-.js.map} +1 -1
- package/dist/chunks/alert.types-BsvcbTZD.js +2 -0
- package/dist/chunks/{alert.types-BvnpOwve.js.map → alert.types-BsvcbTZD.js.map} +1 -1
- package/dist/chunks/{avatar.component-BPCJZRyT.js → avatar.component-CB5m8zha.js} +27 -27
- package/dist/chunks/{avatar.component-BPCJZRyT.js.map → avatar.component-CB5m8zha.js.map} +1 -1
- package/dist/chunks/avatar.component-RKtP3MZt.js +2 -0
- package/dist/chunks/{avatar.component-y7gTa1dV.js.map → avatar.component-RKtP3MZt.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-BnRXVOIV.js → avatarGroup.component-CKFjjo2R.js} +2 -2
- package/dist/chunks/{avatarGroup.component-BnRXVOIV.js.map → avatarGroup.component-CKFjjo2R.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-Mfl8jvgp.js → avatarGroup.component-CjBeAxHZ.js} +2 -2
- package/dist/chunks/{avatarGroup.component-Mfl8jvgp.js.map → avatarGroup.component-CjBeAxHZ.js.map} +1 -1
- package/dist/chunks/{button.component-Dd9AfGox.js → button.component-BQA_MGYQ.js} +2 -2
- package/dist/chunks/{button.component-Dd9AfGox.js.map → button.component-BQA_MGYQ.js.map} +1 -1
- package/dist/chunks/{button.component-BpF3MzbZ.js → button.component-DahLrK9h.js} +3 -3
- package/dist/chunks/{button.component-BpF3MzbZ.js.map → button.component-DahLrK9h.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-6ZBOJbfR.js → buttonGroup.component-BI44nuxH.js} +2 -2
- package/dist/chunks/{buttonGroup.component-6ZBOJbfR.js.map → buttonGroup.component-BI44nuxH.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-DQfB4Nj3.js → buttonGroup.component-UKmJh2zn.js} +5 -5
- package/dist/chunks/{buttonGroup.component-DQfB4Nj3.js.map → buttonGroup.component-UKmJh2zn.js.map} +1 -1
- package/dist/chunks/characterCounter.component-B8efVNy4.js +2 -0
- package/dist/chunks/{characterCounter.component-4T8NHb11.js.map → characterCounter.component-B8efVNy4.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-Cs0y0DOj.js → characterCounter.component-xgc8P1mp.js} +2 -2
- package/dist/chunks/{characterCounter.component-Cs0y0DOj.js.map → characterCounter.component-xgc8P1mp.js.map} +1 -1
- package/dist/chunks/{checkbox.component-DqlWmIyY.js → checkbox.component-5GtlYTnJ.js} +16 -16
- package/dist/chunks/{checkbox.component-DqlWmIyY.js.map → checkbox.component-5GtlYTnJ.js.map} +1 -1
- package/dist/chunks/checkbox.component-DO9NDbmM.js +2 -0
- package/dist/chunks/{checkbox.component-CFuJaYmY.js.map → checkbox.component-DO9NDbmM.js.map} +1 -1
- package/dist/chunks/{checkbox.records-08YIiUZO.js → checkbox.records-69wNHjsY.js} +8 -8
- package/dist/chunks/{checkbox.records-08YIiUZO.js.map → checkbox.records-69wNHjsY.js.map} +1 -1
- package/dist/chunks/checkbox.records-D7NUtCRR.js +2 -0
- package/dist/chunks/{checkbox.records-B7refmmT.js.map → checkbox.records-D7NUtCRR.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-DaxmsqdZ.js → checkboxGroup.component-C1sPgVro.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-DaxmsqdZ.js.map → checkboxGroup.component-C1sPgVro.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-DBqDJvPC.js → checkboxGroup.component-Dq3jCGDU.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-DBqDJvPC.js.map → checkboxGroup.component-Dq3jCGDU.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-Bg1Q9FdN.js → conversationCard.component-LpR5eSru.js} +18 -20
- package/dist/chunks/{conversationCard.component-Bg1Q9FdN.js.map → conversationCard.component-LpR5eSru.js.map} +1 -1
- package/dist/chunks/conversationCard.component-qWYvoxVn.js +2 -0
- package/dist/chunks/{conversationCard.component-CBrw3VnT.js.map → conversationCard.component-qWYvoxVn.js.map} +1 -1
- package/dist/chunks/datePicker.component-CLR0tErm.js +15 -0
- package/dist/chunks/{datePicker.component-u52NQcza.js.map → datePicker.component-CLR0tErm.js.map} +1 -1
- package/dist/chunks/{datePicker.component-DfQNebKg.js → datePicker.component-DVR8Ech4.js} +85 -87
- package/dist/chunks/{datePicker.component-DfQNebKg.js.map → datePicker.component-DVR8Ech4.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-BPlPzPU-.js → dialog-trigger-C6rpz6Do.js} +9 -9
- package/dist/chunks/{dialog-trigger-BPlPzPU-.js.map → dialog-trigger-C6rpz6Do.js.map} +1 -1
- package/dist/chunks/dialog-trigger-JNnMRY13.js +2 -0
- package/dist/chunks/{dialog-trigger-B5NK0lr-.js.map → dialog-trigger-JNnMRY13.js.map} +1 -1
- package/dist/chunks/{group-DPCVolOl.js → group-DKypflCt.js} +2 -2
- package/dist/chunks/{group-DPCVolOl.js.map → group-DKypflCt.js.map} +1 -1
- package/dist/chunks/group-Dv1hO5IW.js +2 -0
- package/dist/chunks/{group-Cv7AQw1b.js.map → group-Dv1hO5IW.js.map} +1 -1
- package/dist/chunks/heading.component-DkT5GYvU.js +2 -0
- package/dist/chunks/heading.component-DkT5GYvU.js.map +1 -0
- package/dist/chunks/heading.component-d5jKnwm5.js +976 -0
- package/dist/chunks/heading.component-d5jKnwm5.js.map +1 -0
- package/dist/chunks/icon-button-BTDZq0Tr.js +121 -0
- package/dist/chunks/icon-button-BTDZq0Tr.js.map +1 -0
- package/dist/chunks/icon-button-khcu437F.js +2 -0
- package/dist/chunks/icon-button-khcu437F.js.map +1 -0
- package/dist/chunks/{typography-Cqrokog3.js → icon.component-D84o075X.js} +43 -6
- package/dist/chunks/icon.component-D84o075X.js.map +1 -0
- package/dist/chunks/icon.component-DjiNNeqF.js +2 -0
- package/dist/chunks/icon.component-DjiNNeqF.js.map +1 -0
- package/dist/chunks/{index-Co91SHhW.js → index-B9cDqm2a.js} +3 -3
- package/dist/chunks/{index-Co91SHhW.js.map → index-B9cDqm2a.js.map} +1 -1
- package/dist/chunks/index-BDCLWoQU.js +2 -0
- package/dist/chunks/{index-ZaGEDS_0.js.map → index-BDCLWoQU.js.map} +1 -1
- package/dist/chunks/index-BIjZoyJk.js +70 -0
- package/dist/chunks/index-BIjZoyJk.js.map +1 -0
- package/dist/chunks/{index-D9DU-5GF.js → index-BL1VW2oK.js} +54 -55
- package/dist/chunks/{index-D9DU-5GF.js.map → index-BL1VW2oK.js.map} +1 -1
- package/dist/chunks/index-BiyIeWSg.js +2 -0
- package/dist/chunks/{index-BDnnTdaJ.js.map → index-BiyIeWSg.js.map} +1 -1
- package/dist/chunks/index-BlGAWSIX.js +3 -0
- package/dist/chunks/index-BlGAWSIX.js.map +1 -0
- package/dist/chunks/{index-DcJZ8q0f.js → index-Bn03tQNC.js} +19 -20
- package/dist/chunks/{index-DcJZ8q0f.js.map → index-Bn03tQNC.js.map} +1 -1
- package/dist/chunks/index-BpKhRg2I.js +2 -0
- package/dist/chunks/{index-COoMV9Mh.js.map → index-BpKhRg2I.js.map} +1 -1
- package/dist/chunks/index-Cb49D-ky.js +1328 -0
- package/dist/chunks/index-Cb49D-ky.js.map +1 -0
- package/dist/chunks/{index-MDMqrELk.js → index-Ciu8P7c-.js} +7 -7
- package/dist/chunks/{index-MDMqrELk.js.map → index-Ciu8P7c-.js.map} +1 -1
- package/dist/chunks/index-CmVbgcH8.js +2 -0
- package/dist/chunks/{index-Dyxhds_1.js.map → index-CmVbgcH8.js.map} +1 -1
- package/dist/chunks/{index-C2kxTsiE.js → index-CxHMu1In.js} +21 -23
- package/dist/chunks/{index-C2kxTsiE.js.map → index-CxHMu1In.js.map} +1 -1
- package/dist/chunks/index-CzzrUbmu.js +2 -0
- package/dist/chunks/{index-MlhL0PDC.js.map → index-CzzrUbmu.js.map} +1 -1
- package/dist/chunks/index-DFbSzgk8.js +8 -0
- package/dist/chunks/{index-UWtj4ULm.js.map → index-DFbSzgk8.js.map} +1 -1
- package/dist/chunks/{index-CjNAJEk5.js → index-DRABh-Lp.js} +105 -106
- package/dist/chunks/{index-CjNAJEk5.js.map → index-DRABh-Lp.js.map} +1 -1
- package/dist/chunks/index-DeprNCOL.js +2 -0
- package/dist/chunks/{index-BYf7SZUC.js.map → index-DeprNCOL.js.map} +1 -1
- package/dist/chunks/index-Fztcdoo_.js +2 -0
- package/dist/chunks/index-Fztcdoo_.js.map +1 -0
- package/dist/chunks/{index-S1uNQPZj.js → index-YfA5zlSf.js} +5 -5
- package/dist/chunks/{index-S1uNQPZj.js.map → index-YfA5zlSf.js.map} +1 -1
- package/dist/chunks/{link.component-CCFg-LIe.js → link.component-BQJI6gPi.js} +2 -2
- package/dist/chunks/{link.component-CCFg-LIe.js.map → link.component-BQJI6gPi.js.map} +1 -1
- package/dist/chunks/{link.component-DprieyUG.js → link.component-Cs05IsXP.js} +2 -2
- package/dist/chunks/{link.component-DprieyUG.js.map → link.component-Cs05IsXP.js.map} +1 -1
- package/dist/chunks/menu.component-BgAx3SsR.js +2 -0
- package/dist/chunks/{menu.component-CiZzHc2D.js.map → menu.component-BgAx3SsR.js.map} +1 -1
- package/dist/chunks/{menu.component-D4gknsq1.js → menu.component-CAr2xdZY.js} +28 -28
- package/dist/chunks/{menu.component-D4gknsq1.js.map → menu.component-CAr2xdZY.js.map} +1 -1
- package/dist/chunks/modal.context-DSKLfsJK.js +12 -0
- package/dist/chunks/modal.context-DSKLfsJK.js.map +1 -0
- package/dist/chunks/modal.context-EJ67QNzq.js +2 -0
- package/dist/chunks/modal.context-EJ67QNzq.js.map +1 -0
- package/dist/chunks/{modal.types-BV8Eand2.js → modal.types-B7PDc2GJ.js} +6 -6
- package/dist/chunks/{modal.types-BV8Eand2.js.map → modal.types-B7PDc2GJ.js.map} +1 -1
- package/dist/chunks/modal.types-CtHJAyfq.js +2 -0
- package/dist/chunks/{modal.types-9-Bz6ybC.js.map → modal.types-CtHJAyfq.js.map} +1 -1
- package/dist/chunks/{pinInput.types-U7Tfj5It.js → pinInput.types-TfkrphC7.js} +17 -17
- package/dist/chunks/{pinInput.types-U7Tfj5It.js.map → pinInput.types-TfkrphC7.js.map} +1 -1
- package/dist/chunks/pinInput.types-a0_2OLBO.js +2 -0
- package/dist/chunks/{pinInput.types-B-RchRm_.js.map → pinInput.types-a0_2OLBO.js.map} +1 -1
- package/dist/chunks/portal-CtkZ5xTm.js +3087 -0
- package/dist/chunks/portal-CtkZ5xTm.js.map +1 -0
- package/dist/chunks/portal-kmAjRmaV.js +22 -0
- package/dist/chunks/portal-kmAjRmaV.js.map +1 -0
- package/dist/chunks/{radio.records-D7VFHW-s.js → radio.records-DBS_lqNe.js} +9 -9
- package/dist/chunks/{radio.records-D7VFHW-s.js.map → radio.records-DBS_lqNe.js.map} +1 -1
- package/dist/chunks/radio.records-zKzNxtns.js +2 -0
- package/dist/chunks/{radio.records-DLffZyeq.js.map → radio.records-zKzNxtns.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-DVsMiHFI.js → radioGroup.component-DBLLIgCZ.js} +17 -17
- package/dist/chunks/{radioGroup.component-DVsMiHFI.js.map → radioGroup.component-DBLLIgCZ.js.map} +1 -1
- package/dist/chunks/radioGroup.component-fpo_KMOY.js +2 -0
- package/dist/chunks/{radioGroup.component-CZwrCppd.js.map → radioGroup.component-fpo_KMOY.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-1U-hoEpC.js → ratingDots.component-DG2nCpxT.js} +5 -5
- package/dist/chunks/{ratingDots.component-1U-hoEpC.js.map → ratingDots.component-DG2nCpxT.js.map} +1 -1
- package/dist/chunks/ratingDots.component-DJEDUD_9.js +2 -0
- package/dist/chunks/{ratingDots.component-qbroWQhZ.js.map → ratingDots.component-DJEDUD_9.js.map} +1 -1
- package/dist/chunks/render-strategy-C80bGq2n.js +2 -0
- package/dist/chunks/{render-strategy-BmWbSgqh.js.map → render-strategy-C80bGq2n.js.map} +1 -1
- package/dist/chunks/{render-strategy-C8hwN3bm.js → render-strategy-DN75XQJB.js} +2 -2
- package/dist/chunks/{render-strategy-C8hwN3bm.js.map → render-strategy-DN75XQJB.js.map} +1 -1
- package/dist/chunks/select.component-Bmop2_tX.js +2 -0
- package/dist/chunks/{select.component-C_Fs6Xeq.js.map → select.component-Bmop2_tX.js.map} +1 -1
- package/dist/chunks/{select.component-5vAzdrZa.js → select.component-DyXwbDeO.js} +46 -46
- package/dist/chunks/{select.component-5vAzdrZa.js.map → select.component-DyXwbDeO.js.map} +1 -1
- package/dist/chunks/{sortableList.component-BX3EvpRM.js → sortableList.component-CbZAQrKl.js} +4 -4
- package/dist/chunks/{sortableList.component-BX3EvpRM.js.map → sortableList.component-CbZAQrKl.js.map} +1 -1
- package/dist/chunks/{sortableList.component-B_O-YB3I.js → sortableList.component-b2t_K7ho.js} +2 -2
- package/dist/chunks/{sortableList.component-B_O-YB3I.js.map → sortableList.component-b2t_K7ho.js.map} +1 -1
- package/dist/chunks/{spinner.component-lHj69hIF.js → spinner.component-B1vU-FCd.js} +4 -4
- package/dist/chunks/{spinner.component-lHj69hIF.js.map → spinner.component-B1vU-FCd.js.map} +1 -1
- package/dist/chunks/spinner.component-CjQb7JjK.js +2 -0
- package/dist/chunks/{spinner.component-CzhcJOwX.js.map → spinner.component-CjQb7JjK.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-BvHm6hKS.js → styledAvatar.types-D8VWyELN.js} +2 -2
- package/dist/chunks/{styledAvatar.types-BvHm6hKS.js.map → styledAvatar.types-D8VWyELN.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-B9SHiNfg.js → styledAvatar.types-DstfmllC.js} +2 -2
- package/dist/chunks/{styledAvatar.types-B9SHiNfg.js.map → styledAvatar.types-DstfmllC.js.map} +1 -1
- package/dist/chunks/switch.component-ARZzuYrq.js +2 -0
- package/dist/chunks/{switch.component-B3Gfgft9.js.map → switch.component-ARZzuYrq.js.map} +1 -1
- package/dist/chunks/{switch.component-DjOGsCIQ.js → switch.component-DO9fxk_-.js} +22 -22
- package/dist/chunks/{switch.component-DjOGsCIQ.js.map → switch.component-DO9fxk_-.js.map} +1 -1
- package/dist/chunks/{tabs.component-Ca9jVGv0.js → tabs.component-BWTDtLWN.js} +55 -55
- package/dist/chunks/{tabs.component-Ca9jVGv0.js.map → tabs.component-BWTDtLWN.js.map} +1 -1
- package/dist/chunks/tabs.component-DRpNF8p-.js +2 -0
- package/dist/chunks/{tabs.component-pl0kO5_M.js.map → tabs.component-DRpNF8p-.js.map} +1 -1
- package/dist/chunks/tagBlock.component-Bahf1v33.js +2 -0
- package/dist/chunks/{tagBlock.component-C2DAQrQE.js.map → tagBlock.component-Bahf1v33.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-CnPbyaGH.js → tagBlock.component-C3BrjwNJ.js} +16 -17
- package/dist/chunks/{tagBlock.component-CnPbyaGH.js.map → tagBlock.component-C3BrjwNJ.js.map} +1 -1
- package/dist/chunks/textInput.component-DDo9eUvp.js +2 -0
- package/dist/chunks/{textInput.component-D-galjwy.js.map → textInput.component-DDo9eUvp.js.map} +1 -1
- package/dist/chunks/{textInput.component-DXtEgbkr.js → textInput.component-LPGbDHwZ.js} +14 -14
- package/dist/chunks/{textInput.component-DXtEgbkr.js.map → textInput.component-LPGbDHwZ.js.map} +1 -1
- package/dist/chunks/textarea.component-5Ou5g_MJ.js +2 -0
- package/dist/chunks/{textarea.component-DmxMuMCU.js.map → textarea.component-5Ou5g_MJ.js.map} +1 -1
- package/dist/chunks/{textarea.component-Do0zHf-1.js → textarea.component-ClYqhTJX.js} +12 -12
- package/dist/chunks/{textarea.component-Do0zHf-1.js.map → textarea.component-ClYqhTJX.js.map} +1 -1
- package/dist/chunks/theme.provider-DWJTtjw5.js +26 -0
- package/dist/chunks/theme.provider-DWJTtjw5.js.map +1 -0
- package/dist/chunks/{theme.provider-Dj4pZ815.js → theme.provider-vZgSb-q5.js} +1827 -1699
- package/dist/chunks/theme.provider-vZgSb-q5.js.map +1 -0
- package/dist/chunks/{timePicker.component-DTs3MjOx.js → timePicker.component-AgnrqtFu.js} +4 -4
- package/dist/chunks/{timePicker.component-DTs3MjOx.js.map → timePicker.component-AgnrqtFu.js.map} +1 -1
- package/dist/chunks/{timePicker.component-CophNE3d.js → timePicker.component-Bx0fHgrN.js} +2 -2
- package/dist/chunks/{timePicker.component-CophNE3d.js.map → timePicker.component-Bx0fHgrN.js.map} +1 -1
- package/dist/chunks/{timeRange.component-C5wSyUiZ.js → timeRange.component-B3Nv-nLB.js} +2 -2
- package/dist/chunks/{timeRange.component-C5wSyUiZ.js.map → timeRange.component-B3Nv-nLB.js.map} +1 -1
- package/dist/chunks/{timeRange.component-C5dt8sZn.js → timeRange.component-C14RiUcS.js} +2 -2
- package/dist/chunks/{timeRange.component-C5dt8sZn.js.map → timeRange.component-C14RiUcS.js.map} +1 -1
- package/dist/chunks/timestamp.component-DEx0cUkA.js +2 -0
- package/dist/chunks/{timestamp.component-rTLrzBPA.js.map → timestamp.component-DEx0cUkA.js.map} +1 -1
- package/dist/chunks/timestamp.component-Kxi_bKp1.js +53 -0
- package/dist/chunks/{timestamp.component-BPU8bf7p.js.map → timestamp.component-Kxi_bKp1.js.map} +1 -1
- package/dist/chunks/toaster.records-CGym-iT-.js +2 -0
- package/dist/chunks/{toaster.records-BJo0j1IZ.js.map → toaster.records-CGym-iT-.js.map} +1 -1
- package/dist/chunks/{toaster.records-BGfpUOVt.js → toaster.records-CKeu_PyD.js} +21 -22
- package/dist/chunks/{toaster.records-BGfpUOVt.js.map → toaster.records-CKeu_PyD.js.map} +1 -1
- package/dist/chunks/{typography.records-C6G_65b4.js → typography.records-BeoK0Uyj.js} +2 -2
- package/dist/chunks/{typography.records-C6G_65b4.js.map → typography.records-BeoK0Uyj.js.map} +1 -1
- package/dist/chunks/{typography.records-jnjWfTLS.js → typography.records-XkUlmiSk.js} +2 -2
- package/dist/chunks/{typography.records-jnjWfTLS.js.map → typography.records-XkUlmiSk.js.map} +1 -1
- package/dist/chunks/{use-field-context-B_G7Yziz.js → use-field-context-1gfMkjvo.js} +2 -2
- package/dist/chunks/{use-field-context-B_G7Yziz.js.map → use-field-context-1gfMkjvo.js.map} +1 -1
- package/dist/chunks/use-field-context-DnTe9gdc.js +2 -0
- package/dist/chunks/{use-field-context--wBJQY1R.js.map → use-field-context-DnTe9gdc.js.map} +1 -1
- package/dist/chunks/{withFormControl-BDuV97Vb.js → withFormControl-DfqMqkSU.js} +39 -39
- package/dist/chunks/{withFormControl-BDuV97Vb.js.map → withFormControl-DfqMqkSU.js.map} +1 -1
- package/dist/chunks/withFormControl-kyGjRFza.js +2 -0
- package/dist/chunks/{withFormControl-DpytztWF.js.map → withFormControl-kyGjRFza.js.map} +1 -1
- 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 +146 -147
- 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 +89 -92
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/index.js +111 -114
- 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/TimePicker/timePicker.recipe.d.ts +1 -1
- package/dist/types/components/Tooltip/tooltip.component.d.ts +5 -6
- package/dist/types/theme/tokens/shadows/shadows.config.d.ts +3 -3
- package/dist/types/theme/tokens/sizes/sizes.config.d.ts +2 -2
- package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +11 -11
- package/package.json +1 -1
- package/dist/chunks/alert.types-BvnpOwve.js +0 -2
- package/dist/chunks/attr-BMs6szZx.js +0 -2
- package/dist/chunks/attr-BMs6szZx.js.map +0 -1
- package/dist/chunks/attr-sm10PXOd.js +0 -5
- package/dist/chunks/attr-sm10PXOd.js.map +0 -1
- package/dist/chunks/avatar.component-y7gTa1dV.js +0 -2
- package/dist/chunks/characterCounter.component-4T8NHb11.js +0 -2
- package/dist/chunks/checkbox.component-CFuJaYmY.js +0 -2
- package/dist/chunks/checkbox.records-B7refmmT.js +0 -2
- package/dist/chunks/conversationCard.component-CBrw3VnT.js +0 -2
- package/dist/chunks/datePicker.component-u52NQcza.js +0 -15
- package/dist/chunks/dialog-trigger-B5NK0lr-.js +0 -2
- package/dist/chunks/group-Cv7AQw1b.js +0 -2
- package/dist/chunks/heading.component-BXcyhAEU.js +0 -12
- package/dist/chunks/heading.component-BXcyhAEU.js.map +0 -1
- package/dist/chunks/heading.component-ZD_UVarx.js +0 -2
- package/dist/chunks/heading.component-ZD_UVarx.js.map +0 -1
- package/dist/chunks/icon-button-DTZOklQ9.js +0 -119
- package/dist/chunks/icon-button-DTZOklQ9.js.map +0 -1
- package/dist/chunks/icon-button-DtjZ-SdQ.js +0 -2
- package/dist/chunks/icon-button-DtjZ-SdQ.js.map +0 -1
- package/dist/chunks/icon.component-C0e0UGBw.js +0 -2
- package/dist/chunks/icon.component-C0e0UGBw.js.map +0 -1
- package/dist/chunks/icon.component-DGNCL1Yc.js +0 -42
- package/dist/chunks/icon.component-DGNCL1Yc.js.map +0 -1
- package/dist/chunks/index-BBZxmcrY.js +0 -2
- package/dist/chunks/index-BBZxmcrY.js.map +0 -1
- package/dist/chunks/index-BDnnTdaJ.js +0 -2
- package/dist/chunks/index-BGwwyukg.js +0 -2
- package/dist/chunks/index-BGwwyukg.js.map +0 -1
- package/dist/chunks/index-BNYygzo-.js +0 -376
- package/dist/chunks/index-BNYygzo-.js.map +0 -1
- package/dist/chunks/index-BYf7SZUC.js +0 -2
- package/dist/chunks/index-COoMV9Mh.js +0 -2
- package/dist/chunks/index-CYk-7wwG.js +0 -1018
- package/dist/chunks/index-CYk-7wwG.js.map +0 -1
- package/dist/chunks/index-CZ42b9rT.js +0 -3
- package/dist/chunks/index-CZ42b9rT.js.map +0 -1
- package/dist/chunks/index-CZz7hHWb.js +0 -2
- package/dist/chunks/index-CZz7hHWb.js.map +0 -1
- package/dist/chunks/index-DUHFrLMI.js +0 -389
- package/dist/chunks/index-DUHFrLMI.js.map +0 -1
- package/dist/chunks/index-Dyxhds_1.js +0 -2
- package/dist/chunks/index-MlhL0PDC.js +0 -2
- package/dist/chunks/index-UWtj4ULm.js +0 -8
- package/dist/chunks/index-ZaGEDS_0.js +0 -2
- package/dist/chunks/index-j7W9Hyzx.js +0 -322
- package/dist/chunks/index-j7W9Hyzx.js.map +0 -1
- package/dist/chunks/menu.component-CiZzHc2D.js +0 -2
- package/dist/chunks/modal.types-9-Bz6ybC.js +0 -2
- package/dist/chunks/pinInput.types-B-RchRm_.js +0 -2
- package/dist/chunks/popover-80QH8HEJ.js +0 -2
- package/dist/chunks/popover-80QH8HEJ.js.map +0 -1
- package/dist/chunks/popover-B9rNOU0g.js +0 -110
- package/dist/chunks/popover-B9rNOU0g.js.map +0 -1
- package/dist/chunks/popover-root-provider-CeLLpesI.js +0 -43
- package/dist/chunks/popover-root-provider-CeLLpesI.js.map +0 -1
- package/dist/chunks/popover-root-provider-DAMDDAHQ.js +0 -2
- package/dist/chunks/popover-root-provider-DAMDDAHQ.js.map +0 -1
- package/dist/chunks/popover.component-A8In7d2B.js +0 -2
- package/dist/chunks/popover.component-A8In7d2B.js.map +0 -1
- package/dist/chunks/popover.component-BR8W3Jb8.js +0 -322
- package/dist/chunks/popover.component-BR8W3Jb8.js.map +0 -1
- package/dist/chunks/popover.recipe--gMRcQTS.js +0 -479
- package/dist/chunks/popover.recipe--gMRcQTS.js.map +0 -1
- package/dist/chunks/popover.recipe-DLeyokHo.js +0 -2
- package/dist/chunks/popover.recipe-DLeyokHo.js.map +0 -1
- package/dist/chunks/radio.records-DLffZyeq.js +0 -2
- package/dist/chunks/radioGroup.component-CZwrCppd.js +0 -2
- package/dist/chunks/ratingDots.component-qbroWQhZ.js +0 -2
- package/dist/chunks/render-strategy-BmWbSgqh.js +0 -2
- package/dist/chunks/select.component-C_Fs6Xeq.js +0 -2
- package/dist/chunks/spinner-BWqSIW6m.js +0 -8
- package/dist/chunks/spinner-BWqSIW6m.js.map +0 -1
- package/dist/chunks/spinner-BnpL14kK.js +0 -2
- package/dist/chunks/spinner-BnpL14kK.js.map +0 -1
- package/dist/chunks/spinner.component-CzhcJOwX.js +0 -2
- package/dist/chunks/switch.component-B3Gfgft9.js +0 -2
- package/dist/chunks/tabs.component-pl0kO5_M.js +0 -2
- package/dist/chunks/tagBlock.component-C2DAQrQE.js +0 -2
- package/dist/chunks/text.component-CnnBhB3c.js +0 -2
- package/dist/chunks/text.component-CnnBhB3c.js.map +0 -1
- package/dist/chunks/text.component-Cpruo7MB.js +0 -12
- package/dist/chunks/text.component-Cpruo7MB.js.map +0 -1
- package/dist/chunks/textInput.component-D-galjwy.js +0 -2
- package/dist/chunks/textarea.component-DmxMuMCU.js +0 -2
- package/dist/chunks/theme.provider-CIJGn9Kh.js +0 -26
- package/dist/chunks/theme.provider-CIJGn9Kh.js.map +0 -1
- package/dist/chunks/theme.provider-Dj4pZ815.js.map +0 -1
- package/dist/chunks/timestamp.component-BPU8bf7p.js +0 -54
- package/dist/chunks/timestamp.component-rTLrzBPA.js +0 -2
- package/dist/chunks/toaster.records-BJo0j1IZ.js +0 -2
- package/dist/chunks/tooltip.component-CwrXAVEq.js +0 -2
- package/dist/chunks/tooltip.component-CwrXAVEq.js.map +0 -1
- package/dist/chunks/tooltip.component-DgOzrNG3.js +0 -758
- package/dist/chunks/tooltip.component-DgOzrNG3.js.map +0 -1
- package/dist/chunks/typography-Cqrokog3.js.map +0 -1
- package/dist/chunks/typography-CtiaGoJG.js +0 -2
- package/dist/chunks/typography-CtiaGoJG.js.map +0 -1
- package/dist/chunks/use-field-context--wBJQY1R.js +0 -2
- package/dist/chunks/use-locale-context-BdqHZ8L8.js +0 -22
- package/dist/chunks/use-locale-context-BdqHZ8L8.js.map +0 -1
- package/dist/chunks/use-locale-context-D-agiW5E.js +0 -2301
- package/dist/chunks/use-locale-context-D-agiW5E.js.map +0 -1
- package/dist/chunks/withFormControl-DpytztWF.js +0 -2
- package/dist/chunks/withTruncation-DPbMF-jg.js +0 -2
- package/dist/chunks/withTruncation-DPbMF-jg.js.map +0 -1
- package/dist/chunks/withTruncation-DoQriKuH.js +0 -67
- package/dist/chunks/withTruncation-DoQriKuH.js.map +0 -1
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import { r as L, a2 as I, Z as V, a3 as j, R as B, a4 as A, D as O, a5 as C, a6 as F, W as z, l as T, a1 as D, a7 as N, a8 as H, a9 as K, aa as $, ab as Z } from "./index-CYk-7wwG.js";
|
|
2
|
-
function G(e) {
|
|
3
|
-
const t = {
|
|
4
|
-
each(n) {
|
|
5
|
-
for (let r = 0; r < e.frames?.length; r += 1) {
|
|
6
|
-
const s = e.frames[r];
|
|
7
|
-
s && n(s);
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
addEventListener(n, r, s) {
|
|
11
|
-
return t.each((i) => {
|
|
12
|
-
try {
|
|
13
|
-
i.document.addEventListener(n, r, s);
|
|
14
|
-
} catch {
|
|
15
|
-
}
|
|
16
|
-
}), () => {
|
|
17
|
-
try {
|
|
18
|
-
t.removeEventListener(n, r, s);
|
|
19
|
-
} catch {
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
},
|
|
23
|
-
removeEventListener(n, r, s) {
|
|
24
|
-
t.each((i) => {
|
|
25
|
-
try {
|
|
26
|
-
i.document.removeEventListener(n, r, s);
|
|
27
|
-
} catch {
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
return t;
|
|
33
|
-
}
|
|
34
|
-
function J(e) {
|
|
35
|
-
const t = e.frameElement != null ? e.parent : null;
|
|
36
|
-
return {
|
|
37
|
-
addEventListener: (n, r, s) => {
|
|
38
|
-
try {
|
|
39
|
-
t?.addEventListener(n, r, s);
|
|
40
|
-
} catch {
|
|
41
|
-
}
|
|
42
|
-
return () => {
|
|
43
|
-
try {
|
|
44
|
-
t?.removeEventListener(n, r, s);
|
|
45
|
-
} catch {
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
},
|
|
49
|
-
removeEventListener: (n, r, s) => {
|
|
50
|
-
try {
|
|
51
|
-
t?.removeEventListener(n, r, s);
|
|
52
|
-
} catch {
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
var W = "pointerdown.outside", M = "focus.outside";
|
|
58
|
-
function Q(e) {
|
|
59
|
-
for (const t of e)
|
|
60
|
-
if (T(t) && F(t)) return !0;
|
|
61
|
-
return !1;
|
|
62
|
-
}
|
|
63
|
-
var q = (e) => "clientY" in e;
|
|
64
|
-
function ee(e, t) {
|
|
65
|
-
if (!q(t) || !e) return !1;
|
|
66
|
-
const n = e.getBoundingClientRect();
|
|
67
|
-
return n.width === 0 || n.height === 0 ? !1 : n.top <= t.clientY && t.clientY <= n.top + n.height && n.left <= t.clientX && t.clientX <= n.left + n.width;
|
|
68
|
-
}
|
|
69
|
-
function te(e, t) {
|
|
70
|
-
return e.y <= t.y && t.y <= e.y + e.height && e.x <= t.x && t.x <= e.x + e.width;
|
|
71
|
-
}
|
|
72
|
-
function R(e, t) {
|
|
73
|
-
if (!t || !q(e)) return !1;
|
|
74
|
-
const n = t.scrollHeight > t.clientHeight, r = n && e.clientX > t.offsetLeft + t.clientWidth, s = t.scrollWidth > t.clientWidth, i = s && e.clientY > t.offsetTop + t.clientHeight, y = {
|
|
75
|
-
x: t.offsetLeft,
|
|
76
|
-
y: t.offsetTop,
|
|
77
|
-
width: t.clientWidth + (n ? 16 : 0),
|
|
78
|
-
height: t.clientHeight + (s ? 16 : 0)
|
|
79
|
-
}, h = {
|
|
80
|
-
x: e.clientX,
|
|
81
|
-
y: e.clientY
|
|
82
|
-
};
|
|
83
|
-
return te(y, h) ? r || i : !1;
|
|
84
|
-
}
|
|
85
|
-
function ne(e, t) {
|
|
86
|
-
const { exclude: n, onFocusOutside: r, onPointerDownOutside: s, onInteractOutside: i, defer: y } = t;
|
|
87
|
-
if (!e) return;
|
|
88
|
-
const h = I(e), w = V(e), p = G(w), b = J(w);
|
|
89
|
-
function P(a, d) {
|
|
90
|
-
if (!T(d) || !d.isConnected || D(e, d) || ee(e, a)) return !1;
|
|
91
|
-
const u = h.querySelector(`[aria-controls="${e.id}"]`);
|
|
92
|
-
if (u) {
|
|
93
|
-
const g = N(u);
|
|
94
|
-
if (R(a, g)) return !1;
|
|
95
|
-
}
|
|
96
|
-
const v = N(e);
|
|
97
|
-
return R(a, v) ? !1 : !n?.(d);
|
|
98
|
-
}
|
|
99
|
-
const E = /* @__PURE__ */ new Set(), o = j(e?.getRootNode());
|
|
100
|
-
function l(a) {
|
|
101
|
-
function d(u) {
|
|
102
|
-
const v = y && !A() ? L : (x) => x(), g = u ?? a, S = g?.composedPath?.() ?? [g?.target];
|
|
103
|
-
v(() => {
|
|
104
|
-
const x = o ? S[0] : O(a);
|
|
105
|
-
if (!(!e || !P(a, x))) {
|
|
106
|
-
if (s || i) {
|
|
107
|
-
const U = C(s, i);
|
|
108
|
-
e.addEventListener(W, U, { once: !0 });
|
|
109
|
-
}
|
|
110
|
-
Y(e, W, {
|
|
111
|
-
bubbles: !1,
|
|
112
|
-
cancelable: !0,
|
|
113
|
-
detail: {
|
|
114
|
-
originalEvent: g,
|
|
115
|
-
contextmenu: z(g),
|
|
116
|
-
focusable: Q(S),
|
|
117
|
-
target: x
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
a.pointerType === "touch" ? (E.forEach((u) => u()), E.add(B(h, "click", d, { once: !0 })), E.add(b.addEventListener("click", d, { once: !0 })), E.add(p.addEventListener("click", d, { once: !0 }))) : d();
|
|
124
|
-
}
|
|
125
|
-
const f = /* @__PURE__ */ new Set(), k = setTimeout(() => {
|
|
126
|
-
f.add(B(h, "pointerdown", l, !0)), f.add(b.addEventListener("pointerdown", l, !0)), f.add(p.addEventListener("pointerdown", l, !0));
|
|
127
|
-
}, 0);
|
|
128
|
-
function m(a) {
|
|
129
|
-
(y ? L : (u) => u())(() => {
|
|
130
|
-
const u = O(a);
|
|
131
|
-
if (!(!e || !P(a, u))) {
|
|
132
|
-
if (r || i) {
|
|
133
|
-
const v = C(r, i);
|
|
134
|
-
e.addEventListener(M, v, { once: !0 });
|
|
135
|
-
}
|
|
136
|
-
Y(e, M, {
|
|
137
|
-
bubbles: !1,
|
|
138
|
-
cancelable: !0,
|
|
139
|
-
detail: {
|
|
140
|
-
originalEvent: a,
|
|
141
|
-
contextmenu: !1,
|
|
142
|
-
focusable: F(u),
|
|
143
|
-
target: u
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
return A() || (f.add(B(h, "focusin", m, !0)), f.add(b.addEventListener("focusin", m, !0)), f.add(p.addEventListener("focusin", m, !0))), () => {
|
|
150
|
-
clearTimeout(k), E.forEach((a) => a()), f.forEach((a) => a());
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
function re(e, t) {
|
|
154
|
-
const { defer: n } = t, r = n ? L : (i) => i(), s = [];
|
|
155
|
-
return s.push(
|
|
156
|
-
r(() => {
|
|
157
|
-
const i = typeof e == "function" ? e() : e;
|
|
158
|
-
s.push(ne(i, t));
|
|
159
|
-
})
|
|
160
|
-
), () => {
|
|
161
|
-
s.forEach((i) => i?.());
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
function Y(e, t, n) {
|
|
165
|
-
const r = e.ownerDocument.defaultView || window, s = new r.CustomEvent(t, n);
|
|
166
|
-
return e.dispatchEvent(s);
|
|
167
|
-
}
|
|
168
|
-
function se(e, t) {
|
|
169
|
-
const n = (r) => {
|
|
170
|
-
r.key === "Escape" && (r.isComposing || t?.(r));
|
|
171
|
-
};
|
|
172
|
-
return B(I(e), "keydown", n, { capture: !0 });
|
|
173
|
-
}
|
|
174
|
-
var c = {
|
|
175
|
-
layers: [],
|
|
176
|
-
branches: [],
|
|
177
|
-
count() {
|
|
178
|
-
return this.layers.length;
|
|
179
|
-
},
|
|
180
|
-
pointerBlockingLayers() {
|
|
181
|
-
return this.layers.filter((e) => e.pointerBlocking);
|
|
182
|
-
},
|
|
183
|
-
topMostPointerBlockingLayer() {
|
|
184
|
-
return [...this.pointerBlockingLayers()].slice(-1)[0];
|
|
185
|
-
},
|
|
186
|
-
hasPointerBlockingLayer() {
|
|
187
|
-
return this.pointerBlockingLayers().length > 0;
|
|
188
|
-
},
|
|
189
|
-
isBelowPointerBlockingLayer(e) {
|
|
190
|
-
const t = this.indexOf(e), n = this.topMostPointerBlockingLayer() ? this.indexOf(this.topMostPointerBlockingLayer()?.node) : -1;
|
|
191
|
-
return t < n;
|
|
192
|
-
},
|
|
193
|
-
isTopMost(e) {
|
|
194
|
-
return this.layers[this.count() - 1]?.node === e;
|
|
195
|
-
},
|
|
196
|
-
getNestedLayers(e) {
|
|
197
|
-
return Array.from(this.layers).slice(this.indexOf(e) + 1);
|
|
198
|
-
},
|
|
199
|
-
isInNestedLayer(e, t) {
|
|
200
|
-
return this.getNestedLayers(e).some((n) => D(n.node, t));
|
|
201
|
-
},
|
|
202
|
-
isInBranch(e) {
|
|
203
|
-
return Array.from(this.branches).some((t) => D(t, e));
|
|
204
|
-
},
|
|
205
|
-
add(e) {
|
|
206
|
-
const t = this.layers.push(e);
|
|
207
|
-
e.node.style.setProperty("--layer-index", `${t}`);
|
|
208
|
-
},
|
|
209
|
-
addBranch(e) {
|
|
210
|
-
this.branches.push(e);
|
|
211
|
-
},
|
|
212
|
-
remove(e) {
|
|
213
|
-
const t = this.indexOf(e);
|
|
214
|
-
t < 0 || (t < this.count() - 1 && this.getNestedLayers(e).forEach((r) => r.dismiss()), this.layers.splice(t, 1), e.style.removeProperty("--layer-index"));
|
|
215
|
-
},
|
|
216
|
-
removeBranch(e) {
|
|
217
|
-
const t = this.branches.indexOf(e);
|
|
218
|
-
t >= 0 && this.branches.splice(t, 1);
|
|
219
|
-
},
|
|
220
|
-
indexOf(e) {
|
|
221
|
-
return this.layers.findIndex((t) => t.node === e);
|
|
222
|
-
},
|
|
223
|
-
dismiss(e) {
|
|
224
|
-
this.layers[this.indexOf(e)]?.dismiss();
|
|
225
|
-
},
|
|
226
|
-
clear() {
|
|
227
|
-
this.remove(this.layers[0].node);
|
|
228
|
-
}
|
|
229
|
-
}, _;
|
|
230
|
-
function X() {
|
|
231
|
-
c.layers.forEach(({ node: e }) => {
|
|
232
|
-
e.style.pointerEvents = c.isBelowPointerBlockingLayer(e) ? "none" : "auto";
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
function ie(e) {
|
|
236
|
-
e.style.pointerEvents = "";
|
|
237
|
-
}
|
|
238
|
-
function oe(e, t) {
|
|
239
|
-
const n = I(e), r = [];
|
|
240
|
-
if (c.hasPointerBlockingLayer() && !n.body.hasAttribute("data-inert") && (_ = document.body.style.pointerEvents, queueMicrotask(() => {
|
|
241
|
-
n.body.style.pointerEvents = "none", n.body.setAttribute("data-inert", "");
|
|
242
|
-
})), t) {
|
|
243
|
-
const s = $(t, (i) => {
|
|
244
|
-
r.push(Z(i, { pointerEvents: "auto" }));
|
|
245
|
-
});
|
|
246
|
-
r.push(s);
|
|
247
|
-
}
|
|
248
|
-
return () => {
|
|
249
|
-
c.hasPointerBlockingLayer() || (queueMicrotask(() => {
|
|
250
|
-
n.body.style.pointerEvents = _, n.body.removeAttribute("data-inert"), n.body.style.length === 0 && n.body.removeAttribute("style");
|
|
251
|
-
}), r.forEach((s) => s()));
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
function ae(e, t) {
|
|
255
|
-
const { warnOnMissingNode: n = !0 } = t;
|
|
256
|
-
if (n && !e) {
|
|
257
|
-
K("[@zag-js/dismissable] node is `null` or `undefined`");
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
if (!e)
|
|
261
|
-
return;
|
|
262
|
-
const { onDismiss: r, pointerBlocking: s, exclude: i, debug: y } = t, h = { dismiss: r, node: e, pointerBlocking: s };
|
|
263
|
-
c.add(h), X();
|
|
264
|
-
function w(o) {
|
|
265
|
-
const l = O(o.detail.originalEvent);
|
|
266
|
-
c.isBelowPointerBlockingLayer(e) || c.isInBranch(l) || (t.onPointerDownOutside?.(o), t.onInteractOutside?.(o), !o.defaultPrevented && (y && console.log("onPointerDownOutside:", o.detail.originalEvent), r?.()));
|
|
267
|
-
}
|
|
268
|
-
function p(o) {
|
|
269
|
-
const l = O(o.detail.originalEvent);
|
|
270
|
-
c.isInBranch(l) || (t.onFocusOutside?.(o), t.onInteractOutside?.(o), !o.defaultPrevented && (y && console.log("onFocusOutside:", o.detail.originalEvent), r?.()));
|
|
271
|
-
}
|
|
272
|
-
function b(o) {
|
|
273
|
-
c.isTopMost(e) && (t.onEscapeKeyDown?.(o), !o.defaultPrevented && r && (o.preventDefault(), r()));
|
|
274
|
-
}
|
|
275
|
-
function P(o) {
|
|
276
|
-
if (!e) return !1;
|
|
277
|
-
const l = typeof i == "function" ? i() : i, f = Array.isArray(l) ? l : [l], k = t.persistentElements?.map((m) => m()).filter(T);
|
|
278
|
-
return k && f.push(...k), f.some((m) => D(m, o)) || c.isInNestedLayer(e, o);
|
|
279
|
-
}
|
|
280
|
-
const E = [
|
|
281
|
-
s ? oe(e, t.persistentElements) : void 0,
|
|
282
|
-
se(e, b),
|
|
283
|
-
re(e, { exclude: P, onFocusOutside: p, onPointerDownOutside: w, defer: t.defer })
|
|
284
|
-
];
|
|
285
|
-
return () => {
|
|
286
|
-
c.remove(e), X(), ie(e), E.forEach((o) => o?.());
|
|
287
|
-
};
|
|
288
|
-
}
|
|
289
|
-
function ue(e, t) {
|
|
290
|
-
const { defer: n } = t, r = n ? L : (i) => i(), s = [];
|
|
291
|
-
return s.push(
|
|
292
|
-
r(() => {
|
|
293
|
-
const i = H(e) ? e() : e;
|
|
294
|
-
s.push(ae(i, t));
|
|
295
|
-
})
|
|
296
|
-
), () => {
|
|
297
|
-
s.forEach((i) => i?.());
|
|
298
|
-
};
|
|
299
|
-
}
|
|
300
|
-
function le(e, t = {}) {
|
|
301
|
-
const { defer: n } = t, r = n ? L : (i) => i(), s = [];
|
|
302
|
-
return s.push(
|
|
303
|
-
r(() => {
|
|
304
|
-
const i = H(e) ? e() : e;
|
|
305
|
-
if (!i) {
|
|
306
|
-
K("[@zag-js/dismissable] branch node is `null` or `undefined`");
|
|
307
|
-
return;
|
|
308
|
-
}
|
|
309
|
-
c.addBranch(i), s.push(() => {
|
|
310
|
-
c.removeBranch(i);
|
|
311
|
-
});
|
|
312
|
-
})
|
|
313
|
-
), () => {
|
|
314
|
-
s.forEach((i) => i?.());
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
|
-
export {
|
|
318
|
-
le as a,
|
|
319
|
-
re as b,
|
|
320
|
-
ue as t
|
|
321
|
-
};
|
|
322
|
-
//# sourceMappingURL=index-j7W9Hyzx.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-j7W9Hyzx.js","sources":["../../node_modules/@zag-js/interact-outside/dist/index.mjs","../../node_modules/@zag-js/dismissable/dist/index.mjs"],"sourcesContent":["import { raf, getDocument, getWindow, isShadowRoot, addDomEvent, isTouchDevice, getEventTarget, isFocusable, isContextMenuEvent, isHTMLElement, contains, getNearestOverflowAncestor } from '@zag-js/dom-query';\nimport { callAll } from '@zag-js/utils';\n\n// src/index.ts\n\n// src/frame-utils.ts\nfunction getWindowFrames(win) {\n const frames = {\n each(cb) {\n for (let i = 0; i < win.frames?.length; i += 1) {\n const frame = win.frames[i];\n if (frame) cb(frame);\n }\n },\n addEventListener(event, listener, options) {\n frames.each((frame) => {\n try {\n frame.document.addEventListener(event, listener, options);\n } catch {\n }\n });\n return () => {\n try {\n frames.removeEventListener(event, listener, options);\n } catch {\n }\n };\n },\n removeEventListener(event, listener, options) {\n frames.each((frame) => {\n try {\n frame.document.removeEventListener(event, listener, options);\n } catch {\n }\n });\n }\n };\n return frames;\n}\nfunction getParentWindow(win) {\n const parent = win.frameElement != null ? win.parent : null;\n return {\n addEventListener: (event, listener, options) => {\n try {\n parent?.addEventListener(event, listener, options);\n } catch {\n }\n return () => {\n try {\n parent?.removeEventListener(event, listener, options);\n } catch {\n }\n };\n },\n removeEventListener: (event, listener, options) => {\n try {\n parent?.removeEventListener(event, listener, options);\n } catch {\n }\n }\n };\n}\n\n// src/index.ts\nvar POINTER_OUTSIDE_EVENT = \"pointerdown.outside\";\nvar FOCUS_OUTSIDE_EVENT = \"focus.outside\";\nfunction isComposedPathFocusable(composedPath) {\n for (const node of composedPath) {\n if (isHTMLElement(node) && isFocusable(node)) return true;\n }\n return false;\n}\nvar isPointerEvent = (event) => \"clientY\" in event;\nfunction isEventPointWithin(node, event) {\n if (!isPointerEvent(event) || !node) return false;\n const rect = node.getBoundingClientRect();\n if (rect.width === 0 || rect.height === 0) return false;\n return rect.top <= event.clientY && event.clientY <= rect.top + rect.height && rect.left <= event.clientX && event.clientX <= rect.left + rect.width;\n}\nfunction isPointInRect(rect, point) {\n return rect.y <= point.y && point.y <= rect.y + rect.height && rect.x <= point.x && point.x <= rect.x + rect.width;\n}\nfunction isEventWithinScrollbar(event, ancestor) {\n if (!ancestor || !isPointerEvent(event)) return false;\n const isScrollableY = ancestor.scrollHeight > ancestor.clientHeight;\n const onScrollbarY = isScrollableY && event.clientX > ancestor.offsetLeft + ancestor.clientWidth;\n const isScrollableX = ancestor.scrollWidth > ancestor.clientWidth;\n const onScrollbarX = isScrollableX && event.clientY > ancestor.offsetTop + ancestor.clientHeight;\n const rect = {\n x: ancestor.offsetLeft,\n y: ancestor.offsetTop,\n width: ancestor.clientWidth + (isScrollableY ? 16 : 0),\n height: ancestor.clientHeight + (isScrollableX ? 16 : 0)\n };\n const point = {\n x: event.clientX,\n y: event.clientY\n };\n if (!isPointInRect(rect, point)) return false;\n return onScrollbarY || onScrollbarX;\n}\nfunction trackInteractOutsideImpl(node, options) {\n const { exclude, onFocusOutside, onPointerDownOutside, onInteractOutside, defer } = options;\n if (!node) return;\n const doc = getDocument(node);\n const win = getWindow(node);\n const frames = getWindowFrames(win);\n const parentWin = getParentWindow(win);\n function isEventOutside(event, target) {\n if (!isHTMLElement(target)) return false;\n if (!target.isConnected) return false;\n if (contains(node, target)) return false;\n if (isEventPointWithin(node, event)) return false;\n const triggerEl = doc.querySelector(`[aria-controls=\"${node.id}\"]`);\n if (triggerEl) {\n const triggerAncestor = getNearestOverflowAncestor(triggerEl);\n if (isEventWithinScrollbar(event, triggerAncestor)) return false;\n }\n const nodeAncestor = getNearestOverflowAncestor(node);\n if (isEventWithinScrollbar(event, nodeAncestor)) return false;\n return !exclude?.(target);\n }\n const pointerdownCleanups = /* @__PURE__ */ new Set();\n const isInShadowRoot = isShadowRoot(node?.getRootNode());\n function onPointerDown(event) {\n function handler(clickEvent) {\n const func = defer && !isTouchDevice() ? raf : (v) => v();\n const evt = clickEvent ?? event;\n const composedPath = evt?.composedPath?.() ?? [evt?.target];\n func(() => {\n const target = isInShadowRoot ? composedPath[0] : getEventTarget(event);\n if (!node || !isEventOutside(event, target)) return;\n if (onPointerDownOutside || onInteractOutside) {\n const handler2 = callAll(onPointerDownOutside, onInteractOutside);\n node.addEventListener(POINTER_OUTSIDE_EVENT, handler2, { once: true });\n }\n fireCustomEvent(node, POINTER_OUTSIDE_EVENT, {\n bubbles: false,\n cancelable: true,\n detail: {\n originalEvent: evt,\n contextmenu: isContextMenuEvent(evt),\n focusable: isComposedPathFocusable(composedPath),\n target\n }\n });\n });\n }\n if (event.pointerType === \"touch\") {\n pointerdownCleanups.forEach((fn) => fn());\n pointerdownCleanups.add(addDomEvent(doc, \"click\", handler, { once: true }));\n pointerdownCleanups.add(parentWin.addEventListener(\"click\", handler, { once: true }));\n pointerdownCleanups.add(frames.addEventListener(\"click\", handler, { once: true }));\n } else {\n handler();\n }\n }\n const cleanups = /* @__PURE__ */ new Set();\n const timer = setTimeout(() => {\n cleanups.add(addDomEvent(doc, \"pointerdown\", onPointerDown, true));\n cleanups.add(parentWin.addEventListener(\"pointerdown\", onPointerDown, true));\n cleanups.add(frames.addEventListener(\"pointerdown\", onPointerDown, true));\n }, 0);\n function onFocusin(event) {\n const func = defer ? raf : (v) => v();\n func(() => {\n const target = getEventTarget(event);\n if (!node || !isEventOutside(event, target)) return;\n if (onFocusOutside || onInteractOutside) {\n const handler = callAll(onFocusOutside, onInteractOutside);\n node.addEventListener(FOCUS_OUTSIDE_EVENT, handler, { once: true });\n }\n fireCustomEvent(node, FOCUS_OUTSIDE_EVENT, {\n bubbles: false,\n cancelable: true,\n detail: {\n originalEvent: event,\n contextmenu: false,\n focusable: isFocusable(target),\n target\n }\n });\n });\n }\n if (!isTouchDevice()) {\n cleanups.add(addDomEvent(doc, \"focusin\", onFocusin, true));\n cleanups.add(parentWin.addEventListener(\"focusin\", onFocusin, true));\n cleanups.add(frames.addEventListener(\"focusin\", onFocusin, true));\n }\n return () => {\n clearTimeout(timer);\n pointerdownCleanups.forEach((fn) => fn());\n cleanups.forEach((fn) => fn());\n };\n}\nfunction trackInteractOutside(nodeOrFn, options) {\n const { defer } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = typeof nodeOrFn === \"function\" ? nodeOrFn() : nodeOrFn;\n cleanups.push(trackInteractOutsideImpl(node, options));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\nfunction fireCustomEvent(el, type, init) {\n const win = el.ownerDocument.defaultView || window;\n const event = new win.CustomEvent(type, init);\n return el.dispatchEvent(event);\n}\n\nexport { trackInteractOutside };\n","import { raf, contains, getDocument, waitForElements, setStyle, addDomEvent, getEventTarget, isHTMLElement } from '@zag-js/dom-query';\nimport { trackInteractOutside } from '@zag-js/interact-outside';\nimport { isFunction, warn } from '@zag-js/utils';\n\n// src/dismissable-layer.ts\nfunction trackEscapeKeydown(node, fn) {\n const handleKeyDown = (event) => {\n if (event.key !== \"Escape\") return;\n if (event.isComposing) return;\n fn?.(event);\n };\n return addDomEvent(getDocument(node), \"keydown\", handleKeyDown, { capture: true });\n}\nvar layerStack = {\n layers: [],\n branches: [],\n count() {\n return this.layers.length;\n },\n pointerBlockingLayers() {\n return this.layers.filter((layer) => layer.pointerBlocking);\n },\n topMostPointerBlockingLayer() {\n return [...this.pointerBlockingLayers()].slice(-1)[0];\n },\n hasPointerBlockingLayer() {\n return this.pointerBlockingLayers().length > 0;\n },\n isBelowPointerBlockingLayer(node) {\n const index = this.indexOf(node);\n const highestBlockingIndex = this.topMostPointerBlockingLayer() ? this.indexOf(this.topMostPointerBlockingLayer()?.node) : -1;\n return index < highestBlockingIndex;\n },\n isTopMost(node) {\n const layer = this.layers[this.count() - 1];\n return layer?.node === node;\n },\n getNestedLayers(node) {\n return Array.from(this.layers).slice(this.indexOf(node) + 1);\n },\n isInNestedLayer(node, target) {\n return this.getNestedLayers(node).some((layer) => contains(layer.node, target));\n },\n isInBranch(target) {\n return Array.from(this.branches).some((branch) => contains(branch, target));\n },\n add(layer) {\n const num = this.layers.push(layer);\n layer.node.style.setProperty(\"--layer-index\", `${num}`);\n },\n addBranch(node) {\n this.branches.push(node);\n },\n remove(node) {\n const index = this.indexOf(node);\n if (index < 0) return;\n if (index < this.count() - 1) {\n const _layers = this.getNestedLayers(node);\n _layers.forEach((layer) => layer.dismiss());\n }\n this.layers.splice(index, 1);\n node.style.removeProperty(\"--layer-index\");\n },\n removeBranch(node) {\n const index = this.branches.indexOf(node);\n if (index >= 0) this.branches.splice(index, 1);\n },\n indexOf(node) {\n return this.layers.findIndex((layer) => layer.node === node);\n },\n dismiss(node) {\n this.layers[this.indexOf(node)]?.dismiss();\n },\n clear() {\n this.remove(this.layers[0].node);\n }\n};\nvar originalBodyPointerEvents;\nfunction assignPointerEventToLayers() {\n layerStack.layers.forEach(({ node }) => {\n node.style.pointerEvents = layerStack.isBelowPointerBlockingLayer(node) ? \"none\" : \"auto\";\n });\n}\nfunction clearPointerEvent(node) {\n node.style.pointerEvents = \"\";\n}\nfunction disablePointerEventsOutside(node, persistentElements) {\n const doc = getDocument(node);\n const cleanups = [];\n if (layerStack.hasPointerBlockingLayer() && !doc.body.hasAttribute(\"data-inert\")) {\n originalBodyPointerEvents = document.body.style.pointerEvents;\n queueMicrotask(() => {\n doc.body.style.pointerEvents = \"none\";\n doc.body.setAttribute(\"data-inert\", \"\");\n });\n }\n if (persistentElements) {\n const persistedCleanup = waitForElements(persistentElements, (el) => {\n cleanups.push(setStyle(el, { pointerEvents: \"auto\" }));\n });\n cleanups.push(persistedCleanup);\n }\n return () => {\n if (layerStack.hasPointerBlockingLayer()) return;\n queueMicrotask(() => {\n doc.body.style.pointerEvents = originalBodyPointerEvents;\n doc.body.removeAttribute(\"data-inert\");\n if (doc.body.style.length === 0) doc.body.removeAttribute(\"style\");\n });\n cleanups.forEach((fn) => fn());\n };\n}\n\n// src/dismissable-layer.ts\nfunction trackDismissableElementImpl(node, options) {\n const { warnOnMissingNode = true } = options;\n if (warnOnMissingNode && !node) {\n warn(\"[@zag-js/dismissable] node is `null` or `undefined`\");\n return;\n }\n if (!node) {\n return;\n }\n const { onDismiss, pointerBlocking, exclude: excludeContainers, debug } = options;\n const layer = { dismiss: onDismiss, node, pointerBlocking };\n layerStack.add(layer);\n assignPointerEventToLayers();\n function onPointerDownOutside(event) {\n const target = getEventTarget(event.detail.originalEvent);\n if (layerStack.isBelowPointerBlockingLayer(node) || layerStack.isInBranch(target)) return;\n options.onPointerDownOutside?.(event);\n options.onInteractOutside?.(event);\n if (event.defaultPrevented) return;\n if (debug) {\n console.log(\"onPointerDownOutside:\", event.detail.originalEvent);\n }\n onDismiss?.();\n }\n function onFocusOutside(event) {\n const target = getEventTarget(event.detail.originalEvent);\n if (layerStack.isInBranch(target)) return;\n options.onFocusOutside?.(event);\n options.onInteractOutside?.(event);\n if (event.defaultPrevented) return;\n if (debug) {\n console.log(\"onFocusOutside:\", event.detail.originalEvent);\n }\n onDismiss?.();\n }\n function onEscapeKeyDown(event) {\n if (!layerStack.isTopMost(node)) return;\n options.onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }\n function exclude(target) {\n if (!node) return false;\n const containers = typeof excludeContainers === \"function\" ? excludeContainers() : excludeContainers;\n const _containers = Array.isArray(containers) ? containers : [containers];\n const persistentElements = options.persistentElements?.map((fn) => fn()).filter(isHTMLElement);\n if (persistentElements) _containers.push(...persistentElements);\n return _containers.some((node2) => contains(node2, target)) || layerStack.isInNestedLayer(node, target);\n }\n const cleanups = [\n pointerBlocking ? disablePointerEventsOutside(node, options.persistentElements) : void 0,\n trackEscapeKeydown(node, onEscapeKeyDown),\n trackInteractOutside(node, { exclude, onFocusOutside, onPointerDownOutside, defer: options.defer })\n ];\n return () => {\n layerStack.remove(node);\n assignPointerEventToLayers();\n clearPointerEvent(node);\n cleanups.forEach((fn) => fn?.());\n };\n}\nfunction trackDismissableElement(nodeOrFn, options) {\n const { defer } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = isFunction(nodeOrFn) ? nodeOrFn() : nodeOrFn;\n cleanups.push(trackDismissableElementImpl(node, options));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\nfunction trackDismissableBranch(nodeOrFn, options = {}) {\n const { defer } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = isFunction(nodeOrFn) ? nodeOrFn() : nodeOrFn;\n if (!node) {\n warn(\"[@zag-js/dismissable] branch node is `null` or `undefined`\");\n return;\n }\n layerStack.addBranch(node);\n cleanups.push(() => {\n layerStack.removeBranch(node);\n });\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\n\nexport { trackDismissableBranch, trackDismissableElement };\n"],"names":["getWindowFrames","win","frames","cb","i","frame","event","listener","options","getParentWindow","parent","POINTER_OUTSIDE_EVENT","FOCUS_OUTSIDE_EVENT","isComposedPathFocusable","composedPath","node","isHTMLElement","isFocusable","isPointerEvent","isEventPointWithin","rect","isPointInRect","point","isEventWithinScrollbar","ancestor","isScrollableY","onScrollbarY","isScrollableX","onScrollbarX","trackInteractOutsideImpl","exclude","onFocusOutside","onPointerDownOutside","onInteractOutside","defer","doc","getDocument","getWindow","parentWin","isEventOutside","target","contains","triggerEl","triggerAncestor","getNearestOverflowAncestor","nodeAncestor","pointerdownCleanups","isInShadowRoot","isShadowRoot","onPointerDown","handler","clickEvent","func","isTouchDevice","raf","v","evt","getEventTarget","handler2","callAll","fireCustomEvent","isContextMenuEvent","fn","addDomEvent","cleanups","timer","onFocusin","trackInteractOutside","nodeOrFn","el","type","init","trackEscapeKeydown","handleKeyDown","layerStack","layer","index","highestBlockingIndex","branch","num","originalBodyPointerEvents","assignPointerEventToLayers","clearPointerEvent","disablePointerEventsOutside","persistentElements","persistedCleanup","waitForElements","setStyle","trackDismissableElementImpl","warnOnMissingNode","warn","onDismiss","pointerBlocking","excludeContainers","debug","onEscapeKeyDown","containers","_containers","node2","trackDismissableElement","isFunction","trackDismissableBranch"],"mappings":";AAMA,SAASA,EAAgBC,GAAK;AAC5B,QAAMC,IAAS;AAAA,IACb,KAAKC,GAAI;AACP,eAASC,IAAI,GAAGA,IAAIH,EAAI,QAAQ,QAAQG,KAAK,GAAG;AAC9C,cAAMC,IAAQJ,EAAI,OAAOG,CAAC;AAC1B,QAAIC,KAAOF,EAAGE,CAAK;AAAA,MAC3B;AAAA,IACK;AAAA,IACD,iBAAiBC,GAAOC,GAAUC,GAAS;AACzC,aAAAN,EAAO,KAAK,CAACG,MAAU;AACrB,YAAI;AACF,UAAAA,EAAM,SAAS,iBAAiBC,GAAOC,GAAUC,CAAO;AAAA,QAClE,QAAgB;AAAA,QAChB;AAAA,MACA,CAAO,GACM,MAAM;AACX,YAAI;AACF,UAAAN,EAAO,oBAAoBI,GAAOC,GAAUC,CAAO;AAAA,QAC7D,QAAgB;AAAA,QAChB;AAAA,MACO;AAAA,IACF;AAAA,IACD,oBAAoBF,GAAOC,GAAUC,GAAS;AAC5C,MAAAN,EAAO,K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S;AAAA,IACPZ,EAAK,MAAM;AACT,YAAMrC,IAAOqF,EAAWhC,CAAQ,IAAIA,EAAU,IAAGA;AACjD,MAAAJ,EAAS,KAAKwB,GAA4BzE,GAAMP,CAAO,CAAC;AAAA,IACzD,CAAA;AAAA,EACF,GACM,MAAM;AACX,IAAAwD,EAAS,QAAQ,CAACF,MAAOA,IAAE,CAAI;AAAA,EAChC;AACH;AACA,SAASuC,GAAuBjC,GAAU5D,IAAU,IAAI;AACtD,QAAM,EAAE,OAAA0B,EAAK,IAAK1B,GACZ4C,IAAOlB,IAAQoB,IAAM,CAACC,MAAMA,EAAG,GAC/BS,IAAW,CAAE;AACnB,SAAAA,EAAS;AAAA,IACPZ,EAAK,MAAM;AACT,YAAMrC,IAAOqF,EAAWhC,CAAQ,IAAIA,EAAU,IAAGA;AACjD,UAAI,CAACrD,GAAM;AACT,QAAA2E,EAAK,4DAA4D;AACjE;AAAA,MACR;AACM,MAAAhB,EAAW,UAAU3D,CAAI,GACzBiD,EAAS,KAAK,MAAM;AAClB,QAAAU,EAAW,aAAa3D,CAAI;AAAA,MACpC,CAAO;AAAA,IACF,CAAA;AAAA,EACF,GACM,MAAM;AACX,IAAAiD,EAAS,QAAQ,CAACF,MAAOA,IAAE,CAAI;AAAA,EAChC;AACH;","x_google_ignoreList":[0,1]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-BjDatQAs.js"),u=require("react"),A=require("./button.component-Dd9AfGox.js"),Q=require("./icon.component-C0e0UGBw.js"),G=require("./text.component-CnnBhB3c.js"),k=require("./flex-D14H6HbP.js"),Be=require("./textInput.component-D-galjwy.js"),qe=require("./spinner.component-CzhcJOwX.js"),S=require("./box-Baq7UBls.js"),$e=require("./tooltip.component-CwrXAVEq.js"),U=require("./checkbox.component-CFuJaYmY.js"),o=require("./use-locale-context-BdqHZ8L8.js"),Fe=require("./create-slot-recipe-context-IwVIgtBt.js"),Le=require("./icons-CTpAjbC-.js"),D=require("./index-ZaGEDS_0.js"),d=require("./index-CZ42b9rT.js"),Ve=t=>t&&t.__esModule?t:{default:t},ze=Ve(u),[X,j]=o.createContext({name:"MenuContext",hookName:"useMenuContext",providerName:"<MenuProvider />",strict:!1}),Y=u.forwardRef((t,s)=>{const n=j(),r=d.mergeProps(n.getArrowProps(),t);return e.jsxRuntimeExports.jsx(o.ark.div,{...r,ref:s})});Y.displayName="MenuArrow";const Z=u.forwardRef((t,s)=>{const n=j(),r=d.mergeProps(n.getArrowTipProps(),t);return e.jsxRuntimeExports.jsx(o.ark.div,{...r,ref:s})});Z.displayName="MenuArrowTip";const[O,it]=o.createContext({name:"MenuItemContext",hookName:"useMenuItemContext",providerName:"<MenuItemProvider />"}),[ee,te]=o.createContext({name:"MenuOptionItemPropsContext",hookName:"useMenuOptionItemPropsContext",providerName:"<MenuOptionItemPropsProvider />"}),ne=u.forwardRef((t,s)=>{const[n,r]=o.createSplitProps()(t,["checked","closeOnSelect","disabled","onCheckedChange","value","valueText"]),i={...n,type:"checkbox"},l=j(),a=d.mergeProps(l.getOptionItemProps(i),r),x=l.getOptionItemState(i);return e.jsxRuntimeExports.jsx(ee,{value:i,children:e.jsxRuntimeExports.jsx(O,{value:x,children:e.jsxRuntimeExports.jsx(o.ark.div,{...a,ref:s})})})});ne.displayName="MenuCheckboxItem";const se=u.forwardRef((t,s)=>{const n=j(),r=o.usePresenceContext(),i=d.mergeProps(n.getContentProps(),r.getPresenceProps(),t);return r.unmounted?null:e.jsxRuntimeExports.jsx(o.ark.div,{...i,ref:o.composeRefs(r.ref,s)})});se.displayName="MenuContent";const re=u.forwardRef((t,s)=>{const n=j(),r=d.mergeProps(n.getContextTriggerProps(),t);return e.jsxRuntimeExports.jsx(o.ark.button,{...r,ref:s})});re.displayName="MenuContextTrigger";const oe=u.forwardRef((t,s)=>{const n=j(),r=d.mergeProps(n.getIndicatorProps(),t);return e.jsxRuntimeExports.jsx(o.ark.div,{...r,ref:s})});oe.displayName="MenuIndicator";const ue=u.forwardRef((t,s)=>{const[n,r]=o.createSplitProps()(t,["closeOnSelect","disabled","value","valueText","onSelect"]),i=j(),l=d.mergeProps(i.getItemProps(n),r),a=i.getItemState(n);return u.useEffect(()=>i.addItemListener({id:a.id,onSelect:n.onSelect}),[a.id,n.onSelect]),e.jsxRuntimeExports.jsx(O,{value:a,children:e.jsxRuntimeExports.jsx(o.ark.div,{...l,ref:s})})});ue.displayName="MenuItem";const[ie,ce]=o.createContext({name:"MenuItemGroupContext",hookName:"useMenuItemGroupContext",providerName:"<MenuItemGroupProvider />"}),ae=u.forwardRef((t,s)=>{const[n,r]=o.createSplitProps()(t,["id"]),i=j(),a={id:u.useId(),...n},x=d.mergeProps(i.getItemGroupProps(a),r);return e.jsxRuntimeExports.jsx(ie,{value:a,children:e.jsxRuntimeExports.jsx(o.ark.div,{...x,ref:s})})});ae.displayName="MenuItemGroup";const le=u.forwardRef((t,s)=>{const n=j(),r=ce(),i=d.mergeProps(n.getItemGroupLabelProps({htmlFor:r.id}),t);return e.jsxRuntimeExports.jsx(o.ark.div,{...i,ref:s})});le.displayName="MenuItemGroupLabel";const pe=u.forwardRef((t,s)=>{const n=j(),r=te(),i=d.mergeProps(n.getItemIndicatorProps(r),t);return e.jsxRuntimeExports.jsx(o.ark.div,{...i,ref:s})});pe.displayName="MenuItemIndicator";const xe=u.forwardRef((t,s)=>{const n=j(),r=te(),i=d.mergeProps(n.getItemTextProps(r),t);return e.jsxRuntimeExports.jsx(o.ark.div,{...i,ref:s})});xe.displayName="MenuItemText";const me=u.forwardRef((t,s)=>{const n=j(),r=d.mergeProps(n.getPositionerProps(),t);return o.usePresenceContext().unmounted?null:e.jsxRuntimeExports.jsx(o.ark.div,{...r,ref:s})});me.displayName="MenuPositioner";const de=u.forwardRef((t,s)=>{const[n,r]=o.createSplitProps()(t,["closeOnSelect","disabled","value","valueText"]),i=j(),l=ce(),a={...n,checked:l.value===n.value,type:"radio",onCheckedChange:()=>l.onValueChange?.({value:n.value})},x=d.mergeProps(i.getOptionItemProps(a),r),g=i.getOptionItemState(a);return e.jsxRuntimeExports.jsx(ee,{value:a,children:e.jsxRuntimeExports.jsx(O,{value:g,children:e.jsxRuntimeExports.jsx(o.ark.div,{...x,ref:s})})})});de.displayName="MenuRadioItem";const je=u.forwardRef((t,s)=>{const[n,r]=o.createSplitProps()(t,["id","onValueChange","value"]),i=j(),a={id:u.useId(),...n},x=d.mergeProps(i.getItemGroupProps({id:a.id}),r);return e.jsxRuntimeExports.jsx(ie,{value:a,children:e.jsxRuntimeExports.jsx(o.ark.div,{...x,ref:s})})});je.displayName="MenuRadioItemGroup";const he=t=>{const s=u.useRef(t),n=u.useRef(!1);u.useEffect(()=>{s.current=t}),u.useEffect(()=>{n.current!==!0&&(n.current=!0,s.current())},[])},We=t=>{const s=u.useId(),{getRootNode:n}=o.useEnvironmentContext(),{dir:r}=o.useLocaleContext(),i={id:s,dir:r,getRootNode:n,...t},l=o.useMachine(D.machine,i);return{api:D.connect(l,o.normalizeProps),service:l}},[ge,fe]=o.createContext({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),[Pe,De]=o.createContext({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),He=t=>{const[s,n]=o.splitPresenceProps(t),[r,i]=o.createSplitProps()(n,["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]),l=j(),a=fe(),{api:x,service:g}=We(r),P=o.usePresence(d.mergeProps({present:x.open},s));he(()=>{a&&l&&(l.setChild(g),x.setParent(a))});const I=u.useCallback(()=>l?.getTriggerItemProps(x),[x,l]);return e.jsxRuntimeExports.jsx(Pe,{value:I,children:e.jsxRuntimeExports.jsx(ge,{value:g,children:e.jsxRuntimeExports.jsx(X,{value:x,children:e.jsxRuntimeExports.jsx(o.PresenceProvider,{value:P,...i})})})})},Ke=t=>{const s=j(),n=fe(),[r,{value:i,children:l}]=o.splitPresenceProps(t),{api:a,service:x}=i,g=o.usePresence(d.mergeProps({present:a.open},r));he(()=>{n&&s&&(s.setChild(x),a.setParent(n))});const P=u.useCallback(()=>s?.getTriggerItemProps(a),[a,s]);return e.jsxRuntimeExports.jsx(Pe,{value:P,children:e.jsxRuntimeExports.jsx(ge,{value:x,children:e.jsxRuntimeExports.jsx(X,{value:a,children:e.jsxRuntimeExports.jsx(o.PresenceProvider,{value:g,children:l})})})})},Re=u.forwardRef((t,s)=>{const n=j(),r=d.mergeProps(n.getSeparatorProps(),t);return e.jsxRuntimeExports.jsx(o.ark.hr,{...r,ref:s})});Re.displayName="MenuSeparator";const Me=u.forwardRef((t,s)=>{const n=j(),r=o.usePresenceContext(),i=d.mergeProps({...n.getTriggerProps(),"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]},t);return e.jsxRuntimeExports.jsx(o.ark.button,{...i,ref:s})});Me.displayName="MenuTrigger";const Ce=u.forwardRef((t,s)=>{const n=De(),r=d.mergeProps(n?.()??{},t);return e.jsxRuntimeExports.jsx(o.ark.div,{...r,ref:s})});Ce.displayName="MenuTriggerItem";const{withRootProvider:Ie,withContext:h}=Fe.createSlotRecipeContext({key:"menu"});Ie(Ke);const Je=Ie(He,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),Qe=h(Me,"trigger",{forwardAsChild:!0});h(re,"contextTrigger",{forwardAsChild:!0});const Ue=h(me,"positioner",{forwardAsChild:!0});h(Re,"separator",{forwardAsChild:!0});const Xe=h(se,"content",{forwardAsChild:!0}),Ye=h(Z,"arrowTip",{forwardAsChild:!0});h(Y,"arrow",{forwardAsChild:!0,defaultProps:{children:e.jsxRuntimeExports.jsx(Ye,{})}});h(oe,"indicator",{forwardAsChild:!0});const Ze=h(ae,"itemGroup",{forwardAsChild:!0}),et=h(le,"itemGroupLabel",{forwardAsChild:!0}),tt=h(ue,"item",{forwardAsChild:!0}),nt=h(Ce,"item",{forwardAsChild:!0});h(xe,"itemText",{forwardAsChild:!0});h("kbd","itemCommand");h(pe,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:e.jsxRuntimeExports.jsx(Le.CheckIcon,{boxSize:"4"})}});const st=h(ne,"item",{forwardAsChild:!0});h(je,"itemGroup",{forwardAsChild:!0});h(de,"item",{forwardAsChild:!0});const rt=({hideCaret:t=!1,size:s="md",text:n,textProps:r,variant:i,...l})=>e.jsxRuntimeExports.jsxs(A.Button,{className:"Menu__Button","data-testid":"kibble-menu-button",size:s,variant:i,...l,...!n&&t&&{paddingInline:0,paddingBlock:0},children:[n&&e.jsxRuntimeExports.jsx(G.WrappedText,{className:"Menu__ButtonText","data-testid":"kibble-menu-button-text",fontWeight:"semibold",size:s,color:i?"inherit":r?.color||"text.contrast",truncate:!0,...r,children:n}),!t&&e.jsxRuntimeExports.jsx(k.Flex,{className:"Menu__ButtonCaret","data-testid":"kibble-menu-button-caret",children:e.jsxRuntimeExports.jsx(Q.Icon,{name:"chevronDown",size:s==="lg"?"sm":"xs"})})]}),ot=({label:t,leftElement:s,onSelect:n,shouldTruncateText:r,type:i="default",variant:l,...a})=>{const x=u.useCallback(()=>{n&&n(a.value)},[n,a.value]);if(i==="submenu"){const{valueText:g,listProps:P}=a;return e.jsxRuntimeExports.jsx(ve,{submenuTrigger:e.jsxRuntimeExports.jsxs(nt,{className:"Menu__Item--Submenu","data-testid":"kibble-menu-item-submenu",justifyContent:"space-between","aria-valuetext":g,children:[e.jsxRuntimeExports.jsx(y,{label:t,leftElement:s,shouldTruncateText:r,variant:l}),e.jsxRuntimeExports.jsx(Q.Icon,{name:"chevronRight",size:"sm"})]}),portalled:!0,listProps:P})}if(i==="checkbox"){const{checked:g,value:P,closeOnSelect:I,...M}=a;return e.jsxRuntimeExports.jsxs(st,{className:"Menu__Item--Checkbox","data-testid":"kibble-menu-item-checkbox",value:P,checked:!!g,onCheckedChange:x,closeOnSelect:I||!1,gap:3,...M,children:[e.jsxRuntimeExports.jsx(U.WrappedCheckbox,{checked:!!g,size:"md",fullWidth:!1}),e.jsxRuntimeExports.jsx(y,{label:t,leftElement:s,shouldTruncateText:r,variant:l})]})}if(i==="default"){const{selected:g=!1,value:P,...I}=a;return e.jsxRuntimeExports.jsx(tt,{className:"Menu__Item--Default","data-testid":"kibble-menu-item-default",value:P,onSelect:x,...g&&{bgColor:"background.secondaryAlpha.hover"},...I,children:e.jsxRuntimeExports.jsx(y,{label:t,leftElement:s,shouldTruncateText:r,variant:g?"info":l})})}return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{})},y=({label:t,leftElement:s,shouldTruncateText:n,variant:r})=>e.jsxRuntimeExports.jsxs(k.Flex,{className:"Menu__ItemLabel",alignItems:"center",gap:3,children:[s,typeof t=="string"?e.jsxRuntimeExports.jsx(G.WrappedText,{size:"sm",truncated:n,variant:r,children:t}):t]}),H=({groupName:t,hasSelectedItems:s=!1,onToggle:n})=>{const r=!!t;return e.jsxRuntimeExports.jsx(S.Box,{className:"Menu__ToggleButtons","data-testid":"kibble-menu-toggle-buttons",...r?{textAlign:"right",w:"50%"}:{mt:2},children:r?e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:s?e.jsxRuntimeExports.jsx(J,{hasSelectedItems:s,groupName:t,onToggle:n}):e.jsxRuntimeExports.jsx(K,{groupName:t,onToggle:n})}):e.jsxRuntimeExports.jsxs(k.Flex,{justifyContent:"space-between",children:[e.jsxRuntimeExports.jsx(K,{groupName:t,onToggle:n}),e.jsxRuntimeExports.jsx(J,{hasSelectedItems:s,groupName:t,onToggle:n})]})})},K=({groupName:t,onToggle:s})=>e.jsxRuntimeExports.jsx(A.Button,{variant:"ghost",size:"xs",onClick:()=>s({groupName:t,clear:!1}),children:"Select All"}),J=({hasSelectedItems:t,groupName:s,onToggle:n})=>e.jsxRuntimeExports.jsx(A.Button,{variant:"ghostNeutral",iconName:"arrowCircle",size:"xs",disabled:!t,onClick:()=>n({groupName:s,clear:!0}),children:"Clear All"}),ve=({buttonProps:t,listProps:s,portalled:n=!1,submenuTrigger:r,...i})=>{const{contentRef:l}=$e.useModalContentRef(),{canSelectAll:a,canSelectGroups:x,emptyStateText:g="No results found",loading:P,maxH:I="480px",menuItems:M=[],minW:be="240px",onSearch:C,onSelect:B,onSelectAll:q,searchable:$,searchPlaceholder:Ee="Search...",shouldTruncateText:ke,...we}=s||{},[N,T]=u.useState(""),[F,_]=u.useState(M),L=u.useMemo(()=>{const c={};return F?.forEach(p=>{const m=p.groupLabel||"default",f=p.type==="checkbox"?"checkbox":"default";c[m]||(c[m]={}),c[m][f]||(c[m][f]=[]),c[m][f].push(p)}),c},[F]),V=u.useMemo(()=>Object.entries(L),[L]),b=u.useMemo(()=>M?.filter(c=>c.type==="checkbox")||[],[M]),Se=u.useMemo(()=>(b?.filter(p=>p.checked)||[]).map(p=>p.value),[b]),R=U.useCheckboxGroup({defaultValue:Se}),z=u.useCallback((c,p)=>c===""||!c?p:p.filter(m=>!!(typeof m.label=="string"?m.label:m.valueText)?.toLowerCase().includes(c.toLowerCase())),[]);u.useEffect(()=>{_(C?M:z(N,M))},[N,C,z,M]);const Ne=u.useCallback(c=>{const p=c.target.value;T(p),C&&C(c)},[C]),Te=u.useCallback(()=>{T(""),C&&C({target:{value:""}})},[C]),W=u.useCallback(({groupName:c,clear:p})=>{let m=[];if(c){const f=b.filter(v=>v.groupLabel===c).map(v=>v.value);m=p?R.value.filter(v=>!f.includes(v)):[...R.value,...f]}else m=p?[]:b.map(f=>f.value);q?.(m),R.setValue(m)},[b,q,R]),_e=u.useCallback(c=>{c.onSelect?.(c.value);const p=R.value,m=R.isChecked(c.value);B?.(c.value,m?p.filter(f=>f!==c.value):[...p,c.value]),c.type==="checkbox"&&R.toggleValue(c.value)},[B,R]),ye=u.useCallback(c=>{c||(T(""),_(M))},[M]);return e.jsxRuntimeExports.jsxs(Je,{...i,onOpenChange:c=>{ye(c.open),i.onOpenChange?.(c)},children:[r||e.jsxRuntimeExports.jsx(Qe,{asChild:!0,className:"Menu__Trigger","data-testid":"kibble-menu-trigger",children:e.jsxRuntimeExports.jsx(rt,{...t})}),e.jsxRuntimeExports.jsx(o.Portal,{disabled:!n,container:l||void 0,children:e.jsxRuntimeExports.jsx(Ue,{className:"Menu","data-testid":"kibble-menu",children:e.jsxRuntimeExports.jsxs(Xe,{className:"Menu__Content","data-testid":"kibble-menu-content",maxH:I,minW:be,...we,children:[($||a)&&e.jsxRuntimeExports.jsxs(S.Box,{className:"Menu__Header","data-testid":"kibble-menu-header",m:"0 12px 8px",children:[$&&e.jsxRuntimeExports.jsx(Be.WrappedTextInput,{className:"Menu__SearchBar","data-testid":"kibble-menu-search-bar",placeholder:Ee,onChange:Ne,size:"sm",value:N,clearable:!0,onClear:Te,formControlStyle:{mt:1}}),a&&!!b.length&&e.jsxRuntimeExports.jsx(H,{onToggle:W,hasSelectedItems:!!R.value.length})]}),P?e.jsxRuntimeExports.jsx(k.Flex,{justifyContent:"center",py:5,children:e.jsxRuntimeExports.jsx(qe.Spinner,{})}):e.jsxRuntimeExports.jsx(S.Box,{className:"Menu__List","data-testid":"kibble-menu-list",children:V.length?e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:V.map(([c,p])=>{const m=c==="default",f=Object.keys(p),v=m?ze.default.Fragment:Ze,Ae=p.checkbox?.map(E=>E.value)?.some(E=>R.value.includes(E));return e.jsxRuntimeExports.jsxs(v,{children:[!m&&e.jsxRuntimeExports.jsx(et,{children:e.jsxRuntimeExports.jsxs(k.Flex,{alignItems:"center",justifyContent:"space-between",children:[c,x&&f.includes("checkbox")&&e.jsxRuntimeExports.jsx(H,{groupName:c,onToggle:W,hasSelectedItems:Ae})]})}),Object.entries(p).map(([E,Ge])=>Ge.map((w,Oe)=>e.jsxRuntimeExports.jsx(ot,{...w,shouldTruncateText:ke,...w.type==="checkbox"&&{checked:R.isChecked(w.value)},onSelect:()=>_e(w)},`menu-item-${c}-${E}-${Oe}`)))]},c)})}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsx(S.Box,{textAlign:"center",p:3,children:e.jsxRuntimeExports.jsx(G.WrappedText,{size:"sm",variant:"subtle",children:g})})})})]})})})]})};exports.Menu=ve;
|
|
2
|
-
//# sourceMappingURL=menu.component-CiZzHc2D.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./jsx-runtime-BjDatQAs.js"),p=require("react"),a=require("./button.component-Dd9AfGox.js"),_=require("./flex-D14H6HbP.js"),M=require("./create-slot-recipe-context-IwVIgtBt.js"),B=require("./factory-D6tdBUPG.js"),e=require("./dialog-trigger-B5NK0lr-.js"),v=require("./heading.component-ZD_UVarx.js"),w=require("./tooltip.component-CwrXAVEq.js"),y=require("./use-breakpoint-uBg4-8yY.js"),N=require("./use-locale-context-BdqHZ8L8.js"),{withRootProvider:R,withContext:o}=M.createSlotRecipeContext({key:"dialog"});R(e.DialogRootProvider,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const P=R(e.DialogRoot,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),q=o(e.DialogTrigger,"trigger",{forwardAsChild:!0}),T=o(e.DialogPositioner,"positioner",{forwardAsChild:!0}),S=o(e.DialogContent,"content",{forwardAsChild:!0});o(e.DialogDescription,"description",{forwardAsChild:!0});const A=o(e.DialogTitle,"title",{forwardAsChild:!0}),z=o(e.DialogCloseTrigger,"closeTrigger",{forwardAsChild:!0}),F=p.forwardRef(function(r,n){const s=e.useDialogContext();return t.jsxRuntimeExports.jsx(B.chakra.button,{...r,ref:n,onClick:()=>s.setOpen(!1)})}),O=o(e.DialogBackdrop,"backdrop",{forwardAsChild:!0}),H=o("div","body"),I=o("div","footer"),V=o("div","header"),L=({children:i,destructive:r,disabled:n,hideCancel:s=!1,loading:l,loadingText:d,onCancel:c,onSubmit:u,submitText:x="Submit",...m})=>t.jsxRuntimeExports.jsx(I,{className:"Modal__Footer","data-testid":"kibble-modal-footer",...m,children:i||t.jsxRuntimeExports.jsxs(_.Flex,{alignItems:"center",justifyContent:"space-between",w:"100%",children:[!s&&t.jsxRuntimeExports.jsx(F,{asChild:!0,className:"Modal__CancelButton","data-testid":"kibble-modal-cancel-button",children:t.jsxRuntimeExports.jsx(a.Button,{variant:"tertiary",onClick:c,children:"Cancel"})}),t.jsxRuntimeExports.jsx(a.Button,{className:"Modal__SubmitButton","data-testid":"kibble-modal-submit-button",onClick:u,loading:l,loadingText:d,disabled:n,variant:r?"primaryDestructive":"primary",children:x})]})}),W=({children:i,footerProps:r,fullScreenMobile:n=!0,header:s,headerProps:l,hideCloseButton:d=!1,hideFooter:c=!1,motionPreset:u="slide-in-bottom",placement:x="center",showExpandButton:m=!1,size:g="md",trigger:j,...f})=>{const b=p.useRef(null),C={contentRef:b},[h,E]=p.useState(!1),D=y.useBreakpointValue({base:n?"full":g,md:g});return t.jsxRuntimeExports.jsxs(P,{motionPreset:u,placement:x,size:D,...f,expanded:h,children:[j&&t.jsxRuntimeExports.jsx(q,{asChild:!0,children:j}),t.jsxRuntimeExports.jsxs(N.Portal,{children:[t.jsxRuntimeExports.jsx(O,{}),t.jsxRuntimeExports.jsx(T,{children:t.jsxRuntimeExports.jsxs(w.ModalContext.Provider,{value:C,children:[" ",t.jsxRuntimeExports.jsxs(S,{className:"Modal","data-testid":"kibble-modal",ref:b,children:[!d&&t.jsxRuntimeExports.jsx(z,{asChild:!0,className:"Modal__CloseButton","data-testid":"kibble-modal-close-button",children:t.jsxRuntimeExports.jsx(a.Button,{iconName:"close",variant:"ghostNeutral"})}),m&&t.jsxRuntimeExports.jsx(a.Button,{className:"Modal__ExpandButton","data-testid":"kibble-modal-expand-button",variant:"ghostNeutral",iconName:h?"arrowsIn":"arrowsOut",position:"absolute",top:2,right:12,onClick:()=>E(k=>!k)}),t.jsxRuntimeExports.jsx(V,{className:"Modal__Header","data-testid":"kibble-modal-header",children:s&&t.jsxRuntimeExports.jsx(A,{className:"Modal__Title","data-testid":"kibble-modal-title",asChild:!0,children:typeof s=="string"?t.jsxRuntimeExports.jsx(v.WrappedHeading,{size:"xl",...l,children:s}):s})}),t.jsxRuntimeExports.jsx(H,{className:"Modal__Body","data-testid":"kibble-modal-body",children:i}),!c&&t.jsxRuntimeExports.jsx(L,{...r})]})]})})]})]})},G=["xs","sm","md","lg","cover","full"],J=["center","top","bottom"],K=["inside","outside"],Q=["scale","slide-in-bottom","slide-in-top","slide-in-left","slide-in-right","none"];exports.Modal=W;exports.modalMotionPresets=Q;exports.modalPlacements=J;exports.modalScrollBehaviors=K;exports.modalSizes=G;
|
|
2
|
-
//# sourceMappingURL=modal.types-9-Bz6ybC.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("./jsx-runtime-BjDatQAs.js"),p=require("react"),y=require("./withFormControl-DpytztWF.js"),k=require("./create-slot-recipe-context-IwVIgtBt.js"),s=require("./use-locale-context-BdqHZ8L8.js"),x=require("./use-field-context--wBJQY1R.js"),a=require("./index-CZ42b9rT.js"),m=require("./index-COoMV9Mh.js"),E=t=>t&&t.__esModule?t:{default:t},N=E(p),[I,d]=s.createContext({name:"PinInputContext",hookName:"usePinInputContext",providerName:"<PinInputProvider />"}),R=p.forwardRef((t,n)=>{const o=d(),r=a.mergeProps(o.getControlProps(),t);return i.jsxRuntimeExports.jsx(s.ark.div,{...r,ref:n})});R.displayName="PinInputControl";const f=p.forwardRef((t,n)=>{const o=d(),r=a.mergeProps(o.getHiddenInputProps(),t),e=x.useFieldContext();return i.jsxRuntimeExports.jsx(s.ark.input,{"aria-describedby":e?.ariaDescribedby,...r,ref:n})});f.displayName="PinInputHiddenInput";const C=p.forwardRef((t,n)=>{const[o,r]=s.createSplitProps()(t,["index"]),e=d(),u=a.mergeProps(e.getInputProps(o),r);return i.jsxRuntimeExports.jsx(s.ark.input,{...u,ref:n})});C.displayName="PinInputInput";const j=p.forwardRef((t,n)=>{const o=d(),r=a.mergeProps(o.getLabelProps(),t);return i.jsxRuntimeExports.jsx(s.ark.label,{...r,ref:n})});j.displayName="PinInputLabel";const _=t=>{const n=p.useId(),{getRootNode:o}=s.useEnvironmentContext(),{dir:r}=s.useLocaleContext(),e=x.useFieldContext(),u={id:n,ids:{label:e?.ids.label,hiddenInput:e?.ids.control},disabled:e?.disabled,readOnly:e?.readOnly,required:e?.required,invalid:e?.invalid,dir:r,getRootNode:o,...t},l=s.useMachine(m.machine,u);return m.connect(l,s.normalizeProps)},b=p.forwardRef((t,n)=>{const[o,r]=s.createSplitProps()(t,["autoFocus","blurOnComplete","count","defaultValue","disabled","form","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]),e=_(o),u=a.mergeProps(e.getRootProps(),r);return i.jsxRuntimeExports.jsx(I,{value:e,children:i.jsxRuntimeExports.jsx(s.ark.div,{...u,ref:n})})});b.displayName="PinInputRoot";const h=p.forwardRef((t,n)=>{const[{value:o},r]=s.createSplitProps()(t,["value"]),e=a.mergeProps(o.getRootProps(),r);return i.jsxRuntimeExports.jsx(I,{value:o,children:i.jsxRuntimeExports.jsx(s.ark.div,{...e,ref:n})})});h.displayName="PinInputRootProvider";const{withProvider:g,withContext:P}=k.createSlotRecipeContext({key:"pinInput"});g(h,"root",{forwardAsChild:!0});const q=g(b,"root",{forwardProps:["mask"],forwardAsChild:!0}),F=P(R,"control",{forwardAsChild:!0}),A=P(C,"input",{forwardAsChild:!0});P(j,"label",{forwardAsChild:!0});const $=f,H=y.withFormControl(({count:t=6,pinInputRef:n,onContrast:o=!1,otp:r=!0,size:e="md",type:u="numeric",...l})=>{const w=o?"onContrast":"default";return i.jsxRuntimeExports.jsxs(q,{className:"PinInput","data-testid":"kibble-pin-input",ref:n,variant:w,size:e,type:u,otp:r,...l,children:[i.jsxRuntimeExports.jsx($,{className:"PinInput__HiddenInput","data-testid":"kibble-pin-input-hidden-input"}),i.jsxRuntimeExports.jsx(F,{className:"PinInput__Control","data-testid":"kibble-pin-input-control",children:Array.from({length:t}).map((O,c)=>i.jsxRuntimeExports.jsx(A,{index:c,className:"PinInput__Input","data-testid":`kibble-pin-input-input-${c}`},c))})]})}),v=N.default.forwardRef((t,n)=>i.jsxRuntimeExports.jsx(H,{pinInputRef:n,...t}));v.displayName="PinInput";const L=["numeric","alphabetic","alphanumeric"];exports.WrappedPinInput=v;exports.pinInputTypes=L;
|
|
2
|
-
//# sourceMappingURL=pinInput.types-B-RchRm_.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("./jsx-runtime-BjDatQAs.js"),R=require("./create-slot-recipe-context-IwVIgtBt.js"),s=require("./popover-root-provider-DAMDDAHQ.js"),P=require("react"),n=require("./use-locale-context-BdqHZ8L8.js"),v=require("./index-CZ42b9rT.js"),d=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=v.mergeProps(o.getAnchorProps(),r);return i.jsxRuntimeExports.jsx(n.ark.div,{...t,ref:e})});d.displayName="PopoverAnchor";const a=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=v.mergeProps(o.getArrowProps(),r);return i.jsxRuntimeExports.jsx(n.ark.div,{...t,ref:e})});a.displayName="PopoverArrow";const u=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=v.mergeProps(o.getArrowTipProps(),r);return i.jsxRuntimeExports.jsx(n.ark.div,{...t,ref:e})});u.displayName="PopoverArrowTip";const g=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=v.mergeProps(o.getDescriptionProps(),r);return i.jsxRuntimeExports.jsx(n.ark.div,{...t,ref:e})});g.displayName="PopoverDescription";const x=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=v.mergeProps(o.getIndicatorProps(),r);return i.jsxRuntimeExports.jsx(n.ark.div,{...t,ref:e})});x.displayName="PopoverIndicator";const l=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=n.usePresenceContext(),c=v.mergeProps(o.getPositionerProps(),r);return t.unmounted?null:i.jsxRuntimeExports.jsx(n.ark.div,{...c,ref:e})});l.displayName="PopoverPositioner";const m=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=v.mergeProps(o.getTitleProps(),r);return i.jsxRuntimeExports.jsx(n.ark.div,{...t,ref:e})});m.displayName="PopoverTitle";const C=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=n.usePresenceContext(),c=v.mergeProps({...o.getTriggerProps(),"aria-controls":t.unmounted?void 0:o.getTriggerProps()["aria-controls"]},r);return i.jsxRuntimeExports.jsx(n.ark.button,{...c,ref:e})});C.displayName="PopoverTrigger";const{withRootProvider:w,withContext:p,useStyles:A,PropsProvider:T}=R.createSlotRecipeContext({key:"popover"}),h=w(s.PopoverRootProvider),j=w(s.PopoverRoot),y=T,k=p(C,"trigger",{forwardAsChild:!0}),E=p(l,"positioner",{forwardAsChild:!0}),N=p(s.PopoverContent,"content",{forwardAsChild:!0}),f=p(u,"arrowTip",{forwardAsChild:!0}),$=p(a,"arrow",{forwardAsChild:!0,defaultProps:{children:i.jsxRuntimeExports.jsx(f,{})}}),q=p(s.PopoverCloseTrigger,"closeTrigger",{forwardAsChild:!0});p(x,"indicator",{forwardAsChild:!0});const D=p(m,"title",{forwardAsChild:!0}),S=p(g,"description",{forwardAsChild:!0}),I=p("footer","footer"),b=p("header","header"),B=p("div","body"),F=p(d,void 0,{forwardAsChild:!0}),H=s.PopoverContext;exports.PopoverAnchor=F;exports.PopoverArrow=$;exports.PopoverArrowTip=f;exports.PopoverBody=B;exports.PopoverCloseTrigger=q;exports.PopoverContent=N;exports.PopoverContext=H;exports.PopoverDescription=S;exports.PopoverFooter=I;exports.PopoverHeader=b;exports.PopoverPositioner=E;exports.PopoverPropsProvider=y;exports.PopoverRoot=j;exports.PopoverRootProvider=h;exports.PopoverTitle=D;exports.PopoverTrigger=k;exports.usePopoverStyles=A;
|
|
2
|
-
//# sourceMappingURL=popover-80QH8HEJ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popover-80QH8HEJ.js","sources":["../../node_modules/@ark-ui/react/dist/components/popover/popover-anchor.js","../../node_modules/@ark-ui/react/dist/components/popover/popover-arrow.js","../../node_modules/@ark-ui/react/dist/components/popover/popover-arrow-tip.js","../../node_modules/@ark-ui/react/dist/components/popover/popover-description.js","../../node_modules/@ark-ui/react/dist/components/popover/popover-indicator.js","../../node_modules/@ark-ui/react/dist/components/popover/popover-positioner.js","../../node_modules/@ark-ui/react/dist/components/popover/popover-title.js","../../node_modules/@ark-ui/react/dist/components/popover/popover-trigger.js","../../node_modules/@chakra-ui/react/dist/esm/components/popover/popover.js"],"sourcesContent":["'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverAnchor = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const mergedProps = mergeProps(popover.getAnchorProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nPopoverAnchor.displayName = \"PopoverAnchor\";\n\nexport { PopoverAnchor };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverArrow = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const mergedProps = mergeProps(popover.getArrowProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nPopoverArrow.displayName = \"PopoverArrow\";\n\nexport { PopoverArrow };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverArrowTip = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const mergedProps = mergeProps(popover.getArrowTipProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nPopoverArrowTip.displayName = \"PopoverArrowTip\";\n\nexport { PopoverArrowTip };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverDescription = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const mergedProps = mergeProps(popover.getDescriptionProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nPopoverDescription.displayName = \"PopoverDescription\";\n\nexport { PopoverDescription };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverIndicator = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const mergedProps = mergeProps(popover.getIndicatorProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nPopoverIndicator.displayName = \"PopoverIndicator\";\n\nexport { PopoverIndicator };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverPositioner = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(popover.getPositionerProps(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nPopoverPositioner.displayName = \"PopoverPositioner\";\n\nexport { PopoverPositioner };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverTitle = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const mergedProps = mergeProps(popover.getTitleProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nPopoverTitle.displayName = \"PopoverTitle\";\n\nexport { PopoverTitle };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverTrigger = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(\n {\n ...popover.getTriggerProps(),\n \"aria-controls\": presence.unmounted ? void 0 : popover.getTriggerProps()[\"aria-controls\"]\n },\n props\n );\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nPopoverTrigger.displayName = \"PopoverTrigger\";\n\nexport { PopoverTrigger };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Popover } from '@ark-ui/react/popover';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\n\nconst {\n withRootProvider,\n withContext,\n useStyles: usePopoverStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"popover\" });\nconst PopoverRootProvider = withRootProvider(\n Popover.RootProvider\n);\nconst PopoverRoot = withRootProvider(Popover.Root);\nconst PopoverPropsProvider = PropsProvider;\nconst PopoverTrigger = withContext(Popover.Trigger, \"trigger\", { forwardAsChild: true });\nconst PopoverPositioner = withContext(Popover.Positioner, \"positioner\", { forwardAsChild: true });\nconst PopoverContent = withContext(\n Popover.Content,\n \"content\",\n { forwardAsChild: true }\n);\nconst PopoverArrowTip = withContext(Popover.ArrowTip, \"arrowTip\", { forwardAsChild: true });\nconst PopoverArrow = withContext(\n Popover.Arrow,\n \"arrow\",\n {\n forwardAsChild: true,\n defaultProps: { children: /* @__PURE__ */ jsx(PopoverArrowTip, {}) }\n }\n);\nconst PopoverCloseTrigger = withContext(Popover.CloseTrigger, \"closeTrigger\", { forwardAsChild: true });\nconst PopoverIndicator = withContext(Popover.Indicator, \"indicator\", { forwardAsChild: true });\nconst PopoverTitle = withContext(\n Popover.Title,\n \"title\",\n { forwardAsChild: true }\n);\nconst PopoverDescription = withContext(Popover.Description, \"description\", { forwardAsChild: true });\nconst PopoverFooter = withContext(\n \"footer\",\n \"footer\"\n);\nconst PopoverHeader = withContext(\n \"header\",\n \"header\"\n);\nconst PopoverBody = withContext(\n \"div\",\n \"body\"\n);\nconst PopoverAnchor = withContext(\n Popover.Anchor,\n void 0,\n { forwardAsChild: true }\n);\nconst PopoverContext = Popover.Context;\n\nexport { PopoverAnchor, PopoverArrow, PopoverArrowTip, PopoverBody, PopoverCloseTrigger, PopoverContent, PopoverContext, PopoverDescription, PopoverFooter, PopoverHeader, PopoverIndicator, PopoverPositioner, PopoverPropsProvider, PopoverRoot, PopoverRootProvider, PopoverTitle, PopoverTrigger, usePopoverStyles };\n"],"names":["PopoverAnchor","forwardRef","props","ref","popover","usePopoverContext","mergedProps","mergeProps","jsx","ark","PopoverArrow","PopoverArrowTip","PopoverDescription","PopoverIndicator","PopoverPositioner","presence","usePresenceContext","PopoverTitle","PopoverTrigger","withRootProvider","withContext","usePopoverStyles","PropsProvider","createSlotRecipeContext","PopoverRootProvider","Popover.RootProvider","PopoverRoot","Popover.Root","PopoverPropsProvider","Popover.Trigger","Popover.Positioner","PopoverContent","Popover.Content","Popover.ArrowTip","Popover.Arrow","PopoverCloseTrigger","Popover.CloseTrigger","Popover.Indicator","Popover.Title","Popover.Description","PopoverFooter","PopoverHeader","PopoverBody","Popover.Anchor","PopoverContext","Popover.Context"],"mappings":"mQAOMA,EAAgBC,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAC/C,MAAMC,EAAUC,EAAAA,kBAAmB,EAC7BC,EAAcC,EA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AAM,CAAA,EACjFf,EAAoBM,EAAYU,EAAoB,aAAc,CAAE,eAAgB,EAAM,CAAA,EAC1FC,EAAiBX,EACrBY,EAAe,eACf,UACA,CAAE,eAAgB,EAAI,CACxB,EACMrB,EAAkBS,EAAYa,EAAkB,WAAY,CAAE,eAAgB,EAAM,CAAA,EACpFvB,EAAeU,EACnBc,EACA,QACA,CACE,eAAgB,GAChB,aAAc,CAAE,SAA0B1B,wBAAIG,EAAiB,CAAA,CAAE,CAAC,CACtE,CACA,EACMwB,EAAsBf,EAAYgB,EAAoB,oBAAE,eAAgB,CAAE,eAAgB,EAAM,CAAA,EAC7EhB,EAAYiB,EAAmB,YAAa,CAAE,eAAgB,EAAM,CAAA,EACxF,MAACpB,EAAeG,EACnBkB,EACA,QACA,CAAE,eAAgB,EAAI,CACxB,EACM1B,EAAqBQ,EAAYmB,EAAqB,cAAe,CAAE,eAAgB,EAAM,CAAA,EAC7FC,EAAgBpB,EACpB,SACA,QACF,EACMqB,EAAgBrB,EACpB,SACA,QACF,EACMsB,EAActB,EAClB,MACA,MACF,EACMpB,EAAgBoB,EACpBuB,EACA,OACA,CAAE,eAAgB,EAAI,CACxB,EACMC,EAAiBC,EAAAA","x_google_ignoreList":[0,1,2,3,4,5,6,7,8]}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { j as p } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { c as C } from "./create-slot-recipe-context-BJmsuxih.js";
|
|
3
|
-
import { u as n, P as x, a as T, b as y, c as j, d as $ } from "./popover-root-provider-CeLLpesI.js";
|
|
4
|
-
import { forwardRef as i } from "react";
|
|
5
|
-
import { f as a, u as d } from "./use-locale-context-D-agiW5E.js";
|
|
6
|
-
import { Y as P } from "./index-CYk-7wwG.js";
|
|
7
|
-
const v = i((r, e) => {
|
|
8
|
-
const o = n(), s = P(o.getAnchorProps(), r);
|
|
9
|
-
return /* @__PURE__ */ p.jsx(a.div, { ...s, ref: e });
|
|
10
|
-
});
|
|
11
|
-
v.displayName = "PopoverAnchor";
|
|
12
|
-
const g = i((r, e) => {
|
|
13
|
-
const o = n(), s = P(o.getArrowProps(), r);
|
|
14
|
-
return /* @__PURE__ */ p.jsx(a.div, { ...s, ref: e });
|
|
15
|
-
});
|
|
16
|
-
g.displayName = "PopoverArrow";
|
|
17
|
-
const l = i((r, e) => {
|
|
18
|
-
const o = n(), s = P(o.getArrowTipProps(), r);
|
|
19
|
-
return /* @__PURE__ */ p.jsx(a.div, { ...s, ref: e });
|
|
20
|
-
});
|
|
21
|
-
l.displayName = "PopoverArrowTip";
|
|
22
|
-
const u = i((r, e) => {
|
|
23
|
-
const o = n(), s = P(o.getDescriptionProps(), r);
|
|
24
|
-
return /* @__PURE__ */ p.jsx(a.div, { ...s, ref: e });
|
|
25
|
-
});
|
|
26
|
-
u.displayName = "PopoverDescription";
|
|
27
|
-
const m = i((r, e) => {
|
|
28
|
-
const o = n(), s = P(o.getIndicatorProps(), r);
|
|
29
|
-
return /* @__PURE__ */ p.jsx(a.div, { ...s, ref: e });
|
|
30
|
-
});
|
|
31
|
-
m.displayName = "PopoverIndicator";
|
|
32
|
-
const f = i((r, e) => {
|
|
33
|
-
const o = n(), s = d(), c = P(o.getPositionerProps(), r);
|
|
34
|
-
return s.unmounted ? null : /* @__PURE__ */ p.jsx(a.div, { ...c, ref: e });
|
|
35
|
-
});
|
|
36
|
-
f.displayName = "PopoverPositioner";
|
|
37
|
-
const w = i((r, e) => {
|
|
38
|
-
const o = n(), s = P(o.getTitleProps(), r);
|
|
39
|
-
return /* @__PURE__ */ p.jsx(a.div, { ...s, ref: e });
|
|
40
|
-
});
|
|
41
|
-
w.displayName = "PopoverTitle";
|
|
42
|
-
const A = i((r, e) => {
|
|
43
|
-
const o = n(), s = d(), c = P(
|
|
44
|
-
{
|
|
45
|
-
...o.getTriggerProps(),
|
|
46
|
-
"aria-controls": s.unmounted ? void 0 : o.getTriggerProps()["aria-controls"]
|
|
47
|
-
},
|
|
48
|
-
r
|
|
49
|
-
);
|
|
50
|
-
return /* @__PURE__ */ p.jsx(a.button, { ...c, ref: e });
|
|
51
|
-
});
|
|
52
|
-
A.displayName = "PopoverTrigger";
|
|
53
|
-
const {
|
|
54
|
-
withRootProvider: h,
|
|
55
|
-
withContext: t,
|
|
56
|
-
useStyles: E,
|
|
57
|
-
PropsProvider: N
|
|
58
|
-
} = C({ key: "popover" }), F = h(
|
|
59
|
-
$
|
|
60
|
-
), H = h(j), Y = N, q = t(A, "trigger", { forwardAsChild: !0 }), z = t(f, "positioner", { forwardAsChild: !0 }), G = t(
|
|
61
|
-
T,
|
|
62
|
-
"content",
|
|
63
|
-
{ forwardAsChild: !0 }
|
|
64
|
-
), R = t(l, "arrowTip", { forwardAsChild: !0 }), J = t(
|
|
65
|
-
g,
|
|
66
|
-
"arrow",
|
|
67
|
-
{
|
|
68
|
-
forwardAsChild: !0,
|
|
69
|
-
defaultProps: { children: /* @__PURE__ */ p.jsx(R, {}) }
|
|
70
|
-
}
|
|
71
|
-
), K = t(y, "closeTrigger", { forwardAsChild: !0 });
|
|
72
|
-
t(m, "indicator", { forwardAsChild: !0 });
|
|
73
|
-
const L = t(
|
|
74
|
-
w,
|
|
75
|
-
"title",
|
|
76
|
-
{ forwardAsChild: !0 }
|
|
77
|
-
), M = t(u, "description", { forwardAsChild: !0 }), O = t(
|
|
78
|
-
"footer",
|
|
79
|
-
"footer"
|
|
80
|
-
), Q = t(
|
|
81
|
-
"header",
|
|
82
|
-
"header"
|
|
83
|
-
), U = t(
|
|
84
|
-
"div",
|
|
85
|
-
"body"
|
|
86
|
-
), V = t(
|
|
87
|
-
v,
|
|
88
|
-
void 0,
|
|
89
|
-
{ forwardAsChild: !0 }
|
|
90
|
-
), W = x;
|
|
91
|
-
export {
|
|
92
|
-
V as P,
|
|
93
|
-
J as a,
|
|
94
|
-
R as b,
|
|
95
|
-
U as c,
|
|
96
|
-
K as d,
|
|
97
|
-
G as e,
|
|
98
|
-
W as f,
|
|
99
|
-
M as g,
|
|
100
|
-
O as h,
|
|
101
|
-
Q as i,
|
|
102
|
-
z as j,
|
|
103
|
-
Y as k,
|
|
104
|
-
H as l,
|
|
105
|
-
F as m,
|
|
106
|
-
L as n,
|
|
107
|
-
q as o,
|
|
108
|
-
E as u
|
|
109
|
-
};
|
|
110
|
-
//# sourceMappingURL=popover-B9rNOU0g.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popover-B9rNOU0g.js","sources":["../../node_modules/@ark-ui/react/dist/components/popover/popover-anchor.js","../../node_modules/@ark-ui/react/dist/components/popover/popover-arrow.js","../../node_modules/@ark-ui/react/dist/components/popover/popover-arrow-tip.js","../../node_modules/@ark-ui/react/dist/components/popover/popover-description.js","../../node_modules/@ark-ui/react/dist/components/popover/popover-indicator.js","../../node_modules/@ark-ui/react/dist/components/popover/popover-positioner.js","../../node_modules/@ark-ui/react/dist/components/popover/popover-title.js","../../node_modules/@ark-ui/react/dist/components/popover/popover-trigger.js","../../node_modules/@chakra-ui/react/dist/esm/components/popover/popover.js"],"sourcesContent":["'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverAnchor = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const mergedProps = mergeProps(popover.getAnchorProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nPopoverAnchor.displayName = \"PopoverAnchor\";\n\nexport { PopoverAnchor };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverArrow = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const mergedProps = mergeProps(popover.getArrowProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nPopoverArrow.displayName = \"PopoverArrow\";\n\nexport { PopoverArrow };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverArrowTip = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const mergedProps = mergeProps(popover.getArrowTipProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nPopoverArrowTip.displayName = \"PopoverArrowTip\";\n\nexport { PopoverArrowTip };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverDescription = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const mergedProps = mergeProps(popover.getDescriptionProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nPopoverDescription.displayName = \"PopoverDescription\";\n\nexport { PopoverDescription };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverIndicator = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const mergedProps = mergeProps(popover.getIndicatorProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nPopoverIndicator.displayName = \"PopoverIndicator\";\n\nexport { PopoverIndicator };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverPositioner = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(popover.getPositionerProps(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nPopoverPositioner.displayName = \"PopoverPositioner\";\n\nexport { PopoverPositioner };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverTitle = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const mergedProps = mergeProps(popover.getTitleProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nPopoverTitle.displayName = \"PopoverTitle\";\n\nexport { PopoverTitle };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { usePopoverContext } from './use-popover-context.js';\n\nconst PopoverTrigger = forwardRef((props, ref) => {\n const popover = usePopoverContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(\n {\n ...popover.getTriggerProps(),\n \"aria-controls\": presence.unmounted ? void 0 : popover.getTriggerProps()[\"aria-controls\"]\n },\n props\n );\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nPopoverTrigger.displayName = \"PopoverTrigger\";\n\nexport { PopoverTrigger };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Popover } from '@ark-ui/react/popover';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\n\nconst {\n withRootProvider,\n withContext,\n useStyles: usePopoverStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"popover\" });\nconst PopoverRootProvider = withRootProvider(\n Popover.RootProvider\n);\nconst PopoverRoot = withRootProvider(Popover.Root);\nconst PopoverPropsProvider = PropsProvider;\nconst PopoverTrigger = withContext(Popover.Trigger, \"trigger\", { forwardAsChild: true });\nconst PopoverPositioner = withContext(Popover.Positioner, \"positioner\", { forwardAsChild: true });\nconst PopoverContent = withContext(\n Popover.Content,\n \"content\",\n { forwardAsChild: true }\n);\nconst PopoverArrowTip = withContext(Popover.ArrowTip, \"arrowTip\", { forwardAsChild: true });\nconst PopoverArrow = withContext(\n Popover.Arrow,\n \"arrow\",\n {\n forwardAsChild: true,\n defaultProps: { children: /* @__PURE__ */ jsx(PopoverArrowTip, {}) }\n }\n);\nconst PopoverCloseTrigger = withContext(Popover.CloseTrigger, \"closeTrigger\", { forwardAsChild: true });\nconst PopoverIndicator = withContext(Popover.Indicator, \"indicator\", { forwardAsChild: true });\nconst PopoverTitle = withContext(\n Popover.Title,\n \"title\",\n { forwardAsChild: true }\n);\nconst PopoverDescription = withContext(Popover.Description, \"description\", { forwardAsChild: true });\nconst PopoverFooter = withContext(\n \"footer\",\n \"footer\"\n);\nconst PopoverHeader = withContext(\n \"header\",\n \"header\"\n);\nconst PopoverBody = withContext(\n \"div\",\n \"body\"\n);\nconst PopoverAnchor = withContext(\n Popover.Anchor,\n void 0,\n { forwardAsChild: true }\n);\nconst PopoverContext = Popover.Context;\n\nexport { PopoverAnchor, PopoverArrow, PopoverArrowTip, PopoverBody, PopoverCloseTrigger, PopoverContent, PopoverContext, PopoverDescription, PopoverFooter, PopoverHeader, PopoverIndicator, PopoverPositioner, PopoverPropsProvider, PopoverRoot, PopoverRootProvider, PopoverTitle, PopoverTrigger, usePopoverStyles };\n"],"names":["PopoverAnchor","forwardRef","props","ref","popover","usePopoverContext","mergedProps","mergeProps","jsx","ark","PopoverArrow","PopoverArrowTip","PopoverDescription","PopoverIndicator","PopoverPositioner","presence","usePresenceContext","PopoverTitle","PopoverTrigger","withRootProvider","withContext","usePopoverStyles","PropsProvider","createSlotRecipeContext","PopoverRootProvider","Popover.RootProvider","PopoverRoot","Popover.Root","PopoverPropsProvider","Popover.Trigger","Popover.Positioner","PopoverContent","Popover.Content","Popover.ArrowTip","Popover.Arrow","PopoverCloseTrigger","Popover.CloseTrigger","Popover.Indicator","Popover.Title","Popover.Description","PopoverFooter","PopoverHeader","PopoverBody","Popover.Anchor","PopoverContext","Popover.Context"],"mappings":";;;;;;AAOA,MAAMA,IAAgBC,EAAW,CAACC,GAAOC,MAAQ;AAC/C,QAAMC,IAAUC,EAAmB,GAC7BC,IAAcC,EAAWH,EAAQ,eAAc,GAAIF,CAAK;AAC9D,SAAuBM,gBAAAA,EAAAA,IAAIC,EAAI,KAAK,EAAE,GAAGH,GAAa,KAAAH,GAAK;AAC7D,CAAC;AACDH,EAAc,cAAc;ACL5B,MAAMU,IAAeT,EAAW,CAACC,GAAOC,MAAQ;AAC9C,QAAMC,IAAUC,EAAmB,GAC7BC,IAAcC,EAAWH,EAAQ,cAAa,GAAIF,CAAK;AAC7D,SAAuBM,gBAAAA,EAAAA,IAAIC,EAAI,KAAK,EAAE,GAAGH,GAAa,KAAAH,GAAK;AAC7D,CAAC;AACDO,EAAa,cAAc;ACL3B,MAAMC,IAAkBV,EAAW,CAACC,GAAOC,MAAQ;AACjD,QAAMC,IAAUC,EAAmB,GAC7BC,IAAcC,EAAWH,EAAQ,iBAAgB,GAAIF,CAAK;AAChE,SAAuBM,gBAAAA,EAAAA,IAAIC,EAAI,KAAK,EAAE,GAAGH,GAAa,KAAAH,GAAK;AAC7D,CAAC;AACDQ,EAAgB,cAAc;ACL9B,MAAMC,IAAqBX,EAAW,CAACC,GAAOC,MAAQ;AACpD,QAAMC,IAAUC,EAAmB,GAC7BC,IAAcC,EAAWH,EAAQ,oBAAmB,GAAIF,CAAK;AACnE,SAAuBM,gBAAAA,EAAAA,IAAIC,EAAI,KAAK,EAAE,GAAGH,GAAa,KAAAH,GAAK;AAC7D,CAAC;AACDS,EAAmB,cAAc;ACLjC,MAAMC,IAAmBZ,EAAW,CAACC,GAAOC,MAAQ;AAClD,QAAMC,IAAUC,EAAmB,GAC7BC,IAAcC,EAAWH,EAAQ,kBAAiB,GAAIF,CAAK;AACjE,SAAuBM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