@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
|
@@ -0,0 +1,976 @@
|
|
|
1
|
+
import { j as n } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import fe, { forwardRef as l, useId as Te, memo as H, useState as be, useRef as D, useCallback as Oe, useEffect as we } from "react";
|
|
3
|
+
import { c as F } from "./create-slot-recipe-context-BJmsuxih.js";
|
|
4
|
+
import { v as h, h as g, m as E, w as xe, x as ye, y as Ee, z as Ne, A as Re, c as ke, i as Ae, g as L, e as je, b as _e, u as Ie, j as He, k as De, n as Le, s as B, l as V, o as G, P as Se } from "./portal-CtkZ5xTm.js";
|
|
5
|
+
import { a0 as p, c as $e, w as Fe, t as Be, b as Ve } from "./index-Cb49D-ky.js";
|
|
6
|
+
import { c as z } from "./create-recipe-context-D7FewUR4.js";
|
|
7
|
+
import { B as A } from "./button.component-DahLrK9h.js";
|
|
8
|
+
import { a as Ge } from "./config-DlTdf-Yt.js";
|
|
9
|
+
import { u as _ } from "./use-slot-recipe-DhtQ1j_5.js";
|
|
10
|
+
import { F as j } from "./flex-smlF8uQG.js";
|
|
11
|
+
import { c as ze } from "./factory-Ctbv0Ozn.js";
|
|
12
|
+
import { B as W } from "./box-Ck9I7FYv.js";
|
|
13
|
+
const { withContext: We } = z({
|
|
14
|
+
key: "heading"
|
|
15
|
+
}), Me = We("h2"), { withContext: Ue } = z({
|
|
16
|
+
key: "text"
|
|
17
|
+
}), Ye = Ue("p"), M = l((e, o) => {
|
|
18
|
+
const r = h(), t = p(r.getAnchorProps(), e);
|
|
19
|
+
return /* @__PURE__ */ n.jsx(g.div, { ...t, ref: o });
|
|
20
|
+
});
|
|
21
|
+
M.displayName = "PopoverAnchor";
|
|
22
|
+
const U = l((e, o) => {
|
|
23
|
+
const r = h(), t = p(r.getArrowProps(), e);
|
|
24
|
+
return /* @__PURE__ */ n.jsx(g.div, { ...t, ref: o });
|
|
25
|
+
});
|
|
26
|
+
U.displayName = "PopoverArrow";
|
|
27
|
+
const Y = l((e, o) => {
|
|
28
|
+
const r = h(), t = p(r.getArrowTipProps(), e);
|
|
29
|
+
return /* @__PURE__ */ n.jsx(g.div, { ...t, ref: o });
|
|
30
|
+
});
|
|
31
|
+
Y.displayName = "PopoverArrowTip";
|
|
32
|
+
const q = l((e, o) => {
|
|
33
|
+
const r = h(), t = p(r.getDescriptionProps(), e);
|
|
34
|
+
return /* @__PURE__ */ n.jsx(g.div, { ...t, ref: o });
|
|
35
|
+
});
|
|
36
|
+
q.displayName = "PopoverDescription";
|
|
37
|
+
const J = l((e, o) => {
|
|
38
|
+
const r = h(), t = p(r.getIndicatorProps(), e);
|
|
39
|
+
return /* @__PURE__ */ n.jsx(g.div, { ...t, ref: o });
|
|
40
|
+
});
|
|
41
|
+
J.displayName = "PopoverIndicator";
|
|
42
|
+
const K = l((e, o) => {
|
|
43
|
+
const r = h(), t = E(), s = p(r.getPositionerProps(), e);
|
|
44
|
+
return t.unmounted ? null : /* @__PURE__ */ n.jsx(g.div, { ...s, ref: o });
|
|
45
|
+
});
|
|
46
|
+
K.displayName = "PopoverPositioner";
|
|
47
|
+
const Q = l((e, o) => {
|
|
48
|
+
const r = h(), t = p(r.getTitleProps(), e);
|
|
49
|
+
return /* @__PURE__ */ n.jsx(g.div, { ...t, ref: o });
|
|
50
|
+
});
|
|
51
|
+
Q.displayName = "PopoverTitle";
|
|
52
|
+
const X = l((e, o) => {
|
|
53
|
+
const r = h(), t = E(), s = p(
|
|
54
|
+
{
|
|
55
|
+
...r.getTriggerProps(),
|
|
56
|
+
"aria-controls": t.unmounted ? void 0 : r.getTriggerProps()["aria-controls"]
|
|
57
|
+
},
|
|
58
|
+
e
|
|
59
|
+
);
|
|
60
|
+
return /* @__PURE__ */ n.jsx(g.button, { ...s, ref: o });
|
|
61
|
+
});
|
|
62
|
+
X.displayName = "PopoverTrigger";
|
|
63
|
+
const {
|
|
64
|
+
withRootProvider: Z,
|
|
65
|
+
withContext: v,
|
|
66
|
+
useStyles: qe,
|
|
67
|
+
PropsProvider: Je
|
|
68
|
+
} = F({ key: "popover" }), Ke = Z(
|
|
69
|
+
Re
|
|
70
|
+
), Qe = Z(Ne), Xe = Je, Ze = v(X, "trigger", { forwardAsChild: !0 }), eo = v(K, "positioner", { forwardAsChild: !0 }), oo = v(
|
|
71
|
+
ye,
|
|
72
|
+
"content",
|
|
73
|
+
{ forwardAsChild: !0 }
|
|
74
|
+
), ee = v(Y, "arrowTip", { forwardAsChild: !0 }), ro = v(
|
|
75
|
+
U,
|
|
76
|
+
"arrow",
|
|
77
|
+
{
|
|
78
|
+
forwardAsChild: !0,
|
|
79
|
+
defaultProps: { children: /* @__PURE__ */ n.jsx(ee, {}) }
|
|
80
|
+
}
|
|
81
|
+
), to = v(Ee, "closeTrigger", { forwardAsChild: !0 });
|
|
82
|
+
v(J, "indicator", { forwardAsChild: !0 });
|
|
83
|
+
const no = v(
|
|
84
|
+
Q,
|
|
85
|
+
"title",
|
|
86
|
+
{ forwardAsChild: !0 }
|
|
87
|
+
), so = v(q, "description", { forwardAsChild: !0 }), io = v(
|
|
88
|
+
"footer",
|
|
89
|
+
"footer"
|
|
90
|
+
), ao = v(
|
|
91
|
+
"header",
|
|
92
|
+
"header"
|
|
93
|
+
), co = v(
|
|
94
|
+
"div",
|
|
95
|
+
"body"
|
|
96
|
+
), po = v(
|
|
97
|
+
M,
|
|
98
|
+
void 0,
|
|
99
|
+
{ forwardAsChild: !0 }
|
|
100
|
+
), lo = xe, uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
101
|
+
__proto__: null,
|
|
102
|
+
Anchor: po,
|
|
103
|
+
Arrow: ro,
|
|
104
|
+
ArrowTip: ee,
|
|
105
|
+
Body: co,
|
|
106
|
+
CloseTrigger: to,
|
|
107
|
+
Content: oo,
|
|
108
|
+
Context: lo,
|
|
109
|
+
Description: so,
|
|
110
|
+
Footer: io,
|
|
111
|
+
Header: ao,
|
|
112
|
+
Positioner: eo,
|
|
113
|
+
PropsProvider: Xe,
|
|
114
|
+
Root: Qe,
|
|
115
|
+
RootProvider: Ke,
|
|
116
|
+
Title: no,
|
|
117
|
+
Trigger: Ze,
|
|
118
|
+
usePopoverStyles: qe
|
|
119
|
+
}, Symbol.toStringTag, { value: "Module" })), [oe, T] = ke({
|
|
120
|
+
name: "HoverCardContext",
|
|
121
|
+
hookName: "useHoverCardContext",
|
|
122
|
+
providerName: "<HoverCardProvider />"
|
|
123
|
+
}), re = l((e, o) => {
|
|
124
|
+
const r = T(), t = p(r.getArrowProps(), e);
|
|
125
|
+
return /* @__PURE__ */ n.jsx(g.div, { ...t, ref: o });
|
|
126
|
+
});
|
|
127
|
+
re.displayName = "HoverCardArrow";
|
|
128
|
+
const te = l((e, o) => {
|
|
129
|
+
const r = T(), t = p(r.getArrowTipProps(), e);
|
|
130
|
+
return /* @__PURE__ */ n.jsx(g.div, { ...t, ref: o });
|
|
131
|
+
});
|
|
132
|
+
te.displayName = "HoverCardArrowTip";
|
|
133
|
+
const ne = l((e, o) => {
|
|
134
|
+
const r = T(), t = E(), s = p(r.getContentProps(), t.getPresenceProps(), e);
|
|
135
|
+
return t.unmounted ? null : /* @__PURE__ */ n.jsx(g.div, { ...s, ref: Ae(t.ref, o) });
|
|
136
|
+
});
|
|
137
|
+
ne.displayName = "HoverCardContent";
|
|
138
|
+
const go = (e) => e.children(T()), se = l((e, o) => {
|
|
139
|
+
const r = T(), t = p(r.getPositionerProps(), e);
|
|
140
|
+
return E().unmounted ? null : /* @__PURE__ */ n.jsx(g.div, { ...t, ref: o });
|
|
141
|
+
});
|
|
142
|
+
se.displayName = "HoverCardPositioner";
|
|
143
|
+
var vo = Ve("hoverCard").parts("arrow", "arrowTip", "trigger", "positioner", "content"), w = vo.build(), ie = (e) => e.ids?.trigger ?? `hover-card:${e.id}:trigger`, ae = (e) => e.ids?.content ?? `hover-card:${e.id}:content`, ce = (e) => e.ids?.positioner ?? `hover-card:${e.id}:popper`, Po = (e) => e.ids?.arrow ?? `hover-card:${e.id}:arrow`, k = (e) => e.getById(ie(e)), Co = (e) => e.getById(ae(e)), S = (e) => e.getById(ce(e));
|
|
144
|
+
function mo(e, o) {
|
|
145
|
+
const { state: r, send: t, prop: s, context: i, scope: c } = e, d = r.hasTag("open"), m = je({
|
|
146
|
+
...s("positioning"),
|
|
147
|
+
placement: i.get("currentPlacement")
|
|
148
|
+
});
|
|
149
|
+
return {
|
|
150
|
+
open: d,
|
|
151
|
+
setOpen(a) {
|
|
152
|
+
r.hasTag("open") !== a && t({ type: a ? "OPEN" : "CLOSE" });
|
|
153
|
+
},
|
|
154
|
+
reposition(a = {}) {
|
|
155
|
+
t({ type: "POSITIONING.SET", options: a });
|
|
156
|
+
},
|
|
157
|
+
getArrowProps() {
|
|
158
|
+
return o.element({
|
|
159
|
+
id: Po(c),
|
|
160
|
+
...w.arrow.attrs,
|
|
161
|
+
dir: s("dir"),
|
|
162
|
+
style: m.arrow
|
|
163
|
+
});
|
|
164
|
+
},
|
|
165
|
+
getArrowTipProps() {
|
|
166
|
+
return o.element({
|
|
167
|
+
...w.arrowTip.attrs,
|
|
168
|
+
dir: s("dir"),
|
|
169
|
+
style: m.arrowTip
|
|
170
|
+
});
|
|
171
|
+
},
|
|
172
|
+
getTriggerProps() {
|
|
173
|
+
return o.element({
|
|
174
|
+
...w.trigger.attrs,
|
|
175
|
+
dir: s("dir"),
|
|
176
|
+
"data-placement": i.get("currentPlacement"),
|
|
177
|
+
id: ie(c),
|
|
178
|
+
"data-state": d ? "open" : "closed",
|
|
179
|
+
onPointerEnter(a) {
|
|
180
|
+
a.pointerType !== "touch" && t({ type: "POINTER_ENTER", src: "trigger" });
|
|
181
|
+
},
|
|
182
|
+
onPointerLeave(a) {
|
|
183
|
+
a.pointerType !== "touch" && t({ type: "POINTER_LEAVE", src: "trigger" });
|
|
184
|
+
},
|
|
185
|
+
onFocus() {
|
|
186
|
+
t({ type: "TRIGGER_FOCUS" });
|
|
187
|
+
},
|
|
188
|
+
onBlur() {
|
|
189
|
+
t({ type: "TRIGGER_BLUR" });
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
},
|
|
193
|
+
getPositionerProps() {
|
|
194
|
+
return o.element({
|
|
195
|
+
id: ce(c),
|
|
196
|
+
...w.positioner.attrs,
|
|
197
|
+
dir: s("dir"),
|
|
198
|
+
style: m.floating
|
|
199
|
+
});
|
|
200
|
+
},
|
|
201
|
+
getContentProps() {
|
|
202
|
+
return o.element({
|
|
203
|
+
...w.content.attrs,
|
|
204
|
+
dir: s("dir"),
|
|
205
|
+
id: ae(c),
|
|
206
|
+
hidden: !d,
|
|
207
|
+
tabIndex: -1,
|
|
208
|
+
"data-state": d ? "open" : "closed",
|
|
209
|
+
"data-placement": i.get("currentPlacement"),
|
|
210
|
+
onPointerEnter(a) {
|
|
211
|
+
a.pointerType !== "touch" && t({ type: "POINTER_ENTER", src: "content" });
|
|
212
|
+
},
|
|
213
|
+
onPointerLeave(a) {
|
|
214
|
+
a.pointerType !== "touch" && t({ type: "POINTER_LEAVE", src: "content" });
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
var { not: y, and: $ } = Fe(), ho = $e({
|
|
221
|
+
props({ props: e }) {
|
|
222
|
+
return {
|
|
223
|
+
openDelay: 700,
|
|
224
|
+
closeDelay: 300,
|
|
225
|
+
...e,
|
|
226
|
+
positioning: {
|
|
227
|
+
placement: "bottom",
|
|
228
|
+
...e.positioning
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
},
|
|
232
|
+
initialState({ prop: e }) {
|
|
233
|
+
return e("open") || e("defaultOpen") ? "open" : "closed";
|
|
234
|
+
},
|
|
235
|
+
context({ prop: e, bindable: o }) {
|
|
236
|
+
return {
|
|
237
|
+
open: o(() => ({
|
|
238
|
+
defaultValue: e("defaultOpen"),
|
|
239
|
+
value: e("open"),
|
|
240
|
+
onChange(r) {
|
|
241
|
+
e("onOpenChange")?.({ open: r });
|
|
242
|
+
}
|
|
243
|
+
})),
|
|
244
|
+
currentPlacement: o(() => ({
|
|
245
|
+
defaultValue: void 0
|
|
246
|
+
})),
|
|
247
|
+
isPointer: o(() => ({
|
|
248
|
+
defaultValue: !1
|
|
249
|
+
}))
|
|
250
|
+
};
|
|
251
|
+
},
|
|
252
|
+
watch({ track: e, context: o, action: r }) {
|
|
253
|
+
e([() => o.get("open")], () => {
|
|
254
|
+
r(["toggleVisibility"]);
|
|
255
|
+
});
|
|
256
|
+
},
|
|
257
|
+
states: {
|
|
258
|
+
closed: {
|
|
259
|
+
tags: ["closed"],
|
|
260
|
+
entry: ["clearIsPointer"],
|
|
261
|
+
on: {
|
|
262
|
+
"CONTROLLED.OPEN": {
|
|
263
|
+
target: "open"
|
|
264
|
+
},
|
|
265
|
+
POINTER_ENTER: {
|
|
266
|
+
target: "opening",
|
|
267
|
+
actions: ["setIsPointer"]
|
|
268
|
+
},
|
|
269
|
+
TRIGGER_FOCUS: {
|
|
270
|
+
target: "opening"
|
|
271
|
+
},
|
|
272
|
+
OPEN: {
|
|
273
|
+
target: "opening"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
opening: {
|
|
278
|
+
tags: ["closed"],
|
|
279
|
+
effects: ["waitForOpenDelay"],
|
|
280
|
+
on: {
|
|
281
|
+
OPEN_DELAY: [
|
|
282
|
+
{
|
|
283
|
+
guard: "isOpenControlled",
|
|
284
|
+
actions: ["invokeOnOpen"]
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
target: "open",
|
|
288
|
+
actions: ["invokeOnOpen"]
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
"CONTROLLED.OPEN": {
|
|
292
|
+
target: "open"
|
|
293
|
+
},
|
|
294
|
+
"CONTROLLED.CLOSE": {
|
|
295
|
+
target: "closed"
|
|
296
|
+
},
|
|
297
|
+
POINTER_LEAVE: [
|
|
298
|
+
{
|
|
299
|
+
guard: "isOpenControlled",
|
|
300
|
+
// We trigger toggleVisibility manually since the `ctx.open` has not changed yet (at this point)
|
|
301
|
+
actions: ["invokeOnClose", "toggleVisibility"]
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
target: "closed",
|
|
305
|
+
actions: ["invokeOnClose"]
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
TRIGGER_BLUR: [
|
|
309
|
+
{
|
|
310
|
+
guard: $("isOpenControlled", y("isPointer")),
|
|
311
|
+
// We trigger toggleVisibility manually since the `ctx.open` has not changed yet (at this point)
|
|
312
|
+
actions: ["invokeOnClose", "toggleVisibility"]
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
guard: y("isPointer"),
|
|
316
|
+
target: "closed",
|
|
317
|
+
actions: ["invokeOnClose"]
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
CLOSE: [
|
|
321
|
+
{
|
|
322
|
+
guard: "isOpenControlled",
|
|
323
|
+
// We trigger toggleVisibility manually since the `ctx.open` has not changed yet (at this point)
|
|
324
|
+
actions: ["invokeOnClose", "toggleVisibility"]
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
target: "closed",
|
|
328
|
+
actions: ["invokeOnClose"]
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
open: {
|
|
334
|
+
tags: ["open"],
|
|
335
|
+
effects: ["trackDismissableElement", "trackPositioning"],
|
|
336
|
+
on: {
|
|
337
|
+
"CONTROLLED.CLOSE": {
|
|
338
|
+
target: "closed"
|
|
339
|
+
},
|
|
340
|
+
POINTER_ENTER: {
|
|
341
|
+
actions: ["setIsPointer"]
|
|
342
|
+
},
|
|
343
|
+
POINTER_LEAVE: {
|
|
344
|
+
target: "closing"
|
|
345
|
+
},
|
|
346
|
+
CLOSE: [
|
|
347
|
+
{
|
|
348
|
+
guard: "isOpenControlled",
|
|
349
|
+
actions: ["invokeOnClose"]
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
target: "closed",
|
|
353
|
+
actions: ["invokeOnClose"]
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
TRIGGER_BLUR: [
|
|
357
|
+
{
|
|
358
|
+
guard: $("isOpenControlled", y("isPointer")),
|
|
359
|
+
actions: ["invokeOnClose"]
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
guard: y("isPointer"),
|
|
363
|
+
target: "closed",
|
|
364
|
+
actions: ["invokeOnClose"]
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"POSITIONING.SET": {
|
|
368
|
+
actions: ["reposition"]
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
closing: {
|
|
373
|
+
tags: ["open"],
|
|
374
|
+
effects: ["trackPositioning", "waitForCloseDelay"],
|
|
375
|
+
on: {
|
|
376
|
+
CLOSE_DELAY: [
|
|
377
|
+
{
|
|
378
|
+
guard: "isOpenControlled",
|
|
379
|
+
actions: ["invokeOnClose"]
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
target: "closed",
|
|
383
|
+
actions: ["invokeOnClose"]
|
|
384
|
+
}
|
|
385
|
+
],
|
|
386
|
+
"CONTROLLED.CLOSE": {
|
|
387
|
+
target: "closed"
|
|
388
|
+
},
|
|
389
|
+
"CONTROLLED.OPEN": {
|
|
390
|
+
target: "open"
|
|
391
|
+
},
|
|
392
|
+
POINTER_ENTER: {
|
|
393
|
+
target: "open",
|
|
394
|
+
// no need to invokeOnOpen here because it's still open (but about to close)
|
|
395
|
+
actions: ["setIsPointer"]
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
implementations: {
|
|
401
|
+
guards: {
|
|
402
|
+
isPointer: ({ context: e }) => !!e.get("isPointer"),
|
|
403
|
+
isOpenControlled: ({ prop: e }) => e("open") != null
|
|
404
|
+
},
|
|
405
|
+
effects: {
|
|
406
|
+
waitForOpenDelay({ send: e, prop: o }) {
|
|
407
|
+
const r = setTimeout(() => {
|
|
408
|
+
e({ type: "OPEN_DELAY" });
|
|
409
|
+
}, o("openDelay"));
|
|
410
|
+
return () => clearTimeout(r);
|
|
411
|
+
},
|
|
412
|
+
waitForCloseDelay({ send: e, prop: o }) {
|
|
413
|
+
const r = setTimeout(() => {
|
|
414
|
+
e({ type: "CLOSE_DELAY" });
|
|
415
|
+
}, o("closeDelay"));
|
|
416
|
+
return () => clearTimeout(r);
|
|
417
|
+
},
|
|
418
|
+
trackPositioning({ context: e, prop: o, scope: r }) {
|
|
419
|
+
e.get("currentPlacement") || e.set("currentPlacement", o("positioning").placement);
|
|
420
|
+
const t = () => S(r);
|
|
421
|
+
return L(k(r), t, {
|
|
422
|
+
...o("positioning"),
|
|
423
|
+
defer: !0,
|
|
424
|
+
onComplete(s) {
|
|
425
|
+
e.set("currentPlacement", s.placement);
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
},
|
|
429
|
+
trackDismissableElement({ send: e, scope: o, prop: r }) {
|
|
430
|
+
return Be(() => Co(o), {
|
|
431
|
+
defer: !0,
|
|
432
|
+
exclude: [k(o)],
|
|
433
|
+
onDismiss() {
|
|
434
|
+
e({ type: "CLOSE", src: "interact-outside" });
|
|
435
|
+
},
|
|
436
|
+
onInteractOutside: r("onInteractOutside"),
|
|
437
|
+
onPointerDownOutside: r("onPointerDownOutside"),
|
|
438
|
+
onFocusOutside(s) {
|
|
439
|
+
s.preventDefault(), r("onFocusOutside")?.(s);
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
actions: {
|
|
445
|
+
invokeOnClose({ prop: e }) {
|
|
446
|
+
e("onOpenChange")?.({ open: !1 });
|
|
447
|
+
},
|
|
448
|
+
invokeOnOpen({ prop: e }) {
|
|
449
|
+
e("onOpenChange")?.({ open: !0 });
|
|
450
|
+
},
|
|
451
|
+
setIsPointer({ context: e }) {
|
|
452
|
+
e.set("isPointer", !0);
|
|
453
|
+
},
|
|
454
|
+
clearIsPointer({ context: e }) {
|
|
455
|
+
e.set("isPointer", !1);
|
|
456
|
+
},
|
|
457
|
+
reposition({ context: e, prop: o, scope: r, event: t }) {
|
|
458
|
+
const s = () => S(r);
|
|
459
|
+
L(k(r), s, {
|
|
460
|
+
...o("positioning"),
|
|
461
|
+
...t.options,
|
|
462
|
+
defer: !0,
|
|
463
|
+
listeners: !1,
|
|
464
|
+
onComplete(i) {
|
|
465
|
+
e.set("currentPlacement", i.placement);
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
},
|
|
469
|
+
toggleVisibility({ prop: e, event: o, send: r }) {
|
|
470
|
+
queueMicrotask(() => {
|
|
471
|
+
r({ type: e("open") ? "CONTROLLED.OPEN" : "CONTROLLED.CLOSE", previousEvent: o });
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
});
|
|
477
|
+
_e()([
|
|
478
|
+
"closeDelay",
|
|
479
|
+
"dir",
|
|
480
|
+
"getRootNode",
|
|
481
|
+
"id",
|
|
482
|
+
"ids",
|
|
483
|
+
"onOpenChange",
|
|
484
|
+
"defaultOpen",
|
|
485
|
+
"open",
|
|
486
|
+
"openDelay",
|
|
487
|
+
"positioning",
|
|
488
|
+
"onInteractOutside",
|
|
489
|
+
"onPointerDownOutside",
|
|
490
|
+
"onFocusOutside"
|
|
491
|
+
]);
|
|
492
|
+
const fo = (e) => {
|
|
493
|
+
const o = Te(), { getRootNode: r } = Ie(), { dir: t } = He(), s = {
|
|
494
|
+
id: o,
|
|
495
|
+
dir: t,
|
|
496
|
+
getRootNode: r,
|
|
497
|
+
...e
|
|
498
|
+
}, i = De(ho, s);
|
|
499
|
+
return mo(i, Le);
|
|
500
|
+
}, To = (e) => {
|
|
501
|
+
const [o, { children: r, ...t }] = B(e), s = fo(t), i = V(p({ present: s.open }, o));
|
|
502
|
+
return /* @__PURE__ */ n.jsx(oe, { value: s, children: /* @__PURE__ */ n.jsx(G, { value: i, children: r }) });
|
|
503
|
+
}, bo = (e) => {
|
|
504
|
+
const [o, { value: r, children: t }] = B(e), s = V(p({ present: r.open }, o));
|
|
505
|
+
return /* @__PURE__ */ n.jsx(oe, { value: r, children: /* @__PURE__ */ n.jsx(G, { value: s, children: t }) });
|
|
506
|
+
}, de = l((e, o) => {
|
|
507
|
+
const r = T(), t = p(r.getTriggerProps(), e);
|
|
508
|
+
return /* @__PURE__ */ n.jsx(g.button, { ...t, ref: o });
|
|
509
|
+
});
|
|
510
|
+
de.displayName = "HoverCardTrigger";
|
|
511
|
+
const {
|
|
512
|
+
withRootProvider: pe,
|
|
513
|
+
withContext: x,
|
|
514
|
+
PropsProvider: Oo
|
|
515
|
+
} = F({ key: "hoverCard" }), wo = pe(bo), xo = pe(
|
|
516
|
+
To
|
|
517
|
+
), yo = Oo, Eo = x(de, "trigger", { forwardAsChild: !0 }), No = x(se, "positioner", { forwardAsChild: !0 }), Ro = x(ne, "content", { forwardAsChild: !0 }), le = x(te, "arrowTip", { forwardAsChild: !0 }), ko = x(
|
|
518
|
+
re,
|
|
519
|
+
"arrow",
|
|
520
|
+
{
|
|
521
|
+
forwardAsChild: !0,
|
|
522
|
+
defaultProps: { children: /* @__PURE__ */ n.jsx(le, {}) }
|
|
523
|
+
}
|
|
524
|
+
), Ao = go, jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
525
|
+
__proto__: null,
|
|
526
|
+
Arrow: ko,
|
|
527
|
+
ArrowTip: le,
|
|
528
|
+
Content: Ro,
|
|
529
|
+
Context: Ao,
|
|
530
|
+
Positioner: No,
|
|
531
|
+
PropsProvider: yo,
|
|
532
|
+
Root: xo,
|
|
533
|
+
RootProvider: wo,
|
|
534
|
+
Trigger: Eo
|
|
535
|
+
}, Symbol.toStringTag, { value: "Module" })), ue = ({ children: e, ...o }) => /* @__PURE__ */ n.jsx(Ye, { className: "Text", "data-testid": "kibble-text", ...o, children: e });
|
|
536
|
+
ue.displayName = "Text";
|
|
537
|
+
const _o = Ce(ue), Io = [
|
|
538
|
+
"root",
|
|
539
|
+
"content",
|
|
540
|
+
"arrow",
|
|
541
|
+
"arrowTip",
|
|
542
|
+
"body",
|
|
543
|
+
"header",
|
|
544
|
+
"footer"
|
|
545
|
+
], Ho = {
|
|
546
|
+
xs: {
|
|
547
|
+
content: {
|
|
548
|
+
width: 160
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
sm: {
|
|
552
|
+
content: {
|
|
553
|
+
width: 200
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
md: {
|
|
557
|
+
content: {
|
|
558
|
+
width: 260
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
lg: {
|
|
562
|
+
content: {
|
|
563
|
+
width: 320
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
xl: {
|
|
567
|
+
content: {
|
|
568
|
+
width: 480
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
}, Do = {
|
|
572
|
+
default: {
|
|
573
|
+
arrowTip: {
|
|
574
|
+
borderColor: "border"
|
|
575
|
+
},
|
|
576
|
+
content: {
|
|
577
|
+
"--popover-bg": "colors.background.default",
|
|
578
|
+
"--hovercard-bg": "colors.background.default",
|
|
579
|
+
borderColor: "border",
|
|
580
|
+
color: "text.default"
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
defaultDestructive: {
|
|
584
|
+
arrowTip: {
|
|
585
|
+
borderColor: "border"
|
|
586
|
+
},
|
|
587
|
+
content: {
|
|
588
|
+
"--popover-bg": "colors.background.default",
|
|
589
|
+
"--hovercard-bg": "colors.background.default",
|
|
590
|
+
borderColor: "border",
|
|
591
|
+
color: "text.default"
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
contrast: {
|
|
595
|
+
arrowTip: {
|
|
596
|
+
borderColor: "border.contrast"
|
|
597
|
+
},
|
|
598
|
+
content: {
|
|
599
|
+
"--popover-bg": "colors.background.contrast",
|
|
600
|
+
"--hovercard-bg": "colors.background.contrast",
|
|
601
|
+
borderColor: "border.contrast",
|
|
602
|
+
color: "text.contrast"
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
contrastDestructive: {
|
|
606
|
+
arrowTip: {
|
|
607
|
+
borderColor: "border.contrast"
|
|
608
|
+
},
|
|
609
|
+
content: {
|
|
610
|
+
"--popover-bg": "colors.background.contrast",
|
|
611
|
+
"--hovercard-bg": "colors.background.contrast",
|
|
612
|
+
borderColor: "border.contrast",
|
|
613
|
+
color: "text.contrast"
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}, I = Ge({
|
|
617
|
+
slots: Io,
|
|
618
|
+
base: {
|
|
619
|
+
arrowTip: {
|
|
620
|
+
borderTopWidth: "1px",
|
|
621
|
+
borderInlineStartWidth: "1px"
|
|
622
|
+
},
|
|
623
|
+
body: {
|
|
624
|
+
p: 3
|
|
625
|
+
},
|
|
626
|
+
content: {
|
|
627
|
+
borderRadius: "base",
|
|
628
|
+
border: "1px"
|
|
629
|
+
},
|
|
630
|
+
footer: {
|
|
631
|
+
borderTop: 0,
|
|
632
|
+
borderRadius: "inherit",
|
|
633
|
+
pb: 3,
|
|
634
|
+
pt: 0,
|
|
635
|
+
px: 3
|
|
636
|
+
},
|
|
637
|
+
header: {
|
|
638
|
+
borderBottom: 0,
|
|
639
|
+
borderRadius: "inherit",
|
|
640
|
+
minH: 6,
|
|
641
|
+
pb: 0,
|
|
642
|
+
pt: 3,
|
|
643
|
+
px: 3,
|
|
644
|
+
w: "100%"
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
variants: {
|
|
648
|
+
size: Ho,
|
|
649
|
+
variant: Do
|
|
650
|
+
},
|
|
651
|
+
defaultVariants: {
|
|
652
|
+
size: "sm",
|
|
653
|
+
variant: "default"
|
|
654
|
+
}
|
|
655
|
+
}), Lo = ({
|
|
656
|
+
children: e,
|
|
657
|
+
color: o,
|
|
658
|
+
hideCloseButton: r = !1,
|
|
659
|
+
onContrast: t = !0,
|
|
660
|
+
onClose: s,
|
|
661
|
+
size: i = "sm",
|
|
662
|
+
trigger: c,
|
|
663
|
+
...d
|
|
664
|
+
}) => {
|
|
665
|
+
const a = _({ recipe: I })(), { setOpen: u } = (
|
|
666
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
667
|
+
c === "hover" ? T() : h()
|
|
668
|
+
);
|
|
669
|
+
return /* @__PURE__ */ n.jsxs(
|
|
670
|
+
j,
|
|
671
|
+
{
|
|
672
|
+
className: "Popover__HeaderWrapper",
|
|
673
|
+
"data-testid": "kibble-popover-header-wrapper",
|
|
674
|
+
css: a.header,
|
|
675
|
+
...d,
|
|
676
|
+
children: [
|
|
677
|
+
/* @__PURE__ */ n.jsx(
|
|
678
|
+
$o,
|
|
679
|
+
{
|
|
680
|
+
className: "Popover__Header",
|
|
681
|
+
"data-testid": "kibble-popover-header",
|
|
682
|
+
size: i,
|
|
683
|
+
color: o || "inherit",
|
|
684
|
+
children: e
|
|
685
|
+
}
|
|
686
|
+
),
|
|
687
|
+
!r && /* @__PURE__ */ n.jsx(
|
|
688
|
+
A,
|
|
689
|
+
{
|
|
690
|
+
className: "Popover__CloseButton",
|
|
691
|
+
"data-testid": "kibble-popover-close-button",
|
|
692
|
+
variant: "ghostNeutral",
|
|
693
|
+
onContrast: t,
|
|
694
|
+
onClick: s || (() => u(!1)),
|
|
695
|
+
iconName: "close",
|
|
696
|
+
position: "absolute",
|
|
697
|
+
right: 1,
|
|
698
|
+
top: 1,
|
|
699
|
+
size: "xs"
|
|
700
|
+
}
|
|
701
|
+
)
|
|
702
|
+
]
|
|
703
|
+
}
|
|
704
|
+
);
|
|
705
|
+
}, ge = ze("div", {
|
|
706
|
+
base: {
|
|
707
|
+
flex: 1,
|
|
708
|
+
justifySelf: "stretch",
|
|
709
|
+
alignSelf: "stretch"
|
|
710
|
+
}
|
|
711
|
+
});
|
|
712
|
+
ge.displayName = "Spacer";
|
|
713
|
+
const So = ({
|
|
714
|
+
children: e,
|
|
715
|
+
disabled: o,
|
|
716
|
+
hideButtons: r = !1,
|
|
717
|
+
hideCancelButton: t = !1,
|
|
718
|
+
destructive: s,
|
|
719
|
+
loading: i,
|
|
720
|
+
onCancel: c,
|
|
721
|
+
onContrast: d = !0,
|
|
722
|
+
onSubmit: m,
|
|
723
|
+
submitText: a = "Submit",
|
|
724
|
+
trigger: u,
|
|
725
|
+
...f
|
|
726
|
+
}) => {
|
|
727
|
+
const C = _({ recipe: I })(), { setOpen: P } = (
|
|
728
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
729
|
+
u === "hover" ? T() : h()
|
|
730
|
+
), N = () => {
|
|
731
|
+
c && c(), P(!1);
|
|
732
|
+
};
|
|
733
|
+
return /* @__PURE__ */ n.jsxs(
|
|
734
|
+
j,
|
|
735
|
+
{
|
|
736
|
+
className: "Popover__Footer",
|
|
737
|
+
"data-testid": "kibble-popover-footer",
|
|
738
|
+
css: C.footer,
|
|
739
|
+
...f,
|
|
740
|
+
children: [
|
|
741
|
+
e,
|
|
742
|
+
!r && /* @__PURE__ */ n.jsxs(j, { w: "100%", children: [
|
|
743
|
+
!t && /* @__PURE__ */ n.jsx(
|
|
744
|
+
A,
|
|
745
|
+
{
|
|
746
|
+
variant: "tertiary",
|
|
747
|
+
onContrast: d,
|
|
748
|
+
size: "sm",
|
|
749
|
+
onClick: N,
|
|
750
|
+
children: "Cancel"
|
|
751
|
+
}
|
|
752
|
+
),
|
|
753
|
+
/* @__PURE__ */ n.jsx(ge, {}),
|
|
754
|
+
/* @__PURE__ */ n.jsx(
|
|
755
|
+
A,
|
|
756
|
+
{
|
|
757
|
+
onClick: m,
|
|
758
|
+
loading: i,
|
|
759
|
+
disabled: o,
|
|
760
|
+
size: "sm",
|
|
761
|
+
onContrast: d,
|
|
762
|
+
variant: s ? "primaryDestructive" : "primary",
|
|
763
|
+
children: a
|
|
764
|
+
}
|
|
765
|
+
)
|
|
766
|
+
] })
|
|
767
|
+
]
|
|
768
|
+
}
|
|
769
|
+
);
|
|
770
|
+
}, ve = fe.forwardRef(
|
|
771
|
+
(e, o) => {
|
|
772
|
+
const {
|
|
773
|
+
allowEscape: r = !0,
|
|
774
|
+
anchor: t,
|
|
775
|
+
children: s,
|
|
776
|
+
contentProps: i,
|
|
777
|
+
footerProps: c,
|
|
778
|
+
headerProps: d,
|
|
779
|
+
disabled: m = !1,
|
|
780
|
+
portalled: a = !0,
|
|
781
|
+
placement: u = "bottom",
|
|
782
|
+
positioning: f,
|
|
783
|
+
size: b = "sm",
|
|
784
|
+
trigger: C = "click",
|
|
785
|
+
variant: P = "default",
|
|
786
|
+
...N
|
|
787
|
+
} = e, O = C === "hover" ? jo : uo, he = _({ recipe: I })({ variant: P, size: b });
|
|
788
|
+
if (!s || m) return /* @__PURE__ */ n.jsx(n.Fragment, {});
|
|
789
|
+
const R = P === "contrast" || P === "contrastDestructive";
|
|
790
|
+
return /* @__PURE__ */ n.jsxs(
|
|
791
|
+
O.Root,
|
|
792
|
+
{
|
|
793
|
+
closeOnEscape: r,
|
|
794
|
+
closeOnInteractOutside: r,
|
|
795
|
+
positioning: {
|
|
796
|
+
...f,
|
|
797
|
+
placement: f?.placement || u
|
|
798
|
+
},
|
|
799
|
+
size: b,
|
|
800
|
+
variant: P,
|
|
801
|
+
...N,
|
|
802
|
+
children: [
|
|
803
|
+
/* @__PURE__ */ n.jsx(
|
|
804
|
+
O.Trigger,
|
|
805
|
+
{
|
|
806
|
+
className: "Popover__Trigger",
|
|
807
|
+
"data-testid": "kibble-popover-trigger",
|
|
808
|
+
width: "max-content",
|
|
809
|
+
asChild: !0,
|
|
810
|
+
children: t
|
|
811
|
+
}
|
|
812
|
+
),
|
|
813
|
+
/* @__PURE__ */ n.jsx(Se, { disabled: !a, children: /* @__PURE__ */ n.jsx(O.Positioner, { className: "Popover", "data-testid": "kibble-popover", children: /* @__PURE__ */ n.jsxs(
|
|
814
|
+
O.Content,
|
|
815
|
+
{
|
|
816
|
+
className: "Popover__Content",
|
|
817
|
+
"data-testid": "kibble-popover-content",
|
|
818
|
+
ref: o,
|
|
819
|
+
p: 0,
|
|
820
|
+
...i,
|
|
821
|
+
children: [
|
|
822
|
+
/* @__PURE__ */ n.jsx(
|
|
823
|
+
O.Arrow,
|
|
824
|
+
{
|
|
825
|
+
className: "Popover__Arrow",
|
|
826
|
+
"data-testid": "kibble-popover-arrow",
|
|
827
|
+
children: /* @__PURE__ */ n.jsx(O.ArrowTip, { top: "-1px !important" })
|
|
828
|
+
}
|
|
829
|
+
),
|
|
830
|
+
d && /* @__PURE__ */ n.jsx(
|
|
831
|
+
Lo,
|
|
832
|
+
{
|
|
833
|
+
trigger: C,
|
|
834
|
+
onContrast: R,
|
|
835
|
+
...d
|
|
836
|
+
}
|
|
837
|
+
),
|
|
838
|
+
/* @__PURE__ */ n.jsx(
|
|
839
|
+
W,
|
|
840
|
+
{
|
|
841
|
+
className: "Popover__Body",
|
|
842
|
+
"data-testid": "kibble-popover-body",
|
|
843
|
+
css: he.body,
|
|
844
|
+
children: typeof s == "string" ? /* @__PURE__ */ n.jsx(
|
|
845
|
+
_o,
|
|
846
|
+
{
|
|
847
|
+
variant: R ? "onContrast" : "default",
|
|
848
|
+
size: "sm",
|
|
849
|
+
children: s
|
|
850
|
+
}
|
|
851
|
+
) : s
|
|
852
|
+
}
|
|
853
|
+
),
|
|
854
|
+
c && /* @__PURE__ */ n.jsx(
|
|
855
|
+
So,
|
|
856
|
+
{
|
|
857
|
+
trigger: C,
|
|
858
|
+
destructive: P === "contrastDestructive" || P === "defaultDestructive",
|
|
859
|
+
onContrast: R,
|
|
860
|
+
...c
|
|
861
|
+
}
|
|
862
|
+
)
|
|
863
|
+
]
|
|
864
|
+
}
|
|
865
|
+
) }) })
|
|
866
|
+
]
|
|
867
|
+
}
|
|
868
|
+
);
|
|
869
|
+
}
|
|
870
|
+
);
|
|
871
|
+
ve.displayName = "Popover";
|
|
872
|
+
const Pe = l(
|
|
873
|
+
(e, o) => {
|
|
874
|
+
const {
|
|
875
|
+
children: r,
|
|
876
|
+
disabled: t = !1,
|
|
877
|
+
openDelay: s = 350,
|
|
878
|
+
placement: i = "top",
|
|
879
|
+
label: c,
|
|
880
|
+
...d
|
|
881
|
+
} = e;
|
|
882
|
+
return r ? t ? r : /* @__PURE__ */ n.jsx(
|
|
883
|
+
ve,
|
|
884
|
+
{
|
|
885
|
+
placement: i,
|
|
886
|
+
trigger: "hover",
|
|
887
|
+
anchor: r,
|
|
888
|
+
variant: "contrast",
|
|
889
|
+
openDelay: s,
|
|
890
|
+
contentProps: {
|
|
891
|
+
width: "auto"
|
|
892
|
+
},
|
|
893
|
+
ref: o,
|
|
894
|
+
...d,
|
|
895
|
+
children: c
|
|
896
|
+
}
|
|
897
|
+
) : /* @__PURE__ */ n.jsx(n.Fragment, {});
|
|
898
|
+
}
|
|
899
|
+
);
|
|
900
|
+
Pe.displayName = "Tooltip";
|
|
901
|
+
const Ce = (e) => {
|
|
902
|
+
const o = H(e);
|
|
903
|
+
function r({
|
|
904
|
+
truncated: t = !1,
|
|
905
|
+
noOfLines: s = 1,
|
|
906
|
+
children: i,
|
|
907
|
+
tooltipProps: c,
|
|
908
|
+
...d
|
|
909
|
+
}) {
|
|
910
|
+
const [m, a] = be(!1), u = D(null), f = D(null), b = Oe(() => {
|
|
911
|
+
if (u.current) {
|
|
912
|
+
const C = u.current?.children[0].scrollHeight || 0, P = u.current?.offsetHeight || 0;
|
|
913
|
+
a(C > P);
|
|
914
|
+
}
|
|
915
|
+
}, []);
|
|
916
|
+
return we(() => {
|
|
917
|
+
if (t && u.current) {
|
|
918
|
+
let C;
|
|
919
|
+
const P = () => {
|
|
920
|
+
window.clearTimeout(C), C = window.setTimeout(b, 100);
|
|
921
|
+
};
|
|
922
|
+
return f.current = new ResizeObserver(() => {
|
|
923
|
+
P();
|
|
924
|
+
}), f.current.observe(u.current), b(), () => {
|
|
925
|
+
window.clearTimeout(C), f.current && f.current.disconnect();
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
}, [t, b]), t ? /* @__PURE__ */ n.jsx(
|
|
929
|
+
Pe,
|
|
930
|
+
{
|
|
931
|
+
...c,
|
|
932
|
+
label: c?.label || i?.toLocaleString() || "",
|
|
933
|
+
disabled: !m,
|
|
934
|
+
"data-testid": "kibble-truncated-text-tooltip",
|
|
935
|
+
children: /* @__PURE__ */ n.jsx(
|
|
936
|
+
W,
|
|
937
|
+
{
|
|
938
|
+
ref: u,
|
|
939
|
+
display: "inline-block",
|
|
940
|
+
position: "relative",
|
|
941
|
+
className: "TruncatedText__Wrapper",
|
|
942
|
+
"data-testid": "kibble-truncated-text-wrapper",
|
|
943
|
+
children: /* @__PURE__ */ n.jsx(
|
|
944
|
+
o,
|
|
945
|
+
{
|
|
946
|
+
className: "TruncatedText__TextContent",
|
|
947
|
+
"data-testid": "kibble-truncated-text-content",
|
|
948
|
+
lineClamp: s,
|
|
949
|
+
...d,
|
|
950
|
+
children: i
|
|
951
|
+
}
|
|
952
|
+
)
|
|
953
|
+
}
|
|
954
|
+
)
|
|
955
|
+
}
|
|
956
|
+
) : /* @__PURE__ */ n.jsx(o, { ...d, children: i });
|
|
957
|
+
}
|
|
958
|
+
return r.displayName = `withTruncation(${e.displayName || e.name}`, H(r);
|
|
959
|
+
}, me = ({ children: e, ...o }) => /* @__PURE__ */ n.jsx(Me, { className: "Heading", "data-testid": "kibble-heading", ...o, children: e });
|
|
960
|
+
me.displayName = "Heading";
|
|
961
|
+
const $o = Ce(me);
|
|
962
|
+
export {
|
|
963
|
+
ve as P,
|
|
964
|
+
Pe as T,
|
|
965
|
+
$o as W,
|
|
966
|
+
_o as a,
|
|
967
|
+
Qe as b,
|
|
968
|
+
Ze as c,
|
|
969
|
+
eo as d,
|
|
970
|
+
oo as e,
|
|
971
|
+
ro as f,
|
|
972
|
+
co as g,
|
|
973
|
+
vo as h,
|
|
974
|
+
I as p
|
|
975
|
+
};
|
|
976
|
+
//# sourceMappingURL=heading.component-d5jKnwm5.js.map
|