@televet/kibble-ui 4.0.0-beta.6 → 4.0.0-beta.61
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/README.md +40 -0
- package/dist/chunks/IconLogo-C4aZqkn1.js +2 -0
- package/dist/chunks/IconLogo-C4aZqkn1.js.map +1 -0
- package/dist/chunks/IconLogo-D8EHZ4Is.js +62 -0
- package/dist/chunks/IconLogo-D8EHZ4Is.js.map +1 -0
- package/dist/chunks/alert.types-Drmhsarm.js +2 -0
- package/dist/chunks/alert.types-Drmhsarm.js.map +1 -0
- package/dist/chunks/alert.types-DzQFs0lR.js +219 -0
- package/dist/chunks/alert.types-DzQFs0lR.js.map +1 -0
- package/dist/chunks/attr-BMs6szZx.js +2 -0
- package/dist/chunks/attr-BMs6szZx.js.map +1 -0
- package/dist/chunks/attr-sm10PXOd.js +5 -0
- package/dist/chunks/attr-sm10PXOd.js.map +1 -0
- package/dist/chunks/avatar.component-BsLD7swi.js +2 -0
- package/dist/chunks/avatar.component-BsLD7swi.js.map +1 -0
- package/dist/chunks/avatar.component-BvnohMit.js +420 -0
- package/dist/chunks/avatar.component-BvnohMit.js.map +1 -0
- package/dist/chunks/avatarGroup.component-BlBlSEzG.js +70 -0
- package/dist/chunks/avatarGroup.component-BlBlSEzG.js.map +1 -0
- package/dist/chunks/avatarGroup.component-DIFhg6s2.js +2 -0
- package/dist/chunks/avatarGroup.component-DIFhg6s2.js.map +1 -0
- package/dist/chunks/box-Baq7UBls.js +2 -0
- package/dist/chunks/box-Baq7UBls.js.map +1 -0
- package/dist/chunks/box-Ck9I7FYv.js +7 -0
- package/dist/chunks/box-Ck9I7FYv.js.map +1 -0
- package/dist/chunks/button.component-BpF3MzbZ.js +67 -0
- package/dist/chunks/button.component-BpF3MzbZ.js.map +1 -0
- package/dist/chunks/button.component-Dd9AfGox.js +2 -0
- package/dist/chunks/button.component-Dd9AfGox.js.map +1 -0
- package/dist/chunks/buttonGroup.component-C7fLZ6bu.js +77 -0
- package/dist/chunks/buttonGroup.component-C7fLZ6bu.js.map +1 -0
- package/dist/chunks/buttonGroup.component-JGTE03ym.js +2 -0
- package/dist/chunks/buttonGroup.component-JGTE03ym.js.map +1 -0
- package/dist/chunks/card.component-DNX41NGG.js +59 -0
- package/dist/chunks/card.component-DNX41NGG.js.map +1 -0
- package/dist/chunks/card.component-KNc4HKSh.js +2 -0
- package/dist/chunks/card.component-KNc4HKSh.js.map +1 -0
- package/dist/chunks/card.types-Cixp7ouC.js +5 -0
- package/dist/chunks/card.types-Cixp7ouC.js.map +1 -0
- package/dist/chunks/card.types-MvkQTTZF.js +2 -0
- package/dist/chunks/card.types-MvkQTTZF.js.map +1 -0
- package/dist/chunks/characterCounter.component-Bw5t3Lme.js +110 -0
- package/dist/chunks/characterCounter.component-Bw5t3Lme.js.map +1 -0
- package/dist/chunks/characterCounter.component-TfF2D3d5.js +2 -0
- package/dist/chunks/characterCounter.component-TfF2D3d5.js.map +1 -0
- package/dist/chunks/checkbox.component-BkZ5Vryu.js +310 -0
- package/dist/chunks/checkbox.component-BkZ5Vryu.js.map +1 -0
- package/dist/chunks/checkbox.component-CcG-gktf.js +2 -0
- package/dist/chunks/checkbox.component-CcG-gktf.js.map +1 -0
- package/dist/chunks/checkbox.records-CIoa-J68.js +266 -0
- package/dist/chunks/checkbox.records-CIoa-J68.js.map +1 -0
- package/dist/chunks/checkbox.records-FPSZIvGa.js +2 -0
- package/dist/chunks/checkbox.records-FPSZIvGa.js.map +1 -0
- package/dist/chunks/checkboxGroup.component-B6mGFJjN.js +52 -0
- package/dist/chunks/checkboxGroup.component-B6mGFJjN.js.map +1 -0
- package/dist/chunks/checkboxGroup.component-DlhqnGf3.js +2 -0
- package/dist/chunks/checkboxGroup.component-DlhqnGf3.js.map +1 -0
- package/dist/chunks/config-BFcXpdZo.js +2 -0
- package/dist/chunks/config-BFcXpdZo.js.map +1 -0
- package/dist/chunks/config-DlTdf-Yt.js +57 -0
- package/dist/chunks/config-DlTdf-Yt.js.map +1 -0
- package/dist/chunks/conversationCard.component-BpJWXB1C.js +2 -0
- package/dist/chunks/conversationCard.component-BpJWXB1C.js.map +1 -0
- package/dist/chunks/conversationCard.component-CLDj5iM-.js +385 -0
- package/dist/chunks/conversationCard.component-CLDj5iM-.js.map +1 -0
- package/dist/chunks/create-recipe-context-D7FewUR4.js +62 -0
- package/dist/chunks/create-recipe-context-D7FewUR4.js.map +1 -0
- package/dist/chunks/create-recipe-context-sESms8Eo.js +2 -0
- package/dist/chunks/create-recipe-context-sESms8Eo.js.map +1 -0
- package/dist/chunks/create-slot-recipe-context-BJmsuxih.js +97 -0
- package/dist/chunks/create-slot-recipe-context-BJmsuxih.js.map +1 -0
- package/dist/chunks/create-slot-recipe-context-IwVIgtBt.js +2 -0
- package/dist/chunks/create-slot-recipe-context-IwVIgtBt.js.map +1 -0
- package/dist/chunks/datePicker.component-B_LcrVdQ.js +15 -0
- package/dist/chunks/datePicker.component-B_LcrVdQ.js.map +1 -0
- package/dist/chunks/datePicker.component-C7nA5KqB.js +3165 -0
- package/dist/chunks/datePicker.component-C7nA5KqB.js.map +1 -0
- package/dist/chunks/dialog-trigger-B5NK0lr-.js +2 -0
- package/dist/chunks/dialog-trigger-B5NK0lr-.js.map +1 -0
- package/dist/chunks/dialog-trigger-BPlPzPU-.js +78 -0
- package/dist/chunks/dialog-trigger-BPlPzPU-.js.map +1 -0
- package/dist/chunks/divider.types-0j5qRXed.js +47 -0
- package/dist/chunks/divider.types-0j5qRXed.js.map +1 -0
- package/dist/chunks/divider.types-CK5oFy-i.js +2 -0
- package/dist/chunks/divider.types-CK5oFy-i.js.map +1 -0
- package/dist/chunks/empty-B5_AO6Pg.js +2 -0
- package/dist/chunks/empty-B5_AO6Pg.js.map +1 -0
- package/dist/chunks/empty-BU2EAux9.js +8 -0
- package/dist/chunks/empty-BU2EAux9.js.map +1 -0
- package/dist/chunks/factory-Ctbv0Ozn.js +500 -0
- package/dist/chunks/factory-Ctbv0Ozn.js.map +1 -0
- package/dist/chunks/factory-D6tdBUPG.js +3 -0
- package/dist/chunks/factory-D6tdBUPG.js.map +1 -0
- package/dist/chunks/flex-D14H6HbP.js +2 -0
- package/dist/chunks/flex-D14H6HbP.js.map +1 -0
- package/dist/chunks/flex-smlF8uQG.js +40 -0
- package/dist/chunks/flex-smlF8uQG.js.map +1 -0
- package/dist/chunks/float-DYLtz2A6.js +64 -0
- package/dist/chunks/float-DYLtz2A6.js.map +1 -0
- package/dist/chunks/float-OQXnYWBw.js +2 -0
- package/dist/chunks/float-OQXnYWBw.js.map +1 -0
- package/dist/chunks/format-BRt-TIiQ.js +2 -0
- package/dist/chunks/format-BRt-TIiQ.js.map +1 -0
- package/dist/chunks/format-DgHM6wFr.js +1275 -0
- package/dist/chunks/format-DgHM6wFr.js.map +1 -0
- package/dist/chunks/grid-item-BV4dwEBP.js +90 -0
- package/dist/chunks/grid-item-BV4dwEBP.js.map +1 -0
- package/dist/chunks/grid-item-CR-sXrjU.js +2 -0
- package/dist/chunks/grid-item-CR-sXrjU.js.map +1 -0
- package/dist/chunks/group-Cv7AQw1b.js +2 -0
- package/dist/chunks/group-Cv7AQw1b.js.map +1 -0
- package/dist/chunks/group-DPCVolOl.js +139 -0
- package/dist/chunks/group-DPCVolOl.js.map +1 -0
- package/dist/chunks/h-stack-Bjx9hlJo.js +2 -0
- package/dist/chunks/h-stack-Bjx9hlJo.js.map +1 -0
- package/dist/chunks/h-stack-Ce6JSBK2.js +12 -0
- package/dist/chunks/h-stack-Ce6JSBK2.js.map +1 -0
- package/dist/chunks/heading.component-CSfaj4T8.js +12 -0
- package/dist/chunks/heading.component-CSfaj4T8.js.map +1 -0
- package/dist/chunks/heading.component-Dbv1l38e.js +2 -0
- package/dist/chunks/heading.component-Dbv1l38e.js.map +1 -0
- package/dist/chunks/icon-button-DTZOklQ9.js +119 -0
- package/dist/chunks/icon-button-DTZOklQ9.js.map +1 -0
- package/dist/chunks/icon-button-DtjZ-SdQ.js +2 -0
- package/dist/chunks/icon-button-DtjZ-SdQ.js.map +1 -0
- package/dist/chunks/icon.component-C0e0UGBw.js +2 -0
- package/dist/chunks/icon.component-C0e0UGBw.js.map +1 -0
- package/dist/chunks/icon.component-DGNCL1Yc.js +42 -0
- package/dist/chunks/icon.component-DGNCL1Yc.js.map +1 -0
- package/dist/chunks/icons-BXxdrBrf.js +216 -0
- package/dist/chunks/icons-BXxdrBrf.js.map +1 -0
- package/dist/chunks/icons-CTpAjbC-.js +2 -0
- package/dist/chunks/icons-CTpAjbC-.js.map +1 -0
- package/dist/chunks/index-BBZxmcrY.js +2 -0
- package/dist/chunks/index-BBZxmcrY.js.map +1 -0
- package/dist/chunks/index-BDnnTdaJ.js +2 -0
- package/dist/chunks/index-BDnnTdaJ.js.map +1 -0
- package/dist/chunks/index-BGwwyukg.js +2 -0
- package/dist/chunks/index-BGwwyukg.js.map +1 -0
- package/dist/chunks/index-BNYygzo-.js +376 -0
- package/dist/chunks/index-BNYygzo-.js.map +1 -0
- package/dist/chunks/index-BYf7SZUC.js +2 -0
- package/dist/chunks/index-BYf7SZUC.js.map +1 -0
- package/dist/chunks/index-BknUKotT.js +38 -0
- package/dist/chunks/index-BknUKotT.js.map +1 -0
- package/dist/chunks/index-C2kxTsiE.js +291 -0
- package/dist/chunks/index-C2kxTsiE.js.map +1 -0
- package/dist/chunks/index-COoMV9Mh.js +2 -0
- package/dist/chunks/index-COoMV9Mh.js.map +1 -0
- package/dist/chunks/index-CYk-7wwG.js +1018 -0
- package/dist/chunks/index-CYk-7wwG.js.map +1 -0
- package/dist/chunks/index-CZ42b9rT.js +3 -0
- package/dist/chunks/index-CZ42b9rT.js.map +1 -0
- package/dist/chunks/index-CZz7hHWb.js +2 -0
- package/dist/chunks/index-CZz7hHWb.js.map +1 -0
- package/dist/chunks/index-CgivotaP.js +20 -0
- package/dist/chunks/index-CgivotaP.js.map +1 -0
- package/dist/chunks/index-CjNAJEk5.js +6313 -0
- package/dist/chunks/index-CjNAJEk5.js.map +1 -0
- package/dist/chunks/index-CkYZf9Pm.js +2 -0
- package/dist/chunks/index-CkYZf9Pm.js.map +1 -0
- package/dist/chunks/index-Co91SHhW.js +141 -0
- package/dist/chunks/index-Co91SHhW.js.map +1 -0
- package/dist/chunks/index-D9DU-5GF.js +1196 -0
- package/dist/chunks/index-D9DU-5GF.js.map +1 -0
- package/dist/chunks/index-DAWHN3cH.js +86 -0
- package/dist/chunks/index-DAWHN3cH.js.map +1 -0
- package/dist/chunks/index-DD49WSSW.js +2 -0
- package/dist/chunks/index-DD49WSSW.js.map +1 -0
- package/dist/chunks/index-DTJtldfK.js +2 -0
- package/dist/chunks/index-DTJtldfK.js.map +1 -0
- package/dist/chunks/index-DUHFrLMI.js +389 -0
- package/dist/chunks/index-DUHFrLMI.js.map +1 -0
- package/dist/chunks/index-DcJZ8q0f.js +1190 -0
- package/dist/chunks/index-DcJZ8q0f.js.map +1 -0
- package/dist/chunks/index-DkJX2kvl.js +257 -0
- package/dist/chunks/index-DkJX2kvl.js.map +1 -0
- package/dist/chunks/index-MlhL0PDC.js +2 -0
- package/dist/chunks/index-MlhL0PDC.js.map +1 -0
- package/dist/chunks/index-S1uNQPZj.js +444 -0
- package/dist/chunks/index-S1uNQPZj.js.map +1 -0
- package/dist/chunks/index-UWtj4ULm.js +8 -0
- package/dist/chunks/index-UWtj4ULm.js.map +1 -0
- package/dist/chunks/index-ZaGEDS_0.js +2 -0
- package/dist/chunks/index-ZaGEDS_0.js.map +1 -0
- package/dist/chunks/index-iyefwwxw.js +2 -0
- package/dist/chunks/index-iyefwwxw.js.map +1 -0
- package/dist/chunks/index-j7W9Hyzx.js +322 -0
- package/dist/chunks/index-j7W9Hyzx.js.map +1 -0
- package/dist/chunks/jsx-runtime-BjDatQAs.js +23 -0
- package/dist/chunks/jsx-runtime-BjDatQAs.js.map +1 -0
- package/dist/chunks/jsx-runtime-C5mzlN2N.js +285 -0
- package/dist/chunks/jsx-runtime-C5mzlN2N.js.map +1 -0
- package/dist/chunks/link.component-CCFg-LIe.js +2 -0
- package/dist/chunks/link.component-CCFg-LIe.js.map +1 -0
- package/dist/chunks/link.component-DprieyUG.js +60 -0
- package/dist/chunks/link.component-DprieyUG.js.map +1 -0
- package/dist/chunks/list-C_LmDoyW.js +2 -0
- package/dist/chunks/list-C_LmDoyW.js.map +1 -0
- package/dist/chunks/list-DqH5ttQG.js +20 -0
- package/dist/chunks/list-DqH5ttQG.js.map +1 -0
- package/dist/chunks/logo.types-By8TqyNf.js +76 -0
- package/dist/chunks/logo.types-By8TqyNf.js.map +1 -0
- package/dist/chunks/logo.types-CA_5hGAi.js +2 -0
- package/dist/chunks/logo.types-CA_5hGAi.js.map +1 -0
- package/dist/chunks/menu.component-CDC_QKyu.js +2 -0
- package/dist/chunks/menu.component-CDC_QKyu.js.map +1 -0
- package/dist/chunks/menu.component-DRvQQe9M.js +678 -0
- package/dist/chunks/menu.component-DRvQQe9M.js.map +1 -0
- package/dist/chunks/modal.types-BXVbMaDF.js +206 -0
- package/dist/chunks/modal.types-BXVbMaDF.js.map +1 -0
- package/dist/chunks/modal.types-Ctu6GZqZ.js +2 -0
- package/dist/chunks/modal.types-Ctu6GZqZ.js.map +1 -0
- package/dist/chunks/notificationCounter.component-Bei8mHSZ.js +127 -0
- package/dist/chunks/notificationCounter.component-Bei8mHSZ.js.map +1 -0
- package/dist/chunks/notificationCounter.component-BhZcuBmr.js +2 -0
- package/dist/chunks/notificationCounter.component-BhZcuBmr.js.map +1 -0
- package/dist/chunks/notificationCounter.types-B_-siNfi.js +2 -0
- package/dist/chunks/notificationCounter.types-B_-siNfi.js.map +1 -0
- package/dist/chunks/notificationCounter.types-S7ENT1Oj.js +11 -0
- package/dist/chunks/notificationCounter.types-S7ENT1Oj.js.map +1 -0
- package/dist/chunks/omit-C-j4TrF5.js +10 -0
- package/dist/chunks/omit-C-j4TrF5.js.map +1 -0
- package/dist/chunks/omit-DqNeoZ8h.js +2 -0
- package/dist/chunks/omit-DqNeoZ8h.js.map +1 -0
- package/dist/chunks/picture.component-C2C2r_BU.js +2 -0
- package/dist/chunks/picture.component-C2C2r_BU.js.map +1 -0
- package/dist/chunks/picture.component-DKbaaL64.js +35 -0
- package/dist/chunks/picture.component-DKbaaL64.js.map +1 -0
- package/dist/chunks/pinInput.types-BrSgAnPk.js +2 -0
- package/dist/chunks/pinInput.types-BrSgAnPk.js.map +1 -0
- package/dist/chunks/pinInput.types-D8WW9fg2.js +161 -0
- package/dist/chunks/pinInput.types-D8WW9fg2.js.map +1 -0
- package/dist/chunks/popover-80QH8HEJ.js +2 -0
- package/dist/chunks/popover-80QH8HEJ.js.map +1 -0
- package/dist/chunks/popover-B9rNOU0g.js +110 -0
- package/dist/chunks/popover-B9rNOU0g.js.map +1 -0
- package/dist/chunks/popover-root-provider-CeLLpesI.js +43 -0
- package/dist/chunks/popover-root-provider-CeLLpesI.js.map +1 -0
- package/dist/chunks/popover-root-provider-DAMDDAHQ.js +2 -0
- package/dist/chunks/popover-root-provider-DAMDDAHQ.js.map +1 -0
- package/dist/chunks/popover.component-BSIk0lQx.js +2 -0
- package/dist/chunks/popover.component-BSIk0lQx.js.map +1 -0
- package/dist/chunks/popover.component-CUecFqu0.js +322 -0
- package/dist/chunks/popover.component-CUecFqu0.js.map +1 -0
- package/dist/chunks/popover.recipe--gMRcQTS.js +479 -0
- package/dist/chunks/popover.recipe--gMRcQTS.js.map +1 -0
- package/dist/chunks/popover.recipe-DLeyokHo.js +2 -0
- package/dist/chunks/popover.recipe-DLeyokHo.js.map +1 -0
- package/dist/chunks/provider-ClCAdPxy.js +47 -0
- package/dist/chunks/provider-ClCAdPxy.js.map +1 -0
- package/dist/chunks/provider-NDo8kOkE.js +2 -0
- package/dist/chunks/provider-NDo8kOkE.js.map +1 -0
- package/dist/chunks/radio.records-ASPGnfUI.js +382 -0
- package/dist/chunks/radio.records-ASPGnfUI.js.map +1 -0
- package/dist/chunks/radio.records-Bl1r1zAL.js +2 -0
- package/dist/chunks/radio.records-Bl1r1zAL.js.map +1 -0
- package/dist/chunks/radioGroup.component-DYEA8yt6.js +274 -0
- package/dist/chunks/radioGroup.component-DYEA8yt6.js.map +1 -0
- package/dist/chunks/radioGroup.component-PJdM56Ps.js +2 -0
- package/dist/chunks/radioGroup.component-PJdM56Ps.js.map +1 -0
- package/dist/chunks/ratingDots.component-C29qdjq4.js +2 -0
- package/dist/chunks/ratingDots.component-C29qdjq4.js.map +1 -0
- package/dist/chunks/ratingDots.component-DMpVMl56.js +158 -0
- package/dist/chunks/ratingDots.component-DMpVMl56.js.map +1 -0
- package/dist/chunks/render-strategy-BmWbSgqh.js +2 -0
- package/dist/chunks/render-strategy-BmWbSgqh.js.map +1 -0
- package/dist/chunks/render-strategy-C8hwN3bm.js +12 -0
- package/dist/chunks/render-strategy-C8hwN3bm.js.map +1 -0
- package/dist/chunks/select.component-BW4T3WXu.js +2 -0
- package/dist/chunks/select.component-BW4T3WXu.js.map +1 -0
- package/dist/chunks/select.component-BgBg4Lti.js +391 -0
- package/dist/chunks/select.component-BgBg4Lti.js.map +1 -0
- package/dist/chunks/sortableList.component-B4oyHvop.js +6 -0
- package/dist/chunks/sortableList.component-B4oyHvop.js.map +1 -0
- package/dist/chunks/sortableList.component-CsJc009c.js +3364 -0
- package/dist/chunks/sortableList.component-CsJc009c.js.map +1 -0
- package/dist/chunks/spinner-BWqSIW6m.js +8 -0
- package/dist/chunks/spinner-BWqSIW6m.js.map +1 -0
- package/dist/chunks/spinner-BnpL14kK.js +2 -0
- package/dist/chunks/spinner-BnpL14kK.js.map +1 -0
- package/dist/chunks/spinner.component-BIk6KPaO.js +179 -0
- package/dist/chunks/spinner.component-BIk6KPaO.js.map +1 -0
- package/dist/chunks/spinner.component-CxRLUzju.js +2 -0
- package/dist/chunks/spinner.component-CxRLUzju.js.map +1 -0
- package/dist/chunks/stack-BKu3hWEQ.js +2 -0
- package/dist/chunks/stack-BKu3hWEQ.js.map +1 -0
- package/dist/chunks/stack-Dnuh5Zgf.js +85 -0
- package/dist/chunks/stack-Dnuh5Zgf.js.map +1 -0
- package/dist/chunks/styledAvatar.types-2wZJjpPn.js +64 -0
- package/dist/chunks/styledAvatar.types-2wZJjpPn.js.map +1 -0
- package/dist/chunks/styledAvatar.types-D9gs5qgU.js +2 -0
- package/dist/chunks/styledAvatar.types-D9gs5qgU.js.map +1 -0
- package/dist/chunks/swatch.types-DbgA3RWc.js +67 -0
- package/dist/chunks/swatch.types-DbgA3RWc.js.map +1 -0
- package/dist/chunks/swatch.types-DiX-4lpJ.js +2 -0
- package/dist/chunks/swatch.types-DiX-4lpJ.js.map +1 -0
- package/dist/chunks/switch.component-CfVjV1Ue.js +166 -0
- package/dist/chunks/switch.component-CfVjV1Ue.js.map +1 -0
- package/dist/chunks/switch.component-eY_h1Ybs.js +2 -0
- package/dist/chunks/switch.component-eY_h1Ybs.js.map +1 -0
- package/dist/chunks/tabs.component-CMIwLzI3.js +639 -0
- package/dist/chunks/tabs.component-CMIwLzI3.js.map +1 -0
- package/dist/chunks/tabs.component-CzR7A6PQ.js +2 -0
- package/dist/chunks/tabs.component-CzR7A6PQ.js.map +1 -0
- package/dist/chunks/tag.component-C6a6EzZB.js +2 -0
- package/dist/chunks/tag.component-C6a6EzZB.js.map +1 -0
- package/dist/chunks/tag.component-pexJ0TAT.js +82 -0
- package/dist/chunks/tag.component-pexJ0TAT.js.map +1 -0
- package/dist/chunks/tagBlock.component-B5nam_ih.js +186 -0
- package/dist/chunks/tagBlock.component-B5nam_ih.js.map +1 -0
- package/dist/chunks/tagBlock.component-xYSTqOZ3.js +2 -0
- package/dist/chunks/tagBlock.component-xYSTqOZ3.js.map +1 -0
- package/dist/chunks/text.component--epnA3h2.js +2 -0
- package/dist/chunks/text.component--epnA3h2.js.map +1 -0
- package/dist/chunks/text.component-Ci1Zx-Vb.js +12 -0
- package/dist/chunks/text.component-Ci1Zx-Vb.js.map +1 -0
- package/dist/chunks/textInput.component-BS85e6rj.js +180 -0
- package/dist/chunks/textInput.component-BS85e6rj.js.map +1 -0
- package/dist/chunks/textInput.component-Cyu1zXr7.js +2 -0
- package/dist/chunks/textInput.component-Cyu1zXr7.js.map +1 -0
- package/dist/chunks/textarea.component-Bv4aHURS.js +98 -0
- package/dist/chunks/textarea.component-Bv4aHURS.js.map +1 -0
- package/dist/chunks/textarea.component-BxuJw-8y.js +2 -0
- package/dist/chunks/textarea.component-BxuJw-8y.js.map +1 -0
- package/dist/chunks/theme.provider-BsXpkFEI.js +13554 -0
- package/dist/chunks/theme.provider-BsXpkFEI.js.map +1 -0
- package/dist/chunks/theme.provider-CK-Af5GU.js +26 -0
- package/dist/chunks/theme.provider-CK-Af5GU.js.map +1 -0
- package/dist/chunks/timePicker.component-Dhvin2SE.js +249 -0
- package/dist/chunks/timePicker.component-Dhvin2SE.js.map +1 -0
- package/dist/chunks/timePicker.component-OiS6NoVE.js +2 -0
- package/dist/chunks/timePicker.component-OiS6NoVE.js.map +1 -0
- package/dist/chunks/timeRange.component-BKCL9z1j.js +2 -0
- package/dist/chunks/timeRange.component-BKCL9z1j.js.map +1 -0
- package/dist/chunks/timeRange.component-cN_7CZt6.js +18 -0
- package/dist/chunks/timeRange.component-cN_7CZt6.js.map +1 -0
- package/dist/chunks/timestamp.component-BQO8617_.js +2 -0
- package/dist/chunks/timestamp.component-BQO8617_.js.map +1 -0
- package/dist/chunks/timestamp.component-DH5g5v08.js +54 -0
- package/dist/chunks/timestamp.component-DH5g5v08.js.map +1 -0
- package/dist/chunks/toaster.records-BGfpUOVt.js +824 -0
- package/dist/chunks/toaster.records-BGfpUOVt.js.map +1 -0
- package/dist/chunks/toaster.records-BJo0j1IZ.js +2 -0
- package/dist/chunks/toaster.records-BJo0j1IZ.js.map +1 -0
- package/dist/chunks/tooltip.component-Yu5bnnPc.js +2 -0
- package/dist/chunks/tooltip.component-Yu5bnnPc.js.map +1 -0
- package/dist/chunks/tooltip.component-oofe83RC.js +761 -0
- package/dist/chunks/tooltip.component-oofe83RC.js.map +1 -0
- package/dist/chunks/typography-Cqrokog3.js.map +1 -1
- package/dist/chunks/typography-CtiaGoJG.js.map +1 -1
- package/dist/chunks/typography.records-C6G_65b4.js +2 -0
- package/dist/chunks/typography.records-C6G_65b4.js.map +1 -0
- package/dist/chunks/typography.records-jnjWfTLS.js +66 -0
- package/dist/chunks/typography.records-jnjWfTLS.js.map +1 -0
- package/dist/chunks/use-breakpoint-MQ7agQJe.js +72 -0
- package/dist/chunks/use-breakpoint-MQ7agQJe.js.map +1 -0
- package/dist/chunks/use-breakpoint-uBg4-8yY.js +2 -0
- package/dist/chunks/use-breakpoint-uBg4-8yY.js.map +1 -0
- package/dist/chunks/use-field-context--wBJQY1R.js +2 -0
- package/dist/chunks/use-field-context--wBJQY1R.js.map +1 -0
- package/dist/chunks/use-field-context-B_G7Yziz.js +12 -0
- package/dist/chunks/use-field-context-B_G7Yziz.js.map +1 -0
- package/dist/chunks/use-locale-context-BdqHZ8L8.js +22 -0
- package/dist/chunks/use-locale-context-BdqHZ8L8.js.map +1 -0
- package/dist/chunks/use-locale-context-D-agiW5E.js +2301 -0
- package/dist/chunks/use-locale-context-D-agiW5E.js.map +1 -0
- package/dist/chunks/use-recipe-DaPWl_pL.js +2 -0
- package/dist/chunks/use-recipe-DaPWl_pL.js.map +1 -0
- package/dist/chunks/use-recipe-d63ABaZ3.js +13 -0
- package/dist/chunks/use-recipe-d63ABaZ3.js.map +1 -0
- package/dist/chunks/use-slot-recipe-8liupslO.js +2 -0
- package/dist/chunks/use-slot-recipe-8liupslO.js.map +1 -0
- package/dist/chunks/use-slot-recipe-DhtQ1j_5.js +13 -0
- package/dist/chunks/use-slot-recipe-DhtQ1j_5.js.map +1 -0
- package/dist/chunks/v-stack-BZT7R_9f.js +12 -0
- package/dist/chunks/v-stack-BZT7R_9f.js.map +1 -0
- package/dist/chunks/v-stack-DxjgpeJ0.js +2 -0
- package/dist/chunks/v-stack-DxjgpeJ0.js.map +1 -0
- package/dist/chunks/walk-object-BrTExCqQ.js +2 -0
- package/dist/chunks/walk-object-BrTExCqQ.js.map +1 -0
- package/dist/chunks/walk-object-_CL3Bkm9.js +28 -0
- package/dist/chunks/walk-object-_CL3Bkm9.js.map +1 -0
- package/dist/chunks/withFormControl-BI5J885a.js +2 -0
- package/dist/chunks/withFormControl-BI5J885a.js.map +1 -0
- package/dist/chunks/withFormControl-TnKXd5oM.js +376 -0
- package/dist/chunks/withFormControl-TnKXd5oM.js.map +1 -0
- package/dist/chunks/withTruncation-D0L2lj30.js +67 -0
- package/dist/chunks/withTruncation-D0L2lj30.js.map +1 -0
- package/dist/chunks/withTruncation-DdNEpmRa.js +2 -0
- package/dist/chunks/withTruncation-DdNEpmRa.js.map +1 -0
- package/dist/chunks/wrap-B8tBNeBY.js +45 -0
- package/dist/chunks/wrap-B8tBNeBY.js.map +1 -0
- package/dist/chunks/wrap-CNn1kyJX.js +2 -0
- package/dist/chunks/wrap-CNn1kyJX.js.map +1 -0
- package/dist/cjs/chakra/index.cjs +2 -0
- package/dist/cjs/chakra/index.cjs.map +1 -0
- package/dist/cjs/cli/generate-theme-types.cjs +6 -0
- package/dist/cjs/cli/generate-theme-types.cjs.map +1 -0
- package/dist/cjs/cli/postinstall.cjs +3 -0
- package/dist/cjs/cli/postinstall.cjs.map +1 -0
- package/dist/cjs/components/Alert/index.cjs +2 -0
- package/dist/cjs/components/Avatar/index.cjs +2 -0
- package/dist/cjs/components/AvatarGroup/index.cjs +2 -0
- package/dist/cjs/components/Button/index.cjs +2 -0
- package/dist/cjs/components/ButtonGroup/index.cjs +2 -0
- package/dist/cjs/components/Card/index.cjs +2 -0
- package/dist/cjs/components/CharacterCounter/index.cjs +2 -0
- package/dist/cjs/components/Checkbox/index.cjs +2 -0
- package/dist/cjs/components/CheckboxGroup/index.cjs +2 -0
- package/dist/cjs/components/ConversationCard/index.cjs +2 -0
- package/dist/cjs/components/DatePicker/index.cjs +2 -0
- package/dist/cjs/components/Divider/index.cjs +2 -0
- package/dist/cjs/components/Heading/index.cjs +2 -0
- package/dist/cjs/components/Icon/generated/index.cjs +2 -0
- package/dist/cjs/components/Icon/generated/index.cjs.map +1 -0
- package/dist/cjs/components/Icon/index.cjs +2 -0
- package/dist/cjs/components/Link/index.cjs +2 -0
- package/dist/cjs/components/Logo/generated/index.cjs +2 -0
- package/dist/cjs/components/Logo/index.cjs +2 -0
- package/dist/cjs/components/Menu/index.cjs +2 -0
- package/dist/cjs/components/Modal/index.cjs +2 -0
- package/dist/cjs/components/NotificationCounter/index.cjs +2 -0
- package/dist/cjs/components/Picture/index.cjs +2 -0
- package/dist/cjs/components/PinInput/index.cjs +2 -0
- package/dist/cjs/components/Popover/index.cjs +2 -0
- package/dist/cjs/components/RadioGroup/index.cjs +2 -0
- package/dist/cjs/components/RatingDots/index.cjs +2 -0
- package/dist/cjs/components/Select/index.cjs +2 -0
- package/dist/cjs/components/SortableList/index.cjs +2 -0
- package/dist/cjs/components/Spinner/index.cjs +2 -0
- package/dist/cjs/components/StyledAvatar/index.cjs +2 -0
- package/dist/cjs/components/Swatch/index.cjs +2 -0
- package/dist/cjs/components/Switch/index.cjs +2 -0
- package/dist/cjs/components/Tabs/index.cjs +2 -0
- package/dist/cjs/components/Tag/index.cjs +2 -0
- package/dist/cjs/components/TagBlock/index.cjs +2 -0
- package/dist/cjs/components/Text/index.cjs +2 -0
- package/dist/cjs/components/TextInput/index.cjs +2 -0
- package/dist/cjs/components/Textarea/index.cjs +2 -0
- package/dist/cjs/components/Textarea/index.cjs.map +1 -0
- package/dist/cjs/components/TimePicker/index.cjs +2 -0
- package/dist/cjs/components/TimePicker/index.cjs.map +1 -0
- package/dist/cjs/components/TimeRange/index.cjs +2 -0
- package/dist/cjs/components/TimeRange/index.cjs.map +1 -0
- package/dist/cjs/components/Timestamp/index.cjs +2 -0
- package/dist/cjs/components/Timestamp/index.cjs.map +1 -0
- package/dist/cjs/components/Toast/index.cjs +2 -0
- package/dist/cjs/components/Toast/index.cjs.map +1 -0
- package/dist/cjs/components/Tooltip/index.cjs +2 -0
- package/dist/cjs/components/Tooltip/index.cjs.map +1 -0
- package/dist/cjs/components/index.cjs +2 -0
- package/dist/cjs/components/index.cjs.map +1 -0
- package/dist/cjs/hocs/index.cjs +2 -0
- package/dist/cjs/hocs/index.cjs.map +1 -0
- package/dist/cjs/hooks/index.cjs +2 -0
- package/dist/cjs/hooks/index.cjs.map +1 -0
- package/dist/cjs/hooks/useBreakpoint/index.cjs +2 -0
- package/dist/cjs/hooks/useBreakpoint/index.cjs.map +1 -0
- package/dist/cjs/hooks/useDeviceType/index.cjs +2 -0
- package/dist/cjs/hooks/useDeviceType/index.cjs.map +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/shared/index.cjs +2 -0
- package/dist/cjs/shared/index.cjs.map +1 -0
- package/dist/cjs/shared/records/index.cjs +2 -0
- package/dist/cjs/shared/records/index.cjs.map +1 -0
- package/dist/cjs/shared/types/index.cjs.map +1 -0
- package/dist/cjs/theme/index.cjs +2 -0
- package/dist/cjs/theme/index.cjs.map +1 -0
- package/dist/cjs/theme/semanticTokens/index.cjs.map +1 -0
- package/dist/cjs/theme/tokens/blurs/index.cjs +2 -0
- package/dist/cjs/theme/tokens/blurs/index.cjs.map +1 -0
- package/dist/cjs/theme/tokens/borders/index.cjs +2 -0
- package/dist/cjs/theme/tokens/borders/index.cjs.map +1 -0
- package/dist/cjs/theme/tokens/colors/index.cjs.map +1 -0
- package/dist/cjs/theme/tokens/index.cjs +2 -0
- package/dist/cjs/theme/tokens/index.cjs.map +1 -0
- package/dist/cjs/theme/tokens/shadows/index.cjs +2 -0
- package/dist/cjs/theme/tokens/shadows/index.cjs.map +1 -0
- package/dist/cjs/theme/tokens/sizes/index.cjs +2 -0
- package/dist/cjs/theme/tokens/sizes/index.cjs.map +1 -0
- package/dist/cjs/theme/tokens/spacing/index.cjs +2 -0
- package/dist/cjs/theme/tokens/spacing/index.cjs.map +1 -0
- package/dist/cjs/theme/tokens/transitions/index.cjs +2 -0
- package/dist/cjs/theme/tokens/transitions/index.cjs.map +1 -0
- package/dist/cjs/theme/tokens/typography/index.cjs +2 -0
- package/dist/cjs/theme/tokens/typography/index.cjs.map +1 -0
- package/dist/cjs/theme/tokens/zIndices/index.cjs +2 -0
- package/dist/cjs/theme/tokens/zIndices/index.cjs.map +1 -0
- package/dist/esm/chakra/index.js +3227 -0
- package/dist/esm/chakra/index.js.map +1 -0
- package/dist/esm/cli/generate-theme-types.js +22 -0
- package/dist/esm/cli/generate-theme-types.js.map +1 -0
- package/dist/esm/cli/postinstall.js +21 -0
- package/dist/esm/cli/postinstall.js.map +1 -0
- package/dist/esm/components/Alert/index.js +6 -0
- package/dist/esm/components/Avatar/index.js +8 -0
- package/dist/esm/components/AvatarGroup/index.js +5 -0
- package/dist/esm/components/Button/index.js +11 -0
- package/dist/esm/components/ButtonGroup/index.js +5 -0
- package/dist/esm/components/Card/index.js +7 -0
- package/dist/esm/components/CharacterCounter/index.js +5 -0
- package/dist/esm/components/Checkbox/index.js +5 -0
- package/dist/esm/components/CheckboxGroup/index.js +5 -0
- package/dist/esm/components/ConversationCard/index.js +5 -0
- package/dist/esm/components/DatePicker/index.js +6 -0
- package/dist/esm/components/Divider/index.js +8 -0
- package/dist/esm/components/Heading/index.js +5 -0
- package/dist/esm/components/Icon/generated/index.js +5223 -0
- package/dist/esm/components/Icon/generated/index.js.map +1 -0
- package/dist/esm/components/Icon/index.js +7 -0
- package/dist/esm/components/Link/index.js +5 -0
- package/dist/esm/components/Logo/generated/index.js +6 -0
- package/dist/esm/components/Logo/index.js +7 -0
- package/dist/esm/components/Menu/index.js +5 -0
- package/dist/esm/components/Modal/index.js +9 -0
- package/dist/esm/components/NotificationCounter/index.js +8 -0
- package/dist/esm/components/Picture/index.js +5 -0
- package/dist/esm/components/PinInput/index.js +6 -0
- package/dist/esm/components/Popover/index.js +9 -0
- package/dist/esm/components/RadioGroup/index.js +5 -0
- package/dist/esm/components/RatingDots/index.js +5 -0
- package/dist/esm/components/Select/index.js +5 -0
- package/dist/esm/components/SortableList/index.js +5 -0
- package/dist/esm/components/Spinner/index.js +7 -0
- package/dist/esm/components/StyledAvatar/index.js +6 -0
- package/dist/esm/components/Swatch/index.js +6 -0
- package/dist/esm/components/Switch/index.js +5 -0
- package/dist/esm/components/Tabs/index.js +5 -0
- package/dist/esm/components/Tag/index.js +8 -0
- package/dist/esm/components/TagBlock/index.js +6 -0
- package/dist/esm/components/TagBlock/index.js.map +1 -0
- package/dist/esm/components/Text/index.js +5 -0
- package/dist/esm/components/Text/index.js.map +1 -0
- package/dist/esm/components/TextInput/index.js +5 -0
- package/dist/esm/components/TextInput/index.js.map +1 -0
- package/dist/esm/components/Textarea/index.js +5 -0
- package/dist/esm/components/Textarea/index.js.map +1 -0
- package/dist/esm/components/TimePicker/index.js +6 -0
- package/dist/esm/components/TimePicker/index.js.map +1 -0
- package/dist/esm/components/TimeRange/index.js +5 -0
- package/dist/esm/components/TimeRange/index.js.map +1 -0
- package/dist/esm/components/Timestamp/index.js +5 -0
- package/dist/esm/components/Timestamp/index.js.map +1 -0
- package/dist/esm/components/Toast/index.js +59 -0
- package/dist/esm/components/Toast/index.js.map +1 -0
- package/dist/esm/components/Tooltip/index.js +5 -0
- package/dist/esm/components/Tooltip/index.js.map +1 -0
- package/dist/esm/components/index.js +126 -0
- package/dist/esm/components/index.js.map +1 -0
- package/dist/esm/hocs/index.js +6 -0
- package/dist/esm/hocs/index.js.map +1 -0
- package/dist/esm/hooks/index.js +10 -0
- package/dist/esm/hooks/index.js.map +1 -0
- package/dist/esm/hooks/useBreakpoint/index.js +12 -0
- package/dist/esm/hooks/useBreakpoint/index.js.map +1 -0
- package/dist/esm/hooks/useDeviceType/index.js +12 -0
- package/dist/esm/hooks/useDeviceType/index.js.map +1 -0
- package/dist/esm/index.js +141 -116
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/shared/index.js +9 -0
- package/dist/esm/shared/index.js.map +1 -0
- package/dist/esm/shared/records/index.js +18 -0
- package/dist/esm/shared/records/index.js.map +1 -0
- package/dist/esm/shared/types/index.js.map +1 -0
- package/dist/esm/theme/index.js +6 -0
- package/dist/esm/theme/index.js.map +1 -0
- package/dist/esm/theme/semanticTokens/index.js.map +1 -0
- package/dist/esm/theme/tokens/blurs/index.js +2 -0
- package/dist/esm/theme/tokens/blurs/index.js.map +1 -0
- package/dist/esm/theme/tokens/borders/index.js +2 -0
- package/dist/esm/theme/tokens/borders/index.js.map +1 -0
- package/dist/esm/theme/tokens/colors/index.js.map +1 -0
- package/dist/esm/theme/tokens/index.js +5 -0
- package/dist/esm/theme/tokens/index.js.map +1 -0
- package/dist/esm/theme/tokens/shadows/index.js +2 -0
- package/dist/esm/theme/tokens/shadows/index.js.map +1 -0
- package/dist/esm/theme/tokens/sizes/index.js +2 -0
- package/dist/esm/theme/tokens/sizes/index.js.map +1 -0
- package/dist/esm/theme/tokens/spacing/index.js +2 -0
- package/dist/esm/theme/tokens/spacing/index.js.map +1 -0
- package/dist/esm/theme/tokens/transitions/index.js +2 -0
- package/dist/esm/theme/tokens/transitions/index.js.map +1 -0
- package/dist/esm/theme/tokens/typography/index.js +2 -0
- package/dist/esm/theme/tokens/typography/index.js.map +1 -0
- package/dist/esm/theme/tokens/zIndices/index.js +2 -0
- package/dist/esm/theme/tokens/zIndices/index.js.map +1 -0
- package/dist/types/chakra/index.d.ts +52 -0
- package/dist/types/cli/generate-theme-types.d.ts +2 -0
- package/dist/types/cli/postinstall.d.ts +2 -0
- package/dist/types/components/Alert/alert.component.d.ts +5 -13
- package/dist/types/components/Alert/alert.recipe.d.ts +1 -1
- package/dist/types/components/Alert/index.d.ts +0 -1
- package/dist/types/components/Avatar/avatar.recipe.d.ts +1 -1
- package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.component.d.ts +1 -1
- package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.recipe.d.ts +2 -2
- package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.types.d.ts +1 -1
- package/dist/types/components/Button/button.component.d.ts +2 -3
- package/dist/types/components/Button/button.recipe.d.ts +2 -2
- package/dist/types/components/Card/card.component.d.ts +1 -1
- package/dist/types/components/Card/index.d.ts +0 -1
- package/dist/types/components/ConversationCard/components/ConversationCardButtons/conversationCardButtons.component.d.ts +21 -0
- package/dist/types/components/ConversationCard/components/ConversationCardContent/conversationCardContent.component.d.ts +8 -0
- package/dist/types/components/ConversationCard/components/ConversationCardFooter/conversationCardFooter.component.d.ts +9 -0
- package/dist/types/components/ConversationCard/components/ConversationCardTags/conversationCardTags.component.d.ts +9 -0
- package/dist/types/components/ConversationCard/conversationCard.component.d.ts +23 -0
- package/dist/types/components/DatePicker/index.d.ts +0 -1
- package/dist/types/components/Divider/divider.component.d.ts +4 -0
- package/dist/types/components/Divider/divider.types.d.ts +6 -0
- package/dist/types/components/Divider/index.d.ts +2 -0
- package/dist/types/components/Heading/heading.component.d.ts +1 -2
- package/dist/types/components/Heading/heading.recipe.d.ts +1 -1
- package/dist/types/components/Heading/heading.types.d.ts +1 -1
- package/dist/types/components/Heading/index.d.ts +0 -1
- package/dist/types/components/Icon/generated/AiMicrophone.d.ts +10 -0
- package/dist/types/components/Icon/generated/index.d.ts +1 -1
- package/dist/types/components/Icon/icon.component.d.ts +2 -3
- package/dist/types/components/Icon/index.d.ts +0 -1
- package/dist/types/components/Link/link.recipe.d.ts +1 -1
- package/dist/types/components/Logo/generated/FullLogo.d.ts +10 -0
- package/dist/types/components/Logo/generated/IconLogo.d.ts +10 -0
- package/dist/types/components/Logo/generated/index.d.ts +4 -0
- package/dist/types/components/Logo/index.d.ts +2 -0
- package/dist/types/components/Logo/logo.component.d.ts +10 -0
- package/dist/types/components/Logo/logo.recipe.d.ts +9 -0
- package/dist/types/components/Logo/logo.types.d.ts +4 -0
- package/dist/types/components/Menu/components/MenuItem/menuItem.component.d.ts +3 -2
- package/dist/types/components/Menu/menu.component.d.ts +1 -1
- package/dist/types/components/Modal/context/modal.context.d.ts +6 -0
- package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
- package/dist/types/components/NotificationCounter/index.d.ts +0 -1
- package/dist/types/components/NotificationCounter/notificationCounter.recipe.d.ts +2 -2
- package/dist/types/components/PinInput/index.d.ts +2 -0
- package/dist/types/components/PinInput/pinInput.component.d.ts +10 -0
- package/dist/types/components/PinInput/pinInput.recipe.d.ts +21 -0
- package/dist/types/components/PinInput/pinInput.records.d.ts +1 -0
- package/dist/types/components/PinInput/pinInput.types.d.ts +2 -0
- package/dist/types/components/Popover/popover.recipe.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +1 -0
- package/dist/types/components/Select/select.component.d.ts +3 -0
- package/dist/types/components/SortableList/index.d.ts +1 -0
- package/dist/types/components/Spinner/spinner.component.d.ts +1 -1
- package/dist/types/components/Spinner/spinner.recipe.d.ts +1 -1
- package/dist/types/components/StyledAvatar/styledAvatar.component.d.ts +7 -0
- package/dist/types/components/Swatch/swatch.recipe.d.ts +1 -1
- package/dist/types/components/Tabs/tabs.recipe.d.ts +1 -1
- package/dist/types/components/Tag/index.d.ts +0 -1
- package/dist/types/components/Tag/tag.recipe.d.ts +1 -1
- package/dist/types/components/TagBlock/tagBlock.component.d.ts +25 -0
- package/dist/types/components/Text/index.d.ts +0 -1
- package/dist/types/components/Text/text.component.d.ts +1 -2
- package/dist/types/components/Text/text.recipe.d.ts +1 -2
- package/dist/types/components/Text/text.types.d.ts +1 -1
- package/dist/types/components/TextInput/index.d.ts +0 -1
- package/dist/types/components/Timestamp/timestamp.component.d.ts +11 -0
- package/dist/types/components/Toast/components/ToastAction/toastAction.component.d.ts +12 -0
- package/dist/types/components/Toast/components/Toaster/toaster.component.d.ts +7 -0
- package/dist/types/components/Toast/components/Toaster/toaster.records.d.ts +11 -0
- package/dist/types/components/Toast/components/Toaster/toaster.types.d.ts +12 -0
- package/dist/types/components/Toast/index.d.ts +2 -0
- package/dist/types/components/Toast/toast.component.d.ts +14 -0
- package/dist/types/components/Toast/toast.recipe.d.ts +21 -0
- package/dist/types/components/Toast/toast.types.d.ts +19 -0
- package/dist/types/components/Toast/useToast.d.ts +3 -0
- package/dist/types/components/index.d.ts +9 -1
- package/dist/types/hocs/withFormControl/withFormControl.d.ts +2 -1
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/useBreakpoint/index.d.ts +1 -0
- package/dist/types/hooks/useDeviceType/index.d.ts +3 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/shared/index.d.ts +1 -0
- package/dist/types/shared/records/index.d.ts +1 -0
- package/dist/types/shared/records/status.d.ts +5 -0
- package/dist/types/shared/records/typography.d.ts +1 -1
- package/dist/types/theme/index.d.ts +2 -1
- package/dist/types/theme/providers/theme.provider.d.ts +2 -1
- package/dist/types/theme/semanticTokens/semanticTokens.config.d.ts +4 -0
- package/dist/types/theme/semanticTokens/semanticTokens.records.d.ts +8 -0
- package/dist/types/theme/theme.config.d.ts +1 -0
- package/dist/types/theme/tokens/blurs/blurs.config.d.ts +6 -6
- package/dist/types/theme/tokens/blurs/index.d.ts +0 -1
- package/dist/types/theme/tokens/borders/borders.config.d.ts +9 -9
- package/dist/types/theme/tokens/borders/index.d.ts +0 -1
- package/dist/types/theme/tokens/shadows/index.d.ts +0 -1
- package/dist/types/theme/tokens/shadows/shadows.config.d.ts +11 -11
- package/dist/types/theme/tokens/sizes/index.d.ts +0 -1
- package/dist/types/theme/tokens/sizes/sizes.config.d.ts +24 -10
- package/dist/types/theme/tokens/spacing/index.d.ts +0 -1
- package/dist/types/theme/tokens/spacing/spacing.config.d.ts +21 -21
- package/dist/types/theme/tokens/transitions/index.d.ts +0 -1
- package/dist/types/theme/tokens/transitions/transitions.config.d.ts +6 -6
- package/dist/types/theme/tokens/typography/index.d.ts +0 -1
- package/dist/types/theme/tokens/typography/typography.config.d.ts +29 -74
- package/dist/types/theme/tokens/zIndices/index.d.ts +0 -1
- package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +13 -13
- package/package.json +123 -43
- package/dist/chunks/alert.types-JeTQfWdP.js +0 -172
- package/dist/chunks/alert.types-JeTQfWdP.js.map +0 -1
- package/dist/chunks/alert.types-d9eiELON.js +0 -2
- package/dist/chunks/alert.types-d9eiELON.js.map +0 -1
- package/dist/chunks/avatar.component-BuFZgWoK.js +0 -2
- package/dist/chunks/avatar.component-BuFZgWoK.js.map +0 -1
- package/dist/chunks/avatar.component-DCGHbiX2.js +0 -307
- package/dist/chunks/avatar.component-DCGHbiX2.js.map +0 -1
- package/dist/chunks/avatarGroup.component-BJOdvy1r.js +0 -71
- package/dist/chunks/avatarGroup.component-BJOdvy1r.js.map +0 -1
- package/dist/chunks/avatarGroup.component-C2oPFigA.js +0 -2
- package/dist/chunks/avatarGroup.component-C2oPFigA.js.map +0 -1
- package/dist/chunks/button.component-SBirRhyz.js +0 -67
- package/dist/chunks/button.component-SBirRhyz.js.map +0 -1
- package/dist/chunks/button.component-rY01WurX.js +0 -2
- package/dist/chunks/button.component-rY01WurX.js.map +0 -1
- package/dist/chunks/buttonGroup.component-9vEER47T.js +0 -67
- package/dist/chunks/buttonGroup.component-9vEER47T.js.map +0 -1
- package/dist/chunks/buttonGroup.component-BDrSVmRk.js +0 -2
- package/dist/chunks/buttonGroup.component-BDrSVmRk.js.map +0 -1
- package/dist/chunks/card.component-HX-4Y0j7.js +0 -51
- package/dist/chunks/card.component-HX-4Y0j7.js.map +0 -1
- package/dist/chunks/card.component-ZIoJIWVV.js +0 -2
- package/dist/chunks/card.component-ZIoJIWVV.js.map +0 -1
- package/dist/chunks/chakra-BqBkjpvZ.js +0 -12734
- package/dist/chunks/chakra-BqBkjpvZ.js.map +0 -1
- package/dist/chunks/chakra-DmF8Cxqs.js +0 -5
- package/dist/chunks/chakra-DmF8Cxqs.js.map +0 -1
- package/dist/chunks/characterCounter.component-BXxyn_IB.js +0 -2
- package/dist/chunks/characterCounter.component-BXxyn_IB.js.map +0 -1
- package/dist/chunks/characterCounter.component-DhiMcztY.js +0 -108
- package/dist/chunks/characterCounter.component-DhiMcztY.js.map +0 -1
- package/dist/chunks/checkbox.component-CYYzEnAD.js +0 -2
- package/dist/chunks/checkbox.component-CYYzEnAD.js.map +0 -1
- package/dist/chunks/checkbox.component-CZ4_kf2-.js +0 -90
- package/dist/chunks/checkbox.component-CZ4_kf2-.js.map +0 -1
- package/dist/chunks/checkbox.records-DJfdKuOe.js +0 -2
- package/dist/chunks/checkbox.records-DJfdKuOe.js.map +0 -1
- package/dist/chunks/checkbox.records-JWbKQ684.js +0 -14
- package/dist/chunks/checkbox.records-JWbKQ684.js.map +0 -1
- package/dist/chunks/checkboxGroup.component-D1gY1znn.js +0 -2
- package/dist/chunks/checkboxGroup.component-D1gY1znn.js.map +0 -1
- package/dist/chunks/checkboxGroup.component-DJ78uoQy.js +0 -51
- package/dist/chunks/checkboxGroup.component-DJ78uoQy.js.map +0 -1
- package/dist/chunks/conversationCard.component-CLJArU7-.js +0 -383
- package/dist/chunks/conversationCard.component-CLJArU7-.js.map +0 -1
- package/dist/chunks/conversationCard.component-GGad0oyx.js +0 -2
- package/dist/chunks/conversationCard.component-GGad0oyx.js.map +0 -1
- package/dist/chunks/date-1NFv48Qu.js +0 -3598
- package/dist/chunks/date-1NFv48Qu.js.map +0 -1
- package/dist/chunks/date-Du64Exix.js +0 -15
- package/dist/chunks/date-Du64Exix.js.map +0 -1
- package/dist/chunks/datePicker.component-BTypVuHB.js +0 -2
- package/dist/chunks/datePicker.component-BTypVuHB.js.map +0 -1
- package/dist/chunks/datePicker.component-ogpjLlM9.js +0 -750
- package/dist/chunks/datePicker.component-ogpjLlM9.js.map +0 -1
- package/dist/chunks/dnd-4IMP_kRN.js +0 -6
- package/dist/chunks/dnd-4IMP_kRN.js.map +0 -1
- package/dist/chunks/dnd-DDR6viHX.js +0 -3236
- package/dist/chunks/dnd-DDR6viHX.js.map +0 -1
- package/dist/chunks/heading.component-B8niLTxz.js +0 -10
- package/dist/chunks/heading.component-B8niLTxz.js.map +0 -1
- package/dist/chunks/heading.component-CExbjSBi.js +0 -2
- package/dist/chunks/heading.component-CExbjSBi.js.map +0 -1
- package/dist/chunks/heading.records-BaWnrbgl.js +0 -14
- package/dist/chunks/heading.records-BaWnrbgl.js.map +0 -1
- package/dist/chunks/heading.records-CbR05iL_.js +0 -2
- package/dist/chunks/heading.records-CbR05iL_.js.map +0 -1
- package/dist/chunks/icon.component-CFH2bMLy.js +0 -44
- package/dist/chunks/icon.component-CFH2bMLy.js.map +0 -1
- package/dist/chunks/icon.component-DVlHZQ9n.js +0 -2
- package/dist/chunks/icon.component-DVlHZQ9n.js.map +0 -1
- package/dist/chunks/link.component-BA6ti7Uw.js +0 -2
- package/dist/chunks/link.component-BA6ti7Uw.js.map +0 -1
- package/dist/chunks/link.component-OZm1DcvM.js +0 -58
- package/dist/chunks/link.component-OZm1DcvM.js.map +0 -1
- package/dist/chunks/menu.component-BRlsabFY.js +0 -390
- package/dist/chunks/menu.component-BRlsabFY.js.map +0 -1
- package/dist/chunks/menu.component-CBuqFeyR.js +0 -2
- package/dist/chunks/menu.component-CBuqFeyR.js.map +0 -1
- package/dist/chunks/modal.types-BSB3CBTb.js +0 -146
- package/dist/chunks/modal.types-BSB3CBTb.js.map +0 -1
- package/dist/chunks/modal.types-hoNOcHzi.js +0 -2
- package/dist/chunks/modal.types-hoNOcHzi.js.map +0 -1
- package/dist/chunks/notificationCounter.component-D6v39lna.js +0 -2
- package/dist/chunks/notificationCounter.component-D6v39lna.js.map +0 -1
- package/dist/chunks/notificationCounter.component-DU5P6Ilh.js +0 -125
- package/dist/chunks/notificationCounter.component-DU5P6Ilh.js.map +0 -1
- package/dist/chunks/popover.component-BDuDQ5ns.js +0 -221
- package/dist/chunks/popover.component-BDuDQ5ns.js.map +0 -1
- package/dist/chunks/popover.component-DR09Zgw-.js +0 -2
- package/dist/chunks/popover.component-DR09Zgw-.js.map +0 -1
- package/dist/chunks/popover.recipe-DnCuZJd3.js +0 -123
- package/dist/chunks/popover.recipe-DnCuZJd3.js.map +0 -1
- package/dist/chunks/popover.recipe-Pfz3evii.js +0 -2
- package/dist/chunks/popover.recipe-Pfz3evii.js.map +0 -1
- package/dist/chunks/radio.records-BxCn4oUd.js +0 -2
- package/dist/chunks/radio.records-BxCn4oUd.js.map +0 -1
- package/dist/chunks/radio.records-Cc3kP4Vn.js +0 -14
- package/dist/chunks/radio.records-Cc3kP4Vn.js.map +0 -1
- package/dist/chunks/radioGroup.component-COkAujWX.js +0 -151
- package/dist/chunks/radioGroup.component-COkAujWX.js.map +0 -1
- package/dist/chunks/radioGroup.component-DTs7-DkU.js +0 -2
- package/dist/chunks/radioGroup.component-DTs7-DkU.js.map +0 -1
- package/dist/chunks/ratingDots.component-B4xmXQtZ.js +0 -155
- package/dist/chunks/ratingDots.component-B4xmXQtZ.js.map +0 -1
- package/dist/chunks/ratingDots.component-BPcAxeFJ.js +0 -2
- package/dist/chunks/ratingDots.component-BPcAxeFJ.js.map +0 -1
- package/dist/chunks/select.component-BhGM6PuP.js +0 -2
- package/dist/chunks/select.component-BhGM6PuP.js.map +0 -1
- package/dist/chunks/select.component-CpmSHV_N.js +0 -129
- package/dist/chunks/select.component-CpmSHV_N.js.map +0 -1
- package/dist/chunks/sortableList.component-Bs9z3eXZ.js +0 -2
- package/dist/chunks/sortableList.component-Bs9z3eXZ.js.map +0 -1
- package/dist/chunks/sortableList.component-CnHiPeHf.js +0 -145
- package/dist/chunks/sortableList.component-CnHiPeHf.js.map +0 -1
- package/dist/chunks/spinner.component-CUuidnSK.js +0 -2
- package/dist/chunks/spinner.component-CUuidnSK.js.map +0 -1
- package/dist/chunks/spinner.component-D5tkelNc.js +0 -177
- package/dist/chunks/spinner.component-D5tkelNc.js.map +0 -1
- package/dist/chunks/styledAvatar.types-DSpgSu-B.js +0 -64
- package/dist/chunks/styledAvatar.types-DSpgSu-B.js.map +0 -1
- package/dist/chunks/styledAvatar.types-XzhXesGE.js +0 -2
- package/dist/chunks/styledAvatar.types-XzhXesGE.js.map +0 -1
- package/dist/chunks/switch.component-BwA-pNmg.js +0 -2
- package/dist/chunks/switch.component-BwA-pNmg.js.map +0 -1
- package/dist/chunks/switch.component-C7nQABN1.js +0 -53
- package/dist/chunks/switch.component-C7nQABN1.js.map +0 -1
- package/dist/chunks/tabs.component-C18Yp-mz.js +0 -2
- package/dist/chunks/tabs.component-C18Yp-mz.js.map +0 -1
- package/dist/chunks/tabs.component-DQEEOmWs.js +0 -87
- package/dist/chunks/tabs.component-DQEEOmWs.js.map +0 -1
- package/dist/chunks/tag.component-DK64cZSr.js +0 -67
- package/dist/chunks/tag.component-DK64cZSr.js.map +0 -1
- package/dist/chunks/tag.component-D_hbxu6m.js +0 -2
- package/dist/chunks/tag.component-D_hbxu6m.js.map +0 -1
- package/dist/chunks/tagBlock.component-CTHTbwpF.js +0 -2
- package/dist/chunks/tagBlock.component-CTHTbwpF.js.map +0 -1
- package/dist/chunks/tagBlock.component-Cn5fYoot.js +0 -185
- package/dist/chunks/tagBlock.component-Cn5fYoot.js.map +0 -1
- package/dist/chunks/text.component-CBa_saMP.js +0 -2
- package/dist/chunks/text.component-CBa_saMP.js.map +0 -1
- package/dist/chunks/text.component-XYjOAc2s.js +0 -10
- package/dist/chunks/text.component-XYjOAc2s.js.map +0 -1
- package/dist/chunks/text.records-BK_JBYsT.js +0 -16
- package/dist/chunks/text.records-BK_JBYsT.js.map +0 -1
- package/dist/chunks/text.records-CIL3bbY0.js +0 -2
- package/dist/chunks/text.records-CIL3bbY0.js.map +0 -1
- package/dist/chunks/textInput.component-B4drMRyW.js +0 -2
- package/dist/chunks/textInput.component-B4drMRyW.js.map +0 -1
- package/dist/chunks/textInput.component-CwQ7nucZ.js +0 -99
- package/dist/chunks/textInput.component-CwQ7nucZ.js.map +0 -1
- package/dist/chunks/textarea.component-CluzhveR.js +0 -2
- package/dist/chunks/textarea.component-CluzhveR.js.map +0 -1
- package/dist/chunks/textarea.component-EU4v5rOg.js +0 -51
- package/dist/chunks/textarea.component-EU4v5rOg.js.map +0 -1
- package/dist/chunks/timePicker.component-DIMvByCk.js +0 -246
- package/dist/chunks/timePicker.component-DIMvByCk.js.map +0 -1
- package/dist/chunks/timePicker.component-Dhm4i6i_.js +0 -2
- package/dist/chunks/timePicker.component-Dhm4i6i_.js.map +0 -1
- package/dist/chunks/timeRange.component-B1jy-gTv.js +0 -17
- package/dist/chunks/timeRange.component-B1jy-gTv.js.map +0 -1
- package/dist/chunks/timeRange.component-x7m0LgBE.js +0 -2
- package/dist/chunks/timeRange.component-x7m0LgBE.js.map +0 -1
- package/dist/chunks/timestamp.component-CuqY4euh.js +0 -2
- package/dist/chunks/timestamp.component-CuqY4euh.js.map +0 -1
- package/dist/chunks/timestamp.component-D764INLm.js +0 -37
- package/dist/chunks/timestamp.component-D764INLm.js.map +0 -1
- package/dist/chunks/tooltip.component-C3v2m2T2.js +0 -70
- package/dist/chunks/tooltip.component-C3v2m2T2.js.map +0 -1
- package/dist/chunks/tooltip.component-qWFa28S5.js +0 -2
- package/dist/chunks/tooltip.component-qWFa28S5.js.map +0 -1
- package/dist/chunks/vendor-BBfll6i3.js +0 -11757
- package/dist/chunks/vendor-BBfll6i3.js.map +0 -1
- package/dist/chunks/vendor-D-x6W6ez.js +0 -57
- package/dist/chunks/vendor-D-x6W6ez.js.map +0 -1
- package/dist/chunks/withFormControl-BZ7odEAw.js +0 -149
- package/dist/chunks/withFormControl-BZ7odEAw.js.map +0 -1
- package/dist/chunks/withFormControl-DQbPM8m9.js +0 -2
- package/dist/chunks/withFormControl-DQbPM8m9.js.map +0 -1
- package/dist/chunks/withTruncation-BskZBBVs.js +0 -2
- package/dist/chunks/withTruncation-BskZBBVs.js.map +0 -1
- package/dist/chunks/withTruncation-C2xFKhgB.js +0 -74
- package/dist/chunks/withTruncation-C2xFKhgB.js.map +0 -1
- package/dist/cjs/components/Alert/index/index.cjs +0 -2
- package/dist/cjs/components/Avatar/index/index.cjs +0 -2
- package/dist/cjs/components/AvatarGroup/index/index.cjs +0 -2
- package/dist/cjs/components/Button/index/index.cjs +0 -2
- package/dist/cjs/components/ButtonGroup/index/index.cjs +0 -2
- package/dist/cjs/components/Card/index/index.cjs +0 -2
- package/dist/cjs/components/Card/index/index.cjs.map +0 -1
- package/dist/cjs/components/CharacterCounter/index/index.cjs +0 -2
- package/dist/cjs/components/Checkbox/index/index.cjs +0 -2
- package/dist/cjs/components/CheckboxGroup/index/index.cjs +0 -2
- package/dist/cjs/components/DatePicker/index/index.cjs +0 -2
- package/dist/cjs/components/Heading/index/index.cjs +0 -2
- package/dist/cjs/components/Icon/generated/index/index.cjs +0 -2
- package/dist/cjs/components/Icon/generated/index/index.cjs.map +0 -1
- package/dist/cjs/components/Icon/index/index.cjs +0 -2
- package/dist/cjs/components/Link/index/index.cjs +0 -2
- package/dist/cjs/components/Menu/index/index.cjs +0 -2
- package/dist/cjs/components/Modal/index/index.cjs +0 -2
- package/dist/cjs/components/NotificationCounter/index/index.cjs +0 -2
- package/dist/cjs/components/NotificationCounter/index/index.cjs.map +0 -1
- package/dist/cjs/components/Picture/index/index.cjs +0 -2
- package/dist/cjs/components/Picture/index/index.cjs.map +0 -1
- package/dist/cjs/components/Popover/index/index.cjs +0 -2
- package/dist/cjs/components/RadioGroup/index/index.cjs +0 -2
- package/dist/cjs/components/RatingDots/index/index.cjs +0 -2
- package/dist/cjs/components/Select/index/index.cjs +0 -2
- package/dist/cjs/components/SortableList/index/index.cjs +0 -2
- package/dist/cjs/components/Spinner/index/index.cjs +0 -2
- package/dist/cjs/components/Swatch/index/index.cjs +0 -2
- package/dist/cjs/components/Swatch/index/index.cjs.map +0 -1
- package/dist/cjs/components/Switch/index/index.cjs +0 -2
- package/dist/cjs/components/Tabs/index/index.cjs +0 -2
- package/dist/cjs/components/Tag/index/index.cjs +0 -2
- package/dist/cjs/components/Text/index/index.cjs +0 -2
- package/dist/cjs/components/TextInput/index/index.cjs +0 -2
- package/dist/cjs/components/Textarea/index/index.cjs +0 -2
- package/dist/cjs/components/TimePicker/index/index.cjs +0 -2
- package/dist/cjs/components/TimeRange/index/index.cjs +0 -2
- package/dist/cjs/components/Tooltip/index/index.cjs +0 -2
- package/dist/cjs/components/index/index.cjs +0 -2
- package/dist/cjs/hocs/index/index.cjs +0 -2
- package/dist/cjs/hocs/index/index.cjs.map +0 -1
- package/dist/cjs/hooks/index/index.cjs +0 -2
- package/dist/cjs/hooks/index/index.cjs.map +0 -1
- package/dist/cjs/patterns/ConversationCard/index/index.cjs +0 -2
- package/dist/cjs/patterns/StyledAvatar/index/index.cjs +0 -2
- package/dist/cjs/patterns/TagBlock/index/index.cjs +0 -2
- package/dist/cjs/patterns/Timestamp/index/index.cjs +0 -2
- package/dist/cjs/patterns/index/index.cjs +0 -2
- package/dist/cjs/shared/types/index/index.cjs.map +0 -1
- package/dist/cjs/theme/index/index.cjs +0 -24
- package/dist/cjs/theme/index/index.cjs.map +0 -1
- package/dist/cjs/theme/semanticTokens/index/index.cjs.map +0 -1
- package/dist/cjs/theme/tokens/blurs/index/index.cjs +0 -2
- package/dist/cjs/theme/tokens/blurs/index/index.cjs.map +0 -1
- package/dist/cjs/theme/tokens/borders/index/index.cjs +0 -2
- package/dist/cjs/theme/tokens/borders/index/index.cjs.map +0 -1
- package/dist/cjs/theme/tokens/colors/index/index.cjs.map +0 -1
- package/dist/cjs/theme/tokens/index/index.cjs +0 -2
- package/dist/cjs/theme/tokens/shadows/index/index.cjs +0 -2
- package/dist/cjs/theme/tokens/shadows/index/index.cjs.map +0 -1
- package/dist/cjs/theme/tokens/sizes/index/index.cjs +0 -2
- package/dist/cjs/theme/tokens/sizes/index/index.cjs.map +0 -1
- package/dist/cjs/theme/tokens/spacing/index/index.cjs +0 -2
- package/dist/cjs/theme/tokens/spacing/index/index.cjs.map +0 -1
- package/dist/cjs/theme/tokens/transitions/index/index.cjs +0 -2
- package/dist/cjs/theme/tokens/transitions/index/index.cjs.map +0 -1
- package/dist/cjs/theme/tokens/typography/index/index.cjs +0 -2
- package/dist/cjs/theme/tokens/typography/index/index.cjs.map +0 -1
- package/dist/cjs/theme/tokens/zIndices/index/index.cjs +0 -2
- package/dist/cjs/theme/tokens/zIndices/index/index.cjs.map +0 -1
- package/dist/esm/components/Alert/index/index.js +0 -8
- package/dist/esm/components/Avatar/index/index.js +0 -8
- package/dist/esm/components/AvatarGroup/index/index.js +0 -5
- package/dist/esm/components/Button/index/index.js +0 -11
- package/dist/esm/components/ButtonGroup/index/index.js +0 -5
- package/dist/esm/components/Card/index/index.js +0 -8
- package/dist/esm/components/Card/index/index.js.map +0 -1
- package/dist/esm/components/CharacterCounter/index/index.js +0 -5
- package/dist/esm/components/Checkbox/index/index.js +0 -5
- package/dist/esm/components/CheckboxGroup/index/index.js +0 -5
- package/dist/esm/components/DatePicker/index/index.js +0 -7
- package/dist/esm/components/Heading/index/index.js +0 -7
- package/dist/esm/components/Icon/generated/index/index.js +0 -5188
- package/dist/esm/components/Icon/generated/index/index.js.map +0 -1
- package/dist/esm/components/Icon/index/index.js +0 -9
- package/dist/esm/components/Link/index/index.js +0 -5
- package/dist/esm/components/Menu/index/index.js +0 -5
- package/dist/esm/components/Modal/index/index.js +0 -9
- package/dist/esm/components/NotificationCounter/index/index.js +0 -14
- package/dist/esm/components/NotificationCounter/index/index.js.map +0 -1
- package/dist/esm/components/Picture/index/index.js +0 -20
- package/dist/esm/components/Picture/index/index.js.map +0 -1
- package/dist/esm/components/Popover/index/index.js +0 -9
- package/dist/esm/components/RadioGroup/index/index.js +0 -5
- package/dist/esm/components/RatingDots/index/index.js +0 -5
- package/dist/esm/components/Select/index/index.js +0 -5
- package/dist/esm/components/SortableList/index/index.js +0 -5
- package/dist/esm/components/Spinner/index/index.js +0 -7
- package/dist/esm/components/Swatch/index/index.js +0 -65
- package/dist/esm/components/Swatch/index/index.js.map +0 -1
- package/dist/esm/components/Switch/index/index.js +0 -5
- package/dist/esm/components/Tabs/index/index.js +0 -5
- package/dist/esm/components/Tag/index/index.js +0 -9
- package/dist/esm/components/Text/index/index.js +0 -7
- package/dist/esm/components/TextInput/index/index.js +0 -6
- package/dist/esm/components/Textarea/index/index.js +0 -5
- package/dist/esm/components/TimePicker/index/index.js +0 -6
- package/dist/esm/components/TimeRange/index/index.js +0 -5
- package/dist/esm/components/Tooltip/index/index.js +0 -5
- package/dist/esm/components/index/index.js +0 -115
- package/dist/esm/components/index/index.js.map +0 -1
- package/dist/esm/hocs/index/index.js +0 -38
- package/dist/esm/hocs/index/index.js.map +0 -1
- package/dist/esm/hooks/index/index.js +0 -20
- package/dist/esm/hooks/index/index.js.map +0 -1
- package/dist/esm/patterns/ConversationCard/index/index.js +0 -5
- package/dist/esm/patterns/StyledAvatar/index/index.js +0 -6
- package/dist/esm/patterns/TagBlock/index/index.js +0 -6
- package/dist/esm/patterns/Timestamp/index/index.js +0 -5
- package/dist/esm/patterns/index/index.js +0 -13
- package/dist/esm/patterns/index/index.js.map +0 -1
- package/dist/esm/shared/types/index/index.js.map +0 -1
- package/dist/esm/theme/index/index.js +0 -2480
- package/dist/esm/theme/index/index.js.map +0 -1
- package/dist/esm/theme/semanticTokens/index/index.js.map +0 -1
- package/dist/esm/theme/tokens/blurs/index/index.js +0 -14
- package/dist/esm/theme/tokens/blurs/index/index.js.map +0 -1
- package/dist/esm/theme/tokens/borders/index/index.js +0 -23
- package/dist/esm/theme/tokens/borders/index/index.js.map +0 -1
- package/dist/esm/theme/tokens/colors/index/index.js.map +0 -1
- package/dist/esm/theme/tokens/index/index.js +0 -29
- package/dist/esm/theme/tokens/index/index.js.map +0 -1
- package/dist/esm/theme/tokens/shadows/index/index.js +0 -56
- package/dist/esm/theme/tokens/shadows/index/index.js.map +0 -1
- package/dist/esm/theme/tokens/sizes/index/index.js +0 -29
- package/dist/esm/theme/tokens/sizes/index/index.js.map +0 -1
- package/dist/esm/theme/tokens/spacing/index/index.js +0 -39
- package/dist/esm/theme/tokens/spacing/index/index.js.map +0 -1
- package/dist/esm/theme/tokens/transitions/index/index.js +0 -18
- package/dist/esm/theme/tokens/transitions/index/index.js.map +0 -1
- package/dist/esm/theme/tokens/typography/index/index.js +0 -54
- package/dist/esm/theme/tokens/typography/index/index.js.map +0 -1
- package/dist/esm/theme/tokens/zIndices/index/index.js +0 -20
- package/dist/esm/theme/tokens/zIndices/index/index.js.map +0 -1
- package/dist/types/components/Alert/alert.records.d.ts +0 -5
- package/dist/types/components/Alert/docs/alert.argTypes.d.ts +0 -5
- package/dist/types/components/Avatar/components/AvatarBadge/docs/avatarBadge.argTypes.d.ts +0 -3
- package/dist/types/components/Avatar/docs/avatar.argTypes.d.ts +0 -3
- package/dist/types/components/AvatarGroup/docs/avatarGroup.argTypes.d.ts +0 -3
- package/dist/types/components/Button/docs/button.argTypes.d.ts +0 -3
- package/dist/types/components/ButtonGroup/docs/buttonGroup.argTypes.d.ts +0 -3
- package/dist/types/components/Card/docs/card.argTypes.d.ts +0 -3
- package/dist/types/components/CharacterCounter/docs/characterCounter.argTypes.d.ts +0 -3
- package/dist/types/components/Checkbox/docs/checkbox.argTypes.d.ts +0 -3
- package/dist/types/components/CheckboxGroup/docs/checkboxGroup.argTypes.d.ts +0 -3
- package/dist/types/components/DatePicker/docs/datePicker.argTypes.d.ts +0 -3
- package/dist/types/components/Heading/docs/heading.argTypes.d.ts +0 -3
- package/dist/types/components/Icon/docs/icon.argTypes.d.ts +0 -3
- package/dist/types/components/Link/docs/link.argTypes.d.ts +0 -5
- package/dist/types/components/Menu/docs/menu.argTypes.d.ts +0 -4
- package/dist/types/components/Modal/docs/modal.argTypes.d.ts +0 -3
- package/dist/types/components/NotificationCounter/docs/notificationCounter.argTypes.d.ts +0 -3
- package/dist/types/components/Picture/docs/picture.argTypes.d.ts +0 -3
- package/dist/types/components/Popover/docs/popover.argTypes.d.ts +0 -3
- package/dist/types/components/RadioGroup/components/Radio/docs/radio.argTypes.d.ts +0 -3
- package/dist/types/components/RadioGroup/docs/radioGroup.argTypes.d.ts +0 -3
- package/dist/types/components/RatingDots/docs/ratingDots.argTypes.d.ts +0 -3
- package/dist/types/components/Select/docs/select.argTypes.d.ts +0 -3
- package/dist/types/components/SortableList/docs/sortableList.argTypes.d.ts +0 -3
- package/dist/types/components/Spinner/docs/spinner.argTypes.d.ts +0 -3
- package/dist/types/components/Swatch/docs/swatch.argTypes.d.ts +0 -3
- package/dist/types/components/Switch/docs/switch.argTypes.d.ts +0 -3
- package/dist/types/components/Tabs/components/Tab/docs/tab.argTypes.d.ts +0 -3
- package/dist/types/components/Tabs/docs/tabs.argTypes.d.ts +0 -3
- package/dist/types/components/Tag/docs/tag.argTypes.d.ts +0 -3
- package/dist/types/components/Text/docs/text.argTypes.d.ts +0 -3
- package/dist/types/components/TextInput/docs/textInput.argTypes.d.ts +0 -3
- package/dist/types/components/Textarea/docs/textarea.argTypes.d.ts +0 -3
- package/dist/types/components/TimePicker/docs/timePicker.argTypes.d.ts +0 -3
- package/dist/types/components/TimeRange/docs/timeRange.argTypes.d.ts +0 -3
- package/dist/types/components/Tooltip/docs/tooltip.argTypes.d.ts +0 -3
- package/dist/types/patterns/ConversationCard/components/ConversationCardButtons/conversationCardButtons.component.d.ts +0 -21
- package/dist/types/patterns/ConversationCard/components/ConversationCardContent/conversationCardContent.component.d.ts +0 -8
- package/dist/types/patterns/ConversationCard/components/ConversationCardFooter/conversationCardFooter.component.d.ts +0 -9
- package/dist/types/patterns/ConversationCard/components/ConversationCardTags/conversationCardTags.component.d.ts +0 -9
- package/dist/types/patterns/ConversationCard/conversationCard.component.d.ts +0 -23
- package/dist/types/patterns/ConversationCard/docs/conversationCard.argTypes.d.ts +0 -12
- package/dist/types/patterns/ConversationCard/docs/conversationCard.storiesData.d.ts +0 -22
- package/dist/types/patterns/StyledAvatar/docs/styledAvatar.argTypes.d.ts +0 -3
- package/dist/types/patterns/StyledAvatar/styledAvatar.component.d.ts +0 -7
- package/dist/types/patterns/TagBlock/docs/tagBlock.argTypes.d.ts +0 -3
- package/dist/types/patterns/TagBlock/tagBlock.component.d.ts +0 -25
- package/dist/types/patterns/Timestamp/docs/timestamp.argTypes.d.ts +0 -3
- package/dist/types/patterns/Timestamp/timestamp.component.d.ts +0 -11
- package/dist/types/patterns/index.d.ts +0 -4
- package/dist/types/theme/semanticTokens/docs/semanticTokens.d.ts +0 -7
- package/dist/types/theme/tokens/borders/docs/borders.d.ts +0 -5
- package/dist/types/theme/tokens/shadows/docs/shadows.d.ts +0 -6
- package/dist/types/theme/tokens/typography/docs/typography.d.ts +0 -2
- /package/dist/cjs/components/Alert/{index/index.cjs.map → index.cjs.map} +0 -0
- /package/dist/cjs/components/Avatar/{index/index.cjs.map → index.cjs.map} +0 -0
- /package/dist/cjs/components/AvatarGroup/{index/index.cjs.map → index.cjs.map} +0 -0
- /package/dist/cjs/components/Button/{index/index.cjs.map → index.cjs.map} +0 -0
- /package/dist/cjs/components/ButtonGroup/{index/index.cjs.map → index.cjs.map} +0 -0
- /package/dist/cjs/components/{CharacterCounter/index → Card}/index.cjs.map +0 -0
- /package/dist/cjs/components/{Checkbox/index → CharacterCounter}/index.cjs.map +0 -0
- /package/dist/cjs/components/{CheckboxGroup/index → Checkbox}/index.cjs.map +0 -0
- /package/dist/cjs/components/{DatePicker/index → CheckboxGroup}/index.cjs.map +0 -0
- /package/dist/cjs/components/{Heading/index → ConversationCard}/index.cjs.map +0 -0
- /package/dist/cjs/components/{Icon/index → DatePicker}/index.cjs.map +0 -0
- /package/dist/cjs/components/{Link/index → Divider}/index.cjs.map +0 -0
- /package/dist/cjs/components/{Menu/index → Heading}/index.cjs.map +0 -0
- /package/dist/cjs/components/{Modal/index → Icon}/index.cjs.map +0 -0
- /package/dist/cjs/components/{Popover/index → Link}/index.cjs.map +0 -0
- /package/dist/cjs/components/{RadioGroup/index → Logo/generated}/index.cjs.map +0 -0
- /package/dist/cjs/components/{RatingDots/index → Logo}/index.cjs.map +0 -0
- /package/dist/cjs/components/{Select/index → Menu}/index.cjs.map +0 -0
- /package/dist/cjs/components/{SortableList/index → Modal}/index.cjs.map +0 -0
- /package/dist/cjs/components/{Spinner/index → NotificationCounter}/index.cjs.map +0 -0
- /package/dist/cjs/components/{Switch/index → Picture}/index.cjs.map +0 -0
- /package/dist/cjs/components/{Tabs/index → PinInput}/index.cjs.map +0 -0
- /package/dist/cjs/components/{Tag/index → Popover}/index.cjs.map +0 -0
- /package/dist/cjs/components/{Text/index → RadioGroup}/index.cjs.map +0 -0
- /package/dist/cjs/components/{TextInput/index → RatingDots}/index.cjs.map +0 -0
- /package/dist/cjs/components/{Textarea/index → Select}/index.cjs.map +0 -0
- /package/dist/cjs/components/{TimePicker/index → SortableList}/index.cjs.map +0 -0
- /package/dist/cjs/components/{TimeRange/index → Spinner}/index.cjs.map +0 -0
- /package/dist/cjs/components/{Tooltip/index → StyledAvatar}/index.cjs.map +0 -0
- /package/dist/cjs/components/{index → Swatch}/index.cjs.map +0 -0
- /package/dist/cjs/{patterns/ConversationCard/index → components/Switch}/index.cjs.map +0 -0
- /package/dist/cjs/{patterns/StyledAvatar/index → components/Tabs}/index.cjs.map +0 -0
- /package/dist/cjs/{patterns/TagBlock/index → components/Tag}/index.cjs.map +0 -0
- /package/dist/cjs/{patterns/Timestamp/index → components/TagBlock}/index.cjs.map +0 -0
- /package/dist/cjs/{patterns/index → components/Text}/index.cjs.map +0 -0
- /package/dist/cjs/{theme/tokens/index → components/TextInput}/index.cjs.map +0 -0
- /package/dist/cjs/shared/types/{index/index.cjs → index.cjs} +0 -0
- /package/dist/cjs/theme/semanticTokens/{index/index.cjs → index.cjs} +0 -0
- /package/dist/cjs/theme/tokens/colors/{index/index.cjs → index.cjs} +0 -0
- /package/dist/esm/components/Alert/{index/index.js.map → index.js.map} +0 -0
- /package/dist/esm/components/Avatar/{index/index.js.map → index.js.map} +0 -0
- /package/dist/esm/components/AvatarGroup/{index/index.js.map → index.js.map} +0 -0
- /package/dist/esm/components/Button/{index/index.js.map → index.js.map} +0 -0
- /package/dist/esm/components/ButtonGroup/{index/index.js.map → index.js.map} +0 -0
- /package/dist/esm/components/{Heading/index → Card}/index.js.map +0 -0
- /package/dist/esm/components/CharacterCounter/{index/index.js.map → index.js.map} +0 -0
- /package/dist/esm/components/Checkbox/{index/index.js.map → index.js.map} +0 -0
- /package/dist/esm/components/CheckboxGroup/{index/index.js.map → index.js.map} +0 -0
- /package/dist/esm/components/{DatePicker/index → ConversationCard}/index.js.map +0 -0
- /package/dist/esm/components/{Link/index → DatePicker}/index.js.map +0 -0
- /package/dist/esm/components/{Menu/index → Divider}/index.js.map +0 -0
- /package/dist/esm/components/{Modal/index → Heading}/index.js.map +0 -0
- /package/dist/esm/components/Icon/{index/index.js.map → index.js.map} +0 -0
- /package/dist/esm/components/{RadioGroup/index → Link}/index.js.map +0 -0
- /package/dist/esm/components/{RatingDots/index → Logo/generated}/index.js.map +0 -0
- /package/dist/esm/components/{Select/index → Logo}/index.js.map +0 -0
- /package/dist/esm/components/{SortableList/index → Menu}/index.js.map +0 -0
- /package/dist/esm/components/{Switch/index → Modal}/index.js.map +0 -0
- /package/dist/esm/components/{Popover/index → NotificationCounter}/index.js.map +0 -0
- /package/dist/esm/components/{Tabs/index → Picture}/index.js.map +0 -0
- /package/dist/esm/components/{TextInput/index → PinInput}/index.js.map +0 -0
- /package/dist/esm/components/{Spinner/index → Popover}/index.js.map +0 -0
- /package/dist/esm/components/{Textarea/index → RadioGroup}/index.js.map +0 -0
- /package/dist/esm/components/{TimePicker/index → RatingDots}/index.js.map +0 -0
- /package/dist/esm/components/{TimeRange/index → Select}/index.js.map +0 -0
- /package/dist/esm/components/{Tooltip/index → SortableList}/index.js.map +0 -0
- /package/dist/esm/components/{Tag/index → Spinner}/index.js.map +0 -0
- /package/dist/esm/{patterns/ConversationCard/index → components/StyledAvatar}/index.js.map +0 -0
- /package/dist/esm/{patterns/StyledAvatar/index → components/Swatch}/index.js.map +0 -0
- /package/dist/esm/{patterns/TagBlock/index → components/Switch}/index.js.map +0 -0
- /package/dist/esm/{patterns/Timestamp/index → components/Tabs}/index.js.map +0 -0
- /package/dist/esm/components/{Text/index → Tag}/index.js.map +0 -0
- /package/dist/esm/shared/types/{index/index.js → index.js} +0 -0
- /package/dist/esm/theme/semanticTokens/{index/index.js → index.js} +0 -0
- /package/dist/esm/theme/tokens/colors/{index/index.js → index.js} +0 -0
- /package/dist/types/{patterns → components}/ConversationCard/components/ConversationCardAvatarGroup/conversationCardAvatarGroup.component.d.ts +0 -0
- /package/dist/types/{patterns → components}/ConversationCard/components/ConversationCardHeader/conversationCardHeader.component.d.ts +0 -0
- /package/dist/types/{patterns → components}/ConversationCard/index.d.ts +0 -0
- /package/dist/types/{patterns → components}/StyledAvatar/index.d.ts +0 -0
- /package/dist/types/{patterns → components}/StyledAvatar/styledAvatar.types.d.ts +0 -0
- /package/dist/types/{patterns → components}/TagBlock/index.d.ts +0 -0
- /package/dist/types/{patterns → components}/TagBlock/tagBlock.types.d.ts +0 -0
- /package/dist/types/{patterns → components}/Timestamp/index.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textInput.component-CwQ7nucZ.js","sources":["../../src/components/TextInput/textInput.records.ts","../../src/components/TextInput/textInput.component.tsx"],"sourcesContent":["import { ButtonSize } from \"components/Button/button.types\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\n\nexport const closeButtonSizeMap: Record<FormControlSize, ButtonSize> = {\n sm: \"xs\",\n md: \"sm\",\n lg: \"md\",\n};\n","import React, { ForwardedRef, useMemo } from \"react\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport {\n Input as CInput,\n InputProps as CInputProps,\n InputGroup,\n} from \"@chakra-ui/react/input\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport { Button } from \"components/Button/button.component\";\nimport { CharacterCounter } from \"components/CharacterCounter/characterCounter.component\";\nimport { closeButtonSizeMap } from \"./textInput.records\";\n\nexport interface TextInputBaseProps extends WithFormControlProps {\n charLimit?: number;\n inputRef?: ForwardedRef<HTMLInputElement>;\n onContrast?: boolean;\n leftAddon?: React.ReactNode;\n leftElement?: React.ReactNode;\n rightAddon?: React.ReactNode;\n rightElement?: React.ReactNode;\n size?: FormControlSize;\n}\n\nexport interface DefaultTextInputProps extends TextInputBaseProps {\n clearable?: never;\n onClear?: never;\n}\n\nexport interface ClearableTextInputProps extends TextInputBaseProps {\n clearable?: boolean;\n onClear?: (val: string | number | readonly string[]) => void;\n}\n\nexport type KTextInputProps = DefaultTextInputProps | ClearableTextInputProps;\n\nexport type TextInputProps = KTextInputProps & CInputProps;\n\nconst TextInput = withFormControl(\n ({\n charLimit = undefined,\n clearable = false,\n disabled = false,\n inputRef,\n invalid,\n leftAddon,\n leftElement,\n onClear,\n onContrast,\n rightAddon,\n rightElement,\n size = \"md\",\n value,\n ...rest\n }: TextInputProps): React.JSX.Element => {\n const handleClear = (): void => {\n if (onClear) {\n onClear(value || \"\");\n }\n };\n\n if (clearable && !!value && !disabled) {\n rightElement = (\n <Button\n className=\"TextInput__ClearButton\"\n data-testid=\"kibble-text-input-clear-button\"\n size={closeButtonSizeMap[size as FormControlSize]}\n variant=\"ghostNeutral\"\n onClick={handleClear}\n iconName=\"close\"\n />\n );\n }\n\n const currentCharCount = useMemo(\n () => value?.toString()?.length || 0,\n [value],\n );\n\n return (\n <Box className=\"TextInput__Wrapper\" position=\"relative\" w=\"100%\">\n <InputGroup\n className=\"TextInput__InputGroup\"\n data-testid=\"kibble-text-input-group\"\n startElement={leftElement}\n startElementProps={{\n color: \"inherit\",\n _groupDisabled: { opacity: 0.6 },\n }}\n endElement={rightElement}\n endElementProps={{\n color: \"inherit\",\n paddingInline: 1.5,\n _groupDisabled: { opacity: 0.6 },\n }}\n startAddon={leftAddon}\n endAddon={rightAddon}\n >\n <CInput\n data-testid=\"kibble-text-input\"\n className=\"TextInput\"\n ref={inputRef}\n value={value}\n size={size}\n disabled={disabled}\n {...(invalid && { \"aria-invalid\": true })}\n variant={onContrast ? \"onContrast\" : \"default\"}\n {...rest}\n />\n </InputGroup>\n {!!charLimit && (\n <CharacterCounter\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Box>\n );\n },\n);\n\nconst WrappedTextInput = React.forwardRef(\n (props: TextInputProps, ref: ForwardedRef<HTMLInputElement>) => (\n <TextInput inputRef={ref} {...props} />\n ),\n);\n\nWrappedTextInput.displayName = \"TextInput\";\n\nexport { WrappedTextInput as TextInput };\n"],"names":["closeButtonSizeMap","TextInput","withFormControl","charLimit","clearable","disabled","inputRef","invalid","leftAddon","leftElement","onClear","onContrast","rightAddon","rightElement","size","value","rest","handleClear","jsx","Button","currentCharCount","useMemo","Box","InputGroup","CInput","CharacterCounter","WrappedTextInput","React","props","ref"],"mappings":";;;;;;AAGO,MAAMA,IAA0D;AAAA,EACrE,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GCkCMC,IAAYC;AAAA,EAChB,CAAC;AAAA,IACC,WAAAC,IAAY;AAAA,IACZ,WAAAC,IAAY;AAAA,IACZ,UAAAC,IAAW;AAAA,IACX,UAAAC;AAAA,IACA,SAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,YAAAC;AAAA,IACA,YAAAC;AAAA,IACA,cAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,OAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,MACoC;AACvC,UAAMC,IAAc,MAAY;AAC9B,MAAIP,KACFA,EAAQK,KAAS,EAAE;AAAA,IAEvB;AAEA,IAAIX,KAAeW,KAAS,CAACV,MAEzBQ,IAAAK,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,eAAY;AAAA,QACZ,MAAMnB,EAAmBc,CAAuB;AAAA,QAChD,SAAQ;AAAA,QACR,SAASG;AAAA,QACT,UAAS;AAAA,MAAA;AAAA,IACX;AAIJ,UAAMG,IAAmBC;AAAA,MACvB,MAAMN,GAAO,YAAY,UAAU;AAAA,MACnC,CAACA,CAAK;AAAA,IACR;AAEA,kCACGO,GAAI,EAAA,WAAU,sBAAqB,UAAS,YAAW,GAAE,QACxD,UAAA;AAAA,MAAAJ,gBAAAA,EAAA;AAAA,QAACK;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,eAAY;AAAA,UACZ,cAAcd;AAAA,UACd,mBAAmB;AAAA,YACjB,OAAO;AAAA,YACP,gBAAgB,EAAE,SAAS,IAAI;AAAA,UACjC;AAAA,UACA,YAAYI;AAAA,UACZ,iBAAiB;AAAA,YACf,OAAO;AAAA,YACP,eAAe;AAAA,YACf,gBAAgB,EAAE,SAAS,IAAI;AAAA,UACjC;AAAA,UACA,YAAYL;AAAA,UACZ,UAAUI;AAAA,UAEV,UAAAM,gBAAAA,EAAA;AAAA,YAACM;AAAAA,YAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAU;AAAA,cACV,KAAKlB;AAAA,cACL,OAAAS;AAAA,cACA,MAAAD;AAAA,cACA,UAAAT;AAAA,cACC,GAAIE,KAAW,EAAE,gBAAgB,GAAK;AAAA,cACvC,SAASI,IAAa,eAAe;AAAA,cACpC,GAAGK;AAAA,YAAA;AAAA,UAAA;AAAA,QACN;AAAA,MACF;AAAA,MACC,CAAC,CAACb,KACDe,gBAAAA,EAAA;AAAA,QAACO;AAAA,QAAA;AAAA,UACC,WAAW;AAAA,UACX,OAAOtB;AAAA,UACP,cAAciB;AAAA,QAAA;AAAA,MAAA;AAAA,IAChB,GAEJ;AAAA,EAAA;AAGN,GAEMM,IAAmBC,EAAM;AAAA,EAC7B,CAACC,GAAuBC,MACtBX,gBAAAA,MAACjB,KAAU,UAAU4B,GAAM,GAAGD,EAAO,CAAA;AAEzC;AAEAF,EAAiB,cAAc;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./vendor-D-x6W6ez.js"),o=require("react"),d=require("./withFormControl-DQbPM8m9.js"),l=require("./characterCounter.component-BXxyn_IB.js"),n=require("./chakra-DmF8Cxqs.js"),C=d.withFormControl(({charLimit:e=void 0,invalid:r,onContrast:i,resize:x="none",textareaRef:c,value:a,...u})=>{const p=i?"onContrast":"default",m=o.useMemo(()=>a?.toString()?.length||0,[a]);return t.jsxRuntimeExports.jsxs(n.Flex,{className:"Textarea__Wrapper",position:"relative",w:"100%",children:[t.jsxRuntimeExports.jsx(n.Textarea,{className:"Textarea","data-testid":"kibble-textarea",resize:x,variant:p,value:a,...r&&{"aria-invalid":!0},...u,ref:c}),!!e&&t.jsxRuntimeExports.jsx(l.CharacterCounter,{withLimit:!0,limit:e,currentCount:m})]})}),s=o.forwardRef((e,r)=>t.jsxRuntimeExports.jsx(C,{textareaRef:r,...e}));s.displayName="Textarea";exports.WrappedTextArea=s;
|
|
2
|
-
//# sourceMappingURL=textarea.component-CluzhveR.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.component-CluzhveR.js","sources":["../../src/components/Textarea/textarea.component.tsx"],"sourcesContent":["import React, { ForwardedRef, useMemo } from \"react\";\nimport {\n Textarea as CTextarea,\n TextareaProps as CTextareaProps,\n} from \"@chakra-ui/react/textarea\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport { Flex } from \"@chakra-ui/react/flex\";\nimport { CharacterCounter } from \"components/CharacterCounter/characterCounter.component\";\n\nexport interface TextareaProps extends WithFormControlProps, CTextareaProps {\n charLimit?: number;\n textareaRef?: ForwardedRef<HTMLTextAreaElement>;\n size?: FormControlSize;\n}\n\nconst Textarea = withFormControl(\n ({\n charLimit = undefined,\n invalid,\n onContrast,\n resize = \"none\",\n textareaRef,\n value,\n ...rest\n }: TextareaProps): React.JSX.Element => {\n const _computedVariant = onContrast ? \"onContrast\" : \"default\";\n\n const currentCharCount = useMemo(\n () => value?.toString()?.length || 0,\n [value],\n );\n\n return (\n <Flex className=\"Textarea__Wrapper\" position=\"relative\" w=\"100%\">\n <CTextarea\n className=\"Textarea\"\n data-testid=\"kibble-textarea\"\n resize={resize}\n variant={_computedVariant}\n value={value}\n {...(invalid && { \"aria-invalid\": true })}\n {...rest}\n ref={textareaRef}\n />\n {!!charLimit && (\n <CharacterCounter\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nconst WrappedTextArea = React.forwardRef(\n (props: TextareaProps, ref: ForwardedRef<HTMLTextAreaElement>) => (\n <Textarea textareaRef={ref} {...props} />\n ),\n);\n\nWrappedTextArea.displayName = \"Textarea\";\n\nexport { WrappedTextArea as Textarea };\n"],"names":["Textarea","withFormControl","charLimit","invalid","onContrast","resize","textareaRef","value","rest","_computedVariant","currentCharCount","useMemo","Flex","jsx","CTextarea","CharacterCounter","WrappedTextArea","React","props","ref"],"mappings":"2MAmBMA,EAAWC,EAAA,gBACf,CAAC,CACC,UAAAC,EAAY,OACZ,QAAAC,EACA,WAAAC,EACA,OAAAC,EAAS,OACT,YAAAC,EACA,MAAAC,EACA,GAAGC,CAAA,IACmC,CAChC,MAAAC,EAAmBL,EAAa,aAAe,UAE/CM,EAAmBC,EAAA,QACvB,IAAMJ,GAAO,YAAY,QAAU,EACnC,CAACA,CAAK,CACR,EAEA,gCACGK,OAAK,CAAA,UAAU,oBAAoB,SAAS,WAAW,EAAE,OACxD,SAAA,CAAAC,EAAA,kBAAA,IAACC,EAAA,SAAA,CACC,UAAU,WACV,cAAY,kBACZ,OAAAT,EACA,QAASI,EACT,MAAAF,EACC,GAAIJ,GAAW,CAAE,eAAgB,EAAK,EACtC,GAAGK,EACJ,IAAKF,CAAA,CACP,EACC,CAAC,CAACJ,GACDW,EAAA,kBAAA,IAACE,EAAA,iBAAA,CACC,UAAW,GACX,MAAOb,EACP,aAAcQ,CAAA,CAAA,CAChB,EAEJ,CAAA,CAGN,EAEMM,EAAkBC,EAAM,WAC5B,CAACC,EAAsBC,IACrBN,wBAACb,GAAS,YAAamB,EAAM,GAAGD,CAAO,CAAA,CAE3C,EAEAF,EAAgB,YAAc"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { x as r } from "./vendor-BBfll6i3.js";
|
|
2
|
-
import p, { useMemo as c } from "react";
|
|
3
|
-
import { w as d } from "./withFormControl-BZ7odEAw.js";
|
|
4
|
-
import { C as f } from "./characterCounter.component-DhiMcztY.js";
|
|
5
|
-
import { F as l, T as u } from "./chakra-BqBkjpvZ.js";
|
|
6
|
-
const C = d(
|
|
7
|
-
({
|
|
8
|
-
charLimit: t = void 0,
|
|
9
|
-
invalid: e,
|
|
10
|
-
onContrast: o,
|
|
11
|
-
resize: s = "none",
|
|
12
|
-
textareaRef: i,
|
|
13
|
-
value: a,
|
|
14
|
-
...n
|
|
15
|
-
}) => {
|
|
16
|
-
const m = o ? "onContrast" : "default", x = c(
|
|
17
|
-
() => a?.toString()?.length || 0,
|
|
18
|
-
[a]
|
|
19
|
-
);
|
|
20
|
-
return /* @__PURE__ */ r.jsxs(l, { className: "Textarea__Wrapper", position: "relative", w: "100%", children: [
|
|
21
|
-
/* @__PURE__ */ r.jsx(
|
|
22
|
-
u,
|
|
23
|
-
{
|
|
24
|
-
className: "Textarea",
|
|
25
|
-
"data-testid": "kibble-textarea",
|
|
26
|
-
resize: s,
|
|
27
|
-
variant: m,
|
|
28
|
-
value: a,
|
|
29
|
-
...e && { "aria-invalid": !0 },
|
|
30
|
-
...n,
|
|
31
|
-
ref: i
|
|
32
|
-
}
|
|
33
|
-
),
|
|
34
|
-
!!t && /* @__PURE__ */ r.jsx(
|
|
35
|
-
f,
|
|
36
|
-
{
|
|
37
|
-
withLimit: !0,
|
|
38
|
-
limit: t,
|
|
39
|
-
currentCount: x
|
|
40
|
-
}
|
|
41
|
-
)
|
|
42
|
-
] });
|
|
43
|
-
}
|
|
44
|
-
), T = p.forwardRef(
|
|
45
|
-
(t, e) => /* @__PURE__ */ r.jsx(C, { textareaRef: e, ...t })
|
|
46
|
-
);
|
|
47
|
-
T.displayName = "Textarea";
|
|
48
|
-
export {
|
|
49
|
-
T as W
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=textarea.component-EU4v5rOg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.component-EU4v5rOg.js","sources":["../../src/components/Textarea/textarea.component.tsx"],"sourcesContent":["import React, { ForwardedRef, useMemo } from \"react\";\nimport {\n Textarea as CTextarea,\n TextareaProps as CTextareaProps,\n} from \"@chakra-ui/react/textarea\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport { Flex } from \"@chakra-ui/react/flex\";\nimport { CharacterCounter } from \"components/CharacterCounter/characterCounter.component\";\n\nexport interface TextareaProps extends WithFormControlProps, CTextareaProps {\n charLimit?: number;\n textareaRef?: ForwardedRef<HTMLTextAreaElement>;\n size?: FormControlSize;\n}\n\nconst Textarea = withFormControl(\n ({\n charLimit = undefined,\n invalid,\n onContrast,\n resize = \"none\",\n textareaRef,\n value,\n ...rest\n }: TextareaProps): React.JSX.Element => {\n const _computedVariant = onContrast ? \"onContrast\" : \"default\";\n\n const currentCharCount = useMemo(\n () => value?.toString()?.length || 0,\n [value],\n );\n\n return (\n <Flex className=\"Textarea__Wrapper\" position=\"relative\" w=\"100%\">\n <CTextarea\n className=\"Textarea\"\n data-testid=\"kibble-textarea\"\n resize={resize}\n variant={_computedVariant}\n value={value}\n {...(invalid && { \"aria-invalid\": true })}\n {...rest}\n ref={textareaRef}\n />\n {!!charLimit && (\n <CharacterCounter\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nconst WrappedTextArea = React.forwardRef(\n (props: TextareaProps, ref: ForwardedRef<HTMLTextAreaElement>) => (\n <Textarea textareaRef={ref} {...props} />\n ),\n);\n\nWrappedTextArea.displayName = \"Textarea\";\n\nexport { WrappedTextArea as Textarea };\n"],"names":["Textarea","withFormControl","charLimit","invalid","onContrast","resize","textareaRef","value","rest","_computedVariant","currentCharCount","useMemo","Flex","jsx","CTextarea","CharacterCounter","WrappedTextArea","React","props","ref"],"mappings":";;;;;AAmBA,MAAMA,IAAWC;AAAA,EACf,CAAC;AAAA,IACC,WAAAC,IAAY;AAAA,IACZ,SAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC,IAAS;AAAA,IACT,aAAAC;AAAA,IACA,OAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,MACmC;AAChC,UAAAC,IAAmBL,IAAa,eAAe,WAE/CM,IAAmBC;AAAA,MACvB,MAAMJ,GAAO,YAAY,UAAU;AAAA,MACnC,CAACA,CAAK;AAAA,IACR;AAEA,kCACGK,GAAK,EAAA,WAAU,qBAAoB,UAAS,YAAW,GAAE,QACxD,UAAA;AAAA,MAAAC,gBAAAA,EAAA;AAAA,QAACC;AAAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,eAAY;AAAA,UACZ,QAAAT;AAAA,UACA,SAASI;AAAA,UACT,OAAAF;AAAA,UACC,GAAIJ,KAAW,EAAE,gBAAgB,GAAK;AAAA,UACtC,GAAGK;AAAA,UACJ,KAAKF;AAAA,QAAA;AAAA,MACP;AAAA,MACC,CAAC,CAACJ,KACDW,gBAAAA,EAAA;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,WAAW;AAAA,UACX,OAAOb;AAAA,UACP,cAAcQ;AAAA,QAAA;AAAA,MAAA;AAAA,IAChB,GAEJ;AAAA,EAAA;AAGN,GAEMM,IAAkBC,EAAM;AAAA,EAC5B,CAACC,GAAsBC,MACrBN,gBAAAA,MAACb,KAAS,aAAamB,GAAM,GAAGD,EAAO,CAAA;AAE3C;AAEAF,EAAgB,cAAc;"}
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { x as o } from "./vendor-BBfll6i3.js";
|
|
2
|
-
import { useCallback as b, useRef as w, useEffect as H, useState as h, useMemo as R } from "react";
|
|
3
|
-
import { W as G } from "./textInput.component-CwQ7nucZ.js";
|
|
4
|
-
import { P as J } from "./popover.component-BDuDQ5ns.js";
|
|
5
|
-
import { I as K } from "./icon.component-CFH2bMLy.js";
|
|
6
|
-
import { u as Q } from "./useIconTextSizeMap-BK-pUrQv.js";
|
|
7
|
-
import { f as U } from "./date-1NFv48Qu.js";
|
|
8
|
-
import { ad as X, u as Z, B as M, r as ee, y as V } from "./chakra-BqBkjpvZ.js";
|
|
9
|
-
const te = X({
|
|
10
|
-
base: {
|
|
11
|
-
borderRadius: "4px",
|
|
12
|
-
cursor: "pointer",
|
|
13
|
-
fontSize: "sm",
|
|
14
|
-
px: 3,
|
|
15
|
-
py: 1,
|
|
16
|
-
textAlign: "center"
|
|
17
|
-
},
|
|
18
|
-
variants: {
|
|
19
|
-
selected: {
|
|
20
|
-
true: {
|
|
21
|
-
background: "background.secondary",
|
|
22
|
-
color: "text.contrast",
|
|
23
|
-
_hover: {
|
|
24
|
-
background: "background.secondary.hover"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
false: {
|
|
28
|
-
background: "background",
|
|
29
|
-
color: "text.subtle",
|
|
30
|
-
_hover: {
|
|
31
|
-
background: "background.secondaryAlpha.hover"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
defaultVariants: {
|
|
37
|
-
selected: !1
|
|
38
|
-
}
|
|
39
|
-
}), se = ({
|
|
40
|
-
value: t,
|
|
41
|
-
innerRef: i,
|
|
42
|
-
onClick: c,
|
|
43
|
-
selected: a
|
|
44
|
-
}) => {
|
|
45
|
-
const T = Z({ recipe: te })({ selected: a }), d = b(
|
|
46
|
-
(s) => {
|
|
47
|
-
const l = s.currentTarget.textContent || "";
|
|
48
|
-
c(l);
|
|
49
|
-
},
|
|
50
|
-
[c]
|
|
51
|
-
);
|
|
52
|
-
return /* @__PURE__ */ o.jsx(
|
|
53
|
-
M,
|
|
54
|
-
{
|
|
55
|
-
className: "TimePicker__Option",
|
|
56
|
-
"data-testid": "kibble-timepicker-option",
|
|
57
|
-
ref: i,
|
|
58
|
-
onClick: d,
|
|
59
|
-
css: T,
|
|
60
|
-
children: t
|
|
61
|
-
}
|
|
62
|
-
);
|
|
63
|
-
}, z = ee({
|
|
64
|
-
slots: ["trigger", "container", "list"],
|
|
65
|
-
base: {
|
|
66
|
-
trigger: {
|
|
67
|
-
width: "100%"
|
|
68
|
-
},
|
|
69
|
-
container: {
|
|
70
|
-
display: "flex",
|
|
71
|
-
gap: 1.5,
|
|
72
|
-
height: "186px",
|
|
73
|
-
overflow: "hidden"
|
|
74
|
-
},
|
|
75
|
-
list: {
|
|
76
|
-
display: "flex",
|
|
77
|
-
flexDirection: "column",
|
|
78
|
-
gap: 1,
|
|
79
|
-
overflowY: "auto",
|
|
80
|
-
"&::webkit-scrollbar": {
|
|
81
|
-
display: "none"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}), A = ({
|
|
86
|
-
options: t,
|
|
87
|
-
optionType: i,
|
|
88
|
-
selectedValue: c,
|
|
89
|
-
onClick: a,
|
|
90
|
-
open: f = !1
|
|
91
|
-
}) => {
|
|
92
|
-
const d = V({ recipe: z })(), s = w(null), l = w(null);
|
|
93
|
-
return H(() => {
|
|
94
|
-
f && l.current && s.current && (l.current.scrollTop = s.current?.offsetTop - l.current?.offsetTop);
|
|
95
|
-
}, [f]), /* @__PURE__ */ o.jsx(
|
|
96
|
-
M,
|
|
97
|
-
{
|
|
98
|
-
className: "TimePicker__List",
|
|
99
|
-
"data-testid": `kibble-timepicker-${i}-list`,
|
|
100
|
-
css: d.list,
|
|
101
|
-
children: t.map((n) => /* @__PURE__ */ o.jsx(
|
|
102
|
-
se,
|
|
103
|
-
{
|
|
104
|
-
innerRef: n === c ? s : null,
|
|
105
|
-
value: n,
|
|
106
|
-
selected: n === c,
|
|
107
|
-
onClick: a,
|
|
108
|
-
"data-testid": n
|
|
109
|
-
},
|
|
110
|
-
`${i}-option-${n}`
|
|
111
|
-
))
|
|
112
|
-
}
|
|
113
|
-
);
|
|
114
|
-
};
|
|
115
|
-
var u = /* @__PURE__ */ ((t) => (t.AM = "AM", t.PM = "PM", t))(u || {});
|
|
116
|
-
const de = ({
|
|
117
|
-
initialTime: t,
|
|
118
|
-
inputProps: i,
|
|
119
|
-
minuteInterval: c = 5,
|
|
120
|
-
onTimeChange: a,
|
|
121
|
-
placement: f = "bottom"
|
|
122
|
-
}) => {
|
|
123
|
-
const d = V({ recipe: z })(), [s, l] = h(!1), [n, C] = h(t), [g, j] = h(), [p, y] = h(), [k, P] = h(), D = R(() => n ? U(n, "h:mm aa") : "", [n]), O = (e) => {
|
|
124
|
-
const r = e.toString();
|
|
125
|
-
return r.length === 1 ? `0${r}` : r;
|
|
126
|
-
}, I = R(() => [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].map(
|
|
127
|
-
(e) => e.toString()
|
|
128
|
-
), []), $ = R(() => {
|
|
129
|
-
const e = [];
|
|
130
|
-
for (let r = 0; r < 60; r += c)
|
|
131
|
-
e.push(r);
|
|
132
|
-
return e.map(O);
|
|
133
|
-
}, [c]), E = [u.AM, u.PM], m = b(
|
|
134
|
-
(e, r, x) => {
|
|
135
|
-
const S = e || "12", Y = r || "00", v = x || "AM";
|
|
136
|
-
let _ = 0;
|
|
137
|
-
e || j("12"), r || y("00"), x || P("AM"), v === u.PM && Number(S) < 12 && (_ = 12), v === u.AM && Number(S) === 12 && (_ = -12);
|
|
138
|
-
const q = Number(S) + _, F = (/* @__PURE__ */ new Date()).setHours(q, Number(Y), 0, 0), N = new Date(F);
|
|
139
|
-
C(N), a && a(N);
|
|
140
|
-
},
|
|
141
|
-
[a]
|
|
142
|
-
), B = b(
|
|
143
|
-
(e) => {
|
|
144
|
-
j(e), m(e, p, k);
|
|
145
|
-
},
|
|
146
|
-
[m, k, p]
|
|
147
|
-
), L = b(
|
|
148
|
-
(e) => {
|
|
149
|
-
y(e), m(g, e, k);
|
|
150
|
-
},
|
|
151
|
-
[m, g, k]
|
|
152
|
-
), W = b(
|
|
153
|
-
(e) => {
|
|
154
|
-
P(e), m(g, p, e);
|
|
155
|
-
},
|
|
156
|
-
[m, g, p]
|
|
157
|
-
);
|
|
158
|
-
return H(() => {
|
|
159
|
-
if (t) {
|
|
160
|
-
const e = new Date(t), x = e.getHours() % 12 || 12;
|
|
161
|
-
C(t), j(x.toString()), y(e.getMinutes().toString()), P(
|
|
162
|
-
e.getHours() > 11 ? u.PM : u.AM
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
}, [t]), /* @__PURE__ */ o.jsx(
|
|
166
|
-
J,
|
|
167
|
-
{
|
|
168
|
-
open: s,
|
|
169
|
-
onOpenChange: ({ open: e }) => l(e),
|
|
170
|
-
anchor: /* @__PURE__ */ o.jsx(
|
|
171
|
-
M,
|
|
172
|
-
{
|
|
173
|
-
className: "TimePicker__Trigger",
|
|
174
|
-
"data-testid": "kibble-timepicker-trigger",
|
|
175
|
-
css: d.trigger,
|
|
176
|
-
children: /* @__PURE__ */ o.jsx(
|
|
177
|
-
G,
|
|
178
|
-
{
|
|
179
|
-
placeholder: "12:00 AM",
|
|
180
|
-
rightElement: /* @__PURE__ */ o.jsx(
|
|
181
|
-
K,
|
|
182
|
-
{
|
|
183
|
-
size: Q(i?.size || "md"),
|
|
184
|
-
name: "clock"
|
|
185
|
-
}
|
|
186
|
-
),
|
|
187
|
-
value: D,
|
|
188
|
-
readOnly: !0,
|
|
189
|
-
cursor: "pointer",
|
|
190
|
-
...i,
|
|
191
|
-
...s && { "data-focus": "true" }
|
|
192
|
-
}
|
|
193
|
-
)
|
|
194
|
-
}
|
|
195
|
-
),
|
|
196
|
-
contentProps: { w: "max-content" },
|
|
197
|
-
variant: "default",
|
|
198
|
-
placement: f,
|
|
199
|
-
children: /* @__PURE__ */ o.jsxs(
|
|
200
|
-
M,
|
|
201
|
-
{
|
|
202
|
-
className: "TimePicker__Container",
|
|
203
|
-
"data-testid": "kibble-timepicker-container",
|
|
204
|
-
css: d.container,
|
|
205
|
-
children: [
|
|
206
|
-
/* @__PURE__ */ o.jsx(
|
|
207
|
-
A,
|
|
208
|
-
{
|
|
209
|
-
options: I,
|
|
210
|
-
optionType: "hour",
|
|
211
|
-
selectedValue: g,
|
|
212
|
-
onClick: B,
|
|
213
|
-
open: s
|
|
214
|
-
}
|
|
215
|
-
),
|
|
216
|
-
/* @__PURE__ */ o.jsx(
|
|
217
|
-
A,
|
|
218
|
-
{
|
|
219
|
-
options: $,
|
|
220
|
-
optionType: "minute",
|
|
221
|
-
selectedValue: p ? O(p) : void 0,
|
|
222
|
-
onClick: L,
|
|
223
|
-
open: s
|
|
224
|
-
}
|
|
225
|
-
),
|
|
226
|
-
/* @__PURE__ */ o.jsx(
|
|
227
|
-
A,
|
|
228
|
-
{
|
|
229
|
-
options: E,
|
|
230
|
-
optionType: "meridiem",
|
|
231
|
-
selectedValue: k,
|
|
232
|
-
onClick: W,
|
|
233
|
-
open: s
|
|
234
|
-
}
|
|
235
|
-
)
|
|
236
|
-
]
|
|
237
|
-
}
|
|
238
|
-
)
|
|
239
|
-
}
|
|
240
|
-
);
|
|
241
|
-
};
|
|
242
|
-
export {
|
|
243
|
-
u as M,
|
|
244
|
-
de as T
|
|
245
|
-
};
|
|
246
|
-
//# sourceMappingURL=timePicker.component-DIMvByCk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timePicker.component-DIMvByCk.js","sources":["../../src/components/TimePicker/components/TimeOption/timeOption.recipe.ts","../../src/components/TimePicker/components/TimeOption/timeOption.component.tsx","../../src/components/TimePicker/timePicker.recipe.ts","../../src/components/TimePicker/components/TimeList/timeList.component.tsx","../../src/components/TimePicker/timePicker.types.ts","../../src/components/TimePicker/timePicker.component.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n\nexport const timeOptionRecipe = defineRecipe({\n base: {\n borderRadius: \"4px\",\n cursor: \"pointer\",\n fontSize: \"sm\",\n px: 3,\n py: 1,\n textAlign: \"center\",\n },\n variants: {\n selected: {\n true: {\n background: \"background.secondary\",\n color: \"text.contrast\",\n _hover: {\n background: \"background.secondary.hover\",\n },\n },\n false: {\n background: \"background\",\n color: \"text.subtle\",\n _hover: {\n background: \"background.secondaryAlpha.hover\",\n },\n },\n },\n },\n defaultVariants: {\n selected: false,\n },\n});\n","import React, { useCallback } from \"react\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { timeOptionRecipe } from \"./timeOption.recipe\";\n\ninterface TimeOptionProps {\n innerRef?: React.RefObject<HTMLDivElement | null> | null;\n onClick: (selectedValue: string) => void;\n selected: boolean;\n value: string;\n}\n\nexport const TimeOption = ({\n value,\n innerRef,\n onClick,\n selected,\n}: TimeOptionProps): React.JSX.Element => {\n const recipe = useRecipe({ recipe: timeOptionRecipe });\n const styles = recipe({ selected });\n\n const handleClick = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n const selectedValue = event.currentTarget.textContent || \"\";\n onClick(selectedValue);\n },\n [onClick],\n );\n\n return (\n <Box\n className=\"TimePicker__Option\"\n data-testid=\"kibble-timepicker-option\"\n ref={innerRef}\n onClick={handleClick}\n css={styles}\n >\n {value}\n </Box>\n );\n};\n","import { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\n\nexport const timePickerRecipe = defineSlotRecipe({\n slots: [\"trigger\", \"container\", \"list\"],\n base: {\n trigger: {\n width: \"100%\",\n },\n container: {\n display: \"flex\",\n gap: 1.5,\n height: \"186px\",\n overflow: \"hidden\",\n },\n list: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: 1,\n overflowY: \"auto\",\n \"&::webkit-scrollbar\": {\n display: \"none\",\n },\n },\n },\n});\n","import React, { useEffect, useRef } from \"react\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport { TimeOption } from \"../TimeOption/timeOption.component\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { timePickerRecipe } from \"../../timePicker.recipe\";\n\ninterface ScrollContainerProps {\n options: string[];\n optionType: \"hour\" | \"minute\" | \"meridiem\";\n selectedValue?: string;\n onClick: (value: string) => void;\n open: boolean;\n}\n\nexport const TimeList = ({\n options,\n optionType,\n selectedValue,\n onClick,\n open = false,\n}: ScrollContainerProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: timePickerRecipe });\n const styles = recipe();\n const itemRef = useRef<HTMLDivElement>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n if (open && containerRef.current && itemRef.current) {\n containerRef.current.scrollTop =\n itemRef.current?.offsetTop - containerRef.current?.offsetTop;\n }\n }, [open]);\n\n return (\n <Box\n className=\"TimePicker__List\"\n data-testid={`kibble-timepicker-${optionType}-list`}\n css={styles.list}\n >\n {options.map((option) => {\n return (\n <TimeOption\n key={`${optionType}-option-${option}`}\n innerRef={option === selectedValue ? itemRef : null}\n value={option}\n selected={option === selectedValue}\n onClick={onClick}\n data-testid={option}\n />\n );\n })}\n </Box>\n );\n};\n","export enum Meridiem {\n AM = \"AM\",\n PM = \"PM\",\n}\n","import React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport {\n TextInput,\n TextInputProps,\n} from \"components/TextInput/textInput.component\";\nimport { Popover } from \"components/Popover/popover.component\";\nimport { Icon } from \"components/Icon/icon.component\";\nimport { useIconTextSizeMap } from \"hooks/useIconTextSizeMap\";\nimport format from \"date-fns/format\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport { TimeList } from \"./components/TimeList/timeList.component\";\nimport { Meridiem } from \"./timePicker.types\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { timePickerRecipe } from \"./timePicker.recipe\";\nimport { Placement } from \"shared/types/placement\";\n\nexport interface TimePickerProps {\n initialTime?: Date;\n inputProps?: Omit<\n TextInputProps,\n \"onChange\" | \"value\" | \"isClearable\" | \"onClear\"\n >;\n minuteInterval?: number;\n onTimeChange?: (time: Date) => void;\n placement?: Placement;\n}\n\nexport const TimePicker = ({\n initialTime,\n inputProps,\n minuteInterval = 5,\n onTimeChange,\n placement = \"bottom\",\n}: TimePickerProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: timePickerRecipe });\n const styles = recipe();\n const [isOpen, setIsOpen] = useState(false);\n const [selectedTime, setSelectedTime] = useState(initialTime);\n const [selectedHour, setSelectedHour] = useState<string | undefined>();\n const [selectedMinute, setSelectedMinute] = useState<string | undefined>();\n const [selectedMeridiem, setSelectedMeridiem] = useState<\n string | undefined\n >();\n\n const formattedTime = useMemo(() => {\n if (!selectedTime) return \"\";\n return format(selectedTime, \"h:mm aa\");\n }, [selectedTime]);\n\n const formatNumber = (number: number | string): string => {\n const formattedValue = number.toString();\n if (formattedValue.length === 1) {\n return `0${formattedValue}`;\n }\n\n return formattedValue;\n };\n\n const hourOptions = useMemo(() => {\n return [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].map((hour) =>\n hour.toString(),\n );\n }, []);\n\n const minuteOptions = useMemo(() => {\n const minutes = [];\n for (let i = 0; i < 60; i += minuteInterval) {\n minutes.push(i);\n }\n\n return minutes.map(formatNumber);\n }, [minuteInterval]);\n\n const meridiemOptions = [Meridiem.AM, Meridiem.PM];\n\n const handleTimeChange = useCallback(\n (hour?: string, minute?: string, meridiem?: string) => {\n const _hour = hour || \"12\";\n const _minute = minute || \"00\";\n const _meridiem = meridiem || \"AM\";\n let meridiemAdjustment = 0;\n\n if (!hour) {\n setSelectedHour(\"12\");\n }\n if (!minute) {\n setSelectedMinute(\"00\");\n }\n if (!meridiem) {\n setSelectedMeridiem(\"AM\");\n }\n\n // set 1-11pm to 13-23. Don't set 12pm to 24\n if (_meridiem === Meridiem.PM && Number(_hour) < 12) {\n meridiemAdjustment = 12;\n }\n\n // set 12am to 00\n if (_meridiem === Meridiem.AM && Number(_hour) === 12) {\n meridiemAdjustment = -12;\n }\n\n const hours = Number(_hour) + meridiemAdjustment;\n const time = new Date().setHours(hours, Number(_minute), 0, 0);\n const date = new Date(time);\n setSelectedTime(date);\n\n if (onTimeChange) {\n onTimeChange(date);\n }\n },\n [onTimeChange],\n );\n\n const handleHourClick = useCallback(\n (value: string) => {\n setSelectedHour(value);\n handleTimeChange(value, selectedMinute, selectedMeridiem);\n },\n [handleTimeChange, selectedMeridiem, selectedMinute],\n );\n\n const handleMinuteClick = useCallback(\n (value: string) => {\n setSelectedMinute(value);\n handleTimeChange(selectedHour, value, selectedMeridiem);\n },\n [handleTimeChange, selectedHour, selectedMeridiem],\n );\n\n const handleMeridiemClick = useCallback(\n (value: string) => {\n setSelectedMeridiem(value);\n handleTimeChange(selectedHour, selectedMinute, value);\n },\n [handleTimeChange, selectedHour, selectedMinute],\n );\n\n useEffect(() => {\n // Set default selections based on value passed in\n if (initialTime) {\n const localTime = new Date(initialTime);\n\n // calculate hours\n const hours = localTime.getHours();\n const adjustedHours = hours % 12 || 12;\n\n setSelectedTime(initialTime);\n setSelectedHour(adjustedHours.toString());\n setSelectedMinute(localTime.getMinutes().toString());\n setSelectedMeridiem(\n localTime.getHours() > 11 ? Meridiem.PM : Meridiem.AM,\n );\n }\n }, [initialTime]);\n\n return (\n <Popover\n open={isOpen}\n onOpenChange={({ open }) => setIsOpen(open)}\n anchor={\n <Box\n className=\"TimePicker__Trigger\"\n data-testid=\"kibble-timepicker-trigger\"\n css={styles.trigger}\n >\n <TextInput\n placeholder=\"12:00 AM\"\n rightElement={\n <Icon\n size={useIconTextSizeMap(inputProps?.size || \"md\")}\n name=\"clock\"\n />\n }\n value={formattedTime}\n readOnly\n cursor=\"pointer\"\n {...inputProps}\n {...(isOpen && { \"data-focus\": \"true\" })}\n />\n </Box>\n }\n contentProps={{ w: \"max-content\" }}\n variant=\"default\"\n placement={placement}\n >\n <Box\n className=\"TimePicker__Container\"\n data-testid=\"kibble-timepicker-container\"\n css={styles.container}\n >\n <TimeList\n options={hourOptions}\n optionType=\"hour\"\n selectedValue={selectedHour}\n onClick={handleHourClick}\n open={isOpen}\n />\n <TimeList\n options={minuteOptions}\n optionType=\"minute\"\n selectedValue={\n selectedMinute ? formatNumber(selectedMinute) : undefined\n }\n onClick={handleMinuteClick}\n open={isOpen}\n />\n <TimeList\n options={meridiemOptions}\n optionType=\"meridiem\"\n selectedValue={selectedMeridiem}\n onClick={handleMeridiemClick}\n open={isOpen}\n />\n </Box>\n </Popover>\n );\n};\n"],"names":["timeOptionRecipe","defineRecipe","TimeOption","value","innerRef","onClick","selected","styles","useRecipe","handleClick","useCallback","event","selectedValue","jsx","Box","timePickerRecipe","defineSlotRecipe","TimeList","options","optionType","open","useSlotRecipe","itemRef","useRef","containerRef","useEffect","option","Meridiem","TimePicker","initialTime","inputProps","minuteInterval","onTimeChange","placement","isOpen","setIsOpen","useState","selectedTime","setSelectedTime","selectedHour","setSelectedHour","selectedMinute","setSelectedMinute","selectedMeridiem","setSelectedMeridiem","formattedTime","useMemo","format","formatNumber","number","formattedValue","hourOptions","hour","minuteOptions","minutes","i","meridiemOptions","handleTimeChange","minute","meridiem","_hour","_minute","_meridiem","meridiemAdjustment","hours","time","date","handleHourClick","handleMinuteClick","handleMeridiemClick","localTime","adjustedHours","Popover","TextInput","Icon","useIconTextSizeMap","jsxs"],"mappings":";;;;;;;;AAEO,MAAMA,KAAmBC,EAAa;AAAA,EAC3C,MAAM;AAAA,IACJ,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,WAAW;AAAA,EACb;AAAA,EACA,UAAU;AAAA,IACR,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,YAAY;AAAA,QACZ,OAAO;AAAA,QACP,QAAQ;AAAA,UACN,YAAY;AAAA,QAAA;AAAA,MAEhB;AAAA,MACA,OAAO;AAAA,QACL,YAAY;AAAA,QACZ,OAAO;AAAA,QACP,QAAQ;AAAA,UACN,YAAY;AAAA,QAAA;AAAA,MACd;AAAA,IACF;AAAA,EAEJ;AAAA,EACA,iBAAiB;AAAA,IACf,UAAU;AAAA,EA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;AAAA,cACP,UAAQ;AAAA,cACR,QAAO;AAAA,cACN,GAAGf;AAAA,cACH,GAAII,KAAU,EAAE,cAAc,OAAO;AAAA,YAAA;AAAA,UAAA;AAAA,QACxC;AAAA,MACF;AAAA,MAEF,cAAc,EAAE,GAAG,cAAc;AAAA,MACjC,SAAQ;AAAA,MACR,WAAAD;AAAA,MAEA,UAAA2C,gBAAAA,EAAA;AAAA,QAAC9D;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,eAAY;AAAA,UACZ,KAAKP,EAAO;AAAA,UAEZ,UAAA;AAAA,YAAAM,gBAAAA,EAAA;AAAA,cAACI;AAAA,cAAA;AAAA,gBACC,SAASkC;AAAA,gBACT,YAAW;AAAA,gBACX,eAAeZ;AAAA,gBACf,SAAS4B;AAAA,gBACT,MAAMjC;AAAA,cAAA;AAAA,YACR;AAAA,YACArB,gBAAAA,EAAA;AAAA,cAACI;AAAA,cAAA;AAAA,gBACC,SAASoC;AAAA,gBACT,YAAW;AAAA,gBACX,eACEZ,IAAiBO,EAAaP,CAAc,IAAI;AAAA,gBAElD,SAAS2B;AAAA,gBACT,MAAMlC;AAAA,cAAA;AAAA,YACR;AAAA,YACArB,gBAAAA,EAAA;AAAA,cAACI;AAAA,cAAA;AAAA,gBACC,SAASuC;AAAA,gBACT,YAAW;AAAA,gBACX,eAAeb;AAAA,gBACf,SAAS0B;AAAA,gBACT,MAAMnC;AAAA,cAAA;AAAA,YAAA;AAAA,UACR;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EACF;AAEJ;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./vendor-D-x6W6ez.js"),t=require("react"),$=require("./textInput.component-B4drMRyW.js"),L=require("./popover.component-DR09Zgw-.js"),W=require("./icon.component-DVlHZQ9n.js"),Y=require("./useIconTextSizeMap-BXmABb54.js"),F=require("./date-Du64Exix.js"),i=require("./chakra-DmF8Cxqs.js"),G=i.defineRecipe({base:{borderRadius:"4px",cursor:"pointer",fontSize:"sm",px:3,py:1,textAlign:"center"},variants:{selected:{true:{background:"background.secondary",color:"text.contrast",_hover:{background:"background.secondary.hover"}},false:{background:"background",color:"text.subtle",_hover:{background:"background.secondaryAlpha.hover"}}}},defaultVariants:{selected:!1}}),J=({value:s,innerRef:l,onClick:u,selected:p})=>{const M=i.useRecipe({recipe:G})({selected:p}),m=t.useCallback(r=>{const d=r.currentTarget.textContent||"";u(d)},[u]);return n.jsxRuntimeExports.jsx(i.Box,{className:"TimePicker__Option","data-testid":"kibble-timepicker-option",ref:l,onClick:m,css:M,children:s})},A=i.defineSlotRecipe({slots:["trigger","container","list"],base:{trigger:{width:"100%"},container:{display:"flex",gap:1.5,height:"186px",overflow:"hidden"},list:{display:"flex",flexDirection:"column",gap:1,overflowY:"auto","&::webkit-scrollbar":{display:"none"}}}}),C=({options:s,optionType:l,selectedValue:u,onClick:p,open:k=!1})=>{const m=i.useSlotRecipe({recipe:A})(),r=t.useRef(null),d=t.useRef(null);return t.useEffect(()=>{k&&d.current&&r.current&&(d.current.scrollTop=r.current?.offsetTop-d.current?.offsetTop)},[k]),n.jsxRuntimeExports.jsx(i.Box,{className:"TimePicker__List","data-testid":`kibble-timepicker-${l}-list`,css:m.list,children:s.map(c=>n.jsxRuntimeExports.jsx(J,{innerRef:c===u?r:null,value:c,selected:c===u,onClick:p,"data-testid":c},`${l}-option-${c}`))})};var a=(s=>(s.AM="AM",s.PM="PM",s))(a||{});const K=({initialTime:s,inputProps:l,minuteInterval:u=5,onTimeChange:p,placement:k="bottom"})=>{const m=i.useSlotRecipe({recipe:A})(),[r,d]=t.useState(!1),[c,E]=t.useState(s),[b,R]=t.useState(),[x,j]=t.useState(),[g,S]=t.useState(),O=t.useMemo(()=>c?F.format(c,"h:mm aa"):"",[c]),y=e=>{const o=e.toString();return o.length===1?`0${o}`:o},N=t.useMemo(()=>[12,1,2,3,4,5,6,7,8,9,10,11].map(e=>e.toString()),[]),q=t.useMemo(()=>{const e=[];for(let o=0;o<60;o+=u)e.push(o);return e.map(y)},[u]),w=[a.AM,a.PM],f=t.useCallback((e,o,h)=>{const T=e||"12",V=o||"00",P=h||"AM";let _=0;e||R("12"),o||j("00"),h||S("AM"),P===a.PM&&Number(T)<12&&(_=12),P===a.AM&&Number(T)===12&&(_=-12);const B=Number(T)+_,D=new Date().setHours(B,Number(V),0,0),v=new Date(D);E(v),p&&p(v)},[p]),H=t.useCallback(e=>{R(e),f(e,x,g)},[f,g,x]),z=t.useCallback(e=>{j(e),f(b,e,g)},[f,b,g]),I=t.useCallback(e=>{S(e),f(b,x,e)},[f,b,x]);return t.useEffect(()=>{if(s){const e=new Date(s),h=e.getHours()%12||12;E(s),R(h.toString()),j(e.getMinutes().toString()),S(e.getHours()>11?a.PM:a.AM)}},[s]),n.jsxRuntimeExports.jsx(L.Popover,{open:r,onOpenChange:({open:e})=>d(e),anchor:n.jsxRuntimeExports.jsx(i.Box,{className:"TimePicker__Trigger","data-testid":"kibble-timepicker-trigger",css:m.trigger,children:n.jsxRuntimeExports.jsx($.WrappedTextInput,{placeholder:"12:00 AM",rightElement:n.jsxRuntimeExports.jsx(W.Icon,{size:Y.useIconTextSizeMap(l?.size||"md"),name:"clock"}),value:O,readOnly:!0,cursor:"pointer",...l,...r&&{"data-focus":"true"}})}),contentProps:{w:"max-content"},variant:"default",placement:k,children:n.jsxRuntimeExports.jsxs(i.Box,{className:"TimePicker__Container","data-testid":"kibble-timepicker-container",css:m.container,children:[n.jsxRuntimeExports.jsx(C,{options:N,optionType:"hour",selectedValue:b,onClick:H,open:r}),n.jsxRuntimeExports.jsx(C,{options:q,optionType:"minute",selectedValue:x?y(x):void 0,onClick:z,open:r}),n.jsxRuntimeExports.jsx(C,{options:w,optionType:"meridiem",selectedValue:g,onClick:I,open:r})]})})};exports.Meridiem=a;exports.TimePicker=K;
|
|
2
|
-
//# sourceMappingURL=timePicker.component-Dhm4i6i_.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timePicker.component-Dhm4i6i_.js","sources":["../../src/components/TimePicker/components/TimeOption/timeOption.recipe.ts","../../src/components/TimePicker/components/TimeOption/timeOption.component.tsx","../../src/components/TimePicker/timePicker.recipe.ts","../../src/components/TimePicker/components/TimeList/timeList.component.tsx","../../src/components/TimePicker/timePicker.types.ts","../../src/components/TimePicker/timePicker.component.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n\nexport const timeOptionRecipe = defineRecipe({\n base: {\n borderRadius: \"4px\",\n cursor: \"pointer\",\n fontSize: \"sm\",\n px: 3,\n py: 1,\n textAlign: \"center\",\n },\n variants: {\n selected: {\n true: {\n background: \"background.secondary\",\n color: \"text.contrast\",\n _hover: {\n background: \"background.secondary.hover\",\n },\n },\n false: {\n background: \"background\",\n color: \"text.subtle\",\n _hover: {\n background: \"background.secondaryAlpha.hover\",\n },\n },\n },\n },\n defaultVariants: {\n selected: false,\n },\n});\n","import React, { useCallback } from \"react\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { timeOptionRecipe } from \"./timeOption.recipe\";\n\ninterface TimeOptionProps {\n innerRef?: React.RefObject<HTMLDivElement | null> | null;\n onClick: (selectedValue: string) => void;\n selected: boolean;\n value: string;\n}\n\nexport const TimeOption = ({\n value,\n innerRef,\n onClick,\n selected,\n}: TimeOptionProps): React.JSX.Element => {\n const recipe = useRecipe({ recipe: timeOptionRecipe });\n const styles = recipe({ selected });\n\n const handleClick = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n const selectedValue = event.currentTarget.textContent || \"\";\n onClick(selectedValue);\n },\n [onClick],\n );\n\n return (\n <Box\n className=\"TimePicker__Option\"\n data-testid=\"kibble-timepicker-option\"\n ref={innerRef}\n onClick={handleClick}\n css={styles}\n >\n {value}\n </Box>\n );\n};\n","import { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\n\nexport const timePickerRecipe = defineSlotRecipe({\n slots: [\"trigger\", \"container\", \"list\"],\n base: {\n trigger: {\n width: \"100%\",\n },\n container: {\n display: \"flex\",\n gap: 1.5,\n height: \"186px\",\n overflow: \"hidden\",\n },\n list: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: 1,\n overflowY: \"auto\",\n \"&::webkit-scrollbar\": {\n display: \"none\",\n },\n },\n },\n});\n","import React, { useEffect, useRef } from \"react\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport { TimeOption } from \"../TimeOption/timeOption.component\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { timePickerRecipe } from \"../../timePicker.recipe\";\n\ninterface ScrollContainerProps {\n options: string[];\n optionType: \"hour\" | \"minute\" | \"meridiem\";\n selectedValue?: string;\n onClick: (value: string) => void;\n open: boolean;\n}\n\nexport const TimeList = ({\n options,\n optionType,\n selectedValue,\n onClick,\n open = false,\n}: ScrollContainerProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: timePickerRecipe });\n const styles = recipe();\n const itemRef = useRef<HTMLDivElement>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n if (open && containerRef.current && itemRef.current) {\n containerRef.current.scrollTop =\n itemRef.current?.offsetTop - containerRef.current?.offsetTop;\n }\n }, [open]);\n\n return (\n <Box\n className=\"TimePicker__List\"\n data-testid={`kibble-timepicker-${optionType}-list`}\n css={styles.list}\n >\n {options.map((option) => {\n return (\n <TimeOption\n key={`${optionType}-option-${option}`}\n innerRef={option === selectedValue ? itemRef : null}\n value={option}\n selected={option === selectedValue}\n onClick={onClick}\n data-testid={option}\n />\n );\n })}\n </Box>\n );\n};\n","export enum Meridiem {\n AM = \"AM\",\n PM = \"PM\",\n}\n","import React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport {\n TextInput,\n TextInputProps,\n} from \"components/TextInput/textInput.component\";\nimport { Popover } from \"components/Popover/popover.component\";\nimport { Icon } from \"components/Icon/icon.component\";\nimport { useIconTextSizeMap } from \"hooks/useIconTextSizeMap\";\nimport format from \"date-fns/format\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport { TimeList } from \"./components/TimeList/timeList.component\";\nimport { Meridiem } from \"./timePicker.types\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { timePickerRecipe } from \"./timePicker.recipe\";\nimport { Placement } from \"shared/types/placement\";\n\nexport interface TimePickerProps {\n initialTime?: Date;\n inputProps?: Omit<\n TextInputProps,\n \"onChange\" | \"value\" | \"isClearable\" | \"onClear\"\n >;\n minuteInterval?: number;\n onTimeChange?: (time: Date) => void;\n placement?: Placement;\n}\n\nexport const TimePicker = ({\n initialTime,\n inputProps,\n minuteInterval = 5,\n onTimeChange,\n placement = \"bottom\",\n}: TimePickerProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: timePickerRecipe });\n const styles = recipe();\n const [isOpen, setIsOpen] = useState(false);\n const [selectedTime, setSelectedTime] = useState(initialTime);\n const [selectedHour, setSelectedHour] = useState<string | undefined>();\n const [selectedMinute, setSelectedMinute] = useState<string | undefined>();\n const [selectedMeridiem, setSelectedMeridiem] = useState<\n string | undefined\n >();\n\n const formattedTime = useMemo(() => {\n if (!selectedTime) return \"\";\n return format(selectedTime, \"h:mm aa\");\n }, [selectedTime]);\n\n const formatNumber = (number: number | string): string => {\n const formattedValue = number.toString();\n if (formattedValue.length === 1) {\n return `0${formattedValue}`;\n }\n\n return formattedValue;\n };\n\n const hourOptions = useMemo(() => {\n return [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].map((hour) =>\n hour.toString(),\n );\n }, []);\n\n const minuteOptions = useMemo(() => {\n const minutes = [];\n for (let i = 0; i < 60; i += minuteInterval) {\n minutes.push(i);\n }\n\n return minutes.map(formatNumber);\n }, [minuteInterval]);\n\n const meridiemOptions = [Meridiem.AM, Meridiem.PM];\n\n const handleTimeChange = useCallback(\n (hour?: string, minute?: string, meridiem?: string) => {\n const _hour = hour || \"12\";\n const _minute = minute || \"00\";\n const _meridiem = meridiem || \"AM\";\n let meridiemAdjustment = 0;\n\n if (!hour) {\n setSelectedHour(\"12\");\n }\n if (!minute) {\n setSelectedMinute(\"00\");\n }\n if (!meridiem) {\n setSelectedMeridiem(\"AM\");\n }\n\n // set 1-11pm to 13-23. Don't set 12pm to 24\n if (_meridiem === Meridiem.PM && Number(_hour) < 12) {\n meridiemAdjustment = 12;\n }\n\n // set 12am to 00\n if (_meridiem === Meridiem.AM && Number(_hour) === 12) {\n meridiemAdjustment = -12;\n }\n\n const hours = Number(_hour) + meridiemAdjustment;\n const time = new Date().setHours(hours, Number(_minute), 0, 0);\n const date = new Date(time);\n setSelectedTime(date);\n\n if (onTimeChange) {\n onTimeChange(date);\n }\n },\n [onTimeChange],\n );\n\n const handleHourClick = useCallback(\n (value: string) => {\n setSelectedHour(value);\n handleTimeChange(value, selectedMinute, selectedMeridiem);\n },\n [handleTimeChange, selectedMeridiem, selectedMinute],\n );\n\n const handleMinuteClick = useCallback(\n (value: string) => {\n setSelectedMinute(value);\n handleTimeChange(selectedHour, value, selectedMeridiem);\n },\n [handleTimeChange, selectedHour, selectedMeridiem],\n );\n\n const handleMeridiemClick = useCallback(\n (value: string) => {\n setSelectedMeridiem(value);\n handleTimeChange(selectedHour, selectedMinute, value);\n },\n [handleTimeChange, selectedHour, selectedMinute],\n );\n\n useEffect(() => {\n // Set default selections based on value passed in\n if (initialTime) {\n const localTime = new Date(initialTime);\n\n // calculate hours\n const hours = localTime.getHours();\n const adjustedHours = hours % 12 || 12;\n\n setSelectedTime(initialTime);\n setSelectedHour(adjustedHours.toString());\n setSelectedMinute(localTime.getMinutes().toString());\n setSelectedMeridiem(\n localTime.getHours() > 11 ? Meridiem.PM : Meridiem.AM,\n );\n }\n }, [initialTime]);\n\n return (\n <Popover\n open={isOpen}\n onOpenChange={({ open }) => setIsOpen(open)}\n anchor={\n <Box\n className=\"TimePicker__Trigger\"\n data-testid=\"kibble-timepicker-trigger\"\n css={styles.trigger}\n >\n <TextInput\n placeholder=\"12:00 AM\"\n rightElement={\n <Icon\n size={useIconTextSizeMap(inputProps?.size || \"md\")}\n name=\"clock\"\n />\n }\n value={formattedTime}\n readOnly\n cursor=\"pointer\"\n {...inputProps}\n {...(isOpen && { \"data-focus\": \"true\" })}\n />\n </Box>\n }\n contentProps={{ w: \"max-content\" }}\n variant=\"default\"\n placement={placement}\n >\n <Box\n className=\"TimePicker__Container\"\n data-testid=\"kibble-timepicker-container\"\n css={styles.container}\n >\n <TimeList\n options={hourOptions}\n optionType=\"hour\"\n selectedValue={selectedHour}\n onClick={handleHourClick}\n open={isOpen}\n />\n <TimeList\n options={minuteOptions}\n optionType=\"minute\"\n selectedValue={\n selectedMinute ? formatNumber(selectedMinute) : undefined\n }\n onClick={handleMinuteClick}\n open={isOpen}\n />\n <TimeList\n options={meridiemOptions}\n optionType=\"meridiem\"\n selectedValue={selectedMeridiem}\n onClick={handleMeridiemClick}\n open={isOpen}\n />\n </Box>\n </Popover>\n );\n};\n"],"names":["timeOptionRecipe","defineRecipe","TimeOption","value","innerRef","onClick","selected","styles","useRecipe","handleClick","useCallback","event","selectedValue","jsx","Box","timePickerRecipe","defineSlotRecipe","TimeList","options","optionType","open","useSlotRecipe","itemRef","useRef","containerRef","useEffect","option","Meridiem","TimePicker","initialTime","inputProps","minuteInterval","onTimeChange","placement","isOpen","setIsOpen","useState","selectedTime","setSelectedTime","selectedHour","setSelectedHour","selectedMinute","setSelectedMinute","selectedMeridiem","setSelectedMeridiem","formattedTime","useMemo","format","formatNumber","number","formattedValue","hourOptions","hour","minuteOptions","minutes","i","meridiemOptions","handleTimeChange","minute","meridiem","_hour","_minute","_meridiem","meridiemAdjustment","hours","time","date","handleHourClick","handleMinuteClick","handleMeridiemClick","localTime","adjustedHours","Popover","TextInput","Icon","useIconTextSizeMap","jsxs"],"mappings":"8TAEaA,EAAmBC,EAAAA,aAAa,CAC3C,KAAM,CACJ,aAAc,MACd,OAAQ,UACR,SAAU,KACV,GAAI,EACJ,GAAI,EACJ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SACX,cACEZ,EAAiBO,EAAaP,CAAc,EAAI,OAElD,QAAS2B,EACT,KAAMlC,CAAA,CACR,EACArB,EAAA,kBAAA,IAACI,EAAA,CACC,QAASuC,EACT,WAAW,WACX,cAAeb,EACf,QAAS0B,EACT,KAAMnC,CAAA,CAAA,CACR,CAAA,CAAA,CACF,CACF,CAEJ"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { x as e } from "./vendor-BBfll6i3.js";
|
|
2
|
-
import { T as s } from "./timePicker.component-DIMvByCk.js";
|
|
3
|
-
import { F as t, B as x } from "./chakra-BqBkjpvZ.js";
|
|
4
|
-
const c = ({
|
|
5
|
-
endTimePickerProps: r,
|
|
6
|
-
separator: i,
|
|
7
|
-
startTimePickerProps: a,
|
|
8
|
-
...m
|
|
9
|
-
}) => /* @__PURE__ */ e.jsxs(t, { className: "TimeRange", "data-testid": "kibble-time-range", ...m, children: [
|
|
10
|
-
/* @__PURE__ */ e.jsx(s, { ...a }),
|
|
11
|
-
/* @__PURE__ */ e.jsx(x, { alignSelf: "center", mx: 1, children: i || "-" }),
|
|
12
|
-
/* @__PURE__ */ e.jsx(s, { ...r })
|
|
13
|
-
] });
|
|
14
|
-
export {
|
|
15
|
-
c as T
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=timeRange.component-B1jy-gTv.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timeRange.component-B1jy-gTv.js","sources":["../../src/components/TimeRange/timeRange.component.tsx"],"sourcesContent":["import React from \"react\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport { Flex, FlexProps } from \"@chakra-ui/react/flex\";\nimport {\n TimePicker,\n TimePickerProps,\n} from \"components/TimePicker/timePicker.component\";\n\nexport interface TimeRangeProps extends FlexProps {\n separator?: React.ReactNode;\n endTimePickerProps: TimePickerProps;\n startTimePickerProps: TimePickerProps;\n}\n\nexport const TimeRange = ({\n endTimePickerProps,\n separator,\n startTimePickerProps,\n ...rest\n}: TimeRangeProps): React.JSX.Element => {\n return (\n <Flex className=\"TimeRange\" data-testid=\"kibble-time-range\" {...rest}>\n <TimePicker {...startTimePickerProps} />\n <Box alignSelf=\"center\" mx={1}>\n {separator || \"-\"}\n </Box>\n <TimePicker {...endTimePickerProps} />\n </Flex>\n );\n};\n"],"names":["TimeRange","endTimePickerProps","separator","startTimePickerProps","rest","Flex","jsx","TimePicker","Box"],"mappings":";;;AAcO,MAAMA,IAAY,CAAC;AAAA,EACxB,oBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,GAAGC;AACL,6BAEKC,GAAK,EAAA,WAAU,aAAY,eAAY,qBAAqB,GAAGD,GAC9D,UAAA;AAAA,EAACE,gBAAAA,EAAAA,IAAAC,GAAA,EAAY,GAAGJ,GAAsB;AAAA,wBACrCK,GAAI,EAAA,WAAU,UAAS,IAAI,GACzB,eAAa,KAChB;AAAA,EACAF,gBAAAA,MAACC,GAAY,EAAA,GAAGN,EAAoB,CAAA;AAAA,GACtC;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./vendor-D-x6W6ez.js"),i=require("./timePicker.component-Dhm4i6i_.js"),r=require("./chakra-DmF8Cxqs.js"),c=({endTimePickerProps:s,separator:t,startTimePickerProps:n,...x})=>e.jsxRuntimeExports.jsxs(r.Flex,{className:"TimeRange","data-testid":"kibble-time-range",...x,children:[e.jsxRuntimeExports.jsx(i.TimePicker,{...n}),e.jsxRuntimeExports.jsx(r.Box,{alignSelf:"center",mx:1,children:t||"-"}),e.jsxRuntimeExports.jsx(i.TimePicker,{...s})]});exports.TimeRange=c;
|
|
2
|
-
//# sourceMappingURL=timeRange.component-x7m0LgBE.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timeRange.component-x7m0LgBE.js","sources":["../../src/components/TimeRange/timeRange.component.tsx"],"sourcesContent":["import React from \"react\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport { Flex, FlexProps } from \"@chakra-ui/react/flex\";\nimport {\n TimePicker,\n TimePickerProps,\n} from \"components/TimePicker/timePicker.component\";\n\nexport interface TimeRangeProps extends FlexProps {\n separator?: React.ReactNode;\n endTimePickerProps: TimePickerProps;\n startTimePickerProps: TimePickerProps;\n}\n\nexport const TimeRange = ({\n endTimePickerProps,\n separator,\n startTimePickerProps,\n ...rest\n}: TimeRangeProps): React.JSX.Element => {\n return (\n <Flex className=\"TimeRange\" data-testid=\"kibble-time-range\" {...rest}>\n <TimePicker {...startTimePickerProps} />\n <Box alignSelf=\"center\" mx={1}>\n {separator || \"-\"}\n </Box>\n <TimePicker {...endTimePickerProps} />\n </Flex>\n );\n};\n"],"names":["TimeRange","endTimePickerProps","separator","startTimePickerProps","rest","Flex","jsx","TimePicker","Box"],"mappings":"uIAcaA,EAAY,CAAC,CACxB,mBAAAC,EACA,UAAAC,EACA,qBAAAC,EACA,GAAGC,CACL,6BAEKC,OAAK,CAAA,UAAU,YAAY,cAAY,oBAAqB,GAAGD,EAC9D,SAAA,CAACE,EAAAA,kBAAAA,IAAAC,EAAA,WAAA,CAAY,GAAGJ,EAAsB,0BACrCK,EAAAA,IAAI,CAAA,UAAU,SAAS,GAAI,EACzB,YAAa,IAChB,EACAF,wBAACC,EAAAA,WAAY,CAAA,GAAGN,CAAoB,CAAA,CAAA,EACtC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./vendor-D-x6W6ez.js"),a=require("react"),p=require("./text.component-CBa_saMP.js"),u=require("./tooltip.component-qWFa28S5.js"),o=require("./date-Du64Exix.js"),x=({date:e,timeFormat:t="h:mma",dateFormat:s="M/d/yy",shouldTodayDisplayTimeOnly:r=!0,tooltipLabel:i,textProps:c})=>{const m=a.useMemo(()=>o.format(e,o.isToday(e)&&r?t:s),[e,s,r,t]);return n.jsxRuntimeExports.jsx(u.Tooltip,{disabled:!i,label:i||"",children:n.jsxRuntimeExports.jsx(p.WrappedText,{className:"Timestamp","data-testid":"kibble-timestamp",variant:"subtle",size:"xs",textTransform:"lowercase",...c,children:m})})};exports.Timestamp=x;
|
|
2
|
-
//# sourceMappingURL=timestamp.component-CuqY4euh.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.component-CuqY4euh.js","sources":["../../src/patterns/Timestamp/timestamp.component.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { Text, TextProps } from \"components/Text/text.component\";\nimport { Tooltip } from \"components/Tooltip/tooltip.component\";\nimport format from \"date-fns/format\";\nimport isToday from \"date-fns/isToday\";\n\nexport interface TimestampProps {\n date: Date;\n timeFormat?: string;\n dateFormat?: string;\n shouldTodayDisplayTimeOnly?: boolean;\n tooltipLabel?: string;\n textProps?: Omit<TextProps, \"children\">;\n}\n\nexport const Timestamp = ({\n date,\n timeFormat = \"h:mma\",\n dateFormat = \"M/d/yy\",\n shouldTodayDisplayTimeOnly = true,\n tooltipLabel,\n textProps,\n}: TimestampProps): React.JSX.Element => {\n const stamp = useMemo(\n () =>\n format(\n date,\n isToday(date) && shouldTodayDisplayTimeOnly ? timeFormat : dateFormat,\n ),\n [date, dateFormat, shouldTodayDisplayTimeOnly, timeFormat],\n );\n\n return (\n <Tooltip disabled={!tooltipLabel} label={tooltipLabel || \"\"}>\n <Text\n className=\"Timestamp\"\n data-testid=\"kibble-timestamp\"\n variant=\"subtle\"\n size=\"xs\"\n textTransform=\"lowercase\"\n {...textProps}\n >\n {stamp}\n </Text>\n </Tooltip>\n );\n};\n"],"names":["Timestamp","date","timeFormat","dateFormat","shouldTodayDisplayTimeOnly","tooltipLabel","textProps","stamp","useMemo","format","isToday","Tooltip","jsx","Text"],"mappings":"+LAeaA,EAAY,CAAC,CAAA,KACxBC,EACA,WAAAC,EAAa,QACb,WAAAC,EAAa,SACb,2BAAAC,EAA6B,GAC7B,aAAAC,EACA,UAAAC,CACF,IAAyC,CACvC,MAAMC,EAAQC,EAAA,QACZ,IACEC,EAAA,OACER,EACAS,EAAAA,QAAQT,CAAI,GAAKG,EAA6BF,EAAaC,CAC7D,EACF,CAACF,EAAME,EAAYC,EAA4BF,CAAU,CAC3D,EAEA,+BACGS,UAAQ,CAAA,SAAU,CAACN,EAAc,MAAOA,GAAgB,GACvD,SAAAO,EAAA,kBAAA,IAACC,EAAA,YAAA,CACC,UAAU,YACV,cAAY,mBACZ,QAAQ,SACR,KAAK,KACL,cAAc,YACb,GAAGP,EAEH,SAAAC,CAAA,CAAA,EAEL,CAEJ"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { x as a } from "./vendor-BBfll6i3.js";
|
|
2
|
-
import { useMemo as p } from "react";
|
|
3
|
-
import { W as x } from "./text.component-XYjOAc2s.js";
|
|
4
|
-
import { T as f } from "./tooltip.component-C3v2m2T2.js";
|
|
5
|
-
import { f as n, i as c } from "./date-1NFv48Qu.js";
|
|
6
|
-
const j = ({
|
|
7
|
-
date: s,
|
|
8
|
-
timeFormat: r = "h:mma",
|
|
9
|
-
dateFormat: m = "M/d/yy",
|
|
10
|
-
shouldTodayDisplayTimeOnly: t = !0,
|
|
11
|
-
tooltipLabel: e,
|
|
12
|
-
textProps: i
|
|
13
|
-
}) => {
|
|
14
|
-
const o = p(
|
|
15
|
-
() => n(
|
|
16
|
-
s,
|
|
17
|
-
c(s) && t ? r : m
|
|
18
|
-
),
|
|
19
|
-
[s, m, t, r]
|
|
20
|
-
);
|
|
21
|
-
return /* @__PURE__ */ a.jsx(f, { disabled: !e, label: e || "", children: /* @__PURE__ */ a.jsx(
|
|
22
|
-
x,
|
|
23
|
-
{
|
|
24
|
-
className: "Timestamp",
|
|
25
|
-
"data-testid": "kibble-timestamp",
|
|
26
|
-
variant: "subtle",
|
|
27
|
-
size: "xs",
|
|
28
|
-
textTransform: "lowercase",
|
|
29
|
-
...i,
|
|
30
|
-
children: o
|
|
31
|
-
}
|
|
32
|
-
) });
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
j as T
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=timestamp.component-D764INLm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.component-D764INLm.js","sources":["../../src/patterns/Timestamp/timestamp.component.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { Text, TextProps } from \"components/Text/text.component\";\nimport { Tooltip } from \"components/Tooltip/tooltip.component\";\nimport format from \"date-fns/format\";\nimport isToday from \"date-fns/isToday\";\n\nexport interface TimestampProps {\n date: Date;\n timeFormat?: string;\n dateFormat?: string;\n shouldTodayDisplayTimeOnly?: boolean;\n tooltipLabel?: string;\n textProps?: Omit<TextProps, \"children\">;\n}\n\nexport const Timestamp = ({\n date,\n timeFormat = \"h:mma\",\n dateFormat = \"M/d/yy\",\n shouldTodayDisplayTimeOnly = true,\n tooltipLabel,\n textProps,\n}: TimestampProps): React.JSX.Element => {\n const stamp = useMemo(\n () =>\n format(\n date,\n isToday(date) && shouldTodayDisplayTimeOnly ? timeFormat : dateFormat,\n ),\n [date, dateFormat, shouldTodayDisplayTimeOnly, timeFormat],\n );\n\n return (\n <Tooltip disabled={!tooltipLabel} label={tooltipLabel || \"\"}>\n <Text\n className=\"Timestamp\"\n data-testid=\"kibble-timestamp\"\n variant=\"subtle\"\n size=\"xs\"\n textTransform=\"lowercase\"\n {...textProps}\n >\n {stamp}\n </Text>\n </Tooltip>\n );\n};\n"],"names":["Timestamp","date","timeFormat","dateFormat","shouldTodayDisplayTimeOnly","tooltipLabel","textProps","stamp","useMemo","format","isToday","Tooltip","jsx","Text"],"mappings":";;;;;AAeO,MAAMA,IAAY,CAAC;AAAA,EACxB,MAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,YAAAC,IAAa;AAAA,EACb,4BAAAC,IAA6B;AAAA,EAC7B,cAAAC;AAAA,EACA,WAAAC;AACF,MAAyC;AACvC,QAAMC,IAAQC;AAAA,IACZ,MACEC;AAAA,MACER;AAAA,MACAS,EAAQT,CAAI,KAAKG,IAA6BF,IAAaC;AAAA,IAC7D;AAAA,IACF,CAACF,GAAME,GAAYC,GAA4BF,CAAU;AAAA,EAC3D;AAEA,+BACGS,GAAQ,EAAA,UAAU,CAACN,GAAc,OAAOA,KAAgB,IACvD,UAAAO,gBAAAA,EAAA;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,eAAc;AAAA,MACb,GAAGP;AAAA,MAEH,UAAAC;AAAA,IAAA;AAAA,EAAA,GAEL;AAEJ;"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { x as o, bP as c } from "./vendor-BBfll6i3.js";
|
|
2
|
-
import { forwardRef as m } from "react";
|
|
3
|
-
import { l as x, m as T, n as b, o as g, p as f, q as j } from "./chakra-BqBkjpvZ.js";
|
|
4
|
-
const h = m(
|
|
5
|
-
(e, s) => {
|
|
6
|
-
const {
|
|
7
|
-
children: t,
|
|
8
|
-
disabled: l = !1,
|
|
9
|
-
openDelay: r = 350,
|
|
10
|
-
placement: a = "top",
|
|
11
|
-
positioning: i,
|
|
12
|
-
portalled: p = !0,
|
|
13
|
-
label: n,
|
|
14
|
-
...d
|
|
15
|
-
} = e;
|
|
16
|
-
return t ? l ? t : /* @__PURE__ */ o.jsxs(
|
|
17
|
-
x,
|
|
18
|
-
{
|
|
19
|
-
positioning: {
|
|
20
|
-
...i,
|
|
21
|
-
placement: i?.placement || a
|
|
22
|
-
},
|
|
23
|
-
openDelay: r,
|
|
24
|
-
...d,
|
|
25
|
-
children: [
|
|
26
|
-
/* @__PURE__ */ o.jsx(
|
|
27
|
-
T,
|
|
28
|
-
{
|
|
29
|
-
className: "Tooltip__Trigger",
|
|
30
|
-
"data-testid": "kibble-tooltip-trigger",
|
|
31
|
-
display: "inline-block",
|
|
32
|
-
asChild: !0,
|
|
33
|
-
children: t
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
/* @__PURE__ */ o.jsx(c, { disabled: !p, children: /* @__PURE__ */ o.jsx(b, { className: "Tooltip", "data-testid": "kibble-tooltip", children: /* @__PURE__ */ o.jsxs(
|
|
37
|
-
g,
|
|
38
|
-
{
|
|
39
|
-
className: "Tooltip__Content",
|
|
40
|
-
"data-testid": "kibble-tooltip-content",
|
|
41
|
-
ref: s,
|
|
42
|
-
fontSize: "sm",
|
|
43
|
-
p: 2,
|
|
44
|
-
color: "text.contrast",
|
|
45
|
-
css: { "--tooltip-bg": "colors.background.overlay.contrast" },
|
|
46
|
-
zIndex: "tooltipExtra",
|
|
47
|
-
children: [
|
|
48
|
-
/* @__PURE__ */ o.jsx(
|
|
49
|
-
f,
|
|
50
|
-
{
|
|
51
|
-
className: "Tooltip__Arrow",
|
|
52
|
-
"data-testid": "kibble-tooltip-arrow",
|
|
53
|
-
css: { "--arrow-size": "10px" },
|
|
54
|
-
children: /* @__PURE__ */ o.jsx(j, {})
|
|
55
|
-
}
|
|
56
|
-
),
|
|
57
|
-
n
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
) }) })
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
) : /* @__PURE__ */ o.jsx(o.Fragment, {});
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
h.displayName = "Tooltip";
|
|
67
|
-
export {
|
|
68
|
-
h as T
|
|
69
|
-
};
|
|
70
|
-
//# sourceMappingURL=tooltip.component-C3v2m2T2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.component-C3v2m2T2.js","sources":["../../src/components/Tooltip/tooltip.component.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport { Portal } from \"@chakra-ui/react/portal\";\nimport { Tooltip as CTooltip } from \"@chakra-ui/react/tooltip\";\nimport { Placement } from \"shared/types/placement\";\n\nexport interface TooltipProps extends CTooltip.RootProps {\n label: string;\n placement?: Placement;\n portalled?: boolean;\n}\n\nexport const Tooltip = forwardRef<HTMLDivElement, TooltipProps>(\n (props, ref): React.ReactNode => {\n const {\n children,\n disabled = false,\n openDelay = 350,\n placement = \"top\",\n positioning,\n portalled = true,\n label,\n ...rest\n } = props;\n\n if (!children) return <></>;\n if (disabled) return children;\n\n return (\n <CTooltip.Root\n positioning={{\n ...positioning,\n placement: positioning?.placement || placement,\n }}\n openDelay={openDelay}\n {...rest}\n >\n <CTooltip.Trigger\n className=\"Tooltip__Trigger\"\n data-testid=\"kibble-tooltip-trigger\"\n display=\"inline-block\"\n asChild\n >\n {children}\n </CTooltip.Trigger>\n <Portal disabled={!portalled}>\n <CTooltip.Positioner className=\"Tooltip\" data-testid=\"kibble-tooltip\">\n <CTooltip.Content\n className=\"Tooltip__Content\"\n data-testid=\"kibble-tooltip-content\"\n ref={ref}\n fontSize=\"sm\"\n p={2}\n color=\"text.contrast\"\n css={{ \"--tooltip-bg\": \"colors.background.overlay.contrast\" }}\n zIndex=\"tooltipExtra\"\n >\n <CTooltip.Arrow\n className=\"Tooltip__Arrow\"\n data-testid=\"kibble-tooltip-arrow\"\n css={{ \"--arrow-size\": \"10px\" }}\n >\n <CTooltip.ArrowTip />\n </CTooltip.Arrow>\n {label}\n </CTooltip.Content>\n </CTooltip.Positioner>\n </Portal>\n </CTooltip.Root>\n );\n },\n);\n\nTooltip.displayName = \"Tooltip\";\n"],"names":["Tooltip","forwardRef","props","ref","children","disabled","openDelay","placement","positioning","portalled","label","rest","jsxs","CTooltip.Root","jsx","CTooltip.Trigger","Portal","CTooltip.Positioner","CTooltip.Content","CTooltip.Arrow","CTooltip.ArrowTip","Fragment"],"mappings":";;;AAWO,MAAMA,IAAUC;AAAA,EACrB,CAACC,GAAOC,MAAyB;AACzB,UAAA;AAAA,MACJ,UAAAC;AAAA,MACA,UAAAC,IAAW;AAAA,MACX,WAAAC,IAAY;AAAA,MACZ,WAAAC,IAAY;AAAA,MACZ,aAAAC;AAAA,MACA,WAAAC,IAAY;AAAA,MACZ,OAAAC;AAAA,MACA,GAAGC;AAAA,IAAA,I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require("./chakra-DmF8Cxqs.js"),s=m.forwardRef((r,l)=>{const{children:e,disabled:n=!1,openDelay:a=350,placement:p="top",positioning:i,portalled:c=!0,label:x,...d}=r;return e?n?e:t.jsxRuntimeExports.jsxs(o.TooltipRoot,{positioning:{...i,placement:i?.placement||p},openDelay:a,...d,children:[t.jsxRuntimeExports.jsx(o.TooltipTrigger,{className:"Tooltip__Trigger","data-testid":"kibble-tooltip-trigger",display:"inline-block",asChild:!0,children:e}),t.jsxRuntimeExports.jsx(t.Portal,{disabled:!c,children:t.jsxRuntimeExports.jsx(o.TooltipPositioner,{className:"Tooltip","data-testid":"kibble-tooltip",children:t.jsxRuntimeExports.jsxs(o.TooltipContent,{className:"Tooltip__Content","data-testid":"kibble-tooltip-content",ref:l,fontSize:"sm",p:2,color:"text.contrast",css:{"--tooltip-bg":"colors.background.overlay.contrast"},zIndex:"tooltipExtra",children:[t.jsxRuntimeExports.jsx(o.TooltipArrow,{className:"Tooltip__Arrow","data-testid":"kibble-tooltip-arrow",css:{"--arrow-size":"10px"},children:t.jsxRuntimeExports.jsx(o.TooltipArrowTip,{})}),x]})})})]}):t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{})});s.displayName="Tooltip";exports.Tooltip=s;
|
|
2
|
-
//# sourceMappingURL=tooltip.component-qWFa28S5.js.map
|