@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,2 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./jsx-runtime-BjDatQAs.js"),d=require("react"),c=require("./text.component-CnnBhB3c.js"),R=require("./config-BFcXpdZo.js"),f=require("./use-recipe-DaPWl_pL.js"),g=require("./flex-D14H6HbP.js"),v=require("./withFormControl-DpytztWF.js"),h=require("./box-Baq7UBls.js"),C=R.defineRecipe({base:{alignItems:"center",border:"2px",borderColor:"border.focus",borderRadius:"full",fontSize:"lg",justifyContent:"center",mb:1,mr:1},variants:{variant:{default:{bgColor:"background.secondary",color:"text.contrast",cursor:"default",h:"40px",w:"40px"},interactive:{bgColor:"transparent",color:"text.interactive",cursor:"pointer",h:"60px",w:"60px","&[data-disabled][data-active]":{bgColor:"background.secondary",color:"text.contrast"},_active:{bgColor:"background.secondary",color:"text.contrast",_hover:{bgColor:"background.secondary"}},_disabled:{cursor:"not-allowed",opacity:.6},_hover:{bgColor:"background.secondaryAlpha.hover"},_invalid:{borderColor:"border.danger"}}}},defaultVariants:{variant:"default"}}),y=({active:s,disabled:u,invalid:l,number:e,onClick:r})=>{const a=r?"interactive":"default",o=f.useRecipe({recipe:C})({variant:a}),p=d.useCallback(i=>{i.preventDefault(),r&&r(e)},[e,r]);return t.jsxRuntimeExports.jsx(g.Flex,{...s&&{"data-active":"true"},...u?{"data-disabled":"true"}:{onClick:p},...l&&{"data-invalid":"true"},css:o,children:e})},E=v.withFormControl(({centeredLabel:s,disabled:u,invalid:l,minLabel:e,minValue:r,maxLabel:a,maxValue:x,onChange:o,value:p})=>{const i=d.useMemo(()=>Math.round(r),[r]),b=d.useMemo(()=>Math.round(x),[x]),m=d.useMemo(()=>{const n=[];for(let j=i;j<=b;j++)n.push(j);return n},[b,i]);return t.jsxRuntimeExports.jsxs(h.Box,{className:"RatingDots","data-testid":"kibble-rating-dots",children:[t.jsxRuntimeExports.jsx(g.Flex,{className:"RatingDots__Container","data-testid":"kibble-rating-dots-container",my:4,flexWrap:"wrap",justifyContent:o?"center":"flex-start",children:m.map(n=>t.jsxRuntimeExports.jsx(y,{number:n,active:n===p,disabled:u,invalid:l,onClick:o},`rating-dot-${n}`))}),(s||e||a)&&t.jsxRuntimeExports.jsx(g.Flex,{className:"RatingDots__Label","data-testid":"kibble-rating-dots-label",justifyContent:o?s?"center":"space-between":"flex-start",children:s?t.jsxRuntimeExports.jsx(c.WrappedText,{variant:"subtle",size:"sm",children:s}):t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[e&&t.jsxRuntimeExports.jsx(c.WrappedText,{variant:"subtle",size:"sm",children:`${i} - ${e}`}),!o&&t.jsxRuntimeExports.jsx(c.WrappedText,{variant:"subtle",size:"sm",pr:1,children:","}),a&&t.jsxRuntimeExports.jsx(c.WrappedText,{variant:"subtle",size:"sm",children:`${b} - ${a}`})]})})]})});exports.RatingDots=E;
|
|
2
|
-
//# sourceMappingURL=ratingDots.component-qbroWQhZ.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./use-locale-context-BdqHZ8L8.js"),[r,o]=e.createContext({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),n=t=>e.createSplitProps()(t,["lazyMount","unmountOnExit"]);exports.RenderStrategyPropsProvider=r;exports.splitRenderStrategyProps=n;exports.useRenderStrategyPropsContext=o;
|
|
2
|
-
//# sourceMappingURL=render-strategy-BmWbSgqh.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-BjDatQAs.js"),c=require("react"),se=require("./withFormControl-DpytztWF.js"),oe=require("./icon.component-C0e0UGBw.js"),ne=require("./button.component-Dd9AfGox.js"),T=require("./text.component-CnnBhB3c.js"),le=require("./spinner.component-CzhcJOwX.js"),l=require("./use-locale-context-BdqHZ8L8.js"),ce=require("./create-slot-recipe-context-IwVIgtBt.js"),C=require("./icons-CTpAjbC-.js"),N=require("./use-field-context--wBJQY1R.js"),d=require("./index-CZ42b9rT.js"),h=require("./index-BDnnTdaJ.js"),ie=require("./tooltip.component-CwrXAVEq.js"),ae=require("./textInput.component-D-galjwy.js"),de=require("./box-Baq7UBls.js"),y=require("./flex-D14H6HbP.js"),ue=t=>t&&t.__esModule?t:{default:t},pe=ue(c),xe=t=>new h.ListCollection(t),[k,p]=l.createContext({name:"SelectContext",hookName:"useSelectContext",providerName:"<SelectProvider />"}),q=c.forwardRef((t,n)=>{const s=p(),r=d.mergeProps(s.getClearTriggerProps(),t);return e.jsxRuntimeExports.jsx(l.ark.button,{...r,ref:n})});q.displayName="SelectClearTrigger";const G=c.forwardRef((t,n)=>{const s=p(),r=l.usePresenceContext(),o=d.mergeProps(s.getContentProps(),r.getPresenceProps(),t);return r.unmounted?null:e.jsxRuntimeExports.jsx(l.ark.div,{...o,ref:l.composeRefs(r.ref,n)})});G.displayName="SelectContent";const _=c.forwardRef((t,n)=>{const s=p(),r=d.mergeProps(s.getControlProps(),t);return e.jsxRuntimeExports.jsx(l.ark.div,{...r,ref:n})});_.displayName="SelectControl";const A=c.forwardRef((t,n)=>{const s=p(),r=d.mergeProps(s.getHiddenSelectProps(),t),o=s.value.length===0,i=N.useFieldContext();return e.jsxRuntimeExports.jsxs(l.ark.select,{"aria-describedby":i?.ariaDescribedby,...r,ref:n,children:[o&&e.jsxRuntimeExports.jsx("option",{value:""}),s.collection.items.map((a,m)=>e.jsxRuntimeExports.jsx("option",{value:s.collection.getItemValue(a)??"",disabled:s.collection.getItemDisabled(a),children:s.collection.stringifyItem(a)},m))]})});A.displayName="SelectHiddenSelect";const O=c.forwardRef((t,n)=>{const s=p(),r=d.mergeProps(s.getIndicatorProps(),t);return e.jsxRuntimeExports.jsx(l.ark.div,{...r,ref:n})});O.displayName="SelectIndicator";const[me,Oe]=l.createContext({name:"SelectItemContext",hookName:"useSelectItemContext",providerName:"<SelectItemProvider />"}),[Pe,F]=l.createContext({name:"SelectItemPropsContext",hookName:"useSelectItemPropsContext",providerName:"<SelectItemPropsProvider />"}),L=c.forwardRef((t,n)=>{const[s,r]=l.createSplitProps()(t,["item","persistFocus"]),o=p(),i=d.mergeProps(o.getItemProps(s),r),a=o.getItemState(s);return e.jsxRuntimeExports.jsx(Pe,{value:s,children:e.jsxRuntimeExports.jsx(me,{value:a,children:e.jsxRuntimeExports.jsx(l.ark.div,{...i,ref:n})})})});L.displayName="SelectItem";const[je,ge]=l.createContext({name:"SelectItemGroupPropsContext",hookName:"useSelectItemGroupPropsContext",providerName:"<SelectItemGroupPropsProvider />"}),V=c.forwardRef((t,n)=>{const s=c.useId(),[r,o]=l.createSplitProps()(t,["id"]),i={id:s,...r},a=p(),m=d.mergeProps(a.getItemGroupProps(i),o);return e.jsxRuntimeExports.jsx(je,{value:i,children:e.jsxRuntimeExports.jsx(l.ark.div,{...m,ref:n})})});V.displayName="SelectItemGroup";const $=c.forwardRef((t,n)=>{const s=p(),r=ge(),o=d.mergeProps(s.getItemGroupLabelProps({htmlFor:r.id}),t);return e.jsxRuntimeExports.jsx(l.ark.div,{...o,ref:n})});$.displayName="SelectItemGroupLabel";const H=c.forwardRef((t,n)=>{const s=p(),r=F(),o=d.mergeProps(s.getItemIndicatorProps(r),t);return e.jsxRuntimeExports.jsx(l.ark.div,{...o,ref:n})});H.displayName="SelectItemIndicator";const D=c.forwardRef((t,n)=>{const s=p(),r=F(),o=d.mergeProps(s.getItemTextProps(r),t);return e.jsxRuntimeExports.jsx(l.ark.span,{...o,ref:n})});D.displayName="SelectItemText";const W=c.forwardRef((t,n)=>{const s=p(),r=d.mergeProps(s.getLabelProps(),t);return e.jsxRuntimeExports.jsx(l.ark.label,{...r,ref:n})});W.displayName="SelectLabel";const M=c.forwardRef((t,n)=>{const s=p(),r=d.mergeProps(s.getPositionerProps(),t);return l.usePresenceContext().unmounted?null:e.jsxRuntimeExports.jsx(l.ark.div,{...r,ref:n})});M.displayName="SelectPositioner";const fe=t=>{const n=c.useId(),{dir:s}=l.useLocaleContext(),{getRootNode:r}=l.useEnvironmentContext(),o=N.useFieldContext(),i={id:n,ids:{label:o?.ids.label,hiddenSelect:o?.ids.control},disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,dir:s,getRootNode:r,...t},a=l.useMachine(h.machine,i);return h.connect(a,l.normalizeProps)},Se=(t,n)=>{const[s,r]=l.splitPresenceProps(t),[o,i]=l.createSplitProps()(r,["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","disabled","form","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),a=fe(o),m=l.usePresence(d.mergeProps({present:a.open},s)),g=d.mergeProps(a.getRootProps(),i);return e.jsxRuntimeExports.jsx(k,{value:a,children:e.jsxRuntimeExports.jsx(l.PresenceProvider,{value:m,children:e.jsxRuntimeExports.jsx(l.ark.div,{...g,ref:n})})})},Re=c.forwardRef(Se),he=(t,n)=>{const[s,r]=l.splitPresenceProps(t),[{value:o},i]=l.createSplitProps()(r,["value"]),a=l.usePresence(d.mergeProps({present:o.open},s)),m=d.mergeProps(o.getRootProps(),i);return e.jsxRuntimeExports.jsx(k,{value:o,children:e.jsxRuntimeExports.jsx(l.PresenceProvider,{value:a,children:e.jsxRuntimeExports.jsx(l.ark.div,{...m,ref:n})})})},Ce=c.forwardRef(he),B=c.forwardRef((t,n)=>{const s=p(),r=d.mergeProps(s.getTriggerProps(),t);return e.jsxRuntimeExports.jsx(l.ark.button,{...r,ref:n})});B.displayName="SelectTrigger";const z=c.forwardRef((t,n)=>{const{children:s,placeholder:r,...o}=t,i=p(),a=d.mergeProps(i.getValueTextProps(),o);return e.jsxRuntimeExports.jsx(l.ark.span,{...a,ref:n,children:s||i.valueAsString||r})});z.displayName="SelectValueText";const{withProvider:J,withContext:x}=ce.createSlotRecipeContext({key:"select"});J(Ce,"root",{forwardAsChild:!0});const ve=J(Re,"root",{forwardAsChild:!0,defaultProps:{positioning:{sameWidth:!0}}}),Ee=x(B,"trigger",{forwardAsChild:!0}),Ie=x(M,"positioner",{forwardAsChild:!0}),be=x(G,"content",{forwardAsChild:!0}),we=x(z,"valueText",{forwardAsChild:!0}),ye=x(q,"clearTrigger",{forwardAsChild:!0,defaultProps:{children:e.jsxRuntimeExports.jsx(C.CloseIcon,{boxSize:"1em"})}});x(V,"itemGroup",{forwardAsChild:!0});x($,"itemGroupLabel",{forwardAsChild:!0});const Te=x(L,"item",{forwardAsChild:!0});x(D,"itemText",{forwardAsChild:!0});x(H,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:e.jsxRuntimeExports.jsx(C.CheckIcon,{})}});const Ne=x("div","indicatorGroup");x(O,"indicator",{forwardAsChild:!0,defaultProps:{children:e.jsxRuntimeExports.jsx(C.ChevronDownIcon,{})}});const ke=x(_,"control",{forwardAsChild:!0});x(W,"label",{forwardAsChild:!0});const qe=A,K=({item:t,onContrast:n,shouldTruncateText:s,size:r})=>e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[t.leftElement,typeof t.label=="string"?e.jsxRuntimeExports.jsx(T.WrappedText,{size:r,truncated:s,variant:t.variant||(n?"onContrast":"default"),children:t.label}):t.label]}),Ge=({placeholder:t="",placeholderElement:n,...s})=>{const r=p(),o=c.useMemo(()=>r.selectedItems[0],[r]);return e.jsxRuntimeExports.jsxs(Ee,{children:[!o&&n,e.jsxRuntimeExports.jsx(we,{placeholder:t,children:o&&e.jsxRuntimeExports.jsx(K,{item:o,...s})})]})},_e=se.withFormControl(({clearable:t,emptyPlaceholder:n="No options available",loading:s,onContrast:r,onSearch:o,options:i,placeholder:a="",placeholderElement:m,searchable:g=!1,searchPlaceholder:U="Search...",selectRef:X,shouldTruncateText:v=!0,size:P="md",...Y})=>{const{contentRef:Z}=ie.useModalContentRef(),ee=r?"onContrast":"default",[f,E]=c.useState(""),[I,b]=c.useState(i),S=c.useMemo(()=>xe({items:I??[],itemToString:u=>typeof u.label=="string"?u.label:u.valueText||"",itemToValue:u=>u.value}),[I]),w=c.useCallback((u,j)=>u===""||!u?j:(console.log(u,j),j.filter(R=>!!(typeof R.label=="string"?R.label:R.valueText)?.toLowerCase().includes(u.toLowerCase()))),[]);c.useEffect(()=>{b(o?i:w(f,i))},[i,f,o,w]);const te=c.useCallback(u=>{const j=u.target.value;E(j),o&&o(u)},[o]),re=c.useCallback(()=>{E(""),o&&o({target:{value:""}})},[o]);return e.jsxRuntimeExports.jsxs(ve,{className:"Select","data-testid":"kibble-select",collection:S,size:P,variant:ee,...Y,children:[e.jsxRuntimeExports.jsx(qe,{ref:X}),e.jsxRuntimeExports.jsxs(ke,{children:[e.jsxRuntimeExports.jsx(Ge,{placeholder:a,placeholderElement:m,onContrast:!!r,shouldTruncateText:!!v,size:P}),e.jsxRuntimeExports.jsxs(Ne,{children:[t&&e.jsxRuntimeExports.jsx(ye,{asChild:!0,children:e.jsxRuntimeExports.jsx(ne.Button,{iconName:"close",onContrast:r,size:P==="lg"?"sm":"xs",variant:"ghostNeutral"})}),e.jsxRuntimeExports.jsx(oe.Icon,{name:"chevronDown",size:P,variant:r?"onContrast":"default"})]})]}),e.jsxRuntimeExports.jsx(l.Portal,{container:Z||void 0,children:e.jsxRuntimeExports.jsx(Ie,{children:e.jsxRuntimeExports.jsxs(be,{children:[g&&e.jsxRuntimeExports.jsx(de.Box,{className:"Select__Header","data-testid":"kibble-select-header",m:"0 12px 8px",children:e.jsxRuntimeExports.jsx(ae.WrappedTextInput,{className:"Select__SearchBar","data-testid":"kibble-select-search-bar",placeholder:U,onChange:te,size:"sm",value:f,clearable:!0,onClear:re,formControlStyle:{mt:1}})}),s?e.jsxRuntimeExports.jsx(y.Flex,{w:"100%",justifyContent:"center",py:3,children:e.jsxRuntimeExports.jsx(le.Spinner,{variant:r?"brandOnContrast":"brand",size:P})}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:S.items.length?S.items.map(u=>e.jsxRuntimeExports.jsx(Te,{item:u,children:e.jsxRuntimeExports.jsx(K,{item:u,onContrast:!!r,shouldTruncateText:!!v,size:P})},u.value)):e.jsxRuntimeExports.jsx(y.Flex,{w:"100%",justifyContent:"center",py:3,children:e.jsxRuntimeExports.jsx(T.WrappedText,{size:"sm",variant:r?"subtleOnContrast":"subtle",children:n})})})]})})})]})}),Q=pe.default.forwardRef((t,n)=>e.jsxRuntimeExports.jsx(_e,{selectRef:n,...t}));Q.displayName="Select";exports.WrappedSelect=Q;
|
|
2
|
-
//# sourceMappingURL=select.component-C_Fs6Xeq.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spinner-BWqSIW6m.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/spinner/spinner.js"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"spinner\"\n});\nconst Spinner = withContext(\"span\");\nconst SpinnerPropsProvider = PropsProvider;\n\nexport { Spinner, SpinnerPropsProvider };\n"],"names":["withContext","createRecipeContext","Spinner"],"mappings":";AAIA,MAAM,EAAE,aAAAA,EAA2B,IAAIC,EAAoB;AAAA,EACzD,KAAK;AACP,CAAC,GACKC,IAAUF,EAAY,MAAM;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spinner-BnpL14kK.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/spinner/spinner.js"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"spinner\"\n});\nconst Spinner = withContext(\"span\");\nconst SpinnerPropsProvider = PropsProvider;\n\nexport { Spinner, SpinnerPropsProvider };\n"],"names":["withContext","createRecipeContext","Spinner"],"mappings":"oEAIM,CAAE,YAAAA,CAA2B,EAAIC,sBAAoB,CACzD,IAAK,SACP,CAAC,EACKC,EAAUF,EAAY,MAAM","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./jsx-runtime-BjDatQAs.js"),c=require("./text.component-CnnBhB3c.js"),n=require("./typography-CtiaGoJG.js"),y=require("./config-BFcXpdZo.js"),S=require("./use-slot-recipe-8liupslO.js"),d=require("./v-stack-DxjgpeJ0.js"),h=require("./spinner-BnpL14kK.js"),u=["root","spinner","label"],g={xs:{spinner:{h:3,w:3},label:{fontSize:"xs"}},sm:{spinner:{h:4,w:4},label:{fontSize:"sm"}},md:{spinner:{h:6,w:6,"--spinner-size":6},label:{fontSize:"md"}},lg:{spinner:{h:8,w:8},label:{fontSize:"lg"}},xl:{spinner:{h:12,w:12},label:{fontSize:"xl"}}},b={accent:{spinner:n.typographyVariantStyles.accent},accentSubtle:{spinner:n.typographyVariantStyles.accentSubtle},brand:{spinner:n.typographyVariantStyles.brand},brandOnContrast:{spinner:n.typographyVariantStyles.brandOnContrast},danger:{spinner:n.typographyVariantStyles.danger},dangerOnContrast:{spinner:n.typographyVariantStyles.dangerOnContrast},default:{spinner:n.typographyVariantStyles.default},info:{spinner:n.typographyVariantStyles.info},interactive:{spinner:n.typographyVariantStyles.interactive},interactiveOnContrast:{spinner:n.typographyVariantStyles.interactiveOnContrast},onContrast:{spinner:n.typographyVariantStyles.onContrast},placeholder:{spinner:n.typographyVariantStyles.placeholder},placeholderOnContrast:{spinner:n.typographyVariantStyles.placeholderOnContrast},subtle:{spinner:n.typographyVariantStyles.subtle},subtleOnContrast:{spinner:n.typographyVariantStyles.subtleOnContrast},success:{spinner:n.typographyVariantStyles.success},warning:{spinner:n.typographyVariantStyles.warning}},x=y.defineSlotRecipe({slots:u,base:{root:{alignItems:"center",justifyContent:"center"}},variants:{variant:b,size:g,fullScreen:{true:{root:{h:"100%",left:0,top:0,position:"absolute",w:"100%",zIndex:"tooltipExtra"}},false:{root:{h:"max-content",w:"max-content"}}}},defaultVariants:{fullScreen:!1,size:"md",variant:"brand"}}),V=({backdropColor:s="background.alpha.pressed",fullScreen:r=!1,label:a="Loading...",labelProps:i,showLabel:p=!1,size:o="md",variant:l="accent"})=>{const e=S.useSlotRecipe({recipe:x})({variant:l,size:o,fullScreen:r});return t.jsxRuntimeExports.jsxs(d.VStack,{className:"Spinner","data-testid":"kibble-spinner",css:e.root,...r&&{bg:s},children:[t.jsxRuntimeExports.jsx(h.Spinner,{css:e.spinner}),p&&t.jsxRuntimeExports.jsx(c.WrappedText,{className:"Spinner__Label","data-testid":"kibble-spinner-label",variant:"subtle",css:e.label,...i,children:a})]})};exports.Spinner=V;
|
|
2
|
-
//# sourceMappingURL=spinner.component-CzhcJOwX.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("./jsx-runtime-BjDatQAs.js"),c=require("react"),y=require("./withFormControl-DpytztWF.js"),w=require("./attr-BMs6szZx.js"),E=require("./create-slot-recipe-context-IwVIgtBt.js"),m=require("./factory-D6tdBUPG.js"),n=require("./use-locale-context-BdqHZ8L8.js"),f=require("./use-field-context--wBJQY1R.js"),l=require("./index-CZ42b9rT.js"),x=require("./index-Dyxhds_1.js"),q=t=>t&&t.__esModule?t:{default:t},N=q(c),[R,u]=n.createContext({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),S=c.forwardRef((t,e)=>{const r=u(),s=l.mergeProps(r.getControlProps(),t);return i.jsxRuntimeExports.jsx(n.ark.span,{...s,ref:e})});S.displayName="SwitchControl";const j=c.forwardRef((t,e)=>{const r=u(),s=l.mergeProps(r.getHiddenInputProps(),t),o=f.useFieldContext();return i.jsxRuntimeExports.jsx(n.ark.input,{"aria-describedby":o?.ariaDescribedby,...s,ref:e})});j.displayName="SwitchHiddenInput";const C=c.forwardRef((t,e)=>{const r=u(),s=l.mergeProps(r.getLabelProps(),t);return i.jsxRuntimeExports.jsx(n.ark.span,{...s,ref:e})});C.displayName="SwitchLabel";const I=t=>{const e=c.useId(),{getRootNode:r}=n.useEnvironmentContext(),{dir:s}=n.useLocaleContext(),o=f.useFieldContext(),a={id:e,ids:{label:o?.ids.label,hiddenInput:o?.ids.control},dir:s,disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,getRootNode:r,...t},d=n.useMachine(x.machine,a);return x.connect(d,n.normalizeProps)},b=c.forwardRef((t,e)=>{const[r,s]=n.createSplitProps()(t,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),o=I(r),a=l.mergeProps(o.getRootProps(),s);return i.jsxRuntimeExports.jsx(R,{value:o,children:i.jsxRuntimeExports.jsx(n.ark.label,{...a,ref:e})})});b.displayName="SwitchRoot";const P=c.forwardRef((t,e)=>{const[{value:r},s]=n.createSplitProps()(t,["value"]),o=l.mergeProps(r.getRootProps(),s);return i.jsxRuntimeExports.jsx(R,{value:r,children:i.jsxRuntimeExports.jsx(n.ark.label,{...o,ref:e})})});P.displayName="SwitchRootProvider";const k=c.forwardRef((t,e)=>{const r=u(),s=l.mergeProps(r.getThumbProps(),t);return i.jsxRuntimeExports.jsx(n.ark.span,{...s,ref:e})});k.displayName="SwitchThumb";const{withProvider:g,withContext:p,useStyles:_}=E.createSlotRecipeContext({key:"switch"});g(P,"root",{forwardAsChild:!0});const A=g(b,"root",{forwardAsChild:!0}),L=p(C,"label",{forwardAsChild:!0}),$=p(k,"thumb",{forwardAsChild:!0}),F=p(S,"control",{forwardAsChild:!0,defaultProps:{children:i.jsxRuntimeExports.jsx($,{})}});c.forwardRef(function(e,r){const s=u(),o=_(),{fallback:a,children:d,...h}=e;return i.jsxRuntimeExports.jsx(m.chakra.span,{ref:r,"data-checked":w.dataAttr(s.checked),...h,css:[o.indicator,e.css],children:s.checked?d:a})});c.forwardRef(function(e,r){const s=u(),{fallback:o,children:a,...d}=e;return i.jsxRuntimeExports.jsx(m.chakra.span,{ref:r,"data-checked":w.dataAttr(s.checked),...d,children:s.checked?a:o})});const T=j,H=y.withFormControl(({children:t,indeterminate:e=!1,onContrast:r,label:s,size:o="md",switchRef:a,...d})=>{const h=c.useMemo(()=>e?r?"indeterminateOnContrast":"indeterminate":r?"onContrast":"default",[e,r]);return i.jsxRuntimeExports.jsxs(A,{className:"Switch","data-testid":"kibble-switch",ref:a,size:o,variant:h,...d,children:[i.jsxRuntimeExports.jsx(T,{className:"Switch_Input","data-testid":"kibble-switch-input"}),i.jsxRuntimeExports.jsx(F,{className:"Switch_Control","data-testid":"kibble-switch-control"}),!!t&&i.jsxRuntimeExports.jsx(L,{children:t})]})}),v=N.default.forwardRef((t,e)=>i.jsxRuntimeExports.jsx(H,{switchRef:e,...t}));v.displayName="Switch";exports.WrappedSwitch=v;
|
|
2
|
-
//# sourceMappingURL=switch.component-B3Gfgft9.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("./jsx-runtime-BjDatQAs.js"),_=require("./icon.component-C0e0UGBw.js"),M=require("./notificationCounter.component-BhZcuBmr.js"),H=require("./heading.component-ZD_UVarx.js"),X=require("./create-slot-recipe-context-IwVIgtBt.js"),p=require("react"),u=require("./use-locale-context-BdqHZ8L8.js"),x=require("./render-strategy-BmWbSgqh.js"),n=require("./index-CZ42b9rT.js");function K(e,t){const[s,a]=p.useState(e);return p.useEffect(()=>{const o=setTimeout(()=>{a(e)},t);return()=>{clearTimeout(o)}},[e,t]),s}const[N,A]=u.createContext({name:"TabsContext",hookName:"useTabsContext",providerName:"<TabsProvider />"}),S=p.forwardRef((e,t)=>{const[s,a]=u.createSplitProps()(e,["value"]),o=A(),r=x.useRenderStrategyPropsContext(),i=u.usePresence({...r,present:K(o.value===e.value,0),immediate:!0}),g=n.mergeProps(o.getContentProps(s),i.getPresenceProps(),a);return l.jsxRuntimeExports.jsx(u.PresenceProvider,{value:i,children:i.unmounted?null:l.jsxRuntimeExports.jsx(u.ark.div,{...g,ref:u.composeRefs(i.ref,t)})})});S.displayName="TabContent";const L=p.forwardRef((e,t)=>{const s=A(),a=n.mergeProps(s.getIndicatorProps(),e);return l.jsxRuntimeExports.jsx(u.ark.div,{...a,ref:t})});L.displayName="TabIndicator";const O=p.forwardRef((e,t)=>{const s=A(),a=n.mergeProps(s.getListProps(),e);return l.jsxRuntimeExports.jsx(u.ark.div,{...a,ref:t})});O.displayName="TabList";const k=p.forwardRef((e,t)=>{const[s,a]=u.createSplitProps()(e,["disabled","value"]),o=A(),r=n.mergeProps(o.getTriggerProps(s),a);return l.jsxRuntimeExports.jsx(u.ark.button,{...r,ref:t})});k.displayName="TabTrigger";var G=n.createAnatomy("tabs").parts("root","list","trigger","content","indicator"),m=G.build(),Y=e=>e.ids?.root??`tabs:${e.id}`,R=e=>e.ids?.list??`tabs:${e.id}:list`,I=(e,t)=>e.ids?.content??`tabs:${e.id}:content-${t}`,v=(e,t)=>e.ids?.trigger??`tabs:${e.id}:trigger-${t}`,B=e=>e.ids?.indicator??`tabs:${e.id}:indicator`,z=e=>e.getById(R(e)),J=(e,t)=>e.getById(I(e,t)),V=(e,t)=>e.getById(v(e,t)),w=e=>e.getById(B(e)),y=e=>{const s=`[role=tab][data-ownedby='${CSS.escape(R(e))}']:not([disabled])`;return n.queryAll(z(e),s)},Q=e=>n.first(y(e)),Z=e=>n.last(y(e)),ee=(e,t)=>n.nextById(y(e),v(e,t.value),t.loopFocus),te=(e,t)=>n.prevById(y(e),v(e,t.value),t.loopFocus),$=e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),ae=(e,t)=>{const s=n.itemById(y(e),v(e,t));return D($(s))},D=e=>({width:`${e.width}px`,height:`${e.height}px`,left:`${e.left}px`,top:`${e.top}px`});function se(e,t){const{state:s,send:a,context:o,prop:r,scope:i}=e,g=r("translations"),T=s.matches("focused"),P=r("orientation")==="vertical",h=r("orientation")==="horizontal",j=r("composite");function F(c){return{selected:o.get("value")===c.value,focused:o.get("focusedValue")===c.value,disabled:!!c.disabled}}return{value:o.get("value"),focusedValue:o.get("focusedValue"),setValue(c){a({type:"SET_VALUE",value:c})},clearValue(){a({type:"CLEAR_VALUE"})},setIndicatorRect(c){const d=v(i,c);a({type:"SET_INDICATOR_RECT",id:d})},syncTabIndex(){a({type:"SYNC_TAB_INDEX"})},selectNext(c){a({type:"TAB_FOCUS",value:c,src:"selectNext"}),a({type:"ARROW_NEXT",src:"selectNext"})},selectPrev(c){a({type:"TAB_FOCUS",value:c,src:"selectPrev"}),a({type:"ARROW_PREV",src:"selectPrev"})},focus(){const c=o.get("value");c&&V(i,c)?.focus()},getRootProps(){return t.element({...m.root.attrs,id:Y(i),"data-orientation":r("orientation"),"data-focus":n.dataAttr(T),dir:r("dir")})},getListProps(){return t.element({...m.list.attrs,id:R(i),role:"tablist",dir:r("dir"),"data-focus":n.dataAttr(T),"aria-orientation":r("orientation"),"data-orientation":r("orientation"),"aria-label":g?.listLabel,onKeyDown(c){if(c.defaultPrevented||!n.isSelfTarget(c)||n.isComposingEvent(c))return;const d={ArrowDown(){h||a({type:"ARROW_NEXT",key:"ArrowDown"})},ArrowUp(){h||a({type:"ARROW_PREV",key:"ArrowUp"})},ArrowLeft(){P||a({type:"ARROW_PREV",key:"ArrowLeft"})},ArrowRight(){P||a({type:"ARROW_NEXT",key:"ArrowRight"})},Home(){a({type:"HOME"})},End(){a({type:"END"})},Enter(){a({type:"ENTER"})}};let f=n.getEventKey(c,{dir:r("dir"),orientation:r("orientation")});const b=d[f];b&&(c.preventDefault(),b(c))}})},getTriggerState:F,getTriggerProps(c){const{value:d,disabled:f}=c,b=F(c);return t.button({...m.trigger.attrs,role:"tab",type:"button",disabled:f,dir:r("dir"),"data-orientation":r("orientation"),"data-disabled":n.dataAttr(f),"aria-disabled":f,"data-value":d,"aria-selected":b.selected,"data-selected":n.dataAttr(b.selected),"data-focus":n.dataAttr(b.focused),"aria-controls":b.selected?I(i,d):void 0,"data-ownedby":R(i),"data-ssr":n.dataAttr(o.get("ssr")),id:v(i,d),tabIndex:b.selected&&j?0:-1,onFocus(){a({type:"TAB_FOCUS",value:d})},onBlur(C){C.relatedTarget?.getAttribute("role")!=="tab"&&a({type:"TAB_BLUR"})},onClick(C){C.defaultPrevented||f||(n.isSafari()&&C.currentTarget.focus(),a({type:"TAB_CLICK",value:d}))}})},getContentProps(c){const{value:d}=c,f=o.get("value")===d;return t.element({...m.content.attrs,dir:r("dir"),id:I(i,d),tabIndex:j?0:-1,"aria-labelledby":v(i,d),role:"tabpanel","data-ownedby":R(i),"data-selected":n.dataAttr(f),"data-orientation":r("orientation"),hidden:!f})},getIndicatorProps(){const c=o.get("indicatorRect"),d=o.get("indicatorTransition");return t.element({id:B(i),...m.indicator.attrs,dir:r("dir"),"data-orientation":r("orientation"),style:{"--transition-property":"left, right, top, bottom, width, height","--left":c.left,"--top":c.top,"--width":c.width,"--height":c.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:d?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",[h?"left":"top"]:h?"var(--left)":"var(--top)"}})}}}var{not:re}=n.createGuards(),oe=n.createMachine({props({props:e}){return{dir:"ltr",orientation:"horizontal",activationMode:"automatic",loopFocus:!0,composite:!0,navigate(t){n.clickIfLink(t.node)},defaultValue:null,...e}},initialState(){return"idle"},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(s){e("onValueChange")?.({value:s})}})),focusedValue:t(()=>({defaultValue:e("value")||e("defaultValue"),sync:!0,onChange(s){e("onFocusChange")?.({focusedValue:s})}})),ssr:t(()=>({defaultValue:!0})),indicatorTransition:t(()=>({defaultValue:!1})),indicatorRect:t(()=>({defaultValue:{left:"0px",top:"0px",width:"0px",height:"0px"}}))}},watch({context:e,prop:t,track:s,action:a}){s([()=>e.get("value")],()=>{a(["allowIndicatorTransition","syncIndicatorRect","syncTabIndex","navigateIfNeeded"])}),s([()=>t("dir"),()=>t("orientation")],()=>{a(["syncIndicatorRect"])})},on:{SET_VALUE:{actions:["setValue"]},CLEAR_VALUE:{actions:["clearValue"]},SET_INDICATOR_RECT:{actions:["setIndicatorRect"]},SYNC_TAB_INDEX:{actions:["syncTabIndex"]}},entry:["syncIndicatorRect","syncTabIndex","syncSsr"],exit:["cleanupObserver"],states:{idle:{on:{TAB_FOCUS:{target:"focused",actions:["setFocusedValue"]},TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]}}},focused:{on:{TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]},ARROW_PREV:[{guard:"selectOnFocus",actions:["focusPrevTab","selectFocusedTab"]},{actions:["focusPrevTab"]}],ARROW_NEXT:[{guard:"selectOnFocus",actions:["focusNextTab","selectFocusedTab"]},{actions:["focusNextTab"]}],HOME:[{guard:"selectOnFocus",actions:["focusFirstTab","selectFocusedTab"]},{actions:["focusFirstTab"]}],END:[{guard:"selectOnFocus",actions:["focusLastTab","selectFocusedTab"]},{actions:["focusLastTab"]}],ENTER:{guard:re("selectOnFocus"),actions:["selectFocusedTab"]},TAB_FOCUS:{actions:["setFocusedValue"]},TAB_BLUR:{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{selectOnFocus:({prop:e})=>e("activationMode")==="automatic"},actions:{selectFocusedTab({context:e,prop:t}){n.raf(()=>{const s=e.get("focusedValue");if(!s)return;const o=t("deselectable")&&e.get("value")===s?null:s;e.set("value",o)})},setFocusedValue({context:e,event:t,flush:s}){t.value!=null&&s(()=>{e.set("focusedValue",t.value)})},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:t,prop:s}){const a=s("deselectable")&&e.get("value")===e.get("focusedValue");e.set("value",a?null:t.value)},clearValue({context:e}){e.set("value",null)},focusFirstTab({scope:e}){n.raf(()=>{Q(e)?.focus()})},focusLastTab({scope:e}){n.raf(()=>{Z(e)?.focus()})},focusNextTab({context:e,prop:t,scope:s,event:a}){const o=a.value??e.get("focusedValue");if(!o)return;const r=ee(s,{value:o,loopFocus:t("loopFocus")});n.raf(()=>{t("composite")?r?.focus():r?.dataset.value!=null&&e.set("focusedValue",r.dataset.value)})},focusPrevTab({context:e,prop:t,scope:s,event:a}){const o=a.value??e.get("focusedValue");if(!o)return;const r=te(s,{value:o,loopFocus:t("loopFocus")});n.raf(()=>{t("composite")?r?.focus():r?.dataset.value!=null&&e.set("focusedValue",r.dataset.value)})},syncTabIndex({context:e,scope:t}){n.raf(()=>{const s=e.get("value");if(!s)return;const a=J(t,s);if(!a)return;n.getFocusables(a).length>0?a.removeAttribute("tabindex"):a.setAttribute("tabindex","0")})},cleanupObserver({refs:e}){const t=e.get("indicatorCleanup");t&&t()},allowIndicatorTransition({context:e}){e.set("indicatorTransition",!0)},setIndicatorRect({context:e,event:t,scope:s}){const a=t.id??e.get("value");if(!w(s))return;if(!a){e.set("indicatorTransition",!1);return}V(s,a)&&(e.set("indicatorRect",ae(s,a)),n.nextTick(()=>{e.set("indicatorTransition",!1)}))},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,refs:t,scope:s}){const a=t.get("indicatorCleanup");a&&a();const o=e.get("value");if(!o){e.set("indicatorTransition",!1);return}const r=V(s,o),i=w(s);if(!r||!i)return;const g=n.trackElementRect([r],{measure(T){return $(T)},onEntry({rects:T}){const[P]=T;e.set("indicatorRect",D(P))}});t.set("indicatorCleanup",g)},navigateIfNeeded({context:e,prop:t,scope:s}){const a=e.get("value");if(!a)return;const o=V(s,a);n.isAnchorElement(o)&&t("navigate")?.({value:a,node:o,href:o.href})}}}});u.createProps()(["activationMode","composite","deselectable","dir","getRootNode","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value","defaultValue"]);u.createProps()(["disabled","value"]);u.createProps()(["value"]);const ne=e=>{const t=p.useId(),{getRootNode:s}=u.useEnvironmentContext(),{dir:a}=u.useLocaleContext(),o={id:t,dir:a,getRootNode:s,...e},r=u.useMachine(oe,o);return se(r,u.normalizeProps)},U=p.forwardRef((e,t)=>{const[s,a]=x.splitRenderStrategyProps(e),[o,r]=u.createSplitProps()(a,["activationMode","composite","defaultValue","deselectable","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value"]),i=ne(o),g=n.mergeProps(i.getRootProps(),r);return l.jsxRuntimeExports.jsx(N,{value:i,children:l.jsxRuntimeExports.jsx(x.RenderStrategyPropsProvider,{value:s,children:l.jsxRuntimeExports.jsx(u.ark.div,{...g,ref:t})})})});U.displayName="TabsRoot";const q=p.forwardRef((e,t)=>{const[s,a]=x.splitRenderStrategyProps(e),[{value:o},r]=u.createSplitProps()(a,["value"]),i=n.mergeProps(o.getRootProps(),r);return l.jsxRuntimeExports.jsx(N,{value:o,children:l.jsxRuntimeExports.jsx(x.RenderStrategyPropsProvider,{value:s,children:l.jsxRuntimeExports.jsx(u.ark.div,{...i,ref:t})})})});q.displayName="TabsRootProvider";const{withProvider:W,withContext:E}=X.createSlotRecipeContext({key:"tabs"});W(q,"root",{forwardAsChild:!0});const ie=W(U,"root",{forwardAsChild:!0}),ce=E(k,"trigger",{forwardAsChild:!0}),ue=E(S,"content",{forwardAsChild:!0});E("div","contentGroup");const le=E(O,"list",{forwardAsChild:!0});E(L,"indicator",{forwardAsChild:!0});const de={xs:"sm",sm:"md",md:"md",lg:"lg"},ge={xs:"xs",sm:"xs",md:"sm",lg:"md"},fe=({iconName:e,iconPosition:t="left",label:s,notificationCounterProps:a,showNotificationCounter:o,size:r="md",...i})=>l.jsxRuntimeExports.jsxs(ce,{className:"Tab","data-testid":"kibble-tab",...i,children:[!!e&&t==="left"&&l.jsxRuntimeExports.jsx(_.Icon,{className:"Tab__Icon","data-testid":"kibble-tab-icon",name:e,size:r,variant:"default"}),l.jsxRuntimeExports.jsx(H.WrappedHeading,{className:"Tab__Label","data-testid":"kibble-tab-label",size:ge[r],children:s}),!!e&&t==="right"&&l.jsxRuntimeExports.jsx(_.Icon,{className:"Tab__Icon","data-testid":"kibble-tab-icon",name:e,size:r}),o&&l.jsxRuntimeExports.jsx(M.NotificationCounter,{className:"Tab__NotificationCounter","data-testid":"kibble-tab-notification-counter",...a,size:de[r]})]}),pe=({align:e="start",onChange:t,size:s="md",tabs:a,tabsContents:o,...r})=>l.jsxRuntimeExports.jsxs(ie,{className:"Tabs","data-testid":"kibble-tabs",justify:e||r.justify,size:s,onValueChange:({value:i})=>t?.(i),...r,children:[l.jsxRuntimeExports.jsx(le,{className:"Tabs__List","data-testid":"kibble-tabs-list",children:a.map((i,g)=>l.jsxRuntimeExports.jsx(fe,{...i},`tab-${g}`))}),!!o&&o.map((i,g)=>l.jsxRuntimeExports.jsx(ue,{...i},`tabContent-${g}`))]});exports.Tabs=pe;
|
|
2
|
-
//# sourceMappingURL=tabs.component-pl0kO5_M.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-BjDatQAs.js"),x=require("react"),k=require("./button.component-Dd9AfGox.js"),C=require("./heading.component-ZD_UVarx.js"),E=require("./menu.component-CiZzHc2D.js"),T=require("./spinner.component-CzhcJOwX.js"),N=require("./tag.component-C6a6EzZB.js"),f=require("./text.component-CnnBhB3c.js"),r=require("./box-Baq7UBls.js"),l=require("./flex-D14H6HbP.js"),v=require("./h-stack-Bjx9hlJo.js"),q=n=>n&&n.__esModule?n:{default:n},w=q(x);var i=(n=>(n.Inactive="Inactive",n.Deleted="Deleted",n))(i||{});const y={size:"sm",variant:"secondarySubtle",iconName:"plus",text:"Add",hideCaret:!0},D=({title:n,menuProps:d,tags:o,canBeDeleted:h=!1,onClearAll:_,onRemoveTag:c,onDelete:B,hasError:b=!1,errorText:R="This field contains an error",displayTagsInGroups:u,loading:p=!1})=>{const m=x.useCallback(s=>{c&&c(s,o)},[c,o]),j=w.default.useMemo(()=>{if(!u)return[];const s={};for(const t of o){const a=t.groupLabel||"-";s[a]||(s[a]=[]),s[a].push(t)}return Object.entries(s).map(([t,a])=>({groupLabel:t,tags:a}))},[o,u]),g=x.useCallback(s=>s.map(t=>{const a=t.label.includes(i.Inactive)||t.label.includes(i.Deleted);return e.jsxRuntimeExports.jsx(N.Tag,{className:"TagBlock__Tag","data-testid":"kibble-tag-block-tag",mr:1,mb:1,label:t.label,onClose:()=>m(t.value),closeButtonDisplay:"always",fontWeight:"normal",color:a?"text.placeholder":"text",size:"md"},t.value)}),[m]);return e.jsxRuntimeExports.jsxs(r.Box,{className:"TagBlock","data-testid":"kibble-tag-block",position:"relative",mb:3,py:2,pl:4,pr:2,bg:"background.subtle",borderRadius:"lg",boxShadow:b?"0 0 0 2px var(--chakra-colors-border-danger)":"",border:"1px",borderColor:"border",overflow:p?"hidden":void 0,children:[e.jsxRuntimeExports.jsxs(l.Flex,{className:"TagBlock__ButtonContainer","data-testid":"kibble-tag-block-button-container",justifyContent:"space-between",children:[e.jsxRuntimeExports.jsxs(v.HStack,{gap:1,minH:10,children:[n&&e.jsxRuntimeExports.jsx(f.WrappedText,{className:"TagBlock__Title",mr:2,fontWeight:"bold",children:n}),e.jsxRuntimeExports.jsx(E.Menu,{"data-testid":"kibble-tag-block-menu",...d,buttonProps:d?.buttonProps||y}),e.jsxRuntimeExports.jsx(k.Button,{className:"TagBlock__Button--ClearAll","data-testid":"kibble-tag-block-clear-all-button",size:"sm",iconName:"arrowCircle",variant:"ghostNeutral",onClick:_,disabled:o.length<=0,children:"Clear All"})]}),h&&e.jsxRuntimeExports.jsx(r.Box,{children:e.jsxRuntimeExports.jsx(k.Button,{className:"TagBlock__Button--Delete","data-testid":"kibble-tag-block-delete-button",iconName:"trashcan",variant:"ghostNeutral",onClick:B,justifySelf:"flex-end"})})]}),!!o.length&&e.jsxRuntimeExports.jsx(l.Flex,{className:"TagBlock__TagContainer","data-testid":"kibble-tag-block-tag-container",mt:2,pb:1,alignContent:"space-between",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"flex-start",children:u&&j.length?e.jsxRuntimeExports.jsx(l.Flex,{direction:"column",children:j.map(({groupLabel:s,tags:t})=>e.jsxRuntimeExports.jsxs(r.Box,{mb:2,children:[e.jsxRuntimeExports.jsx(r.Box,{className:"TagBlock__GroupTitle","data-testid":"kibble-tag-block-group-title",children:e.jsxRuntimeExports.jsx(C.WrappedHeading,{size:"xs",pb:2,children:s})}),e.jsxRuntimeExports.jsx(l.Flex,{alignContent:"space-between",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"flex-start",children:g(t)})]},s))}):g(o)}),p&&e.jsxRuntimeExports.jsx(T.Spinner,{fullScreen:!0}),b&&e.jsxRuntimeExports.jsx(f.WrappedText,{className:"TagBlock__Error","data-testid":"kibble-tag-block-error",mt:2,size:"xs",variant:"danger",children:R})]})};exports.TagBlock=D;exports.TagDisabledState=i;
|
|
2
|
-
//# sourceMappingURL=tagBlock.component-C2DAQrQE.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./jsx-runtime-BjDatQAs.js"),i=require("./withTruncation-DPbMF-jg.js"),r=require("./create-recipe-context-sESms8Eo.js"),{withContext:c}=r.createRecipeContext({key:"text"}),x=c("p"),t=({children:e,...n})=>s.jsxRuntimeExports.jsx(x,{className:"Text","data-testid":"kibble-text",...n,children:e});t.displayName="Text";const o=i.withTruncation(t);exports.WrappedText=o;
|
|
2
|
-
//# sourceMappingURL=text.component-CnnBhB3c.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.component-CnnBhB3c.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/typography/text.js","../../src/components/Text/text.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"text\"\n});\nconst Text = withContext(\"p\");\nconst TextPropsProvider = PropsProvider;\n\nexport { Text, TextPropsProvider };\n","import React from \"react\";\nimport {\n Text as CText,\n TextProps as CTextProps,\n} from \"@chakra-ui/react/typography\";\nimport { withTruncation, WithTruncationProps } from \"hocs/withTruncation\";\nimport { TextSize } from \"./text.types\";\nimport { TypographyVariant } from \"shared/types/typography\";\n\nexport interface TextProps extends WithTruncationProps, CTextProps {\n size?: TextSize;\n variant?: TypographyVariant;\n}\n\nconst Text = ({ children, ...rest }: TextProps): React.JSX.Element => {\n return (\n <CText className=\"Text\" data-testid=\"kibble-text\" {...rest}>\n {children}\n </CText>\n );\n};\n\nText.displayName = \"Text\";\n\nconst WrappedText = withTruncation(Text);\n\nexport { WrappedText as Text };\n"],"names":["withContext","createRecipeContext","Text","children","rest","jsx","CText","WrappedText","withTruncation"],"mappings":"qJAIM,CAAE,YAAAA,CAA2B,EAAIC,sBAAoB,CACzD,IAAK,MACP,CAAC,EACKC,EAAOF,EAAY,GAAG,ECOtBE,EAAO,CAAC,CAAE,SAAAC,EAAU,GAAGC,KAEzBC,EAAA,kBAAA,IAACC,GAAM,UAAU,OAAO,cAAY,cAAe,GAAGF,EACnD,SAAAD,EACH,EAIJD,EAAK,YAAc,OAEb,MAAAK,EAAcC,iBAAeN,CAAI","x_google_ignoreList":[0]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { j as s } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { w as a } from "./withTruncation-DoQriKuH.js";
|
|
3
|
-
import { c as r } from "./create-recipe-context-D7FewUR4.js";
|
|
4
|
-
const { withContext: x } = r({
|
|
5
|
-
key: "text"
|
|
6
|
-
}), i = x("p"), t = ({ children: e, ...o }) => /* @__PURE__ */ s.jsx(i, { className: "Text", "data-testid": "kibble-text", ...o, children: e });
|
|
7
|
-
t.displayName = "Text";
|
|
8
|
-
const m = a(t);
|
|
9
|
-
export {
|
|
10
|
-
m as W
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=text.component-Cpruo7MB.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.component-Cpruo7MB.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/typography/text.js","../../src/components/Text/text.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"text\"\n});\nconst Text = withContext(\"p\");\nconst TextPropsProvider = PropsProvider;\n\nexport { Text, TextPropsProvider };\n","import React from \"react\";\nimport {\n Text as CText,\n TextProps as CTextProps,\n} from \"@chakra-ui/react/typography\";\nimport { withTruncation, WithTruncationProps } from \"hocs/withTruncation\";\nimport { TextSize } from \"./text.types\";\nimport { TypographyVariant } from \"shared/types/typography\";\n\nexport interface TextProps extends WithTruncationProps, CTextProps {\n size?: TextSize;\n variant?: TypographyVariant;\n}\n\nconst Text = ({ children, ...rest }: TextProps): React.JSX.Element => {\n return (\n <CText className=\"Text\" data-testid=\"kibble-text\" {...rest}>\n {children}\n </CText>\n );\n};\n\nText.displayName = \"Text\";\n\nconst WrappedText = withTruncation(Text);\n\nexport { WrappedText as Text };\n"],"names":["withContext","createRecipeContext","Text","children","rest","jsx","CText","WrappedText","withTruncation"],"mappings":";;;AAIA,MAAM,EAAE,aAAAA,EAA2B,IAAIC,EAAoB;AAAA,EACzD,KAAK;AACP,CAAC,GACKC,IAAOF,EAAY,GAAG,GCOtBE,IAAO,CAAC,EAAE,UAAAC,GAAU,GAAGC,QAEzBC,gBAAAA,EAAA,IAACC,KAAM,WAAU,QAAO,eAAY,eAAe,GAAGF,GACnD,UAAAD,GACH;AAIJD,EAAK,cAAc;AAEb,MAAAK,IAAcC,EAAeN,CAAI;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-BjDatQAs.js"),c=require("react"),y=require("./withFormControl-DpytztWF.js"),P=require("./button.component-Dd9AfGox.js"),b=require("./characterCounter.component-4T8NHb11.js"),T=require("./box-Baq7UBls.js"),k=require("./empty-B5_AO6Pg.js"),I=require("./factory-D6tdBUPG.js"),w=require("./use-recipe-DaPWl_pL.js"),A=require("./group-Cv7AQw1b.js"),v=require("./create-recipe-context-sESms8Eo.js"),N=require("./use-locale-context-BdqHZ8L8.js"),S=require("./use-field-context--wBJQY1R.js"),F=require("./index-CZ42b9rT.js"),B=t=>t&&t.__esModule?t:{default:t},G=B(c),C=c.forwardRef((t,s)=>{const n=S.useFieldContext(),r=F.mergeProps(n?.getInputProps(),t);return e.jsxRuntimeExports.jsx(N.ark.input,{...r,ref:s})});C.displayName="FieldInput";const{withContext:M}=v.createRecipeContext({key:"input"}),z=M(C),R=c.forwardRef(function({unstyled:s,...n},r){const p=w.useRecipe({key:"inputAddon",recipe:n.recipe}),[i,a]=p.splitVariantProps(n),o=s?k.EMPTY_SLOT_STYLES:p(i);return e.jsxRuntimeExports.jsx(I.chakra.div,{ref:r,...a,css:[o,n.css]})}),E=I.chakra("div",{base:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,color:"fg.muted",height:"full",fontSize:"sm",px:"3"},variants:{placement:{start:{insetInlineStart:"0"},end:{insetInlineEnd:"0"}}}}),D=c.forwardRef(function(s,n){const{startElement:r,startElementProps:p,endElement:i,endElementProps:a,startAddon:o,startAddonProps:m,endAddon:d,endAddonProps:x,children:l,startOffset:u="0px",endOffset:f="0px",...h}=s,j=c.Children.only(l),g=!!(o||d);return e.jsxRuntimeExports.jsxs(A.Group,{width:"full",ref:n,attached:g,skip:q=>q.type===E,...h,children:[o&&e.jsxRuntimeExports.jsx(R,{...m,children:o}),r&&e.jsxRuntimeExports.jsx(E,{pointerEvents:"none",...p,children:r}),c.cloneElement(j,{...r&&{ps:`calc(var(--input-height) - ${u})`},...i&&{pe:`calc(var(--input-height) - ${f})`},...l.props}),i&&e.jsxRuntimeExports.jsx(E,{placement:"end",...a,children:i}),d&&e.jsxRuntimeExports.jsx(R,{...x,children:d})]})}),L={sm:"xs",md:"sm",lg:"md"},O=y.withFormControl(({charLimit:t=void 0,clearable:s=!1,disabled:n=!1,inputRef:r,invalid:p,leftAddon:i,leftElement:a,onClear:o,onContrast:m,rightAddon:d,rightElement:x,size:l="md",value:u,...f})=>{const h=()=>{o&&o(u||"")};s&&u&&!n&&(x=e.jsxRuntimeExports.jsx(P.Button,{className:"TextInput__ClearButton","data-testid":"kibble-text-input-clear-button",size:L[l],variant:"ghostNeutral",onClick:h,iconName:"close"}));const j=c.useMemo(()=>u?.toString()?.length||0,[u]);return e.jsxRuntimeExports.jsxs(T.Box,{className:"TextInput__Wrapper",position:"relative",w:"100%",children:[e.jsxRuntimeExports.jsx(D,{className:"TextInput__InputGroup","data-testid":"kibble-text-input-group",startElement:a,startElementProps:{color:"inherit",_groupDisabled:{opacity:.6}},endElement:x,endElementProps:{color:"inherit",paddingInline:1.5,_groupDisabled:{opacity:.6}},startAddon:i,endAddon:d,children:e.jsxRuntimeExports.jsx(z,{"data-testid":"kibble-text-input",className:"TextInput",ref:r,value:u,size:l,disabled:n,...p&&{"aria-invalid":!0},variant:m?"onContrast":"default",...f})}),!!t&&e.jsxRuntimeExports.jsx(b.CharacterCounter,{withLimit:!0,limit:t,currentCount:j})]})}),_=G.default.forwardRef((t,s)=>e.jsxRuntimeExports.jsx(O,{inputRef:s,...t}));_.displayName="TextInput";exports.WrappedTextInput=_;
|
|
2
|
-
//# sourceMappingURL=textInput.component-D-galjwy.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("./jsx-runtime-BjDatQAs.js"),u=require("react"),h=require("./withFormControl-DpytztWF.js"),v=require("./characterCounter.component-4T8NHb11.js"),g=require("./flex-D14H6HbP.js"),w=require("./create-recipe-context-sESms8Eo.js"),p=require("./index-CZ42b9rT.js"),l=require("./use-locale-context-BdqHZ8L8.js"),b=require("./use-field-context--wBJQY1R.js"),R=e=>e&&e.__esModule?e:{default:e},C=R(u);var F=e=>{if(!e)return;const t=p.getComputedStyle(e),o=p.getWindow(e),s=p.getDocument(e),r=()=>{requestAnimationFrame(()=>{e.style.height="auto";let i;t.boxSizing==="content-box"?i=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):i=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&i>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),i=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${i}px`})};e.addEventListener("input",r),e.form?.addEventListener("reset",r);const n=Object.getPrototypeOf(e),a=Object.getOwnPropertyDescriptor(n,"value");Object.defineProperty(e,"value",{...a,set(){a?.set?.apply(this,arguments),r()}});const d=new o.ResizeObserver(()=>{requestAnimationFrame(()=>r())});d.observe(e);const x=new o.MutationObserver(()=>r());return x.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),s.fonts?.addEventListener("loadingdone",r),()=>{e.removeEventListener("input",r),e.form?.removeEventListener("reset",r),s.fonts?.removeEventListener("loadingdone",r),d.disconnect(),x.disconnect()}};const m=u.forwardRef((e,t)=>{const{autoresize:o,...s}=e,r=u.useRef(null),n=b.useFieldContext(),a=p.mergeProps(n?.getTextareaProps(),{style:{resize:o?"none":void 0}},s);return u.useEffect(()=>{if(o)return F(r.current)},[o]),c.jsxRuntimeExports.jsx(l.ark.textarea,{...a,ref:l.composeRefs(t,r)})});m.displayName="FieldTextarea";const{withContext:y}=w.createRecipeContext({key:"textarea"}),j=y(m),T=h.withFormControl(({charLimit:e=void 0,invalid:t,onContrast:o,resize:s="none",textareaRef:r,value:n,...a})=>{const d=o?"onContrast":"default",x=u.useMemo(()=>n?.toString()?.length||0,[n]);return c.jsxRuntimeExports.jsxs(g.Flex,{className:"Textarea__Wrapper",position:"relative",w:"100%",children:[c.jsxRuntimeExports.jsx(j,{className:"Textarea","data-testid":"kibble-textarea",resize:s,variant:d,value:n,...t&&{"aria-invalid":!0},minH:"140px",...a,ref:r}),!!e&&c.jsxRuntimeExports.jsx(v.CharacterCounter,{withLimit:!0,limit:e,currentCount:x})]})}),f=C.default.forwardRef((e,t)=>c.jsxRuntimeExports.jsx(T,{textareaRef:t,...e}));f.displayName="Textarea";exports.WrappedTextArea=f;
|
|
2
|
-
//# sourceMappingURL=textarea.component-DmxMuMCU.js.map
|