@televet/kibble-ui 5.0.27 → 5.0.28-jc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{alert.component-nhRTQ5KK.js → alert.component-B0gDwaKQ.js} +2 -2
- package/dist/chunks/{alert.component-nhRTQ5KK.js.map → alert.component-B0gDwaKQ.js.map} +1 -1
- package/dist/chunks/{alert.component-OcRbeRJa.js → alert.component-B2kzYzhv.js} +3 -3
- package/dist/chunks/{alert.component-OcRbeRJa.js.map → alert.component-B2kzYzhv.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-CJCQSIyr.js → avatarGroup.component-CUOKTQHZ.js} +2 -2
- package/dist/chunks/{avatarGroup.component-CJCQSIyr.js.map → avatarGroup.component-CUOKTQHZ.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-BPhQpVYM.js → avatarGroup.component-z6SzTzKR.js} +3 -3
- package/dist/chunks/{avatarGroup.component-BPhQpVYM.js.map → avatarGroup.component-z6SzTzKR.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-pR0mvmm7.js → buttonGroup.component-CHbRCpMI.js} +2 -2
- package/dist/chunks/{buttonGroup.component-pR0mvmm7.js.map → buttonGroup.component-CHbRCpMI.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-CO5lC36l.js → buttonGroup.component-CYJxaqK1.js} +2 -2
- package/dist/chunks/{buttonGroup.component-CO5lC36l.js.map → buttonGroup.component-CYJxaqK1.js.map} +1 -1
- package/dist/chunks/{calendar.component-Dz_YhuJT.js → calendar.component-BpDNoBAZ.js} +2 -2
- package/dist/chunks/{calendar.component-Dz_YhuJT.js.map → calendar.component-BpDNoBAZ.js.map} +1 -1
- package/dist/chunks/{calendar.component-CFBrrBSJ.js → calendar.component-C2bzItDq.js} +2 -2
- package/dist/chunks/{calendar.component-CFBrrBSJ.js.map → calendar.component-C2bzItDq.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-BRHLt929.js → characterCounter.component-CczgC612.js} +2 -2
- package/dist/chunks/{characterCounter.component-BRHLt929.js.map → characterCounter.component-CczgC612.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-DI_FQNUR.js → characterCounter.component-Cm9yEHjz.js} +2 -2
- package/dist/chunks/{characterCounter.component-DI_FQNUR.js.map → characterCounter.component-Cm9yEHjz.js.map} +1 -1
- package/dist/chunks/{checkbox.component-DUJCiZr2.js → checkbox.component-Bytw6Mk1.js} +3 -3
- package/dist/chunks/{checkbox.component-DUJCiZr2.js.map → checkbox.component-Bytw6Mk1.js.map} +1 -1
- package/dist/chunks/{checkbox.component-C132vkan.js → checkbox.component-CrTnnQ30.js} +2 -2
- package/dist/chunks/{checkbox.component-C132vkan.js.map → checkbox.component-CrTnnQ30.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-DW9qUlSm.js → checkboxGroup.component-Bf_yc-Fl.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-DW9qUlSm.js.map → checkboxGroup.component-Bf_yc-Fl.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-2U0ZW1TD.js → checkboxGroup.component-CndHvReL.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-2U0ZW1TD.js.map → checkboxGroup.component-CndHvReL.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-CscMIq51.js → conversationCard.component-BKXSq7NS.js} +2 -2
- package/dist/chunks/{conversationCard.component-CscMIq51.js.map → conversationCard.component-BKXSq7NS.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-xIYvp6K5.js → conversationCard.component-Mn3eYMW_.js} +6 -6
- package/dist/chunks/{conversationCard.component-xIYvp6K5.js.map → conversationCard.component-Mn3eYMW_.js.map} +1 -1
- package/dist/chunks/{datePicker.component-DeK6pPeC.js → datePicker.component-CHBO_Jrk.js} +4 -4
- package/dist/chunks/{datePicker.component-DeK6pPeC.js.map → datePicker.component-CHBO_Jrk.js.map} +1 -1
- package/dist/chunks/{datePicker.component-BuGpHTzS.js → datePicker.component-DQ0a5vhA.js} +2 -2
- package/dist/chunks/{datePicker.component-BuGpHTzS.js.map → datePicker.component-DQ0a5vhA.js.map} +1 -1
- package/dist/chunks/{datePicker.provider-i35-VNAb.js → datePicker.provider-CDhsnFSD.js} +2 -2
- package/dist/chunks/{datePicker.provider-i35-VNAb.js.map → datePicker.provider-CDhsnFSD.js.map} +1 -1
- package/dist/chunks/{datePicker.provider-C1vLiJEb.js → datePicker.provider-o-sEPUJe.js} +3 -3
- package/dist/chunks/{datePicker.provider-C1vLiJEb.js.map → datePicker.provider-o-sEPUJe.js.map} +1 -1
- package/dist/chunks/{dateTimePicker.component-BwKD6TeU.js → dateTimePicker.component-B1tTKUZU.js} +5 -5
- package/dist/chunks/{dateTimePicker.component-BwKD6TeU.js.map → dateTimePicker.component-B1tTKUZU.js.map} +1 -1
- package/dist/chunks/{dateTimePicker.component-C7SFD9Py.js → dateTimePicker.component-oLZ5KXWa.js} +2 -2
- package/dist/chunks/{dateTimePicker.component-C7SFD9Py.js.map → dateTimePicker.component-oLZ5KXWa.js.map} +1 -1
- package/dist/chunks/{heading.component-CpSAN3cv.js → heading.component-BBTU00_w.js} +2 -2
- package/dist/chunks/{heading.component-CpSAN3cv.js.map → heading.component-BBTU00_w.js.map} +1 -1
- package/dist/chunks/{heading.component-DnoZOXdz.js → heading.component-DeM4h5rY.js} +2 -2
- package/dist/chunks/{heading.component-DnoZOXdz.js.map → heading.component-DeM4h5rY.js.map} +1 -1
- package/dist/chunks/{maintenanceBanner.types-DerZF_8G.js → maintenanceBanner.types-BiSgtHkP.js} +2 -2
- package/dist/chunks/{maintenanceBanner.types-DerZF_8G.js.map → maintenanceBanner.types-BiSgtHkP.js.map} +1 -1
- package/dist/chunks/{maintenanceBanner.types-BsNjAlXa.js → maintenanceBanner.types-CfHYj6Nu.js} +2 -2
- package/dist/chunks/{maintenanceBanner.types-BsNjAlXa.js.map → maintenanceBanner.types-CfHYj6Nu.js.map} +1 -1
- package/dist/chunks/{menu.component-D2V9Q1Y5.js → menu.component-CNbEm3SL.js} +2 -2
- package/dist/chunks/{menu.component-D2V9Q1Y5.js.map → menu.component-CNbEm3SL.js.map} +1 -1
- package/dist/chunks/{menu.component-WHzMw5ZI.js → menu.component-DwnU1N2a.js} +5 -5
- package/dist/chunks/{menu.component-WHzMw5ZI.js.map → menu.component-DwnU1N2a.js.map} +1 -1
- package/dist/chunks/{modal.types-Bj6PrItn.js → modal.types-CfN8ElV6.js} +2 -2
- package/dist/chunks/{modal.types-Bj6PrItn.js.map → modal.types-CfN8ElV6.js.map} +1 -1
- package/dist/chunks/{modal.types-rx31rD9D.js → modal.types-DlvB1lQC.js} +2 -2
- package/dist/chunks/{modal.types-rx31rD9D.js.map → modal.types-DlvB1lQC.js.map} +1 -1
- package/dist/chunks/{notificationCounter.component-CBwi5vXa.js → notificationCounter.component-BUxWlpKh.js} +2 -2
- package/dist/chunks/{notificationCounter.component-CBwi5vXa.js.map → notificationCounter.component-BUxWlpKh.js.map} +1 -1
- package/dist/chunks/{notificationCounter.component-6Q3q8jWj.js → notificationCounter.component-DhfVkkOQ.js} +2 -2
- package/dist/chunks/{notificationCounter.component-6Q3q8jWj.js.map → notificationCounter.component-DhfVkkOQ.js.map} +1 -1
- package/dist/chunks/{numberInput.component-DGPEz0Fv.js → numberInput.component-B0P7w6Av.js} +2 -2
- package/dist/chunks/{numberInput.component-DGPEz0Fv.js.map → numberInput.component-B0P7w6Av.js.map} +1 -1
- package/dist/chunks/{numberInput.component-CRDRjrTH.js → numberInput.component-Bpl3NGJU.js} +2 -2
- package/dist/chunks/{numberInput.component-CRDRjrTH.js.map → numberInput.component-Bpl3NGJU.js.map} +1 -1
- package/dist/chunks/{pinInput.types-bIGh7aUS.js → pinInput.types-B0WLZ-4e.js} +2 -2
- package/dist/chunks/{pinInput.types-bIGh7aUS.js.map → pinInput.types-B0WLZ-4e.js.map} +1 -1
- package/dist/chunks/{pinInput.types-Can9f1Eu.js → pinInput.types-xxX7jDUo.js} +2 -2
- package/dist/chunks/{pinInput.types-Can9f1Eu.js.map → pinInput.types-xxX7jDUo.js.map} +1 -1
- package/dist/chunks/{popover.component-DIYT1Lc0.js → popover.component-65oNmbmB.js} +3 -3
- package/dist/chunks/{popover.component-DIYT1Lc0.js.map → popover.component-65oNmbmB.js.map} +1 -1
- package/dist/chunks/{popover.component-DTjA1GSd.js → popover.component-Cw6-018C.js} +2 -2
- package/dist/chunks/{popover.component-DTjA1GSd.js.map → popover.component-Cw6-018C.js.map} +1 -1
- package/dist/chunks/{radioGroup.types-U1ep9nrN.js → radioGroup.types-4D0zmi0v.js} +2 -2
- package/dist/chunks/{radioGroup.types-U1ep9nrN.js.map → radioGroup.types-4D0zmi0v.js.map} +1 -1
- package/dist/chunks/{radioGroup.types-DzSpA07h.js → radioGroup.types-Dbfon_Lr.js} +4 -4
- package/dist/chunks/{radioGroup.types-DzSpA07h.js.map → radioGroup.types-Dbfon_Lr.js.map} +1 -1
- package/dist/chunks/{rating.component-DsHkKmA7.js → rating.component-DOUCmD0Y.js} +2 -2
- package/dist/chunks/{rating.component-DsHkKmA7.js.map → rating.component-DOUCmD0Y.js.map} +1 -1
- package/dist/chunks/{rating.component-BWBPSEEk.js → rating.component-DlCpQ5GH.js} +2 -2
- package/dist/chunks/{rating.component-BWBPSEEk.js.map → rating.component-DlCpQ5GH.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-BhWM7kTg.js → ratingDots.component-Qk8qlPmN.js} +3 -3
- package/dist/chunks/{ratingDots.component-BhWM7kTg.js.map → ratingDots.component-Qk8qlPmN.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-CZ370iI3.js → ratingDots.component-pc5p1mua.js} +2 -2
- package/dist/chunks/{ratingDots.component-CZ370iI3.js.map → ratingDots.component-pc5p1mua.js.map} +1 -1
- package/dist/chunks/{select.component-OrsHXCMz.js → select.component-CzyXxbhS.js} +2 -2
- package/dist/chunks/{select.component-OrsHXCMz.js.map → select.component-CzyXxbhS.js.map} +1 -1
- package/dist/chunks/{select.component-DckP-f8y.js → select.component-DIrbeCPd.js} +5 -5
- package/dist/chunks/{select.component-DckP-f8y.js.map → select.component-DIrbeCPd.js.map} +1 -1
- package/dist/chunks/{sortableList.component-CbxbBLVQ.js → sortableList.component-05kG3QEM.js} +2 -2
- package/dist/chunks/{sortableList.component-CbxbBLVQ.js.map → sortableList.component-05kG3QEM.js.map} +1 -1
- package/dist/chunks/{sortableList.component-2yX2pXs7.js → sortableList.component-DX9EP39N.js} +2 -2
- package/dist/chunks/{sortableList.component-2yX2pXs7.js.map → sortableList.component-DX9EP39N.js.map} +1 -1
- package/dist/chunks/{spinner.component-Dq6u4vVL.js → spinner.component-0tE7mnxi.js} +2 -2
- package/dist/chunks/{spinner.component-Dq6u4vVL.js.map → spinner.component-0tE7mnxi.js.map} +1 -1
- package/dist/chunks/{spinner.component-CNHQ8UDz.js → spinner.component-CQ-JWUon.js} +2 -2
- package/dist/chunks/{spinner.component-CNHQ8UDz.js.map → spinner.component-CQ-JWUon.js.map} +1 -1
- package/dist/chunks/{switch.component-BYEMhBCA.js → switch.component-BKahX4Bw.js} +2 -2
- package/dist/chunks/{switch.component-BYEMhBCA.js.map → switch.component-BKahX4Bw.js.map} +1 -1
- package/dist/chunks/{switch.component-DjN67nap.js → switch.component-WMd5cinZ.js} +2 -2
- package/dist/chunks/{switch.component-DjN67nap.js.map → switch.component-WMd5cinZ.js.map} +1 -1
- package/dist/chunks/{tab.types-JAJ5Xxff.js → tab.types-CTlxVEvQ.js} +3 -3
- package/dist/chunks/{tab.types-JAJ5Xxff.js.map → tab.types-CTlxVEvQ.js.map} +1 -1
- package/dist/chunks/{tab.types-DSPWRVCF.js → tab.types-xN2lQJLC.js} +2 -2
- package/dist/chunks/{tab.types-DSPWRVCF.js.map → tab.types-xN2lQJLC.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-CT7_RyJ-.js → tagBlock.component-CNwLyYYb.js} +5 -5
- package/dist/chunks/{tagBlock.component-CT7_RyJ-.js.map → tagBlock.component-CNwLyYYb.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-B899iqQP.js → tagBlock.component-fnt27QP6.js} +2 -2
- package/dist/chunks/{tagBlock.component-B899iqQP.js.map → tagBlock.component-fnt27QP6.js.map} +1 -1
- package/dist/chunks/{text.component-DhuUgP3j.js → text.component-C9jh_JMO.js} +2 -2
- package/dist/chunks/{text.component-DhuUgP3j.js.map → text.component-C9jh_JMO.js.map} +1 -1
- package/dist/chunks/{text.component-BDDz5KQP.js → text.component-D5GpbfNx.js} +2 -2
- package/dist/chunks/{text.component-BDDz5KQP.js.map → text.component-D5GpbfNx.js.map} +1 -1
- package/dist/chunks/{textInput.component-CwTc0h_F.js → textInput.component-BDJuvT1c.js} +2 -2
- package/dist/chunks/{textInput.component-CwTc0h_F.js.map → textInput.component-BDJuvT1c.js.map} +1 -1
- package/dist/chunks/{textInput.component-BeiTxTkS.js → textInput.component-DAan7BwF.js} +3 -3
- package/dist/chunks/{textInput.component-BeiTxTkS.js.map → textInput.component-DAan7BwF.js.map} +1 -1
- package/dist/chunks/{textarea.component-BIg_XX_R.js → textarea.component-1Gvjelye.js} +2 -2
- package/dist/chunks/{textarea.component-BIg_XX_R.js.map → textarea.component-1Gvjelye.js.map} +1 -1
- package/dist/chunks/{textarea.component-C6Wt1Pk8.js → textarea.component-B-tQg_4m.js} +3 -3
- package/dist/chunks/{textarea.component-C6Wt1Pk8.js.map → textarea.component-B-tQg_4m.js.map} +1 -1
- package/dist/chunks/{theme.provider-CVSsJMOG.js → theme.provider-CD72J0A7.js} +16 -5
- package/dist/chunks/{theme.provider-CVSsJMOG.js.map → theme.provider-CD72J0A7.js.map} +1 -1
- package/dist/chunks/{theme.provider-C_F9M-W3.js → theme.provider-DpFjsbLx.js} +2 -2
- package/dist/chunks/{theme.provider-C_F9M-W3.js.map → theme.provider-DpFjsbLx.js.map} +1 -1
- package/dist/chunks/{timePicker.component-CsvyXSRc.js → timePicker.component-CvQ9kF_7.js} +3 -3
- package/dist/chunks/{timePicker.component-CsvyXSRc.js.map → timePicker.component-CvQ9kF_7.js.map} +1 -1
- package/dist/chunks/{timePicker.component-D5hw80VV.js → timePicker.component-D2gDf5fp.js} +2 -2
- package/dist/chunks/{timePicker.component-D5hw80VV.js.map → timePicker.component-D2gDf5fp.js.map} +1 -1
- package/dist/chunks/{timeRange.component-D3Db8lvh.js → timeRange.component-DL2vskjy.js} +2 -2
- package/dist/chunks/{timeRange.component-D3Db8lvh.js.map → timeRange.component-DL2vskjy.js.map} +1 -1
- package/dist/chunks/{timeRange.component-9Bs6kd18.js → timeRange.component-DfOq2mGR.js} +2 -2
- package/dist/chunks/{timeRange.component-9Bs6kd18.js.map → timeRange.component-DfOq2mGR.js.map} +1 -1
- package/dist/chunks/{timestamp.component-BfmZPfy5.js → timestamp.component-CRTYMLmn.js} +2 -2
- package/dist/chunks/{timestamp.component-BfmZPfy5.js.map → timestamp.component-CRTYMLmn.js.map} +1 -1
- package/dist/chunks/{timestamp.component-DiZwy6CA.js → timestamp.component-CRz-1i68.js} +2 -2
- package/dist/chunks/{timestamp.component-DiZwy6CA.js.map → timestamp.component-CRz-1i68.js.map} +1 -1
- package/dist/chunks/{withFormControl-DW9A6BSL.js → withFormControl-DVeqCX53.js} +2 -2
- package/dist/chunks/{withFormControl-DW9A6BSL.js.map → withFormControl-DVeqCX53.js.map} +1 -1
- package/dist/chunks/{withFormControl-QV_Jridv.js → withFormControl-d2CEvsH2.js} +2 -2
- package/dist/chunks/{withFormControl-QV_Jridv.js.map → withFormControl-d2CEvsH2.js.map} +1 -1
- package/dist/chunks/withTruncation-D0mlwwep.js +2 -0
- package/dist/chunks/{withTruncation-pzYbtqYw.js.map → withTruncation-D0mlwwep.js.map} +1 -1
- package/dist/chunks/withTruncation-DW62mTHW.js +103 -0
- package/dist/chunks/withTruncation-DW62mTHW.js.map +1 -0
- package/dist/cjs/components/Alert/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/Calendar/index.cjs +1 -1
- package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
- package/dist/cjs/components/Checkbox/index.cjs +1 -1
- package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
- package/dist/cjs/components/ConversationCard/index.cjs +1 -1
- package/dist/cjs/components/DatePicker/index.cjs +1 -1
- package/dist/cjs/components/DateTimePicker/index.cjs +1 -1
- package/dist/cjs/components/Heading/index.cjs +1 -1
- package/dist/cjs/components/MaintenanceBanner/index.cjs +1 -1
- package/dist/cjs/components/Menu/index.cjs +1 -1
- package/dist/cjs/components/Modal/index.cjs +1 -1
- package/dist/cjs/components/NotificationCounter/index.cjs +1 -1
- package/dist/cjs/components/NumberInput/index.cjs +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/Rating/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/Switch/index.cjs +1 -1
- package/dist/cjs/components/Tabs/index.cjs +1 -1
- package/dist/cjs/components/TagBlock/index.cjs +1 -1
- package/dist/cjs/components/Text/index.cjs +1 -1
- package/dist/cjs/components/TextInput/index.cjs +1 -1
- package/dist/cjs/components/Textarea/index.cjs +1 -1
- package/dist/cjs/components/TimePicker/index.cjs +1 -1
- package/dist/cjs/components/TimeRange/index.cjs +1 -1
- package/dist/cjs/components/Timestamp/index.cjs +1 -1
- package/dist/cjs/components/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/AvatarGroup/index.js +1 -1
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/Calendar/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 +2 -2
- package/dist/esm/components/DateTimePicker/index.js +1 -1
- package/dist/esm/components/Heading/index.js +1 -1
- package/dist/esm/components/MaintenanceBanner/index.js +1 -1
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/NotificationCounter/index.js +1 -1
- package/dist/esm/components/NumberInput/index.js +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/Rating/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/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/Text/index.js +1 -1
- package/dist/esm/components/TextInput/index.js +1 -1
- package/dist/esm/components/Textarea/index.js +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/Timestamp/index.js +1 -1
- package/dist/esm/components/index.js +34 -34
- package/dist/esm/index.js +35 -35
- package/dist/esm/theme/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/withTruncation-B2GhwmHG.js +0 -92
- package/dist/chunks/withTruncation-B2GhwmHG.js.map +0 -1
- package/dist/chunks/withTruncation-pzYbtqYw.js +0 -2
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { j as a } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import k, { useState as y, useRef as m, useCallback as j, useEffect as O, useMemo as R } from "react";
|
|
3
|
-
import { B as h } from "./index-9BerxEcw.js";
|
|
4
|
-
import { T as _ } from "./tooltip.component-CHohp2qn.js";
|
|
5
|
-
const w = (e) => {
|
|
6
|
-
if (typeof e == "string")
|
|
7
|
-
return e;
|
|
8
|
-
if (typeof e == "number" || typeof e == "boolean")
|
|
9
|
-
return String(e);
|
|
10
|
-
if (k.isValidElement(e)) {
|
|
11
|
-
const r = e;
|
|
12
|
-
if (r.props.children)
|
|
13
|
-
return w(r.props.children);
|
|
14
|
-
}
|
|
15
|
-
return Array.isArray(e) ? e.map(w).join(" ") : "";
|
|
16
|
-
}, B = (e) => {
|
|
17
|
-
function r({
|
|
18
|
-
truncated: l = !1,
|
|
19
|
-
noOfLines: d = 1,
|
|
20
|
-
children: i,
|
|
21
|
-
tooltipProps: u,
|
|
22
|
-
["data-testid"]: o = "kibble-truncated-text",
|
|
23
|
-
...x
|
|
24
|
-
}) {
|
|
25
|
-
const [p, b] = y(!1), n = m(null), T = m(null), s = m(null), c = j(() => {
|
|
26
|
-
if (!n.current) return;
|
|
27
|
-
const t = n.current.children[0];
|
|
28
|
-
if (!t) return;
|
|
29
|
-
T.current = t;
|
|
30
|
-
const f = t.scrollHeight > t.clientHeight;
|
|
31
|
-
b(f);
|
|
32
|
-
}, []);
|
|
33
|
-
O(() => {
|
|
34
|
-
if (!l) return;
|
|
35
|
-
let t;
|
|
36
|
-
const f = () => {
|
|
37
|
-
window.clearTimeout(t), t = window.setTimeout(c, 100);
|
|
38
|
-
}, g = window.setTimeout(c, 50);
|
|
39
|
-
return n.current && (s.current = new ResizeObserver(() => {
|
|
40
|
-
f();
|
|
41
|
-
}), s.current.observe(n.current)), () => {
|
|
42
|
-
window.clearTimeout(t), window.clearTimeout(g), s.current && s.current.disconnect();
|
|
43
|
-
};
|
|
44
|
-
}, [l, c, i, d]);
|
|
45
|
-
const v = R(
|
|
46
|
-
() => u?.label || w(i),
|
|
47
|
-
[i, u?.label]
|
|
48
|
-
);
|
|
49
|
-
return l ? /* @__PURE__ */ a.jsx(
|
|
50
|
-
_,
|
|
51
|
-
{
|
|
52
|
-
...u,
|
|
53
|
-
label: v,
|
|
54
|
-
disabled: !p,
|
|
55
|
-
"data-testid": `${o}-tooltip`,
|
|
56
|
-
children: /* @__PURE__ */ a.jsx(
|
|
57
|
-
h,
|
|
58
|
-
{
|
|
59
|
-
ref: n,
|
|
60
|
-
width: "100%",
|
|
61
|
-
minWidth: 0,
|
|
62
|
-
overflow: "hidden",
|
|
63
|
-
flex: "1 1 auto",
|
|
64
|
-
className: "TruncatedText__Wrapper",
|
|
65
|
-
"data-testid": `${o}-wrapper`,
|
|
66
|
-
children: /* @__PURE__ */ a.jsx(
|
|
67
|
-
e,
|
|
68
|
-
{
|
|
69
|
-
className: "TruncatedText__TextContent",
|
|
70
|
-
"data-testid": `${o}-content`,
|
|
71
|
-
css: {
|
|
72
|
-
display: "-webkit-box",
|
|
73
|
-
WebkitBoxOrient: "vertical",
|
|
74
|
-
WebkitLineClamp: d,
|
|
75
|
-
overflow: "hidden",
|
|
76
|
-
textOverflow: "ellipsis"
|
|
77
|
-
},
|
|
78
|
-
...x,
|
|
79
|
-
children: i
|
|
80
|
-
}
|
|
81
|
-
)
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
}
|
|
85
|
-
) : /* @__PURE__ */ a.jsx(e, { ...x, "data-testid": o, children: i });
|
|
86
|
-
}
|
|
87
|
-
return r.displayName = `withTruncation(${e.displayName || e.name})`, r;
|
|
88
|
-
};
|
|
89
|
-
export {
|
|
90
|
-
B as w
|
|
91
|
-
};
|
|
92
|
-
//# sourceMappingURL=withTruncation-B2GhwmHG.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withTruncation-B2GhwmHG.js","sources":["../../src/hocs/withTruncation.tsx"],"sourcesContent":["import React, { ReactNode, useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { Box } from '@chakra-ui/react/box';\nimport { Tooltip, TooltipProps } from 'components/Tooltip';\n\nexport interface WithTruncationProps {\n /** If true, the text will be truncated. */\n truncated?: boolean;\n /** The number of lines to truncate the text to. */\n noOfLines?: number;\n /** Props to customize the tooltip. See `Tooltip` for more information. */\n tooltipProps?: Omit<TooltipProps, 'disabled'>;\n /** The children to be displayed inside the truncated text. */\n children?: ReactNode | string;\n /** Data test id for the truncated text.\n * @default kibble-truncated-text\n */\n 'data-testid'?: string;\n}\n\n/**\n * Helper function to extract text content from ReactNode\n */\nconst getTextFromChildren = (children: ReactNode | string): string => {\n if (typeof children === 'string') {\n return children;\n }\n if (typeof children === 'number' || typeof children === 'boolean') {\n return String(children);\n }\n if (React.isValidElement(children)) {\n const element = children as React.ReactElement<{ children?: ReactNode }>;\n if (element.props.children) {\n return getTextFromChildren(element.props.children);\n }\n }\n if (Array.isArray(children)) {\n return children.map(getTextFromChildren).join(' ');\n }\n return '';\n};\n\nexport const withTruncation = <P extends WithTruncationProps>(Component: React.ComponentType<P>): React.FC<P> => {\n function WithTruncation({\n truncated = false,\n noOfLines = 1,\n children,\n tooltipProps,\n ['data-testid']: dataTestId = 'kibble-truncated-text',\n ...rest\n }: WithTruncationProps): React.JSX.Element {\n const [isTextOverFlowing, setIsTextOverFlowing] = useState<boolean>(false);\n const containerRef = useRef<HTMLDivElement>(null);\n const textElementRef = useRef<HTMLElement | null>(null);\n const resizeObserverRef = useRef<ResizeObserver | null>(null);\n\n const checkOverflow = useCallback(() => {\n if (!containerRef.current) return;\n\n // Get the actual text element (first child)\n const textElement = containerRef.current.children[0] as HTMLElement;\n if (!textElement) return;\n\n textElementRef.current = textElement;\n\n // Check if text is overflowing\n const isOverflowing = textElement.scrollHeight > textElement.clientHeight;\n setIsTextOverFlowing(isOverflowing);\n }, []);\n\n useEffect(() => {\n if (!truncated) return;\n\n let timeoutId: number;\n\n const debouncedCheck = (): void => {\n window.clearTimeout(timeoutId);\n timeoutId = window.setTimeout(checkOverflow, 100);\n };\n\n // Initial check with a slight delay to ensure rendering is complete\n const initialCheckTimeout = window.setTimeout(checkOverflow, 50);\n\n // Observe the container for resize events\n if (containerRef.current) {\n resizeObserverRef.current = new ResizeObserver(() => {\n debouncedCheck();\n });\n resizeObserverRef.current.observe(containerRef.current);\n }\n\n return (): void => {\n window.clearTimeout(timeoutId);\n window.clearTimeout(initialCheckTimeout);\n if (resizeObserverRef.current) {\n resizeObserverRef.current.disconnect();\n }\n };\n }, [truncated, checkOverflow, children, noOfLines]);\n\n const tooltipLabel = useMemo(\n () => tooltipProps?.label || getTextFromChildren(children),\n [children, tooltipProps?.label],\n );\n\n if (!truncated) {\n return (\n <Component {...(rest as P)} data-testid={dataTestId}>\n {children}\n </Component>\n );\n }\n\n return (\n <Tooltip\n {...tooltipProps}\n label={tooltipLabel}\n disabled={!isTextOverFlowing}\n data-testid={`${dataTestId}-tooltip`}\n >\n <Box\n ref={containerRef}\n width=\"100%\"\n minWidth={0}\n overflow=\"hidden\"\n flex=\"1 1 auto\"\n className=\"TruncatedText__Wrapper\"\n data-testid={`${dataTestId}-wrapper`}\n >\n <Component\n className=\"TruncatedText__TextContent\"\n data-testid={`${dataTestId}-content`}\n css={{\n display: '-webkit-box',\n WebkitBoxOrient: 'vertical',\n WebkitLineClamp: noOfLines,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n }}\n {...(rest as P)}\n >\n {children}\n </Component>\n </Box>\n </Tooltip>\n );\n }\n\n WithTruncation.displayName = `withTruncation(${Component.displayName || Component.name})`;\n return WithTruncation;\n};\n"],"names":["getTextFromChildren","children","React","element","withTruncation","Component","WithTruncation","truncated","noOfLines","tooltipProps","dataTestId","rest","isTextOverFlowing","setIsTextOverFlowing","useState","containerRef","useRef","textElementRef","resizeObserverRef","checkOverflow","useCallback","textElement","isOverflowing","useEffect","timeoutId","debouncedCheck","initialCheckTimeout","tooltipLabel","useMemo","jsx","Tooltip","Box"],"mappings":";;;;AAsBA,MAAMA,IAAsB,CAACC,MAAyC;AAChE,MAAA,OAA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x-runtime-BjDatQAs.js"),r=require("react"),j=require("./index-BQRnVsAg.js"),_=require("./tooltip.component-DBw-hAPU.js"),g=e=>e&&e.__esModule?e:{default:e},k=g(r),d=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(k.default.isValidElement(e)){const n=e;if(n.props.children)return d(n.props.children)}return Array.isArray(e)?e.map(d).join(" "):""},y=e=>{function n({truncated:l=!1,noOfLines:m=1,children:i,tooltipProps:a,["data-testid"]:o="kibble-truncated-text",...w}){const[p,b]=r.useState(!1),s=r.useRef(null),T=r.useRef(null),u=r.useRef(null),f=r.useCallback(()=>{if(!s.current)return;const t=s.current.children[0];if(!t)return;T.current=t;const x=t.scrollHeight>t.clientHeight;b(x)},[]);r.useEffect(()=>{if(!l)return;let t;const x=()=>{window.clearTimeout(t),t=window.setTimeout(f,100)},v=window.setTimeout(f,50);return s.current&&(u.current=new ResizeObserver(()=>{x()}),u.current.observe(s.current)),()=>{window.clearTimeout(t),window.clearTimeout(v),u.current&&u.current.disconnect()}},[l,f,i,m]);const R=r.useMemo(()=>a?.label||d(i),[i,a?.label]);return l?c.jsxRuntimeExports.jsx(_.Tooltip,{...a,label:R,disabled:!p,"data-testid":`${o}-tooltip`,children:c.jsxRuntimeExports.jsx(j.Box,{ref:s,width:"100%",minWidth:0,overflow:"hidden",flex:"1 1 auto",className:"TruncatedText__Wrapper","data-testid":`${o}-wrapper`,children:c.jsxRuntimeExports.jsx(e,{className:"TruncatedText__TextContent","data-testid":`${o}-content`,css:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:m,overflow:"hidden",textOverflow:"ellipsis"},...w,children:i})})}):c.jsxRuntimeExports.jsx(e,{...w,"data-testid":o,children:i})}return n.displayName=`withTruncation(${e.displayName||e.name})`,n};exports.withTruncation=y;
|
|
2
|
-
//# sourceMappingURL=withTruncation-pzYbtqYw.js.map
|