@televet/kibble-ui 4.0.0-beta.98 → 4.0.0
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-B4OZ51oz.js +139 -0
- package/dist/chunks/alert.types-B4OZ51oz.js.map +1 -0
- package/dist/chunks/alert.types-De_IDZNV.js +2 -0
- package/dist/chunks/alert.types-De_IDZNV.js.map +1 -0
- package/dist/chunks/avatar.component-CqFsGMt6.js +2 -0
- package/dist/chunks/{avatar.component-SZi87lRl.js.map → avatar.component-CqFsGMt6.js.map} +1 -1
- package/dist/chunks/{avatar.component-CvE1vv5L.js → avatar.component-M6X79WYy.js} +18 -18
- package/dist/chunks/{avatar.component-CvE1vv5L.js.map → avatar.component-M6X79WYy.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-Bp-_csZz.js → avatarGroup.component-BPYIE5NT.js} +2 -2
- package/dist/chunks/{avatarGroup.component-Bp-_csZz.js.map → avatarGroup.component-BPYIE5NT.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-SoAj9p5n.js → avatarGroup.component-C2IuMqLq.js} +2 -2
- package/dist/chunks/{avatarGroup.component-SoAj9p5n.js.map → avatarGroup.component-C2IuMqLq.js.map} +1 -1
- package/dist/chunks/{button.component-DOAhnxbj.js → button.component-BE20YKDd.js} +3 -3
- package/dist/chunks/{button.component-DOAhnxbj.js.map → button.component-BE20YKDd.js.map} +1 -1
- package/dist/chunks/{button.component-CY55RWpS.js → button.component-DAv5WxDc.js} +2 -2
- package/dist/chunks/{button.component-CY55RWpS.js.map → button.component-DAv5WxDc.js.map} +1 -1
- package/dist/chunks/{button.types-CujqF5RD.js → button.types-BKXZNvN1.js} +9 -7
- package/dist/chunks/button.types-BKXZNvN1.js.map +1 -0
- package/dist/chunks/{button.types-DsLMGraz.js → button.types-Bl1awbi0.js} +2 -2
- package/dist/chunks/button.types-Bl1awbi0.js.map +1 -0
- package/dist/chunks/{buttonGroup.component-Bp2YbVtj.js → buttonGroup.component-C8Q42bLh.js} +5 -5
- package/dist/chunks/{buttonGroup.component-Bp2YbVtj.js.map → buttonGroup.component-C8Q42bLh.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-CHZoLKsR.js → buttonGroup.component-CQBXYOhq.js} +2 -2
- package/dist/chunks/{buttonGroup.component-CHZoLKsR.js.map → buttonGroup.component-CQBXYOhq.js.map} +1 -1
- package/dist/chunks/card.component-BZxC19F_.js +2 -0
- package/dist/chunks/{card.component-KNc4HKSh.js.map → card.component-BZxC19F_.js.map} +1 -1
- package/dist/chunks/{card.component-DNX41NGG.js → card.component-DJcYzMX1.js} +3 -4
- package/dist/chunks/{card.component-DNX41NGG.js.map → card.component-DJcYzMX1.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-Cvw7D33c.js → characterCounter.component-D0ccCiBG.js} +2 -2
- package/dist/chunks/{characterCounter.component-Cvw7D33c.js.map → characterCounter.component-D0ccCiBG.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-Lya4VMgB.js → characterCounter.component-DiQ7jGRP.js} +4 -4
- package/dist/chunks/{characterCounter.component-Lya4VMgB.js.map → characterCounter.component-DiQ7jGRP.js.map} +1 -1
- package/dist/chunks/checkbox.anatomy-BNdLT4Qf.js +2 -0
- package/dist/chunks/checkbox.anatomy-BNdLT4Qf.js.map +1 -0
- package/dist/chunks/{checkbox.records-Ds6SvFdm.js → checkbox.anatomy-CknRrQ7F.js} +15 -25
- package/dist/chunks/checkbox.anatomy-CknRrQ7F.js.map +1 -0
- package/dist/chunks/checkbox.component-D7_mvZK5.js +260 -0
- package/dist/chunks/{checkbox.component-CY7ZklEW.js.map → checkbox.component-D7_mvZK5.js.map} +1 -1
- package/dist/chunks/checkbox.component-Dhjcu89D.js +2 -0
- package/dist/chunks/{checkbox.component-PmkaXzNs.js.map → checkbox.component-Dhjcu89D.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-DXWrZuhZ.js → checkboxGroup.component-BBxsA17L.js} +4 -4
- package/dist/chunks/{checkboxGroup.component-DXWrZuhZ.js.map → checkboxGroup.component-BBxsA17L.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-DsXi7j46.js → checkboxGroup.component-M-nvlAbK.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-DsXi7j46.js.map → checkboxGroup.component-M-nvlAbK.js.map} +1 -1
- package/dist/chunks/{config-DlTdf-Yt.js → config-B3QABP1-.js} +2 -2
- package/dist/chunks/{config-DlTdf-Yt.js.map → config-B3QABP1-.js.map} +1 -1
- package/dist/chunks/{config-BFcXpdZo.js → config-jChwZPSv.js} +2 -2
- package/dist/chunks/{config-BFcXpdZo.js.map → config-jChwZPSv.js.map} +1 -1
- package/dist/chunks/conversationCard.component-BRJbMpwH.js +2 -0
- package/dist/chunks/{conversationCard.component-CSJXjO4D.js.map → conversationCard.component-BRJbMpwH.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-D3WN8rhl.js → conversationCard.component-CzKj9SoH.js} +17 -17
- package/dist/chunks/{conversationCard.component-D3WN8rhl.js.map → conversationCard.component-CzKj9SoH.js.map} +1 -1
- package/dist/chunks/{create-recipe-context-sESms8Eo.js → create-recipe-context-CDw-39SC.js} +2 -2
- package/dist/chunks/{create-recipe-context-sESms8Eo.js.map → create-recipe-context-CDw-39SC.js.map} +1 -1
- package/dist/chunks/{create-recipe-context-D7FewUR4.js → create-recipe-context-CrEKmpj8.js} +2 -2
- package/dist/chunks/{create-recipe-context-D7FewUR4.js.map → create-recipe-context-CrEKmpj8.js.map} +1 -1
- package/dist/chunks/create-slot-recipe-context-CViypfwB.js +2 -0
- package/dist/chunks/create-slot-recipe-context-CViypfwB.js.map +1 -0
- package/dist/chunks/create-slot-recipe-context-CrlT_nGQ.js +97 -0
- package/dist/chunks/create-slot-recipe-context-CrlT_nGQ.js.map +1 -0
- package/dist/chunks/datePicker.component-BOsFZiDy.js +15 -0
- package/dist/chunks/{datePicker.component-DmxLdt_M.js.map → datePicker.component-BOsFZiDy.js.map} +1 -1
- package/dist/chunks/{datePicker.component-BSzcmQ9c.js → datePicker.component-jK2SZTK0.js} +96 -92
- package/dist/chunks/{datePicker.component-BSzcmQ9c.js.map → datePicker.component-jK2SZTK0.js.map} +1 -1
- package/dist/chunks/dialog-BPhjKQkb.js +2 -0
- package/dist/chunks/dialog-BPhjKQkb.js.map +1 -0
- package/dist/chunks/dialog-C70U2EqO.js +136 -0
- package/dist/chunks/dialog-C70U2EqO.js.map +1 -0
- package/dist/chunks/{divider.types-CK5oFy-i.js → divider.types-Dht8eAh4.js} +2 -2
- package/dist/chunks/{divider.types-CK5oFy-i.js.map → divider.types-Dht8eAh4.js.map} +1 -1
- package/dist/chunks/{divider.types-0j5qRXed.js → divider.types-ZN_wlva7.js} +3 -3
- package/dist/chunks/{divider.types-0j5qRXed.js.map → divider.types-ZN_wlva7.js.map} +1 -1
- package/dist/chunks/{factory-Ctbv0Ozn.js → factory-BQshv7_b.js} +115 -114
- package/dist/chunks/{factory-Ctbv0Ozn.js.map → factory-BQshv7_b.js.map} +1 -1
- package/dist/chunks/factory-a2SJjEvR.js +3 -0
- package/dist/chunks/{factory-D6tdBUPG.js.map → factory-a2SJjEvR.js.map} +1 -1
- package/dist/chunks/{flex-D14H6HbP.js → flex-BOU6tYUd.js} +2 -2
- package/dist/chunks/{flex-D14H6HbP.js.map → flex-BOU6tYUd.js.map} +1 -1
- package/dist/chunks/{flex-smlF8uQG.js → flex-CX-8gE9T.js} +2 -2
- package/dist/chunks/{flex-smlF8uQG.js.map → flex-CX-8gE9T.js.map} +1 -1
- package/dist/chunks/{float-OQXnYWBw.js → float-DfZEyFfn.js} +2 -2
- package/dist/chunks/{float-OQXnYWBw.js.map → float-DfZEyFfn.js.map} +1 -1
- package/dist/chunks/{float-DYLtz2A6.js → float-DgYuLWpx.js} +3 -3
- package/dist/chunks/{float-DYLtz2A6.js.map → float-DgYuLWpx.js.map} +1 -1
- package/dist/chunks/grid-item-DPdTp_nI.js +94 -0
- package/dist/chunks/grid-item-DPdTp_nI.js.map +1 -0
- package/dist/chunks/grid-item-qnuioQmr.js +2 -0
- package/dist/chunks/grid-item-qnuioQmr.js.map +1 -0
- package/dist/chunks/{group-DPCVolOl.js → group-CplNJpRQ.js} +7 -7
- package/dist/chunks/group-CplNJpRQ.js.map +1 -0
- package/dist/chunks/group-_vcW9myt.js +2 -0
- package/dist/chunks/group-_vcW9myt.js.map +1 -0
- package/dist/chunks/{h-stack-Ce6JSBK2.js → h-stack-8q5nAOg0.js} +2 -2
- package/dist/chunks/{h-stack-Ce6JSBK2.js.map → h-stack-8q5nAOg0.js.map} +1 -1
- package/dist/chunks/{h-stack-Bjx9hlJo.js → h-stack-D4MnHHRc.js} +2 -2
- package/dist/chunks/{h-stack-Bjx9hlJo.js.map → h-stack-D4MnHHRc.js.map} +1 -1
- package/dist/chunks/heading.component-C_cdAGTd.js +2 -0
- package/dist/chunks/heading.component-C_cdAGTd.js.map +1 -0
- package/dist/chunks/{heading.component-73t_EqZx.js → heading.component-DgW2WFXo.js} +5 -5
- package/dist/chunks/heading.component-DgW2WFXo.js.map +1 -0
- package/dist/chunks/{icon-button-DTZOklQ9.js → icon-button-5UcFiA_W.js} +4 -4
- package/dist/chunks/icon-button-5UcFiA_W.js.map +1 -0
- package/dist/chunks/{icon-button-DtjZ-SdQ.js → icon-button-B9rScw-E.js} +2 -2
- package/dist/chunks/icon-button-B9rScw-E.js.map +1 -0
- package/dist/chunks/icon.component-Bhnf2n1O.js +2 -0
- package/dist/chunks/icon.component-Bhnf2n1O.js.map +1 -0
- package/dist/chunks/icon.component-C5bgxAD2.js +32 -0
- package/dist/chunks/icon.component-C5bgxAD2.js.map +1 -0
- package/dist/chunks/{icons-CTpAjbC-.js → icons-B6Nwr9di.js} +2 -2
- package/dist/chunks/{icons-CTpAjbC-.js.map → icons-B6Nwr9di.js.map} +1 -1
- package/dist/chunks/{icons-BXxdrBrf.js → icons-DQ5FafZQ.js} +4 -4
- package/dist/chunks/{icons-BXxdrBrf.js.map → icons-DQ5FafZQ.js.map} +1 -1
- package/dist/chunks/index-2glJ2faJ.js +2 -0
- package/dist/chunks/index-2glJ2faJ.js.map +1 -0
- package/dist/chunks/index-7Jpijbq_.js +3 -0
- package/dist/chunks/index-7Jpijbq_.js.map +1 -0
- package/dist/chunks/index-9BerxEcw.js +7 -0
- package/dist/chunks/index-9BerxEcw.js.map +1 -0
- package/dist/chunks/index-A_vmTNU7.js +2 -0
- package/dist/chunks/index-A_vmTNU7.js.map +1 -0
- package/dist/chunks/index-BEfEzWJx.js +2 -0
- package/dist/chunks/index-BEfEzWJx.js.map +1 -0
- package/dist/chunks/index-BQRnVsAg.js +2 -0
- package/dist/chunks/index-BQRnVsAg.js.map +1 -0
- package/dist/chunks/{index-B3d3tRic.js → index-BVG0jtdY.js} +46 -46
- package/dist/chunks/index-BVG0jtdY.js.map +1 -0
- package/dist/chunks/index-BbRqKs1S.js +2 -0
- package/dist/chunks/index-BbRqKs1S.js.map +1 -0
- package/dist/chunks/index-C0OKY-Oe.js +74 -0
- package/dist/chunks/index-C0OKY-Oe.js.map +1 -0
- package/dist/chunks/{radio.records-muLWVHhG.js → index-C87CU9tc.js} +43 -54
- package/dist/chunks/index-C87CU9tc.js.map +1 -0
- package/dist/chunks/{index-BRBNqTA7.js → index-CJEisKZA.js} +123 -117
- package/dist/chunks/index-CJEisKZA.js.map +1 -0
- package/dist/chunks/{index-mndLieJA.js → index-CJLJNx88.js} +65 -61
- package/dist/chunks/index-CJLJNx88.js.map +1 -0
- package/dist/chunks/{index-BpQwMKfa.js → index-CdpBJZ7v.js} +40 -39
- package/dist/chunks/index-CdpBJZ7v.js.map +1 -0
- package/dist/chunks/{index-CYHDITxm.js → index-CoYll30G.js} +2397 -2066
- package/dist/chunks/index-CoYll30G.js.map +1 -0
- package/dist/chunks/{index-CX3yrbBD.js → index-Cvv80m_N.js} +7 -7
- package/dist/chunks/{index-CX3yrbBD.js.map → index-Cvv80m_N.js.map} +1 -1
- package/dist/chunks/{index-BBxAd1xM.js → index-D-kSj7r7.js} +284 -276
- package/dist/chunks/index-D-kSj7r7.js.map +1 -0
- package/dist/chunks/{index-DBk0LkcO.js → index-D0HCo_Ly.js} +2 -2
- package/dist/chunks/{index-DBk0LkcO.js.map → index-D0HCo_Ly.js.map} +1 -1
- package/dist/chunks/{index-BODNpj2d.js → index-DA7G0apY.js} +3 -3
- package/dist/chunks/{index-BODNpj2d.js.map → index-DA7G0apY.js.map} +1 -1
- package/dist/chunks/index-DAI6_P9H.js +2 -0
- package/dist/chunks/index-DAI6_P9H.js.map +1 -0
- package/dist/chunks/index-DMcwHRZ5.js +11 -0
- package/dist/chunks/index-DMcwHRZ5.js.map +1 -0
- package/dist/chunks/index-DtPX2rUg.js +1362 -0
- package/dist/chunks/index-DtPX2rUg.js.map +1 -0
- package/dist/chunks/index-WYcfOUFA.js +2 -0
- package/dist/chunks/index-WYcfOUFA.js.map +1 -0
- package/dist/chunks/{index-C-m6RNXT.js → index-_DAxfi81.js} +11 -11
- package/dist/chunks/{index-C-m6RNXT.js.map → index-_DAxfi81.js.map} +1 -1
- package/dist/chunks/{index-DowO8Ued.js → index-eNFIsSpE.js} +2 -2
- package/dist/chunks/{index-DowO8Ued.js.map → index-eNFIsSpE.js.map} +1 -1
- package/dist/chunks/{index-DOXzraja.js → index-jnwdAJ25.js} +2 -2
- package/dist/chunks/{index-DOXzraja.js.map → index-jnwdAJ25.js.map} +1 -1
- package/dist/chunks/index-nNZWP0FQ.js +2 -0
- package/dist/chunks/index-nNZWP0FQ.js.map +1 -0
- package/dist/chunks/invertToken-DkyAF_BY.js +10 -0
- package/dist/chunks/invertToken-DkyAF_BY.js.map +1 -0
- package/dist/chunks/invertToken-Em3s32gh.js +2 -0
- package/dist/chunks/invertToken-Em3s32gh.js.map +1 -0
- package/dist/chunks/{link.component-COw7fL8Z.js → link.component-CvR5CbiT.js} +4 -4
- package/dist/chunks/{link.component-COw7fL8Z.js.map → link.component-CvR5CbiT.js.map} +1 -1
- package/dist/chunks/{link.component-BeuHEk8s.js → link.component-yUJIJbIP.js} +2 -2
- package/dist/chunks/{link.component-BeuHEk8s.js.map → link.component-yUJIJbIP.js.map} +1 -1
- package/dist/chunks/{list-C_LmDoyW.js → list-D22V_L58.js} +2 -2
- package/dist/chunks/{list-C_LmDoyW.js.map → list-D22V_L58.js.map} +1 -1
- package/dist/chunks/{list-DqH5ttQG.js → list-DwRM9eA_.js} +2 -2
- package/dist/chunks/{list-DqH5ttQG.js.map → list-DwRM9eA_.js.map} +1 -1
- package/dist/chunks/logo.types-DF4eLSR9.js +45 -0
- package/dist/chunks/logo.types-DF4eLSR9.js.map +1 -0
- package/dist/chunks/logo.types-Zt-yfFAQ.js +2 -0
- package/dist/chunks/logo.types-Zt-yfFAQ.js.map +1 -0
- package/dist/chunks/{menu.component-CYoNg8cG.js → menu.component-BSuLrqE6.js} +73 -73
- package/dist/chunks/menu.component-BSuLrqE6.js.map +1 -0
- package/dist/chunks/menu.component-DylZiPAE.js +2 -0
- package/dist/chunks/menu.component-DylZiPAE.js.map +1 -0
- package/dist/chunks/modal.types-CBos7aXO.js +2 -0
- package/dist/chunks/modal.types-CBos7aXO.js.map +1 -0
- package/dist/chunks/modal.types-DCtp2gae.js +95 -0
- package/dist/chunks/modal.types-DCtp2gae.js.map +1 -0
- package/dist/chunks/{notificationCounter.component-BzhAKrKR.js → notificationCounter.component-Lu4_Owvr.js} +6 -6
- package/dist/chunks/{notificationCounter.component-BzhAKrKR.js.map → notificationCounter.component-Lu4_Owvr.js.map} +1 -1
- package/dist/chunks/notificationCounter.component-gp2ULnY_.js +2 -0
- package/dist/chunks/{notificationCounter.component-BhZcuBmr.js.map → notificationCounter.component-gp2ULnY_.js.map} +1 -1
- package/dist/chunks/{picture.component-DECGd77u.js → picture.component-CKK-SMvr.js} +2 -2
- package/dist/chunks/{picture.component-DECGd77u.js.map → picture.component-CKK-SMvr.js.map} +1 -1
- package/dist/chunks/{picture.component-C2C2r_BU.js → picture.component-CR6e0wRG.js} +2 -2
- package/dist/chunks/{picture.component-C2C2r_BU.js.map → picture.component-CR6e0wRG.js.map} +1 -1
- package/dist/chunks/{pinInput.types-DI4tGMSB.js → pinInput.types-BSW6UBEv.js} +7 -7
- package/dist/chunks/{pinInput.types-DI4tGMSB.js.map → pinInput.types-BSW6UBEv.js.map} +1 -1
- package/dist/chunks/{pinInput.types-BlHIF-kD.js → pinInput.types-Cqm1Px5l.js} +2 -2
- package/dist/chunks/{pinInput.types-BlHIF-kD.js.map → pinInput.types-Cqm1Px5l.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-R2bRQ-xz.js → popover-root-provider-CXqzoru9.js} +4 -4
- package/dist/chunks/{popover-root-provider-R2bRQ-xz.js.map → popover-root-provider-CXqzoru9.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-C2iwUZJn.js → popover-root-provider-ZB5BcrXn.js} +2 -2
- package/dist/chunks/{popover-root-provider-C2iwUZJn.js.map → popover-root-provider-ZB5BcrXn.js.map} +1 -1
- package/dist/chunks/popover.component-BjS13k9K.js +2 -0
- package/dist/chunks/popover.component-BjS13k9K.js.map +1 -0
- package/dist/chunks/{popover.component-CV6ZJKNL.js → popover.component-D4rNmeWx.js} +14 -14
- package/dist/chunks/popover.component-D4rNmeWx.js.map +1 -0
- package/dist/chunks/{popover.recipe-CQYAiRTB.js → popover.recipe-Bx25Jhgs.js} +2 -2
- package/dist/chunks/{popover.recipe-CQYAiRTB.js.map → popover.recipe-Bx25Jhgs.js.map} +1 -1
- package/dist/chunks/{popover.recipe-DDKba5kq.js → popover.recipe-D3BdzN-n.js} +6 -6
- package/dist/chunks/{popover.recipe-DDKba5kq.js.map → popover.recipe-D3BdzN-n.js.map} +1 -1
- package/dist/chunks/radioGroup.types-DL8g9TP2.js +230 -0
- package/dist/chunks/radioGroup.types-DL8g9TP2.js.map +1 -0
- package/dist/chunks/radioGroup.types-nhp1iyXG.js +2 -0
- package/dist/chunks/radioGroup.types-nhp1iyXG.js.map +1 -0
- package/dist/chunks/{ratingDots.component-CtmqAmV5.js → ratingDots.component-CDa2kpI9.js} +11 -11
- package/dist/chunks/{ratingDots.component-CtmqAmV5.js.map → ratingDots.component-CDa2kpI9.js.map} +1 -1
- package/dist/chunks/ratingDots.component-DcrCudac.js +2 -0
- package/dist/chunks/{ratingDots.component-CRiV8Gx3.js.map → ratingDots.component-DcrCudac.js.map} +1 -1
- package/dist/chunks/{render-strategy-D5Z6LZ1V.js → render-strategy-C2s5qZs8.js} +2 -2
- package/dist/chunks/{render-strategy-D5Z6LZ1V.js.map → render-strategy-C2s5qZs8.js.map} +1 -1
- package/dist/chunks/{render-strategy-C_zp9LNQ.js → render-strategy-CfHUEDVm.js} +2 -2
- package/dist/chunks/{render-strategy-C_zp9LNQ.js.map → render-strategy-CfHUEDVm.js.map} +1 -1
- package/dist/chunks/{select.component-Fq8Hh2MP.js → select.component-DKRwULd6.js} +84 -80
- package/dist/chunks/select.component-DKRwULd6.js.map +1 -0
- package/dist/chunks/select.component-Dyc1yQPO.js +2 -0
- package/dist/chunks/select.component-Dyc1yQPO.js.map +1 -0
- package/dist/chunks/{sortableList.component-Dl8iDhRd.js → sortableList.component-CgLl4iQA.js} +6 -6
- package/dist/chunks/{sortableList.component-Dl8iDhRd.js.map → sortableList.component-CgLl4iQA.js.map} +1 -1
- package/dist/chunks/{sortableList.component-DceIFi13.js → sortableList.component-vxiA7bvr.js} +2 -2
- package/dist/chunks/{sortableList.component-DceIFi13.js.map → sortableList.component-vxiA7bvr.js.map} +1 -1
- package/dist/chunks/spinner-C31ZWQmA.js +8 -0
- package/dist/chunks/{spinner-BWqSIW6m.js.map → spinner-C31ZWQmA.js.map} +1 -1
- package/dist/chunks/spinner-CBTcw_Tk.js +2 -0
- package/dist/chunks/{spinner-BnpL14kK.js.map → spinner-CBTcw_Tk.js.map} +1 -1
- package/dist/chunks/{spinner.component-lZds47YM.js → spinner.component-CVVOuFka.js} +2 -2
- package/dist/chunks/{spinner.component-lZds47YM.js.map → spinner.component-CVVOuFka.js.map} +1 -1
- package/dist/chunks/{spinner.component-katjnJzv.js → spinner.component-DVDFFBjs.js} +5 -5
- package/dist/chunks/{spinner.component-katjnJzv.js.map → spinner.component-DVDFFBjs.js.map} +1 -1
- package/dist/chunks/stack-BE-r1yqU.js +2 -0
- package/dist/chunks/stack-BE-r1yqU.js.map +1 -0
- package/dist/chunks/stack-rvdA8MI9.js +85 -0
- package/dist/chunks/stack-rvdA8MI9.js.map +1 -0
- package/dist/chunks/{styledAvatar.types-BNejv6F7.js → styledAvatar.types-CMpyDxAM.js} +2 -2
- package/dist/chunks/{styledAvatar.types-BNejv6F7.js.map → styledAvatar.types-CMpyDxAM.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-C8U-V56j.js → styledAvatar.types-DdjcEEg8.js} +2 -2
- package/dist/chunks/{styledAvatar.types-C8U-V56j.js.map → styledAvatar.types-DdjcEEg8.js.map} +1 -1
- package/dist/chunks/{swatch.types-DbgA3RWc.js → swatch.types-CXlghcLw.js} +9 -9
- package/dist/chunks/{swatch.types-DbgA3RWc.js.map → swatch.types-CXlghcLw.js.map} +1 -1
- package/dist/chunks/swatch.types-jaI0KFHU.js +2 -0
- package/dist/chunks/{swatch.types-DiX-4lpJ.js.map → swatch.types-jaI0KFHU.js.map} +1 -1
- package/dist/chunks/{switch.component-U2g70Pc5.js → switch.component-Be_CZ-FX.js} +47 -47
- package/dist/chunks/switch.component-Be_CZ-FX.js.map +1 -0
- package/dist/chunks/switch.component-C88jBbo_.js +2 -0
- package/dist/chunks/switch.component-C88jBbo_.js.map +1 -0
- package/dist/chunks/tab.types-DpmXyw5C.js +2 -0
- package/dist/chunks/tab.types-DpmXyw5C.js.map +1 -0
- package/dist/chunks/{tabs.component-P5GKt5Sv.js → tab.types-Dz716e6g.js} +98 -101
- package/dist/chunks/tab.types-Dz716e6g.js.map +1 -0
- package/dist/chunks/{tag.component-BAH11mPX.js → tag.component-79aRVI7u.js} +3 -3
- package/dist/chunks/{tag.component-BAH11mPX.js.map → tag.component-79aRVI7u.js.map} +1 -1
- package/dist/chunks/{tag.component-DcEASytC.js → tag.component-CAWh9OYa.js} +2 -2
- package/dist/chunks/{tag.component-DcEASytC.js.map → tag.component-CAWh9OYa.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-CF3z8rKF.js → tagBlock.component-BjSs1wds.js} +10 -10
- package/dist/chunks/{tagBlock.component-CF3z8rKF.js.map → tagBlock.component-BjSs1wds.js.map} +1 -1
- package/dist/chunks/tagBlock.component-Dn7coOgp.js +2 -0
- package/dist/chunks/{tagBlock.component-XQpgKtzp.js.map → tagBlock.component-Dn7coOgp.js.map} +1 -1
- package/dist/chunks/text.component-CHpMvCFa.js +2 -0
- package/dist/chunks/text.component-CHpMvCFa.js.map +1 -0
- package/dist/chunks/{text.component-DKtdjH7k.js → text.component-lM5aKXrg.js} +5 -5
- package/dist/chunks/text.component-lM5aKXrg.js.map +1 -0
- package/dist/chunks/{textInput.component-DSVsTHqO.js → textInput.component-B58lZdwy.js} +15 -15
- package/dist/chunks/textInput.component-B58lZdwy.js.map +1 -0
- package/dist/chunks/textInput.component-Dx_Ktcmr.js +2 -0
- package/dist/chunks/textInput.component-Dx_Ktcmr.js.map +1 -0
- package/dist/chunks/{textarea.component-DE-RO7Sv.js → textarea.component-BYexywy1.js} +2 -2
- package/dist/chunks/{textarea.component-DE-RO7Sv.js.map → textarea.component-BYexywy1.js.map} +1 -1
- package/dist/chunks/{textarea.component-Cbo5Vs-6.js → textarea.component-lgtQk1Iw.js} +10 -10
- package/dist/chunks/{textarea.component-Cbo5Vs-6.js.map → textarea.component-lgtQk1Iw.js.map} +1 -1
- package/dist/chunks/theme.provider-Bd7BxNo2.js +28 -0
- package/dist/chunks/theme.provider-Bd7BxNo2.js.map +1 -0
- package/dist/chunks/{theme.provider-BHh_9yV5.js → theme.provider-NLe7CBa6.js} +1578 -873
- package/dist/chunks/theme.provider-NLe7CBa6.js.map +1 -0
- package/dist/chunks/timePicker.component-DcNgUFGj.js +2 -0
- package/dist/chunks/timePicker.component-DcNgUFGj.js.map +1 -0
- package/dist/chunks/{timePicker.component-BSuNH0Ze.js → timePicker.component-DehTARbc.js} +6 -6
- package/dist/chunks/timePicker.component-DehTARbc.js.map +1 -0
- package/dist/chunks/timeRange.component-BNHI6pWG.js +18 -0
- package/dist/chunks/{timeRange.component-SMQArMaf.js.map → timeRange.component-BNHI6pWG.js.map} +1 -1
- package/dist/chunks/timeRange.component-Bb-xDHWT.js +2 -0
- package/dist/chunks/{timeRange.component-bC1TS9T0.js.map → timeRange.component-Bb-xDHWT.js.map} +1 -1
- package/dist/chunks/{timestamp.component-DNYI2gVi.js → timestamp.component-CrY5t68x.js} +2 -2
- package/dist/chunks/{timestamp.component-DNYI2gVi.js.map → timestamp.component-CrY5t68x.js.map} +1 -1
- package/dist/chunks/{timestamp.component-DAa3tXHL.js → timestamp.component-ZUWkov0t.js} +3 -3
- package/dist/chunks/{timestamp.component-DAa3tXHL.js.map → timestamp.component-ZUWkov0t.js.map} +1 -1
- package/dist/chunks/{toaster.records-DcadVT_W.js → toaster.records-DE1y_F2-.js} +157 -155
- package/dist/chunks/toaster.records-DE1y_F2-.js.map +1 -0
- package/dist/chunks/{toaster.records-CDCJPDWP.js → toaster.records-eCXbM85Z.js} +2 -2
- package/dist/chunks/toaster.records-eCXbM85Z.js.map +1 -0
- package/dist/chunks/{tooltip.component-CIUcGhxw.js → tooltip.component-CATpCSkf.js} +2 -2
- package/dist/chunks/{tooltip.component-CIUcGhxw.js.map → tooltip.component-CATpCSkf.js.map} +1 -1
- package/dist/chunks/{tooltip.component-XxpjNATA.js → tooltip.component-DTfwOaTc.js} +28 -24
- package/dist/chunks/{tooltip.component-XxpjNATA.js.map → tooltip.component-DTfwOaTc.js.map} +1 -1
- package/dist/chunks/{typography.records-DDZuRT8J.js → typography.records-CSi8fOfA.js} +2 -2
- package/dist/chunks/{typography.records-DDZuRT8J.js.map → typography.records-CSi8fOfA.js.map} +1 -1
- package/dist/chunks/{typography.records-CSy2LmDd.js → typography.records-Dbw3sz4i.js} +2 -2
- package/dist/chunks/{typography.records-CSy2LmDd.js.map → typography.records-Dbw3sz4i.js.map} +1 -1
- package/dist/chunks/{use-field-context-CArmgHPP.js → use-field-context-BTxME29X.js} +2 -2
- package/dist/chunks/{use-field-context-CArmgHPP.js.map → use-field-context-BTxME29X.js.map} +1 -1
- package/dist/chunks/{use-field-context-BZaIHuSQ.js → use-field-context-C1iiT3PJ.js} +2 -2
- package/dist/chunks/{use-field-context-BZaIHuSQ.js.map → use-field-context-C1iiT3PJ.js.map} +1 -1
- package/dist/chunks/{use-locale-context-BNU4MHrO.js → use-locale-context-CGfkkp7X.js} +377 -363
- package/dist/chunks/use-locale-context-CGfkkp7X.js.map +1 -0
- package/dist/chunks/use-locale-context-Dv7DQ_mn.js +22 -0
- package/dist/chunks/use-locale-context-Dv7DQ_mn.js.map +1 -0
- package/dist/chunks/{v-stack-BZT7R_9f.js → v-stack-BKftVfdJ.js} +2 -2
- package/dist/chunks/{v-stack-BZT7R_9f.js.map → v-stack-BKftVfdJ.js.map} +1 -1
- package/dist/chunks/{v-stack-DxjgpeJ0.js → v-stack-Bz-79Toq.js} +2 -2
- package/dist/chunks/{v-stack-DxjgpeJ0.js.map → v-stack-Bz-79Toq.js.map} +1 -1
- package/dist/chunks/walk-object-B1TqoXCj.js +2 -0
- package/dist/chunks/walk-object-B1TqoXCj.js.map +1 -0
- package/dist/chunks/walk-object-CGvlZ5aQ.js +28 -0
- package/dist/chunks/walk-object-CGvlZ5aQ.js.map +1 -0
- package/dist/chunks/{withDarkMode-BE00aGRV.js → withDarkMode-C3yba5oU.js} +2 -2
- package/dist/chunks/{withDarkMode-BE00aGRV.js.map → withDarkMode-C3yba5oU.js.map} +1 -1
- package/dist/chunks/withDarkMode-R08khTA6.js +2 -0
- package/dist/chunks/{withDarkMode-B9LErG-p.js.map → withDarkMode-R08khTA6.js.map} +1 -1
- package/dist/chunks/withFormControl-BdiccBy5.js +2 -0
- package/dist/chunks/withFormControl-BdiccBy5.js.map +1 -0
- package/dist/chunks/withFormControl-C3IIthrA.js +361 -0
- package/dist/chunks/withFormControl-C3IIthrA.js.map +1 -0
- package/dist/chunks/withLightMode-Crw8xtkD.js +2 -0
- package/dist/chunks/{withLightMode-fys9Cbqw.js.map → withLightMode-Crw8xtkD.js.map} +1 -1
- package/dist/chunks/{withLightMode-UfFl5ry6.js → withLightMode-DUdXB3Uy.js} +2 -2
- package/dist/chunks/{withLightMode-UfFl5ry6.js.map → withLightMode-DUdXB3Uy.js.map} +1 -1
- package/dist/chunks/{withTruncation-CR8pGwFg.js → withTruncation-DTEvsQfh.js} +5 -5
- package/dist/chunks/{withTruncation-CR8pGwFg.js.map → withTruncation-DTEvsQfh.js.map} +1 -1
- package/dist/chunks/withTruncation-Ddr3jvAO.js +2 -0
- package/dist/chunks/{withTruncation-B6vA2g0w.js.map → withTruncation-Ddr3jvAO.js.map} +1 -1
- package/dist/chunks/{wrap-CNn1kyJX.js → wrap-BzPamGsJ.js} +2 -2
- package/dist/chunks/{wrap-CNn1kyJX.js.map → wrap-BzPamGsJ.js.map} +1 -1
- package/dist/chunks/{wrap-B8tBNeBY.js → wrap-CRNL4bE6.js} +3 -3
- package/dist/chunks/{wrap-B8tBNeBY.js.map → wrap-CRNL4bE6.js.map} +1 -1
- package/dist/cjs/chakra/index.cjs +2 -1
- package/dist/cjs/chakra/index.cjs.map +1 -1
- package/dist/cjs/cli/generate-theme-types.cjs +4 -4
- package/dist/cjs/cli/generate-theme-types.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/Card/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/Divider/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/Logo/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/NotificationCounter/index.cjs +1 -1
- package/dist/cjs/components/Picture/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/Swatch/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/Tag/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/hocs/index.cjs +1 -1
- package/dist/cjs/hocs/withDarkMode/index.cjs +1 -1
- package/dist/cjs/hocs/withLightMode/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +1 -1
- package/dist/cjs/theme/semanticTokens/index.cjs +1 -1
- package/dist/cjs/theme/semanticTokens/index.cjs.map +1 -1
- package/dist/esm/chakra/index.js +2259 -2175
- package/dist/esm/chakra/index.js.map +1 -1
- package/dist/esm/cli/generate-theme-types.js +2 -2
- package/dist/esm/cli/generate-theme-types.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 +2 -2
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/Card/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/Divider/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 +3 -4
- 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/Picture/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 +4 -2
- 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 +4 -2
- package/dist/esm/components/Tag/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 +96 -93
- package/dist/esm/hocs/index.js +2 -2
- package/dist/esm/hocs/withDarkMode/index.js +1 -1
- package/dist/esm/hocs/withLightMode/index.js +1 -1
- package/dist/esm/index.js +118 -115
- package/dist/esm/theme/index.js +4 -4
- package/dist/esm/theme/semanticTokens/index.js +2 -0
- package/dist/esm/theme/semanticTokens/index.js.map +1 -1
- package/dist/types/chakra/index.d.ts +8 -4
- package/dist/types/components/Alert/alert.types.d.ts +1 -1
- package/dist/types/components/Button/button.recipe.d.ts +1 -1
- package/dist/types/components/Button/button.types.d.ts +2 -2
- package/dist/types/components/Checkbox/checkbox.component.d.ts +2 -2
- package/dist/types/components/Checkbox/checkbox.recipe.d.ts +8 -0
- package/dist/types/components/Heading/heading.component.d.ts +4 -3
- package/dist/types/components/Logo/logo.component.d.ts +1 -2
- package/dist/types/components/Logo/logo.recipe.d.ts +19 -4
- package/dist/types/components/Logo/logo.types.d.ts +2 -2
- package/dist/types/components/Modal/modal.component.d.ts +2 -1
- package/dist/types/components/Modal/modal.recipe.d.ts +1 -9
- package/dist/types/components/PinInput/pinInput.component.d.ts +2 -2
- package/dist/types/components/Popover/popover.component.d.ts +2 -1
- package/dist/types/components/RadioGroup/components/Radio/radio.component.d.ts +7 -5
- package/dist/types/components/RadioGroup/index.d.ts +1 -0
- package/dist/types/components/RadioGroup/radioGroup.component.d.ts +4 -9
- package/dist/types/components/RadioGroup/radioGroup.recipe.d.ts +25 -0
- package/dist/types/components/RadioGroup/radioGroup.types.d.ts +4 -0
- package/dist/types/components/Select/components/SelectTrigger/selectTrigger.component.d.ts +1 -1
- package/dist/types/components/Select/select.component.d.ts +2 -2
- package/dist/types/components/Switch/switch.component.d.ts +3 -3
- package/dist/types/components/Tabs/index.d.ts +2 -0
- package/dist/types/components/Text/text.component.d.ts +4 -3
- package/dist/types/components/TextInput/textInput.component.d.ts +1 -1
- package/dist/types/components/Textarea/textarea.component.d.ts +2 -2
- package/dist/types/components/TimePicker/components/TimeOption/timeOption.component.d.ts +1 -1
- package/dist/types/theme/index.d.ts +1 -1
- package/dist/types/theme/semanticTokens/index.d.ts +1 -0
- package/dist/types/theme/theme.config.d.ts +1 -2
- package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +6 -6
- package/package.json +15 -20
- package/dist/chunks/alert.types-DEe0eEG4.js +0 -139
- package/dist/chunks/alert.types-DEe0eEG4.js.map +0 -1
- package/dist/chunks/alert.types-DNeGpiVS.js +0 -2
- package/dist/chunks/alert.types-DNeGpiVS.js.map +0 -1
- package/dist/chunks/avatar.component-SZi87lRl.js +0 -2
- package/dist/chunks/box-Baq7UBls.js +0 -2
- package/dist/chunks/box-Baq7UBls.js.map +0 -1
- package/dist/chunks/box-Ck9I7FYv.js +0 -7
- package/dist/chunks/box-Ck9I7FYv.js.map +0 -1
- package/dist/chunks/button.types-CujqF5RD.js.map +0 -1
- package/dist/chunks/button.types-DsLMGraz.js.map +0 -1
- package/dist/chunks/card.component-KNc4HKSh.js +0 -2
- package/dist/chunks/checkbox.component-CY7ZklEW.js +0 -2
- package/dist/chunks/checkbox.component-PmkaXzNs.js +0 -281
- package/dist/chunks/checkbox.records-DI3mqSNf.js +0 -2
- package/dist/chunks/checkbox.records-DI3mqSNf.js.map +0 -1
- package/dist/chunks/checkbox.records-Ds6SvFdm.js.map +0 -1
- package/dist/chunks/conversationCard.component-CSJXjO4D.js +0 -2
- package/dist/chunks/create-slot-recipe-context-BJmsuxih.js +0 -97
- package/dist/chunks/create-slot-recipe-context-BJmsuxih.js.map +0 -1
- package/dist/chunks/create-slot-recipe-context-IwVIgtBt.js +0 -2
- package/dist/chunks/create-slot-recipe-context-IwVIgtBt.js.map +0 -1
- package/dist/chunks/datePicker.component-DmxLdt_M.js +0 -15
- package/dist/chunks/dialog-trigger-Crrp0YGG.js +0 -78
- package/dist/chunks/dialog-trigger-Crrp0YGG.js.map +0 -1
- package/dist/chunks/dialog-trigger-MkOQUjzu.js +0 -2
- package/dist/chunks/dialog-trigger-MkOQUjzu.js.map +0 -1
- package/dist/chunks/factory-D6tdBUPG.js +0 -3
- package/dist/chunks/grid-item-BV4dwEBP.js +0 -90
- package/dist/chunks/grid-item-BV4dwEBP.js.map +0 -1
- package/dist/chunks/grid-item-CR-sXrjU.js +0 -2
- package/dist/chunks/grid-item-CR-sXrjU.js.map +0 -1
- package/dist/chunks/group-Cv7AQw1b.js +0 -2
- package/dist/chunks/group-Cv7AQw1b.js.map +0 -1
- package/dist/chunks/group-DPCVolOl.js.map +0 -1
- package/dist/chunks/heading.component-73t_EqZx.js.map +0 -1
- package/dist/chunks/heading.component-DNsKd4Gh.js +0 -2
- package/dist/chunks/heading.component-DNsKd4Gh.js.map +0 -1
- package/dist/chunks/icon-button-DTZOklQ9.js.map +0 -1
- package/dist/chunks/icon-button-DtjZ-SdQ.js.map +0 -1
- package/dist/chunks/icon.component-DszmCnE4.js +0 -32
- 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-B3d3tRic.js.map +0 -1
- package/dist/chunks/index-BBxAd1xM.js.map +0 -1
- package/dist/chunks/index-BR7peqZO.js +0 -2
- package/dist/chunks/index-BR7peqZO.js.map +0 -1
- package/dist/chunks/index-BRBNqTA7.js.map +0 -1
- package/dist/chunks/index-BpQwMKfa.js.map +0 -1
- package/dist/chunks/index-CHIISuTq.js +0 -3
- package/dist/chunks/index-CHIISuTq.js.map +0 -1
- package/dist/chunks/index-CS8X6LiC.js +0 -2
- package/dist/chunks/index-CS8X6LiC.js.map +0 -1
- package/dist/chunks/index-CYHDITxm.js.map +0 -1
- package/dist/chunks/index-Cd-5e4RS.js +0 -70
- package/dist/chunks/index-Cd-5e4RS.js.map +0 -1
- package/dist/chunks/index-ClcMgyeA.js +0 -10
- package/dist/chunks/index-ClcMgyeA.js.map +0 -1
- package/dist/chunks/index-CtXUprYH.js +0 -2
- package/dist/chunks/index-CtXUprYH.js.map +0 -1
- package/dist/chunks/index-DSedXH1s.js +0 -2
- package/dist/chunks/index-DSedXH1s.js.map +0 -1
- package/dist/chunks/index-DbTEJc-K.js +0 -2
- package/dist/chunks/index-DbTEJc-K.js.map +0 -1
- package/dist/chunks/index-QTIBH1Or.js +0 -2
- package/dist/chunks/index-QTIBH1Or.js.map +0 -1
- package/dist/chunks/index-Ztgrae6O.js +0 -1328
- package/dist/chunks/index-Ztgrae6O.js.map +0 -1
- package/dist/chunks/index-mndLieJA.js.map +0 -1
- package/dist/chunks/logo.types-BbSodfBq.js +0 -76
- package/dist/chunks/logo.types-BbSodfBq.js.map +0 -1
- package/dist/chunks/logo.types-CA_5hGAi.js +0 -2
- package/dist/chunks/logo.types-CA_5hGAi.js.map +0 -1
- package/dist/chunks/menu.component-CYoNg8cG.js.map +0 -1
- package/dist/chunks/menu.component-DVKNEINC.js +0 -2
- package/dist/chunks/menu.component-DVKNEINC.js.map +0 -1
- package/dist/chunks/modal.types-Bbh7jkHL.js +0 -2
- package/dist/chunks/modal.types-Bbh7jkHL.js.map +0 -1
- package/dist/chunks/modal.types-hyW2Nhp9.js +0 -139
- package/dist/chunks/modal.types-hyW2Nhp9.js.map +0 -1
- package/dist/chunks/notificationCounter.component-BhZcuBmr.js +0 -2
- package/dist/chunks/popover.component-BnIYkGYM.js +0 -2
- package/dist/chunks/popover.component-BnIYkGYM.js.map +0 -1
- package/dist/chunks/popover.component-CV6ZJKNL.js.map +0 -1
- package/dist/chunks/radio.records-j0JOqaJ4.js +0 -2
- package/dist/chunks/radio.records-j0JOqaJ4.js.map +0 -1
- package/dist/chunks/radio.records-muLWVHhG.js.map +0 -1
- package/dist/chunks/radioGroup.component-BUFZGQ-P.js +0 -254
- package/dist/chunks/radioGroup.component-BUFZGQ-P.js.map +0 -1
- package/dist/chunks/radioGroup.component-SvJktaFu.js +0 -2
- package/dist/chunks/radioGroup.component-SvJktaFu.js.map +0 -1
- package/dist/chunks/ratingDots.component-CRiV8Gx3.js +0 -2
- package/dist/chunks/select.component-Fq8Hh2MP.js.map +0 -1
- package/dist/chunks/select.component-a6mH3buQ.js +0 -2
- package/dist/chunks/select.component-a6mH3buQ.js.map +0 -1
- package/dist/chunks/spinner-BWqSIW6m.js +0 -8
- package/dist/chunks/spinner-BnpL14kK.js +0 -2
- package/dist/chunks/stack-BKu3hWEQ.js +0 -2
- package/dist/chunks/stack-BKu3hWEQ.js.map +0 -1
- package/dist/chunks/stack-Dnuh5Zgf.js +0 -85
- package/dist/chunks/stack-Dnuh5Zgf.js.map +0 -1
- package/dist/chunks/swatch.types-DiX-4lpJ.js +0 -2
- package/dist/chunks/switch.component-DC6-XTlo.js +0 -2
- package/dist/chunks/switch.component-DC6-XTlo.js.map +0 -1
- package/dist/chunks/switch.component-U2g70Pc5.js.map +0 -1
- package/dist/chunks/tabs.component-DKW-zlGD.js +0 -2
- package/dist/chunks/tabs.component-DKW-zlGD.js.map +0 -1
- package/dist/chunks/tabs.component-P5GKt5Sv.js.map +0 -1
- package/dist/chunks/tagBlock.component-XQpgKtzp.js +0 -2
- package/dist/chunks/text.component-C501PJrN.js +0 -2
- package/dist/chunks/text.component-C501PJrN.js.map +0 -1
- package/dist/chunks/text.component-DKtdjH7k.js.map +0 -1
- package/dist/chunks/textInput.component-BPuhDvEr.js +0 -2
- package/dist/chunks/textInput.component-BPuhDvEr.js.map +0 -1
- package/dist/chunks/textInput.component-DSVsTHqO.js.map +0 -1
- package/dist/chunks/theme.provider-BHh_9yV5.js.map +0 -1
- package/dist/chunks/theme.provider-Ey-yIBM6.js +0 -24
- package/dist/chunks/theme.provider-Ey-yIBM6.js.map +0 -1
- package/dist/chunks/timePicker.component-BSuNH0Ze.js.map +0 -1
- package/dist/chunks/timePicker.component-D_0jwXVM.js +0 -2
- package/dist/chunks/timePicker.component-D_0jwXVM.js.map +0 -1
- package/dist/chunks/timeRange.component-SMQArMaf.js +0 -18
- package/dist/chunks/timeRange.component-bC1TS9T0.js +0 -2
- package/dist/chunks/toaster.records-CDCJPDWP.js.map +0 -1
- package/dist/chunks/toaster.records-DcadVT_W.js.map +0 -1
- package/dist/chunks/use-locale-context-BNU4MHrO.js.map +0 -1
- package/dist/chunks/use-locale-context-D0LByRu9.js +0 -22
- package/dist/chunks/use-locale-context-D0LByRu9.js.map +0 -1
- package/dist/chunks/walk-object-BrTExCqQ.js +0 -2
- package/dist/chunks/walk-object-BrTExCqQ.js.map +0 -1
- package/dist/chunks/walk-object-_CL3Bkm9.js +0 -28
- package/dist/chunks/walk-object-_CL3Bkm9.js.map +0 -1
- package/dist/chunks/withDarkMode-B9LErG-p.js +0 -2
- package/dist/chunks/withFormControl-BJbzRb4N.js +0 -352
- package/dist/chunks/withFormControl-BJbzRb4N.js.map +0 -1
- package/dist/chunks/withFormControl-BUrlnWW8.js +0 -2
- package/dist/chunks/withFormControl-BUrlnWW8.js.map +0 -1
- package/dist/chunks/withLightMode-fys9Cbqw.js +0 -2
- package/dist/chunks/withTruncation-B6vA2g0w.js +0 -2
- package/dist/types/components/PinInput/pinInput.records.d.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.component-DylZiPAE.js","sources":["../../node_modules/@ark-ui/react/dist/components/menu/use-menu-context.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-arrow.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-arrow-tip.js","../../node_modules/@ark-ui/react/dist/components/menu/use-menu-item-context.js","../../node_modules/@ark-ui/react/dist/components/menu/use-menu-option-item-props-context.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-checkbox-item.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-content.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-context-trigger.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-indicator.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-item.js","../../node_modules/@ark-ui/react/dist/components/menu/use-menu-item-group-context.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-item-group.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-item-group-label.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-item-indicator.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-item-text.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-positioner.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-radio-item.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-radio-item-group.js","../../node_modules/@ark-ui/react/dist/utils/use-effect-once.js","../../node_modules/@ark-ui/react/dist/components/menu/use-menu.js","../../node_modules/@ark-ui/react/dist/components/menu/use-menu-machine-context.js","../../node_modules/@ark-ui/react/dist/components/menu/use-menu-trigger-item-context.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-root.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-root-provider.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-separator.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-trigger.js","../../node_modules/@ark-ui/react/dist/components/menu/menu-trigger-item.js","../../node_modules/@chakra-ui/react/dist/esm/components/menu/menu.js","../../src/components/Menu/components/MenuButton/menuButton.components.tsx","../../src/components/Menu/components/MenuItem/menuItem.component.tsx","../../src/components/Menu/components/MenuToggleButtons/menuToggleButtons.tsx","../../src/components/Menu/menu.component.tsx"],"sourcesContent":["'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [MenuProvider, useMenuContext] = createContext({\n name: \"MenuContext\",\n hookName: \"useMenuContext\",\n providerName: \"<MenuProvider />\",\n strict: false\n});\n\nexport { MenuProvider, useMenuContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useMenuContext } from './use-menu-context.js';\n\nconst MenuArrow = forwardRef((props, ref) => {\n const menu = useMenuContext();\n const mergedProps = mergeProps(menu.getArrowProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nMenuArrow.displayName = \"MenuArrow\";\n\nexport { MenuArrow };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useMenuContext } from './use-menu-context.js';\n\nconst MenuArrowTip = forwardRef((props, ref) => {\n const menu = useMenuContext();\n const mergedProps = mergeProps(menu.getArrowTipProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nMenuArrowTip.displayName = \"MenuArrowTip\";\n\nexport { MenuArrowTip };\n","'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [MenuItemProvider, useMenuItemContext] = createContext({\n name: \"MenuItemContext\",\n hookName: \"useMenuItemContext\",\n providerName: \"<MenuItemProvider />\"\n});\n\nexport { MenuItemProvider, useMenuItemContext };\n","'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [MenuItemPropsProvider, useMenuItemPropsContext] = createContext({\n name: \"MenuItemPropsContext\",\n hookName: \"useMenuItemPropsContext\",\n providerName: \"<MenuItemPropsProvider />\"\n});\n\nexport { MenuItemPropsProvider, useMenuItemPropsContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useMenuContext } from './use-menu-context.js';\nimport { MenuItemProvider } from './use-menu-item-context.js';\nimport { MenuItemPropsProvider } from './use-menu-option-item-props-context.js';\n\nconst MenuCheckboxItem = forwardRef((props, ref) => {\n const [partialOptionItemProps, localProps] = createSplitProps()(props, [\n \"checked\",\n \"closeOnSelect\",\n \"disabled\",\n \"onCheckedChange\",\n \"value\",\n \"valueText\"\n ]);\n const optionItemProps = {\n ...partialOptionItemProps,\n type: \"checkbox\"\n };\n const menu = useMenuContext();\n const mergedProps = mergeProps(menu.getOptionItemProps(optionItemProps), localProps);\n const optionItemState = menu.getOptionItemState(optionItemProps);\n return /* @__PURE__ */ jsx(MenuItemPropsProvider, { value: optionItemProps, children: /* @__PURE__ */ jsx(MenuItemProvider, { value: optionItemState, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) }) });\n});\nMenuCheckboxItem.displayName = \"MenuCheckboxItem\";\n\nexport { MenuCheckboxItem };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useMenuContext } from './use-menu-context.js';\n\nconst MenuContent = forwardRef((props, ref) => {\n const menu = useMenuContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(menu.getContentProps(), presence.getPresenceProps(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(presence.ref, ref) });\n});\nMenuContent.displayName = \"MenuContent\";\n\nexport { MenuContent };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useMenuContext } from './use-menu-context.js';\n\nconst MenuContextTrigger = forwardRef((props, ref) => {\n const menu = useMenuContext();\n const mergedProps = mergeProps(menu.getContextTriggerProps(), props);\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nMenuContextTrigger.displayName = \"MenuContextTrigger\";\n\nexport { MenuContextTrigger };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useMenuContext } from './use-menu-context.js';\n\nconst MenuIndicator = forwardRef((props, ref) => {\n const menu = useMenuContext();\n const mergedProps = mergeProps(menu.getIndicatorProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nMenuIndicator.displayName = \"MenuIndicator\";\n\nexport { MenuIndicator };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef, useEffect } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useMenuContext } from './use-menu-context.js';\nimport { MenuItemProvider } from './use-menu-item-context.js';\nimport { MenuItemPropsProvider } from './use-menu-option-item-props-context.js';\n\nconst MenuItem = forwardRef((props, ref) => {\n const [itemProps, localProps] = createSplitProps()(props, [\n \"closeOnSelect\",\n \"disabled\",\n \"value\",\n \"valueText\",\n \"onSelect\"\n ]);\n const menu = useMenuContext();\n const mergedProps = mergeProps(menu.getItemProps(itemProps), localProps);\n const itemState = menu.getItemState(itemProps);\n useEffect(() => {\n return menu.addItemListener({ id: itemState.id, onSelect: itemProps.onSelect });\n }, [itemState.id, itemProps.onSelect]);\n return /* @__PURE__ */ jsx(MenuItemPropsProvider, { value: itemProps, children: /* @__PURE__ */ jsx(MenuItemProvider, { value: itemState, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) }) });\n});\nMenuItem.displayName = \"MenuItem\";\n\nexport { MenuItem };\n","'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [MenuItemGroupProvider, useMenuItemGroupContext] = createContext({\n name: \"MenuItemGroupContext\",\n hookName: \"useMenuItemGroupContext\",\n providerName: \"<MenuItemGroupProvider />\"\n});\n\nexport { MenuItemGroupProvider, useMenuItemGroupContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef, useId } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useMenuContext } from './use-menu-context.js';\nimport { MenuItemGroupProvider } from './use-menu-item-group-context.js';\n\nconst MenuItemGroup = forwardRef((props, ref) => {\n const [optionalItemGroupProps, localProps] = createSplitProps()(props, [\"id\"]);\n const menu = useMenuContext();\n const id = useId();\n const itemGroupProps = { id, ...optionalItemGroupProps };\n const mergedProps = mergeProps(menu.getItemGroupProps(itemGroupProps), localProps);\n return /* @__PURE__ */ jsx(MenuItemGroupProvider, { value: itemGroupProps, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });\n});\nMenuItemGroup.displayName = \"MenuItemGroup\";\n\nexport { MenuItemGroup };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useMenuContext } from './use-menu-context.js';\nimport { useMenuItemGroupContext } from './use-menu-item-group-context.js';\n\nconst MenuItemGroupLabel = forwardRef((props, ref) => {\n const menu = useMenuContext();\n const itemGroup = useMenuItemGroupContext();\n const mergedProps = mergeProps(menu.getItemGroupLabelProps({ htmlFor: itemGroup.id }), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nMenuItemGroupLabel.displayName = \"MenuItemGroupLabel\";\n\nexport { MenuItemGroupLabel };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useMenuContext } from './use-menu-context.js';\nimport { useMenuItemPropsContext } from './use-menu-option-item-props-context.js';\n\nconst MenuItemIndicator = forwardRef((props, ref) => {\n const menu = useMenuContext();\n const itemProps = useMenuItemPropsContext();\n const mergedProps = mergeProps(menu.getItemIndicatorProps(itemProps), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nMenuItemIndicator.displayName = \"MenuItemIndicator\";\n\nexport { MenuItemIndicator };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useMenuContext } from './use-menu-context.js';\nimport { useMenuItemPropsContext } from './use-menu-option-item-props-context.js';\n\nconst MenuItemText = forwardRef((props, ref) => {\n const menu = useMenuContext();\n const itemProps = useMenuItemPropsContext();\n const mergedProps = mergeProps(menu.getItemTextProps(itemProps), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nMenuItemText.displayName = \"MenuItemText\";\n\nexport { MenuItemText };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useMenuContext } from './use-menu-context.js';\n\nconst MenuPositioner = forwardRef((props, ref) => {\n const menu = useMenuContext();\n const mergedProps = mergeProps(menu.getPositionerProps(), props);\n const presence = usePresenceContext();\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nMenuPositioner.displayName = \"MenuPositioner\";\n\nexport { MenuPositioner };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useMenuContext } from './use-menu-context.js';\nimport { MenuItemProvider } from './use-menu-item-context.js';\nimport { useMenuItemGroupContext } from './use-menu-item-group-context.js';\nimport { MenuItemPropsProvider } from './use-menu-option-item-props-context.js';\n\nconst MenuRadioItem = forwardRef((props, ref) => {\n const [partialItemProps, localProps] = createSplitProps()(props, [\n \"closeOnSelect\",\n \"disabled\",\n \"value\",\n \"valueText\"\n ]);\n const menu = useMenuContext();\n const itemGroup = useMenuItemGroupContext();\n const optionItemProps = {\n ...partialItemProps,\n checked: itemGroup.value === partialItemProps.value,\n type: \"radio\",\n onCheckedChange: () => itemGroup.onValueChange?.({ value: partialItemProps.value })\n };\n const mergedProps = mergeProps(menu.getOptionItemProps(optionItemProps), localProps);\n const optionItemState = menu.getOptionItemState(optionItemProps);\n return /* @__PURE__ */ jsx(MenuItemPropsProvider, { value: optionItemProps, children: /* @__PURE__ */ jsx(MenuItemProvider, { value: optionItemState, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) }) });\n});\nMenuRadioItem.displayName = \"MenuRadioItem\";\n\nexport { MenuRadioItem };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef, useId } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useMenuContext } from './use-menu-context.js';\nimport { MenuItemGroupProvider } from './use-menu-item-group-context.js';\n\nconst MenuRadioItemGroup = forwardRef((props, ref) => {\n const [optionalItemGroupProps, localProps] = createSplitProps()(props, [\n \"id\",\n \"onValueChange\",\n \"value\"\n ]);\n const menu = useMenuContext();\n const id = useId();\n const itemGroupProps = { id, ...optionalItemGroupProps };\n const mergedProps = mergeProps(menu.getItemGroupProps({ id: itemGroupProps.id }), localProps);\n return /* @__PURE__ */ jsx(MenuItemGroupProvider, { value: itemGroupProps, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });\n});\nMenuRadioItemGroup.displayName = \"MenuRadioItemGroup\";\n\nexport { MenuRadioItemGroup };\n","'use client';\nimport { useRef, useEffect } from 'react';\n\nconst useEffectOnce = (cb) => {\n const savedCallback = useRef(cb);\n const effectGuard = useRef(false);\n useEffect(() => {\n savedCallback.current = cb;\n });\n useEffect(() => {\n if (effectGuard.current !== true) {\n effectGuard.current = true;\n savedCallback.current();\n }\n }, []);\n};\n\nexport { useEffectOnce };\n","'use client';\nimport * as menu from '@zag-js/menu';\nimport { useMachine, normalizeProps } from '@zag-js/react';\nimport { useId } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useLocaleContext } from '../../providers/locale/use-locale-context.js';\n\nconst useMenu = (props) => {\n const id = useId();\n const { getRootNode } = useEnvironmentContext();\n const { dir } = useLocaleContext();\n const machineProps = {\n id,\n dir,\n getRootNode,\n ...props\n };\n const service = useMachine(menu.machine, machineProps);\n const api = menu.connect(service, normalizeProps);\n return { api, service };\n};\n\nexport { useMenu };\n","'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [MenuMachineProvider, useMenuMachineContext] = createContext({\n name: \"MenuMachineContext\",\n hookName: \"useMenuMachineContext\",\n providerName: \"<MenuMachineProvider />\",\n strict: false\n});\n\nexport { MenuMachineProvider, useMenuMachineContext };\n","'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [MenuTriggerItemProvider, useMenuTriggerItemContext] = createContext({\n name: \"MenuMachineContext\",\n hookName: \"useMenuMachineContext\",\n providerName: \"<MenuMachineProvider />\",\n strict: false\n});\n\nexport { MenuTriggerItemProvider, useMenuTriggerItemContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { useCallback } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { useEffectOnce } from '../../utils/use-effect-once.js';\nimport { splitPresenceProps } from '../presence/split-presence-props.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { PresenceProvider } from '../presence/use-presence-context.js';\nimport { useMenu } from './use-menu.js';\nimport { useMenuContext, MenuProvider } from './use-menu-context.js';\nimport { useMenuMachineContext, MenuMachineProvider } from './use-menu-machine-context.js';\nimport { MenuTriggerItemProvider } from './use-menu-trigger-item-context.js';\n\nconst MenuRoot = (props) => {\n const [presenceProps, menuProps] = splitPresenceProps(props);\n const [useMenuProps, localProps] = createSplitProps()(menuProps, [\n \"anchorPoint\",\n \"aria-label\",\n \"closeOnSelect\",\n \"composite\",\n \"defaultHighlightedValue\",\n \"defaultOpen\",\n \"highlightedValue\",\n \"id\",\n \"ids\",\n \"loopFocus\",\n \"navigate\",\n \"onEscapeKeyDown\",\n \"onFocusOutside\",\n \"onHighlightChange\",\n \"onInteractOutside\",\n \"onOpenChange\",\n \"onPointerDownOutside\",\n \"onSelect\",\n \"open\",\n \"positioning\",\n \"typeahead\"\n ]);\n const parentApi = useMenuContext();\n const parentMachine = useMenuMachineContext();\n const { api, service } = useMenu(useMenuProps);\n const presence = usePresence(mergeProps({ present: api.open }, presenceProps));\n useEffectOnce(() => {\n if (!parentMachine) return;\n if (!parentApi) return;\n parentApi.setChild(service);\n api.setParent(parentMachine);\n });\n const triggerItemContext = useCallback(() => parentApi?.getTriggerItemProps(api), [api, parentApi]);\n return /* @__PURE__ */ jsx(MenuTriggerItemProvider, { value: triggerItemContext, children: /* @__PURE__ */ jsx(MenuMachineProvider, { value: service, children: /* @__PURE__ */ jsx(MenuProvider, { value: api, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, ...localProps }) }) }) });\n};\n\nexport { MenuRoot };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { useCallback } from 'react';\nimport { useEffectOnce } from '../../utils/use-effect-once.js';\nimport { splitPresenceProps } from '../presence/split-presence-props.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { PresenceProvider } from '../presence/use-presence-context.js';\nimport { useMenuContext, MenuProvider } from './use-menu-context.js';\nimport { useMenuMachineContext, MenuMachineProvider } from './use-menu-machine-context.js';\nimport { MenuTriggerItemProvider } from './use-menu-trigger-item-context.js';\n\nconst MenuRootProvider = (props) => {\n const parentApi = useMenuContext();\n const parentMachine = useMenuMachineContext();\n const [presenceProps, { value: menu, children }] = splitPresenceProps(props);\n const { api, service } = menu;\n const presence = usePresence(mergeProps({ present: api.open }, presenceProps));\n useEffectOnce(() => {\n if (!parentMachine) return;\n if (!parentApi) return;\n parentApi.setChild(service);\n api.setParent(parentMachine);\n });\n const triggerItemContext = useCallback(() => parentApi?.getTriggerItemProps(api), [api, parentApi]);\n return /* @__PURE__ */ jsx(MenuTriggerItemProvider, { value: triggerItemContext, children: /* @__PURE__ */ jsx(MenuMachineProvider, { value: service, children: /* @__PURE__ */ jsx(MenuProvider, { value: api, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children }) }) }) });\n};\n\nexport { MenuRootProvider };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useMenuContext } from './use-menu-context.js';\n\nconst MenuSeparator = forwardRef((props, ref) => {\n const menu = useMenuContext();\n const mergedProps = mergeProps(menu.getSeparatorProps(), props);\n return /* @__PURE__ */ jsx(ark.hr, { ...mergedProps, ref });\n});\nMenuSeparator.displayName = \"MenuSeparator\";\n\nexport { MenuSeparator };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useMenuContext } from './use-menu-context.js';\n\nconst MenuTrigger = forwardRef((props, ref) => {\n const menu = useMenuContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(\n {\n ...menu.getTriggerProps(),\n \"aria-controls\": presence.unmounted ? void 0 : menu.getTriggerProps()[\"aria-controls\"]\n },\n props\n );\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nMenuTrigger.displayName = \"MenuTrigger\";\n\nexport { MenuTrigger };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useMenuTriggerItemContext } from './use-menu-trigger-item-context.js';\n\nconst MenuTriggerItem = forwardRef((props, ref) => {\n const getTriggerItemProps = useMenuTriggerItemContext();\n const mergedProps = mergeProps(getTriggerItemProps?.() ?? {}, props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nMenuTriggerItem.displayName = \"MenuTriggerItem\";\n\nexport { MenuTriggerItem };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Menu } from '@ark-ui/react/menu';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { CheckIcon } from '../icons.js';\n\nconst {\n withRootProvider,\n withContext,\n useStyles: useMenuStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"menu\" });\nconst MenuRootProvider = withRootProvider(\n Menu.RootProvider\n);\nconst MenuRoot = withRootProvider(Menu.Root, {\n defaultProps: { lazyMount: true, unmountOnExit: true }\n});\nconst MenuPropsProvider = PropsProvider;\nconst MenuTrigger = withContext(\n Menu.Trigger,\n \"trigger\",\n { forwardAsChild: true }\n);\nconst MenuContextTrigger = withContext(Menu.ContextTrigger, \"contextTrigger\", { forwardAsChild: true });\nconst MenuPositioner = withContext(\n Menu.Positioner,\n \"positioner\",\n { forwardAsChild: true }\n);\nconst MenuSeparator = withContext(\n Menu.Separator,\n \"separator\",\n { forwardAsChild: true }\n);\nconst MenuContent = withContext(\n Menu.Content,\n \"content\",\n { forwardAsChild: true }\n);\nconst MenuArrowTip = withContext(\n Menu.ArrowTip,\n \"arrowTip\",\n { forwardAsChild: true }\n);\nconst MenuArrow = withContext(\n Menu.Arrow,\n \"arrow\",\n { forwardAsChild: true, defaultProps: { children: /* @__PURE__ */ jsx(MenuArrowTip, {}) } }\n);\nconst MenuIndicator = withContext(\n Menu.Indicator,\n \"indicator\",\n { forwardAsChild: true }\n);\nconst MenuItemGroup = withContext(\n Menu.ItemGroup,\n \"itemGroup\",\n { forwardAsChild: true }\n);\nconst MenuItemGroupLabel = withContext(Menu.ItemGroupLabel, \"itemGroupLabel\", { forwardAsChild: true });\nconst MenuItem = withContext(\n Menu.Item,\n \"item\",\n { forwardAsChild: true }\n);\nconst MenuTriggerItem = withContext(Menu.TriggerItem, \"item\", { forwardAsChild: true });\nconst MenuItemText = withContext(\n Menu.ItemText,\n \"itemText\",\n { forwardAsChild: true }\n);\nconst MenuItemCommand = withContext(\n \"kbd\",\n \"itemCommand\"\n);\nconst MenuItemIndicator = withContext(Menu.ItemIndicator, \"itemIndicator\", {\n forwardAsChild: true,\n defaultProps: { children: /* @__PURE__ */ jsx(CheckIcon, { boxSize: \"4\" }) }\n});\nconst MenuCheckboxItem = withContext(Menu.CheckboxItem, \"item\", { forwardAsChild: true });\nconst MenuRadioItemGroup = withContext(Menu.RadioItemGroup, \"itemGroup\", { forwardAsChild: true });\nconst MenuRadioItem = withContext(\n Menu.RadioItem,\n \"item\",\n { forwardAsChild: true }\n);\nconst MenuContext = Menu.Context;\nconst MenuItemContext = Menu.ItemContext;\n\nexport { MenuArrow, MenuArrowTip, MenuCheckboxItem, MenuContent, MenuContext, MenuContextTrigger, MenuIndicator, MenuItem, MenuItemCommand, MenuItemContext, MenuItemGroup, MenuItemGroupLabel, MenuItemIndicator, MenuItemText, MenuPositioner, MenuPropsProvider, MenuRadioItem, MenuRadioItemGroup, MenuRoot, MenuRootProvider, MenuSeparator, MenuTrigger, MenuTriggerItem, useMenuStyles };\n","import { Flex } from '@chakra-ui/react/flex';\nimport { Button, ButtonProps } from 'components/Button/button.component';\nimport { Icon } from 'components/Icon/icon.component';\nimport { Text, TextProps } from 'components/Text/text.component';\nimport React from 'react';\n\nexport interface MenuButtonProps extends Omit<ButtonProps, 'children'> {\n hideCaret?: boolean;\n text?: string;\n textProps?: TextProps;\n}\n\nexport const MenuButton = ({\n hideCaret = false,\n size = 'md',\n text,\n textProps,\n variant,\n ...rest\n}: MenuButtonProps): React.JSX.Element => {\n return (\n <Button\n className=\"Menu__Button\"\n data-testid=\"kibble-menu-button\"\n size={size}\n variant={variant}\n {...rest}\n {...(!text && hideCaret && { paddingInline: 0, paddingBlock: 0 })}\n >\n {text && (\n <Text\n className=\"Menu__ButtonText\"\n data-testid=\"kibble-menu-button-text\"\n fontWeight=\"semibold\"\n size={size}\n color={variant ? 'inherit' : textProps?.color || 'text.contrast'}\n truncated\n {...textProps}\n >\n {text}\n </Text>\n )}\n {!hideCaret && (\n <Flex className=\"Menu__ButtonCaret\" data-testid=\"kibble-menu-button-caret\">\n <Icon name=\"chevronDown\" size={size === 'lg' ? 'sm' : 'xs'} />\n </Flex>\n )}\n </Button>\n );\n};\n","import { Flex } from '@chakra-ui/react/flex';\nimport { Menu as CMenu } from '@chakra-ui/react/menu';\nimport React, { useCallback } from 'react';\nimport { Text } from 'components/Text/text.component';\nimport { MenuItemType } from './menuItem.types';\nimport { Menu, MenuListProps } from 'components/Menu';\nimport { TypographyVariant } from 'shared/types/typography';\nimport { Checkbox } from 'components/Checkbox/checkbox.component';\nimport { Icon } from 'components/Icon/icon.component';\n\ninterface BaseMenuItemProps {\n label?: React.ReactNode;\n leftElement?: React.ReactNode;\n groupLabel?: string;\n onSelect?: (value: string) => void;\n shouldTruncateText?: boolean;\n type?: MenuItemType;\n value: string;\n variant?: TypographyVariant;\n}\n\ninterface DefaultMenuItemProps extends Omit<CMenu.ItemProps, 'onSelect'> {\n type?: 'default';\n selected?: boolean;\n}\n\ninterface CheckboxMenuItemProps extends Omit<CMenu.CheckboxItemProps, 'onSelect'> {\n type: 'checkbox';\n checked: boolean;\n}\n\ninterface SubmenuMenuItemProps {\n type: 'submenu';\n valueText?: string;\n listProps?: MenuListProps;\n}\n\nexport type MenuItemProps = BaseMenuItemProps & (DefaultMenuItemProps | CheckboxMenuItemProps | SubmenuMenuItemProps);\n\nexport const MenuItem = ({\n label,\n leftElement,\n onSelect,\n shouldTruncateText,\n type = 'default',\n variant,\n ...rest\n}: MenuItemProps): React.JSX.Element => {\n const handleOnSelect = useCallback(() => {\n if (onSelect) {\n onSelect(rest.value);\n }\n }, [onSelect, rest.value]);\n\n if (type === 'submenu') {\n const { valueText, listProps } = rest as Omit<SubmenuMenuItemProps, 'type'>;\n return (\n <Menu\n submenuTrigger={\n <CMenu.TriggerItem\n className=\"Menu__Item--Submenu\"\n data-testid=\"kibble-menu-item-submenu\"\n justifyContent=\"space-between\"\n aria-valuetext={valueText}\n >\n <MenuItemLabel\n label={label}\n leftElement={leftElement}\n shouldTruncateText={shouldTruncateText}\n variant={variant}\n />\n <Icon name=\"chevronRight\" size=\"sm\" />\n </CMenu.TriggerItem>\n }\n portalled={true}\n listProps={listProps}\n />\n );\n }\n\n if (type === 'checkbox') {\n const { checked, value, closeOnSelect, ...checkboxRest } = rest as CheckboxMenuItemProps;\n return (\n <CMenu.CheckboxItem\n className=\"Menu__Item--Checkbox\"\n data-testid=\"kibble-menu-item-checkbox\"\n value={value}\n checked={!!checked}\n onCheckedChange={handleOnSelect}\n closeOnSelect={closeOnSelect || false}\n gap={3}\n {...checkboxRest}\n >\n <Checkbox checked={!!checked} size=\"md\" fullWidth={false} />\n <MenuItemLabel\n label={label}\n leftElement={leftElement}\n shouldTruncateText={shouldTruncateText}\n variant={variant}\n />\n </CMenu.CheckboxItem>\n );\n }\n\n if (type === 'default') {\n const { selected = false, value, ...defaultRest } = rest as DefaultMenuItemProps;\n return (\n <CMenu.Item\n className=\"Menu__Item--Default\"\n data-testid=\"kibble-menu-item-default\"\n value={value}\n onSelect={handleOnSelect}\n {...(selected && { bgColor: 'background.secondaryAlpha.hover' })}\n {...defaultRest}\n >\n <MenuItemLabel\n label={label}\n leftElement={leftElement}\n shouldTruncateText={shouldTruncateText}\n variant={selected ? 'info' : variant}\n />\n </CMenu.Item>\n );\n }\n\n return <></>;\n};\n\nconst MenuItemLabel = ({\n label,\n leftElement,\n shouldTruncateText,\n variant,\n}: {\n label?: React.ReactNode;\n leftElement?: React.ReactNode;\n shouldTruncateText?: boolean;\n variant?: TypographyVariant;\n}): React.JSX.Element => {\n return (\n <Flex className=\"Menu__ItemLabel\" alignItems=\"center\" gap={3}>\n {leftElement}\n {typeof label === 'string' ? (\n <Text size=\"sm\" truncated={shouldTruncateText} variant={variant}>\n {label}\n </Text>\n ) : (\n label\n )}\n </Flex>\n );\n};\n","import { Box } from '@chakra-ui/react/box';\nimport { Flex } from '@chakra-ui/react/flex';\nimport { Button } from 'components/Button/button.component';\n\ninterface MenuToggleButtonsProps {\n hasSelectedItems?: boolean;\n groupName?: string;\n onToggle: ({ groupName, clear }: { clear: boolean; groupName?: string }) => void;\n}\n\nexport const MenuToggleButtons = ({\n groupName,\n hasSelectedItems = false,\n onToggle,\n}: MenuToggleButtonsProps): React.JSX.Element => {\n const isGrouped = !!groupName;\n return (\n <Box\n className=\"Menu__ToggleButtons\"\n data-testid=\"kibble-menu-toggle-buttons\"\n {...(isGrouped ? { textAlign: 'right', w: '50%' } : { mt: 2 })}\n >\n {isGrouped ? (\n <>\n {hasSelectedItems ? (\n <ClearAllButton hasSelectedItems={hasSelectedItems} groupName={groupName} onToggle={onToggle} />\n ) : (\n <SelectAllButton groupName={groupName} onToggle={onToggle} />\n )}\n </>\n ) : (\n <Flex justifyContent=\"space-between\">\n <SelectAllButton groupName={groupName} onToggle={onToggle} />\n <ClearAllButton hasSelectedItems={hasSelectedItems} groupName={groupName} onToggle={onToggle} />\n </Flex>\n )}\n </Box>\n );\n};\n\nconst SelectAllButton = ({ groupName, onToggle }: MenuToggleButtonsProps): React.JSX.Element => {\n return (\n <Button variant=\"ghost\" size=\"xs\" onClick={(): void => onToggle({ groupName, clear: false })}>\n Select All\n </Button>\n );\n};\n\nconst ClearAllButton = ({ hasSelectedItems, groupName, onToggle }: MenuToggleButtonsProps): React.JSX.Element => {\n return (\n <Button\n variant=\"ghostNeutral\"\n iconName=\"arrowCircle\"\n size=\"xs\"\n disabled={!hasSelectedItems}\n onClick={(): void => onToggle({ groupName, clear: true })}\n >\n Clear All\n </Button>\n );\n};\n","import React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { Menu as CMenu } from '@chakra-ui/react/menu';\nimport { Portal } from '@chakra-ui/react/portal';\nimport { MenuButton, MenuButtonProps } from './components/MenuButton/menuButton.components';\nimport { MenuItem, MenuItemProps } from './components/MenuItem/menuItem.component';\nimport { useCheckboxGroup } from '@chakra-ui/react/checkbox';\nimport { Box } from '@chakra-ui/react/box';\nimport { Text } from 'components/Text/text.component';\nimport { TextInput } from 'components/TextInput/textInput.component';\nimport { Flex } from '@chakra-ui/react/flex';\nimport { Spinner } from 'components/Spinner/spinner.component';\nimport { MenuToggleButtons } from './components/MenuToggleButtons/menuToggleButtons';\nimport { usePortalContentRef } from 'hooks/usePortalContentRef';\n\nexport type MenuListOnSelect =\n | ((selectedItem: string | undefined, allSelectedItems?: string[]) => void)\n | ((selectedItem: string | undefined, allSelectedItems?: string[]) => Promise<void>);\n\nexport type MenuListOnSelectAll = ((selectedItems: string[]) => void) | ((selectedItems: string[]) => Promise<void>);\n\nexport interface MenuListProps extends Omit<CMenu.ContentProps, 'onSelect'> {\n canSelectAll?: boolean;\n canSelectGroups?: boolean;\n emptyStateText?: string;\n loading?: boolean;\n menuItems?: MenuItemProps[];\n onSearch?: (e: React.ChangeEvent<HTMLInputElement>) => void;\n onSelect?: MenuListOnSelect;\n onSelectAll?: MenuListOnSelectAll;\n searchable?: boolean;\n searchPlaceholder?: string;\n shouldTruncateText?: boolean;\n}\n\nexport interface MenuProps extends Omit<CMenu.RootProps, 'children' | 'onSelect'> {\n buttonProps?: MenuButtonProps;\n listProps?: MenuListProps;\n portalled?: boolean;\n}\n\ninterface InternalMenuProps extends MenuProps {\n submenuTrigger?: React.ReactNode;\n}\n\nexport const Menu = ({\n buttonProps,\n listProps,\n portalled = false,\n submenuTrigger,\n ...rest\n}: InternalMenuProps): React.JSX.Element => {\n const { contentRef } = usePortalContentRef();\n const {\n canSelectAll,\n canSelectGroups,\n emptyStateText = 'No results found',\n loading,\n maxH = '480px',\n menuItems = [],\n minW = '240px',\n onSearch,\n onSelect,\n onSelectAll,\n searchable,\n searchPlaceholder = 'Search...',\n shouldTruncateText,\n ...restListProps\n } = listProps || {};\n const [searchText, setSearchText] = useState<string>('');\n const [filteredMenuItems, setFilteredMenuItems] = useState<MenuItemProps[]>(menuItems);\n\n // Menu Items\n const groupedItems = useMemo(() => {\n const groups: Record<string, Record<string, MenuItemProps[]>> = {};\n\n filteredMenuItems?.forEach((item) => {\n const group = item.groupLabel || 'default';\n // Default and submenu items are grouped under \"default\"\n const type = item.type === 'checkbox' ? 'checkbox' : 'default';\n\n if (!groups[group]) {\n groups[group] = {};\n }\n\n if (!groups[group][type]) {\n groups[group][type] = [];\n }\n\n groups[group][type].push(item);\n });\n\n return groups;\n }, [filteredMenuItems]);\n\n const groups = useMemo(() => Object.entries(groupedItems), [groupedItems]);\n\n // Checkbox State Management\n const checkboxItems = useMemo(() => menuItems?.filter((item) => item.type === 'checkbox') || [], [menuItems]);\n\n const defaultSelectedItems = useMemo(() => {\n const selectedMenuItems = checkboxItems?.filter((item) => item.checked) || [];\n return selectedMenuItems.map((item) => item.value);\n }, [checkboxItems]);\n\n const selectedItems = useCheckboxGroup({\n defaultValue: defaultSelectedItems,\n });\n\n // Search\n const filterOptions = useCallback((searchInput: string, itemsToFilter: MenuItemProps[]) => {\n if (searchInput === '' || !searchInput) {\n return itemsToFilter;\n }\n\n return itemsToFilter.filter((item): boolean => {\n const labelText = typeof item.label === 'string' ? item.label : item.valueText;\n\n return !!labelText?.toLowerCase().includes(searchInput.toLowerCase());\n });\n }, []);\n\n useEffect(() => {\n if (onSearch) {\n setFilteredMenuItems(menuItems);\n } else {\n setFilteredMenuItems(filterOptions(searchText, menuItems));\n }\n }, [searchText, onSearch, filterOptions, menuItems]);\n\n const handleSearch = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n const searchInput = e.target.value;\n setSearchText(searchInput);\n\n if (onSearch) {\n onSearch(e);\n }\n },\n [onSearch],\n );\n\n const clearSearch = useCallback(() => {\n setSearchText('');\n\n if (onSearch) {\n onSearch({\n target: { value: '' },\n } as React.ChangeEvent<HTMLInputElement>);\n }\n }, [onSearch]);\n\n // Selection\n const handleToggle = useCallback(\n ({ groupName, clear }: { groupName?: string; clear: boolean }) => {\n let newValues: string[] = [];\n if (groupName) {\n const groupItems = checkboxItems.filter((item) => item.groupLabel === groupName).map((item) => item.value);\n newValues = clear\n ? selectedItems.value.filter((value) => !groupItems.includes(value))\n : [...selectedItems.value, ...groupItems];\n } else {\n newValues = clear ? [] : checkboxItems.map((item) => item.value);\n }\n onSelectAll?.(newValues);\n selectedItems.setValue(newValues);\n },\n [checkboxItems, onSelectAll, selectedItems],\n );\n\n const handleSelect = useCallback(\n (item: MenuItemProps) => {\n item.onSelect?.(item.value);\n const currentSelection = selectedItems.value;\n const isItemSelected = selectedItems.isChecked(item.value);\n onSelect?.(\n item.value,\n isItemSelected ? currentSelection.filter((value) => value !== item.value) : [...currentSelection, item.value],\n );\n if (item.type === 'checkbox') {\n selectedItems.toggleValue(item.value);\n }\n },\n [onSelect, selectedItems],\n );\n\n // Cleanup\n const handleCleanup = useCallback(\n (open: boolean) => {\n if (!open) {\n setSearchText('');\n setFilteredMenuItems(menuItems);\n }\n },\n [menuItems],\n );\n\n return (\n <CMenu.Root\n {...rest}\n onOpenChange={(details) => {\n handleCleanup(details.open);\n rest.onOpenChange?.(details);\n }}\n >\n {!submenuTrigger ? (\n <CMenu.Trigger asChild className=\"Menu__Trigger\" data-testid=\"kibble-menu-trigger\">\n <MenuButton {...buttonProps} />\n </CMenu.Trigger>\n ) : (\n submenuTrigger\n )}\n <Portal disabled={!portalled} container={contentRef || undefined}>\n <CMenu.Positioner className=\"Menu\" data-testid=\"kibble-menu\">\n <CMenu.Content\n className=\"Menu__Content\"\n data-testid=\"kibble-menu-content\"\n maxH={maxH}\n minW={minW}\n {...restListProps}\n >\n {(searchable || canSelectAll) && (\n <Box className=\"Menu__Header\" data-testid=\"kibble-menu-header\" m=\"0 12px 8px\">\n {searchable && (\n <TextInput\n className=\"Menu__SearchBar\"\n data-testid=\"kibble-menu-search-bar\"\n placeholder={searchPlaceholder}\n onChange={handleSearch}\n size=\"sm\"\n value={searchText}\n clearable\n onClear={clearSearch}\n formControlStyle={{ mt: 1 }}\n />\n )}\n {canSelectAll && !!checkboxItems.length && (\n <MenuToggleButtons onToggle={handleToggle} hasSelectedItems={!!selectedItems.value.length} />\n )}\n </Box>\n )}\n {!loading ? (\n <Box className=\"Menu__List\" data-testid=\"kibble-menu-list\">\n {groups.length ? (\n <>\n {groups.map(([groupLabel, types]) => {\n const isDefaultGroup = groupLabel === 'default';\n const itemTypes = Object.keys(types);\n const MenuGroupContainer = !isDefaultGroup ? CMenu.ItemGroup : React.Fragment;\n const groupValues = types['checkbox']?.map((item) => item.value);\n const hasSelectedItems = groupValues?.some((value) => selectedItems.value.includes(value));\n return (\n <MenuGroupContainer key={groupLabel}>\n {!isDefaultGroup && (\n <CMenu.ItemGroupLabel>\n <Flex alignItems=\"center\" justifyContent=\"space-between\">\n {groupLabel}\n {canSelectGroups && itemTypes.includes('checkbox') && (\n <MenuToggleButtons\n groupName={groupLabel}\n onToggle={handleToggle}\n hasSelectedItems={hasSelectedItems}\n />\n )}\n </Flex>\n </CMenu.ItemGroupLabel>\n )}\n {Object.entries(types).map(([type, items]) =>\n items.map((item, index) => (\n <MenuItem\n key={`menu-item-${groupLabel}-${type}-${index}`}\n {...item}\n shouldTruncateText={shouldTruncateText}\n {...(item.type === 'checkbox' && {\n checked: selectedItems.isChecked(item.value),\n })}\n onSelect={() => handleSelect(item)}\n />\n )),\n )}\n </MenuGroupContainer>\n );\n })}\n </>\n ) : (\n <>\n <Box textAlign=\"center\" p={3}>\n <Text size=\"sm\" variant=\"subtle\">\n {emptyStateText}\n </Text>\n </Box>\n </>\n )}\n </Box>\n ) : (\n <Flex justifyContent=\"center\" py={5}>\n <Spinner />\n </Flex>\n )}\n </CMenu.Content>\n </CMenu.Positioner>\n </Portal>\n </CMenu.Root>\n );\n};\n"],"names":["MenuProvider","useMenuContext","createContext","MenuArrow","forwardRef","props","ref","menu","mergedProps","mergeProps","jsx","ark","MenuArrowTip","MenuItemProvider","useMenuItemContext","MenuItemPropsProvider","useMenuItemPropsContext","MenuCheckboxItem","partialOptionItemProps","localProps","createSplitProps","optionItemProps","optionItemState","MenuContent","presence","usePresenceContext","composeRefs","MenuContextTrigger","MenuIndicator","MenuItem","itemProps","itemState","useEffect","MenuItemGroupProvider","useMenuItemGroupContext","MenuItemGroup","optionalItemGroupProps","itemGroupProps","useId","MenuItemGroupLabel","itemGroup","MenuItemIndicator","MenuItemText","MenuPositioner","MenuRadioItem","partialItemProps","MenuRadioItemGroup","useEffectOnce","cb","savedCallback","useRef","effectGuard","useMenu","id","getRootNode","useEnvironmentContext","dir","useLocaleContext","machineProps","service","useMachine","menu.machine","menu.connect","normalizeProps","MenuMachineProvider","useMenuMachineContext","MenuTriggerItemProvider","useMenuTriggerItemContext","MenuRoot","presenceProps","menuProps","splitPresenceProps","useMenuProps","parentApi","parentMachine","api","usePresence","triggerItemContext","useCallback","PresenceProvider","MenuRootProvider","children","MenuSeparator","MenuTrigger","MenuTriggerItem","getTriggerItemProps","withRootProvider","withContext","createSlotRecipeContext","Menu.RootProvider","Menu.Root","Menu.Trigger","Menu.ContextTrigger","Menu.Positioner","Menu.Separator","Menu.Content","Menu.ArrowTip","Menu.Arrow","Menu.Indicator","Menu.ItemGroup","Menu.ItemGroupLabel","Menu.Item","Menu.TriggerItem","Menu.ItemText","Menu.ItemIndicator","CheckIcon","Menu.CheckboxItem","Menu.RadioItemGroup","Menu.RadioItem","MenuButton","hideCaret","size","text","textProps","variant","rest","jsxs","Button","Text","Flex","Icon","label","leftElement","onSelect","shouldTruncateText","type","handleOnSelect","valueText","listProps","Menu","CMenu.TriggerItem","MenuItemLabel","checked","value","closeOnSelect","checkboxRest","CMenu.CheckboxItem","Checkbox","selected","defaultRest","CMenu.Item","Fragment","MenuToggleButtons","groupName","hasSelectedItems","onToggle","isGrouped","Box","ClearAllButton","SelectAllButton","buttonProps","portalled","submenuTrigger","contentRef","usePortalContentRef","canSelectAll","canSelectGroups","emptyStateText","loading","maxH","menuItems","minW","onSearch","onSelectAll","searchable","searchPlaceholder","restListProps","searchText","setSearchText","useState","filteredMenuItems","setFilteredMenuItems","groupedItems","useMemo","groups","item","group","checkboxItems","defaultSelectedItems","selectedItems","useCheckboxGroup","filterOptions","searchInput","itemsToFilter","handleSearch","e","clearSearch","handleToggle","clear","newValues","groupItems","handleSelect","currentSelection","isItemSelected","handleCleanup","open","CMenu.Root","details","CMenu.Trigger","Portal","CMenu.Positioner","CMenu.Content","TextInput","Spinner","groupLabel","types","isDefaultGroup","itemTypes","MenuGroupContainer","React","CMenu.ItemGroup","CMenu.ItemGroupLabel","items","index"],"mappings":"gsBAGM,CAACA,EAAcC,CAAc,EAAIC,gBAAc,CACnD,KAAM,cACN,SAAU,iBACV,aAAc,mBACd,OAAQ,EACV,CAAC,ECDKC,EAAYC,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAC3C,MAAMC,EAAON,EAAgB,EACvBO,EAAcC,EAAU,WAACF,EAAK,cAAa,EAAIF,CAAK,EAC1D,OAAuBK,EAAAA,kBAAAA,IAAIC,EAAAA,IAAI,IAAK,CAAE,GAAGH,EAAa,IAAAF,EAAK,CAC7D,CAAC,EACDH,EAAU,YAAc,YCLxB,MAAMS,GAAeR,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAC9C,MAAMC,EAAON,EAAgB,EACvBO,EAAcC,EAAU,WAACF,EAAK,iBAAgB,EAAIF,CAAK,EAC7D,OAAuBK,EAAAA,kBAAAA,IAAIC,EAAAA,IAAI,IAAK,CAAE,GAAGH,EAAa,IAAAF,EAAK,CAC7D,CAAC,EACDM,GAAa,YAAc,eCT3B,KAAM,CAACC,EAAkBC,EAAkB,EAAIZ,gBAAc,CAC3D,KAAM,kBACN,SAAU,qBACV,aAAc,sBAChB,CAAC,ECJK,CAACa,EAAuBC,EAAuB,EAAId,gBAAc,CACrE,KAAM,uBACN,SAAU,0BACV,aAAc,2BAChB,CAAC,ECGKe,GAAmBb,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAClD,KAAM,CAACY,EAAwBC,CAAU,EAAIC,EAAgB,iBAAA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B,GAAA,CAEE,GAAGkJ,EACJ,mBAAAnD,GACC,GAAImD,EAAK,OAAS,YAAc,CAC/B,QAASI,EAAc,UAAUJ,EAAK,KAAK,CAC7C,EACA,SAAU,IAAMgB,GAAahB,CAAI,CAAA,EAN5B,aAAa6B,CAAU,IAAI/E,CAAI,IAAIwF,EAAK,EAQhD,CAAA,CAAA,CACH,CAAA,EA3BuBT,CA4BzB,CAAA,CAEH,CAAA,CACH,EAEAlM,wBAAAmI,EAAAA,kBAAAA,SAAA,CACE,SAACnI,EAAAA,kBAAAA,IAAAyI,EAAAA,IAAA,CAAI,UAAU,SAAS,EAAG,EACzB,SAACzI,EAAA,kBAAA,IAAA4G,cAAA,CAAK,KAAK,KAAK,QAAQ,SACrB,SACHuC,EAAA,CAAA,CACF,CACF,CAAA,CAEJ,CAAA,CAIA,CAAA,GAGN,CACF,CAAA,CAAA,CAAA,CACF,CAEJ","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const t=require("./jsx-runtime-BjDatQAs.js"),R=require("react"),i=require("./button.component-DAv5WxDc.js"),C=require("./flex-BOU6tYUd.js"),e=require("./dialog-BPhjKQkb.js"),k=require("./heading.component-C_cdAGTd.js"),B=require("./usePortalContentRef-CTrvBQ7I.js"),M=require("./use-breakpoint-uBg4-8yY.js"),N=require("./use-locale-context-Dv7DQ_mn.js"),D=({children:o,destructive:a,disabled:l,hideCancel:s=!1,loading:n,loadingText:r,onCancel:d,onSubmit:c,submitText:u="Submit",...x})=>t.jsxRuntimeExports.jsx(e.DialogFooter,{className:"Modal__Footer","data-testid":"kibble-modal-footer",...x,children:o||t.jsxRuntimeExports.jsxs(C.Flex,{alignItems:"center",justifyContent:"space-between",w:"100%",children:[!s&&t.jsxRuntimeExports.jsx(e.DialogActionTrigger,{asChild:!0,className:"Modal__CancelButton","data-testid":"kibble-modal-cancel-button",children:t.jsxRuntimeExports.jsx(i.Button,{variant:"tertiary",onClick:d,children:"Cancel"})}),t.jsxRuntimeExports.jsx(i.Button,{className:"Modal__SubmitButton","data-testid":"kibble-modal-submit-button",onClick:c,loading:n,loadingText:r,disabled:l,variant:a?"primaryDestructive":"primary",children:u})]})}),v=({children:o,footerProps:a,fullScreenMobile:l=!0,header:s,headerProps:n,hideCloseButton:r=!1,hideFooter:d=!1,motionPreset:c="slide-in-bottom",placement:u="center",showExpandButton:x=!1,size:m="md",trigger:j,...g})=>{const p=R.useRef(null),h={contentRef:p},[b,E]=R.useState(!1),_=M.useBreakpointValue({base:l?"full":m,md:m});return t.jsxRuntimeExports.jsxs(e.DialogRoot,{motionPreset:c,placement:u,size:_,...g,expanded:b,children:[j&&t.jsxRuntimeExports.jsx(e.DialogTrigger,{asChild:!0,children:j}),t.jsxRuntimeExports.jsxs(N.Portal,{children:[t.jsxRuntimeExports.jsx(e.DialogBackdrop,{}),t.jsxRuntimeExports.jsx(e.DialogPositioner,{children:t.jsxRuntimeExports.jsx(B.PortalContext.Provider,{value:h,children:t.jsxRuntimeExports.jsxs(e.DialogContent,{className:"Modal","data-testid":"kibble-modal",ref:p,children:[!r&&t.jsxRuntimeExports.jsx(e.DialogCloseTrigger,{asChild:!0,className:"Modal__CloseButton","data-testid":"kibble-modal-close-button",children:t.jsxRuntimeExports.jsx(i.Button,{iconName:"close",variant:"ghostNeutral"})}),x&&t.jsxRuntimeExports.jsx(i.Button,{className:"Modal__ExpandButton","data-testid":"kibble-modal-expand-button",variant:"ghostNeutral",iconName:b?"arrowsIn":"arrowsOut",position:"absolute",top:2,right:12,onClick:()=>E(f=>!f)}),t.jsxRuntimeExports.jsx(e.DialogHeader,{className:"Modal__Header","data-testid":"kibble-modal-header",children:s&&t.jsxRuntimeExports.jsx(e.DialogTitle,{className:"Modal__Title","data-testid":"kibble-modal-title",asChild:!0,children:typeof s=="string"?t.jsxRuntimeExports.jsx(k.WrappedHeading,{size:"xl",...n,children:s}):s})}),t.jsxRuntimeExports.jsx(e.DialogBody,{className:"Modal__Body","data-testid":"kibble-modal-body",children:o}),!d&&t.jsxRuntimeExports.jsx(D,{...a})]})})})]})]})},q=["xs","sm","md","lg","cover","full"],P=["center","top","bottom"],y=["inside","outside"],S=["scale","slide-in-bottom","slide-in-top","slide-in-left","slide-in-right","none"];exports.Modal=v;exports.modalMotionPresets=S;exports.modalPlacements=P;exports.modalScrollBehaviors=y;exports.modalSizes=q;
|
|
2
|
+
//# sourceMappingURL=modal.types-CBos7aXO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.types-CBos7aXO.js","sources":["../../src/components/Modal/components/ModalFooter/modalFooter.component.tsx","../../src/components/Modal/modal.component.tsx","../../src/components/Modal/modal.types.ts"],"sourcesContent":["import React from 'react';\nimport { Dialog } from '@chakra-ui/react/dialog';\nimport { Flex } from '@chakra-ui/react/flex';\nimport { Button } from 'components/Button/button.component';\n\nexport interface ModalFooterProps extends Dialog.FooterProps {\n children?: React.ReactNode;\n destructive?: boolean;\n disabled?: boolean;\n hideCancel?: boolean;\n loading?: boolean;\n loadingText?: string;\n onCancel?: () => void;\n onSubmit?: () => void | Promise<void>;\n submitText?: string;\n}\n\nexport const ModalFooter = ({\n children,\n destructive,\n disabled,\n hideCancel = false,\n loading,\n loadingText,\n onCancel,\n onSubmit,\n submitText = 'Submit',\n ...rest\n}: ModalFooterProps): React.JSX.Element => {\n return (\n <Dialog.Footer className=\"Modal__Footer\" data-testid=\"kibble-modal-footer\" {...rest}>\n {children ? (\n children\n ) : (\n <Flex alignItems=\"center\" justifyContent=\"space-between\" w=\"100%\">\n {!hideCancel && (\n <Dialog.ActionTrigger asChild className=\"Modal__CancelButton\" data-testid=\"kibble-modal-cancel-button\">\n <Button variant=\"tertiary\" onClick={onCancel}>\n Cancel\n </Button>\n </Dialog.ActionTrigger>\n )}\n <Button\n className=\"Modal__SubmitButton\"\n data-testid=\"kibble-modal-submit-button\"\n onClick={onSubmit}\n loading={loading}\n loadingText={loadingText}\n disabled={disabled}\n variant={destructive ? 'primaryDestructive' : 'primary'}\n >\n {submitText}\n </Button>\n </Flex>\n )}\n </Dialog.Footer>\n );\n};\n","import React, { useRef, useState } from 'react';\nimport { Dialog } from '@chakra-ui/react/dialog';\nimport { Portal } from '@chakra-ui/react/portal';\nimport { ConditionalValue } from '@chakra-ui/react/styled-system';\nimport { ModalFooter, ModalFooterProps } from './components/ModalFooter/modalFooter.component';\nimport { Heading, HeadingProps } from 'components/Heading/heading.component';\nimport { ModalMotionPreset, ModalPlacement, ModalSize } from './modal.types';\nimport { Button } from 'components/Button/button.component';\nimport { useBreakpointValue } from '@chakra-ui/react';\nimport { PortalContext } from 'hooks/usePortalContentRef';\n\nexport interface ModalProps extends Dialog.RootProps {\n footerProps?: ModalFooterProps;\n fullScreenMobile?: boolean;\n header?: React.ReactNode;\n headerProps?: HeadingProps;\n hideCloseButton?: boolean;\n hideFooter?: boolean;\n motionPreset?: ModalMotionPreset;\n placement?: ModalPlacement;\n showExpandButton?: boolean;\n size?: ConditionalValue<ModalSize>;\n trigger?: React.ReactNode;\n}\n\nexport const Modal = ({\n children,\n footerProps,\n fullScreenMobile = true,\n header,\n headerProps,\n hideCloseButton = false,\n hideFooter = false,\n motionPreset = 'slide-in-bottom',\n placement = 'center',\n showExpandButton = false,\n size = 'md',\n trigger,\n ...rest\n}: ModalProps): React.JSX.Element => {\n const contentRef = useRef<HTMLDivElement>(null!);\n const contextValue = { contentRef };\n const [isExpanded, setIsExpanded] = useState(false);\n const computedSize = useBreakpointValue({\n base: fullScreenMobile ? 'full' : size,\n md: size,\n });\n\n return (\n <Dialog.Root motionPreset={motionPreset} placement={placement} size={computedSize} {...rest} expanded={isExpanded}>\n {trigger && <Dialog.Trigger asChild>{trigger}</Dialog.Trigger>}\n <Portal>\n <Dialog.Backdrop />\n <Dialog.Positioner>\n <PortalContext.Provider value={contextValue}>\n <Dialog.Content className=\"Modal\" data-testid=\"kibble-modal\" ref={contentRef}>\n {!hideCloseButton && (\n <Dialog.CloseTrigger asChild className=\"Modal__CloseButton\" data-testid=\"kibble-modal-close-button\">\n <Button iconName=\"close\" variant=\"ghostNeutral\" />\n </Dialog.CloseTrigger>\n )}\n {showExpandButton && (\n <Button\n className=\"Modal__ExpandButton\"\n data-testid=\"kibble-modal-expand-button\"\n variant=\"ghostNeutral\"\n iconName={isExpanded ? 'arrowsIn' : 'arrowsOut'}\n position=\"absolute\"\n top={2}\n right={12}\n onClick={() => setIsExpanded((prev) => !prev)}\n />\n )}\n <Dialog.Header className=\"Modal__Header\" data-testid=\"kibble-modal-header\">\n {header && (\n <Dialog.Title className=\"Modal__Title\" data-testid=\"kibble-modal-title\" asChild>\n {typeof header === 'string' ? (\n <Heading size=\"xl\" {...headerProps}>\n {header}\n </Heading>\n ) : (\n header\n )}\n </Dialog.Title>\n )}\n </Dialog.Header>\n <Dialog.Body className=\"Modal__Body\" data-testid=\"kibble-modal-body\">\n {children}\n </Dialog.Body>\n {!hideFooter && <ModalFooter {...footerProps} />}\n </Dialog.Content>\n </PortalContext.Provider>\n </Dialog.Positioner>\n </Portal>\n </Dialog.Root>\n );\n};\n","export const modalSizes = ['xs', 'sm', 'md', 'lg', 'cover', 'full'] as const;\nexport type ModalSize = (typeof modalSizes)[number];\n\nexport const modalPlacements = ['center', 'top', 'bottom'] as const;\nexport type ModalPlacement = (typeof modalPlacements)[number];\n\nexport const modalScrollBehaviors = ['inside', 'outside'] as const;\nexport type ModalScrollBehavior = (typeof modalScrollBehaviors)[number];\n\nexport const modalMotionPresets = [\n 'scale',\n 'slide-in-bottom',\n 'slide-in-top',\n 'slide-in-left',\n 'slide-in-right',\n 'none',\n] as const;\nexport type ModalMotionPreset = (typeof modalMotionPresets)[number];\n"],"names":["ModalFooter","children","destructive","disabled","hideCancel","loading","loadingText","onCancel","onSubmit","submitText","rest","Dialog.Footer","Flex","jsx","Dialog.ActionTrigger","Button","Modal","footerProps","fullScreenMobile","header","headerProps","hideCloseButton","hideFooter","motionPreset","placement","showExpandButton","size","trigger","contentRef","useRef","contextValue","isExpanded","setIsExpanded","useState","computedSize","useBreakpointValue","jsxs","Dialog.Root","Dialog.Trigger","Portal","Dialog.Backdrop","Dialog.Positioner","PortalContext","Dialog.Content","Dialog.CloseTrigger","prev","Dialog.Header","Dialog.Title","Heading","Dialog.Body","modalSizes","modalPlacements","modalScrollBehaviors","modalMotionPresets"],"mappings":"+WAiBaA,EAAc,CAAC,CAC1B,SAAAC,EACA,YAAAC,EACA,SAAAC,EACA,WAAAC,EAAa,GACb,QAAAC,EACA,YAAAC,EACA,SAAAC,EACA,SAAAC,EACA,WAAAC,EAAa,SACb,GAAGC,CACL,4BAEKC,eAAA,CAAc,UAAU,gBAAgB,cAAY,sBAAuB,GAAGD,EAC5E,SACCT,4BAECW,OAAK,CAAA,WAAW,SAAS,eAAe,gBAAgB,EAAE,OACxD,SAAA,CAAA,CAACR,GACCS,wBAAAC,EAAAA,oBAAA,CAAqB,QAAO,GAAC,UAAU,sBAAsB,cAAY,6BACxE,iCAACC,EAAAA,OAAO,CAAA,QAAQ,WAAW,QAASR,EAAU,iBAE9C,CAAA,EACF,EAEFM,EAAA,kBAAA,IAACE,EAAA,OAAA,CACC,UAAU,sBACV,cAAY,6BACZ,QAASP,EACT,QAAAH,EACA,YAAAC,EACA,SAAAH,EACA,QAASD,EAAc,qBAAuB,UAE7C,SAAAO,CAAA,CAAA,CACH,CAAA,CACF,CAEJ,CAAA,EC9BSO,EAAQ,CAAC,CACpB,SAAAf,EACA,YAAAgB,EACA,iBAAAC,EAAmB,GACnB,OAAAC,EACA,YAAAC,EACA,gBAAAC,EAAkB,GAClB,WAAAC,EAAa,GACb,aAAAC,EAAe,kBACf,UAAAC,EAAY,SACZ,iBAAAC,EAAmB,GACnB,KAAAC,EAAO,KACP,QAAAC,EACA,GAAGjB,CACL,IAAqC,CAC7B,MAAAkB,EAAaC,SAAuB,IAAK,EACzCC,EAAe,CAAE,WAAAF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SACHD,CAAA,CAAA,EAEAA,CAEJ,CAAA,EAEJ,EACAN,EAAA,kBAAA,IAACoC,EAAA,WAAA,CAAY,UAAU,cAAc,cAAY,oBAC9C,SAAAhD,EACH,EACC,CAACqB,GAAeT,EAAA,kBAAA,IAAAb,EAAA,CAAa,GAAGiB,CAAa,CAAA,CAAA,CAChD,CAAA,CACF,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,EACF,CAEJ,EChGaiC,EAAa,CAAC,KAAM,KAAM,KAAM,KAAM,QAAS,MAAM,EAGrDC,EAAkB,CAAC,SAAU,MAAO,QAAQ,EAG5CC,EAAuB,CAAC,SAAU,SAAS,EAG3CC,EAAqB,CAChC,QACA,kBACA,eACA,gBACA,iBACA,MACF"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { j as a } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { useRef as k, useState as C } from "react";
|
|
3
|
+
import { B as s } from "./button.component-BE20YKDd.js";
|
|
4
|
+
import { F as D } from "./flex-CX-8gE9T.js";
|
|
5
|
+
import { D as M, a as N, b as B, c as v, d as y, e as P, f as S, g as F, h as T, i as w, j as E } from "./dialog-C70U2EqO.js";
|
|
6
|
+
import { W as R } from "./heading.component-DgW2WFXo.js";
|
|
7
|
+
import { P as z } from "./usePortalContentRef-DO_jc4W9.js";
|
|
8
|
+
import { u as H } from "./use-breakpoint-MQ7agQJe.js";
|
|
9
|
+
import { P as I } from "./use-locale-context-CGfkkp7X.js";
|
|
10
|
+
const V = ({
|
|
11
|
+
children: e,
|
|
12
|
+
destructive: o,
|
|
13
|
+
disabled: l,
|
|
14
|
+
hideCancel: t = !1,
|
|
15
|
+
loading: i,
|
|
16
|
+
loadingText: d,
|
|
17
|
+
onCancel: r,
|
|
18
|
+
onSubmit: n,
|
|
19
|
+
submitText: c = "Submit",
|
|
20
|
+
...m
|
|
21
|
+
}) => /* @__PURE__ */ a.jsx(M, { className: "Modal__Footer", "data-testid": "kibble-modal-footer", ...m, children: e || /* @__PURE__ */ a.jsxs(D, { alignItems: "center", justifyContent: "space-between", w: "100%", children: [
|
|
22
|
+
!t && /* @__PURE__ */ a.jsx(N, { asChild: !0, className: "Modal__CancelButton", "data-testid": "kibble-modal-cancel-button", children: /* @__PURE__ */ a.jsx(s, { variant: "tertiary", onClick: r, children: "Cancel" }) }),
|
|
23
|
+
/* @__PURE__ */ a.jsx(
|
|
24
|
+
s,
|
|
25
|
+
{
|
|
26
|
+
className: "Modal__SubmitButton",
|
|
27
|
+
"data-testid": "kibble-modal-submit-button",
|
|
28
|
+
onClick: n,
|
|
29
|
+
loading: i,
|
|
30
|
+
loadingText: d,
|
|
31
|
+
disabled: l,
|
|
32
|
+
variant: o ? "primaryDestructive" : "primary",
|
|
33
|
+
children: c
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
] }) }), U = ({
|
|
37
|
+
children: e,
|
|
38
|
+
footerProps: o,
|
|
39
|
+
fullScreenMobile: l = !0,
|
|
40
|
+
header: t,
|
|
41
|
+
headerProps: i,
|
|
42
|
+
hideCloseButton: d = !1,
|
|
43
|
+
hideFooter: r = !1,
|
|
44
|
+
motionPreset: n = "slide-in-bottom",
|
|
45
|
+
placement: c = "center",
|
|
46
|
+
showExpandButton: m = !1,
|
|
47
|
+
size: u = "md",
|
|
48
|
+
trigger: b,
|
|
49
|
+
...f
|
|
50
|
+
}) => {
|
|
51
|
+
const x = k(null), g = { contentRef: x }, [p, j] = C(!1), h = H({
|
|
52
|
+
base: l ? "full" : u,
|
|
53
|
+
md: u
|
|
54
|
+
});
|
|
55
|
+
return /* @__PURE__ */ a.jsxs(B, { motionPreset: n, placement: c, size: h, ...f, expanded: p, children: [
|
|
56
|
+
b && /* @__PURE__ */ a.jsx(v, { asChild: !0, children: b }),
|
|
57
|
+
/* @__PURE__ */ a.jsxs(I, { children: [
|
|
58
|
+
/* @__PURE__ */ a.jsx(y, {}),
|
|
59
|
+
/* @__PURE__ */ a.jsx(P, { children: /* @__PURE__ */ a.jsx(z.Provider, { value: g, children: /* @__PURE__ */ a.jsxs(S, { className: "Modal", "data-testid": "kibble-modal", ref: x, children: [
|
|
60
|
+
!d && /* @__PURE__ */ a.jsx(F, { asChild: !0, className: "Modal__CloseButton", "data-testid": "kibble-modal-close-button", children: /* @__PURE__ */ a.jsx(s, { iconName: "close", variant: "ghostNeutral" }) }),
|
|
61
|
+
m && /* @__PURE__ */ a.jsx(
|
|
62
|
+
s,
|
|
63
|
+
{
|
|
64
|
+
className: "Modal__ExpandButton",
|
|
65
|
+
"data-testid": "kibble-modal-expand-button",
|
|
66
|
+
variant: "ghostNeutral",
|
|
67
|
+
iconName: p ? "arrowsIn" : "arrowsOut",
|
|
68
|
+
position: "absolute",
|
|
69
|
+
top: 2,
|
|
70
|
+
right: 12,
|
|
71
|
+
onClick: () => j((_) => !_)
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
/* @__PURE__ */ a.jsx(T, { className: "Modal__Header", "data-testid": "kibble-modal-header", children: t && /* @__PURE__ */ a.jsx(w, { className: "Modal__Title", "data-testid": "kibble-modal-title", asChild: !0, children: typeof t == "string" ? /* @__PURE__ */ a.jsx(R, { size: "xl", ...i, children: t }) : t }) }),
|
|
75
|
+
/* @__PURE__ */ a.jsx(E, { className: "Modal__Body", "data-testid": "kibble-modal-body", children: e }),
|
|
76
|
+
!r && /* @__PURE__ */ a.jsx(V, { ...o })
|
|
77
|
+
] }) }) })
|
|
78
|
+
] })
|
|
79
|
+
] });
|
|
80
|
+
}, X = ["xs", "sm", "md", "lg", "cover", "full"], Y = ["center", "top", "bottom"], Z = ["inside", "outside"], $ = [
|
|
81
|
+
"scale",
|
|
82
|
+
"slide-in-bottom",
|
|
83
|
+
"slide-in-top",
|
|
84
|
+
"slide-in-left",
|
|
85
|
+
"slide-in-right",
|
|
86
|
+
"none"
|
|
87
|
+
];
|
|
88
|
+
export {
|
|
89
|
+
U as M,
|
|
90
|
+
Y as a,
|
|
91
|
+
Z as b,
|
|
92
|
+
$ as c,
|
|
93
|
+
X as m
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=modal.types-DCtp2gae.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.types-DCtp2gae.js","sources":["../../src/components/Modal/components/ModalFooter/modalFooter.component.tsx","../../src/components/Modal/modal.component.tsx","../../src/components/Modal/modal.types.ts"],"sourcesContent":["import React from 'react';\nimport { Dialog } from '@chakra-ui/react/dialog';\nimport { Flex } from '@chakra-ui/react/flex';\nimport { Button } from 'components/Button/button.component';\n\nexport interface ModalFooterProps extends Dialog.FooterProps {\n children?: React.ReactNode;\n destructive?: boolean;\n disabled?: boolean;\n hideCancel?: boolean;\n loading?: boolean;\n loadingText?: string;\n onCancel?: () => void;\n onSubmit?: () => void | Promise<void>;\n submitText?: string;\n}\n\nexport const ModalFooter = ({\n children,\n destructive,\n disabled,\n hideCancel = false,\n loading,\n loadingText,\n onCancel,\n onSubmit,\n submitText = 'Submit',\n ...rest\n}: ModalFooterProps): React.JSX.Element => {\n return (\n <Dialog.Footer className=\"Modal__Footer\" data-testid=\"kibble-modal-footer\" {...rest}>\n {children ? (\n children\n ) : (\n <Flex alignItems=\"center\" justifyContent=\"space-between\" w=\"100%\">\n {!hideCancel && (\n <Dialog.ActionTrigger asChild className=\"Modal__CancelButton\" data-testid=\"kibble-modal-cancel-button\">\n <Button variant=\"tertiary\" onClick={onCancel}>\n Cancel\n </Button>\n </Dialog.ActionTrigger>\n )}\n <Button\n className=\"Modal__SubmitButton\"\n data-testid=\"kibble-modal-submit-button\"\n onClick={onSubmit}\n loading={loading}\n loadingText={loadingText}\n disabled={disabled}\n variant={destructive ? 'primaryDestructive' : 'primary'}\n >\n {submitText}\n </Button>\n </Flex>\n )}\n </Dialog.Footer>\n );\n};\n","import React, { useRef, useState } from 'react';\nimport { Dialog } from '@chakra-ui/react/dialog';\nimport { Portal } from '@chakra-ui/react/portal';\nimport { ConditionalValue } from '@chakra-ui/react/styled-system';\nimport { ModalFooter, ModalFooterProps } from './components/ModalFooter/modalFooter.component';\nimport { Heading, HeadingProps } from 'components/Heading/heading.component';\nimport { ModalMotionPreset, ModalPlacement, ModalSize } from './modal.types';\nimport { Button } from 'components/Button/button.component';\nimport { useBreakpointValue } from '@chakra-ui/react';\nimport { PortalContext } from 'hooks/usePortalContentRef';\n\nexport interface ModalProps extends Dialog.RootProps {\n footerProps?: ModalFooterProps;\n fullScreenMobile?: boolean;\n header?: React.ReactNode;\n headerProps?: HeadingProps;\n hideCloseButton?: boolean;\n hideFooter?: boolean;\n motionPreset?: ModalMotionPreset;\n placement?: ModalPlacement;\n showExpandButton?: boolean;\n size?: ConditionalValue<ModalSize>;\n trigger?: React.ReactNode;\n}\n\nexport const Modal = ({\n children,\n footerProps,\n fullScreenMobile = true,\n header,\n headerProps,\n hideCloseButton = false,\n hideFooter = false,\n motionPreset = 'slide-in-bottom',\n placement = 'center',\n showExpandButton = false,\n size = 'md',\n trigger,\n ...rest\n}: ModalProps): React.JSX.Element => {\n const contentRef = useRef<HTMLDivElement>(null!);\n const contextValue = { contentRef };\n const [isExpanded, setIsExpanded] = useState(false);\n const computedSize = useBreakpointValue({\n base: fullScreenMobile ? 'full' : size,\n md: size,\n });\n\n return (\n <Dialog.Root motionPreset={motionPreset} placement={placement} size={computedSize} {...rest} expanded={isExpanded}>\n {trigger && <Dialog.Trigger asChild>{trigger}</Dialog.Trigger>}\n <Portal>\n <Dialog.Backdrop />\n <Dialog.Positioner>\n <PortalContext.Provider value={contextValue}>\n <Dialog.Content className=\"Modal\" data-testid=\"kibble-modal\" ref={contentRef}>\n {!hideCloseButton && (\n <Dialog.CloseTrigger asChild className=\"Modal__CloseButton\" data-testid=\"kibble-modal-close-button\">\n <Button iconName=\"close\" variant=\"ghostNeutral\" />\n </Dialog.CloseTrigger>\n )}\n {showExpandButton && (\n <Button\n className=\"Modal__ExpandButton\"\n data-testid=\"kibble-modal-expand-button\"\n variant=\"ghostNeutral\"\n iconName={isExpanded ? 'arrowsIn' : 'arrowsOut'}\n position=\"absolute\"\n top={2}\n right={12}\n onClick={() => setIsExpanded((prev) => !prev)}\n />\n )}\n <Dialog.Header className=\"Modal__Header\" data-testid=\"kibble-modal-header\">\n {header && (\n <Dialog.Title className=\"Modal__Title\" data-testid=\"kibble-modal-title\" asChild>\n {typeof header === 'string' ? (\n <Heading size=\"xl\" {...headerProps}>\n {header}\n </Heading>\n ) : (\n header\n )}\n </Dialog.Title>\n )}\n </Dialog.Header>\n <Dialog.Body className=\"Modal__Body\" data-testid=\"kibble-modal-body\">\n {children}\n </Dialog.Body>\n {!hideFooter && <ModalFooter {...footerProps} />}\n </Dialog.Content>\n </PortalContext.Provider>\n </Dialog.Positioner>\n </Portal>\n </Dialog.Root>\n );\n};\n","export const modalSizes = ['xs', 'sm', 'md', 'lg', 'cover', 'full'] as const;\nexport type ModalSize = (typeof modalSizes)[number];\n\nexport const modalPlacements = ['center', 'top', 'bottom'] as const;\nexport type ModalPlacement = (typeof modalPlacements)[number];\n\nexport const modalScrollBehaviors = ['inside', 'outside'] as const;\nexport type ModalScrollBehavior = (typeof modalScrollBehaviors)[number];\n\nexport const modalMotionPresets = [\n 'scale',\n 'slide-in-bottom',\n 'slide-in-top',\n 'slide-in-left',\n 'slide-in-right',\n 'none',\n] as const;\nexport type ModalMotionPreset = (typeof modalMotionPresets)[number];\n"],"names":["ModalFooter","children","destructive","disabled","hideCancel","loading","loadingText","onCancel","onSubmit","submitText","rest","Dialog.Footer","Flex","jsx","Dialog.ActionTrigger","Button","Modal","footerProps","fullScreenMobile","header","headerProps","hideCloseButton","hideFooter","motionPreset","placement","showExpandButton","size","trigger","contentRef","useRef","contextValue","isExpanded","setIsExpanded","useState","computedSize","useBreakpointValue","jsxs","Dialog.Root","Dialog.Trigger","Portal","Dialog.Backdrop","Dialog.Positioner","PortalContext","Dialog.Content","Dialog.CloseTrigger","prev","Dialog.Header","Dialog.Title","Heading","Dialog.Body","modalSizes","modalPlacements","modalScroll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GAAA,EAAQ,MAAK,MAAM,GAAG5B,GACpB,UACHD,EAAA,CAAA,IAEAA,EAEJ,CAAA,GAEJ;AAAA,QACAN,gBAAAA,EAAA,IAACoC,GAAA,EAAY,WAAU,eAAc,eAAY,qBAC9C,UAAAhD,GACH;AAAA,QACC,CAACqB,KAAeT,gBAAAA,EAAA,IAAAb,GAAA,EAAa,GAAGiB,EAAa,CAAA;AAAA,MAAA,EAChD,CAAA,EACF,CAAA,EACF,CAAA;AAAA,IAAA,EACF,CAAA;AAAA,EAAA,GACF;AAEJ,GChGaiC,IAAa,CAAC,MAAM,MAAM,MAAM,MAAM,SAAS,MAAM,GAGrDC,IAAkB,CAAC,UAAU,OAAO,QAAQ,GAG5CC,IAAuB,CAAC,UAAU,SAAS,GAG3CC,IAAqB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { a as c } from "./config-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { F as x } from "./flex-
|
|
2
|
+
import { a as c } from "./config-B3QABP1-.js";
|
|
3
|
+
import { B as l } from "./index-9BerxEcw.js";
|
|
4
|
+
import { u as m } from "./use-slot-recipe-DhtQ1j_5.js";
|
|
5
|
+
import { F as x } from "./flex-CX-8gE9T.js";
|
|
6
6
|
const d = ["root", "maxElement"], h = {
|
|
7
7
|
blue: {
|
|
8
8
|
root: {
|
|
@@ -110,10 +110,10 @@ const d = ["root", "maxElement"], h = {
|
|
|
110
110
|
size: o = "md",
|
|
111
111
|
variant: i = "red"
|
|
112
112
|
}) => {
|
|
113
|
-
const e =
|
|
113
|
+
const e = m({ recipe: g })({ size: o, variant: i }), s = o !== "xs" && n, a = t > b ? /* @__PURE__ */ r.jsx(l, { css: e.maxElement }) : t > 0 && t;
|
|
114
114
|
return /* @__PURE__ */ r.jsx(x, { className: "NotificationCounter", "data-testid": "kibble-notification-counter", css: e.root, children: s && a });
|
|
115
115
|
};
|
|
116
116
|
export {
|
|
117
117
|
k as N
|
|
118
118
|
};
|
|
119
|
-
//# sourceMappingURL=notificationCounter.component-
|
|
119
|
+
//# sourceMappingURL=notificationCounter.component-Lu4_Owvr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationCounter.component-
|
|
1
|
+
{"version":3,"file":"notificationCounter.component-Lu4_Owvr.js","sources":["../../src/components/NotificationCounter/notificationCounter.recipe.ts","../../src/components/NotificationCounter/notificationCounter.records.ts","../../src/components/NotificationCounter/notificationCounter.component.tsx"],"sourcesContent":["import { defineSlotRecipe, SystemStyleObject } from '@chakra-ui/react/styled-system';\nimport { NotificationCounterSize, NotificationCounterVariant } from './notificationCounter.types';\n\nconst notificationCounterSlots = ['root', 'maxElement'] as const;\ntype NotificationCounterSlot = (typeof notificationCounterSlots)[number];\n\nconst notificationCounterVariantStyles: Record<\n NotificationCounterVariant,\n Record<NotificationCounterSlot, SystemStyleObject>\n> = {\n blue: {\n root: {\n bgColor: 'background.accent',\n color: 'text.contrast',\n },\n maxElement: {\n bgColor: 'text.contrast',\n },\n },\n green: {\n root: {\n bgColor: 'background.success.contrast',\n color: 'text.contrast',\n },\n maxElement: {\n bgColor: 'text.contrast',\n },\n },\n neutral: {\n root: {\n bgColor: 'background.subtle.less',\n color: 'text',\n },\n maxElement: {\n bgColor: 'text',\n },\n },\n red: {\n root: {\n bgColor: 'background.danger.contrast',\n color: 'text.contrast',\n },\n maxElement: {\n bgColor: 'text.contrast',\n },\n },\n};\n\nconst notificationCounterSizeStyles: Record<\n NotificationCounterSize,\n Record<NotificationCounterSlot, SystemStyleObject>\n> = {\n xs: {\n root: {\n fontSize: '8px',\n height: 3,\n width: 3,\n },\n maxElement: {\n height: '1px',\n width: '1px',\n },\n },\n sm: {\n root: { fontSize: '10px', height: 4, width: 4 },\n maxElement: {\n height: '2px',\n width: '2px',\n },\n },\n md: {\n root: {\n fontSize: 'xs',\n height: 5,\n width: 5,\n },\n maxElement: {\n height: '3px',\n width: '3px',\n },\n },\n lg: {\n root: {\n fontSize: 'sm',\n height: 6,\n width: 6,\n },\n maxElement: {\n height: 1,\n width: 1,\n },\n },\n};\n\nexport const notificationCounterRecipe = defineSlotRecipe({\n slots: notificationCounterSlots,\n base: {\n root: {\n alignItems: 'center',\n border: '1px',\n borderColor: 'background',\n borderRadius: 'full',\n fontWeight: 'semibold',\n justifyContent: 'center',\n },\n maxElement: {\n borderRadius: 'full',\n },\n },\n variants: {\n size: notificationCounterSizeStyles,\n variant: notificationCounterVariantStyles,\n },\n defaultVariants: {\n size: 'md',\n variant: 'red',\n },\n});\n","export const MAX_COUNT = 99;\n","import React from 'react';\nimport { Flex, FlexProps } from '@chakra-ui/react/flex';\nimport { NotificationCounterSize, NotificationCounterVariant } from './notificationCounter.types';\nimport { useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { notificationCounterRecipe } from './notificationCounter.recipe';\nimport { MAX_COUNT } from './notificationCounter.records';\nimport { Box } from '@chakra-ui/react/box';\n\nexport interface NotificationCounterProps extends FlexProps {\n count?: number;\n showCount?: boolean;\n size?: NotificationCounterSize;\n variant?: NotificationCounterVariant;\n}\n\nexport const NotificationCounter = ({\n count = 0,\n showCount = true,\n size = 'md',\n variant = 'red',\n}: NotificationCounterProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: notificationCounterRecipe });\n const styles = recipe({ size, variant });\n const shouldShowCount = size !== 'xs' && showCount;\n\n const counterContent = count > MAX_COUNT ? <Box css={styles.maxElement} /> : count > 0 && count;\n\n return (\n <Flex className=\"NotificationCounter\" data-testid=\"kibble-notification-counter\" css={styles.root}>\n {shouldShowCount && counterContent}\n </Flex>\n );\n};\n"],"names":["notificationCounterSlots","notificationCounterVariantStyles","notificationCounterSizeStyles","notificationCounterRecipe","defineSlotRecipe","MAX_COUNT","NotificationCounter","count","showCount","size","variant","styles","useSlot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MACV,QAAQ;AAAA,MACR,OAAO;AAAA,IACT;AAAA,IACA,YAAY;AAAA,MACV,QAAQ;AAAA,MACR,OAAO;AAAA,IAAA;AAAA,EACT;AAEJ,GAEaC,IAA4BC,EAAiB;AAAA,EACxD,OAAOJ;AAAA,EACP,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,cAAc;AAAA,MACd,YAAY;AAAA,MACZ,gBAAgB;AAAA,IAClB;AAAA,IACA,YAAY;AAAA,MACV,cAAc;AAAA,IAAA;AAAA,EAElB;AAAA,EACA,UAAU;AAAA,IACR,MAAME;AAAA,IACN,SAASD;AAAA,EACX;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb,CAAC,GCrHYI,IAAY,ICeZC,IAAsB,CAAC;AAAA,EAClC,OAAAC,IAAQ;AAAA,EACR,WAAAC,IAAY;AAAA,EACZ,MAAAC,IAAO;AAAA,EACP,SAAAC,IAAU;AACZ,MAAmD;AAEjD,QAAMC,IADSC,EAAc,EAAE,QAAQT,GAA2B,EAC5C,EAAE,MAAAM,GAAM,SAAAC,GAAS,GACjCG,IAAkBJ,MAAS,QAAQD,GAEnCM,IAAiBP,IAAQF,IAAaU,gBAAAA,EAAAA,IAAAC,GAAA,EAAI,KAAKL,EAAO,WAAY,CAAA,IAAKJ,IAAQ,KAAKA;AAGxF,SAAAQ,gBAAAA,EAAA,IAACE,GAAK,EAAA,WAAU,uBAAsB,eAAY,+BAA8B,KAAKN,EAAO,MACzF,UAAAE,KAAmBC,EACtB,CAAA;AAEJ;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const n=require("./jsx-runtime-BjDatQAs.js"),a=require("./config-jChwZPSv.js"),l=require("./index-BQRnVsAg.js"),x=require("./use-slot-recipe-8liupslO.js"),u=require("./flex-BOU6tYUd.js"),d=["root","maxElement"],m={blue:{root:{bgColor:"background.accent",color:"text.contrast"},maxElement:{bgColor:"text.contrast"}},green:{root:{bgColor:"background.success.contrast",color:"text.contrast"},maxElement:{bgColor:"text.contrast"}},neutral:{root:{bgColor:"background.subtle.less",color:"text"},maxElement:{bgColor:"text"}},red:{root:{bgColor:"background.danger.contrast",color:"text.contrast"},maxElement:{bgColor:"text.contrast"}}},h={xs:{root:{fontSize:"8px",height:3,width:3},maxElement:{height:"1px",width:"1px"}},sm:{root:{fontSize:"10px",height:4,width:4},maxElement:{height:"2px",width:"2px"}},md:{root:{fontSize:"xs",height:5,width:5},maxElement:{height:"3px",width:"3px"}},lg:{root:{fontSize:"sm",height:6,width:6},maxElement:{height:1,width:1}}},g=a.defineSlotRecipe({slots:d,base:{root:{alignItems:"center",border:"1px",borderColor:"background",borderRadius:"full",fontWeight:"semibold",justifyContent:"center"},maxElement:{borderRadius:"full"}},variants:{size:h,variant:m},defaultVariants:{size:"md",variant:"red"}}),b=99,f=({count:t=0,showCount:r=!0,size:e="md",variant:i="red"})=>{const o=x.useSlotRecipe({recipe:g})({size:e,variant:i}),s=e!=="xs"&&r,c=t>b?n.jsxRuntimeExports.jsx(l.Box,{css:o.maxElement}):t>0&&t;return n.jsxRuntimeExports.jsx(u.Flex,{className:"NotificationCounter","data-testid":"kibble-notification-counter",css:o.root,children:s&&c})};exports.NotificationCounter=f;
|
|
2
|
+
//# sourceMappingURL=notificationCounter.component-gp2ULnY_.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationCounter.component-
|
|
1
|
+
{"version":3,"file":"notificationCounter.component-gp2ULnY_.js","sources":["../../src/components/NotificationCounter/notificationCounter.recipe.ts","../../src/components/NotificationCounter/notificationCounter.records.ts","../../src/components/NotificationCounter/notificationCounter.component.tsx"],"sourcesContent":["import { defineSlotRecipe, SystemStyleObject } from '@chakra-ui/react/styled-system';\nimport { NotificationCounterSize, NotificationCounterVariant } from './notificationCounter.types';\n\nconst notificationCounterSlots = ['root', 'maxElement'] as const;\ntype NotificationCounterSlot = (typeof notificationCounterSlots)[number];\n\nconst notificationCounterVariantStyles: Record<\n NotificationCounterVariant,\n Record<NotificationCounterSlot, SystemStyleObject>\n> = {\n blue: {\n root: {\n bgColor: 'background.accent',\n color: 'text.contrast',\n },\n maxElement: {\n bgColor: 'text.contrast',\n },\n },\n green: {\n root: {\n bgColor: 'background.success.contrast',\n color: 'text.contrast',\n },\n maxElement: {\n bgColor: 'text.contrast',\n },\n },\n neutral: {\n root: {\n bgColor: 'background.subtle.less',\n color: 'text',\n },\n maxElement: {\n bgColor: 'text',\n },\n },\n red: {\n root: {\n bgColor: 'background.danger.contrast',\n color: 'text.contrast',\n },\n maxElement: {\n bgColor: 'text.contrast',\n },\n },\n};\n\nconst notificationCounterSizeStyles: Record<\n NotificationCounterSize,\n Record<NotificationCounterSlot, SystemStyleObject>\n> = {\n xs: {\n root: {\n fontSize: '8px',\n height: 3,\n width: 3,\n },\n maxElement: {\n height: '1px',\n width: '1px',\n },\n },\n sm: {\n root: { fontSize: '10px', height: 4, width: 4 },\n maxElement: {\n height: '2px',\n width: '2px',\n },\n },\n md: {\n root: {\n fontSize: 'xs',\n height: 5,\n width: 5,\n },\n maxElement: {\n height: '3px',\n width: '3px',\n },\n },\n lg: {\n root: {\n fontSize: 'sm',\n height: 6,\n width: 6,\n },\n maxElement: {\n height: 1,\n width: 1,\n },\n },\n};\n\nexport const notificationCounterRecipe = defineSlotRecipe({\n slots: notificationCounterSlots,\n base: {\n root: {\n alignItems: 'center',\n border: '1px',\n borderColor: 'background',\n borderRadius: 'full',\n fontWeight: 'semibold',\n justifyContent: 'center',\n },\n maxElement: {\n borderRadius: 'full',\n },\n },\n variants: {\n size: notificationCounterSizeStyles,\n variant: notificationCounterVariantStyles,\n },\n defaultVariants: {\n size: 'md',\n variant: 'red',\n },\n});\n","export const MAX_COUNT = 99;\n","import React from 'react';\nimport { Flex, FlexProps } from '@chakra-ui/react/flex';\nimport { NotificationCounterSize, NotificationCounterVariant } from './notificationCounter.types';\nimport { useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { notificationCounterRecipe } from './notificationCounter.recipe';\nimport { MAX_COUNT } from './notificationCounter.records';\nimport { Box } from '@chakra-ui/react/box';\n\nexport interface NotificationCounterProps extends FlexProps {\n count?: number;\n showCount?: boolean;\n size?: NotificationCounterSize;\n variant?: NotificationCounterVariant;\n}\n\nexport const NotificationCounter = ({\n count = 0,\n showCount = true,\n size = 'md',\n variant = 'red',\n}: NotificationCounterProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: notificationCounterRecipe });\n const styles = recipe({ size, variant });\n const shouldShowCount = size !== 'xs' && showCount;\n\n const counterContent = count > MAX_COUNT ? <Box css={styles.maxElement} /> : count > 0 && count;\n\n return (\n <Flex className=\"NotificationCounter\" data-testid=\"kibble-notification-counter\" css={styles.root}>\n {shouldShowCount && counterContent}\n </Flex>\n );\n};\n"],"names":["notificationCounterSlots","notificationCounterVariantStyles","notificationCounterSizeStyles","notificationCounterRecipe","defineSlotRecipe","MAX_COUNT","NotificationCounter","count","showCount","size","variant","styles","useSlotRecipe","shouldShowCount","counterContent","jsx","Box","Flex"],"mappings":"wMAGMA,EAA2B,CAAC,OAAQ,YAAY,EAGhDC,EAGF,CACF,KAAM,CACJ,KAAM,CACJ,QAAS,oBACT,MAAO,eACT,EACA,WAAY,CACV,QAAS,eAAA,CAEb,EACA,MAAO,CACL,KAAM,CACJ,QAAS,8BACT,MAAO,eACT,EACA,WAAY,CACV,QAAS,eAAA,CAEb,EACA,QAAS,CACP,KAAM,CACJ,QAAS,yBACT,MAAO,MACT,EACA,WAAY,CACV,QAAS,MAAA,CAEb,EACA,IAAK,CACH,KAAM,CACJ,QAAS,6BACT,MAAO,eACT,EACA,WAAY,CACV,QAAS,eAAA,CACX,CAEJ,EAEMC,EAGF,CACF,GAAI,CACF,KAAM,CACJ,SAAU,MACV,OAAQ,EACR,MAAO,CACT,EACA,WAAY,CACV,OAAQ,MACR,MAAO,KAAA,CA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c as m, a as n } from "./factory-
|
|
3
|
+
import { c as m, a as n } from "./factory-BQshv7_b.js";
|
|
4
4
|
const f = o(
|
|
5
5
|
function(t, a) {
|
|
6
6
|
const { align: s, fit: c = "cover", ...i } = t;
|
|
@@ -19,4 +19,4 @@ const f = o(
|
|
|
19
19
|
export {
|
|
20
20
|
g as P
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=picture.component-
|
|
22
|
+
//# sourceMappingURL=picture.component-CKK-SMvr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picture.component-
|
|
1
|
+
{"version":3,"file":"picture.component-CKK-SMvr.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/image/image.js","../../src/components/Picture/picture.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { cx } from '../../utils/cx.js';\nimport { chakra } from '../../styled-system/factory.js';\n\nconst Image = forwardRef(\n function Image2(props, ref) {\n const { align, fit = \"cover\", ...rest } = props;\n return /* @__PURE__ */ jsx(\n chakra.img,\n {\n ref,\n objectFit: fit,\n objectPosition: align,\n className: cx(\"chakra-image\", props.className),\n ...rest\n }\n );\n }\n);\n\nexport { Image };\n","import React from 'react';\nimport { Image, ImageProps } from '@chakra-ui/react/image';\n\nexport interface PictureProps extends ImageProps {\n webpSrc?: string;\n src: string;\n}\n\nexport const Picture = ({ src, webpSrc, ...rest }: PictureProps): React.JSX.Element => {\n return <Image className=\"Picture\" data-testid=\"kibble-picture\" src={src} srcSet={webpSrc} {...rest} />;\n};\n"],"names":["Image","forwardRef","props","ref","align","fit","rest","jsx","chakra","cx","Picture","src","webpSrc"],"mappings":";;;AAOA,MAAMA,IAAQC;AAAA,EACZ,SAAgBC,GAAOC,GAAK;AAC1B,UAAM,EAAE,OAAAC,GAAO,KAAAC,IAAM,SAAS,GAAGC,EAAM,IAAGJ;AAC1C,WAAuBK,gBAAAA,EAAG;AAAA,MACxBC,EAAO;AAAA,MACP;AAAA,QACE,KAAAL;AAAA,QACA,WAAWE;AAAA,QACX,gBAAgBD;AAAA,QAChB,WAAWK,EAAG,gBAAgBP,EAAM,SAAS;AAAA,QAC7C,GAAGI;AAAA,MACX;AAAA,IACK;AAAA,EACL;AACA,GCbaI,IAAU,CAAC,EAAE,KAAAC,GAAK,SAAAC,GAAS,GAAGN,QAClCC,gBAAAA,MAACP,GAAM,EAAA,WAAU,WAAU,eAAY,kBAAiB,KAAAW,GAAU,QAAQC,GAAU,GAAGN,EAAM,CAAA;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const s=require("./jsx-runtime-BjDatQAs.js"),o=require("react"),r=require("./factory-
|
|
2
|
-
//# sourceMappingURL=picture.component-
|
|
1
|
+
"use strict";const s=require("./jsx-runtime-BjDatQAs.js"),o=require("react"),r=require("./factory-a2SJjEvR.js"),u=o.forwardRef(function(t,e){const{align:i,fit:a="cover",...n}=t;return s.jsxRuntimeExports.jsx(r.chakra.img,{ref:e,objectFit:a,objectPosition:i,className:r.cx("chakra-image",t.className),...n})}),m=({src:c,webpSrc:t,...e})=>s.jsxRuntimeExports.jsx(u,{className:"Picture","data-testid":"kibble-picture",src:c,srcSet:t,...e});exports.Picture=m;
|
|
2
|
+
//# sourceMappingURL=picture.component-CR6e0wRG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picture.component-
|
|
1
|
+
{"version":3,"file":"picture.component-CR6e0wRG.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/image/image.js","../../src/components/Picture/picture.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { cx } from '../../utils/cx.js';\nimport { chakra } from '../../styled-system/factory.js';\n\nconst Image = forwardRef(\n function Image2(props, ref) {\n const { align, fit = \"cover\", ...rest } = props;\n return /* @__PURE__ */ jsx(\n chakra.img,\n {\n ref,\n objectFit: fit,\n objectPosition: align,\n className: cx(\"chakra-image\", props.className),\n ...rest\n }\n );\n }\n);\n\nexport { Image };\n","import React from 'react';\nimport { Image, ImageProps } from '@chakra-ui/react/image';\n\nexport interface PictureProps extends ImageProps {\n webpSrc?: string;\n src: string;\n}\n\nexport const Picture = ({ src, webpSrc, ...rest }: PictureProps): React.JSX.Element => {\n return <Image className=\"Picture\" data-testid=\"kibble-picture\" src={src} srcSet={webpSrc} {...rest} />;\n};\n"],"names":["Image","forwardRef","props","ref","align","fit","rest","jsx","chakra","cx","Picture","src","webpSrc"],"mappings":"gHAOMA,EAAQC,EAAU,WACtB,SAAgBC,EAAOC,EAAK,CAC1B,KAAM,CAAE,MAAAC,EAAO,IAAAC,EAAM,QAAS,GAAGC,CAAM,EAAGJ,EAC1C,OAAuBK,EAAG,kBAAA,IACxBC,EAAAA,OAAO,IACP,CACE,IAAAL,EACA,UAAWE,EACX,eAAgBD,EAChB,UAAWK,EAAE,GAAC,eAAgBP,EAAM,SAAS,EAC7C,GAAGI,CACX,CACK,CACL,CACA,ECbaI,EAAU,CAAC,CAAE,IAAAC,EAAK,QAAAC,EAAS,GAAGN,KAClCC,wBAACP,EAAM,CAAA,UAAU,UAAU,cAAY,iBAAiB,IAAAW,EAAU,OAAQC,EAAU,GAAGN,CAAM,CAAA","x_google_ignoreList":[0]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as i } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import k, { forwardRef as a, useId as _ } from "react";
|
|
3
|
-
import { w as A } from "./withFormControl-
|
|
4
|
-
import { c as H } from "./create-slot-recipe-context-
|
|
5
|
-
import { c as O, f as p, a as m, i as V, j as $, k as F, n as L } from "./use-locale-context-
|
|
6
|
-
import { u as I } from "./use-field-context-
|
|
7
|
-
import {
|
|
8
|
-
import { m as q, c as E } from "./index-
|
|
3
|
+
import { w as A } from "./withFormControl-C3IIthrA.js";
|
|
4
|
+
import { c as H } from "./create-slot-recipe-context-CrlT_nGQ.js";
|
|
5
|
+
import { c as O, f as p, a as m, i as V, j as $, k as F, n as L } from "./use-locale-context-CGfkkp7X.js";
|
|
6
|
+
import { u as I } from "./use-field-context-C1iiT3PJ.js";
|
|
7
|
+
import { a2 as u } from "./index-DtPX2rUg.js";
|
|
8
|
+
import { m as q, c as E } from "./index-Cvv80m_N.js";
|
|
9
9
|
const [f, d] = O({
|
|
10
10
|
name: "PinInputContext",
|
|
11
11
|
hookName: "usePinInputContext",
|
|
@@ -142,4 +142,4 @@ export {
|
|
|
142
142
|
Z as W,
|
|
143
143
|
nn as p
|
|
144
144
|
};
|
|
145
|
-
//# sourceMappingURL=pinInput.types-
|
|
145
|
+
//# sourceMappingURL=pinInput.types-BSW6UBEv.js.map
|