@televet/kibble-ui 4.0.1 → 5.0.0-beta.hotfix.1
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-BKSqs9qY.js +2 -0
- package/dist/chunks/alert.types-BKSqs9qY.js.map +1 -0
- package/dist/chunks/alert.types-C_ygg7fh.js +141 -0
- package/dist/chunks/alert.types-C_ygg7fh.js.map +1 -0
- package/dist/chunks/anatomy-BkGk10kB.js +2 -0
- package/dist/chunks/anatomy-BkGk10kB.js.map +1 -0
- package/dist/chunks/anatomy-zd4ecEFD.js +280 -0
- package/dist/chunks/anatomy-zd4ecEFD.js.map +1 -0
- package/dist/chunks/avatar.component-B1HGlwVW.js +2 -0
- package/dist/chunks/avatar.component-B1HGlwVW.js.map +1 -0
- package/dist/chunks/avatar.component-C-365mx3.js +404 -0
- package/dist/chunks/avatar.component-C-365mx3.js.map +1 -0
- package/dist/chunks/avatar.records-CxLCvZfG.js +2 -0
- package/dist/chunks/avatar.records-CxLCvZfG.js.map +1 -0
- package/dist/chunks/{index-Cv06PsSJ.js → avatar.records-EoZmO3VR.js} +21 -13
- package/dist/chunks/avatar.records-EoZmO3VR.js.map +1 -0
- package/dist/chunks/avatarGroup.component-B-ZOhj7i.js +75 -0
- package/dist/chunks/avatarGroup.component-B-ZOhj7i.js.map +1 -0
- package/dist/chunks/avatarGroup.component-CTBfGiSm.js +2 -0
- package/dist/chunks/avatarGroup.component-CTBfGiSm.js.map +1 -0
- package/dist/chunks/button.component-BO6oee_V.js +69 -0
- package/dist/chunks/button.component-BO6oee_V.js.map +1 -0
- package/dist/chunks/button.component-DjdgBXDC.js +2 -0
- package/dist/chunks/button.component-DjdgBXDC.js.map +1 -0
- package/dist/chunks/button.recipe-Bb0lptGi.js +613 -0
- package/dist/chunks/button.recipe-Bb0lptGi.js.map +1 -0
- package/dist/chunks/button.recipe-flk0XJTS.js +2 -0
- package/dist/chunks/button.recipe-flk0XJTS.js.map +1 -0
- package/dist/chunks/button.types-3lHElsln.js +2 -0
- package/dist/chunks/button.types-3lHElsln.js.map +1 -0
- package/dist/chunks/{button.types-BKXZNvN1.js → button.types-C9PpvmYR.js} +14 -9
- package/dist/chunks/button.types-C9PpvmYR.js.map +1 -0
- package/dist/chunks/buttonGroup.component-CowJsbr7.js +2 -0
- package/dist/chunks/buttonGroup.component-CowJsbr7.js.map +1 -0
- package/dist/chunks/buttonGroup.component-DUK2FgFn.js +70 -0
- package/dist/chunks/buttonGroup.component-DUK2FgFn.js.map +1 -0
- package/dist/chunks/calendar.component-CHIhplfO.js +18 -0
- package/dist/chunks/calendar.component-CHIhplfO.js.map +1 -0
- package/dist/chunks/calendar.component-tOoK1NrU.js +2 -0
- package/dist/chunks/calendar.component-tOoK1NrU.js.map +1 -0
- package/dist/chunks/card.component-B1AznjWF.js +55 -0
- package/dist/chunks/card.component-B1AznjWF.js.map +1 -0
- package/dist/chunks/card.component-BmBiYbMV.js +2 -0
- package/dist/chunks/card.component-BmBiYbMV.js.map +1 -0
- package/dist/chunks/center-Dmlzv1BW.js +20 -0
- package/dist/chunks/center-Dmlzv1BW.js.map +1 -0
- package/dist/chunks/center-kk61ArhQ.js +2 -0
- package/dist/chunks/center-kk61ArhQ.js.map +1 -0
- package/dist/chunks/characterCounter.component-CKDigkoD.js +2 -0
- package/dist/chunks/characterCounter.component-CKDigkoD.js.map +1 -0
- package/dist/chunks/characterCounter.component-Ch3P3GqC.js +82 -0
- package/dist/chunks/characterCounter.component-Ch3P3GqC.js.map +1 -0
- package/dist/chunks/{checkbox.anatomy-DC8fJdkY.js → checkbox.anatomy-BzZ0IkUF.js} +22 -22
- package/dist/chunks/{checkbox.anatomy-DC8fJdkY.js.map → checkbox.anatomy-BzZ0IkUF.js.map} +1 -1
- package/dist/chunks/{checkbox.anatomy-BNdLT4Qf.js → checkbox.anatomy-DM39E2Q9.js} +2 -2
- package/dist/chunks/{checkbox.anatomy-BNdLT4Qf.js.map → checkbox.anatomy-DM39E2Q9.js.map} +1 -1
- package/dist/chunks/checkbox.component-CiA3Z1zR.js +2 -0
- package/dist/chunks/{checkbox.component-DNOkXggb.js.map → checkbox.component-CiA3Z1zR.js.map} +1 -1
- package/dist/chunks/checkbox.component-DE35wBj-.js +269 -0
- package/dist/chunks/{checkbox.component-Dhjcu89D.js.map → checkbox.component-DE35wBj-.js.map} +1 -1
- package/dist/chunks/checkboxGroup.component-BGBd-roJ.js +2 -0
- package/dist/chunks/checkboxGroup.component-BGBd-roJ.js.map +1 -0
- package/dist/chunks/checkboxGroup.component-CYwGlktu.js +53 -0
- package/dist/chunks/checkboxGroup.component-CYwGlktu.js.map +1 -0
- package/dist/chunks/{config-B3QABP1-.js → config-Djkl1N81.js} +4 -4
- package/dist/chunks/{config-B3QABP1-.js.map → config-Djkl1N81.js.map} +1 -1
- package/dist/chunks/conversationCard.component-BrDGshOG.js +2 -0
- package/dist/chunks/conversationCard.component-BrDGshOG.js.map +1 -0
- package/dist/chunks/conversationCard.component-CMdqD3yN.js +331 -0
- package/dist/chunks/conversationCard.component-CMdqD3yN.js.map +1 -0
- package/dist/chunks/{create-recipe-context-CrEKmpj8.js → create-recipe-context-DfQ-MTih.js} +9 -9
- package/dist/chunks/{create-recipe-context-CrEKmpj8.js.map → create-recipe-context-DfQ-MTih.js.map} +1 -1
- package/dist/chunks/create-slot-recipe-context-D_FXDJGp.js +104 -0
- package/dist/chunks/create-slot-recipe-context-D_FXDJGp.js.map +1 -0
- package/dist/chunks/create-slot-recipe-context-HXE1VazG.js +2 -0
- package/dist/chunks/create-slot-recipe-context-HXE1VazG.js.map +1 -0
- package/dist/chunks/datePicker.component-C6cD1_HR.js +2 -0
- package/dist/chunks/datePicker.component-C6cD1_HR.js.map +1 -0
- package/dist/chunks/datePicker.component-eHU7IZgC.js +166 -0
- package/dist/chunks/datePicker.component-eHU7IZgC.js.map +1 -0
- package/dist/chunks/datePicker.provider-BWHE-9FA.js +3009 -0
- package/dist/chunks/datePicker.provider-BWHE-9FA.js.map +1 -0
- package/dist/chunks/datePicker.provider-DgarjPPd.js +15 -0
- package/dist/chunks/datePicker.provider-DgarjPPd.js.map +1 -0
- package/dist/chunks/dateTimePicker.component-Byjxg2lJ.js +317 -0
- package/dist/chunks/dateTimePicker.component-Byjxg2lJ.js.map +1 -0
- package/dist/chunks/dateTimePicker.component-REz9iX4S.js +2 -0
- package/dist/chunks/dateTimePicker.component-REz9iX4S.js.map +1 -0
- package/dist/chunks/{dialog-C51vaoYf.js → dialog-B9jifvV4.js} +37 -36
- package/dist/chunks/{dialog-C51vaoYf.js.map → dialog-B9jifvV4.js.map} +1 -1
- package/dist/chunks/dialog-CZFwddWp.js +2 -0
- package/dist/chunks/{dialog-BPhjKQkb.js.map → dialog-CZFwddWp.js.map} +1 -1
- package/dist/chunks/divider.component-BX3zyB7O.js +2 -0
- package/dist/chunks/divider.component-BX3zyB7O.js.map +1 -0
- package/dist/chunks/divider.component-CFOh4Nw3.js +45 -0
- package/dist/chunks/divider.component-CFOh4Nw3.js.map +1 -0
- package/dist/chunks/divider.types-6MEkMNbx.js +7 -0
- package/dist/chunks/divider.types-6MEkMNbx.js.map +1 -0
- package/dist/chunks/divider.types-DBNcs0IR.js +2 -0
- package/dist/chunks/divider.types-DBNcs0IR.js.map +1 -0
- package/dist/chunks/{empty-BU2EAux9.js → empty-DNH84khx.js} +3 -3
- package/dist/chunks/{empty-BU2EAux9.js.map → empty-DNH84khx.js.map} +1 -1
- package/dist/chunks/field.anatomy-Bhj7Mlr7.js +2 -0
- package/dist/chunks/field.anatomy-Bhj7Mlr7.js.map +1 -0
- package/dist/chunks/field.anatomy-C37GEr2p.js +16 -0
- package/dist/chunks/field.anatomy-C37GEr2p.js.map +1 -0
- package/dist/chunks/{format-BRt-TIiQ.js → format-CK7Imh-5.js} +2 -2
- package/dist/chunks/{format-BRt-TIiQ.js.map → format-CK7Imh-5.js.map} +1 -1
- package/dist/chunks/{format-DgHM6wFr.js → format-CqTHHSak.js} +3 -1
- package/dist/chunks/{format-DgHM6wFr.js.map → format-CqTHHSak.js.map} +1 -1
- package/dist/chunks/grid-item-BmCSQ38y.js +78 -0
- package/dist/chunks/grid-item-BmCSQ38y.js.map +1 -0
- package/dist/chunks/grid-item-CH3dbZHL.js +2 -0
- package/dist/chunks/grid-item-CH3dbZHL.js.map +1 -0
- package/dist/chunks/heading.component-7ikcgDco.js +18 -0
- package/dist/chunks/heading.component-7ikcgDco.js.map +1 -0
- package/dist/chunks/heading.component-DMAQO_-m.js +2 -0
- package/dist/chunks/heading.component-DMAQO_-m.js.map +1 -0
- package/dist/chunks/{icon-button-5UcFiA_W.js → icon-button-CcZMCNUJ.js} +3 -3
- package/dist/chunks/{icon-button-5UcFiA_W.js.map → icon-button-CcZMCNUJ.js.map} +1 -1
- package/dist/chunks/icon.component-B1hr5lLa.js +2 -0
- package/dist/chunks/icon.component-B1hr5lLa.js.map +1 -0
- package/dist/chunks/icon.component-PV_nHBId.js +32 -0
- package/dist/chunks/icon.component-PV_nHBId.js.map +1 -0
- package/dist/chunks/{icons-DQ5FafZQ.js → icons-CoSqruIn.js} +5 -5
- package/dist/chunks/{icons-DQ5FafZQ.js.map → icons-CoSqruIn.js.map} +1 -1
- package/dist/chunks/index-B-OGBT0w.js +2 -0
- package/dist/chunks/{index-BEfEzWJx.js.map → index-B-OGBT0w.js.map} +1 -1
- package/dist/chunks/index-B3xJnxjd.js +371 -0
- package/dist/chunks/index-B3xJnxjd.js.map +1 -0
- package/dist/chunks/index-BFUdiDZp.js +2 -0
- package/dist/chunks/{index-2glJ2faJ.js.map → index-BFUdiDZp.js.map} +1 -1
- package/dist/chunks/{index-CVJXrcei.js → index-BGd_2-DY.js} +29 -27
- package/dist/chunks/{index-CVJXrcei.js.map → index-BGd_2-DY.js.map} +1 -1
- package/dist/chunks/index-BXv9lkZC.js +4 -0
- package/dist/chunks/index-BXv9lkZC.js.map +1 -0
- package/dist/chunks/index-BbZjRFzg.js +265 -0
- package/dist/chunks/index-BbZjRFzg.js.map +1 -0
- package/dist/chunks/{index-CYXurbh4.js → index-BgFImxxe.js} +27 -25
- package/dist/chunks/{index-CYXurbh4.js.map → index-BgFImxxe.js.map} +1 -1
- package/dist/chunks/index-BoulS5Zg.js +2 -0
- package/dist/chunks/index-BoulS5Zg.js.map +1 -0
- package/dist/chunks/index-BrJtqTzN.js +4115 -0
- package/dist/chunks/index-BrJtqTzN.js.map +1 -0
- package/dist/chunks/index-C9UYIjEB.js +1584 -0
- package/dist/chunks/index-C9UYIjEB.js.map +1 -0
- package/dist/chunks/index-CQURjLlA.js +3 -0
- package/dist/chunks/index-CQURjLlA.js.map +1 -0
- package/dist/chunks/{index-BXJJKHzT.js → index-CbVKVxMW.js} +54 -52
- package/dist/chunks/{index-BXJJKHzT.js.map → index-CbVKVxMW.js.map} +1 -1
- package/dist/chunks/{index-CWhDtS-n.js → index-Cxrrsmf-.js} +17 -16
- package/dist/chunks/{index-CWhDtS-n.js.map → index-Cxrrsmf-.js.map} +1 -1
- package/dist/chunks/{index-BZBgTxer.js → index-D0DKQnEK.js} +11 -11
- package/dist/chunks/{index-BZBgTxer.js.map → index-D0DKQnEK.js.map} +1 -1
- package/dist/chunks/index-D1RhzPVz.js +984 -0
- package/dist/chunks/index-D1RhzPVz.js.map +1 -0
- package/dist/chunks/index-D3Q0mQNf.js +325 -0
- package/dist/chunks/index-D3Q0mQNf.js.map +1 -0
- package/dist/chunks/index-D6HBfqAu.js +2 -0
- package/dist/chunks/index-D6HBfqAu.js.map +1 -0
- package/dist/chunks/index-D6c4fMjg.js +2 -0
- package/dist/chunks/index-D6c4fMjg.js.map +1 -0
- package/dist/chunks/{index-CfqoBQoP.js → index-D7QT9KIZ.js} +9 -9
- package/dist/chunks/{index-CfqoBQoP.js.map → index-D7QT9KIZ.js.map} +1 -1
- package/dist/chunks/{index-WYcfOUFA.js → index-DIszpWqO.js} +2 -2
- package/dist/chunks/{index-WYcfOUFA.js.map → index-DIszpWqO.js.map} +1 -1
- package/dist/chunks/{index-D0HCo_Ly.js → index-DLe40do7.js} +2 -2
- package/dist/chunks/{index-D0HCo_Ly.js.map → index-DLe40do7.js.map} +1 -1
- package/dist/chunks/index-DS4KlAkI.js +371 -0
- package/dist/chunks/index-DS4KlAkI.js.map +1 -0
- package/dist/chunks/{index-nNZWP0FQ.js → index-DTVestnf.js} +2 -2
- package/dist/chunks/{index-nNZWP0FQ.js.map → index-DTVestnf.js.map} +1 -1
- package/dist/chunks/index-DVyODQn6.js +8 -0
- package/dist/chunks/index-DVyODQn6.js.map +1 -0
- package/dist/chunks/index-D_vndwae.js +3 -0
- package/dist/chunks/index-D_vndwae.js.map +1 -0
- package/dist/chunks/index-DfzXSlq1.js +2477 -0
- package/dist/chunks/index-DfzXSlq1.js.map +1 -0
- package/dist/chunks/{index-BhSvtzbY.js → index-QVc_GVoE.js} +13 -13
- package/dist/chunks/{index-BhSvtzbY.js.map → index-QVc_GVoE.js.map} +1 -1
- package/dist/chunks/index-Ts8g8jZd.js +2 -0
- package/dist/chunks/index-Ts8g8jZd.js.map +1 -0
- package/dist/chunks/index-_913FPya.js +2 -0
- package/dist/chunks/{index-A_vmTNU7.js.map → index-_913FPya.js.map} +1 -1
- package/dist/chunks/index-fHSGm2nC.js +1044 -0
- package/dist/chunks/index-fHSGm2nC.js.map +1 -0
- package/dist/chunks/{index-eNFIsSpE.js → index-kpOEHtZZ.js} +2 -2
- package/dist/chunks/{index-eNFIsSpE.js.map → index-kpOEHtZZ.js.map} +1 -1
- package/dist/chunks/index-rSq6Bry6.js +2 -0
- package/dist/chunks/{index-DAI6_P9H.js.map → index-rSq6Bry6.js.map} +1 -1
- package/dist/chunks/{index-BhPrz8Zu.js → index-wV4hG2vI.js} +19 -19
- package/dist/chunks/{index-BhPrz8Zu.js.map → index-wV4hG2vI.js.map} +1 -1
- package/dist/chunks/index-yh2QitBe.js +2 -0
- package/dist/chunks/index-yh2QitBe.js.map +1 -0
- package/dist/chunks/input-group-CFelIL63.js +78 -0
- package/dist/chunks/input-group-CFelIL63.js.map +1 -0
- package/dist/chunks/input-group-DUdSDk4o.js +2 -0
- package/dist/chunks/input-group-DUdSDk4o.js.map +1 -0
- package/dist/chunks/isToday-BgNkHh5t.js +2 -0
- package/dist/chunks/isToday-BgNkHh5t.js.map +1 -0
- package/dist/chunks/isToday-iCYsPDMT.js +23 -0
- package/dist/chunks/isToday-iCYsPDMT.js.map +1 -0
- package/dist/chunks/link.component--URNKuK2.js +44 -0
- package/dist/chunks/link.component--URNKuK2.js.map +1 -0
- package/dist/chunks/link.component-_YXG8MDq.js +2 -0
- package/dist/chunks/link.component-_YXG8MDq.js.map +1 -0
- package/dist/chunks/{list-D22V_L58.js → list-DTRn3TmT.js} +2 -2
- package/dist/chunks/{list-D22V_L58.js.map → list-DTRn3TmT.js.map} +1 -1
- package/dist/chunks/{list-DwRM9eA_.js → list-v83ZN2MC.js} +2 -2
- package/dist/chunks/{list-DwRM9eA_.js.map → list-v83ZN2MC.js.map} +1 -1
- package/dist/chunks/logo.types-88a31xCx.js +2 -0
- package/dist/chunks/logo.types-88a31xCx.js.map +1 -0
- package/dist/chunks/logo.types-C5GwpHjM.js +51 -0
- package/dist/chunks/logo.types-C5GwpHjM.js.map +1 -0
- package/dist/chunks/menu.component-D4-4xRDj.js +2 -0
- package/dist/chunks/menu.component-D4-4xRDj.js.map +1 -0
- package/dist/chunks/menu.component-DwTen8Uv.js +704 -0
- package/dist/chunks/menu.component-DwTen8Uv.js.map +1 -0
- package/dist/chunks/modal.types-74os4Bqi.js +2 -0
- package/dist/chunks/modal.types-74os4Bqi.js.map +1 -0
- package/dist/chunks/modal.types-B0rK6xJy.js +115 -0
- package/dist/chunks/modal.types-B0rK6xJy.js.map +1 -0
- package/dist/chunks/{notificationCounter.component-Lu4_Owvr.js → notificationCounter.component-BexkISUl.js} +37 -18
- package/dist/chunks/notificationCounter.component-BexkISUl.js.map +1 -0
- package/dist/chunks/notificationCounter.component-DJpUXeXm.js +2 -0
- package/dist/chunks/notificationCounter.component-DJpUXeXm.js.map +1 -0
- package/dist/chunks/numberInput.component-DIABzNV6.js +2 -0
- package/dist/chunks/numberInput.component-DIABzNV6.js.map +1 -0
- package/dist/chunks/numberInput.component-RCwUUzmH.js +227 -0
- package/dist/chunks/numberInput.component-RCwUUzmH.js.map +1 -0
- package/dist/chunks/picture.component-BA2hgdZy.js +2 -0
- package/dist/chunks/picture.component-BA2hgdZy.js.map +1 -0
- package/dist/chunks/picture.component-DzdHIFN_.js +28 -0
- package/dist/chunks/picture.component-DzdHIFN_.js.map +1 -0
- package/dist/chunks/pinInput.types-BCzsoF9r.js +2 -0
- package/dist/chunks/{pinInput.types-Cqm1Px5l.js.map → pinInput.types-BCzsoF9r.js.map} +1 -1
- package/dist/chunks/pinInput.types-CcaAN6P2.js +155 -0
- package/dist/chunks/{pinInput.types-CcN0aX_i.js.map → pinInput.types-CcaAN6P2.js.map} +1 -1
- package/dist/chunks/popover-C7aj8Iwj.js +2 -0
- package/dist/chunks/popover-C7aj8Iwj.js.map +1 -0
- package/dist/chunks/popover-pd70xkY_.js +111 -0
- package/dist/chunks/popover-pd70xkY_.js.map +1 -0
- package/dist/chunks/popover-root-provider-CZDbUJ2K.js +2 -0
- package/dist/chunks/{popover-root-provider-ZB5BcrXn.js.map → popover-root-provider-CZDbUJ2K.js.map} +1 -1
- package/dist/chunks/popover-root-provider-DR0Iuda1.js +44 -0
- package/dist/chunks/{popover-root-provider-CkW1eCBQ.js.map → popover-root-provider-DR0Iuda1.js.map} +1 -1
- package/dist/chunks/popover.component-BBp_5m8e.js +2 -0
- package/dist/chunks/popover.component-BBp_5m8e.js.map +1 -0
- package/dist/chunks/popover.component-DEOUdSu3.js +220 -0
- package/dist/chunks/popover.component-DEOUdSu3.js.map +1 -0
- package/dist/chunks/popover.recipe-B9bkpDfc.js +126 -0
- package/dist/chunks/popover.recipe-B9bkpDfc.js.map +1 -0
- package/dist/chunks/popover.recipe-Czy8Aeft.js +2 -0
- package/dist/chunks/popover.recipe-Czy8Aeft.js.map +1 -0
- package/dist/chunks/popover.types-CQJj3uOX.js +7 -0
- package/dist/chunks/popover.types-CQJj3uOX.js.map +1 -0
- package/dist/chunks/popover.types-ChA9ccQ2.js +2 -0
- package/dist/chunks/popover.types-ChA9ccQ2.js.map +1 -0
- package/dist/chunks/progress-value-text-CFVhPKYk.js +2 -0
- package/dist/chunks/progress-value-text-CFVhPKYk.js.map +1 -0
- package/dist/chunks/progress-value-text-DZkUF2cO.js +58 -0
- package/dist/chunks/progress-value-text-DZkUF2cO.js.map +1 -0
- package/dist/chunks/radioGroup.types-C7A8mLMz.js +2 -0
- package/dist/chunks/radioGroup.types-C7A8mLMz.js.map +1 -0
- package/dist/chunks/radioGroup.types-DJ68ERdO.js +228 -0
- package/dist/chunks/radioGroup.types-DJ68ERdO.js.map +1 -0
- package/dist/chunks/radiomark-Cj0NEJeE.js +2 -0
- package/dist/chunks/radiomark-Cj0NEJeE.js.map +1 -0
- package/dist/chunks/radiomark-DdwVpBDT.js +22 -0
- package/dist/chunks/radiomark-DdwVpBDT.js.map +1 -0
- package/dist/chunks/radiomark.component-D_7wT5VA.js +11 -0
- package/dist/chunks/radiomark.component-D_7wT5VA.js.map +1 -0
- package/dist/chunks/radiomark.component-YJNr68s7.js +2 -0
- package/dist/chunks/radiomark.component-YJNr68s7.js.map +1 -0
- package/dist/chunks/rating-group-CfwdAW9a.js +133 -0
- package/dist/chunks/rating-group-CfwdAW9a.js.map +1 -0
- package/dist/chunks/rating-group-D8QA23q6.js +2 -0
- package/dist/chunks/rating-group-D8QA23q6.js.map +1 -0
- package/dist/chunks/rating.component-BsuGbcxP.js +2 -0
- package/dist/chunks/rating.component-BsuGbcxP.js.map +1 -0
- package/dist/chunks/rating.component-ChzcvUl6.js +70 -0
- package/dist/chunks/rating.component-ChzcvUl6.js.map +1 -0
- package/dist/chunks/ratingDots.component-CVjSZ9JJ.js +2 -0
- package/dist/chunks/ratingDots.component-CVjSZ9JJ.js.map +1 -0
- package/dist/chunks/ratingDots.component-D9WQGVcj.js +147 -0
- package/dist/chunks/ratingDots.component-D9WQGVcj.js.map +1 -0
- package/dist/chunks/{render-strategy-CfHUEDVm.js → render-strategy-kPh1pd2U.js} +2 -2
- package/dist/chunks/{render-strategy-CfHUEDVm.js.map → render-strategy-kPh1pd2U.js.map} +1 -1
- package/dist/chunks/{render-strategy-Dr73HbQf.js → render-strategy-munDZLwL.js} +2 -2
- package/dist/chunks/{render-strategy-Dr73HbQf.js.map → render-strategy-munDZLwL.js.map} +1 -1
- package/dist/chunks/select.component-B4mAPqzN.js +1099 -0
- package/dist/chunks/select.component-B4mAPqzN.js.map +1 -0
- package/dist/chunks/select.component-CCNxMGvb.js +2 -0
- package/dist/chunks/select.component-CCNxMGvb.js.map +1 -0
- package/dist/chunks/{sortableList.component-vxiA7bvr.js → sortableList.component-BlwtnxVj.js} +3 -3
- package/dist/chunks/{sortableList.component-vxiA7bvr.js.map → sortableList.component-BlwtnxVj.js.map} +1 -1
- package/dist/chunks/{sortableList.component-i4dJ9oHN.js → sortableList.component-XfURY7C2.js} +384 -379
- package/dist/chunks/{sortableList.component-i4dJ9oHN.js.map → sortableList.component-XfURY7C2.js.map} +1 -1
- package/dist/chunks/spinner-B9ytCKVs.js +8 -0
- package/dist/chunks/{spinner-C31ZWQmA.js.map → spinner-B9ytCKVs.js.map} +1 -1
- package/dist/chunks/{spinner.component-DPYj17HK.js → spinner.component-B3dkvoO9.js} +53 -45
- package/dist/chunks/spinner.component-B3dkvoO9.js.map +1 -0
- package/dist/chunks/spinner.component-DuW1_IWM.js +2 -0
- package/dist/chunks/spinner.component-DuW1_IWM.js.map +1 -0
- package/dist/chunks/styledAvatar.types-CcP-Vl9c.js +2 -0
- package/dist/chunks/styledAvatar.types-CcP-Vl9c.js.map +1 -0
- package/dist/chunks/styledAvatar.types-cR6PNPxA.js +69 -0
- package/dist/chunks/styledAvatar.types-cR6PNPxA.js.map +1 -0
- package/dist/chunks/swatch.types-AZLB8OWG.js +2 -0
- package/dist/chunks/swatch.types-AZLB8OWG.js.map +1 -0
- package/dist/chunks/{swatch.types-CXlghcLw.js → swatch.types-CkrkMi11.js} +21 -20
- package/dist/chunks/swatch.types-CkrkMi11.js.map +1 -0
- package/dist/chunks/switch.component-CgzCLoTB.js +2 -0
- package/dist/chunks/{switch.component-Cke7O8gk.js.map → switch.component-CgzCLoTB.js.map} +1 -1
- package/dist/chunks/switch.component-CpV7mnhR.js +155 -0
- package/dist/chunks/{switch.component-C88jBbo_.js.map → switch.component-CpV7mnhR.js.map} +1 -1
- package/dist/chunks/{tab.types-DCkus0y2.js → tab.types-DaJfFBvr.js} +136 -117
- package/dist/chunks/{tab.types-DCkus0y2.js.map → tab.types-DaJfFBvr.js.map} +1 -1
- package/dist/chunks/tab.types-DwPEP_5N.js +2 -0
- package/dist/chunks/{tab.types-DpmXyw5C.js.map → tab.types-DwPEP_5N.js.map} +1 -1
- package/dist/chunks/tag.component-B7V76XfM.js +84 -0
- package/dist/chunks/tag.component-B7V76XfM.js.map +1 -0
- package/dist/chunks/tag.component-C98Wf07v.js +2 -0
- package/dist/chunks/tag.component-C98Wf07v.js.map +1 -0
- package/dist/chunks/tagBlock.component-BGEvRu81.js +2 -0
- package/dist/chunks/tagBlock.component-BGEvRu81.js.map +1 -0
- package/dist/chunks/tagBlock.component-Cor6eakc.js +170 -0
- package/dist/chunks/tagBlock.component-Cor6eakc.js.map +1 -0
- package/dist/chunks/text.component-CdTyTFds.js +12 -0
- package/dist/chunks/text.component-CdTyTFds.js.map +1 -0
- package/dist/chunks/text.component-CeioUl0G.js +2 -0
- package/dist/chunks/text.component-CeioUl0G.js.map +1 -0
- package/dist/chunks/textInput.component-BC0Hi8R_.js +108 -0
- package/dist/chunks/textInput.component-BC0Hi8R_.js.map +1 -0
- package/dist/chunks/textInput.component-C1vwy6pL.js +2 -0
- package/dist/chunks/textInput.component-C1vwy6pL.js.map +1 -0
- package/dist/chunks/textarea.component-D15hA9Jb.js +2 -0
- package/dist/chunks/{textarea.component-Dk2IMKkr.js.map → textarea.component-D15hA9Jb.js.map} +1 -1
- package/dist/chunks/textarea.component-axjxiv82.js +96 -0
- package/dist/chunks/{textarea.component-BYexywy1.js.map → textarea.component-axjxiv82.js.map} +1 -1
- package/dist/chunks/{theme.provider-w_I9S10D.js → theme.provider-BD7qyu-B.js} +1405 -1339
- package/dist/chunks/theme.provider-BD7qyu-B.js.map +1 -0
- package/dist/chunks/theme.provider-DFwAy7tr.js +28 -0
- package/dist/chunks/theme.provider-DFwAy7tr.js.map +1 -0
- package/dist/chunks/timePicker.component-Cz2XxVL6.js +2 -0
- package/dist/chunks/timePicker.component-Cz2XxVL6.js.map +1 -0
- package/dist/chunks/timePicker.component-u34pHrzr.js +220 -0
- package/dist/chunks/timePicker.component-u34pHrzr.js.map +1 -0
- package/dist/chunks/timeRange.component-BiA1VWQ8.js +19 -0
- package/dist/chunks/timeRange.component-BiA1VWQ8.js.map +1 -0
- package/dist/chunks/timeRange.component-tU_nCTmS.js +2 -0
- package/dist/chunks/timeRange.component-tU_nCTmS.js.map +1 -0
- package/dist/chunks/timestamp.component-DBmc7D23.js +36 -0
- package/dist/chunks/timestamp.component-DBmc7D23.js.map +1 -0
- package/dist/chunks/timestamp.component-DYZHgaas.js +2 -0
- package/dist/chunks/timestamp.component-DYZHgaas.js.map +1 -0
- package/dist/chunks/toaster.records-CDSkoMuU.js +2 -0
- package/dist/chunks/{toaster.records-eCXbM85Z.js.map → toaster.records-CDSkoMuU.js.map} +1 -1
- package/dist/chunks/{toaster.records-oryzm5Go.js → toaster.records-Cb3hbtuY.js} +103 -102
- package/dist/chunks/{toaster.records-oryzm5Go.js.map → toaster.records-Cb3hbtuY.js.map} +1 -1
- package/dist/chunks/tooltip.component-BkFDi5yK.js +2 -0
- package/dist/chunks/{tooltip.component-CATpCSkf.js.map → tooltip.component-BkFDi5yK.js.map} +1 -1
- package/dist/chunks/{tooltip.component-mjdP7nPN.js → tooltip.component-C_NS-AoH.js} +126 -103
- package/dist/chunks/{tooltip.component-mjdP7nPN.js.map → tooltip.component-C_NS-AoH.js.map} +1 -1
- package/dist/chunks/{typography.records-CpYV1kns.js → typography.records-BEd2lI_g.js} +10 -22
- package/dist/chunks/typography.records-BEd2lI_g.js.map +1 -0
- package/dist/chunks/typography.records-Cg_lT1Z3.js +2 -0
- package/dist/chunks/typography.records-Cg_lT1Z3.js.map +1 -0
- package/dist/chunks/{use-field-context-BTxME29X.js → use-field-context-Cm29IQ7H.js} +2 -2
- package/dist/chunks/{use-field-context-BTxME29X.js.map → use-field-context-Cm29IQ7H.js.map} +1 -1
- package/dist/chunks/{use-field-context-RQeEcNpb.js → use-field-context-DrC9mrDd.js} +2 -2
- package/dist/chunks/{use-field-context-RQeEcNpb.js.map → use-field-context-DrC9mrDd.js.map} +1 -1
- package/dist/chunks/use-locale-context-Bw4Gg9Z0.js +738 -0
- package/dist/chunks/use-locale-context-Bw4Gg9Z0.js.map +1 -0
- package/dist/chunks/use-locale-context-ym21RUxU.js +22 -0
- package/dist/chunks/use-locale-context-ym21RUxU.js.map +1 -0
- package/dist/chunks/useIconTextSizeMap-BK-pUrQv.js.map +1 -1
- package/dist/chunks/useIconTextSizeMap-BXmABb54.js.map +1 -1
- package/dist/chunks/withFormControl-DePFf9SY.js +367 -0
- package/dist/chunks/withFormControl-DePFf9SY.js.map +1 -0
- package/dist/chunks/withFormControl-wZA87Sd4.js +2 -0
- package/dist/chunks/withFormControl-wZA87Sd4.js.map +1 -0
- package/dist/chunks/withTruncation-DE3FFPE7.js +2 -0
- package/dist/chunks/withTruncation-DE3FFPE7.js.map +1 -0
- package/dist/chunks/withTruncation-DTCfQ2yk.js +92 -0
- package/dist/chunks/withTruncation-DTCfQ2yk.js.map +1 -0
- package/dist/chunks/{wrap-CRNL4bE6.js → wrap-Cu5ZEseD.js} +2 -2
- package/dist/chunks/{wrap-CRNL4bE6.js.map → wrap-Cu5ZEseD.js.map} +1 -1
- package/dist/cjs/chakra/index.cjs +2 -2
- package/dist/cjs/chakra/index.cjs.map +1 -1
- package/dist/cjs/components/Alert/index.cjs +1 -1
- package/dist/cjs/components/Avatar/index.cjs +1 -1
- package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
- package/dist/cjs/components/Button/index.cjs +1 -1
- package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
- package/dist/cjs/components/Calendar/index.cjs +2 -0
- package/dist/cjs/components/Calendar/index.cjs.map +1 -0
- 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/DateTimePicker/index.cjs +2 -0
- package/dist/cjs/components/DateTimePicker/index.cjs.map +1 -0
- package/dist/cjs/components/Divider/index.cjs +1 -1
- package/dist/cjs/components/Heading/index.cjs +1 -1
- package/dist/cjs/components/Icon/generated/index.cjs +1 -1
- package/dist/cjs/components/Icon/generated/index.cjs.map +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/NumberInput/index.cjs +2 -0
- package/dist/cjs/components/NumberInput/index.cjs.map +1 -0
- 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/Progress/index.cjs +2 -0
- package/dist/cjs/components/Progress/index.cjs.map +1 -0
- package/dist/cjs/components/RadioGroup/index.cjs +1 -1
- package/dist/cjs/components/Radiomark/index.cjs +2 -0
- package/dist/cjs/components/Radiomark/index.cjs.map +1 -0
- package/dist/cjs/components/Rating/index.cjs +2 -0
- package/dist/cjs/components/Rating/index.cjs.map +1 -0
- 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/Toast/index.cjs.map +1 -1
- package/dist/cjs/components/Tooltip/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/hooks/useBreakpoint/index.cjs.map +1 -1
- package/dist/cjs/hooks/useColorMode/index.cjs.map +1 -1
- package/dist/cjs/hooks/useColorModeValue/index.cjs.map +1 -1
- package/dist/cjs/hooks/useDeviceType/index.cjs.map +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 +1682 -1997
- package/dist/esm/chakra/index.js.map +1 -1
- package/dist/esm/components/Alert/index.js +1 -1
- package/dist/esm/components/Avatar/index.js +1 -1
- package/dist/esm/components/AvatarGroup/index.js +1 -1
- package/dist/esm/components/Button/index.js +2 -2
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/Calendar/index.js +5 -0
- package/dist/esm/components/Calendar/index.js.map +1 -0
- 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 +4 -3
- package/dist/esm/components/DatePicker/index.js.map +1 -1
- package/dist/esm/components/DateTimePicker/index.js +7 -0
- package/dist/esm/components/DateTimePicker/index.js.map +1 -0
- package/dist/esm/components/Divider/index.js +6 -5
- package/dist/esm/components/Divider/index.js.map +1 -1
- package/dist/esm/components/Heading/index.js +1 -1
- package/dist/esm/components/Icon/generated/index.js +556 -342
- package/dist/esm/components/Icon/generated/index.js.map +1 -1
- package/dist/esm/components/Icon/index.js +1 -1
- package/dist/esm/components/Link/index.js +1 -1
- package/dist/esm/components/Logo/index.js +1 -1
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/NotificationCounter/index.js +1 -1
- package/dist/esm/components/NumberInput/index.js +5 -0
- package/dist/esm/components/NumberInput/index.js.map +1 -0
- 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 +2 -2
- package/dist/esm/components/Progress/index.js +57 -0
- package/dist/esm/components/Progress/index.js.map +1 -0
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/Radiomark/index.js +5 -0
- package/dist/esm/components/Radiomark/index.js.map +1 -0
- package/dist/esm/components/Rating/index.js +5 -0
- package/dist/esm/components/Rating/index.js.map +1 -0
- package/dist/esm/components/RatingDots/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/SortableList/index.js +1 -1
- package/dist/esm/components/Spinner/index.js +1 -1
- package/dist/esm/components/StyledAvatar/index.js +1 -1
- package/dist/esm/components/Swatch/index.js +1 -1
- package/dist/esm/components/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/index.js +1 -1
- package/dist/esm/components/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 +26 -23
- package/dist/esm/components/Toast/index.js.map +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +131 -117
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/hooks/useBreakpoint/index.js.map +1 -1
- package/dist/esm/hooks/useColorMode/index.js.map +1 -1
- package/dist/esm/hooks/useColorModeValue/index.js.map +1 -1
- package/dist/esm/hooks/useDeviceType/index.js.map +1 -1
- package/dist/esm/index.js +148 -134
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/index.js +1 -1
- package/dist/esm/theme/semanticTokens/index.js +4 -4
- package/dist/esm/theme/semanticTokens/index.js.map +1 -1
- package/dist/types/chakra/index.d.ts +2 -4
- package/dist/types/components/Alert/alert.component.d.ts +28 -1
- package/dist/types/components/Alert/alert.recipe.d.ts +3 -2
- package/dist/types/components/Alert/components/AlertButton/alertButton.component.d.ts +12 -1
- package/dist/types/components/Avatar/avatar.component.d.ts +30 -2
- package/dist/types/components/Avatar/avatar.recipe.d.ts +3 -2
- package/dist/types/components/Avatar/avatar.records.d.ts +2 -0
- package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.component.d.ts +9 -1
- package/dist/types/components/Avatar/components/AvatarRemoveButton/avatarRemoveButton.component.d.ts +15 -6
- package/dist/types/components/Avatar/components/AvatarTooltipTriggerWrapper/avatarTooltipTriggerWrapper.component.d.ts +2 -0
- package/dist/types/components/AvatarGroup/avatarGroup.component.d.ts +27 -3
- package/dist/types/components/Button/button.component.d.ts +14 -1
- package/dist/types/components/Button/button.recipe.d.ts +3 -1
- package/dist/types/components/Button/button.types.d.ts +2 -2
- package/dist/types/components/ButtonGroup/buttonGroup.component.d.ts +12 -1
- package/dist/types/components/Calendar/calendar.component.d.ts +19 -0
- package/dist/types/components/Calendar/index.d.ts +1 -0
- package/dist/types/components/Card/card.component.d.ts +41 -1
- package/dist/types/components/CharacterCounter/characterCounter.component.d.ts +9 -1
- package/dist/types/components/Checkbox/checkbox.component.d.ts +19 -2
- package/dist/types/components/Checkbox/checkbox.recipe.d.ts +3 -2
- package/dist/types/components/Checkbox/checkbox.types.d.ts +4 -0
- package/dist/types/components/Checkbox/index.d.ts +1 -0
- package/dist/types/components/CheckboxGroup/checkboxGroup.component.d.ts +12 -2
- package/dist/types/components/ConversationCard/components/ConversationCardAvatarGroup/conversationCardAvatarGroup.component.d.ts +11 -1
- package/dist/types/components/ConversationCard/components/ConversationCardButtons/conversationCardButtons.component.d.ts +22 -1
- package/dist/types/components/ConversationCard/components/ConversationCardContent/conversationCardContent.component.d.ts +8 -1
- package/dist/types/components/ConversationCard/components/ConversationCardFooter/conversationCardFooter.component.d.ts +8 -1
- package/dist/types/components/ConversationCard/components/ConversationCardHeader/conversationCardHeader.component.d.ts +12 -1
- package/dist/types/components/ConversationCard/components/ConversationCardTags/conversationCardTags.component.d.ts +7 -1
- package/dist/types/components/ConversationCard/conversationCard.component.d.ts +29 -1
- package/dist/types/components/DatePicker/components/DatePickerCalendar/datePickerCalendar.component.d.ts +10 -1
- package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.component.d.ts +11 -1
- package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.recipe.d.ts +5 -4
- package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.types.d.ts +1 -1
- package/dist/types/components/DatePicker/components/DatePickerFooter/datePickerFooter.component.d.ts +9 -0
- package/dist/types/components/DatePicker/components/DatePickerHeader/datePickerHeader.component.d.ts +15 -1
- package/dist/types/components/DatePicker/components/DatePickerInput/datePickerInput.component.d.ts +6 -1
- package/dist/types/components/DatePicker/components/DatePickerMonth/datePickerCalendarMonth.component.d.ts +11 -1
- package/dist/types/components/DatePicker/context/datePicker.context.d.ts +3 -0
- package/dist/types/components/DatePicker/context/datePicker.provider.d.ts +10 -1
- package/dist/types/components/DatePicker/datePicker.component.d.ts +25 -11
- package/dist/types/components/DatePicker/datePicker.types.d.ts +18 -0
- package/dist/types/components/DatePicker/hooks/useComputeCornerRoundingFlags.d.ts +10 -0
- package/dist/types/components/DatePicker/utils/getDayVariant.d.ts +12 -0
- package/dist/types/components/DateTimePicker/components/DateTimePickerCustomView/dateTimePickerCustomView.component.d.ts +7 -0
- package/dist/types/components/DateTimePicker/components/DateTimePickerQuickOptions/dateTimePickerQuickOptions.component.d.ts +14 -0
- package/dist/types/components/DateTimePicker/components/DateTimePickerRangeSelector/dateTimePickerRangeSelector.component.d.ts +10 -0
- package/dist/types/components/DateTimePicker/dateTimePicker.component.d.ts +33 -0
- package/dist/types/components/DateTimePicker/dateTimePicker.records.d.ts +8 -0
- package/dist/types/components/DateTimePicker/dateTimePicker.types.d.ts +11 -0
- package/dist/types/components/DateTimePicker/index.d.ts +2 -0
- package/dist/types/components/DateTimePicker/utils/quickOptions.d.ts +13 -0
- package/dist/types/components/Divider/divider.component.d.ts +7 -2
- package/dist/types/components/Heading/heading.component.d.ts +12 -0
- package/dist/types/components/Icon/generated/Backspace.d.ts +10 -0
- package/dist/types/components/Icon/generated/CaretLeft.d.ts +10 -0
- package/dist/types/components/Icon/generated/CheckList.d.ts +10 -0
- package/dist/types/components/Icon/generated/Globe.d.ts +10 -0
- package/dist/types/components/Icon/generated/InputAlt.d.ts +10 -0
- package/dist/types/components/Icon/generated/LightBulb.d.ts +10 -0
- package/dist/types/components/Icon/generated/SelectDropDown.d.ts +10 -0
- package/dist/types/components/Icon/generated/TextArea.d.ts +10 -0
- package/dist/types/components/Icon/generated/TextBlock.d.ts +10 -0
- package/dist/types/components/Icon/generated/index.d.ts +1 -1
- package/dist/types/components/Icon/icon.component.d.ts +10 -0
- package/dist/types/components/Link/components/LinkIcon/linkIcon.component.d.ts +7 -0
- package/dist/types/components/Link/link.component.d.ts +19 -0
- package/dist/types/components/Logo/logo.component.d.ts +14 -1
- package/dist/types/components/Menu/components/MenuButton/menuButton.component.d.ts +22 -0
- package/dist/types/components/Menu/components/MenuItem/menuItem.component.d.ts +34 -5
- package/dist/types/components/Menu/components/MenuList/menuList.types.d.ts +18 -0
- package/dist/types/components/Menu/components/MenuToggleButtons/menuToggleButtons.component.d.ts +17 -0
- package/dist/types/components/Menu/index.d.ts +4 -0
- package/dist/types/components/Menu/menu.component.d.ts +22 -19
- package/dist/types/components/Menu/menu.recipe.d.ts +1 -1
- package/dist/types/components/Menu/menu.types.d.ts +17 -0
- package/dist/types/components/Modal/components/ModalFooter/modalFooter.component.d.ts +24 -1
- package/dist/types/components/Modal/modal.component.d.ts +46 -1
- package/dist/types/components/Modal/modal.recipe.d.ts +2 -2
- package/dist/types/components/NotificationCounter/notificationCounter.component.d.ts +19 -1
- package/dist/types/components/NotificationCounter/notificationCounter.records.d.ts +5 -0
- package/dist/types/components/NumberInput/index.d.ts +2 -0
- package/dist/types/components/NumberInput/numberInput.component.d.ts +40 -0
- package/dist/types/components/NumberInput/numberInput.recipe.d.ts +21 -0
- package/dist/types/components/NumberInput/numberInput.types.d.ts +4 -0
- package/dist/types/components/Picture/picture.component.d.ts +9 -1
- package/dist/types/components/PinInput/pinInput.component.d.ts +19 -1
- package/dist/types/components/PinInput/pinInput.recipe.d.ts +1 -1
- package/dist/types/components/Popover/components/PopoverFooter/popoverFooter.component.d.ts +26 -1
- package/dist/types/components/Popover/components/PopoverHeader/popoverHeader.component.d.ts +19 -1
- package/dist/types/components/Popover/popover.component.d.ts +45 -2
- package/dist/types/components/Popover/popover.recipe.d.ts +4 -3
- package/dist/types/components/Popover/popover.types.d.ts +1 -1
- package/dist/types/components/Progress/index.d.ts +2 -0
- package/dist/types/components/Progress/progress.component.d.ts +26 -0
- package/dist/types/components/Progress/progress.recipe.d.ts +38 -0
- package/dist/types/components/Progress/progress.types.d.ts +9 -0
- package/dist/types/components/RadioGroup/components/Radio/radio.component.d.ts +15 -0
- package/dist/types/components/RadioGroup/radioGroup.component.d.ts +22 -2
- package/dist/types/components/RadioGroup/radioGroup.recipe.d.ts +4 -2
- package/dist/types/components/Radiomark/index.d.ts +1 -0
- package/dist/types/components/Radiomark/radiomark.component.d.ts +12 -0
- package/dist/types/components/Radiomark/radiomark.recipe.d.ts +2 -0
- package/dist/types/components/Rating/index.d.ts +1 -0
- package/dist/types/components/Rating/rating.component.d.ts +37 -0
- package/dist/types/components/Rating/rating.recipe.d.ts +10 -0
- package/dist/types/components/RatingDots/components/RatingDot/ratingDot.component.d.ts +10 -1
- package/dist/types/components/RatingDots/ratingDots.component.d.ts +12 -0
- package/dist/types/components/Select/components/SelectItemContent/selectItemContent.component.d.ts +6 -0
- package/dist/types/components/Select/components/SelectTrigger/selectTrigger.component.d.ts +7 -2
- package/dist/types/components/Select/select.component.d.ts +53 -3
- package/dist/types/components/Select/select.types.d.ts +3 -0
- package/dist/types/components/SortableList/components/SortableListDragHandle/sortableListDragHandle.component.d.ts +1 -1
- package/dist/types/components/SortableList/components/SortableListItem/sortableListItem.component.d.ts +13 -1
- package/dist/types/components/SortableList/sortableList.component.d.ts +13 -1
- package/dist/types/components/Spinner/spinner.component.d.ts +28 -2
- package/dist/types/components/Spinner/spinner.recipe.d.ts +16 -1
- package/dist/types/components/StyledAvatar/styledAvatar.component.d.ts +10 -1
- package/dist/types/components/StyledAvatar/styledAvatar.types.d.ts +1 -1
- package/dist/types/components/Swatch/swatch.component.d.ts +10 -1
- package/dist/types/components/Switch/switch.component.d.ts +15 -0
- package/dist/types/components/Switch/switch.recipe.d.ts +3 -2
- package/dist/types/components/Tabs/components/Tab/tab.component.d.ts +14 -1
- package/dist/types/components/Tabs/tabs.component.d.ts +17 -2
- package/dist/types/components/Tabs/tabs.recipe.d.ts +3 -2
- package/dist/types/components/Tag/tag.component.d.ts +31 -0
- package/dist/types/components/Tag/tag.recipe.d.ts +3 -2
- package/dist/types/components/TagBlock/tagBlock.component.d.ts +34 -1
- package/dist/types/components/Text/text.component.d.ts +13 -0
- package/dist/types/components/TextInput/textInput.component.d.ts +28 -0
- package/dist/types/components/Textarea/textarea.component.d.ts +13 -0
- package/dist/types/components/TimePicker/components/TimeList/timeList.component.d.ts +10 -1
- package/dist/types/components/TimePicker/components/TimeOption/timeOption.component.d.ts +9 -1
- package/dist/types/components/TimePicker/timePicker.component.d.ts +19 -1
- package/dist/types/components/TimeRange/timeRange.component.d.ts +12 -1
- package/dist/types/components/Timestamp/timestamp.component.d.ts +18 -1
- package/dist/types/components/Toast/components/ToastAction/toastAction.component.d.ts +12 -1
- package/dist/types/components/Toast/components/Toaster/toaster.component.d.ts +6 -1
- package/dist/types/components/Toast/toast.component.d.ts +19 -1
- package/dist/types/components/Toast/toast.recipe.d.ts +3 -2
- package/dist/types/components/Toast/toast.types.d.ts +13 -0
- package/dist/types/components/Toast/useToast.d.ts +5 -0
- package/dist/types/components/Tooltip/tooltip.component.d.ts +26 -0
- package/dist/types/components/Tooltip/tooltip.recipe.d.ts +10 -1
- package/dist/types/components/index.d.ts +5 -0
- package/dist/types/hocs/withFormControl/withFormControl.d.ts +44 -0
- package/dist/types/hocs/withTruncation.d.ts +8 -0
- package/dist/types/hooks/useBreakpoint/index.d.ts +4 -0
- package/dist/types/hooks/useColorMode/index.d.ts +39 -0
- package/dist/types/hooks/useColorModeValue/index.d.ts +6 -0
- package/dist/types/hooks/useDeviceType/index.d.ts +4 -0
- package/dist/types/hooks/useIconTextSizeMap.d.ts +5 -0
- package/dist/types/shared/components/withVariantStory.d.ts +6 -0
- package/dist/types/shared/types/index.d.ts +1 -0
- package/dist/types/theme/providers/theme.provider.d.ts +1 -0
- package/dist/types/theme/recipes/List/list.recipe.d.ts +14 -0
- package/dist/types/theme/recipes/Table/table.recipe.d.ts +29 -0
- package/dist/types/theme/semanticTokens/semanticTokens.config.d.ts +91 -82
- package/dist/types/theme/semanticTokens/semanticTokens.records.d.ts +182 -164
- package/dist/types/theme/semanticTokens/semanticTokens.types.d.ts +4 -3
- package/dist/types/theme/tokens/sizes/sizes.config.d.ts +2 -2
- package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +10 -10
- package/package.json +21 -18
- package/dist/chunks/alert.types-De_IDZNV.js +0 -2
- package/dist/chunks/alert.types-De_IDZNV.js.map +0 -1
- package/dist/chunks/alert.types-NkOwCG0-.js +0 -139
- package/dist/chunks/alert.types-NkOwCG0-.js.map +0 -1
- package/dist/chunks/avatar.component-CqFsGMt6.js +0 -2
- package/dist/chunks/avatar.component-CqFsGMt6.js.map +0 -1
- package/dist/chunks/avatar.component-lHszPWEi.js +0 -394
- package/dist/chunks/avatar.component-lHszPWEi.js.map +0 -1
- package/dist/chunks/avatarGroup.component-BPYIE5NT.js +0 -2
- package/dist/chunks/avatarGroup.component-BPYIE5NT.js.map +0 -1
- package/dist/chunks/avatarGroup.component-EFxRAKiJ.js +0 -67
- package/dist/chunks/avatarGroup.component-EFxRAKiJ.js.map +0 -1
- package/dist/chunks/button.component-BE20YKDd.js +0 -67
- package/dist/chunks/button.component-BE20YKDd.js.map +0 -1
- package/dist/chunks/button.component-DAv5WxDc.js +0 -2
- package/dist/chunks/button.component-DAv5WxDc.js.map +0 -1
- package/dist/chunks/button.recipe-7PSQJbyz.js +0 -2
- package/dist/chunks/button.recipe-7PSQJbyz.js.map +0 -1
- package/dist/chunks/button.recipe-ClmsjdZI.js +0 -910
- package/dist/chunks/button.recipe-ClmsjdZI.js.map +0 -1
- package/dist/chunks/button.types-BKXZNvN1.js.map +0 -1
- package/dist/chunks/button.types-Bl1awbi0.js +0 -2
- package/dist/chunks/button.types-Bl1awbi0.js.map +0 -1
- package/dist/chunks/buttonGroup.component-CQBXYOhq.js +0 -2
- package/dist/chunks/buttonGroup.component-CQBXYOhq.js.map +0 -1
- package/dist/chunks/buttonGroup.component-CheBkHw6.js +0 -68
- package/dist/chunks/buttonGroup.component-CheBkHw6.js.map +0 -1
- package/dist/chunks/card.component-BZxC19F_.js +0 -2
- package/dist/chunks/card.component-BZxC19F_.js.map +0 -1
- package/dist/chunks/card.component-DJcYzMX1.js +0 -58
- package/dist/chunks/card.component-DJcYzMX1.js.map +0 -1
- package/dist/chunks/characterCounter.component-C6ZwdIiA.js +0 -84
- package/dist/chunks/characterCounter.component-C6ZwdIiA.js.map +0 -1
- package/dist/chunks/characterCounter.component-D0ccCiBG.js +0 -2
- package/dist/chunks/characterCounter.component-D0ccCiBG.js.map +0 -1
- package/dist/chunks/checkbox.component-DNOkXggb.js +0 -260
- package/dist/chunks/checkbox.component-Dhjcu89D.js +0 -2
- package/dist/chunks/checkboxGroup.component-BNKJqMKi.js +0 -52
- package/dist/chunks/checkboxGroup.component-BNKJqMKi.js.map +0 -1
- package/dist/chunks/checkboxGroup.component-M-nvlAbK.js +0 -2
- package/dist/chunks/checkboxGroup.component-M-nvlAbK.js.map +0 -1
- package/dist/chunks/conversationCard.component-BRJbMpwH.js +0 -2
- package/dist/chunks/conversationCard.component-BRJbMpwH.js.map +0 -1
- package/dist/chunks/conversationCard.component-DmSuBQ4_.js +0 -330
- package/dist/chunks/conversationCard.component-DmSuBQ4_.js.map +0 -1
- package/dist/chunks/create-slot-recipe-context-CViypfwB.js +0 -2
- package/dist/chunks/create-slot-recipe-context-CViypfwB.js.map +0 -1
- package/dist/chunks/create-slot-recipe-context-CrlT_nGQ.js +0 -97
- package/dist/chunks/create-slot-recipe-context-CrlT_nGQ.js.map +0 -1
- package/dist/chunks/datePicker.component-BOsFZiDy.js +0 -15
- package/dist/chunks/datePicker.component-BOsFZiDy.js.map +0 -1
- package/dist/chunks/datePicker.component-Dzh4WccC.js +0 -3019
- package/dist/chunks/datePicker.component-Dzh4WccC.js.map +0 -1
- package/dist/chunks/dialog-BPhjKQkb.js +0 -2
- package/dist/chunks/divider.types-Dht8eAh4.js +0 -2
- package/dist/chunks/divider.types-Dht8eAh4.js.map +0 -1
- package/dist/chunks/divider.types-ZN_wlva7.js +0 -47
- package/dist/chunks/divider.types-ZN_wlva7.js.map +0 -1
- package/dist/chunks/grid-item-DPdTp_nI.js +0 -94
- package/dist/chunks/grid-item-DPdTp_nI.js.map +0 -1
- package/dist/chunks/grid-item-qnuioQmr.js +0 -2
- package/dist/chunks/grid-item-qnuioQmr.js.map +0 -1
- package/dist/chunks/heading.component-C_cdAGTd.js +0 -2
- package/dist/chunks/heading.component-C_cdAGTd.js.map +0 -1
- package/dist/chunks/heading.component-SiJnYLOw.js +0 -12
- package/dist/chunks/heading.component-SiJnYLOw.js.map +0 -1
- package/dist/chunks/icon.component-Bhnf2n1O.js +0 -2
- package/dist/chunks/icon.component-Bhnf2n1O.js.map +0 -1
- package/dist/chunks/icon.component-C5bgxAD2.js +0 -32
- package/dist/chunks/icon.component-C5bgxAD2.js.map +0 -1
- package/dist/chunks/index-2glJ2faJ.js +0 -2
- package/dist/chunks/index-7Jpijbq_.js +0 -3
- package/dist/chunks/index-7Jpijbq_.js.map +0 -1
- package/dist/chunks/index-A_vmTNU7.js +0 -2
- package/dist/chunks/index-BEfEzWJx.js +0 -2
- package/dist/chunks/index-Bm5QBNWR.js +0 -8190
- package/dist/chunks/index-Bm5QBNWR.js.map +0 -1
- package/dist/chunks/index-Cv06PsSJ.js.map +0 -1
- package/dist/chunks/index-DA90Dqf9.js +0 -1362
- package/dist/chunks/index-DA90Dqf9.js.map +0 -1
- package/dist/chunks/index-DAI6_P9H.js +0 -2
- package/dist/chunks/index-DMcwHRZ5.js +0 -11
- package/dist/chunks/index-DMcwHRZ5.js.map +0 -1
- package/dist/chunks/index-jnwdAJ25.js +0 -2
- package/dist/chunks/index-jnwdAJ25.js.map +0 -1
- package/dist/chunks/link.component-CvR5CbiT.js +0 -36
- package/dist/chunks/link.component-CvR5CbiT.js.map +0 -1
- package/dist/chunks/link.component-yUJIJbIP.js +0 -2
- package/dist/chunks/link.component-yUJIJbIP.js.map +0 -1
- package/dist/chunks/logo.types-DF4eLSR9.js +0 -45
- package/dist/chunks/logo.types-DF4eLSR9.js.map +0 -1
- package/dist/chunks/logo.types-Zt-yfFAQ.js +0 -2
- package/dist/chunks/logo.types-Zt-yfFAQ.js.map +0 -1
- package/dist/chunks/menu.component-DylZiPAE.js +0 -2
- package/dist/chunks/menu.component-DylZiPAE.js.map +0 -1
- package/dist/chunks/menu.component-xhHsHlGT.js +0 -599
- package/dist/chunks/menu.component-xhHsHlGT.js.map +0 -1
- package/dist/chunks/modal.types-CBos7aXO.js +0 -2
- package/dist/chunks/modal.types-CBos7aXO.js.map +0 -1
- package/dist/chunks/modal.types-CkQIOPTa.js +0 -95
- package/dist/chunks/modal.types-CkQIOPTa.js.map +0 -1
- package/dist/chunks/notificationCounter.component-Lu4_Owvr.js.map +0 -1
- package/dist/chunks/notificationCounter.component-gp2ULnY_.js +0 -2
- package/dist/chunks/notificationCounter.component-gp2ULnY_.js.map +0 -1
- package/dist/chunks/picture.component-CKK-SMvr.js +0 -22
- package/dist/chunks/picture.component-CKK-SMvr.js.map +0 -1
- package/dist/chunks/picture.component-CR6e0wRG.js +0 -2
- package/dist/chunks/picture.component-CR6e0wRG.js.map +0 -1
- package/dist/chunks/pinInput.types-CcN0aX_i.js +0 -145
- package/dist/chunks/pinInput.types-Cqm1Px5l.js +0 -2
- package/dist/chunks/popover-root-provider-CkW1eCBQ.js +0 -43
- package/dist/chunks/popover-root-provider-ZB5BcrXn.js +0 -2
- package/dist/chunks/popover.component-BjS13k9K.js +0 -2
- package/dist/chunks/popover.component-BjS13k9K.js.map +0 -1
- package/dist/chunks/popover.component-C4WKxh4d.js +0 -196
- package/dist/chunks/popover.component-C4WKxh4d.js.map +0 -1
- package/dist/chunks/popover.recipe-Bx25Jhgs.js +0 -2
- package/dist/chunks/popover.recipe-Bx25Jhgs.js.map +0 -1
- package/dist/chunks/popover.recipe-C2nbfvL6.js +0 -241
- package/dist/chunks/popover.recipe-C2nbfvL6.js.map +0 -1
- package/dist/chunks/popover.types-BF2KRf_I.js +0 -2
- package/dist/chunks/popover.types-BF2KRf_I.js.map +0 -1
- package/dist/chunks/popover.types-D1O-Ehsz.js +0 -7
- package/dist/chunks/popover.types-D1O-Ehsz.js.map +0 -1
- package/dist/chunks/radioGroup.types-CZA7RcAn.js +0 -2
- package/dist/chunks/radioGroup.types-CZA7RcAn.js.map +0 -1
- package/dist/chunks/radioGroup.types-Dld5lmgo.js +0 -231
- package/dist/chunks/radioGroup.types-Dld5lmgo.js.map +0 -1
- package/dist/chunks/ratingDots.component-DcrCudac.js +0 -2
- package/dist/chunks/ratingDots.component-DcrCudac.js.map +0 -1
- package/dist/chunks/ratingDots.component-G4GMWvFy.js +0 -138
- package/dist/chunks/ratingDots.component-G4GMWvFy.js.map +0 -1
- package/dist/chunks/select.component-BTWHWvZV.js +0 -1058
- package/dist/chunks/select.component-BTWHWvZV.js.map +0 -1
- package/dist/chunks/select.component-Dyc1yQPO.js +0 -2
- package/dist/chunks/select.component-Dyc1yQPO.js.map +0 -1
- package/dist/chunks/spinner-C31ZWQmA.js +0 -8
- package/dist/chunks/spinner.component-CVVOuFka.js +0 -2
- package/dist/chunks/spinner.component-CVVOuFka.js.map +0 -1
- package/dist/chunks/spinner.component-DPYj17HK.js.map +0 -1
- package/dist/chunks/styledAvatar.types-CMpyDxAM.js +0 -2
- package/dist/chunks/styledAvatar.types-CMpyDxAM.js.map +0 -1
- package/dist/chunks/styledAvatar.types-CS07Zk7c.js +0 -51
- package/dist/chunks/styledAvatar.types-CS07Zk7c.js.map +0 -1
- package/dist/chunks/swatch.types-CXlghcLw.js.map +0 -1
- package/dist/chunks/swatch.types-jaI0KFHU.js +0 -2
- package/dist/chunks/swatch.types-jaI0KFHU.js.map +0 -1
- package/dist/chunks/switch.component-C88jBbo_.js +0 -2
- package/dist/chunks/switch.component-Cke7O8gk.js +0 -154
- package/dist/chunks/tab.types-DpmXyw5C.js +0 -2
- package/dist/chunks/tag.component-79aRVI7u.js +0 -82
- package/dist/chunks/tag.component-79aRVI7u.js.map +0 -1
- package/dist/chunks/tag.component-CAWh9OYa.js +0 -2
- package/dist/chunks/tag.component-CAWh9OYa.js.map +0 -1
- package/dist/chunks/tagBlock.component-Dn7coOgp.js +0 -2
- package/dist/chunks/tagBlock.component-Dn7coOgp.js.map +0 -1
- package/dist/chunks/tagBlock.component-vLA90b5S.js +0 -169
- package/dist/chunks/tagBlock.component-vLA90b5S.js.map +0 -1
- package/dist/chunks/text.component-CHpMvCFa.js +0 -2
- package/dist/chunks/text.component-CHpMvCFa.js.map +0 -1
- package/dist/chunks/text.component-D9w-u_dB.js +0 -12
- package/dist/chunks/text.component-D9w-u_dB.js.map +0 -1
- package/dist/chunks/textInput.component-Dpxb2RI-.js +0 -169
- package/dist/chunks/textInput.component-Dpxb2RI-.js.map +0 -1
- package/dist/chunks/textInput.component-Dx_Ktcmr.js +0 -2
- package/dist/chunks/textInput.component-Dx_Ktcmr.js.map +0 -1
- package/dist/chunks/textarea.component-BYexywy1.js +0 -2
- package/dist/chunks/textarea.component-Dk2IMKkr.js +0 -79
- package/dist/chunks/theme.provider-XYBMZJTB.js +0 -28
- package/dist/chunks/theme.provider-XYBMZJTB.js.map +0 -1
- package/dist/chunks/theme.provider-w_I9S10D.js.map +0 -1
- package/dist/chunks/timePicker.component-Bbd3BOA6.js +0 -209
- package/dist/chunks/timePicker.component-Bbd3BOA6.js.map +0 -1
- package/dist/chunks/timePicker.component-DcNgUFGj.js +0 -2
- package/dist/chunks/timePicker.component-DcNgUFGj.js.map +0 -1
- package/dist/chunks/timeRange.component-BBhPc2LP.js +0 -18
- package/dist/chunks/timeRange.component-BBhPc2LP.js.map +0 -1
- package/dist/chunks/timeRange.component-Bb-xDHWT.js +0 -2
- package/dist/chunks/timeRange.component-Bb-xDHWT.js.map +0 -1
- package/dist/chunks/timestamp.component-CrY5t68x.js +0 -2
- package/dist/chunks/timestamp.component-CrY5t68x.js.map +0 -1
- package/dist/chunks/timestamp.component-m0FTjlAi.js +0 -51
- package/dist/chunks/timestamp.component-m0FTjlAi.js.map +0 -1
- package/dist/chunks/toaster.records-eCXbM85Z.js +0 -2
- package/dist/chunks/tooltip.component-CATpCSkf.js +0 -2
- package/dist/chunks/typography.records-CpYV1kns.js.map +0 -1
- package/dist/chunks/typography.records-Dbw3sz4i.js +0 -2
- package/dist/chunks/typography.records-Dbw3sz4i.js.map +0 -1
- package/dist/chunks/use-locale-context-CazVZ4Kg.js +0 -2315
- package/dist/chunks/use-locale-context-CazVZ4Kg.js.map +0 -1
- package/dist/chunks/use-locale-context-Dv7DQ_mn.js +0 -22
- package/dist/chunks/use-locale-context-Dv7DQ_mn.js.map +0 -1
- package/dist/chunks/use-slot-recipe-8liupslO.js +0 -2
- package/dist/chunks/use-slot-recipe-8liupslO.js.map +0 -1
- package/dist/chunks/use-slot-recipe-DhtQ1j_5.js +0 -13
- package/dist/chunks/use-slot-recipe-DhtQ1j_5.js.map +0 -1
- package/dist/chunks/withFormControl-BdiccBy5.js +0 -2
- package/dist/chunks/withFormControl-BdiccBy5.js.map +0 -1
- package/dist/chunks/withFormControl-CRXVopOk.js +0 -361
- package/dist/chunks/withFormControl-CRXVopOk.js.map +0 -1
- package/dist/chunks/withTruncation-C9XLf_j6.js +0 -67
- package/dist/chunks/withTruncation-C9XLf_j6.js.map +0 -1
- package/dist/chunks/withTruncation-Ddr3jvAO.js +0 -2
- package/dist/chunks/withTruncation-Ddr3jvAO.js.map +0 -1
- package/dist/types/components/Menu/components/MenuButton/menuButton.components.d.ts +0 -9
- package/dist/types/components/Menu/components/MenuToggleButtons/menuToggleButtons.d.ts +0 -10
- package/dist/types/shared/utils/argTypes.d.ts +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.component-DwTen8Uv.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.component.tsx","../../src/components/Menu/components/MenuItem/menuItem.component.tsx","../../src/components/Menu/components/MenuToggleButtons/menuToggleButtons.component.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 { Box } from '@chakra-ui/react/box';\nimport { Button, ButtonProps } from 'components/Button/button.component';\nimport { Icon } from 'components/Icon/icon.component';\nimport { Text, TextProps } from 'components/Text/text.component';\nimport { Tooltip, TooltipProps } from 'components/Tooltip/tooltip.component';\nimport React, { useCallback, useEffect, useState } from 'react';\n\nexport interface MenuButtonProps extends Omit<ButtonProps, 'children'> {\n /** If true, the caret will be hidden.\n * @default false\n */\n hideCaret?: boolean;\n /** Text to display in the menu button. */\n text?: string;\n /** Props to customize the text. */\n textProps?: TextProps;\n /** Props to customize the tooltip. */\n tooltipProps?: Omit<TooltipProps, 'children' | 'label' | 'isOpen' | 'onClose'>;\n /** If true, the tooltip will be shown. */\n showTooltip?: boolean;\n /** Determines if the menu is open. */\n isMenuOpen?: boolean;\n}\n\nexport const MenuButton = ({\n hideCaret = false,\n size = 'md',\n text,\n textProps,\n variant,\n onClick,\n ['data-testid']: dataTestId = 'kibble-menu-button',\n ...rest\n}: MenuButtonProps): React.JSX.Element => {\n return (\n <Button\n className=\"Menu__Button\"\n data-testid={dataTestId}\n size={size}\n variant={variant}\n {...rest}\n {...(!text && hideCaret && { paddingInline: 0, paddingBlock: 0 })}\n onClick={(e) => {\n e.stopPropagation();\n onClick?.(e);\n }}\n >\n {text && (\n <Text\n className=\"Menu__ButtonText\"\n data-testid={`${dataTestId}-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={`${dataTestId}-caret`}>\n <Icon name=\"chevronDown\" size={size === 'lg' ? 'sm' : 'xs'} />\n </Flex>\n )}\n </Button>\n );\n};\n\nexport const MenuButtonTooltip = ({ tooltipProps, isMenuOpen, ...rest }: MenuButtonProps): React.JSX.Element => {\n // Needed to manage tooltip open state separately to avoid sticky issues when we open and close menu list\n const [isTooltipOpen, setIsTooltipOpen] = useState(false);\n\n const onMouseEnter = useCallback((): void => {\n if (!isMenuOpen) {\n setIsTooltipOpen(true);\n }\n }, [isMenuOpen]);\n\n const onMouseLeave = useCallback((): void => {\n if (!isMenuOpen) {\n setIsTooltipOpen(false);\n }\n }, [isMenuOpen]);\n\n // Close tooltip when menu opens\n useEffect(() => {\n if (isMenuOpen) {\n setIsTooltipOpen(false);\n }\n }, [isMenuOpen]);\n\n return (\n <Tooltip label={rest.text || ''} open={isTooltipOpen && !isMenuOpen} {...tooltipProps}>\n <Box\n onClick={(e) => {\n e.preventDefault();\n e.stopPropagation();\n setIsTooltipOpen(false);\n }}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n <MenuButton {...rest} />\n </Box>\n </Tooltip>\n );\n};\n","import { Flex } from '@chakra-ui/react/flex';\nimport { Menu as CMenu } from '@chakra-ui/react/menu';\nimport React, { useCallback, useState } from 'react';\nimport { Text } from 'components/Text/text.component';\nimport { MenuItemType } from './menuItem.types';\nimport { Menu, MenuProps } from 'components/Menu';\nimport { TypographyVariant } from 'shared/types/typography';\nimport { Checkbox } from 'components/Checkbox/checkbox.component';\nimport { Icon } from 'components/Icon/icon.component';\nimport { Tooltip } from 'components/Tooltip';\n\ninterface BaseMenuItemProps {\n /** Label to display in the menu item. */\n label?: React.ReactNode;\n /** Left element to display in the menu item. */\n leftElement?: React.ReactNode;\n /** Group label to display in the menu item. */\n groupLabel?: string;\n /** Callback function to be called when the menu item is selected. */\n onSelect?: (value: string) => void;\n /** If true, the text will be truncated. */\n shouldTruncateText?: boolean;\n /** Type of the menu item.\n * @default default\n */\n type?: MenuItemType;\n /** Value of the menu item. */\n value: string;\n /** Variant of the menu item. */\n variant?: TypographyVariant;\n /** Data test id for the menu item.\n * @default kibble-menu-item\n */\n 'data-testid'?: string;\n}\n\ninterface DefaultMenuItemProps extends Omit<CMenu.ItemProps, 'onSelect' | 'isDisabled'> {\n /** Type of the menu item.\n * @default default\n */\n type?: 'default';\n /** If true, the menu item will be selected. */\n selected?: boolean;\n /** Tooltip label to display in the menu item. */\n tooltipLabel?: string;\n}\n\ninterface CheckboxMenuItemProps extends Omit<CMenu.CheckboxItemProps, 'onSelect'> {\n /** Type of the menu item.\n * @default checkbox\n */\n type: 'checkbox';\n /** If true, the checkbox will be checked. */\n checked: boolean;\n /** Tooltip label to display in the menu item. */\n tooltipLabel?: string;\n}\n\ninterface SubmenuMenuItemProps extends Omit<MenuProps, 'children' | 'buttonProps'> {\n /** Type of the menu item.\n * @default submenu\n */\n type: 'submenu';\n /** Value text for keyboard navigation. */\n valueText?: string;\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 ['data-testid']: dataTestId = 'kibble-menu-item',\n ...rest\n}: MenuItemProps): React.JSX.Element => {\n const [isSubmenuOpen, setIsSubmenuOpen] = useState(false);\n\n const handleItemSelect = useCallback(() => {\n if (onSelect) {\n onSelect(rest.value);\n }\n }, [onSelect, rest.value]);\n\n if (type === 'submenu') {\n const {\n valueText,\n listProps,\n portalled = true,\n open,\n lazyMount = true,\n unmountOnExit = true,\n } = rest as Omit<SubmenuMenuItemProps, 'type'>;\n\n return (\n <Menu\n lazyMount={lazyMount}\n unmountOnExit={unmountOnExit}\n submenuTrigger={\n <CMenu.TriggerItem\n className=\"Menu__Item--Submenu\"\n data-testid={`${dataTestId}-submenu`}\n justifyContent=\"space-between\"\n aria-valuetext={valueText}\n position=\"relative\"\n onClick={(): void => {\n // If the submenu is controlled, call the onSelect callback passed to the menu\n if (open !== undefined && onSelect) {\n onSelect(rest.value);\n } else {\n // Otherwise, toggle the internalsubmenu open state\n setIsSubmenuOpen(!isSubmenuOpen);\n }\n }}\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={portalled}\n open={open !== undefined ? open : isSubmenuOpen}\n listProps={listProps}\n />\n );\n }\n\n if (type === 'checkbox') {\n const { checked, value, disabled, tooltipLabel, ...checkboxRest } = rest as CheckboxMenuItemProps;\n return (\n <CMenu.Item\n className=\"Menu__Item--Checkbox\"\n data-testid={`${dataTestId}-checkbox`}\n value={value}\n closeOnSelect={false}\n onSelect={disabled ? undefined : handleItemSelect}\n gap={3}\n disabled={disabled}\n {...checkboxRest}\n >\n <Checkbox checked={!!checked} disabled={disabled} size=\"md\" fullWidth={false} />\n <MenuItemLabel\n label={label}\n leftElement={leftElement}\n shouldTruncateText={shouldTruncateText}\n variant={variant}\n tooltipLabel={tooltipLabel}\n />\n </CMenu.Item>\n );\n }\n\n if (type === 'default') {\n const { selected = false, disabled, value, tooltipLabel, ...defaultRest } = rest as DefaultMenuItemProps;\n return (\n <CMenu.Item\n className=\"Menu__Item--Default\"\n data-testid={`${dataTestId}-default`}\n value={value}\n onSelect={disabled ? undefined : handleItemSelect}\n disabled={disabled}\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 tooltipLabel={tooltipLabel}\n />\n </CMenu.Item>\n );\n }\n\n return <></>;\n};\n\nconst MenuItemLabel = ({\n label,\n leftElement,\n shouldTruncateText,\n variant,\n tooltipLabel,\n}: {\n label?: React.ReactNode;\n leftElement?: React.ReactNode;\n shouldTruncateText?: boolean;\n variant?: TypographyVariant;\n tooltipLabel?: string;\n}): React.JSX.Element => {\n const content = (\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 return tooltipLabel ? <Tooltip label={tooltipLabel}>{content}</Tooltip> : content;\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 /** Determines if there are selected items. */\n hasSelectedItems?: boolean;\n /** Name of the group. */\n groupName?: string;\n /** Callback function to toggle the selected items. */\n onToggle: ({ groupName, clear }: { clear: boolean; groupName?: string }) => void;\n /** Data test id for the menu toggle buttons.\n * @default kibble-menu-toggle-buttons\n */\n 'data-testid'?: string;\n}\n\nexport const MenuToggleButtons = ({\n groupName,\n hasSelectedItems = false,\n onToggle,\n ['data-testid']: dataTestId = 'kibble-menu-toggle-buttons',\n}: MenuToggleButtonsProps): React.JSX.Element => {\n const isGrouped = !!groupName;\n return (\n <Box className=\"Menu__ToggleButtons\" data-testid={dataTestId} {...(isGrouped && { textAlign: 'right', w: '50%' })}>\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, MenuButtonTooltip, MenuButtonProps } from './components/MenuButton/menuButton.component';\nimport { MenuItem, MenuItemProps } from './components/MenuItem/menuItem.component';\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.component';\nimport { usePortalContentRef } from 'hooks/usePortalContentRef';\nimport { MenuListOnOpenChangeProps } from './menu.types';\nimport { MenuListProps } from './components/MenuList/menuList.types';\n\nexport interface MenuProps extends Omit<CMenu.RootProps, 'children' | 'onSelect' | 'onOpenChange'> {\n /** Props to customize the menu button trigger. */\n buttonProps?: MenuButtonProps;\n /** Props to customize the menu list. */\n listProps?: MenuListProps;\n /** Props to customize the positioner of the menu. */\n positionerProps?: CMenu.PositionerProps;\n /**\n * If true, the menu will be rendered in a Portal.\n * @default false\n */\n portalled?: boolean;\n /** Callback function to be called when the menu is opened or closed. */\n onOpenChange?: ({ open, allSelectedItems }: MenuListOnOpenChangeProps) => void;\n /** Data test id for the menu.\n * @default kibble-menu\n */\n 'data-testid'?: string;\n}\n\ninterface InternalMenuProps extends MenuProps {\n /** React element to be used as the trigger for the submenu.\n * @internal\n */\n submenuTrigger?: React.ReactNode;\n}\n\nexport const Menu = ({\n buttonProps,\n listProps,\n positionerProps,\n portalled = false,\n submenuTrigger,\n lazyMount = true,\n onOpenChange,\n ['data-testid']: dataTestId = 'kibble-menu',\n ...rest\n}: InternalMenuProps): React.JSX.Element => {\n const { contentRef } = usePortalContentRef();\n const {\n canSelectAll,\n canSelectGroups,\n emptyState = 'No results found',\n groupSortOrder,\n loading,\n maxH = '480px',\n menuItems = [],\n minW = '240px',\n onSearch,\n onSelect: onListSelect,\n onSelectAll,\n searchable,\n searchPlaceholder = 'Search...',\n shouldTruncateText,\n ...restListProps\n } = listProps || {};\n const [isOpen, setIsOpen] = useState(false);\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(() => {\n const entries = Object.entries(groupedItems);\n\n if (!groupSortOrder || groupSortOrder.length === 0) {\n return entries;\n }\n\n // Sort groups based on groupSortOrder\n return entries.sort(([groupLabelA], [groupLabelB]) => {\n const indexA = groupSortOrder.indexOf(groupLabelA);\n const indexB = groupSortOrder.indexOf(groupLabelB);\n\n // If both groups are in the sort order, sort by their index\n if (indexA !== -1 && indexB !== -1) {\n return indexA - indexB;\n }\n\n // If only groupA is in the sort order, it comes first\n if (indexA !== -1) {\n return -1;\n }\n\n // If only groupB is in the sort order, it comes first\n if (indexB !== -1) {\n return 1;\n }\n\n // If neither group is in the sort order, maintain original order\n return 0;\n });\n }, [groupedItems, groupSortOrder]);\n\n // Checkbox State Management\n const checkboxItems = useMemo(() => menuItems?.filter((item) => item.type === 'checkbox') || [], [menuItems]);\n\n // Helper functions for checkbox state management\n const isChecked = useCallback(\n (value: string) => {\n return checkboxItems.some((item) => item.value === value && item.checked);\n },\n [checkboxItems],\n );\n\n // Helper function to get selected menu items based on selected values\n const selectedCheckboxItems = useMemo(() => {\n return checkboxItems.filter((item) => item.checked);\n }, [checkboxItems]);\n\n const handleToggleSelectAll = useCallback(\n ({ groupName, clear }: { groupName?: string; clear: boolean }) => {\n let newSelectedItems: MenuItemProps[];\n // Only allow checkbox items that are not disabled to be toggled\n const filteredCheckboxItems = filteredMenuItems.filter((item) => item.type === 'checkbox' && !item.disabled);\n\n // If the group name is provided, only toggle the items in the group\n if (groupName) {\n // Get the items in the group\n const groupedItems = filteredCheckboxItems.filter((item) => item.groupLabel === groupName);\n\n // If the clear flag is true, remove the items in the group\n newSelectedItems = clear\n ? selectedCheckboxItems.filter((cItem) => cItem.groupLabel !== groupName)\n : // Otherwise, add the items in the group to the selected items\n [...new Set([...selectedCheckboxItems, ...groupedItems])];\n } else {\n // If the group name is not provided, toggle all the items\n newSelectedItems = clear\n ? []\n : filteredCheckboxItems.map((item) => {\n return { ...item, checked: true };\n });\n }\n\n console.log('newSelectedItems', newSelectedItems);\n\n // Call the onSelectAll callback with the updated values\n onSelectAll?.({ allSelectedItems: newSelectedItems });\n },\n [onSelectAll, filteredMenuItems, selectedCheckboxItems],\n );\n\n const handleSelect = useCallback(\n (item: MenuItemProps) => {\n // If the item is a checkbox, update the selected checkbox values\n if (item.type === 'checkbox') {\n // Get the new list of selected checkbox items\n const allSelectedItems = isChecked(item.value)\n ? selectedCheckboxItems.filter((cItem) => cItem.value !== item.value)\n : [...selectedCheckboxItems, item];\n\n // If the item has it's own onSelect, call it with just the item value\n if (item.onSelect) {\n item.onSelect(item.value);\n return;\n }\n\n // Otherwise call the onSelect callback with the updated values\n onListSelect?.({ item, allSelectedItems });\n return;\n }\n\n // Otherwise this is a default item, so first check if the item has it's own onSelect callback\n if (item.onSelect) {\n item.onSelect(item.value);\n return;\n }\n\n // Otherwise call the onSelect callback with just the item itself\n onListSelect?.({ item, allSelectedItems: [item] });\n },\n [onListSelect, isChecked, selectedCheckboxItems],\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 const handleSearch = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n console.log('e.target.value', e.target.value);\n const searchInput = e.target.value;\n console.log('searchInput', searchInput);\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 // Cleanup\n const handleOpenChange = useCallback(\n (open: boolean) => {\n setIsOpen(open); // Track open state\n if (!open) {\n setSearchText('');\n setFilteredMenuItems(menuItems);\n }\n\n if (onOpenChange) {\n onOpenChange({ open, allSelectedItems: selectedCheckboxItems });\n }\n },\n [menuItems, onOpenChange, selectedCheckboxItems],\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 return (\n <CMenu.Root\n lazyMount={lazyMount}\n unmountOnExit={lazyMount}\n onOpenChange={(details) => {\n handleOpenChange(details.open);\n }}\n {...rest}\n >\n {!submenuTrigger ? (\n <CMenu.Trigger asChild className=\"Menu__Trigger\" data-testid={`${dataTestId}-trigger`}>\n {buttonProps?.showTooltip ? (\n <MenuButtonTooltip isMenuOpen={isOpen} {...buttonProps} />\n ) : (\n <MenuButton {...buttonProps} />\n )}\n </CMenu.Trigger>\n ) : (\n submenuTrigger\n )}\n <Portal disabled={!portalled} container={contentRef || undefined}>\n <CMenu.Positioner className=\"Menu\" data-testid={dataTestId} {...positionerProps}>\n <CMenu.Content\n className=\"Menu__Content\"\n data-testid={`${dataTestId}-content`}\n maxH={maxH}\n minW={minW}\n {...restListProps}\n {...(searchable && { pt: '0' })}\n onClick={(e) => {\n e.stopPropagation();\n restListProps?.onClick?.(e);\n }}\n >\n {searchable && (\n <Box\n className=\"Menu__SearchBarContainer\"\n data-testid={`${dataTestId}-search-bar-container`}\n px={3}\n py={2}\n position=\"sticky\"\n top={0}\n bg=\"background\"\n zIndex=\"docked\"\n >\n <TextInput\n className=\"Menu__SearchBar\"\n data-testid={`${dataTestId}-search-bar`}\n placeholder={searchPlaceholder}\n onChange={handleSearch}\n size=\"sm\"\n value={searchText}\n clearable\n onClear={clearSearch}\n // Necessary to prevent the Menu from intercepting the Space key press and opening the menu when the search input is focused\n onKeyDown={(e) => {\n if (e.code === 'Space') {\n e.stopPropagation();\n }\n }}\n />\n </Box>\n )}\n {canSelectAll && (\n <Box\n className=\"Menu__CheckboxGroupHeader\"\n data-testid={`${dataTestId}-checkbox-group-header`}\n px={3}\n mt={searchable ? 1 : 2}\n >\n {canSelectAll && !!checkboxItems.length && (\n <MenuToggleButtons\n onToggle={handleToggleSelectAll}\n hasSelectedItems={!!selectedCheckboxItems.length}\n />\n )}\n </Box>\n )}\n {loading && (\n <Flex justifyContent=\"center\" py={5}>\n <Spinner fullScreen />\n </Flex>\n )}\n <Box className=\"Menu__List\" data-testid={`${dataTestId}-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) =>\n selectedCheckboxItems.some((item) => item.value === value && item.checked),\n );\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={handleToggleSelectAll}\n hasSelectedItems={hasSelectedItems}\n />\n )}\n </Flex>\n </CMenu.ItemGroupLabel>\n )}\n {Object.entries(types).map(([type, items]) =>\n items.map((item, index) => {\n const { groupLabel, ...rest } = item;\n return (\n <MenuItem\n key={`menu-item-${groupLabel}-${type}-${index}`}\n {...rest}\n shouldTruncateText={shouldTruncateText}\n {...(item.type === 'checkbox' && {\n checked: isChecked(item.value),\n })}\n data-testid={`${dataTestId}-item-${item.label}`}\n onSelect={() => handleSelect(item)}\n />\n );\n }),\n )}\n </MenuGroupContainer>\n );\n })}\n </>\n ) : (\n <>\n <Box p={3}>\n {typeof emptyState === 'string' ? (\n <Box textAlign=\"center\">\n <Text size=\"sm\" variant=\"subtle\" data-testid={`${dataTestId}-empty-state`}>\n {emptyState}\n </Text>\n </Box>\n ) : (\n emptyState\n )}\n </Box>\n </>\n )}\n </Box>\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","onClick","dataTestId","rest","jsxs","Button","e","Text","Flex","Icon","MenuButtonTooltip","tooltipProps","isMenuOpen","isTooltipOpen","setIsTooltipOpen","useState","onMouseEnter","onMouseLeave","Tooltip","Box","label","leftElement","onSelect","shouldTruncateText","type","isSubmenuOpen","setIsSubmenuOpen","handleItemSelect","valueText","listProps","portalled","open","lazyMount","unmountOnExit","Menu","CMenu.TriggerItem","MenuItemLabel","checked","value","disabled","tooltipLabel","checkboxRest","CMenu.Item","Checkbox","selected","defaultRest","Fragment","content","MenuToggleButtons","groupName","hasSelectedItems","onToggle","isGrouped","ClearAllButton","SelectAllButton","buttonProps","positionerProps","submenuTrigger","onOpenChange","contentRef","usePortalContentRef","canSelectAll","canSelectGroups","emptyState","groupSortOrder","loading","maxH","menuItems","minW","onSearch","onListSelect","onSelectAll","searchable","searchPlaceholder","restListProps","isOpen","setIsOpen","searchText","setSearchText","filteredMenuItems","setFilteredMenuItems","groupedItems","useMemo","groups","item","group","entries","groupLabelA","groupLabelB","indexA","indexB","checkboxItems","isChecked","selectedCheckboxItems","handleToggleSelectAll","clear","newSelectedItems","filteredCheckboxItems","cItem","handleSelect","allSelectedItems","filterOptions","searchInput","itemsToFilter","handleSearch","clearSearch","handleOpenChange","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":";;;;;;;;;;;;;;;;;;AAGA,MAAM,CAACA,IAAcC,CAAc,IAAIC,EAAc;AAAA,EACnD,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAAA,EACd,QAAQ;AACV,CAAC,GCDKC,KAAYC,EAAW,CAACC,GAAOC,MAAQ;AAC3C,QAAMC,IAAON,EAAgB,GACvBO,IAAcC,EAAWF,EAAK,cAAa,GAAIF,CAAK;AAC1D,SAAuBK,gBAAAA,EAAAA,IAAIC,EAAI,KAAK,EAAE,GAAGH,GAAa,KAAAF,GAAK;AAC7D,CAAC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MAAMe,GAAaf,CAAI;AAAA,wBAAA;AAAA,wBAP5B,aAAa+B,EAAU,IAAI3F,CAAI,IAAIoG,EAAK;AAAA,sBAQ/C;AAAA,oBAEH,CAAA;AAAA,kBAAA;AAAA,gBACH,EAAA,GA/BuBT,CAgCzB;AAAA,cAAA,CAEH,EAAA,CACH,IAEA3N,gBAAAA,MAAAsJ,EAAAA,UAAA,EACE,UAACtJ,gBAAAA,EAAAA,IAAA2H,GAAA,EAAI,GAAG,GACL,UAAO,OAAA4C,KAAe,WACrBvK,gBAAAA,EAAAA,IAAC2H,KAAI,WAAU,UACb,UAAC3H,gBAAAA,EAAA,IAAA+G,GAAA,EAAK,MAAK,MAAK,SAAQ,UAAS,eAAa,GAAGL,CAAU,gBACxD,UACH6D,EAAA,CAAA,EACF,CAAA,IAEAA,EAAA,CAEJ,GACF,EAEJ,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,WAEJ,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACF;AAEJ;","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"),N=require("react"),l=require("./button.component-DjdgBXDC.js"),D=require("./flex-BOU6tYUd.js"),e=require("./dialog-CZFwddWp.js"),k=require("./heading.component-DMAQO_-m.js"),q=require("./usePortalContentRef-CTrvBQ7I.js"),v=require("./use-breakpoint-uBg4-8yY.js"),y=require("./index-Ts8g8jZd.js"),S=({children:n,destructive:r,disabled:d,hideCancel:s=!1,loading:c,loadingText:u,onCancel:x,onSubmit:m,submitText:p="Submit",cancelText:j="Cancel",buttonPosition:g="space-between",["data-testid"]:o="kibble-modal-footer",...a})=>t.jsxRuntimeExports.jsx(e.DialogFooter,{className:"Modal__Footer","data-testid":o,...a,children:n||t.jsxRuntimeExports.jsxs(D.Flex,{alignItems:"center",justifyContent:g,w:"100%",children:[!s&&t.jsxRuntimeExports.jsx(e.DialogActionTrigger,{asChild:!0,className:"Modal__CancelButton","data-testid":`${o}-cancel-button`,children:t.jsxRuntimeExports.jsx(l.Button,{variant:"tertiary",onClick:x,children:j})}),t.jsxRuntimeExports.jsx(l.Button,{className:"Modal__SubmitButton","data-testid":`${o}-submit-button`,onClick:m,loading:c,loadingText:u,disabled:d,type:"submit",variant:r?"primaryDestructive":"primary",children:p})]})}),P=({children:n,footerProps:r,fullScreenMobile:d=!0,header:s,headerProps:c,hideCloseButton:u=!1,closeButtonProps:x,hideFooter:m=!1,motionPreset:p="slide-in-bottom",placement:j="center",showExpandButton:g=!1,size:o="md",trigger:a,["data-testid"]:i="kibble-modal",portalled:h=!0,contentProps:E,positionerProps:_,...f})=>{const{contentRef:R}=q.usePortalContentRef(),[b,B]=N.useState(!1),C=v.useBreakpointValue({base:d?"full":o,md:o});return t.jsxRuntimeExports.jsxs(e.DialogRoot,{motionPreset:p,placement:j,size:C,expanded:b,"data-testid":`${i}-root`,...f,children:[a&&t.jsxRuntimeExports.jsx(e.DialogTrigger,{asChild:!0,children:a}),t.jsxRuntimeExports.jsxs(y.Portal,{disabled:!h,container:R||void 0,children:[t.jsxRuntimeExports.jsx(e.DialogBackdrop,{}),t.jsxRuntimeExports.jsx(e.DialogPositioner,{..._,children:t.jsxRuntimeExports.jsxs(e.DialogContent,{className:"Modal","data-testid":`${i}-content`,...E,ref:R,children:[!u&&t.jsxRuntimeExports.jsx(e.DialogCloseTrigger,{asChild:!0,className:"Modal__CloseButton","data-testid":"kibble-modal-close-button",children:t.jsxRuntimeExports.jsx(l.Button,{iconName:"close",variant:"ghostNeutral",...x})}),g&&t.jsxRuntimeExports.jsx(l.Button,{className:"Modal__ExpandButton","data-testid":`${i}-expand-button`,variant:"ghostNeutral",iconName:b?"arrowsIn":"arrowsOut",position:"absolute",top:2,right:12,onClick:()=>B(M=>!M)}),t.jsxRuntimeExports.jsx(e.DialogHeader,{className:"Modal__Header","data-testid":`${i}-header`,children:s&&t.jsxRuntimeExports.jsx(e.DialogTitle,{fontSize:"2xl",className:"Modal__Title","data-testid":`${i}-title`,asChild:!0,children:typeof s=="string"?t.jsxRuntimeExports.jsx(k.WrappedHeading,{p:0,...c,children:s}):s})}),t.jsxRuntimeExports.jsx(e.DialogBody,{className:"Modal__Body","data-testid":`${i}-body`,children:n}),!m&&t.jsxRuntimeExports.jsx(S,{...r})]})})]})]})},$=["xs","sm","md","lg","cover","full"],w=["center","top","bottom"],z=["inside","outside"],F=["scale","slide-in-bottom","slide-in-top","slide-in-left","slide-in-right","none"];exports.Modal=P;exports.modalMotionPresets=F;exports.modalPlacements=w;exports.modalScrollBehaviors=z;exports.modalSizes=$;
|
|
2
|
+
//# sourceMappingURL=modal.types-74os4Bqi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.types-74os4Bqi.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 /** Content to be rendered in the footer. */\n children?: React.ReactNode;\n /** If true, the submit button will be displayed as a destructive button.\n * @default false\n */\n destructive?: boolean;\n /** If true, the footer will be disabled. */\n disabled?: boolean;\n /** If true, the cancel button will not be displayed.\n * @default false\n */\n hideCancel?: boolean;\n /** If true, the submit button will be displayed with a loading state. */\n loading?: boolean;\n /** Text to display in the loading state. */\n loadingText?: string;\n /** Text to display in the cancel button. */\n cancelText?: string;\n /** Callback function to be called when the cancel button is clicked. */\n onCancel?: () => void;\n /** Callback function to be called when the submit button is clicked. */\n onSubmit?: () => void | Promise<void>;\n /** Text to display in the submit button. */\n submitText?: string;\n /** Position of the buttons.\n * @default space-between\n */\n buttonPosition?: 'start' | 'end' | 'space-between';\n /** Data test id for the footer.\n * @default kibble-modal-footer\n */\n 'data-testid'?: 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 cancelText = 'Cancel',\n buttonPosition = 'space-between',\n ['data-testid']: dataTestId = 'kibble-modal-footer',\n ...rest\n}: ModalFooterProps): React.JSX.Element => {\n return (\n <Dialog.Footer className=\"Modal__Footer\" data-testid={dataTestId} {...rest}>\n {children ? (\n children\n ) : (\n <Flex alignItems=\"center\" justifyContent={buttonPosition} w=\"100%\">\n {!hideCancel && (\n <Dialog.ActionTrigger asChild className=\"Modal__CancelButton\" data-testid={`${dataTestId}-cancel-button`}>\n <Button variant=\"tertiary\" onClick={onCancel}>\n {cancelText}\n </Button>\n </Dialog.ActionTrigger>\n )}\n <Button\n className=\"Modal__SubmitButton\"\n data-testid={`${dataTestId}-submit-button`}\n onClick={onSubmit}\n loading={loading}\n loadingText={loadingText}\n disabled={disabled}\n type=\"submit\"\n variant={destructive ? 'primaryDestructive' : 'primary'}\n >\n {submitText}\n </Button>\n </Flex>\n )}\n </Dialog.Footer>\n );\n};\n","import React, { 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, ButtonProps } from 'components/Button/button.component';\nimport { useBreakpointValue } from '@chakra-ui/react';\nimport { usePortalContentRef } from 'hooks/usePortalContentRef';\n\nexport interface ModalProps extends Dialog.RootProps {\n /** Props to customize the default footer. If a custom footer is needed, you can use the `children` prop to build your own. */\n footerProps?: ModalFooterProps;\n /**\n * Whether to use full screen on mobile devices.\n * @default true\n */\n fullScreenMobile?: boolean;\n /** The header of the modal. */\n header?: React.ReactNode;\n /** Props to customize the header when passed as a string. */\n headerProps?: HeadingProps;\n /**\n * Whether to hide the close button.\n * @default false\n */\n hideCloseButton?: boolean;\n /** Props to customize the close button. */\n closeButtonProps?: Omit<ButtonProps, 'iconName' | 'onClick'>;\n /**\n * Whether to hide the modal footer.\n * @default false\n */\n hideFooter?: boolean;\n /** The animation preset for the modal.\n * @default slide-in-bottom\n */\n motionPreset?: ModalMotionPreset;\n /** The placement of the modal.\n * @default center\n */\n placement?: ModalPlacement;\n /**\n * Whether to show the expand button.\n * @default false\n */\n showExpandButton?: boolean;\n /** The size of the modal.\n * @default md\n */\n size?: ConditionalValue<ModalSize>;\n /** The element used to open the modal. If no trigger is provided, the modal will need to be controlled with the `open` and `onOpenChange` props. */\n trigger?: React.ReactNode;\n /**\n * Whether to render the modal in a portal. Set to false if this modal is nested inside another modal.\n * @default true\n */\n portalled?: boolean;\n /** Props to customize the content of the modal. */\n contentProps?: Dialog.ContentProps;\n /** Props to customize the positioner of the modal. */\n positionerProps?: Dialog.PositionerProps;\n /** Data test id for the modal.\n * @default kibble-modal\n */\n 'data-testid'?: string;\n}\n\nexport const Modal = ({\n children,\n footerProps,\n fullScreenMobile = true,\n header,\n headerProps,\n hideCloseButton = false,\n closeButtonProps,\n hideFooter = false,\n motionPreset = 'slide-in-bottom',\n placement = 'center',\n showExpandButton = false,\n size = 'md',\n trigger,\n ['data-testid']: dataTestId = 'kibble-modal',\n portalled = true,\n contentProps,\n positionerProps,\n ...rest\n}: ModalProps): React.JSX.Element => {\n const { contentRef } = usePortalContentRef();\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\n motionPreset={motionPreset}\n placement={placement}\n size={computedSize}\n expanded={isExpanded}\n data-testid={`${dataTestId}-root`}\n {...rest}\n >\n {trigger && <Dialog.Trigger asChild>{trigger}</Dialog.Trigger>}\n <Portal disabled={!portalled} container={contentRef || undefined}>\n <Dialog.Backdrop />\n <Dialog.Positioner {...positionerProps}>\n <Dialog.Content className=\"Modal\" data-testid={`${dataTestId}-content`} {...contentProps} ref={contentRef}>\n {!hideCloseButton && (\n <Dialog.CloseTrigger asChild className=\"Modal__CloseButton\" data-testid=\"kibble-modal-close-button\">\n <Button iconName=\"close\" variant=\"ghostNeutral\" {...closeButtonProps} />\n </Dialog.CloseTrigger>\n )}\n {showExpandButton && (\n <Button\n className=\"Modal__ExpandButton\"\n data-testid={`${dataTestId}-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={`${dataTestId}-header`}>\n {header && (\n <Dialog.Title fontSize=\"2xl\" className=\"Modal__Title\" data-testid={`${dataTestId}-title`} asChild>\n {typeof header === 'string' ? (\n <Heading p={0} {...headerProps}>\n {header}\n </Heading>\n ) : (\n header\n )}\n </Dialog.Title>\n )}\n </Dialog.Header>\n <Dialog.Body className=\"Modal__Body\" data-testid={`${dataTestId}-body`}>\n {children}\n </Dialog.Body>\n {!hideFooter && <ModalFooter {...footerProps} />}\n </Dialog.Content>\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","cancelText","buttonPosition","dataTestId","rest","Dialog.Footer","Flex","Dialog.ActionTrigger","Button","jsx","Modal","footerProps","fullScreenMobile","header","headerProps","hideCloseButton","closeButtonProps","hideFooter","motionPreset","placement","showExpandButton","size","trigger","portalled","contentProps","positionerProps","contentRef","usePortalContentRef","isExpanded","setIsExpanded","useState","computedSize","useBreakpointValue","jsxs","Dialog.Root","Dialog.Trigger","Portal","Dialog.Backdrop","Dialog.Positioner","Dialog.Content","Dialog.CloseTrigger","prev","Dialog.Header","Dialog.Title","Heading","Dialog.Body","modalSizes","modalPlacements","modalScrollBehaviors","modalMotionPresets"],"mappings":"kWAwCaA,EAAc,CAAC,CAC1B,SAAAC,EACA,YAAAC,EACA,SAAAC,EACA,WAAAC,EAAa,GACb,QAAAC,EACA,YAAAC,EACA,SAAAC,EACA,SAAAC,EACA,WAAAC,EAAa,SACb,WAAAC,EAAa,SACb,eAAAC,EAAiB,gBACjB,CAAC,eAAgBC,EAAa,sBAC9B,GAAGC,CACL,4BAEKC,eAAA,CAAc,UAAU,gBAAgB,cAAaF,EAAa,GAAGC,EACnE,SACCZ,4BAECc,OAAK,CAAA,WAAW,SAAS,eAAgBJ,EAAgB,EAAE,OACzD,SAAA,CAAC,CAAAP,2BACCY,EAAO,oBAAP,CAAqB,QAAO,GAAC,UAAU,sBAAsB,cAAa,GAAGJ,CAAU,iBACtF,iCAACK,SAAO,CAAA,QAAQ,WAAW,QAASV,EACjC,WACH,CACF,CAAA,EAEFW,EAAA,kBAAA,IAACD,EAAA,OAAA,CACC,UAAU,sBACV,cAAa,GAAGL,CAAU,iBAC1B,QAASJ,EACT,QAAAH,EACA,YAAAC,EACA,SAAAH,EACA,KAAK,SACL,QAASD,EAAc,qBAAuB,UAE7C,SAAAO,CAAA,CAAA,CACH,CAAA,CACF,CAEJ,CAAA,ECbSU,EAAQ,CAAC,CACpB,SAAAlB,EACA,YAAAmB,EAC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SAAS,WACT,IAAK,EACL,MAAO,GACP,QAAS,IAAMC,EAAeY,GAAS,CAACA,CAAI,CAAA,CAC9C,0BAEDC,EAAAA,aAAA,CAAc,UAAU,gBAAgB,cAAa,GAAGvC,CAAU,UAChE,YACEM,EAAAA,kBAAAA,IAAAkC,EAAAA,YAAA,CAAa,SAAS,MAAM,UAAU,eAAe,cAAa,GAAGxC,CAAU,SAAU,QAAO,GAC9F,gBAAOU,GAAW,SAChBJ,wBAAAmC,EAAAA,eAAA,CAAQ,EAAG,EAAI,GAAG9B,EAChB,SACHD,EAAA,EAEAA,CAEJ,CAAA,EAEJ,EACAJ,EAAAA,kBAAAA,IAACoC,EAAO,WAAP,CAAY,UAAU,cAAc,cAAa,GAAG1C,CAAU,QAC5D,SAAAX,EACH,EACC,CAACyB,GAAeR,EAAA,kBAAA,IAAAlB,EAAA,CAAa,GAAGoB,CAAa,CAAA,CAAA,CAAA,CAChD,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CAAA,CACF,CAEJ,ECrJamC,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,115 @@
|
|
|
1
|
+
import { j as t } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { useState as B } from "react";
|
|
3
|
+
import { B as l } from "./button.component-BO6oee_V.js";
|
|
4
|
+
import { F as y } from "./flex-CX-8gE9T.js";
|
|
5
|
+
import { D as k, a as v, b as $, c as S, d as P, e as F, f as w, g as E, h as R, i as z, j as H } from "./dialog-B9jifvV4.js";
|
|
6
|
+
import { W } from "./heading.component-7ikcgDco.js";
|
|
7
|
+
import { u as A } from "./usePortalContentRef-DO_jc4W9.js";
|
|
8
|
+
import { u as O } from "./use-breakpoint-MQ7agQJe.js";
|
|
9
|
+
import { P as V } from "./index-C9UYIjEB.js";
|
|
10
|
+
const q = ({
|
|
11
|
+
children: s,
|
|
12
|
+
destructive: r,
|
|
13
|
+
disabled: n,
|
|
14
|
+
hideCancel: a = !1,
|
|
15
|
+
loading: d,
|
|
16
|
+
loadingText: c,
|
|
17
|
+
onCancel: m,
|
|
18
|
+
onSubmit: u,
|
|
19
|
+
submitText: p = "Submit",
|
|
20
|
+
cancelText: x = "Cancel",
|
|
21
|
+
buttonPosition: f = "space-between",
|
|
22
|
+
["data-testid"]: o = "kibble-modal-footer",
|
|
23
|
+
...i
|
|
24
|
+
}) => /* @__PURE__ */ t.jsx(k, { className: "Modal__Footer", "data-testid": o, ...i, children: s || /* @__PURE__ */ t.jsxs(y, { alignItems: "center", justifyContent: f, w: "100%", children: [
|
|
25
|
+
!a && /* @__PURE__ */ t.jsx(v, { asChild: !0, className: "Modal__CancelButton", "data-testid": `${o}-cancel-button`, children: /* @__PURE__ */ t.jsx(l, { variant: "tertiary", onClick: m, children: x }) }),
|
|
26
|
+
/* @__PURE__ */ t.jsx(
|
|
27
|
+
l,
|
|
28
|
+
{
|
|
29
|
+
className: "Modal__SubmitButton",
|
|
30
|
+
"data-testid": `${o}-submit-button`,
|
|
31
|
+
onClick: u,
|
|
32
|
+
loading: d,
|
|
33
|
+
loadingText: c,
|
|
34
|
+
disabled: n,
|
|
35
|
+
type: "submit",
|
|
36
|
+
variant: r ? "primaryDestructive" : "primary",
|
|
37
|
+
children: p
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
] }) }), T = ({
|
|
41
|
+
children: s,
|
|
42
|
+
footerProps: r,
|
|
43
|
+
fullScreenMobile: n = !0,
|
|
44
|
+
header: a,
|
|
45
|
+
headerProps: d,
|
|
46
|
+
hideCloseButton: c = !1,
|
|
47
|
+
closeButtonProps: m,
|
|
48
|
+
hideFooter: u = !1,
|
|
49
|
+
motionPreset: p = "slide-in-bottom",
|
|
50
|
+
placement: x = "center",
|
|
51
|
+
showExpandButton: f = !1,
|
|
52
|
+
size: o = "md",
|
|
53
|
+
trigger: i,
|
|
54
|
+
["data-testid"]: e = "kibble-modal",
|
|
55
|
+
portalled: j = !0,
|
|
56
|
+
contentProps: h,
|
|
57
|
+
positionerProps: _,
|
|
58
|
+
...C
|
|
59
|
+
}) => {
|
|
60
|
+
const { contentRef: b } = A(), [g, D] = B(!1), M = O({
|
|
61
|
+
base: n ? "full" : o,
|
|
62
|
+
md: o
|
|
63
|
+
});
|
|
64
|
+
return /* @__PURE__ */ t.jsxs(
|
|
65
|
+
$,
|
|
66
|
+
{
|
|
67
|
+
motionPreset: p,
|
|
68
|
+
placement: x,
|
|
69
|
+
size: M,
|
|
70
|
+
expanded: g,
|
|
71
|
+
"data-testid": `${e}-root`,
|
|
72
|
+
...C,
|
|
73
|
+
children: [
|
|
74
|
+
i && /* @__PURE__ */ t.jsx(S, { asChild: !0, children: i }),
|
|
75
|
+
/* @__PURE__ */ t.jsxs(V, { disabled: !j, container: b || void 0, children: [
|
|
76
|
+
/* @__PURE__ */ t.jsx(P, {}),
|
|
77
|
+
/* @__PURE__ */ t.jsx(F, { ..._, children: /* @__PURE__ */ t.jsxs(w, { className: "Modal", "data-testid": `${e}-content`, ...h, ref: b, children: [
|
|
78
|
+
!c && /* @__PURE__ */ t.jsx(E, { asChild: !0, className: "Modal__CloseButton", "data-testid": "kibble-modal-close-button", children: /* @__PURE__ */ t.jsx(l, { iconName: "close", variant: "ghostNeutral", ...m }) }),
|
|
79
|
+
f && /* @__PURE__ */ t.jsx(
|
|
80
|
+
l,
|
|
81
|
+
{
|
|
82
|
+
className: "Modal__ExpandButton",
|
|
83
|
+
"data-testid": `${e}-expand-button`,
|
|
84
|
+
variant: "ghostNeutral",
|
|
85
|
+
iconName: g ? "arrowsIn" : "arrowsOut",
|
|
86
|
+
position: "absolute",
|
|
87
|
+
top: 2,
|
|
88
|
+
right: 12,
|
|
89
|
+
onClick: () => D((N) => !N)
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
/* @__PURE__ */ t.jsx(R, { className: "Modal__Header", "data-testid": `${e}-header`, children: a && /* @__PURE__ */ t.jsx(z, { fontSize: "2xl", className: "Modal__Title", "data-testid": `${e}-title`, asChild: !0, children: typeof a == "string" ? /* @__PURE__ */ t.jsx(W, { p: 0, ...d, children: a }) : a }) }),
|
|
93
|
+
/* @__PURE__ */ t.jsx(H, { className: "Modal__Body", "data-testid": `${e}-body`, children: s }),
|
|
94
|
+
!u && /* @__PURE__ */ t.jsx(q, { ...r })
|
|
95
|
+
] }) })
|
|
96
|
+
] })
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
}, I = ["xs", "sm", "md", "lg", "cover", "full"], tt = ["center", "top", "bottom"], at = ["inside", "outside"], ot = [
|
|
101
|
+
"scale",
|
|
102
|
+
"slide-in-bottom",
|
|
103
|
+
"slide-in-top",
|
|
104
|
+
"slide-in-left",
|
|
105
|
+
"slide-in-right",
|
|
106
|
+
"none"
|
|
107
|
+
];
|
|
108
|
+
export {
|
|
109
|
+
T as M,
|
|
110
|
+
tt as a,
|
|
111
|
+
at as b,
|
|
112
|
+
ot as c,
|
|
113
|
+
I as m
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=modal.types-B0rK6xJy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.types-B0rK6xJy.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 /** Content to be rendered in the footer. */\n children?: React.ReactNode;\n /** If true, the submit button will be displayed as a destructive button.\n * @default false\n */\n destructive?: boolean;\n /** If true, the footer will be disabled. */\n disabled?: boolean;\n /** If true, the cancel button will not be displayed.\n * @default false\n */\n hideCancel?: boolean;\n /** If true, the submit button will be displayed with a loading state. */\n loading?: boolean;\n /** Text to display in the loading state. */\n loadingText?: string;\n /** Text to display in the cancel button. */\n cancelText?: string;\n /** Callback function to be called when the cancel button is clicked. */\n onCancel?: () => void;\n /** Callback function to be called when the submit button is clicked. */\n onSubmit?: () => void | Promise<void>;\n /** Text to display in the submit button. */\n submitText?: string;\n /** Position of the buttons.\n * @default space-between\n */\n buttonPosition?: 'start' | 'end' | 'space-between';\n /** Data test id for the footer.\n * @default kibble-modal-footer\n */\n 'data-testid'?: 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 cancelText = 'Cancel',\n buttonPosition = 'space-between',\n ['data-testid']: dataTestId = 'kibble-modal-footer',\n ...rest\n}: ModalFooterProps): React.JSX.Element => {\n return (\n <Dialog.Footer className=\"Modal__Footer\" data-testid={dataTestId} {...rest}>\n {children ? (\n children\n ) : (\n <Flex alignItems=\"center\" justifyContent={buttonPosition} w=\"100%\">\n {!hideCancel && (\n <Dialog.ActionTrigger asChild className=\"Modal__CancelButton\" data-testid={`${dataTestId}-cancel-button`}>\n <Button variant=\"tertiary\" onClick={onCancel}>\n {cancelText}\n </Button>\n </Dialog.ActionTrigger>\n )}\n <Button\n className=\"Modal__SubmitButton\"\n data-testid={`${dataTestId}-submit-button`}\n onClick={onSubmit}\n loading={loading}\n loadingText={loadingText}\n disabled={disabled}\n type=\"submit\"\n variant={destructive ? 'primaryDestructive' : 'primary'}\n >\n {submitText}\n </Button>\n </Flex>\n )}\n </Dialog.Footer>\n );\n};\n","import React, { 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, ButtonProps } from 'components/Button/button.component';\nimport { useBreakpointValue } from '@chakra-ui/react';\nimport { usePortalContentRef } from 'hooks/usePortalContentRef';\n\nexport interface ModalProps extends Dialog.RootProps {\n /** Props to customize the default footer. If a custom footer is needed, you can use the `children` prop to build your own. */\n footerProps?: ModalFooterProps;\n /**\n * Whether to use full screen on mobile devices.\n * @default true\n */\n fullScreenMobile?: boolean;\n /** The header of the modal. */\n header?: React.ReactNode;\n /** Props to customize the header when passed as a string. */\n headerProps?: HeadingProps;\n /**\n * Whether to hide the close button.\n * @default false\n */\n hideCloseButton?: boolean;\n /** Props to customize the close button. */\n closeButtonProps?: Omit<ButtonProps, 'iconName' | 'onClick'>;\n /**\n * Whether to hide the modal footer.\n * @default false\n */\n hideFooter?: boolean;\n /** The animation preset for the modal.\n * @default slide-in-bottom\n */\n motionPreset?: ModalMotionPreset;\n /** The placement of the modal.\n * @default center\n */\n placement?: ModalPlacement;\n /**\n * Whether to show the expand button.\n * @default false\n */\n showExpandButton?: boolean;\n /** The size of the modal.\n * @default md\n */\n size?: ConditionalValue<ModalSize>;\n /** The element used to open the modal. If no trigger is provided, the modal will need to be controlled with the `open` and `onOpenChange` props. */\n trigger?: React.ReactNode;\n /**\n * Whether to render the modal in a portal. Set to false if this modal is nested inside another modal.\n * @default true\n */\n portalled?: boolean;\n /** Props to customize the content of the modal. */\n contentProps?: Dialog.ContentProps;\n /** Props to customize the positioner of the modal. */\n positionerProps?: Dialog.PositionerProps;\n /** Data test id for the modal.\n * @default kibble-modal\n */\n 'data-testid'?: string;\n}\n\nexport const Modal = ({\n children,\n footerProps,\n fullScreenMobile = true,\n header,\n headerProps,\n hideCloseButton = false,\n closeButtonProps,\n hideFooter = false,\n motionPreset = 'slide-in-bottom',\n placement = 'center',\n showExpandButton = false,\n size = 'md',\n trigger,\n ['data-testid']: dataTestId = 'kibble-modal',\n portalled = true,\n contentProps,\n positionerProps,\n ...rest\n}: ModalProps): React.JSX.Element => {\n const { contentRef } = usePortalContentRef();\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\n motionPreset={motionPreset}\n placement={placement}\n size={computedSize}\n expanded={isExpanded}\n data-testid={`${dataTestId}-root`}\n {...rest}\n >\n {trigger && <Dialog.Trigger asChild>{trigger}</Dialog.Trigger>}\n <Portal disabled={!portalled} container={contentRef || undefined}>\n <Dialog.Backdrop />\n <Dialog.Positioner {...positionerProps}>\n <Dialog.Content className=\"Modal\" data-testid={`${dataTestId}-content`} {...contentProps} ref={contentRef}>\n {!hideCloseButton && (\n <Dialog.CloseTrigger asChild className=\"Modal__CloseButton\" data-testid=\"kibble-modal-close-button\">\n <Button iconName=\"close\" variant=\"ghostNeutral\" {...closeButtonProps} />\n </Dialog.CloseTrigger>\n )}\n {showExpandButton && (\n <Button\n className=\"Modal__ExpandButton\"\n data-testid={`${dataTestId}-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={`${dataTestId}-header`}>\n {header && (\n <Dialog.Title fontSize=\"2xl\" className=\"Modal__Title\" data-testid={`${dataTestId}-title`} asChild>\n {typeof header === 'string' ? (\n <Heading p={0} {...headerProps}>\n {header}\n </Heading>\n ) : (\n header\n )}\n </Dialog.Title>\n )}\n </Dialog.Header>\n <Dialog.Body className=\"Modal__Body\" data-testid={`${dataTestId}-body`}>\n {children}\n </Dialog.Body>\n {!hideFooter && <ModalFooter {...footerProps} />}\n </Dialog.Content>\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","cancelText","buttonPosition","dataTestId","rest","Dialog.Footer","Flex","Dialog.ActionTrigger","Button","jsx","Modal","footerProps","fullScreenMobile","header","headerProps","hideCloseButton","closeButtonProps","hideFooter","motionPreset","placement","showExpandButton","size","trigger","portalled","contentProps","positionerProps","contentRef","usePortalContentRef","isExpanded","setIsExpanded","useState","computedSize","useBreakpointValue","jsxs","Dialog.Root","Dialog.Trigger","Portal","Dialog.Backdrop","Dialog.Positioner","Dialog.Content","Dialog.CloseTrigger","prev","Dialog.Header","Dialog.Title","Heading","Dialog.Body","modalSizes","modalPlacements","modalScrollBehaviors","modalMotionPresets"],"mappings":";;;;;;;;;AAwCO,MAAMA,IAAc,CAAC;AAAA,EAC1B,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,SAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,YAAAC,IAAa;AAAA,EACb,gBAAAC,IAAiB;AAAA,EACjB,CAAC,gBAAgBC,IAAa;AAAA,EAC9B,GAAGC;AACL,4BAEKC,GAAA,EAAc,WAAU,iBAAgB,eAAaF,GAAa,GAAGC,GACnE,UACCZ,4BAECc,GAAK,EAAA,YAAW,UAAS,gBAAgBJ,GAAgB,GAAE,QACzD,UAAA;AAAA,EAAC,CAAAP,2BACCY,GAAA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AAA,IAAAlB,GAAA,EAAa,GAAGoB,EAAa,CAAA;AAAA,UAAA,EAAA,CAChD,EACF,CAAA;AAAA,QAAA,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACF;AAEJ,GCrJamC,IAAa,CAAC,MAAM,MAAM,MAAM,MAAM,SAAS,MAAM,GAGrDC,KAAkB,CAAC,UAAU,OAAO,QAAQ,GAG5CC,KAAuB,CAAC,UAAU,SAAS,GAG3CC,KAAqB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
2
|
+
import { useMemo as d } from "react";
|
|
3
|
+
import { d as f } from "./config-Djkl1N81.js";
|
|
4
|
+
import { S as p } from "./spinner.component-B3dkvoO9.js";
|
|
5
|
+
import { B as g } from "./index-9BerxEcw.js";
|
|
6
|
+
import { u as h } from "./create-slot-recipe-context-D_FXDJGp.js";
|
|
7
|
+
import { F as b } from "./flex-CX-8gE9T.js";
|
|
8
|
+
const C = ["root", "maxElement"], S = {
|
|
7
9
|
blue: {
|
|
8
10
|
root: {
|
|
9
11
|
bgColor: "background.accent",
|
|
@@ -40,7 +42,7 @@ const d = ["root", "maxElement"], h = {
|
|
|
40
42
|
bgColor: "text.contrast"
|
|
41
43
|
}
|
|
42
44
|
}
|
|
43
|
-
},
|
|
45
|
+
}, E = {
|
|
44
46
|
xs: {
|
|
45
47
|
root: {
|
|
46
48
|
fontSize: "8px",
|
|
@@ -81,8 +83,8 @@ const d = ["root", "maxElement"], h = {
|
|
|
81
83
|
width: 1
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
|
-
},
|
|
85
|
-
slots:
|
|
86
|
+
}, w = f({
|
|
87
|
+
slots: C,
|
|
86
88
|
base: {
|
|
87
89
|
root: {
|
|
88
90
|
alignItems: "center",
|
|
@@ -97,23 +99,40 @@ const d = ["root", "maxElement"], h = {
|
|
|
97
99
|
}
|
|
98
100
|
},
|
|
99
101
|
variants: {
|
|
100
|
-
size:
|
|
101
|
-
variant:
|
|
102
|
+
size: E,
|
|
103
|
+
variant: S
|
|
102
104
|
},
|
|
103
105
|
defaultVariants: {
|
|
104
106
|
size: "md",
|
|
105
107
|
variant: "red"
|
|
106
108
|
}
|
|
107
|
-
}),
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
}), z = 99, j = {
|
|
110
|
+
xs: null,
|
|
111
|
+
// The xs size doesn't show a spinner
|
|
112
|
+
sm: "xs",
|
|
113
|
+
md: "xs",
|
|
114
|
+
lg: "sm"
|
|
115
|
+
}, k = {
|
|
116
|
+
red: "dangerOnContrast",
|
|
117
|
+
blue: "interactiveOnContrast",
|
|
118
|
+
green: "brandOnContrast",
|
|
119
|
+
neutral: "subtleOnContrast"
|
|
120
|
+
}, F = ({
|
|
121
|
+
count: t,
|
|
122
|
+
loading: i = !1,
|
|
123
|
+
showCount: a = !0,
|
|
110
124
|
size: o = "md",
|
|
111
|
-
variant:
|
|
125
|
+
variant: e = "red",
|
|
126
|
+
["data-testid"]: l = "kibble-notification-counter",
|
|
127
|
+
...c
|
|
112
128
|
}) => {
|
|
113
|
-
const
|
|
114
|
-
|
|
129
|
+
const n = h({ recipe: w })({ size: o, variant: e }), m = o !== "xs" && a, x = d(() => {
|
|
130
|
+
const s = j[o], u = k[e];
|
|
131
|
+
return i && s ? /* @__PURE__ */ r.jsx(p, { variant: u, size: s }) : t == null ? null : t > z ? /* @__PURE__ */ r.jsx(g, { css: n.maxElement }) : t;
|
|
132
|
+
}, [o, e, i, t, n.maxElement]);
|
|
133
|
+
return /* @__PURE__ */ r.jsx(b, { className: "NotificationCounter", "data-testid": l, css: n.root, ...c, children: m && x });
|
|
115
134
|
};
|
|
116
135
|
export {
|
|
117
|
-
|
|
136
|
+
F as N
|
|
118
137
|
};
|
|
119
|
-
//# sourceMappingURL=notificationCounter.component-
|
|
138
|
+
//# sourceMappingURL=notificationCounter.component-BexkISUl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationCounter.component-BexkISUl.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","import { SpinnerSize } from 'components/Spinner/spinner.types';\nimport { NotificationCounterSize, NotificationCounterVariant } from './notificationCounter.types';\nimport { TypographyVariant } from 'shared/types';\n\nexport const MAX_COUNT = 99;\n\nexport const notificationCounterSpinnerSize: Record<NotificationCounterSize, SpinnerSize | null> = {\n xs: null, // The xs size doesn't show a spinner\n sm: 'xs',\n md: 'xs',\n lg: 'sm',\n};\n\nexport const spinnerVariantToNotificationCounterVariant: Record<NotificationCounterVariant, TypographyVariant> = {\n red: 'dangerOnContrast',\n blue: 'interactiveOnContrast',\n green: 'brandOnContrast',\n neutral: 'subtleOnContrast',\n};\n","import React, { useMemo } 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 {\n MAX_COUNT,\n notificationCounterSpinnerSize,\n spinnerVariantToNotificationCounterVariant,\n} from './notificationCounter.records';\nimport { Spinner } from 'components/Spinner/spinner.component';\nimport { Box } from '@chakra-ui/react/box';\n\nexport interface NotificationCounterProps extends FlexProps {\n /** Value of the notification counter. If count is greater than 99, the count will be hidden and a special indicator will take its place. */\n count?: number;\n /** If true, the notification counter will show a spinner.\n * @default false\n */\n loading?: boolean;\n /** Whether or not to show the counter label. If the size is xs, by default the count label won't be shown.\n * @default true\n */\n showCount?: boolean;\n /** Size of the notification counter\n * @default md\n */\n size?: NotificationCounterSize;\n /** Color variant for the notification counter\n * @default red\n */\n variant?: NotificationCounterVariant;\n /** Data test id for the notification counter.\n * @default kibble-notification-counter\n */\n 'data-testid'?: string;\n}\n\nexport const NotificationCounter = ({\n count,\n loading = false,\n showCount = true,\n size = 'md',\n variant = 'red',\n ['data-testid']: dataTestId = 'kibble-notification-counter',\n ...rest\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 = useMemo(() => {\n const _spinnerSize = notificationCounterSpinnerSize[size];\n const _spinnerVariant = spinnerVariantToNotificationCounterVariant[variant];\n\n if (loading && !!_spinnerSize) return <Spinner variant={_spinnerVariant} size={_spinnerSize} />;\n\n if (count == null) return null; // Handle undefined or null count\n\n if (count > MAX_COUNT) return <Box css={styles.maxElement} />;\n\n return count;\n }, [size, variant, loading, count, styles.maxElement]);\n\n return (\n <Flex className=\"NotificationCounter\" data-testid={dataTestId} css={styles.root} {...rest}>\n {shouldShowCount && counterContent}\n </Flex>\n );\n};\n"],"names":["notificationCounterSlots","notificationCounterVariantStyles","notificationCounterSizeStyles","notificationCounterRecipe","defineSlotRecipe","MAX_COUNT","notificationCounterSpinnerSize","spinnerVariantToNotificationCounterVariant","NotificationCounter","count","loading","showCount","size","variant","dataTestId","rest","styles","useSlotRecipe","shouldShowCount","counterContent","useMemo","_spinnerSize","_spinnerVariant","Spinner","Box","jsx","Flex"],"mappings":";;;;;;;AAGA,MAAMA,IAA2B,CAAC,QAAQ,YAAY,GAGhDC,IAGF;AAAA,EACF,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,OAAO;AAAA,IACT;AAAA,IACA,YAAY;AAAA,MACV,SAAS;AAAA,IAAA;AAAA,EAEb;AAAA,EACA,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,OAAO;AAAA,IACT;AAAA,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jsx-runtime-BjDatQAs.js"),d=require("react"),g=require("./config-jChwZPSv.js"),h=require("./spinner.component-DuW1_IWM.js"),C=require("./index-BQRnVsAg.js"),b=require("./create-slot-recipe-context-HXE1VazG.js"),f=require("./flex-BOU6tYUd.js"),p=["root","maxElement"],S={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"}}},E={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}}},R=g.defineSlotRecipe({slots:p,base:{root:{alignItems:"center",border:"1px",borderColor:"background",borderRadius:"full",fontWeight:"semibold",justifyContent:"center"},maxElement:{borderRadius:"full"}},variants:{size:E,variant:S},defaultVariants:{size:"md",variant:"red"}}),w=99,j={xs:null,sm:"xs",md:"xs",lg:"sm"},q={red:"dangerOnContrast",blue:"interactiveOnContrast",green:"brandOnContrast",neutral:"subtleOnContrast"},z=({count:t,loading:i=!1,showCount:a=!0,size:e="md",variant:o="red",["data-testid"]:c="kibble-notification-counter",...l})=>{const n=b.useSlotRecipe({recipe:R})({size:e,variant:o}),u=e!=="xs"&&a,x=d.useMemo(()=>{const s=j[e],m=q[o];return i&&s?r.jsxRuntimeExports.jsx(h.Spinner,{variant:m,size:s}):t==null?null:t>w?r.jsxRuntimeExports.jsx(C.Box,{css:n.maxElement}):t},[e,o,i,t,n.maxElement]);return r.jsxRuntimeExports.jsx(f.Flex,{className:"NotificationCounter","data-testid":c,css:n.root,...l,children:u&&x})};exports.NotificationCounter=z;
|
|
2
|
+
//# sourceMappingURL=notificationCounter.component-DJpUXeXm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationCounter.component-DJpUXeXm.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","import { SpinnerSize } from 'components/Spinner/spinner.types';\nimport { NotificationCounterSize, NotificationCounterVariant } from './notificationCounter.types';\nimport { TypographyVariant } from 'shared/types';\n\nexport const MAX_COUNT = 99;\n\nexport const notificationCounterSpinnerSize: Record<NotificationCounterSize, SpinnerSize | null> = {\n xs: null, // The xs size doesn't show a spinner\n sm: 'xs',\n md: 'xs',\n lg: 'sm',\n};\n\nexport const spinnerVariantToNotificationCounterVariant: Record<NotificationCounterVariant, TypographyVariant> = {\n red: 'dangerOnContrast',\n blue: 'interactiveOnContrast',\n green: 'brandOnContrast',\n neutral: 'subtleOnContrast',\n};\n","import React, { useMemo } 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 {\n MAX_COUNT,\n notificationCounterSpinnerSize,\n spinnerVariantToNotificationCounterVariant,\n} from './notificationCounter.records';\nimport { Spinner } from 'components/Spinner/spinner.component';\nimport { Box } from '@chakra-ui/react/box';\n\nexport interface NotificationCounterProps extends FlexProps {\n /** Value of the notification counter. If count is greater than 99, the count will be hidden and a special indicator will take its place. */\n count?: number;\n /** If true, the notification counter will show a spinner.\n * @default false\n */\n loading?: boolean;\n /** Whether or not to show the counter label. If the size is xs, by default the count label won't be shown.\n * @default true\n */\n showCount?: boolean;\n /** Size of the notification counter\n * @default md\n */\n size?: NotificationCounterSize;\n /** Color variant for the notification counter\n * @default red\n */\n variant?: NotificationCounterVariant;\n /** Data test id for the notification counter.\n * @default kibble-notification-counter\n */\n 'data-testid'?: string;\n}\n\nexport const NotificationCounter = ({\n count,\n loading = false,\n showCount = true,\n size = 'md',\n variant = 'red',\n ['data-testid']: dataTestId = 'kibble-notification-counter',\n ...rest\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 = useMemo(() => {\n const _spinnerSize = notificationCounterSpinnerSize[size];\n const _spinnerVariant = spinnerVariantToNotificationCounterVariant[variant];\n\n if (loading && !!_spinnerSize) return <Spinner variant={_spinnerVariant} size={_spinnerSize} />;\n\n if (count == null) return null; // Handle undefined or null count\n\n if (count > MAX_COUNT) return <Box css={styles.maxElement} />;\n\n return count;\n }, [size, variant, loading, count, styles.maxElement]);\n\n return (\n <Flex className=\"NotificationCounter\" data-testid={dataTestId} css={styles.root} {...rest}>\n {shouldShowCount && counterContent}\n </Flex>\n );\n};\n"],"names":["notificationCounterSlots","notificationCounterVariantStyles","notificationCounterSizeStyles","notificationCounterRecipe","defineSlotRecipe","MAX_COUNT","notificationCounterSpinnerSize","spinnerVariantToNotificationCounterVariant","NotificationCounter","count","loading","showCount","size","variant","dataTestId","rest","styles","useSlotRecipe","shouldShowCount","counterContent","useMemo","_spinnerSize","_spinnerVariant","Spinner","Box","jsx","Flex"],"mappings":"mRAGMA,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,CAC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QD,EAEnCQ,EAAiBC,EAAAA,QAAQ,IAAM,CAC7B,MAAAC,EAAef,EAA+BM,CAAI,EAClDU,EAAkBf,EAA2CM,CAAO,EAEtE,OAAAH,GAAaW,0BAAsBE,UAAQ,CAAA,QAASD,EAAiB,KAAMD,CAAc,CAAA,EAEzFZ,GAAS,KAAa,KAEtBA,EAAQJ,0BAAmBmB,EAAI,IAAA,CAAA,IAAKR,EAAO,WAAY,EAEpDP,CAAA,EACN,CAACG,EAAMC,EAASH,EAASD,EAAOO,EAAO,UAAU,CAAC,EAErD,OACGS,EAAAA,kBAAAA,IAAAC,EAAAA,KAAA,CAAK,UAAU,sBAAsB,cAAaZ,EAAY,IAAKE,EAAO,KAAO,GAAGD,EAClF,SAAAG,GAAmBC,EACtB,CAEJ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const r=require("./jsx-runtime-BjDatQAs.js"),p=require("react"),V=require("./index-BQRnVsAg.js"),L=require("./withFormControl-wZA87Sd4.js"),b=require("./icon.component-B1hr5lLa.js"),M=require("./input-group-DUdSDk4o.js"),W=require("./create-slot-recipe-context-HXE1VazG.js"),N=require("./icons-B6Nwr9di.js"),s=require("./use-locale-context-ym21RUxU.js"),I=require("./index-DVyODQn6.js"),g=require("./use-field-context-Cm29IQ7H.js"),a=require("./index-CQURjLlA.js"),G=e=>e&&e.__esModule?e:{default:e},B=G(p),[j,m]=s.createContext({name:"NumberInputContext",hookName:"useNumberInputContext",providerName:"<NumberInputProvider />"}),U=e=>e.children(m()),R=p.forwardRef((e,n)=>{const t=m(),o=a.mergeProps(t.getControlProps(),e);return r.jsxRuntimeExports.jsx(s.ark.div,{...o,ref:n})});R.displayName="NumberInputControl";const f=p.forwardRef((e,n)=>{const t=m(),o=a.mergeProps(t.getDecrementTriggerProps(),e);return r.jsxRuntimeExports.jsx(s.ark.button,{...o,ref:n})});f.displayName="NumberInputDecrementTrigger";const P=p.forwardRef((e,n)=>{const t=m(),o=a.mergeProps(t.getIncrementTriggerProps(),e);return r.jsxRuntimeExports.jsx(s.ark.button,{...o,ref:n})});P.displayName="NumberInputIncrementTrigger";const h=p.forwardRef((e,n)=>{const t=m(),o=a.mergeProps(t.getInputProps(),e),u=g.useFieldContext();return r.jsxRuntimeExports.jsx(s.ark.input,{"aria-describedby":u?.ariaDescribedby,...o,ref:n})});h.displayName="NumberInputInput";const C=p.forwardRef((e,n)=>{const t=m(),o=a.mergeProps(t.getLabelProps(),e);return r.jsxRuntimeExports.jsx(s.ark.label,{...o,ref:n})});C.displayName="NumberInputLabel";const z=e=>{const n=p.useId(),{getRootNode:t}=s.useEnvironmentContext(),{dir:o,locale:u}=s.useLocaleContext(),i=g.useFieldContext(),l={id:n,ids:{label:i?.ids.label,input:i?.ids.control},disabled:i?.disabled,readOnly:i?.readOnly,required:i?.required,invalid:i?.invalid,dir:o,locale:u,getRootNode:t,...e},x=s.useMachine(I.machine,l);return I.connect(x,s.normalizeProps)},v=p.forwardRef((e,n)=>{const[t,o]=s.createSplitProps()(e,["allowMouseWheel","allowOverflow","clampValueOnBlur","defaultValue","disabled","focusInputOnChange","form","formatOptions","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","readOnly","required","spinOnPress","step","translations","value"]),u=z(t),i=a.mergeProps(u.getRootProps(),o);return r.jsxRuntimeExports.jsx(j,{value:u,children:r.jsxRuntimeExports.jsx(s.ark.div,{...i,ref:n})})});v.displayName="NumberInputRoot";const E=p.forwardRef((e,n)=>{const[{value:t},o]=s.createSplitProps()(e,["value"]),u=a.mergeProps(t.getRootProps(),o);return r.jsxRuntimeExports.jsx(j,{value:t,children:r.jsxRuntimeExports.jsx(s.ark.div,{...u,ref:n})})});E.displayName="NumberInputRootProvider";const w=p.forwardRef((e,n)=>{const t=m(),o=a.mergeProps(t.getScrubberProps(),e);return r.jsxRuntimeExports.jsx(s.ark.div,{...o,ref:n})});w.displayName="NumberInputScrubber";const _=p.forwardRef((e,n)=>{const{children:t,...o}=e,u=m(),i=a.mergeProps(u.getValueTextProps(),o);return r.jsxRuntimeExports.jsx(s.ark.span,{...i,ref:n,children:t||u.value})});_.displayName="NumberInputValueText";const{withProvider:y,withContext:d}=W.createSlotRecipeContext({key:"numberInput"});y(E,"root",{forwardAsChild:!0});const H=y(v,"root",{forwardAsChild:!0});d(C,"label",{forwardAsChild:!0});const J=d(h,"input",{forwardAsChild:!0}),q=d(P,"incrementTrigger",{forwardAsChild:!0,defaultProps:{children:r.jsxRuntimeExports.jsx(N.ChevronUpIcon,{})}}),$=d(f,"decrementTrigger",{forwardAsChild:!0,defaultProps:{children:r.jsxRuntimeExports.jsx(N.ChevronDownIcon,{})}}),K=d(R,"control",{forwardAsChild:!0,defaultProps:{children:r.jsxRuntimeExports.jsxs(r.jsxRuntimeExports.Fragment,{children:[r.jsxRuntimeExports.jsx(q,{}),r.jsxRuntimeExports.jsx($,{})]})}});d(w,"scrubber",{forwardAsChild:!0});d(_,"valueText",{forwardAsChild:!0});const Q=U,k=B.default.forwardRef(({disabled:e=!1,inputRef:n,leftAddon:t,leftElement:o,onContrast:u,placeholder:i,rightAddon:l,rightElement:x,showControls:A=!1,size:D="md",value:T,["data-testid"]:c="kibble-number-input",...O},F)=>r.jsxRuntimeExports.jsx(V.Box,{className:"NumberInput__Wrapper",position:"relative",w:"100%",children:r.jsxRuntimeExports.jsxs(H,{className:"NumberInput","data-testid":c,ref:F,value:T,size:D,disabled:e,variant:u?"onContrast":"default",...O,children:[r.jsxRuntimeExports.jsx(M.InputGroup,{className:"NumberInput__InputGroup","data-testid":`${c}-input-group`,startElement:o,startElementProps:{color:"inherit",_groupDisabled:{opacity:.6}},endElement:x,endElementProps:{color:"inherit",paddingInline:1.5,_groupDisabled:{opacity:.6}},startAddon:t,endAddon:l,children:r.jsxRuntimeExports.jsx(J,{className:"NumberInput__Input","data-testid":`${c}-input`,ref:n,placeholder:i})}),r.jsxRuntimeExports.jsx(Q,{children:S=>r.jsxRuntimeExports.jsx("input",{className:"NumberInput__HiddenInput","data-testid":`${c}-hidden-input`,type:"hidden",name:"amount",value:S.valueAsNumber})}),A&&r.jsxRuntimeExports.jsxs(K,{className:"NumberInput__Control","data-testid":`${c}-control`,children:[r.jsxRuntimeExports.jsx(q,{className:"NumberInput__IncrementTrigger","data-testid":`${c}-increment-trigger`,children:r.jsxRuntimeExports.jsx(b.Icon,{name:"chevronUp",variant:u?"onContrast":"default"})}),r.jsxRuntimeExports.jsx($,{className:"NumberInput__DecrementTrigger","data-testid":`${c}-decrement-trigger`,children:r.jsxRuntimeExports.jsx(b.Icon,{name:"chevronDown",variant:u?"onContrast":"default"})})]})]})}));k.displayName="NumberInput";const X=L.withFormControl(k);exports.WrappedNumberInput=X;
|
|
2
|
+
//# sourceMappingURL=numberInput.component-DIABzNV6.js.map
|