@televet/kibble-ui 4.0.0-beta.102 → 4.0.0-beta.104
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-BFIjEpyN.js → alert.types-BGRyfYMy.js} +5 -5
- package/dist/chunks/{alert.types-BFIjEpyN.js.map → alert.types-BGRyfYMy.js.map} +1 -1
- package/dist/chunks/{alert.types-CBlxvlwZ.js → alert.types-BVJZGZh-.js} +2 -2
- package/dist/chunks/{alert.types-CBlxvlwZ.js.map → alert.types-BVJZGZh-.js.map} +1 -1
- package/dist/chunks/{avatar.component-DdeMVY3l.js → avatar.component-77NanIaH.js} +7 -7
- package/dist/chunks/{avatar.component-DdeMVY3l.js.map → avatar.component-77NanIaH.js.map} +1 -1
- package/dist/chunks/{avatar.component-37joMuMZ.js → avatar.component-Dv96XFOF.js} +2 -2
- package/dist/chunks/{avatar.component-37joMuMZ.js.map → avatar.component-Dv96XFOF.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-CPjot93U.js → avatarGroup.component-CfSBCJKG.js} +2 -2
- package/dist/chunks/{avatarGroup.component-CPjot93U.js.map → avatarGroup.component-CfSBCJKG.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-DboSD8PG.js → avatarGroup.component-dNR80_Br.js} +2 -2
- package/dist/chunks/{avatarGroup.component-DboSD8PG.js.map → avatarGroup.component-dNR80_Br.js.map} +1 -1
- package/dist/chunks/{button.component-DOAhnxbj.js → button.component-Br9jCpBx.js} +2 -2
- package/dist/chunks/{button.component-DOAhnxbj.js.map → button.component-Br9jCpBx.js.map} +1 -1
- package/dist/chunks/{button.component-CY55RWpS.js → button.component-CsJxgblU.js} +2 -2
- package/dist/chunks/{button.component-CY55RWpS.js.map → button.component-CsJxgblU.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-CeU9SOoZ.js → buttonGroup.component-BTvvN-mr.js} +3 -3
- package/dist/chunks/{buttonGroup.component-CeU9SOoZ.js.map → buttonGroup.component-BTvvN-mr.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-CmsAFBU-.js → buttonGroup.component-Bnd3WutZ.js} +2 -2
- package/dist/chunks/{buttonGroup.component-CmsAFBU-.js.map → buttonGroup.component-Bnd3WutZ.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-D8qNJrRV.js → characterCounter.component-DElJ1iFK.js} +3 -3
- package/dist/chunks/{characterCounter.component-D8qNJrRV.js.map → characterCounter.component-DElJ1iFK.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-Aa1IFCGT.js → characterCounter.component-DXmly18j.js} +2 -2
- package/dist/chunks/{characterCounter.component-Aa1IFCGT.js.map → characterCounter.component-DXmly18j.js.map} +1 -1
- package/dist/chunks/{checkbox.component-Twnwzi6T.js → checkbox.component-CyWf-jhq.js} +50 -51
- package/dist/chunks/{checkbox.component-Twnwzi6T.js.map → checkbox.component-CyWf-jhq.js.map} +1 -1
- package/dist/chunks/checkbox.component-DCO3f8IY.js +2 -0
- package/dist/chunks/{checkbox.component-BBnhOurl.js.map → checkbox.component-DCO3f8IY.js.map} +1 -1
- package/dist/chunks/checkbox.records-DI3mqSNf.js +2 -0
- package/dist/chunks/checkbox.records-DI3mqSNf.js.map +1 -0
- package/dist/chunks/{checkbox.anatomy-AIdXcqX-.js → checkbox.records-Ds6SvFdm.js} +22 -12
- package/dist/chunks/checkbox.records-Ds6SvFdm.js.map +1 -0
- package/dist/chunks/{checkboxGroup.component-BY34zJk7.js → checkboxGroup.component-Cu6qUJOk.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-BY34zJk7.js.map → checkboxGroup.component-Cu6qUJOk.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-B3R7JBVo.js → checkboxGroup.component-Dwn2XO_5.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-B3R7JBVo.js.map → checkboxGroup.component-Dwn2XO_5.js.map} +1 -1
- package/dist/chunks/{config-BsZeMu66.js → config-DlTdf-Yt.js} +10 -10
- package/dist/chunks/{config-BsZeMu66.js.map → config-DlTdf-Yt.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-BOH8hmb-.js → conversationCard.component-ZJ5eqIWf.js} +2 -2
- package/dist/chunks/{conversationCard.component-BOH8hmb-.js.map → conversationCard.component-ZJ5eqIWf.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-FdiTvQhb.js → conversationCard.component-aCCQmc5q.js} +11 -11
- package/dist/chunks/{conversationCard.component-FdiTvQhb.js.map → conversationCard.component-aCCQmc5q.js.map} +1 -1
- package/dist/chunks/{datePicker.component-BMFKZ9jI.js → datePicker.component-B51FbP6R.js} +10 -10
- package/dist/chunks/{datePicker.component-BMFKZ9jI.js.map → datePicker.component-B51FbP6R.js.map} +1 -1
- package/dist/chunks/{datePicker.component-BKGUGrux.js → datePicker.component-C7O_F_ZN.js} +2 -2
- package/dist/chunks/{datePicker.component-BKGUGrux.js.map → datePicker.component-C7O_F_ZN.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-TJz2Nslg.js → dialog-trigger-Crrp0YGG.js} +5 -5
- package/dist/chunks/{dialog-trigger-TJz2Nslg.js.map → dialog-trigger-Crrp0YGG.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-CyE0fW3K.js → dialog-trigger-MkOQUjzu.js} +2 -2
- package/dist/chunks/{dialog-trigger-CyE0fW3K.js.map → dialog-trigger-MkOQUjzu.js.map} +1 -1
- package/dist/chunks/{heading.component-SSTHKtRE.js → heading.component-BMvc5kM8.js} +2 -2
- package/dist/chunks/{heading.component-SSTHKtRE.js.map → heading.component-BMvc5kM8.js.map} +1 -1
- package/dist/chunks/{heading.component-DiuOQTuV.js → heading.component-CSbfsm3W.js} +2 -2
- package/dist/chunks/{heading.component-DiuOQTuV.js.map → heading.component-CSbfsm3W.js.map} +1 -1
- package/dist/chunks/icon.component-B6R8-DRk.js +2 -0
- package/dist/chunks/icon.component-B6R8-DRk.js.map +1 -0
- package/dist/chunks/{icon.component-DszmCnE4.js → icon.component-S_qFWBRf.js} +7 -7
- package/dist/chunks/icon.component-S_qFWBRf.js.map +1 -0
- package/dist/chunks/{index-BOJXzk6X.js → index-B3d3tRic.js} +4 -4
- package/dist/chunks/{index-BOJXzk6X.js.map → index-B3d3tRic.js.map} +1 -1
- package/dist/chunks/{index-CObxBCse.js → index-BBxAd1xM.js} +3 -3
- package/dist/chunks/{index-CObxBCse.js.map → index-BBxAd1xM.js.map} +1 -1
- package/dist/chunks/{index-DT0_Ld2V.js → index-BODNpj2d.js} +3 -3
- package/dist/chunks/{index-DT0_Ld2V.js.map → index-BODNpj2d.js.map} +1 -1
- package/dist/chunks/{index-BvfTd0It.js → index-BR7peqZO.js} +2 -2
- package/dist/chunks/{index-BvfTd0It.js.map → index-BR7peqZO.js.map} +1 -1
- package/dist/chunks/{index-7Od5VFiw.js → index-BRBNqTA7.js} +13 -13
- package/dist/chunks/{index-7Od5VFiw.js.map → index-BRBNqTA7.js.map} +1 -1
- package/dist/chunks/{index-AafzY9XD.js → index-BpQwMKfa.js} +10 -10
- package/dist/chunks/{index-AafzY9XD.js.map → index-BpQwMKfa.js.map} +1 -1
- package/dist/chunks/{index-Bkr-bXiq.js → index-C-m6RNXT.js} +11 -11
- package/dist/chunks/{index-Bkr-bXiq.js.map → index-C-m6RNXT.js.map} +1 -1
- package/dist/chunks/{index-BLSUI_Fi.js → index-CS8X6LiC.js} +2 -2
- package/dist/chunks/{index-BLSUI_Fi.js.map → index-CS8X6LiC.js.map} +1 -1
- package/dist/chunks/{index-IHJqZIuH.js → index-CX3yrbBD.js} +3 -3
- package/dist/chunks/{index-IHJqZIuH.js.map → index-CX3yrbBD.js.map} +1 -1
- package/dist/chunks/index-CYHDITxm.js +7859 -0
- package/dist/chunks/index-CYHDITxm.js.map +1 -0
- package/dist/chunks/{index-4eV_IBpJ.js → index-Cd-5e4RS.js} +5 -5
- package/dist/chunks/{index-4eV_IBpJ.js.map → index-Cd-5e4RS.js.map} +1 -1
- package/dist/chunks/index-ClcMgyeA.js +10 -0
- package/dist/chunks/index-ClcMgyeA.js.map +1 -0
- package/dist/chunks/{index-sEoMwGry.js → index-DBk0LkcO.js} +2 -2
- package/dist/chunks/{index-sEoMwGry.js.map → index-DBk0LkcO.js.map} +1 -1
- package/dist/chunks/{index-CYfS9qal.js → index-DOXzraja.js} +2 -2
- package/dist/chunks/{index-CYfS9qal.js.map → index-DOXzraja.js.map} +1 -1
- package/dist/chunks/{index-BszONCjy.js → index-DSedXH1s.js} +2 -2
- package/dist/chunks/{index-BszONCjy.js.map → index-DSedXH1s.js.map} +1 -1
- package/dist/chunks/{index-vvHShogE.js → index-DowO8Ued.js} +2 -2
- package/dist/chunks/{index-vvHShogE.js.map → index-DowO8Ued.js.map} +1 -1
- package/dist/chunks/{index-CVzg8MBo.js → index-QTIBH1Or.js} +2 -2
- package/dist/chunks/{index-CVzg8MBo.js.map → index-QTIBH1Or.js.map} +1 -1
- package/dist/chunks/{index-1syExFDc.js → index-Ztgrae6O.js} +11 -11
- package/dist/chunks/{index-1syExFDc.js.map → index-Ztgrae6O.js.map} +1 -1
- package/dist/chunks/{index-cHBEWy02.js → index-mndLieJA.js} +4 -4
- package/dist/chunks/{index-cHBEWy02.js.map → index-mndLieJA.js.map} +1 -1
- package/dist/chunks/{link.component-COw7fL8Z.js → link.component--UJiv0xU.js} +2 -2
- package/dist/chunks/{link.component-COw7fL8Z.js.map → link.component--UJiv0xU.js.map} +1 -1
- package/dist/chunks/{link.component-BeuHEk8s.js → link.component-BCY_f6zw.js} +2 -2
- package/dist/chunks/{link.component-BeuHEk8s.js.map → link.component-BCY_f6zw.js.map} +1 -1
- package/dist/chunks/{logo.types-Cx1LeO8I.js → logo.types-BbSodfBq.js} +2 -2
- package/dist/chunks/{logo.types-Cx1LeO8I.js.map → logo.types-BbSodfBq.js.map} +1 -1
- package/dist/chunks/{menu.component-BdkYpKpN.js → menu.component-DSFy9WEh.js} +10 -10
- package/dist/chunks/{menu.component-BdkYpKpN.js.map → menu.component-DSFy9WEh.js.map} +1 -1
- package/dist/chunks/{menu.component-CCM8bsSm.js → menu.component-MeUyoUF9.js} +2 -2
- package/dist/chunks/{menu.component-CCM8bsSm.js.map → menu.component-MeUyoUF9.js.map} +1 -1
- package/dist/chunks/{modal.types-VeN6tZvj.js → modal.types-CTQpaACU.js} +2 -2
- package/dist/chunks/{modal.types-VeN6tZvj.js.map → modal.types-CTQpaACU.js.map} +1 -1
- package/dist/chunks/{modal.types-D3YGNiuI.js → modal.types-KqIduO4D.js} +5 -5
- package/dist/chunks/{modal.types-D3YGNiuI.js.map → modal.types-KqIduO4D.js.map} +1 -1
- package/dist/chunks/{notificationCounter.component-Bgm4hK9N.js → notificationCounter.component-BzhAKrKR.js} +2 -2
- package/dist/chunks/{notificationCounter.component-Bgm4hK9N.js.map → notificationCounter.component-BzhAKrKR.js.map} +1 -1
- package/dist/chunks/{pinInput.types-BNBwX6Hl.js → pinInput.types-CnU27QDl.js} +2 -2
- package/dist/chunks/{pinInput.types-BNBwX6Hl.js.map → pinInput.types-CnU27QDl.js.map} +1 -1
- package/dist/chunks/{pinInput.types-NqL1HFRm.js → pinInput.types-DbRKvqia.js} +6 -6
- package/dist/chunks/{pinInput.types-NqL1HFRm.js.map → pinInput.types-DbRKvqia.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-Dwbh8WhW.js → popover-root-provider-C2iwUZJn.js} +2 -2
- package/dist/chunks/{popover-root-provider-Dwbh8WhW.js.map → popover-root-provider-C2iwUZJn.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-B9H57A1i.js → popover-root-provider-R2bRQ-xz.js} +4 -4
- package/dist/chunks/{popover-root-provider-B9H57A1i.js.map → popover-root-provider-R2bRQ-xz.js.map} +1 -1
- package/dist/chunks/{popover.component-DlGkkvve.js → popover.component-5a-hEW2o.js} +8 -8
- package/dist/chunks/{popover.component-DlGkkvve.js.map → popover.component-5a-hEW2o.js.map} +1 -1
- package/dist/chunks/{popover.component-CaYI1vEW.js → popover.component-B1NHpxuL.js} +2 -2
- package/dist/chunks/{popover.component-CaYI1vEW.js.map → popover.component-B1NHpxuL.js.map} +1 -1
- package/dist/chunks/{popover.recipe-CFCoAAlW.js → popover.recipe-CQYAiRTB.js} +2 -2
- package/dist/chunks/{popover.recipe-CFCoAAlW.js.map → popover.recipe-CQYAiRTB.js.map} +1 -1
- package/dist/chunks/{popover.recipe-DegR9fjD.js → popover.recipe-DDKba5kq.js} +5 -5
- package/dist/chunks/{popover.recipe-DegR9fjD.js.map → popover.recipe-DDKba5kq.js.map} +1 -1
- package/dist/chunks/{index-n37Ze35k.js → radio.records-j0JOqaJ4.js} +2 -2
- package/dist/chunks/radio.records-j0JOqaJ4.js.map +1 -0
- package/dist/chunks/{index-hGcS7e_x.js → radio.records-muLWVHhG.js} +33 -22
- package/dist/chunks/radio.records-muLWVHhG.js.map +1 -0
- package/dist/chunks/radioGroup.component-BiLIdd0l.js +2 -0
- package/dist/chunks/{radioGroup.component-CEnFc_Ag.js.map → radioGroup.component-BiLIdd0l.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-q0bBXVnx.js → radioGroup.component-CeIyZmZs.js} +21 -22
- package/dist/chunks/{radioGroup.component-q0bBXVnx.js.map → radioGroup.component-CeIyZmZs.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-eMRd5aP2.js → ratingDots.component-BAtcU4JC.js} +2 -2
- package/dist/chunks/{ratingDots.component-eMRd5aP2.js.map → ratingDots.component-BAtcU4JC.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-BAm2XjZr.js → ratingDots.component-bcnQi8kP.js} +4 -4
- package/dist/chunks/{ratingDots.component-BAm2XjZr.js.map → ratingDots.component-bcnQi8kP.js.map} +1 -1
- package/dist/chunks/{render-strategy-BlfXwB_1.js → render-strategy-C_zp9LNQ.js} +2 -2
- package/dist/chunks/{render-strategy-BlfXwB_1.js.map → render-strategy-C_zp9LNQ.js.map} +1 -1
- package/dist/chunks/{render-strategy-DMTZ92PV.js → render-strategy-D5Z6LZ1V.js} +2 -2
- package/dist/chunks/{render-strategy-DMTZ92PV.js.map → render-strategy-D5Z6LZ1V.js.map} +1 -1
- package/dist/chunks/{select.component-Dp3XguXB.js → select.component-29vEA8EQ.js} +2 -2
- package/dist/chunks/{select.component-Dp3XguXB.js.map → select.component-29vEA8EQ.js.map} +1 -1
- package/dist/chunks/{select.component-BZwOWiuJ.js → select.component-8Rapwb67.js} +11 -11
- package/dist/chunks/{select.component-BZwOWiuJ.js.map → select.component-8Rapwb67.js.map} +1 -1
- package/dist/chunks/{sortableList.component-DfmuHVvP.js → sortableList.component-CPYA3KKy.js} +2 -2
- package/dist/chunks/{sortableList.component-DfmuHVvP.js.map → sortableList.component-CPYA3KKy.js.map} +1 -1
- package/dist/chunks/{sortableList.component-yvvu0IJp.js → sortableList.component-ygB3YKGn.js} +4 -4
- package/dist/chunks/{sortableList.component-yvvu0IJp.js.map → sortableList.component-ygB3YKGn.js.map} +1 -1
- package/dist/chunks/{spinner.component-C7ylmPXr.js → spinner.component-CzOv8dIY.js} +2 -2
- package/dist/chunks/{spinner.component-C7ylmPXr.js.map → spinner.component-CzOv8dIY.js.map} +1 -1
- package/dist/chunks/{spinner.component-Bu5rGx9x.js → spinner.component-gmb3jWCv.js} +3 -3
- package/dist/chunks/{spinner.component-Bu5rGx9x.js.map → spinner.component-gmb3jWCv.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-BaxV5wPq.js → styledAvatar.types-9huVpPvU.js} +2 -2
- package/dist/chunks/{styledAvatar.types-BaxV5wPq.js.map → styledAvatar.types-9huVpPvU.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-C_9GVvmD.js → styledAvatar.types-BlkNvQyA.js} +2 -2
- package/dist/chunks/{styledAvatar.types-C_9GVvmD.js.map → styledAvatar.types-BlkNvQyA.js.map} +1 -1
- package/dist/chunks/{swatch.types-DiwKSXzz.js → swatch.types-DbgA3RWc.js} +2 -2
- package/dist/chunks/{swatch.types-DiwKSXzz.js.map → swatch.types-DbgA3RWc.js.map} +1 -1
- package/dist/chunks/{switch.component-C4NO_Gs5.js → switch.component-BBep786n.js} +6 -6
- package/dist/chunks/{switch.component-C4NO_Gs5.js.map → switch.component-BBep786n.js.map} +1 -1
- package/dist/chunks/{switch.component-GM35zwYa.js → switch.component-DghHmo1Q.js} +2 -2
- package/dist/chunks/{switch.component-GM35zwYa.js.map → switch.component-DghHmo1Q.js.map} +1 -1
- package/dist/chunks/{tabs.component-BqawOxko.js → tabs.component-CjU_OQuN.js} +11 -11
- package/dist/chunks/{tabs.component-BqawOxko.js.map → tabs.component-CjU_OQuN.js.map} +1 -1
- package/dist/chunks/{tabs.component-1hCkIY3w.js → tabs.component-Cnvn_Y5x.js} +2 -2
- package/dist/chunks/{tabs.component-1hCkIY3w.js.map → tabs.component-Cnvn_Y5x.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-DwTt-HqP.js → tagBlock.component-B6jDh_wi.js} +2 -2
- package/dist/chunks/{tagBlock.component-DwTt-HqP.js.map → tagBlock.component-B6jDh_wi.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-ChGexy1g.js → tagBlock.component-c3i2tk5Y.js} +6 -6
- package/dist/chunks/{tagBlock.component-ChGexy1g.js.map → tagBlock.component-c3i2tk5Y.js.map} +1 -1
- package/dist/chunks/{text.component-DDSfgcFP.js → text.component-BMna3XOy.js} +2 -2
- package/dist/chunks/{text.component-DDSfgcFP.js.map → text.component-BMna3XOy.js.map} +1 -1
- package/dist/chunks/{text.component-fgp06lR8.js → text.component-waIIFgwB.js} +2 -2
- package/dist/chunks/{text.component-fgp06lR8.js.map → text.component-waIIFgwB.js.map} +1 -1
- package/dist/chunks/{textInput.component-vxAD2BDI.js → textInput.component-DcGfaX6z.js} +7 -7
- package/dist/chunks/{textInput.component-vxAD2BDI.js.map → textInput.component-DcGfaX6z.js.map} +1 -1
- package/dist/chunks/{textInput.component-B3Q800_J.js → textInput.component-Dg0NjMGd.js} +2 -2
- package/dist/chunks/{textInput.component-B3Q800_J.js.map → textInput.component-Dg0NjMGd.js.map} +1 -1
- package/dist/chunks/{textarea.component-CVCNVeqW.js → textarea.component-8QwVGgBC.js} +13 -13
- package/dist/chunks/{textarea.component-CVCNVeqW.js.map → textarea.component-8QwVGgBC.js.map} +1 -1
- package/dist/chunks/{textarea.component-DBS-A-Jk.js → textarea.component-DQAMtD62.js} +2 -2
- package/dist/chunks/{textarea.component-DBS-A-Jk.js.map → textarea.component-DQAMtD62.js.map} +1 -1
- package/dist/chunks/theme.provider-B913rIrq.js +24 -0
- package/dist/chunks/theme.provider-B913rIrq.js.map +1 -0
- package/dist/chunks/theme.provider-Dp0Cf3UC.js +12053 -0
- package/dist/chunks/theme.provider-Dp0Cf3UC.js.map +1 -0
- package/dist/chunks/{timePicker.component-KqAcboP6.js → timePicker.component-CbfNMKHg.js} +2 -2
- package/dist/chunks/{timePicker.component-KqAcboP6.js.map → timePicker.component-CbfNMKHg.js.map} +1 -1
- package/dist/chunks/{timePicker.component-f-FAs8bP.js → timePicker.component-CqCqsj0-.js} +5 -5
- package/dist/chunks/{timePicker.component-f-FAs8bP.js.map → timePicker.component-CqCqsj0-.js.map} +1 -1
- package/dist/chunks/{timeRange.component-C-SA8EFz.js → timeRange.component-CL5z9FRa.js} +2 -2
- package/dist/chunks/{timeRange.component-C-SA8EFz.js.map → timeRange.component-CL5z9FRa.js.map} +1 -1
- package/dist/chunks/{timeRange.component-pWCZj2UZ.js → timeRange.component-DUI4EL7X.js} +2 -2
- package/dist/chunks/{timeRange.component-pWCZj2UZ.js.map → timeRange.component-DUI4EL7X.js.map} +1 -1
- package/dist/chunks/{timestamp.component-CStcenp0.js → timestamp.component-B1UUyLk6.js} +2 -2
- package/dist/chunks/{timestamp.component-CStcenp0.js.map → timestamp.component-B1UUyLk6.js.map} +1 -1
- package/dist/chunks/{timestamp.component-DpA8pTzY.js → timestamp.component-BQmg8ejt.js} +3 -3
- package/dist/chunks/{timestamp.component-DpA8pTzY.js.map → timestamp.component-BQmg8ejt.js.map} +1 -1
- package/dist/chunks/{toaster.records-DjNU8CFN.js → toaster.records-DcadVT_W.js} +2 -2
- package/dist/chunks/{toaster.records-DjNU8CFN.js.map → toaster.records-DcadVT_W.js.map} +1 -1
- package/dist/chunks/tooltip.component-BBcfv22j.js +492 -0
- package/dist/chunks/tooltip.component-BBcfv22j.js.map +1 -0
- package/dist/chunks/tooltip.component-BlX3B2Di.js +2 -0
- package/dist/chunks/tooltip.component-BlX3B2Di.js.map +1 -0
- package/dist/chunks/typography.records-CSy2LmDd.js +2 -0
- package/dist/chunks/typography.records-CSy2LmDd.js.map +1 -0
- package/dist/chunks/{typography.records-BEd2lI_g.js → typography.records-DDZuRT8J.js} +22 -10
- package/dist/chunks/typography.records-DDZuRT8J.js.map +1 -0
- package/dist/chunks/{use-field-context-CFITFjXV.js → use-field-context-BZaIHuSQ.js} +2 -2
- package/dist/chunks/{use-field-context-CFITFjXV.js.map → use-field-context-BZaIHuSQ.js.map} +1 -1
- package/dist/chunks/{use-field-context-4x8yd4wU.js → use-field-context-CArmgHPP.js} +2 -2
- package/dist/chunks/{use-field-context-4x8yd4wU.js.map → use-field-context-CArmgHPP.js.map} +1 -1
- package/dist/chunks/{use-locale-context-ib8415q7.js → use-locale-context-BNU4MHrO.js} +775 -1127
- package/dist/chunks/use-locale-context-BNU4MHrO.js.map +1 -0
- package/dist/chunks/use-locale-context-D0LByRu9.js +22 -0
- package/dist/chunks/use-locale-context-D0LByRu9.js.map +1 -0
- package/dist/chunks/{withFormControl-CKHeFdbP.js → withFormControl-CdasHiz1.js} +56 -57
- package/dist/chunks/{withFormControl-CKHeFdbP.js.map → withFormControl-CdasHiz1.js.map} +1 -1
- package/dist/chunks/withFormControl-ClG2Nbcf.js +2 -0
- package/dist/chunks/{withFormControl-DUbGQZnV.js.map → withFormControl-ClG2Nbcf.js.map} +1 -1
- package/dist/chunks/{withTruncation-DubH2hvc.js → withTruncation-BY4-q1lB.js} +2 -2
- package/dist/chunks/{withTruncation-DubH2hvc.js.map → withTruncation-BY4-q1lB.js.map} +1 -1
- package/dist/chunks/{withTruncation-BjQjta4-.js → withTruncation-Do7RgFZB.js} +2 -2
- package/dist/chunks/{withTruncation-BjQjta4-.js.map → withTruncation-Do7RgFZB.js.map} +1 -1
- package/dist/chunks/{wrap-CfOMkouk.js → wrap-B8tBNeBY.js} +2 -2
- package/dist/chunks/{wrap-CfOMkouk.js.map → wrap-B8tBNeBY.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/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 +96 -97
- 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/Logo/index.js +1 -1
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/NotificationCounter/index.js +1 -1
- package/dist/esm/components/PinInput/index.js +1 -1
- package/dist/esm/components/Popover/index.js +1 -1
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/RatingDots/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/SortableList/index.js +1 -1
- package/dist/esm/components/Spinner/index.js +1 -1
- package/dist/esm/components/StyledAvatar/index.js +1 -1
- package/dist/esm/components/Swatch/index.js +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 +1 -1
- package/dist/esm/components/TextInput/index.js +1 -1
- package/dist/esm/components/Textarea/index.js +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/Timestamp/index.js +1 -1
- package/dist/esm/components/Toast/index.js +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +36 -36
- package/dist/esm/index.js +37 -37
- package/dist/esm/theme/index.js +1 -1
- package/dist/types/chakra/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/chunks/checkbox.anatomy-AIdXcqX-.js.map +0 -1
- package/dist/chunks/checkbox.anatomy-Cscbdyfb.js +0 -2
- package/dist/chunks/checkbox.anatomy-Cscbdyfb.js.map +0 -1
- package/dist/chunks/checkbox.component-BBnhOurl.js +0 -2
- package/dist/chunks/checkbox.records-DJfdKuOe.js +0 -2
- package/dist/chunks/checkbox.records-DJfdKuOe.js.map +0 -1
- package/dist/chunks/checkbox.records-JWbKQ684.js +0 -14
- package/dist/chunks/checkbox.records-JWbKQ684.js.map +0 -1
- package/dist/chunks/field.anatomy-B-h4RMqL.js +0 -2
- package/dist/chunks/field.anatomy-B-h4RMqL.js.map +0 -1
- package/dist/chunks/field.anatomy-DuyH4wX7.js +0 -16
- package/dist/chunks/field.anatomy-DuyH4wX7.js.map +0 -1
- package/dist/chunks/icon.component-DszmCnE4.js.map +0 -1
- package/dist/chunks/icon.component-aJ690VpJ.js +0 -2
- package/dist/chunks/icon.component-aJ690VpJ.js.map +0 -1
- package/dist/chunks/index-hGcS7e_x.js.map +0 -1
- package/dist/chunks/index-n37Ze35k.js.map +0 -1
- package/dist/chunks/preset-Bpky4UAW.js +0 -17019
- package/dist/chunks/preset-Bpky4UAW.js.map +0 -1
- package/dist/chunks/preset-L6TibmCL.js +0 -10
- package/dist/chunks/preset-L6TibmCL.js.map +0 -1
- package/dist/chunks/radio.records-BxCn4oUd.js +0 -2
- package/dist/chunks/radio.records-BxCn4oUd.js.map +0 -1
- package/dist/chunks/radio.records-Cc3kP4Vn.js +0 -14
- package/dist/chunks/radio.records-Cc3kP4Vn.js.map +0 -1
- package/dist/chunks/radioGroup.component-CEnFc_Ag.js +0 -2
- package/dist/chunks/theme.provider-C-kSI07j.js +0 -24
- package/dist/chunks/theme.provider-C-kSI07j.js.map +0 -1
- package/dist/chunks/theme.provider-CQ3U4kMw.js +0 -2885
- package/dist/chunks/theme.provider-CQ3U4kMw.js.map +0 -1
- package/dist/chunks/tooltip.component-BYqCIrbb.js +0 -142
- package/dist/chunks/tooltip.component-BYqCIrbb.js.map +0 -1
- package/dist/chunks/tooltip.component-DFn799tO.js +0 -2
- package/dist/chunks/tooltip.component-DFn799tO.js.map +0 -1
- package/dist/chunks/typography.records-BEd2lI_g.js.map +0 -1
- package/dist/chunks/typography.records-Cg_lT1Z3.js +0 -2
- package/dist/chunks/typography.records-Cg_lT1Z3.js.map +0 -1
- package/dist/chunks/use-locale-context-DxX8oC2w.js +0 -22
- package/dist/chunks/use-locale-context-DxX8oC2w.js.map +0 -1
- package/dist/chunks/use-locale-context-ib8415q7.js.map +0 -1
- package/dist/chunks/withFormControl-DUbGQZnV.js +0 -2
package/dist/chunks/{avatarGroup.component-CPjot93U.js.map → avatarGroup.component-CfSBCJKG.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatarGroup.component-
|
|
1
|
+
{"version":3,"file":"avatarGroup.component-CfSBCJKG.js","sources":["../../src/components/AvatarGroup/avatarGroup.component.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { AvatarGroup as CAvatarGroup, AvatarGroupProps as CAvatarGroupProps } from '@chakra-ui/react/avatar';\nimport { Avatar, AvatarProps } from 'components/Avatar/avatar.component';\nimport { AvatarSize, AvatarVariant } from 'components/Avatar/avatar.types';\n\nexport interface AvatarGroupProps extends CAvatarGroupProps {\n addButtonTooltipText?: string;\n avatars: AvatarProps[];\n max?: number;\n onAdd?: (event: React.MouseEvent<HTMLDivElement>) => void;\n onRemove?: (index: number) => void;\n showAddButton?: boolean;\n showRemoveAvatarButton?: boolean;\n size?: AvatarSize;\n variant?: AvatarVariant;\n}\n\nexport const AvatarGroup = ({\n addButtonTooltipText,\n avatars,\n max = 3,\n onAdd,\n onRemove,\n showAddButton = true,\n showRemoveAvatarButton = false,\n size = 'md',\n variant = 'default',\n ...rest\n}: AvatarGroupProps): React.JSX.Element => {\n const mergedNames = useMemo(() => avatars.map((avatar) => avatar.name).join(', '), [avatars]);\n const spacing = size === 'xs' || size === 'sm' ? -1 : -2;\n\n return (\n <CAvatarGroup\n className=\"AvatarGroup\"\n data-testid=\"kibble-avatar-group\"\n gap={0}\n spaceX={spacing}\n stacking=\"first-on-top\"\n size={size}\n {...rest}\n >\n {avatars.length > max ? (\n <Avatar\n name={`${avatars.length}`}\n size={size}\n variant=\"contrast\"\n showRemoveButton={false}\n tooltipProps={{ label: mergedNames }}\n />\n ) : (\n avatars.map((avatar, index) => (\n <Avatar\n {...avatar}\n key={avatar.name}\n size={size}\n variant={variant || avatar.variant}\n showRemoveButton={showRemoveAvatarButton}\n onRemove={() => onRemove?.(index)}\n />\n ))\n )}\n {showAddButton && (\n <Avatar\n variant=\"dashed\"\n iconName=\"plus\"\n onClick={onAdd}\n {...(!!addButtonTooltipText && {\n tooltipProps: { label: addButtonTooltipText },\n })}\n size={size}\n />\n )}\n </CAvatarGroup>\n );\n};\n"],"names":["AvatarGroup","addButtonTooltipText","avatars","max","onAdd","onRemove","showAddButton","showRemoveAvatarButton","size","variant","rest","mergedNames","useMemo","avatar","spacing","jsxs","CAvatarGroup","jsx","Avatar","index","createElement"],"mappings":"yHAiBaA,EAAc,CAAC,CAC1B,qBAAAC,EACA,QAAAC,EACA,IAAAC,EAAM,EACN,MAAAC,EACA,SAAAC,EACA,cAAAC,EAAgB,GAChB,uBAAAC,EAAyB,GACzB,KAAAC,EAAO,KACP,QAAAC,EAAU,UACV,GAAGC,CACL,IAA2C,CACzC,MAAMC,EAAcC,EAAA,QAAQ,IAAMV,EAAQ,IAAKW,GAAWA,EAAO,IAAI,EAAE,KAAK,IAAI,EAAG,CAACX,CAAO,CAAC,EACtFY,EAAUN,IAAS,MAAQA,IAAS,KAAO,GAAK,GAGpD,OAAAO,EAAA,kBAAA,KAACC,EAAA,YAAA,CACC,UAAU,cACV,cAAY,sBACZ,IAAK,EACL,OAAQF,EACR,SAAS,eACT,KAAAN,EACC,GAAGE,EAEH,SAAA,CAAAR,EAAQ,OAASC,EAChBc,EAAA,kBAAA,IAACC,EAAA,OAAA,CACC,KAAM,GAAGhB,EAAQ,MAAM,GACvB,KAAAM,EACA,QAAQ,WACR,iBAAkB,GAClB,aAAc,CAAE,MAAOG,CAAY,CAAA,CAGrC,EAAAT,EAAQ,IAAI,CAACW,EAAQM,IACnBC,EAAA,cAACF,EAAA,OAAA,CACE,GAAGL,EACJ,IAAKA,EAAO,KACZ,KAAAL,EACA,QAASC,GAAWI,EAAO,QAC3B,iBAAkBN,EAClB,SAAU,IAAMF,IAAWc,CAAK,CAAA,CAAA,CAEnC,EAEFb,GACCW,EAAA,kBAAA,IAACC,EAAA,OAAA,CACC,QAAQ,SACR,SAAS,OACT,QAASd,EACR,GAAI,CAAC,CAACH,GAAwB,CAC7B,aAAc,CAAE,MAAOA,CAAqB,CAC9C,EACA,KAAAO,CAAA,CAAA,CACF,CAAA,CAEJ,CAEJ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as a } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { useMemo as h, createElement as j } from "react";
|
|
3
|
-
import { a as v, A as n } from "./avatar.component-
|
|
3
|
+
import { a as v, A as n } from "./avatar.component-77NanIaH.js";
|
|
4
4
|
const k = ({
|
|
5
5
|
addButtonTooltipText: r,
|
|
6
6
|
avatars: e,
|
|
@@ -64,4 +64,4 @@ const k = ({
|
|
|
64
64
|
export {
|
|
65
65
|
k as A
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=avatarGroup.component-
|
|
67
|
+
//# sourceMappingURL=avatarGroup.component-dNR80_Br.js.map
|
package/dist/chunks/{avatarGroup.component-DboSD8PG.js.map → avatarGroup.component-dNR80_Br.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatarGroup.component-
|
|
1
|
+
{"version":3,"file":"avatarGroup.component-dNR80_Br.js","sources":["../../src/components/AvatarGroup/avatarGroup.component.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { AvatarGroup as CAvatarGroup, AvatarGroupProps as CAvatarGroupProps } from '@chakra-ui/react/avatar';\nimport { Avatar, AvatarProps } from 'components/Avatar/avatar.component';\nimport { AvatarSize, AvatarVariant } from 'components/Avatar/avatar.types';\n\nexport interface AvatarGroupProps extends CAvatarGroupProps {\n addButtonTooltipText?: string;\n avatars: AvatarProps[];\n max?: number;\n onAdd?: (event: React.MouseEvent<HTMLDivElement>) => void;\n onRemove?: (index: number) => void;\n showAddButton?: boolean;\n showRemoveAvatarButton?: boolean;\n size?: AvatarSize;\n variant?: AvatarVariant;\n}\n\nexport const AvatarGroup = ({\n addButtonTooltipText,\n avatars,\n max = 3,\n onAdd,\n onRemove,\n showAddButton = true,\n showRemoveAvatarButton = false,\n size = 'md',\n variant = 'default',\n ...rest\n}: AvatarGroupProps): React.JSX.Element => {\n const mergedNames = useMemo(() => avatars.map((avatar) => avatar.name).join(', '), [avatars]);\n const spacing = size === 'xs' || size === 'sm' ? -1 : -2;\n\n return (\n <CAvatarGroup\n className=\"AvatarGroup\"\n data-testid=\"kibble-avatar-group\"\n gap={0}\n spaceX={spacing}\n stacking=\"first-on-top\"\n size={size}\n {...rest}\n >\n {avatars.length > max ? (\n <Avatar\n name={`${avatars.length}`}\n size={size}\n variant=\"contrast\"\n showRemoveButton={false}\n tooltipProps={{ label: mergedNames }}\n />\n ) : (\n avatars.map((avatar, index) => (\n <Avatar\n {...avatar}\n key={avatar.name}\n size={size}\n variant={variant || avatar.variant}\n showRemoveButton={showRemoveAvatarButton}\n onRemove={() => onRemove?.(index)}\n />\n ))\n )}\n {showAddButton && (\n <Avatar\n variant=\"dashed\"\n iconName=\"plus\"\n onClick={onAdd}\n {...(!!addButtonTooltipText && {\n tooltipProps: { label: addButtonTooltipText },\n })}\n size={size}\n />\n )}\n </CAvatarGroup>\n );\n};\n"],"names":["AvatarGroup","addButtonTooltipText","avatars","max","onAdd","onRemove","showAddButton","showRemoveAvatarButton","size","variant","rest","mergedNames","useMemo","avatar","spacing","jsxs","CAvatarGroup","jsx","Avatar","index","createElement"],"mappings":";;;AAiBO,MAAMA,IAAc,CAAC;AAAA,EAC1B,sBAAAC;AAAA,EACA,SAAAC;AAAA,EACA,KAAAC,IAAM;AAAA,EACN,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,wBAAAC,IAAyB;AAAA,EACzB,MAAAC,IAAO;AAAA,EACP,SAAAC,IAAU;AAAA,EACV,GAAGC;AACL,MAA2C;AACzC,QAAMC,IAAcC,EAAQ,MAAMV,EAAQ,IAAI,CAACW,MAAWA,EAAO,IAAI,EAAE,KAAK,IAAI,GAAG,CAACX,CAAO,CAAC,GACtFY,IAAUN,MAAS,QAAQA,MAAS,OAAO,KAAK;AAGpD,SAAAO,gBAAAA,EAAA;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,KAAK;AAAA,MACL,QAAQF;AAAA,MACR,UAAS;AAAA,MACT,MAAAN;AAAA,MACC,GAAGE;AAAA,MAEH,UAAA;AAAA,QAAAR,EAAQ,SAASC,IAChBc,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,MAAM,GAAGhB,EAAQ,MAAM;AAAA,YACvB,MAAAM;AAAA,YACA,SAAQ;AAAA,YACR,kBAAkB;AAAA,YAClB,cAAc,EAAE,OAAOG,EAAY;AAAA,UAAA;AAAA,QAGrC,IAAAT,EAAQ,IAAI,CAACW,GAAQM,MACnB,gBAAAC;AAAA,UAACF;AAAA,UAAA;AAAA,YACE,GAAGL;AAAA,YACJ,KAAKA,EAAO;AAAA,YACZ,MAAAL;AAAA,YACA,SAASC,KAAWI,EAAO;AAAA,YAC3B,kBAAkBN;AAAA,YAClB,UAAU,MAAMF,IAAWc,CAAK;AAAA,UAAA;AAAA,QAAA,CAEnC;AAAA,QAEFb,KACCW,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,UAAS;AAAA,YACT,SAASd;AAAA,YACR,GAAI,CAAC,CAACH,KAAwB;AAAA,cAC7B,cAAc,EAAE,OAAOA,EAAqB;AAAA,YAC9C;AAAA,YACA,MAAAO;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAEJ;AAEJ;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { forwardRef as f, useMemo as b } from "react";
|
|
3
|
-
import { I as x } from "./icon.component-
|
|
3
|
+
import { I as x } from "./icon.component-S_qFWBRf.js";
|
|
4
4
|
import { I as B, B as j } from "./icon-button-DTZOklQ9.js";
|
|
5
5
|
const g = (s) => s.replace(/([A-Z])/g, " $1").replace(/^\w/, (o) => o.toUpperCase()), I = f(
|
|
6
6
|
({
|
|
@@ -64,4 +64,4 @@ I.displayName = "Button";
|
|
|
64
64
|
export {
|
|
65
65
|
I as B
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=button.component-
|
|
67
|
+
//# sourceMappingURL=button.component-Br9jCpBx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.component-
|
|
1
|
+
{"version":3,"file":"button.component-Br9jCpBx.js","sources":["../../src/shared/utils/strings.ts","../../src/components/Button/button.component.tsx"],"sourcesContent":["export const camelCaseToLabel = (s: string): string =>\n s.replace(/([A-Z])/g, ' $1').replace(/^\\w/, (c) => c.toUpperCase());\n\nexport const toTitleCase = (s: string): string => {\n const smallWords = /^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|v.?|vs.?|via)$/i;\n const alphanumericPattern = /([A-Za-z0-9\\u00C0-\\u00FF])/;\n const wordSeparators = /([ :–—-])/;\n\n return s\n .split(wordSeparators)\n .map(function (current, index, array) {\n if (\n /* Check for small words */\n current.search(smallWords) > -1 &&\n /* Skip first and last word */\n index !== 0 &&\n index !== array.length - 1 &&\n /* Ignore title end and subtitle start */\n array[index - 3] !== ':' &&\n array[index + 1] !== ':' &&\n /* Ignore small words that start a hyphenated phrase */\n (array[index + 1] !== '-' || (array[index - 1] === '-' && array[index + 1] === '-'))\n ) {\n return current.toLowerCase();\n }\n\n /* Ignore intentional capitalization */\n if (current.substring(1).search(/[A-Z]|\\../) > -1) {\n return current;\n }\n\n /* Ignore URLs */\n if (array[index + 1] === ':' && array[index + 2] !== '') {\n return current;\n }\n\n /* Capitalize the first letter */\n return current.replace(alphanumericPattern, (match) => match.toUpperCase());\n })\n .join('');\n};\n","import React, { ForwardedRef, forwardRef, useMemo } from 'react';\nimport { Button as CButton, ButtonProps as CButtonProps, IconButton as CIconButton } from '@chakra-ui/react/button';\nimport { IconName } from 'components/Icon/icon.types';\nimport {\n ButtonConfigVariant,\n ButtonIconPosition,\n ButtonSize,\n ButtonSpinnerPlacement,\n ButtonVariant,\n} from './button.types';\nimport { camelCaseToLabel } from 'shared/utils/strings';\nimport { Icon } from 'components/Icon';\n\nexport interface ButtonProps extends CButtonProps {\n active?: boolean;\n iconName?: IconName;\n iconPosition?: ButtonIconPosition;\n fullWidth?: boolean;\n size?: ButtonSize;\n spinnerPlacement?: ButtonSpinnerPlacement;\n onContrast?: boolean;\n variant?: ButtonVariant;\n}\n\n// TODO: onContrast variant is missing for ai button\nexport const Button = forwardRef(\n (\n {\n active,\n children,\n iconName,\n iconPosition = 'left',\n fullWidth = false,\n onContrast = false,\n size = 'md',\n variant = 'primary',\n ...rest\n }: ButtonProps,\n ref: ForwardedRef<HTMLButtonElement>,\n ): React.JSX.Element => {\n let icon;\n const computedVariant = useMemo(\n () => `${variant}${onContrast ? 'OnContrast' : ''}` as ButtonConfigVariant,\n [onContrast, variant],\n );\n\n if (iconName) {\n icon = <Icon size={size} name={iconName} />;\n\n if (!children) {\n const label = camelCaseToLabel(iconName);\n return (\n <CIconButton\n className=\"IconButton\"\n data-testid=\"kibble-icon-button\"\n ref={ref}\n aria-label={label}\n size={size}\n variant={computedVariant}\n {...rest}\n {...(fullWidth && { width: '100%' })}\n >\n {icon}\n </CIconButton>\n );\n }\n }\n\n return (\n <CButton\n className=\"Button\"\n data-testid=\"kibble-button\"\n fontWeight=\"semibold\"\n ref={ref}\n size={size}\n variant={computedVariant}\n {...(active && { 'data-active': true })}\n {...rest}\n {...(fullWidth && { width: '100%' })}\n {...(!!iconName && {\n gap: size === 'xs' || size === 'sm' ? 1 : 2,\n })}\n >\n {icon && iconPosition === 'left' ? icon : <></>}\n {children}\n {icon && iconPosition === 'right' ? icon : <></>}\n </CButton>\n );\n },\n);\n\nButton.displayName = 'Button';\n"],"names":["camelCaseToLabel","c","Button","forwardRef","active","children","iconName","iconPosition","fullWidth","onContrast","size","variant","rest","ref","icon","computedVariant","useMemo","jsx","Icon","label","CIconButton","jsxs","CButton","Fragment"],"mappings":";;;;AAAO,MAAMA,IAAmB,CAAC,MAC/B,EAAE,QAAQ,YAAY,KAAK,EAAE,QAAQ,OAAO,CAACC,MAAMA,EAAE,aAAa,GCwBvDC,IAASC;AAAA,EACpB,CACE;AAAA,IACE,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC,IAAe;AAAA,IACf,WAAAC,IAAY;AAAA,IACZ,YAAAC,IAAa;AAAA,IACb,MAAAC,IAAO;AAAA,IACP,SAAAC,IAAU;AAAA,IACV,GAAGC;AAAA,KAELC,MACsB;AAClB,QAAAC;AACJ,UAAMC,IAAkBC;AAAA,MACtB,MAAM,GAAGL,CAAO,GAAGF,IAAa,eAAe,EAAE;AAAA,MACjD,CAACA,GAAYE,CAAO;AAAA,IACtB;AAEA,QAAIL,MACFQ,IAAQG,gBAAAA,EAAA,IAAAC,GAAA,EAAK,MAAAR,GAAY,MAAMJ,GAAU,GAErC,CAACD,IAAU;AACP,YAAAc,IAAQnB,EAAiBM,CAAQ;AAErC,aAAAW,gBAAAA,EAAA;AAAA,QAACG;AAAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,eAAY;AAAA,UACZ,KAAAP;AAAA,UACA,cAAYM;AAAA,UACZ,MAAAT;AAAA,UACA,SAASK;AAAA,UACR,GAAGH;AAAA,UACH,GAAIJ,KAAa,EAAE,OAAO,OAAO;AAAA,UAEjC,UAAAM;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAMJ,WAAAO,gBAAAA,EAAA;AAAA,MAACC;AAAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,eAAY;AAAA,QACZ,YAAW;AAAA,QACX,KAAAT;AAAA,QACA,MAAAH;AAAA,QACA,SAASK;AAAA,QACR,GAAIX,KAAU,EAAE,eAAe,GAAK;AAAA,QACpC,GAAGQ;AAAA,QACH,GAAIJ,KAAa,EAAE,OAAO,OAAO;AAAA,QACjC,GAAI,CAAC,CAACF,KAAY;AAAA,UACjB,KAAKI,MAAS,QAAQA,MAAS,OAAO,IAAI;AAAA,QAC5C;AAAA,QAEC,UAAA;AAAA,UAAQI,KAAAP,MAAiB,SAASO,IAASG,gBAAAA,EAAA,IAAAM,EAAA,UAAA,EAAA;AAAA,UAC3ClB;AAAA,UACAS,KAAQP,MAAiB,UAAUO,IAASG,gBAAAA,EAAA,IAAAM,EAAA,UAAA,CAAA,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAC/C;AAAA,EAAA;AAGN;AAEArB,EAAO,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./jsx-runtime-BjDatQAs.js"),p=require("react"),R=require("./icon.component-
|
|
2
|
-
//# sourceMappingURL=button.component-
|
|
1
|
+
"use strict";const t=require("./jsx-runtime-BjDatQAs.js"),p=require("react"),R=require("./icon.component-B6R8-DRk.js"),j=require("./icon-button-DtjZ-SdQ.js"),B=a=>a.replace(/([A-Z])/g," $1").replace(/^\w/,n=>n.toUpperCase()),d=p.forwardRef(({active:a,children:n,iconName:o,iconPosition:r="left",fullWidth:u=!1,onContrast:i=!1,size:s="md",variant:c="primary",...x},m)=>{let e;const l=p.useMemo(()=>`${c}${i?"OnContrast":""}`,[i,c]);if(o&&(e=t.jsxRuntimeExports.jsx(R.Icon,{size:s,name:o}),!n)){const b=B(o);return t.jsxRuntimeExports.jsx(j.IconButton,{className:"IconButton","data-testid":"kibble-icon-button",ref:m,"aria-label":b,size:s,variant:l,...x,...u&&{width:"100%"},children:e})}return t.jsxRuntimeExports.jsxs(j.Button,{className:"Button","data-testid":"kibble-button",fontWeight:"semibold",ref:m,size:s,variant:l,...a&&{"data-active":!0},...x,...u&&{width:"100%"},...!!o&&{gap:s==="xs"||s==="sm"?1:2},children:[e&&r==="left"?e:t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{}),n,e&&r==="right"?e:t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{})]})});d.displayName="Button";exports.Button=d;
|
|
2
|
+
//# sourceMappingURL=button.component-CsJxgblU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.component-
|
|
1
|
+
{"version":3,"file":"button.component-CsJxgblU.js","sources":["../../src/shared/utils/strings.ts","../../src/components/Button/button.component.tsx"],"sourcesContent":["export const camelCaseToLabel = (s: string): string =>\n s.replace(/([A-Z])/g, ' $1').replace(/^\\w/, (c) => c.toUpperCase());\n\nexport const toTitleCase = (s: string): string => {\n const smallWords = /^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|v.?|vs.?|via)$/i;\n const alphanumericPattern = /([A-Za-z0-9\\u00C0-\\u00FF])/;\n const wordSeparators = /([ :–—-])/;\n\n return s\n .split(wordSeparators)\n .map(function (current, index, array) {\n if (\n /* Check for small words */\n current.search(smallWords) > -1 &&\n /* Skip first and last word */\n index !== 0 &&\n index !== array.length - 1 &&\n /* Ignore title end and subtitle start */\n array[index - 3] !== ':' &&\n array[index + 1] !== ':' &&\n /* Ignore small words that start a hyphenated phrase */\n (array[index + 1] !== '-' || (array[index - 1] === '-' && array[index + 1] === '-'))\n ) {\n return current.toLowerCase();\n }\n\n /* Ignore intentional capitalization */\n if (current.substring(1).search(/[A-Z]|\\../) > -1) {\n return current;\n }\n\n /* Ignore URLs */\n if (array[index + 1] === ':' && array[index + 2] !== '') {\n return current;\n }\n\n /* Capitalize the first letter */\n return current.replace(alphanumericPattern, (match) => match.toUpperCase());\n })\n .join('');\n};\n","import React, { ForwardedRef, forwardRef, useMemo } from 'react';\nimport { Button as CButton, ButtonProps as CButtonProps, IconButton as CIconButton } from '@chakra-ui/react/button';\nimport { IconName } from 'components/Icon/icon.types';\nimport {\n ButtonConfigVariant,\n ButtonIconPosition,\n ButtonSize,\n ButtonSpinnerPlacement,\n ButtonVariant,\n} from './button.types';\nimport { camelCaseToLabel } from 'shared/utils/strings';\nimport { Icon } from 'components/Icon';\n\nexport interface ButtonProps extends CButtonProps {\n active?: boolean;\n iconName?: IconName;\n iconPosition?: ButtonIconPosition;\n fullWidth?: boolean;\n size?: ButtonSize;\n spinnerPlacement?: ButtonSpinnerPlacement;\n onContrast?: boolean;\n variant?: ButtonVariant;\n}\n\n// TODO: onContrast variant is missing for ai button\nexport const Button = forwardRef(\n (\n {\n active,\n children,\n iconName,\n iconPosition = 'left',\n fullWidth = false,\n onContrast = false,\n size = 'md',\n variant = 'primary',\n ...rest\n }: ButtonProps,\n ref: ForwardedRef<HTMLButtonElement>,\n ): React.JSX.Element => {\n let icon;\n const computedVariant = useMemo(\n () => `${variant}${onContrast ? 'OnContrast' : ''}` as ButtonConfigVariant,\n [onContrast, variant],\n );\n\n if (iconName) {\n icon = <Icon size={size} name={iconName} />;\n\n if (!children) {\n const label = camelCaseToLabel(iconName);\n return (\n <CIconButton\n className=\"IconButton\"\n data-testid=\"kibble-icon-button\"\n ref={ref}\n aria-label={label}\n size={size}\n variant={computedVariant}\n {...rest}\n {...(fullWidth && { width: '100%' })}\n >\n {icon}\n </CIconButton>\n );\n }\n }\n\n return (\n <CButton\n className=\"Button\"\n data-testid=\"kibble-button\"\n fontWeight=\"semibold\"\n ref={ref}\n size={size}\n variant={computedVariant}\n {...(active && { 'data-active': true })}\n {...rest}\n {...(fullWidth && { width: '100%' })}\n {...(!!iconName && {\n gap: size === 'xs' || size === 'sm' ? 1 : 2,\n })}\n >\n {icon && iconPosition === 'left' ? icon : <></>}\n {children}\n {icon && iconPosition === 'right' ? icon : <></>}\n </CButton>\n );\n },\n);\n\nButton.displayName = 'Button';\n"],"names":["camelCaseToLabel","s","c","Button","forwardRef","active","children","iconName","iconPosition","fullWidth","onContrast","size","variant","rest","ref","icon","computedVariant","useMemo","jsx","Icon","label","CIconButton","jsxs","CButton","Fragment"],"mappings":"8JAAaA,EAAoBC,GAC/BA,EAAE,QAAQ,WAAY,KAAK,EAAE,QAAQ,MAAQC,GAAMA,EAAE,aAAa,ECwBvDC,EAASC,EAAA,WACpB,CACE,CACE,OAAAC,EACA,SAAAC,EACA,SAAAC,EACA,aAAAC,EAAe,OACf,UAAAC,EAAY,GACZ,WAAAC,EAAa,GACb,KAAAC,EAAO,KACP,QAAAC,EAAU,UACV,GAAGC,GAELC,IACsB,CAClB,IAAAC,EACJ,MAAMC,EAAkBC,EAAA,QACtB,IAAM,GAAGL,CAAO,GAAGF,EAAa,aAAe,EAAE,GACjD,CAACA,EAAYE,CAAO,CACtB,EAEA,GAAIL,IACFQ,EAAQG,EAAA,kBAAA,IAAAC,EAAA,KAAA,CAAK,KAAAR,EAAY,KAAMJ,EAAU,EAErC,CAACD,GAAU,CACP,MAAAc,EAAQpB,EAAiBO,CAAQ,EAErC,OAAAW,EAAA,kBAAA,IAACG,EAAA,WAAA,CACC,UAAU,aACV,cAAY,qBACZ,IAAAP,EACA,aAAYM,EACZ,KAAAT,EACA,QAASK,EACR,GAAGH,EACH,GAAIJ,GAAa,CAAE,MAAO,MAAO,EAEjC,SAAAM,CAAA,CACH,CAAA,CAMJ,OAAAO,EAAA,kBAAA,KAACC,EAAA,OAAA,CACC,UAAU,SACV,cAAY,gBACZ,WAAW,WACX,IAAAT,EACA,KAAAH,EACA,QAASK,EACR,GAAIX,GAAU,CAAE,cAAe,EAAK,EACpC,GAAGQ,EACH,GAAIJ,GAAa,CAAE,MAAO,MAAO,EACjC,GAAI,CAAC,CAACF,GAAY,CACjB,IAAKI,IAAS,MAAQA,IAAS,KAAO,EAAI,CAC5C,EAEC,SAAA,CAAQI,GAAAP,IAAiB,OAASO,EAASG,EAAA,kBAAA,IAAAM,EAAA,kBAAA,SAAA,EAAA,EAC3ClB,EACAS,GAAQP,IAAiB,QAAUO,EAASG,EAAA,kBAAA,IAAAM,EAAA,kBAAA,SAAA,CAAA,CAAA,CAAA,CAAA,CAC/C,CAAA,CAGN,EAEArB,EAAO,YAAc"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { forwardRef as j, useMemo as a } from "react";
|
|
3
|
-
import { B as y } from "./button.component-
|
|
4
|
-
import { M as G } from "./menu.component-
|
|
3
|
+
import { B as y } from "./button.component-Br9jCpBx.js";
|
|
4
|
+
import { M as G } from "./menu.component-DSFy9WEh.js";
|
|
5
5
|
import { u as c } from "./use-recipe-d63ABaZ3.js";
|
|
6
6
|
import { a as P } from "./icon-button-DTZOklQ9.js";
|
|
7
7
|
import { G as R } from "./group-DPCVolOl.js";
|
|
@@ -65,4 +65,4 @@ const k = j(
|
|
|
65
65
|
export {
|
|
66
66
|
w as B
|
|
67
67
|
};
|
|
68
|
-
//# sourceMappingURL=buttonGroup.component-
|
|
68
|
+
//# sourceMappingURL=buttonGroup.component-BTvvN-mr.js.map
|
package/dist/chunks/{buttonGroup.component-CeU9SOoZ.js.map → buttonGroup.component-BTvvN-mr.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttonGroup.component-
|
|
1
|
+
{"version":3,"file":"buttonGroup.component-BTvvN-mr.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/button/button-group.js","../../src/components/ButtonGroup/buttonGroup.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef, useMemo } from 'react';\nimport { useRecipe } from '../../styled-system/use-recipe.js';\nimport { ButtonPropsProvider } from './button.js';\nimport { Group } from '../group/group.js';\n\nconst ButtonGroup = forwardRef(\n function ButtonGroup2(props, ref) {\n const recipe = useRecipe({ key: \"button\" });\n const [variantProps, otherProps] = useMemo(\n () => recipe.splitVariantProps(props),\n [props, recipe]\n );\n return /* @__PURE__ */ jsx(ButtonPropsProvider, { value: variantProps, children: /* @__PURE__ */ jsx(Group, { ref, ...otherProps }) });\n }\n);\n\nexport { ButtonGroup };\n","import React, { useMemo } from 'react';\nimport { ButtonGroup as CButtonGroup, ButtonGroupProps as CButtonGroupProps } from '@chakra-ui/react/button';\nimport { GroupedButton } from './buttonGroup.types';\nimport { ButtonConfigVariant, ButtonSize, ButtonVariant } from 'components/Button/button.types';\nimport { Button } from 'components/Button/button.component';\nimport { SystemStyleObject, useRecipe } from '@chakra-ui/react/styled-system';\nimport { Menu, MenuProps } from 'components/Menu/menu.component';\n\nexport interface ButtonGroupProps extends CButtonGroupProps {\n buttons: GroupedButton[];\n onContrast?: boolean;\n size?: ButtonSize;\n variant?: ButtonVariant;\n menuProps?: MenuProps;\n}\n\nexport const ButtonGroup = ({\n attached = true,\n borderColor,\n buttons,\n menuProps,\n onContrast = false,\n size = 'md',\n variant = 'primary',\n ...rest\n}: ButtonGroupProps): React.JSX.Element => {\n const computedVariant = useMemo(\n () => `${variant}${onContrast ? 'OnContrast' : ''}` as ButtonConfigVariant,\n [onContrast, variant],\n );\n const recipe = useRecipe({ key: 'button' });\n const styles = recipe({ variant: computedVariant })['@layer recipes'];\n const computedBorderColor =\n styles?.borderColor !== 'var(--chakra-colors-transparent)' ? styles?.borderColor : styles?.color;\n\n const buttonStyles: SystemStyleObject = {\n borderWidth: '1px',\n borderColor: borderColor || computedBorderColor,\n };\n\n return (\n <CButtonGroup className=\"ButtonGroup\" data-testid=\"kibble-button-group\" attached={attached} {...rest}>\n {buttons.map(({ key, ...rest }, index) => (\n <Button\n key={key || index}\n size={size}\n variant={variant}\n onContrast={onContrast}\n {...rest}\n {...(attached && buttonStyles)}\n />\n ))}\n {menuProps && (\n <Menu\n positioning={{ placement: 'bottom' }}\n {...menuProps}\n buttonProps={{\n ...menuProps.buttonProps,\n size,\n variant,\n onContrast,\n ...(attached && {\n ...buttonStyles,\n borderTopLeftRadius: 0,\n borderBottomLeftRadius: 0,\n }),\n }}\n />\n )}\n </CButtonGroup>\n );\n};\n"],"names":["ButtonGroup","forwardRef","props","ref","recipe","useRecipe","variantProps","otherProps","useMemo","jsx","ButtonPropsProvider","Group","attached","borderColor","buttons","menuProps","onContrast","size","variant","rest","computedVariant","styles","computedBorderColor","buttonStyles","jsxs","CButtonGroup","key","index","Button","Menu"],"mappings":";;;;;;;AAQA,MAAMA,IAAcC;AAAA,EAClB,SAAsBC,GAAOC,GAAK;AAChC,UAAMC,IAASC,EAAU,EAAE,KAAK,SAAQ,CAAE,GACpC,CAACC,GAAcC,CAAU,IAAIC;AAAA,MACjC,MAAMJ,EAAO,kBAAkBF,CAAK;AAAA,MACpC,CAACA,GAAOE,CAAM;AAAA,IACf;AACD,WAAuBK,gBAAAA,EAAG,IAACC,GAAqB,EAAE,OAAOJ,GAAc,UAA0BG,gBAAAA,MAAIE,GAAO,EAAE,KAAAR,GAAK,GAAGI,EAAU,CAAE,EAAC,CAAE;AAAA,EACzI;AACA,GCDaP,IAAc,CAAC;AAAA,EAC1B,UAAAY,IAAW;AAAA,EACX,aAAAC;AAAA,EACA,SAAAC;AAAA,EACA,WAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,MAAAC,IAAO;AAAA,EACP,SAAAC,IAAU;AAAA,EACV,GAAGC;AACL,MAA2C;AACzC,QAAMC,IAAkBZ;AAAA,IACtB,MAAM,GAAGU,CAAO,GAAGF,IAAa,eAAe,EAAE;AAAA,IACjD,CAACA,GAAYE,CAAO;AAAA,EACtB,GAEMG,IADShB,EAAU,EAAE,KAAK,UAAU,EACpB,EAAE,SAASe,EAAgB,CAAC,EAAE,gBAAgB,GAC9DE,IACJD,GAAQ,gBAAgB,qCAAqCA,GAAQ,cAAcA,GAAQ,OAEvFE,IAAkC;AAAA,IACtC,aAAa;AAAA,IACb,aAAaV,KAAeS;AAAA,EAC9B;AAGE,SAAAE,gBAAAA,OAACC,KAAa,WAAU,eAAc,eAAY,uBAAsB,UAAAb,GAAqB,GAAGO,GAC7F,UAAA;AAAA,IAAAL,EAAQ,IAAI,CAAC,EAAE,KAAAY,GAAK,GAAGP,EAAAA,GAAQQ,MAC9BlB,gBAAAA,EAAA;AAAA,MAACmB;AAAA,MAAA;AAAA,QAEC,MAAAX;AAAA,QACA,SAAAC;AAAA,QACA,YAAAF;AAAA,QACC,GAAGG;AAAAA,QACH,GAAIP,KAAYW;AAAA,MAAA;AAAA,MALZG,KAAOC;AAAA,IAAA,CAOf;AAAA,IACAZ,KACCN,gBAAAA,EAAA;AAAA,MAACoB;AAAA,MAAA;AAAA,QACC,aAAa,EAAE,WAAW,SAAS;AAAA,QAClC,GAAGd;AAAA,QACJ,aAAa;AAAA,UACX,GAAGA,EAAU;AAAA,UACb,MAAAE;AAAA,UACA,SAAAC;AAAA,UACA,YAAAF;AAAA,UACA,GAAIJ,KAAY;AAAA,YACd,GAAGW;AAAA,YACH,qBAAqB;AAAA,YACrB,wBAAwB;AAAA,UAAA;AAAA,QAC1B;AAAA,MACF;AAAA,IAAA;AAAA,EACF,GAEJ;AAEJ;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-BjDatQAs.js"),p=require("react"),B=require("./button.component-
|
|
2
|
-
//# sourceMappingURL=buttonGroup.component-
|
|
1
|
+
"use strict";const e=require("./jsx-runtime-BjDatQAs.js"),p=require("react"),B=require("./button.component-CsJxgblU.js"),q=require("./menu.component-MeUyoUF9.js"),d=require("./use-recipe-DaPWl_pL.js"),f=require("./icon-button-DtjZ-SdQ.js"),y=require("./group-Cv7AQw1b.js"),G=p.forwardRef(function(s,c){const o=d.useRecipe({key:"button"}),[t,u]=p.useMemo(()=>o.splitVariantProps(s),[s,o]);return e.jsxRuntimeExports.jsx(f.ButtonPropsProvider,{value:t,children:e.jsxRuntimeExports.jsx(y.Group,{ref:c,...u})})}),E=({attached:r=!0,borderColor:s,buttons:c,menuProps:o,onContrast:t=!1,size:u="md",variant:n="primary",...l})=>{const x=p.useMemo(()=>`${n}${t?"OnContrast":""}`,[t,n]),i=d.useRecipe({key:"button"})({variant:x})["@layer recipes"],b=i?.borderColor!=="var(--chakra-colors-transparent)"?i?.borderColor:i?.color,m={borderWidth:"1px",borderColor:s||b};return e.jsxRuntimeExports.jsxs(G,{className:"ButtonGroup","data-testid":"kibble-button-group",attached:r,...l,children:[c.map(({key:a,...R},j)=>e.jsxRuntimeExports.jsx(B.Button,{size:u,variant:n,onContrast:t,...R,...r&&m},a||j)),o&&e.jsxRuntimeExports.jsx(q.Menu,{positioning:{placement:"bottom"},...o,buttonProps:{...o.buttonProps,size:u,variant:n,onContrast:t,...r&&{...m,borderTopLeftRadius:0,borderBottomLeftRadius:0}}})]})};exports.ButtonGroup=E;
|
|
2
|
+
//# sourceMappingURL=buttonGroup.component-Bnd3WutZ.js.map
|
package/dist/chunks/{buttonGroup.component-CmsAFBU-.js.map → buttonGroup.component-Bnd3WutZ.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttonGroup.component-
|
|
1
|
+
{"version":3,"file":"buttonGroup.component-Bnd3WutZ.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/button/button-group.js","../../src/components/ButtonGroup/buttonGroup.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef, useMemo } from 'react';\nimport { useRecipe } from '../../styled-system/use-recipe.js';\nimport { ButtonPropsProvider } from './button.js';\nimport { Group } from '../group/group.js';\n\nconst ButtonGroup = forwardRef(\n function ButtonGroup2(props, ref) {\n const recipe = useRecipe({ key: \"button\" });\n const [variantProps, otherProps] = useMemo(\n () => recipe.splitVariantProps(props),\n [props, recipe]\n );\n return /* @__PURE__ */ jsx(ButtonPropsProvider, { value: variantProps, children: /* @__PURE__ */ jsx(Group, { ref, ...otherProps }) });\n }\n);\n\nexport { ButtonGroup };\n","import React, { useMemo } from 'react';\nimport { ButtonGroup as CButtonGroup, ButtonGroupProps as CButtonGroupProps } from '@chakra-ui/react/button';\nimport { GroupedButton } from './buttonGroup.types';\nimport { ButtonConfigVariant, ButtonSize, ButtonVariant } from 'components/Button/button.types';\nimport { Button } from 'components/Button/button.component';\nimport { SystemStyleObject, useRecipe } from '@chakra-ui/react/styled-system';\nimport { Menu, MenuProps } from 'components/Menu/menu.component';\n\nexport interface ButtonGroupProps extends CButtonGroupProps {\n buttons: GroupedButton[];\n onContrast?: boolean;\n size?: ButtonSize;\n variant?: ButtonVariant;\n menuProps?: MenuProps;\n}\n\nexport const ButtonGroup = ({\n attached = true,\n borderColor,\n buttons,\n menuProps,\n onContrast = false,\n size = 'md',\n variant = 'primary',\n ...rest\n}: ButtonGroupProps): React.JSX.Element => {\n const computedVariant = useMemo(\n () => `${variant}${onContrast ? 'OnContrast' : ''}` as ButtonConfigVariant,\n [onContrast, variant],\n );\n const recipe = useRecipe({ key: 'button' });\n const styles = recipe({ variant: computedVariant })['@layer recipes'];\n const computedBorderColor =\n styles?.borderColor !== 'var(--chakra-colors-transparent)' ? styles?.borderColor : styles?.color;\n\n const buttonStyles: SystemStyleObject = {\n borderWidth: '1px',\n borderColor: borderColor || computedBorderColor,\n };\n\n return (\n <CButtonGroup className=\"ButtonGroup\" data-testid=\"kibble-button-group\" attached={attached} {...rest}>\n {buttons.map(({ key, ...rest }, index) => (\n <Button\n key={key || index}\n size={size}\n variant={variant}\n onContrast={onContrast}\n {...rest}\n {...(attached && buttonStyles)}\n />\n ))}\n {menuProps && (\n <Menu\n positioning={{ placement: 'bottom' }}\n {...menuProps}\n buttonProps={{\n ...menuProps.buttonProps,\n size,\n variant,\n onContrast,\n ...(attached && {\n ...buttonStyles,\n borderTopLeftRadius: 0,\n borderBottomLeftRadius: 0,\n }),\n }}\n />\n )}\n </CButtonGroup>\n );\n};\n"],"names":["ButtonGroup","forwardRef","props","ref","recipe","useRecipe","variantProps","otherProps","useMemo","jsx","ButtonPropsProvider","Group","attached","borderColor","buttons","menuProps","onContrast","size","variant","rest","computedVariant","styles","computedBorderColor","buttonStyles","jsxs","CButtonGroup","key","index","Button","Menu"],"mappings":"iRAQMA,EAAcC,EAAU,WAC5B,SAAsBC,EAAOC,EAAK,CAChC,MAAMC,EAASC,EAAS,UAAC,CAAE,IAAK,QAAQ,CAAE,EACpC,CAACC,EAAcC,CAAU,EAAIC,EAAO,QACxC,IAAMJ,EAAO,kBAAkBF,CAAK,EACpC,CAACA,EAAOE,CAAM,CACf,EACD,OAAuBK,EAAG,kBAAA,IAACC,EAAmB,oBAAE,CAAE,MAAOJ,EAAc,SAA0BG,wBAAIE,EAAAA,MAAO,CAAE,IAAAR,EAAK,GAAGI,CAAU,CAAE,CAAC,CAAE,CACzI,CACA,ECDaP,EAAc,CAAC,CAC1B,SAAAY,EAAW,GACX,YAAAC,EACA,QAAAC,EACA,UAAAC,EACA,WAAAC,EAAa,GACb,KAAAC,EAAO,KACP,QAAAC,EAAU,UACV,GAAGC,CACL,IAA2C,CACzC,MAAMC,EAAkBZ,EAAA,QACtB,IAAM,GAAGU,CAAO,GAAGF,EAAa,aAAe,EAAE,GACjD,CAACA,EAAYE,CAAO,CACtB,EAEMG,EADShB,EAAA,UAAU,CAAE,IAAK,SAAU,EACpB,CAAE,QAASe,CAAgB,CAAC,EAAE,gBAAgB,EAC9DE,EACJD,GAAQ,cAAgB,mCAAqCA,GAAQ,YAAcA,GAAQ,MAEvFE,EAAkC,CACtC,YAAa,MACb,YAAaV,GAAeS,CAC9B,EAGE,OAAAE,yBAACC,GAAa,UAAU,cAAc,cAAY,sBAAsB,SAAAb,EAAqB,GAAGO,EAC7F,SAAA,CAAAL,EAAQ,IAAI,CAAC,CAAE,IAAAY,EAAK,GAAGP,CAAAA,EAAQQ,IAC9BlB,EAAA,kBAAA,IAACmB,EAAA,OAAA,CAEC,KAAAX,EACA,QAAAC,EACA,WAAAF,EACC,GAAGG,EACH,GAAIP,GAAYW,CAAA,EALZG,GAAOC,CAAA,CAOf,EACAZ,GACCN,EAAA,kBAAA,IAACoB,EAAA,KAAA,CACC,YAAa,CAAE,UAAW,QAAS,EAClC,GAAGd,EACJ,YAAa,CACX,GAAGA,EAAU,YACb,KAAAE,EACA,QAAAC,EACA,WAAAF,EACA,GAAIJ,GAAY,CACd,GAAGW,EACH,oBAAqB,EACrB,uBAAwB,CAAA,CAC1B,CACF,CAAA,CACF,EAEJ,CAEJ","x_google_ignoreList":[0]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { useMemo as l } from "react";
|
|
3
|
-
import { W as e } from "./text.component-
|
|
4
|
-
import { a as u } from "./config-
|
|
3
|
+
import { W as e } from "./text.component-BMna3XOy.js";
|
|
4
|
+
import { a as u } from "./config-DlTdf-Yt.js";
|
|
5
5
|
import { u as d } from "./use-slot-recipe-DhtQ1j_5.js";
|
|
6
6
|
import { H as m } from "./h-stack-Ce6JSBK2.js";
|
|
7
7
|
const p = u({
|
|
@@ -81,4 +81,4 @@ const p = u({
|
|
|
81
81
|
export {
|
|
82
82
|
k as C
|
|
83
83
|
};
|
|
84
|
-
//# sourceMappingURL=characterCounter.component-
|
|
84
|
+
//# sourceMappingURL=characterCounter.component-DElJ1iFK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"characterCounter.component-
|
|
1
|
+
{"version":3,"file":"characterCounter.component-DElJ1iFK.js","sources":["../../src/components/CharacterCounter/characterCounter.recipe.ts","../../src/components/CharacterCounter/characterCounter.component.tsx"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nexport const characterCounterRecipe = defineSlotRecipe({\n slots: ['root', 'count', 'limit'],\n base: {\n root: {\n position: 'absolute',\n right: 0,\n bottom: '-20px',\n gap: 1,\n },\n },\n variants: {\n variant: {\n default: {\n root: {\n background: 'background',\n },\n count: {\n color: 'text.subtle',\n },\n limit: {\n color: 'text.subtle',\n },\n },\n onContrast: {\n root: {\n background: 'background.contrast',\n },\n count: {\n color: 'text.subtle.contrast',\n },\n limit: {\n color: 'text.subtle.contrast',\n },\n },\n },\n invalid: {\n true: {\n count: {\n color: 'text.danger',\n },\n },\n false: {},\n },\n },\n compoundVariants: [\n {\n invalid: true,\n variant: 'onContrast',\n css: {\n count: {\n color: 'text.danger.contrast',\n },\n },\n },\n ],\n defaultVariants: {\n variant: 'default',\n invalid: false,\n },\n});\n","import React, { useMemo } from 'react';\nimport { HStack } from '@chakra-ui/react/stack';\nimport { Text } from 'components/Text/text.component';\nimport { useSlotRecipe } from '@chakra-ui/react';\nimport { characterCounterRecipe } from './characterCounter.recipe';\n\nexport interface BaseCharacterCounterProps {\n currentCount: number;\n onContrast?: boolean;\n}\n\ninterface CharacterCounterWithLimitProps extends BaseCharacterCounterProps {\n limit: number;\n withLimit?: true;\n}\n\ninterface OnlyCharacterCounterProps extends BaseCharacterCounterProps {\n limit?: never;\n withLimit?: false;\n}\n\nexport type CharacterCounterProps = CharacterCounterWithLimitProps | OnlyCharacterCounterProps;\n\nexport const CharacterCounter = ({\n currentCount,\n onContrast = false,\n limit,\n withLimit = true,\n}: CharacterCounterProps): React.JSX.Element => {\n const variant = onContrast ? 'onContrast' : 'default';\n const invalid = useMemo(() => {\n if (!limit) return false;\n return currentCount > limit;\n }, [currentCount, limit]);\n const recipe = useSlotRecipe({ recipe: characterCounterRecipe });\n const styles = recipe({ variant, invalid });\n\n return (\n <HStack className=\"CharacterCount\" data-testid=\"kibble-character-count\" css={styles.root}>\n <Text className=\"CharacterCount__Count\" data-testid=\"kibble-character-count-count\" size=\"xs\" css={styles.count}>\n {currentCount}\n </Text>\n {withLimit && (\n <Text className=\"CharacterCount__Limit\" data-testid=\"kibble-character-count-limit\" size=\"xs\" css={styles.limit}>\n / {limit}\n </Text>\n )}\n </HStack>\n );\n};\n"],"names":["characterCounterRecipe","defineSlotRecipe","CharacterCounter","currentCount","onContrast","limit","withLimit","variant","invalid","useMemo","styles","useSlotRecipe","jsxs","HStack","jsx","Text"],"mappings":";;;;;;AAEO,MAAMA,IAAyBC,EAAiB;AAAA,EACrD,OAAO,CAAC,QAAQ,SAAS,OAAO;AAAA,EAChC,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,UAAU;AAAA,MACV,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,KAAK;AAAA,IAAA;AAAA,EAET;AAAA,EACA,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,QACP,MAAM;AAAA,UACJ,YAAY;AAAA,QACd;AAAA,QACA,OAAO;AAAA,UACL,OAAO;AAAA,QACT;AAAA,QACA,OAAO;AAAA,UACL,OAAO;AAAA,QAAA;AAAA,MAEX;AAAA,MACA,YAAY;AAAA,QACV,MAAM;AAAA,UACJ,YAAY;AAAA,QACd;AAAA,QACA,OAAO;AAAA,UACL,OAAO;AAAA,QACT;AAAA,QACA,OAAO;AAAA,UACL,OAAO;AAAA,QAAA;AAAA,MACT;AAAA,IAEJ;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,QACJ,OAAO;AAAA,UACL,OAAO;AAAA,QAAA;AAAA,MAEX;AAAA,MACA,OAAO,CAAA;AAAA,IAAC;AAAA,EAEZ;AAAA,EACA,kBAAkB;AAAA,IAChB;AAAA,MACE,SAAS;AAAA,MACT,SAAS;AAAA,MACT,KAAK;AAAA,QACH,OAAO;AAAA,UACL,OAAO;AAAA,QAAA;AAAA,MACT;AAAA,IACF;AAAA,EAEJ;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,SAAS;AAAA,EAAA;AAEb,CAAC,GCtCYC,IAAmB,CAAC;AAAA,EAC/B,cAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,OAAAC;AAAA,EACA,WAAAC,IAAY;AACd,MAAgD;AACxC,QAAAC,IAAUH,IAAa,eAAe,WACtCI,IAAUC,EAAQ,MACjBJ,IACEF,IAAeE,IADH,IAElB,CAACF,GAAcE,CAAK,CAAC,GAElBK,IADSC,EAAc,EAAE,QAAQX,GAAwB,EACzC,EAAE,SAAAO,GAAS,SAAAC,GAAS;AAGxC,SAAAI,gBAAAA,OAACC,KAAO,WAAU,kBAAiB,eAAY,0BAAyB,KAAKH,EAAO,MAClF,UAAA;AAAA,IAACI,gBAAAA,EAAAA,IAAAC,GAAA,EAAK,WAAU,yBAAwB,eAAY,gCAA+B,MAAK,MAAK,KAAKL,EAAO,OACtG,UACHP,EAAA,CAAA;AAAA,IACCG,KACEM,gBAAAA,EAAAA,KAAAG,GAAA,EAAK,WAAU,yBAAwB,eAAY,gCAA+B,MAAK,MAAK,KAAKL,EAAO,OAAO,UAAA;AAAA,MAAA;AAAA,MAC3GL;AAAA,IAAA,EACL,CAAA;AAAA,EAAA,GAEJ;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const o=require("./jsx-runtime-BjDatQAs.js"),u=require("react"),a=require("./text.component-
|
|
2
|
-
//# sourceMappingURL=characterCounter.component-
|
|
1
|
+
"use strict";const o=require("./jsx-runtime-BjDatQAs.js"),u=require("react"),a=require("./text.component-waIIFgwB.js"),l=require("./config-BFcXpdZo.js"),d=require("./use-slot-recipe-8liupslO.js"),x=require("./h-stack-Bjx9hlJo.js"),p=l.defineSlotRecipe({slots:["root","count","limit"],base:{root:{position:"absolute",right:0,bottom:"-20px",gap:1}},variants:{variant:{default:{root:{background:"background"},count:{color:"text.subtle"},limit:{color:"text.subtle"}},onContrast:{root:{background:"background.contrast"},count:{color:"text.subtle.contrast"},limit:{color:"text.subtle.contrast"}}},invalid:{true:{count:{color:"text.danger"}},false:{}}},compoundVariants:[{invalid:!0,variant:"onContrast",css:{count:{color:"text.danger.contrast"}}}],defaultVariants:{variant:"default",invalid:!1}}),b=({currentCount:e,onContrast:s=!1,limit:t,withLimit:c=!0})=>{const n=s?"onContrast":"default",i=u.useMemo(()=>t?e>t:!1,[e,t]),r=d.useSlotRecipe({recipe:p})({variant:n,invalid:i});return o.jsxRuntimeExports.jsxs(x.HStack,{className:"CharacterCount","data-testid":"kibble-character-count",css:r.root,children:[o.jsxRuntimeExports.jsx(a.WrappedText,{className:"CharacterCount__Count","data-testid":"kibble-character-count-count",size:"xs",css:r.count,children:e}),c&&o.jsxRuntimeExports.jsxs(a.WrappedText,{className:"CharacterCount__Limit","data-testid":"kibble-character-count-limit",size:"xs",css:r.limit,children:["/ ",t]})]})};exports.CharacterCounter=b;
|
|
2
|
+
//# sourceMappingURL=characterCounter.component-DXmly18j.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"characterCounter.component-
|
|
1
|
+
{"version":3,"file":"characterCounter.component-DXmly18j.js","sources":["../../src/components/CharacterCounter/characterCounter.recipe.ts","../../src/components/CharacterCounter/characterCounter.component.tsx"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nexport const characterCounterRecipe = defineSlotRecipe({\n slots: ['root', 'count', 'limit'],\n base: {\n root: {\n position: 'absolute',\n right: 0,\n bottom: '-20px',\n gap: 1,\n },\n },\n variants: {\n variant: {\n default: {\n root: {\n background: 'background',\n },\n count: {\n color: 'text.subtle',\n },\n limit: {\n color: 'text.subtle',\n },\n },\n onContrast: {\n root: {\n background: 'background.contrast',\n },\n count: {\n color: 'text.subtle.contrast',\n },\n limit: {\n color: 'text.subtle.contrast',\n },\n },\n },\n invalid: {\n true: {\n count: {\n color: 'text.danger',\n },\n },\n false: {},\n },\n },\n compoundVariants: [\n {\n invalid: true,\n variant: 'onContrast',\n css: {\n count: {\n color: 'text.danger.contrast',\n },\n },\n },\n ],\n defaultVariants: {\n variant: 'default',\n invalid: false,\n },\n});\n","import React, { useMemo } from 'react';\nimport { HStack } from '@chakra-ui/react/stack';\nimport { Text } from 'components/Text/text.component';\nimport { useSlotRecipe } from '@chakra-ui/react';\nimport { characterCounterRecipe } from './characterCounter.recipe';\n\nexport interface BaseCharacterCounterProps {\n currentCount: number;\n onContrast?: boolean;\n}\n\ninterface CharacterCounterWithLimitProps extends BaseCharacterCounterProps {\n limit: number;\n withLimit?: true;\n}\n\ninterface OnlyCharacterCounterProps extends BaseCharacterCounterProps {\n limit?: never;\n withLimit?: false;\n}\n\nexport type CharacterCounterProps = CharacterCounterWithLimitProps | OnlyCharacterCounterProps;\n\nexport const CharacterCounter = ({\n currentCount,\n onContrast = false,\n limit,\n withLimit = true,\n}: CharacterCounterProps): React.JSX.Element => {\n const variant = onContrast ? 'onContrast' : 'default';\n const invalid = useMemo(() => {\n if (!limit) return false;\n return currentCount > limit;\n }, [currentCount, limit]);\n const recipe = useSlotRecipe({ recipe: characterCounterRecipe });\n const styles = recipe({ variant, invalid });\n\n return (\n <HStack className=\"CharacterCount\" data-testid=\"kibble-character-count\" css={styles.root}>\n <Text className=\"CharacterCount__Count\" data-testid=\"kibble-character-count-count\" size=\"xs\" css={styles.count}>\n {currentCount}\n </Text>\n {withLimit && (\n <Text className=\"CharacterCount__Limit\" data-testid=\"kibble-character-count-limit\" size=\"xs\" css={styles.limit}>\n / {limit}\n </Text>\n )}\n </HStack>\n );\n};\n"],"names":["characterCounterRecipe","defineSlotRecipe","CharacterCounter","currentCount","onContrast","limit","withLimit","variant","invalid","useMemo","styles","useSlotRecipe","jsxs","HStack","jsx","Text"],"mappings":"uOAEaA,EAAyBC,EAAAA,iBAAiB,CACrD,MAAO,CAAC,OAAQ,QAAS,OAAO,EAChC,KAAM,CACJ,KAAM,CACJ,SAAU,WACV,MAAO,EACP,OAAQ,QACR,IAAK,CAAA,CAET,EACA,SAAU,CACR,QAAS,CACP,QAAS,CACP,KAAM,CACJ,WAAY,YACd,EACA,MAAO,CACL,MAAO,aACT,EACA,MAAO,CACL,MAAO,aAAA,CAEX,EACA,WAAY,CACV,KAAM,CACJ,WAAY,qBACd,EACA,MAAO,CACL,MAAO,sBACT,EACA,MAAO,CACL,MAAO,sBAAA,CACT,CAEJ,EACA,QAAS,CACP,KAAM,CACJ,MAAO,CACL,MAAO,aAAA,CAEX,EACA,MAAO,CAAA,CAAC,CAEZ,EACA,iBAAkB,CAChB,CACE,QAAS,GACT,QAAS,aACT,IAAK,CACH,MAAO,CACL,MAAO,sBAAA,CACT,CACF,CAEJ,EACA,gBAAiB,CACf,QAAS,UACT,QAAS,EAAA,CAEb,CAAC,ECtCYC,EAAmB,CAAC,CAC/B,aAAAC,EACA,WAAAC,EAAa,GACb,MAAAC,EACA,UAAAC,EAAY,EACd,IAAgD,CACxC,MAAAC,EAAUH,EAAa,aAAe,UACtCI,EAAUC,EAAAA,QAAQ,IACjBJ,EACEF,EAAeE,EADH,GAElB,CAACF,EAAcE,CAAK,CAAC,EAElBK,EADSC,EAAA,cAAc,CAAE,OAAQX,EAAwB,EACzC,CAAE,QAAAO,EAAS,QAAAC,EAAS,EAGxC,OAAAI,yBAACC,EAAAA,QAAO,UAAU,iBAAiB,cAAY,yBAAyB,IAAKH,EAAO,KAClF,SAAA,CAACI,EAAAA,kBAAAA,IAAAC,EAAAA,YAAA,CAAK,UAAU,wBAAwB,cAAY,+BAA+B,KAAK,KAAK,IAAKL,EAAO,MACtG,SACHP,CAAA,CAAA,EACCG,GACEM,EAAAA,kBAAAA,KAAAG,EAAAA,YAAA,CAAK,UAAU,wBAAwB,cAAY,+BAA+B,KAAK,KAAK,IAAKL,EAAO,MAAO,SAAA,CAAA,KAC3GL,CAAA,CACL,CAAA,CAAA,EAEJ,CAEJ"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import j, { forwardRef as b, useState as E, useCallback as H, useMemo as q, useId as F } from "react";
|
|
3
|
-
import { w as T } from "./withFormControl-
|
|
3
|
+
import { w as T } from "./withFormControl-CdasHiz1.js";
|
|
4
4
|
import { C as D, a as Y } from "./card.component-DNX41NGG.js";
|
|
5
|
-
import { W as B } from "./text.component-
|
|
6
|
-
import {
|
|
7
|
-
import { c as
|
|
5
|
+
import { W as B } from "./text.component-BMna3XOy.js";
|
|
6
|
+
import { c as U, m as J, a as K, C as Q, b as X } from "./checkbox.records-Ds6SvFdm.js";
|
|
7
|
+
import { c as Z } from "./create-slot-recipe-context-BJmsuxih.js";
|
|
8
8
|
import { c as m } from "./factory-Ctbv0Ozn.js";
|
|
9
|
-
import { d as
|
|
10
|
-
import { a as
|
|
11
|
-
import { u as
|
|
12
|
-
import { c as N, f as C,
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { u as V } from "./use-field-context-CFITFjXV.js";
|
|
9
|
+
import { d as z } from "./attr-sm10PXOd.js";
|
|
10
|
+
import { a as ee } from "./empty-BU2EAux9.js";
|
|
11
|
+
import { u as oe } from "./use-recipe-d63ABaZ3.js";
|
|
12
|
+
import { c as N, f as C, o as te, a as g, i as re, j as ce, k as se, n as ae } from "./use-locale-context-BNU4MHrO.js";
|
|
13
|
+
import { a1 as p } from "./index-Ztgrae6O.js";
|
|
14
|
+
import { u as V } from "./use-field-context-BZaIHuSQ.js";
|
|
16
15
|
const [I, f] = N({
|
|
17
16
|
name: "CheckboxContext",
|
|
18
17
|
hookName: "useCheckboxContext",
|
|
@@ -23,14 +22,14 @@ const [I, f] = N({
|
|
|
23
22
|
});
|
|
24
23
|
R.displayName = "CheckboxControl";
|
|
25
24
|
function ne(c) {
|
|
26
|
-
const { value: e, onChange: o, defaultValue: t } = c, [
|
|
27
|
-
(u) => (n ||
|
|
25
|
+
const { value: e, onChange: o, defaultValue: t } = c, [s, a] = E(t), n = e !== void 0, i = n ? e : s, l = H(
|
|
26
|
+
(u) => (n || a(u), o?.(u)),
|
|
28
27
|
[n, o]
|
|
29
28
|
);
|
|
30
29
|
return [i, l];
|
|
31
30
|
}
|
|
32
31
|
function ie(c = {}) {
|
|
33
|
-
const { defaultValue: e, value: o, onValueChange: t, disabled:
|
|
32
|
+
const { defaultValue: e, value: o, onValueChange: t, disabled: s, readOnly: a, name: n, invalid: i } = c, l = !(s || a), u = te(t, { sync: !0 }), [k, h] = ne({
|
|
34
33
|
value: o,
|
|
35
34
|
defaultValue: e || [],
|
|
36
35
|
onChange: u
|
|
@@ -45,8 +44,8 @@ function ie(c = {}) {
|
|
|
45
44
|
isChecked: x,
|
|
46
45
|
value: k,
|
|
47
46
|
name: n,
|
|
48
|
-
disabled: !!
|
|
49
|
-
readOnly: !!
|
|
47
|
+
disabled: !!s,
|
|
48
|
+
readOnly: !!a,
|
|
50
49
|
invalid: !!i,
|
|
51
50
|
setValue: h,
|
|
52
51
|
addValue: y,
|
|
@@ -57,8 +56,8 @@ function ie(c = {}) {
|
|
|
57
56
|
d.value != null && P(d.value);
|
|
58
57
|
},
|
|
59
58
|
name: n,
|
|
60
|
-
disabled:
|
|
61
|
-
readOnly:
|
|
59
|
+
disabled: s,
|
|
60
|
+
readOnly: a,
|
|
62
61
|
invalid: i
|
|
63
62
|
})
|
|
64
63
|
};
|
|
@@ -77,13 +76,13 @@ const [de, le] = N({
|
|
|
77
76
|
"invalid",
|
|
78
77
|
"readOnly",
|
|
79
78
|
"name"
|
|
80
|
-
]),
|
|
81
|
-
return /* @__PURE__ */ r.jsx(de, { value:
|
|
79
|
+
]), s = ie(o);
|
|
80
|
+
return /* @__PURE__ */ r.jsx(de, { value: s, children: /* @__PURE__ */ r.jsx(C.div, { ref: e, role: "group", ...t, ...U.build().group.attrs }) });
|
|
82
81
|
});
|
|
83
82
|
S.displayName = "CheckboxGroup";
|
|
84
83
|
const _ = b((c, e) => {
|
|
85
|
-
const o = f(), t = p(o.getHiddenInputProps(), c),
|
|
86
|
-
return /* @__PURE__ */ r.jsx(C.input, { "aria-describedby":
|
|
84
|
+
const o = f(), t = p(o.getHiddenInputProps(), c), s = V();
|
|
85
|
+
return /* @__PURE__ */ r.jsx(C.input, { "aria-describedby": s?.ariaDescribedby, ...t, ref: e });
|
|
87
86
|
});
|
|
88
87
|
_.displayName = "CheckboxHiddenInput";
|
|
89
88
|
const G = b((c, e) => {
|
|
@@ -92,8 +91,8 @@ const G = b((c, e) => {
|
|
|
92
91
|
});
|
|
93
92
|
G.displayName = "CheckboxLabel";
|
|
94
93
|
const ue = (c = {}) => {
|
|
95
|
-
const e = le(), o = V(), t = q(() => p(c, e?.getItemProps({ value: c.value }) ?? {}), [c, e]),
|
|
96
|
-
id:
|
|
94
|
+
const e = le(), o = V(), t = q(() => p(c, e?.getItemProps({ value: c.value }) ?? {}), [c, e]), s = F(), { getRootNode: a } = re(), { dir: n } = ce(), i = {
|
|
95
|
+
id: s,
|
|
97
96
|
ids: {
|
|
98
97
|
label: o?.ids.label,
|
|
99
98
|
hiddenInput: o?.ids.control
|
|
@@ -103,10 +102,10 @@ const ue = (c = {}) => {
|
|
|
103
102
|
readOnly: o?.readOnly,
|
|
104
103
|
invalid: o?.invalid,
|
|
105
104
|
required: o?.required,
|
|
106
|
-
getRootNode:
|
|
105
|
+
getRootNode: a,
|
|
107
106
|
...t
|
|
108
|
-
}, l =
|
|
109
|
-
return
|
|
107
|
+
}, l = se(J, i);
|
|
108
|
+
return K(l, ae);
|
|
110
109
|
}, w = b((c, e) => {
|
|
111
110
|
const [o, t] = g()(c, [
|
|
112
111
|
"checked",
|
|
@@ -121,18 +120,18 @@ const ue = (c = {}) => {
|
|
|
121
120
|
"readOnly",
|
|
122
121
|
"required",
|
|
123
122
|
"value"
|
|
124
|
-
]),
|
|
125
|
-
return /* @__PURE__ */ r.jsx(I, { value:
|
|
123
|
+
]), s = ue(o), a = p(s.getRootProps(), t);
|
|
124
|
+
return /* @__PURE__ */ r.jsx(I, { value: s, children: /* @__PURE__ */ r.jsx(C.label, { ...a, ref: e }) });
|
|
126
125
|
});
|
|
127
126
|
w.displayName = "CheckboxRoot";
|
|
128
127
|
const L = b((c, e) => {
|
|
129
|
-
const [{ value: o }, t] = g()(c, ["value"]),
|
|
130
|
-
return /* @__PURE__ */ r.jsx(I, { value: o, children: /* @__PURE__ */ r.jsx(C.label, { ...
|
|
128
|
+
const [{ value: o }, t] = g()(c, ["value"]), s = p(o.getRootProps(), t);
|
|
129
|
+
return /* @__PURE__ */ r.jsx(I, { value: o, children: /* @__PURE__ */ r.jsx(C.label, { ...s, ref: e }) });
|
|
131
130
|
});
|
|
132
131
|
L.displayName = "CheckboxRootProvider";
|
|
133
132
|
const he = b(
|
|
134
133
|
function(e, o) {
|
|
135
|
-
const t =
|
|
134
|
+
const t = oe({ key: "checkmark", recipe: e.recipe }), [s, a] = t.splitVariantProps(e), { checked: n, indeterminate: i, disabled: l, unstyled: u, children: k, ...h } = a, x = u ? ee : t(s);
|
|
136
135
|
return /* @__PURE__ */ r.jsx(
|
|
137
136
|
m.svg,
|
|
138
137
|
{
|
|
@@ -144,7 +143,7 @@ const he = b(
|
|
|
144
143
|
strokeLinecap: "round",
|
|
145
144
|
strokeLinejoin: "round",
|
|
146
145
|
"data-state": i ? "indeterminate" : n ? "checked" : "unchecked",
|
|
147
|
-
"data-disabled":
|
|
146
|
+
"data-disabled": z(l),
|
|
148
147
|
css: [x, e.css],
|
|
149
148
|
...h,
|
|
150
149
|
children: i ? /* @__PURE__ */ r.jsx("path", { d: "M5 12h14" }) : n ? /* @__PURE__ */ r.jsx("polyline", { points: "20 6 9 17 4 12" }) : null
|
|
@@ -155,7 +154,7 @@ const he = b(
|
|
|
155
154
|
withProvider: A,
|
|
156
155
|
withContext: M,
|
|
157
156
|
useStyles: xe
|
|
158
|
-
} =
|
|
157
|
+
} = Z({ key: "checkbox" });
|
|
159
158
|
A(L, "root", { forwardAsChild: !0 });
|
|
160
159
|
const be = A(
|
|
161
160
|
w,
|
|
@@ -166,24 +165,24 @@ const be = A(
|
|
|
166
165
|
"label",
|
|
167
166
|
{ forwardAsChild: !0 }
|
|
168
167
|
), O = b(function(e, o) {
|
|
169
|
-
const { checked: t, indeterminate:
|
|
168
|
+
const { checked: t, indeterminate: s, ...a } = e, n = f(), i = xe();
|
|
170
169
|
return t && n.checked ? /* @__PURE__ */ r.jsx(
|
|
171
170
|
m.svg,
|
|
172
171
|
{
|
|
173
172
|
ref: o,
|
|
174
173
|
asChild: !0,
|
|
175
|
-
...
|
|
174
|
+
...a,
|
|
176
175
|
css: [i.indicator, e.css],
|
|
177
176
|
children: t
|
|
178
177
|
}
|
|
179
|
-
) :
|
|
178
|
+
) : s && n.indeterminate ? /* @__PURE__ */ r.jsx(
|
|
180
179
|
m.svg,
|
|
181
180
|
{
|
|
182
181
|
ref: o,
|
|
183
182
|
asChild: !0,
|
|
184
|
-
...
|
|
183
|
+
...a,
|
|
185
184
|
css: [i.indicator, e.css],
|
|
186
|
-
children:
|
|
185
|
+
children: s
|
|
187
186
|
}
|
|
188
187
|
) : /* @__PURE__ */ r.jsx(
|
|
189
188
|
he,
|
|
@@ -193,7 +192,7 @@ const be = A(
|
|
|
193
192
|
indeterminate: n.indeterminate,
|
|
194
193
|
disabled: n.disabled,
|
|
195
194
|
unstyled: !0,
|
|
196
|
-
...
|
|
195
|
+
...a,
|
|
197
196
|
css: [i.indicator, e.css]
|
|
198
197
|
}
|
|
199
198
|
);
|
|
@@ -204,7 +203,7 @@ const be = A(
|
|
|
204
203
|
forwardAsChild: !0,
|
|
205
204
|
defaultProps: { children: /* @__PURE__ */ r.jsx(O, {}) }
|
|
206
205
|
}
|
|
207
|
-
),
|
|
206
|
+
), Le = m(
|
|
208
207
|
S,
|
|
209
208
|
{
|
|
210
209
|
base: {
|
|
@@ -215,9 +214,9 @@ const be = A(
|
|
|
215
214
|
},
|
|
216
215
|
{ forwardAsChild: !0 }
|
|
217
216
|
), pe = _, W = j.forwardRef(
|
|
218
|
-
({ checkboxRef: c, children: e, indeterminate: o = !1, onContrast: t, rootRef:
|
|
217
|
+
({ checkboxRef: c, children: e, indeterminate: o = !1, onContrast: t, rootRef: s, size: a = "md", withCard: n = !1, ...i }, l) => {
|
|
219
218
|
const u = t ? "onContrast" : "default", k = n ? ({ children: h }) => {
|
|
220
|
-
const x = (
|
|
219
|
+
const x = (Q[a] + X[a] + Y[a]) * 4;
|
|
221
220
|
return /* @__PURE__ */ r.jsx(
|
|
222
221
|
D,
|
|
223
222
|
{
|
|
@@ -228,7 +227,7 @@ const be = A(
|
|
|
228
227
|
active: !!i.checked
|
|
229
228
|
},
|
|
230
229
|
onContrast: t,
|
|
231
|
-
size:
|
|
230
|
+
size: a,
|
|
232
231
|
fullWidth: !0,
|
|
233
232
|
display: "flex",
|
|
234
233
|
...typeof h == "string" && { alignItems: "center" },
|
|
@@ -244,9 +243,9 @@ const be = A(
|
|
|
244
243
|
className: "Checkbox",
|
|
245
244
|
"data-testid": "kibble-checkbox",
|
|
246
245
|
checked: o ? "indeterminate" : i.checked,
|
|
247
|
-
ref:
|
|
246
|
+
ref: s,
|
|
248
247
|
variant: u,
|
|
249
|
-
size:
|
|
248
|
+
size: a,
|
|
250
249
|
...i,
|
|
251
250
|
children: /* @__PURE__ */ r.jsxs(k, { children: [
|
|
252
251
|
/* @__PURE__ */ r.jsx(
|
|
@@ -264,7 +263,7 @@ const be = A(
|
|
|
264
263
|
className: "Checkbox__Label",
|
|
265
264
|
"data-testid": "kibble-checkbox-label",
|
|
266
265
|
...n && typeof e != "string" && { mt: "-4px" },
|
|
267
|
-
children: typeof e == "string" ? /* @__PURE__ */ r.jsx(B, { size:
|
|
266
|
+
children: typeof e == "string" ? /* @__PURE__ */ r.jsx(B, { size: a, lineHeight: "unset", variant: t ? "onContrast" : "default", children: e }) : e
|
|
268
267
|
}
|
|
269
268
|
)
|
|
270
269
|
] })
|
|
@@ -273,10 +272,10 @@ const be = A(
|
|
|
273
272
|
}
|
|
274
273
|
);
|
|
275
274
|
W.displayName = "Checkbox";
|
|
276
|
-
const
|
|
275
|
+
const Ae = T(W);
|
|
277
276
|
export {
|
|
278
|
-
|
|
279
|
-
|
|
277
|
+
Le as C,
|
|
278
|
+
Ae as W,
|
|
280
279
|
ie as u
|
|
281
280
|
};
|
|
282
|
-
//# sourceMappingURL=checkbox.component-
|
|
281
|
+
//# sourceMappingURL=checkbox.component-CyWf-jhq.js.map
|