@televet/kibble-ui 4.0.0-beta.84 → 4.0.0-beta.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{alert.types-ChLcWuel.js → alert.types-DTNR8_C-.js} +2 -2
- package/dist/chunks/{alert.types-ChLcWuel.js.map → alert.types-DTNR8_C-.js.map} +1 -1
- package/dist/chunks/{alert.types-BuRcGwVs.js → alert.types-QEeDYCAD.js} +3 -3
- package/dist/chunks/{alert.types-BuRcGwVs.js.map → alert.types-QEeDYCAD.js.map} +1 -1
- package/dist/chunks/{avatar.component-xigxcdOe.js → avatar.component-qXhLVNzG.js} +2 -2
- package/dist/chunks/{avatar.component-xigxcdOe.js.map → avatar.component-qXhLVNzG.js.map} +1 -1
- package/dist/chunks/{avatar.component-CStlz24o.js → avatar.component-yAhlBo_d.js} +2 -2
- package/dist/chunks/{avatar.component-CStlz24o.js.map → avatar.component-yAhlBo_d.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-NNkXQT3H.js → avatarGroup.component-T3cUc5XX.js} +2 -2
- package/dist/chunks/{avatarGroup.component-NNkXQT3H.js.map → avatarGroup.component-T3cUc5XX.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-B0lzqxW5.js → avatarGroup.component-bImv23vg.js} +2 -2
- package/dist/chunks/{avatarGroup.component-B0lzqxW5.js.map → avatarGroup.component-bImv23vg.js.map} +1 -1
- package/dist/chunks/button.component-BpF3MzbZ.js.map +1 -1
- package/dist/chunks/button.component-Dd9AfGox.js.map +1 -1
- package/dist/chunks/{buttonGroup.component-B_QtRowk.js → buttonGroup.component-0iZj3N28.js} +2 -2
- package/dist/chunks/{buttonGroup.component-B_QtRowk.js.map → buttonGroup.component-0iZj3N28.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-VJL0Cunk.js → buttonGroup.component-BuF41rNB.js} +2 -2
- package/dist/chunks/{buttonGroup.component-VJL0Cunk.js.map → buttonGroup.component-BuF41rNB.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-DbKKr4Cl.js → characterCounter.component-Cvw7D33c.js} +2 -2
- package/dist/chunks/{characterCounter.component-DbKKr4Cl.js.map → characterCounter.component-Cvw7D33c.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-D4gbtPgf.js → characterCounter.component-DCSJKVZn.js} +2 -2
- package/dist/chunks/{characterCounter.component-D4gbtPgf.js.map → characterCounter.component-DCSJKVZn.js.map} +1 -1
- package/dist/chunks/checkbox.component-BoaV-gQi.js +2 -0
- package/dist/chunks/{checkbox.component-CKLGUOSX.js.map → checkbox.component-BoaV-gQi.js.map} +1 -1
- package/dist/chunks/checkbox.component-CT344a1o.js +311 -0
- package/dist/chunks/{checkbox.component-DhXTRoeP.js.map → checkbox.component-CT344a1o.js.map} +1 -1
- package/dist/chunks/{checkbox.records-4j704fMI.js → checkbox.records-CTlAD-2Q.js} +9 -9
- package/dist/chunks/{checkbox.records-4j704fMI.js.map → checkbox.records-CTlAD-2Q.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-BE3s9USP.js → checkboxGroup.component-CVRj2S5m.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-BE3s9USP.js.map → checkboxGroup.component-CVRj2S5m.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-C7Nn0xjJ.js → checkboxGroup.component-X2cU2KU-.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-C7Nn0xjJ.js.map → checkboxGroup.component-X2cU2KU-.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-CnMm11fG.js → conversationCard.component-CkmCkM8o.js} +2 -2
- package/dist/chunks/{conversationCard.component-CnMm11fG.js.map → conversationCard.component-CkmCkM8o.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-CAFi2W7w.js → conversationCard.component-u6I8Phyu.js} +8 -8
- package/dist/chunks/{conversationCard.component-CAFi2W7w.js.map → conversationCard.component-u6I8Phyu.js.map} +1 -1
- package/dist/chunks/datePicker.component-B_wuoiPP.js +15 -0
- package/dist/chunks/datePicker.component-B_wuoiPP.js.map +1 -0
- package/dist/chunks/{datePicker.component-CW882xTE.js → datePicker.component-Cger9TA5.js} +536 -586
- package/dist/chunks/datePicker.component-Cger9TA5.js.map +1 -0
- package/dist/chunks/{heading.component-CoM9gWlU.js → heading.component-Cf58bZa1.js} +2 -2
- package/dist/chunks/{heading.component-CoM9gWlU.js.map → heading.component-Cf58bZa1.js.map} +1 -1
- package/dist/chunks/{heading.component-B-FrSa28.js → heading.component-DNsKd4Gh.js} +2 -2
- package/dist/chunks/{heading.component-B-FrSa28.js.map → heading.component-DNsKd4Gh.js.map} +1 -1
- package/dist/chunks/isSymbol-BQN49XhJ.js +67 -0
- package/dist/chunks/isSymbol-BQN49XhJ.js.map +1 -0
- package/dist/chunks/isSymbol-BdGeV_e0.js +2 -0
- package/dist/chunks/isSymbol-BdGeV_e0.js.map +1 -0
- package/dist/chunks/link.component-BlCMfkSE.js +2 -0
- package/dist/chunks/link.component-BlCMfkSE.js.map +1 -0
- package/dist/chunks/link.component-Dk9j8As1.js +60 -0
- package/dist/chunks/link.component-Dk9j8As1.js.map +1 -0
- package/dist/chunks/{menu.component-DEnxu0vh.js → menu.component-4gKH4f5l.js} +6 -6
- package/dist/chunks/{menu.component-DEnxu0vh.js.map → menu.component-4gKH4f5l.js.map} +1 -1
- package/dist/chunks/menu.component-C5NwkXGO.js +2 -0
- package/dist/chunks/{menu.component-BPtwVqUh.js.map → menu.component-C5NwkXGO.js.map} +1 -1
- package/dist/chunks/modal.types-DDwG7coD.js +2 -0
- package/dist/chunks/modal.types-DDwG7coD.js.map +1 -0
- package/dist/chunks/{modal.types-XDLmSWyz.js → modal.types-DIDn6Pz1.js} +68 -71
- package/dist/chunks/modal.types-DIDn6Pz1.js.map +1 -0
- package/dist/chunks/pinInput.types-Bv67lyfg.js +161 -0
- package/dist/chunks/{pinInput.types-D8CEzrAw.js.map → pinInput.types-Bv67lyfg.js.map} +1 -1
- package/dist/chunks/pinInput.types-DbKKHEtF.js +2 -0
- package/dist/chunks/{pinInput.types-DSMdiVB_.js.map → pinInput.types-DbKKHEtF.js.map} +1 -1
- package/dist/chunks/popover.component-CS8UY9_W.js +2 -0
- package/dist/chunks/popover.component-CS8UY9_W.js.map +1 -0
- package/dist/chunks/popover.component-D2-w2fSE.js +260 -0
- package/dist/chunks/popover.component-D2-w2fSE.js.map +1 -0
- package/dist/chunks/radioGroup.component-DlLvSRNH.js +275 -0
- package/dist/chunks/radioGroup.component-DlLvSRNH.js.map +1 -0
- package/dist/chunks/radioGroup.component-e6LsfYzG.js +2 -0
- package/dist/chunks/radioGroup.component-e6LsfYzG.js.map +1 -0
- package/dist/chunks/ratingDots.component-B_a_qO9L.js +2 -0
- package/dist/chunks/ratingDots.component-B_a_qO9L.js.map +1 -0
- package/dist/chunks/ratingDots.component-BzxT-9pH.js +158 -0
- package/dist/chunks/ratingDots.component-BzxT-9pH.js.map +1 -0
- package/dist/chunks/select.component-CPMIVkRk.js +2 -0
- package/dist/chunks/select.component-CPMIVkRk.js.map +1 -0
- package/dist/chunks/select.component-DrZOaMq1.js +1087 -0
- package/dist/chunks/select.component-DrZOaMq1.js.map +1 -0
- package/dist/chunks/{sortableList.component-Bfb0hpZP.js → sortableList.component-DEMqxtiq.js} +2 -2
- package/dist/chunks/{sortableList.component-Bfb0hpZP.js.map → sortableList.component-DEMqxtiq.js.map} +1 -1
- package/dist/chunks/{sortableList.component-BDk7gDEa.js → sortableList.component-iVWhEIAT.js} +2 -2
- package/dist/chunks/{sortableList.component-BDk7gDEa.js.map → sortableList.component-iVWhEIAT.js.map} +1 -1
- package/dist/chunks/{spinner.component-kakTjXFe.js → spinner.component-BM2OwxA7.js} +2 -2
- package/dist/chunks/{spinner.component-kakTjXFe.js.map → spinner.component-BM2OwxA7.js.map} +1 -1
- package/dist/chunks/{spinner.component-BGFAakzz.js → spinner.component-lZds47YM.js} +2 -2
- package/dist/chunks/{spinner.component-BGFAakzz.js.map → spinner.component-lZds47YM.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-Bl_YAWyY.js → styledAvatar.types-DaESk8Cq.js} +2 -2
- package/dist/chunks/{styledAvatar.types-Bl_YAWyY.js.map → styledAvatar.types-DaESk8Cq.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-DpZkDaUD.js → styledAvatar.types-zeF6AQ1t.js} +2 -2
- package/dist/chunks/{styledAvatar.types-DpZkDaUD.js.map → styledAvatar.types-zeF6AQ1t.js.map} +1 -1
- package/dist/chunks/switch.component-C4tJUYg9.js +2 -0
- package/dist/chunks/{switch.component-BIe8tduL.js.map → switch.component-C4tJUYg9.js.map} +1 -1
- package/dist/chunks/switch.component-D93JI_c1.js +167 -0
- package/dist/chunks/{switch.component-DmwKAQWj.js.map → switch.component-D93JI_c1.js.map} +1 -1
- package/dist/chunks/{tabs.component-B6PT0IQT.js → tabs.component-DUUXdx2e.js} +2 -2
- package/dist/chunks/{tabs.component-B6PT0IQT.js.map → tabs.component-DUUXdx2e.js.map} +1 -1
- package/dist/chunks/{tabs.component-BSK85MmR.js → tabs.component-caMRtfBi.js} +2 -2
- package/dist/chunks/{tabs.component-BSK85MmR.js.map → tabs.component-caMRtfBi.js.map} +1 -1
- package/dist/chunks/tag.component-BAH11mPX.js +82 -0
- package/dist/chunks/tag.component-BAH11mPX.js.map +1 -0
- package/dist/chunks/tag.component-DcEASytC.js +2 -0
- package/dist/chunks/tag.component-DcEASytC.js.map +1 -0
- package/dist/chunks/{tagBlock.component-plcpLvwr.js → tagBlock.component-CC4azYDm.js} +2 -2
- package/dist/chunks/{tagBlock.component-plcpLvwr.js.map → tagBlock.component-CC4azYDm.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-EeXuPoQR.js → tagBlock.component-DmNtxTyX.js} +6 -6
- package/dist/chunks/{tagBlock.component-EeXuPoQR.js.map → tagBlock.component-DmNtxTyX.js.map} +1 -1
- package/dist/chunks/{text.component-DwVoyMgc.js → text.component-C501PJrN.js} +2 -2
- package/dist/chunks/{text.component-DwVoyMgc.js.map → text.component-C501PJrN.js.map} +1 -1
- package/dist/chunks/{text.component-2XEOQ18v.js → text.component-z4cNuAAI.js} +2 -2
- package/dist/chunks/{text.component-2XEOQ18v.js.map → text.component-z4cNuAAI.js.map} +1 -1
- package/dist/chunks/textInput.component-BK5TEpr3.js +179 -0
- package/dist/chunks/textInput.component-BK5TEpr3.js.map +1 -0
- package/dist/chunks/textInput.component-o3OfBL3Y.js +2 -0
- package/dist/chunks/textInput.component-o3OfBL3Y.js.map +1 -0
- package/dist/chunks/textarea.component-A8ebDcnw.js +97 -0
- package/dist/chunks/{textarea.component-CvMV-9vc.js.map → textarea.component-A8ebDcnw.js.map} +1 -1
- package/dist/chunks/textarea.component-DDz3lXs_.js +2 -0
- package/dist/chunks/{textarea.component-DKeXxrXq.js.map → textarea.component-DDz3lXs_.js.map} +1 -1
- package/dist/chunks/{theme.provider-LHTsoFmf.js → theme.provider-CbB3DTaK.js} +746 -736
- package/dist/chunks/{theme.provider-LHTsoFmf.js.map → theme.provider-CbB3DTaK.js.map} +1 -1
- package/dist/chunks/{theme.provider-B_XmrDx8.js → theme.provider-DHy8ThEw.js} +4 -4
- package/dist/chunks/{theme.provider-B_XmrDx8.js.map → theme.provider-DHy8ThEw.js.map} +1 -1
- package/dist/chunks/{timePicker.component-Ca6GPa4F.js → timePicker.component-BVCoTSf0.js} +2 -2
- package/dist/chunks/{timePicker.component-Ca6GPa4F.js.map → timePicker.component-BVCoTSf0.js.map} +1 -1
- package/dist/chunks/{timePicker.component-DvxbKF6R.js → timePicker.component-ZFIT5aB6.js} +3 -3
- package/dist/chunks/{timePicker.component-DvxbKF6R.js.map → timePicker.component-ZFIT5aB6.js.map} +1 -1
- package/dist/chunks/{timeRange.component-C_rVYeXZ.js → timeRange.component-BSPEZDvW.js} +2 -2
- package/dist/chunks/{timeRange.component-C_rVYeXZ.js.map → timeRange.component-BSPEZDvW.js.map} +1 -1
- package/dist/chunks/{timeRange.component-nvBL8Y-c.js → timeRange.component-JhMCHzyM.js} +2 -2
- package/dist/chunks/{timeRange.component-nvBL8Y-c.js.map → timeRange.component-JhMCHzyM.js.map} +1 -1
- package/dist/chunks/{timestamp.component-YL3kdwx3.js → timestamp.component-DAakI_Tt.js} +3 -3
- package/dist/chunks/{timestamp.component-YL3kdwx3.js.map → timestamp.component-DAakI_Tt.js.map} +1 -1
- package/dist/chunks/{timestamp.component-WaxLNLaH.js → timestamp.component-DNYI2gVi.js} +2 -2
- package/dist/chunks/{timestamp.component-WaxLNLaH.js.map → timestamp.component-DNYI2gVi.js.map} +1 -1
- package/dist/chunks/{toaster.records-CcwOeMM7.js → toaster.records-BIYC2Ue0.js} +2 -1
- package/dist/chunks/{toaster.records-CcwOeMM7.js.map → toaster.records-BIYC2Ue0.js.map} +1 -1
- package/dist/chunks/{toaster.records-zJfplz5w.js → toaster.records-CDCJPDWP.js} +2 -2
- package/dist/chunks/{toaster.records-zJfplz5w.js.map → toaster.records-CDCJPDWP.js.map} +1 -1
- package/dist/chunks/{tooltip.component-C8Z7lI4c.js → tooltip.component-BSomeipc.js} +92 -95
- package/dist/chunks/{tooltip.component-C8Z7lI4c.js.map → tooltip.component-BSomeipc.js.map} +1 -1
- package/dist/chunks/{tooltip.component-tPcICCNY.js → tooltip.component-CIUcGhxw.js} +2 -2
- package/dist/chunks/{tooltip.component-tPcICCNY.js.map → tooltip.component-CIUcGhxw.js.map} +1 -1
- package/dist/chunks/{modal.context-EJ67QNzq.js → usePortalContentRef-CTrvBQ7I.js} +2 -2
- package/dist/chunks/usePortalContentRef-CTrvBQ7I.js.map +1 -0
- package/dist/chunks/{modal.context-DSKLfsJK.js → usePortalContentRef-KaU-iIV0.js} +2 -2
- package/dist/chunks/usePortalContentRef-KaU-iIV0.js.map +1 -0
- package/dist/chunks/{withFormControl-BcHQTSnc.js → withFormControl-DBaRp5Zy.js} +2 -2
- package/dist/chunks/{withFormControl-BcHQTSnc.js.map → withFormControl-DBaRp5Zy.js.map} +1 -1
- package/dist/chunks/{withFormControl-mCCJK8wX.js → withFormControl-syyL9lWW.js} +2 -2
- package/dist/chunks/{withFormControl-mCCJK8wX.js.map → withFormControl-syyL9lWW.js.map} +1 -1
- package/dist/chunks/{withTruncation-DpfcIWal.js → withTruncation-B6vA2g0w.js} +2 -2
- package/dist/chunks/{withTruncation-DpfcIWal.js.map → withTruncation-B6vA2g0w.js.map} +1 -1
- package/dist/chunks/{withTruncation-elowYDE4.js → withTruncation-C7AAl87b.js} +2 -2
- package/dist/chunks/{withTruncation-elowYDE4.js.map → withTruncation-C7AAl87b.js.map} +1 -1
- package/dist/cjs/components/Alert/index.cjs +1 -1
- package/dist/cjs/components/Avatar/index.cjs +1 -1
- package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
- package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
- package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
- package/dist/cjs/components/Checkbox/index.cjs +1 -1
- package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
- package/dist/cjs/components/ConversationCard/index.cjs +1 -1
- package/dist/cjs/components/DatePicker/index.cjs +1 -1
- package/dist/cjs/components/Heading/index.cjs +1 -1
- package/dist/cjs/components/Link/index.cjs +1 -1
- package/dist/cjs/components/Menu/index.cjs +1 -1
- package/dist/cjs/components/Modal/index.cjs +1 -1
- package/dist/cjs/components/PinInput/index.cjs +1 -1
- package/dist/cjs/components/Popover/index.cjs +1 -1
- package/dist/cjs/components/RadioGroup/index.cjs +1 -1
- package/dist/cjs/components/RatingDots/index.cjs +1 -1
- package/dist/cjs/components/Select/index.cjs +1 -1
- package/dist/cjs/components/SortableList/index.cjs +1 -1
- package/dist/cjs/components/Spinner/index.cjs +1 -1
- package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
- package/dist/cjs/components/Switch/index.cjs +1 -1
- package/dist/cjs/components/Tabs/index.cjs +1 -1
- package/dist/cjs/components/Tag/index.cjs +1 -1
- package/dist/cjs/components/TagBlock/index.cjs +1 -1
- package/dist/cjs/components/Text/index.cjs +1 -1
- package/dist/cjs/components/TextInput/index.cjs +1 -1
- package/dist/cjs/components/Textarea/index.cjs +1 -1
- package/dist/cjs/components/TimePicker/index.cjs +1 -1
- package/dist/cjs/components/TimeRange/index.cjs +1 -1
- package/dist/cjs/components/Timestamp/index.cjs +1 -1
- package/dist/cjs/components/Toast/index.cjs +1 -1
- package/dist/cjs/components/Toast/index.cjs.map +1 -1
- package/dist/cjs/components/Tooltip/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +1 -1
- package/dist/esm/components/Alert/index.js +1 -1
- package/dist/esm/components/Avatar/index.js +1 -1
- package/dist/esm/components/AvatarGroup/index.js +1 -1
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/CharacterCounter/index.js +1 -1
- package/dist/esm/components/Checkbox/index.js +1 -1
- package/dist/esm/components/CheckboxGroup/index.js +1 -1
- package/dist/esm/components/ConversationCard/index.js +1 -1
- package/dist/esm/components/DatePicker/index.js +1 -1
- package/dist/esm/components/Heading/index.js +1 -1
- package/dist/esm/components/Link/index.js +1 -1
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/PinInput/index.js +1 -1
- package/dist/esm/components/Popover/index.js +1 -1
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/RatingDots/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/SortableList/index.js +1 -1
- package/dist/esm/components/Spinner/index.js +1 -1
- package/dist/esm/components/StyledAvatar/index.js +1 -1
- package/dist/esm/components/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/index.js +1 -1
- package/dist/esm/components/Tag/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/Text/index.js +1 -1
- package/dist/esm/components/TextInput/index.js +1 -1
- package/dist/esm/components/Textarea/index.js +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/Timestamp/index.js +1 -1
- package/dist/esm/components/Toast/index.js +2 -2
- package/dist/esm/components/Toast/index.js.map +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +35 -35
- package/dist/esm/index.js +33 -33
- package/dist/esm/theme/index.js +1 -1
- package/dist/types/components/Checkbox/checkbox.component.d.ts +4 -3
- package/dist/types/components/PinInput/pinInput.component.d.ts +5 -3
- package/dist/types/components/Popover/popover.component.d.ts +1 -1
- package/dist/types/components/RadioGroup/components/Radio/radio.component.d.ts +5 -3
- package/dist/types/components/RatingDots/ratingDots.component.d.ts +2 -1
- package/dist/types/components/Select/select.component.d.ts +6 -4
- package/dist/types/components/Select/select.types.d.ts +2 -1
- package/dist/types/components/Switch/switch.component.d.ts +3 -2
- package/dist/types/components/TextInput/textInput.component.d.ts +4 -4
- package/dist/types/components/Textarea/textarea.component.d.ts +3 -3
- package/dist/types/hooks/usePortalContentRef.d.ts +6 -0
- package/package.json +1 -1
- package/dist/chunks/checkbox.component-CKLGUOSX.js +0 -2
- package/dist/chunks/checkbox.component-DhXTRoeP.js +0 -310
- package/dist/chunks/datePicker.component-CW882xTE.js.map +0 -1
- package/dist/chunks/datePicker.component-F6qFk1fF.js +0 -15
- package/dist/chunks/datePicker.component-F6qFk1fF.js.map +0 -1
- package/dist/chunks/link.component-CCFg-LIe.js +0 -2
- package/dist/chunks/link.component-CCFg-LIe.js.map +0 -1
- package/dist/chunks/link.component-DprieyUG.js +0 -60
- package/dist/chunks/link.component-DprieyUG.js.map +0 -1
- package/dist/chunks/menu.component-BPtwVqUh.js +0 -2
- package/dist/chunks/modal.context-DSKLfsJK.js.map +0 -1
- package/dist/chunks/modal.context-EJ67QNzq.js.map +0 -1
- package/dist/chunks/modal.types-Uq7F3jX9.js +0 -2
- package/dist/chunks/modal.types-Uq7F3jX9.js.map +0 -1
- package/dist/chunks/modal.types-XDLmSWyz.js.map +0 -1
- package/dist/chunks/pinInput.types-D8CEzrAw.js +0 -161
- package/dist/chunks/pinInput.types-DSMdiVB_.js +0 -2
- package/dist/chunks/popover.component-B7FvIYpm.js +0 -262
- package/dist/chunks/popover.component-B7FvIYpm.js.map +0 -1
- package/dist/chunks/popover.component-xKnAqZx4.js +0 -2
- package/dist/chunks/popover.component-xKnAqZx4.js.map +0 -1
- package/dist/chunks/radioGroup.component-3KGZ0rr_.js +0 -275
- package/dist/chunks/radioGroup.component-3KGZ0rr_.js.map +0 -1
- package/dist/chunks/radioGroup.component-DWMMKXA1.js +0 -2
- package/dist/chunks/radioGroup.component-DWMMKXA1.js.map +0 -1
- package/dist/chunks/ratingDots.component-BAwBMoag.js +0 -2
- package/dist/chunks/ratingDots.component-BAwBMoag.js.map +0 -1
- package/dist/chunks/ratingDots.component-BTtsR95a.js +0 -158
- package/dist/chunks/ratingDots.component-BTtsR95a.js.map +0 -1
- package/dist/chunks/select.component-LTpdnqVb.js +0 -391
- package/dist/chunks/select.component-LTpdnqVb.js.map +0 -1
- package/dist/chunks/select.component-Vl8xEr6A.js +0 -2
- package/dist/chunks/select.component-Vl8xEr6A.js.map +0 -1
- package/dist/chunks/switch.component-BIe8tduL.js +0 -2
- package/dist/chunks/switch.component-DmwKAQWj.js +0 -166
- package/dist/chunks/tag.component-C6a6EzZB.js +0 -2
- package/dist/chunks/tag.component-C6a6EzZB.js.map +0 -1
- package/dist/chunks/tag.component-pexJ0TAT.js +0 -82
- package/dist/chunks/tag.component-pexJ0TAT.js.map +0 -1
- package/dist/chunks/textInput.component-C9OmzJd9.js +0 -180
- package/dist/chunks/textInput.component-C9OmzJd9.js.map +0 -1
- package/dist/chunks/textInput.component-rWxcxFXP.js +0 -2
- package/dist/chunks/textInput.component-rWxcxFXP.js.map +0 -1
- package/dist/chunks/textarea.component-CvMV-9vc.js +0 -98
- package/dist/chunks/textarea.component-DKeXxrXq.js +0 -2
- package/dist/types/components/Modal/context/modal.context.d.ts +0 -6
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textInput.component-rWxcxFXP.js","sources":["../../node_modules/@ark-ui/react/dist/components/field/field-input.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input-addon.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input-element.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input-group.js","../../src/components/TextInput/textInput.records.ts","../../src/components/TextInput/textInput.component.tsx"],"sourcesContent":["'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldInput = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field?.getInputProps(), props);\n return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });\n});\nFieldInput.displayName = \"FieldInput\";\n\nexport { FieldInput };\n","\"use strict\";\n\"use client\";\nimport { Field } from '@ark-ui/react/field';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"input\"\n});\nconst Input = withContext(Field.Input);\nconst InputPropsProvider = PropsProvider;\n\nexport { Input, InputPropsProvider };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { EMPTY_SLOT_STYLES } from '../../styled-system/empty.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { useRecipe } from '../../styled-system/use-recipe.js';\n\nconst InputAddon = forwardRef(\n function InputAddon2({ unstyled, ...props }, ref) {\n const recipe = useRecipe({ key: \"inputAddon\", recipe: props.recipe });\n const [variantProps, localProps] = recipe.splitVariantProps(props);\n const styles = unstyled ? EMPTY_SLOT_STYLES : recipe(variantProps);\n return /* @__PURE__ */ jsx(chakra.div, { ref, ...localProps, css: [styles, props.css] });\n }\n);\n\nexport { InputAddon };\n","\"use strict\";\n\"use client\";\nimport { chakra } from '../../styled-system/factory.js';\n\nconst InputElement = chakra(\"div\", {\n base: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n position: \"absolute\",\n zIndex: 2,\n color: \"fg.muted\",\n height: \"full\",\n fontSize: \"sm\",\n px: \"3\"\n },\n variants: {\n placement: {\n start: {\n insetInlineStart: \"0\"\n },\n end: {\n insetInlineEnd: \"0\"\n }\n }\n }\n});\n\nexport { InputElement };\n","\"use strict\";\n\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, Children, cloneElement } from 'react';\nimport { InputAddon } from './input-addon.js';\nimport { InputElement } from './input-element.js';\nimport { Group } from '../group/group.js';\n\nconst InputGroup = forwardRef(\n function InputGroup2(props, ref) {\n const {\n startElement,\n startElementProps,\n endElement,\n endElementProps,\n startAddon,\n startAddonProps,\n endAddon,\n endAddonProps,\n children,\n startOffset = \"0px\",\n endOffset = \"0px\",\n ...rest\n } = props;\n const child = Children.only(children);\n const attached = Boolean(startAddon || endAddon);\n return /* @__PURE__ */ jsxs(\n Group,\n {\n width: \"full\",\n ref,\n attached,\n skip: (el) => el.type === InputElement,\n ...rest,\n children: [\n startAddon && /* @__PURE__ */ jsx(InputAddon, { ...startAddonProps, children: startAddon }),\n startElement && /* @__PURE__ */ jsx(InputElement, { pointerEvents: \"none\", ...startElementProps, children: startElement }),\n cloneElement(child, {\n ...startElement && {\n ps: `calc(var(--input-height) - ${startOffset})`\n },\n ...endElement && { pe: `calc(var(--input-height) - ${endOffset})` },\n ...children.props\n }),\n endElement && /* @__PURE__ */ jsx(InputElement, { placement: \"end\", ...endElementProps, children: endElement }),\n endAddon && /* @__PURE__ */ jsx(InputAddon, { ...endAddonProps, children: endAddon })\n ]\n }\n );\n }\n);\n\nexport { InputGroup };\n","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":["FieldInput","forwardRef","props","ref","field","useFieldContext","mergedProps","mergeProps","jsx","ark","withContext","createRecipeContext","Input","Field.Input","InputAddon","unstyled","recipe","useRecipe","variantProps","localProps","styles","EMPTY_SLOT_STYLES","chakra","InputElement","InputGroup","startElement","startElementProps","endElement","endElementProps","startAddon","startAddonProps","endAddon","endAddonProps","children","startOffset","endOffset","rest","child","Children","attached","jsxs","Group","el","cloneElement","closeButtonSizeMap","TextInput","withFormControl","charLimit","clearable","disabled","inputRef","invalid","leftAddon","leftElement","onClear","onContrast","rightAddon","rightElement","size","value","handleClear","Button","currentCharCount","useMemo","Box","CInput","CharacterCounter","WrappedTextInput","React"],"mappings":"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","x_google_ignoreList":[0,1,2,3,4]}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { j as d } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import f, { forwardRef as u, useRef as l, useEffect as x, useMemo as v } from "react";
|
|
3
|
-
import { w as g } from "./withFormControl-mCCJK8wX.js";
|
|
4
|
-
import { C as h } from "./characterCounter.component-D4gbtPgf.js";
|
|
5
|
-
import { F as w } from "./flex-smlF8uQG.js";
|
|
6
|
-
import { c as b } from "./create-recipe-context-D7FewUR4.js";
|
|
7
|
-
import { e as F, F as y, G as C, a1 as T } from "./index-YtNA0Ueo.js";
|
|
8
|
-
import { f as j, h as R } from "./use-locale-context-BiiNTYMT.js";
|
|
9
|
-
import { u as O } from "./use-field-context-Cm3grEyV.js";
|
|
10
|
-
var E = (e) => {
|
|
11
|
-
if (!e) return;
|
|
12
|
-
const t = F(e), o = y(e), s = C(e), r = () => {
|
|
13
|
-
requestAnimationFrame(() => {
|
|
14
|
-
e.style.height = "auto";
|
|
15
|
-
let i;
|
|
16
|
-
t.boxSizing === "content-box" ? i = e.scrollHeight - (parseFloat(t.paddingTop) + parseFloat(t.paddingBottom)) : i = e.scrollHeight + parseFloat(t.borderTopWidth) + parseFloat(t.borderBottomWidth), t.maxHeight !== "none" && i > parseFloat(t.maxHeight) ? (t.overflowY === "hidden" && (e.style.overflowY = "scroll"), i = parseFloat(t.maxHeight)) : t.overflowY !== "hidden" && (e.style.overflowY = "hidden"), e.style.height = `${i}px`;
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
e.addEventListener("input", r), e.form?.addEventListener("reset", r);
|
|
20
|
-
const a = Object.getPrototypeOf(e), n = Object.getOwnPropertyDescriptor(a, "value");
|
|
21
|
-
Object.defineProperty(e, "value", {
|
|
22
|
-
...n,
|
|
23
|
-
set() {
|
|
24
|
-
n?.set?.apply(this, arguments), r();
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
const m = new o.ResizeObserver(() => {
|
|
28
|
-
requestAnimationFrame(() => r());
|
|
29
|
-
});
|
|
30
|
-
m.observe(e);
|
|
31
|
-
const p = new o.MutationObserver(() => r());
|
|
32
|
-
return p.observe(e, { attributes: !0, attributeFilter: ["rows", "placeholder"] }), s.fonts?.addEventListener("loadingdone", r), () => {
|
|
33
|
-
e.removeEventListener("input", r), e.form?.removeEventListener("reset", r), s.fonts?.removeEventListener("loadingdone", r), m.disconnect(), p.disconnect();
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
const c = u((e, t) => {
|
|
37
|
-
const { autoresize: o, ...s } = e, r = l(null), a = O(), n = T(
|
|
38
|
-
a?.getTextareaProps(),
|
|
39
|
-
{ style: { resize: o ? "none" : void 0 } },
|
|
40
|
-
s
|
|
41
|
-
);
|
|
42
|
-
return x(() => {
|
|
43
|
-
if (o)
|
|
44
|
-
return E(r.current);
|
|
45
|
-
}, [o]), /* @__PURE__ */ d.jsx(j.textarea, { ...n, ref: R(t, r) });
|
|
46
|
-
});
|
|
47
|
-
c.displayName = "FieldTextarea";
|
|
48
|
-
const { withContext: P } = b({
|
|
49
|
-
key: "textarea"
|
|
50
|
-
}), z = P(
|
|
51
|
-
c
|
|
52
|
-
), H = g(
|
|
53
|
-
({
|
|
54
|
-
charLimit: e = void 0,
|
|
55
|
-
invalid: t,
|
|
56
|
-
onContrast: o,
|
|
57
|
-
resize: s = "none",
|
|
58
|
-
textareaRef: r,
|
|
59
|
-
value: a,
|
|
60
|
-
...n
|
|
61
|
-
}) => {
|
|
62
|
-
const m = o ? "onContrast" : "default", p = v(
|
|
63
|
-
() => a?.toString()?.length || 0,
|
|
64
|
-
[a]
|
|
65
|
-
);
|
|
66
|
-
return /* @__PURE__ */ d.jsxs(w, { className: "Textarea__Wrapper", position: "relative", w: "100%", children: [
|
|
67
|
-
/* @__PURE__ */ d.jsx(
|
|
68
|
-
z,
|
|
69
|
-
{
|
|
70
|
-
className: "Textarea",
|
|
71
|
-
"data-testid": "kibble-textarea",
|
|
72
|
-
resize: s,
|
|
73
|
-
variant: m,
|
|
74
|
-
value: a,
|
|
75
|
-
...t && { "aria-invalid": !0 },
|
|
76
|
-
minH: "140px",
|
|
77
|
-
...n,
|
|
78
|
-
ref: r
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
!!e && /* @__PURE__ */ d.jsx(
|
|
82
|
-
h,
|
|
83
|
-
{
|
|
84
|
-
withLimit: !0,
|
|
85
|
-
limit: e,
|
|
86
|
-
currentCount: p
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
] });
|
|
90
|
-
}
|
|
91
|
-
), L = f.forwardRef(
|
|
92
|
-
(e, t) => /* @__PURE__ */ d.jsx(H, { textareaRef: t, ...e })
|
|
93
|
-
);
|
|
94
|
-
L.displayName = "Textarea";
|
|
95
|
-
export {
|
|
96
|
-
L as W
|
|
97
|
-
};
|
|
98
|
-
//# sourceMappingURL=textarea.component-CvMV-9vc.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("./jsx-runtime-BjDatQAs.js"),u=require("react"),h=require("./withFormControl-BcHQTSnc.js"),v=require("./characterCounter.component-DbKKr4Cl.js"),g=require("./flex-D14H6HbP.js"),w=require("./create-recipe-context-sESms8Eo.js"),p=require("./index-CHIISuTq.js"),l=require("./use-locale-context-D0LByRu9.js"),b=require("./use-field-context-CArmgHPP.js"),R=e=>e&&e.__esModule?e:{default:e},C=R(u);var F=e=>{if(!e)return;const t=p.getComputedStyle(e),o=p.getWindow(e),s=p.getDocument(e),r=()=>{requestAnimationFrame(()=>{e.style.height="auto";let i;t.boxSizing==="content-box"?i=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):i=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&i>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),i=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${i}px`})};e.addEventListener("input",r),e.form?.addEventListener("reset",r);const n=Object.getPrototypeOf(e),a=Object.getOwnPropertyDescriptor(n,"value");Object.defineProperty(e,"value",{...a,set(){a?.set?.apply(this,arguments),r()}});const d=new o.ResizeObserver(()=>{requestAnimationFrame(()=>r())});d.observe(e);const x=new o.MutationObserver(()=>r());return x.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),s.fonts?.addEventListener("loadingdone",r),()=>{e.removeEventListener("input",r),e.form?.removeEventListener("reset",r),s.fonts?.removeEventListener("loadingdone",r),d.disconnect(),x.disconnect()}};const m=u.forwardRef((e,t)=>{const{autoresize:o,...s}=e,r=u.useRef(null),n=b.useFieldContext(),a=p.mergeProps(n?.getTextareaProps(),{style:{resize:o?"none":void 0}},s);return u.useEffect(()=>{if(o)return F(r.current)},[o]),c.jsxRuntimeExports.jsx(l.ark.textarea,{...a,ref:l.composeRefs(t,r)})});m.displayName="FieldTextarea";const{withContext:y}=w.createRecipeContext({key:"textarea"}),j=y(m),T=h.withFormControl(({charLimit:e=void 0,invalid:t,onContrast:o,resize:s="none",textareaRef:r,value:n,...a})=>{const d=o?"onContrast":"default",x=u.useMemo(()=>n?.toString()?.length||0,[n]);return c.jsxRuntimeExports.jsxs(g.Flex,{className:"Textarea__Wrapper",position:"relative",w:"100%",children:[c.jsxRuntimeExports.jsx(j,{className:"Textarea","data-testid":"kibble-textarea",resize:s,variant:d,value:n,...t&&{"aria-invalid":!0},minH:"140px",...a,ref:r}),!!e&&c.jsxRuntimeExports.jsx(v.CharacterCounter,{withLimit:!0,limit:e,currentCount:x})]})}),f=C.default.forwardRef((e,t)=>c.jsxRuntimeExports.jsx(T,{textareaRef:t,...e}));f.displayName="Textarea";exports.WrappedTextArea=f;
|
|
2
|
-
//# sourceMappingURL=textarea.component-DKeXxrXq.js.map
|