@televet/kibble-ui 4.0.0-beta.80 → 4.0.0-beta.82

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.
Files changed (226) hide show
  1. package/dist/chunks/{alert.types-Bxrz2UAB.js → alert.types-D-3T1zMb.js} +3 -3
  2. package/dist/chunks/{alert.types-Bxrz2UAB.js.map → alert.types-D-3T1zMb.js.map} +1 -1
  3. package/dist/chunks/{alert.types-Dl6ivTll.js → alert.types-Fkq1_E-3.js} +2 -2
  4. package/dist/chunks/{alert.types-Dl6ivTll.js.map → alert.types-Fkq1_E-3.js.map} +1 -1
  5. package/dist/chunks/avatar.component-C9kUiMY7.js +2 -0
  6. package/dist/chunks/{avatar.component-BdkTgslj.js.map → avatar.component-C9kUiMY7.js.map} +1 -1
  7. package/dist/chunks/{avatar.component-DPu-22kf.js → avatar.component-DFefIlUE.js} +2 -2
  8. package/dist/chunks/{avatar.component-DPu-22kf.js.map → avatar.component-DFefIlUE.js.map} +1 -1
  9. package/dist/chunks/{avatarGroup.component-DHhW8fL3.js → avatarGroup.component-B8p1xC3D.js} +2 -2
  10. package/dist/chunks/{avatarGroup.component-DHhW8fL3.js.map → avatarGroup.component-B8p1xC3D.js.map} +1 -1
  11. package/dist/chunks/{avatarGroup.component-BW26RkqL.js → avatarGroup.component-D4H3sKfb.js} +2 -2
  12. package/dist/chunks/{avatarGroup.component-BW26RkqL.js.map → avatarGroup.component-D4H3sKfb.js.map} +1 -1
  13. package/dist/chunks/{buttonGroup.component-Q7Ul0yrS.js → buttonGroup.component-BgsjtghM.js} +2 -2
  14. package/dist/chunks/{buttonGroup.component-Q7Ul0yrS.js.map → buttonGroup.component-BgsjtghM.js.map} +1 -1
  15. package/dist/chunks/{buttonGroup.component-B3nqpiRU.js → buttonGroup.component-CMMVHI4v.js} +2 -2
  16. package/dist/chunks/{buttonGroup.component-B3nqpiRU.js.map → buttonGroup.component-CMMVHI4v.js.map} +1 -1
  17. package/dist/chunks/{characterCounter.component-D1qCNVkb.js → characterCounter.component-Da1W5Crn.js} +2 -2
  18. package/dist/chunks/{characterCounter.component-D1qCNVkb.js.map → characterCounter.component-Da1W5Crn.js.map} +1 -1
  19. package/dist/chunks/{characterCounter.component-CNo6Xau3.js → characterCounter.component-VT8m1K12.js} +2 -2
  20. package/dist/chunks/{characterCounter.component-CNo6Xau3.js.map → characterCounter.component-VT8m1K12.js.map} +1 -1
  21. package/dist/chunks/{checkbox.component-CxnOW6Sj.js → checkbox.component-AcTeAzVW.js} +2 -2
  22. package/dist/chunks/{checkbox.component-CxnOW6Sj.js.map → checkbox.component-AcTeAzVW.js.map} +1 -1
  23. package/dist/chunks/{checkbox.component-GElI75y2.js → checkbox.component-CMFZJnuD.js} +3 -3
  24. package/dist/chunks/{checkbox.component-GElI75y2.js.map → checkbox.component-CMFZJnuD.js.map} +1 -1
  25. package/dist/chunks/{checkboxGroup.component-Dc39GJV4.js → checkboxGroup.component-BWBTWbaC.js} +2 -2
  26. package/dist/chunks/{checkboxGroup.component-Dc39GJV4.js.map → checkboxGroup.component-BWBTWbaC.js.map} +1 -1
  27. package/dist/chunks/{checkboxGroup.component-CvEAkFlp.js → checkboxGroup.component-BYyZqfgM.js} +3 -3
  28. package/dist/chunks/{checkboxGroup.component-CvEAkFlp.js.map → checkboxGroup.component-BYyZqfgM.js.map} +1 -1
  29. package/dist/chunks/conversationCard.component-PtZYdnE-.js +2 -0
  30. package/dist/chunks/{conversationCard.component-CHm8X5MK.js.map → conversationCard.component-PtZYdnE-.js.map} +1 -1
  31. package/dist/chunks/{conversationCard.component-DnIpQo_a.js → conversationCard.component-wm7Lpbwc.js} +15 -16
  32. package/dist/chunks/{conversationCard.component-DnIpQo_a.js.map → conversationCard.component-wm7Lpbwc.js.map} +1 -1
  33. package/dist/chunks/{datePicker.component-BRCI3x7q.js → datePicker.component-M71Njnos.js} +4 -4
  34. package/dist/chunks/datePicker.component-M71Njnos.js.map +1 -0
  35. package/dist/chunks/{datePicker.component-52I2TBMS.js → datePicker.component-Q4Q7FQwl.js} +3 -3
  36. package/dist/chunks/datePicker.component-Q4Q7FQwl.js.map +1 -0
  37. package/dist/chunks/{heading.component-dGH5sXSB.js → heading.component-C6IbSCCN.js} +2 -2
  38. package/dist/chunks/{heading.component-dGH5sXSB.js.map → heading.component-C6IbSCCN.js.map} +1 -1
  39. package/dist/chunks/{heading.component-C7W_ipcL.js → heading.component-CLeuZRZ3.js} +2 -2
  40. package/dist/chunks/{heading.component-C7W_ipcL.js.map → heading.component-CLeuZRZ3.js.map} +1 -1
  41. package/dist/chunks/{menu.component-BGGElaYy.js → menu.component-BPD9FdbN.js} +2 -2
  42. package/dist/chunks/{menu.component-BGGElaYy.js.map → menu.component-BPD9FdbN.js.map} +1 -1
  43. package/dist/chunks/{menu.component-CFYFhp7-.js → menu.component-CKdbf8cV.js} +5 -5
  44. package/dist/chunks/{menu.component-CFYFhp7-.js.map → menu.component-CKdbf8cV.js.map} +1 -1
  45. package/dist/chunks/{modal.types-CUUJVRPN.js → modal.types-CPdmvcA8.js} +2 -2
  46. package/dist/chunks/{modal.types-CUUJVRPN.js.map → modal.types-CPdmvcA8.js.map} +1 -1
  47. package/dist/chunks/{modal.types-Bpoq1pcb.js → modal.types-XJffAUHT.js} +2 -2
  48. package/dist/chunks/{modal.types-Bpoq1pcb.js.map → modal.types-XJffAUHT.js.map} +1 -1
  49. package/dist/chunks/{pinInput.types-OnwTDVZV.js → pinInput.types-BgecOsie.js} +2 -2
  50. package/dist/chunks/{pinInput.types-OnwTDVZV.js.map → pinInput.types-BgecOsie.js.map} +1 -1
  51. package/dist/chunks/{pinInput.types-DX8ognpo.js → pinInput.types-DXmtwsDe.js} +2 -2
  52. package/dist/chunks/{pinInput.types-DX8ognpo.js.map → pinInput.types-DXmtwsDe.js.map} +1 -1
  53. package/dist/chunks/{popover.component-CDGsZ6d_.js → popover.component-Dj2hVIcn.js} +15 -16
  54. package/dist/chunks/{popover.component-CDGsZ6d_.js.map → popover.component-Dj2hVIcn.js.map} +1 -1
  55. package/dist/chunks/popover.component-XAG_EQKh.js +2 -0
  56. package/dist/chunks/{popover.component-B1TLfpqD.js.map → popover.component-XAG_EQKh.js.map} +1 -1
  57. package/dist/chunks/{radioGroup.component-C8_NKfl7.js → radioGroup.component-CTqkID3v.js} +2 -2
  58. package/dist/chunks/{radioGroup.component-C8_NKfl7.js.map → radioGroup.component-CTqkID3v.js.map} +1 -1
  59. package/dist/chunks/{radioGroup.component-yIs1Q3VP.js → radioGroup.component-CiVzjo7r.js} +4 -4
  60. package/dist/chunks/{radioGroup.component-yIs1Q3VP.js.map → radioGroup.component-CiVzjo7r.js.map} +1 -1
  61. package/dist/chunks/{ratingDots.component-CnCN-czr.js → ratingDots.component-B3T-LOsU.js} +3 -3
  62. package/dist/chunks/{ratingDots.component-CnCN-czr.js.map → ratingDots.component-B3T-LOsU.js.map} +1 -1
  63. package/dist/chunks/{ratingDots.component-Dr2p3X9o.js → ratingDots.component-CZQqP6kr.js} +2 -2
  64. package/dist/chunks/{ratingDots.component-Dr2p3X9o.js.map → ratingDots.component-CZQqP6kr.js.map} +1 -1
  65. package/dist/chunks/{select.component-l3N_dfXw.js → select.component-83JVgqUh.js} +2 -2
  66. package/dist/chunks/{select.component-l3N_dfXw.js.map → select.component-83JVgqUh.js.map} +1 -1
  67. package/dist/chunks/{select.component-DtvSUpfM.js → select.component-B-Z8HCfk.js} +5 -5
  68. package/dist/chunks/{select.component-DtvSUpfM.js.map → select.component-B-Z8HCfk.js.map} +1 -1
  69. package/dist/chunks/{sortableList.component-fhJaRd25.js → sortableList.component-BezOn6lC.js} +3 -3
  70. package/dist/chunks/{sortableList.component-fhJaRd25.js.map → sortableList.component-BezOn6lC.js.map} +1 -1
  71. package/dist/chunks/{sortableList.component-CNysbmV6.js → sortableList.component-DmIXsqZ6.js} +2 -2
  72. package/dist/chunks/{sortableList.component-CNysbmV6.js.map → sortableList.component-DmIXsqZ6.js.map} +1 -1
  73. package/dist/chunks/{spinner.component-BJ6rOgt8.js → spinner.component-B8JvK7UJ.js} +2 -2
  74. package/dist/chunks/{spinner.component-BJ6rOgt8.js.map → spinner.component-B8JvK7UJ.js.map} +1 -1
  75. package/dist/chunks/{spinner.component-oz9gjaVV.js → spinner.component-CcGk0iRF.js} +2 -2
  76. package/dist/chunks/{spinner.component-oz9gjaVV.js.map → spinner.component-CcGk0iRF.js.map} +1 -1
  77. package/dist/chunks/{styledAvatar.types-SAw52UC4.js → styledAvatar.types-B1L3B7Vt.js} +2 -2
  78. package/dist/chunks/{styledAvatar.types-SAw52UC4.js.map → styledAvatar.types-B1L3B7Vt.js.map} +1 -1
  79. package/dist/chunks/{styledAvatar.types-BvW6YJrl.js → styledAvatar.types-DM3CCeK2.js} +2 -2
  80. package/dist/chunks/{styledAvatar.types-BvW6YJrl.js.map → styledAvatar.types-DM3CCeK2.js.map} +1 -1
  81. package/dist/chunks/{switch.component-C1hrMzRm.js → switch.component-DR2z1VIi.js} +2 -2
  82. package/dist/chunks/{switch.component-C1hrMzRm.js.map → switch.component-DR2z1VIi.js.map} +1 -1
  83. package/dist/chunks/{switch.component-DFQ_b2At.js → switch.component-kymnT_3-.js} +2 -2
  84. package/dist/chunks/{switch.component-DFQ_b2At.js.map → switch.component-kymnT_3-.js.map} +1 -1
  85. package/dist/chunks/{tabs.component-CI6YyzcT.js → tabs.component-CXuIBpFN.js} +2 -2
  86. package/dist/chunks/{tabs.component-CI6YyzcT.js.map → tabs.component-CXuIBpFN.js.map} +1 -1
  87. package/dist/chunks/{tabs.component-CmBdxZ28.js → tabs.component-Dsp-LFv8.js} +2 -2
  88. package/dist/chunks/{tabs.component-CmBdxZ28.js.map → tabs.component-Dsp-LFv8.js.map} +1 -1
  89. package/dist/chunks/{tagBlock.component-p44L1Jc9.js → tagBlock.component-BUeL684f.js} +2 -2
  90. package/dist/chunks/{tagBlock.component-p44L1Jc9.js.map → tagBlock.component-BUeL684f.js.map} +1 -1
  91. package/dist/chunks/{tagBlock.component-33yx8LBM.js → tagBlock.component-Cz_t--RO.js} +5 -5
  92. package/dist/chunks/{tagBlock.component-33yx8LBM.js.map → tagBlock.component-Cz_t--RO.js.map} +1 -1
  93. package/dist/chunks/{textInput.component-CUKklyGx.js → textInput.component-BNINW1_e.js} +3 -3
  94. package/dist/chunks/{textInput.component-CUKklyGx.js.map → textInput.component-BNINW1_e.js.map} +1 -1
  95. package/dist/chunks/{textInput.component-Cla6KfBZ.js → textInput.component-DgiFzty4.js} +2 -2
  96. package/dist/chunks/{textInput.component-Cla6KfBZ.js.map → textInput.component-DgiFzty4.js.map} +1 -1
  97. package/dist/chunks/{textarea.component-BcL2jK0X.js → textarea.component-Bp58Lx18.js} +3 -3
  98. package/dist/chunks/{textarea.component-BcL2jK0X.js.map → textarea.component-Bp58Lx18.js.map} +1 -1
  99. package/dist/chunks/{textarea.component-XYJZDZmM.js → textarea.component-C34ZB5P0.js} +2 -2
  100. package/dist/chunks/{textarea.component-XYJZDZmM.js.map → textarea.component-C34ZB5P0.js.map} +1 -1
  101. package/dist/chunks/{theme.provider-oCz4Rrwj.js → theme.provider-AWSLFuJr.js} +4 -4
  102. package/dist/chunks/{theme.provider-oCz4Rrwj.js.map → theme.provider-AWSLFuJr.js.map} +1 -1
  103. package/dist/chunks/{theme.provider-FIFC-_Wf.js → theme.provider-DBYGq_4U.js} +4 -5
  104. package/dist/chunks/{theme.provider-FIFC-_Wf.js.map → theme.provider-DBYGq_4U.js.map} +1 -1
  105. package/dist/chunks/{timePicker.component-ClmXeH3U.js → timePicker.component-BdTpeepb.js} +2 -2
  106. package/dist/chunks/timePicker.component-BdTpeepb.js.map +1 -0
  107. package/dist/chunks/{timePicker.component-CMouXVow.js → timePicker.component-D-qQvgQh.js} +3 -3
  108. package/dist/chunks/timePicker.component-D-qQvgQh.js.map +1 -0
  109. package/dist/chunks/{timeRange.component-nrPWV1NY.js → timeRange.component-Cz0RyPsh.js} +2 -2
  110. package/dist/chunks/{timeRange.component-nrPWV1NY.js.map → timeRange.component-Cz0RyPsh.js.map} +1 -1
  111. package/dist/chunks/{timeRange.component-DKkwvibd.js → timeRange.component-pjEMSbFI.js} +2 -2
  112. package/dist/chunks/{timeRange.component-DKkwvibd.js.map → timeRange.component-pjEMSbFI.js.map} +1 -1
  113. package/dist/chunks/timestamp.component-AfZBeSJ0.js +2 -0
  114. package/dist/chunks/{timestamp.component-CNzJfora.js.map → timestamp.component-AfZBeSJ0.js.map} +1 -1
  115. package/dist/chunks/timestamp.component-DupRVSWm.js +53 -0
  116. package/dist/chunks/{timestamp.component-Dtn5KtVA.js.map → timestamp.component-DupRVSWm.js.map} +1 -1
  117. package/dist/chunks/{withFormControl-CwPfUb2g.js → withFormControl-8TClG0uv.js} +2 -2
  118. package/dist/chunks/{withFormControl-CwPfUb2g.js.map → withFormControl-8TClG0uv.js.map} +1 -1
  119. package/dist/chunks/{withFormControl-C8knrDok.js → withFormControl-CZAP4VgX.js} +2 -2
  120. package/dist/chunks/{withFormControl-C8knrDok.js.map → withFormControl-CZAP4VgX.js.map} +1 -1
  121. package/dist/chunks/{tooltip.component-BdlSO_v_.js → withTruncation-CIxtQTOw.js} +217 -128
  122. package/dist/chunks/withTruncation-CIxtQTOw.js.map +1 -0
  123. package/dist/chunks/withTruncation-DfW-AFRe.js +2 -0
  124. package/dist/chunks/withTruncation-DfW-AFRe.js.map +1 -0
  125. package/dist/cjs/components/Alert/index.cjs +1 -1
  126. package/dist/cjs/components/Avatar/index.cjs +1 -1
  127. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  128. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  129. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  130. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  131. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  132. package/dist/cjs/components/ConversationCard/index.cjs +1 -1
  133. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  134. package/dist/cjs/components/Heading/index.cjs +1 -1
  135. package/dist/cjs/components/Menu/index.cjs +1 -1
  136. package/dist/cjs/components/Modal/index.cjs +1 -1
  137. package/dist/cjs/components/PinInput/index.cjs +1 -1
  138. package/dist/cjs/components/Popover/index.cjs +1 -1
  139. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  140. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  141. package/dist/cjs/components/Select/index.cjs +1 -1
  142. package/dist/cjs/components/SortableList/index.cjs +1 -1
  143. package/dist/cjs/components/Spinner/index.cjs +1 -1
  144. package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
  145. package/dist/cjs/components/Switch/index.cjs +1 -1
  146. package/dist/cjs/components/Tabs/index.cjs +1 -1
  147. package/dist/cjs/components/TagBlock/index.cjs +1 -1
  148. package/dist/cjs/components/Text/index.cjs +1 -1
  149. package/dist/cjs/components/TextInput/index.cjs +1 -1
  150. package/dist/cjs/components/Textarea/index.cjs +1 -1
  151. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  152. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  153. package/dist/cjs/components/Timestamp/index.cjs +1 -1
  154. package/dist/cjs/components/Tooltip/index.cjs +1 -1
  155. package/dist/cjs/components/index.cjs +1 -1
  156. package/dist/cjs/index.cjs +1 -1
  157. package/dist/cjs/theme/index.cjs +1 -1
  158. package/dist/esm/components/Alert/index.js +1 -1
  159. package/dist/esm/components/Avatar/index.js +1 -1
  160. package/dist/esm/components/AvatarGroup/index.js +1 -1
  161. package/dist/esm/components/ButtonGroup/index.js +1 -1
  162. package/dist/esm/components/CharacterCounter/index.js +1 -1
  163. package/dist/esm/components/Checkbox/index.js +1 -1
  164. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  165. package/dist/esm/components/ConversationCard/index.js +1 -1
  166. package/dist/esm/components/DatePicker/index.js +1 -1
  167. package/dist/esm/components/Heading/index.js +1 -1
  168. package/dist/esm/components/Menu/index.js +1 -1
  169. package/dist/esm/components/Modal/index.js +1 -1
  170. package/dist/esm/components/PinInput/index.js +1 -1
  171. package/dist/esm/components/Popover/index.js +1 -1
  172. package/dist/esm/components/RadioGroup/index.js +1 -1
  173. package/dist/esm/components/RatingDots/index.js +1 -1
  174. package/dist/esm/components/Select/index.js +1 -1
  175. package/dist/esm/components/SortableList/index.js +1 -1
  176. package/dist/esm/components/Spinner/index.js +1 -1
  177. package/dist/esm/components/StyledAvatar/index.js +1 -1
  178. package/dist/esm/components/Switch/index.js +1 -1
  179. package/dist/esm/components/Tabs/index.js +1 -1
  180. package/dist/esm/components/TagBlock/index.js +1 -1
  181. package/dist/esm/components/Text/index.js +1 -1
  182. package/dist/esm/components/TextInput/index.js +1 -1
  183. package/dist/esm/components/Textarea/index.js +1 -1
  184. package/dist/esm/components/TimePicker/index.js +1 -1
  185. package/dist/esm/components/TimeRange/index.js +1 -1
  186. package/dist/esm/components/Timestamp/index.js +1 -1
  187. package/dist/esm/components/Tooltip/index.js +1 -1
  188. package/dist/esm/components/index.js +38 -39
  189. package/dist/esm/components/index.js.map +1 -1
  190. package/dist/esm/index.js +57 -58
  191. package/dist/esm/index.js.map +1 -1
  192. package/dist/esm/theme/index.js +1 -1
  193. package/dist/types/components/Avatar/avatar.recipe.d.ts +1 -1
  194. package/dist/types/components/Button/button.recipe.d.ts +1 -1
  195. package/dist/types/components/Logo/logo.recipe.d.ts +1 -1
  196. package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
  197. package/dist/types/components/PinInput/pinInput.recipe.d.ts +1 -1
  198. package/dist/types/components/Spinner/spinner.recipe.d.ts +1 -1
  199. package/dist/types/components/TimePicker/timePicker.recipe.d.ts +1 -1
  200. package/dist/types/components/Tooltip/tooltip.recipe.d.ts +1 -1
  201. package/dist/types/theme/tokens/shadows/shadows.config.d.ts +3 -3
  202. package/dist/types/theme/tokens/sizes/sizes.config.d.ts +3 -3
  203. package/dist/types/theme/tokens/spacing/spacing.config.d.ts +3 -3
  204. package/dist/types/theme/tokens/transitions/transitions.config.d.ts +2 -2
  205. package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +3 -3
  206. package/package.json +1 -1
  207. package/dist/chunks/avatar.component-BdkTgslj.js +0 -2
  208. package/dist/chunks/conversationCard.component-CHm8X5MK.js +0 -2
  209. package/dist/chunks/datePicker.component-52I2TBMS.js.map +0 -1
  210. package/dist/chunks/datePicker.component-BRCI3x7q.js.map +0 -1
  211. package/dist/chunks/popover.component-B1TLfpqD.js +0 -2
  212. package/dist/chunks/text.component-Ck6rZy2v.js +0 -12
  213. package/dist/chunks/text.component-Ck6rZy2v.js.map +0 -1
  214. package/dist/chunks/text.component-H5f43IC6.js +0 -2
  215. package/dist/chunks/text.component-H5f43IC6.js.map +0 -1
  216. package/dist/chunks/timePicker.component-CMouXVow.js.map +0 -1
  217. package/dist/chunks/timePicker.component-ClmXeH3U.js.map +0 -1
  218. package/dist/chunks/timestamp.component-CNzJfora.js +0 -2
  219. package/dist/chunks/timestamp.component-Dtn5KtVA.js +0 -54
  220. package/dist/chunks/tooltip.component-BdlSO_v_.js.map +0 -1
  221. package/dist/chunks/tooltip.component-Dq7F5JIs.js +0 -2
  222. package/dist/chunks/tooltip.component-Dq7F5JIs.js.map +0 -1
  223. package/dist/chunks/withTruncation-C_btJ8Nx.js +0 -2
  224. package/dist/chunks/withTruncation-C_btJ8Nx.js.map +0 -1
  225. package/dist/chunks/withTruncation-D6letsku.js +0 -67
  226. package/dist/chunks/withTruncation-D6letsku.js.map +0 -1
@@ -1,110 +1,116 @@
1
1
  import { j as s } from "./jsx-runtime-C5mzlN2N.js";
2
- import { forwardRef as p, useId as S } from "react";
3
- import { c as G, f as P, u as h, h as V, g as m, d as $, b as F, i as B, j as U, k as Y, n as M, s as y, l as N, m as R, P as q } from "./use-locale-context-BiiNTYMT.js";
4
- import { c as J } from "./create-slot-recipe-context-BJmsuxih.js";
5
- import { a1 as c, c as K, z as Q, t as W, b as X } from "./index-YtNA0Ueo.js";
6
- const [L, g] = G({
2
+ import { forwardRef as C, useId as Y, memo as y, useState as z, useRef as R, useCallback as q, useEffect as J } from "react";
3
+ import { a as K } from "./config-DlTdf-Yt.js";
4
+ import { B as Q } from "./box-Ck9I7FYv.js";
5
+ import { c as X } from "./create-recipe-context-D7FewUR4.js";
6
+ import { u as Z } from "./use-slot-recipe-DhtQ1j_5.js";
7
+ import { c as ee, f as O, u as k, h as te, g as x, d as re, b as oe, i as ne, j as se, k as ie, n as ae, s as L, l as I, m as H, P as ce } from "./use-locale-context-BiiNTYMT.js";
8
+ import { c as le } from "./create-slot-recipe-context-BJmsuxih.js";
9
+ import { a1 as g, c as de, z as pe, t as ue, b as ge } from "./index-YtNA0Ueo.js";
10
+ const { withContext: Ce } = X({
11
+ key: "text"
12
+ }), ve = Ce("p"), [D, v] = ee({
7
13
  name: "HoverCardContext",
8
14
  hookName: "useHoverCardContext",
9
15
  providerName: "<HoverCardProvider />"
10
- }), w = p((e, t) => {
11
- const o = g(), r = c(o.getArrowProps(), e);
12
- return /* @__PURE__ */ s.jsx(P.div, { ...r, ref: t });
16
+ }), _ = C((e, t) => {
17
+ const r = v(), o = g(r.getArrowProps(), e);
18
+ return /* @__PURE__ */ s.jsx(O.div, { ...o, ref: t });
13
19
  });
14
- w.displayName = "HoverCardArrow";
15
- const I = p((e, t) => {
16
- const o = g(), r = c(o.getArrowTipProps(), e);
17
- return /* @__PURE__ */ s.jsx(P.div, { ...r, ref: t });
20
+ _.displayName = "HoverCardArrow";
21
+ const j = C((e, t) => {
22
+ const r = v(), o = g(r.getArrowTipProps(), e);
23
+ return /* @__PURE__ */ s.jsx(O.div, { ...o, ref: t });
18
24
  });
19
- I.displayName = "HoverCardArrowTip";
20
- const k = p((e, t) => {
21
- const o = g(), r = h(), n = c(o.getContentProps(), r.getPresenceProps(), e);
22
- return r.unmounted ? null : /* @__PURE__ */ s.jsx(P.div, { ...n, ref: V(r.ref, t) });
25
+ j.displayName = "HoverCardArrowTip";
26
+ const A = C((e, t) => {
27
+ const r = v(), o = k(), n = g(r.getContentProps(), o.getPresenceProps(), e);
28
+ return o.unmounted ? null : /* @__PURE__ */ s.jsx(O.div, { ...n, ref: te(o.ref, t) });
23
29
  });
24
- k.displayName = "HoverCardContent";
25
- const Z = (e) => e.children(g()), D = p((e, t) => {
26
- const o = g(), r = c(o.getPositionerProps(), e);
27
- return h().unmounted ? null : /* @__PURE__ */ s.jsx(P.div, { ...r, ref: t });
30
+ A.displayName = "HoverCardContent";
31
+ const Pe = (e) => e.children(v()), S = C((e, t) => {
32
+ const r = v(), o = g(r.getPositionerProps(), e);
33
+ return k().unmounted ? null : /* @__PURE__ */ s.jsx(O.div, { ...o, ref: t });
28
34
  });
29
- D.displayName = "HoverCardPositioner";
30
- var z = X("hoverCard").parts("arrow", "arrowTip", "trigger", "positioner", "content"), C = z.build(), H = (e) => e.ids?.trigger ?? `hover-card:${e.id}:trigger`, x = (e) => e.ids?.content ?? `hover-card:${e.id}:content`, A = (e) => e.ids?.positioner ?? `hover-card:${e.id}:popper`, ee = (e) => e.ids?.arrow ?? `hover-card:${e.id}:arrow`, E = (e) => e.getById(H(e)), te = (e) => e.getById(x(e)), T = (e) => e.getById(A(e));
31
- function oe(e, t) {
32
- const { state: o, send: r, prop: n, context: a, scope: d } = e, l = o.hasTag("open"), u = $({
35
+ S.displayName = "HoverCardPositioner";
36
+ var me = ge("hoverCard").parts("arrow", "arrowTip", "trigger", "positioner", "content"), m = me.build(), $ = (e) => e.ids?.trigger ?? `hover-card:${e.id}:trigger`, F = (e) => e.ids?.content ?? `hover-card:${e.id}:content`, G = (e) => e.ids?.positioner ?? `hover-card:${e.id}:popper`, Oe = (e) => e.ids?.arrow ?? `hover-card:${e.id}:arrow`, w = (e) => e.getById($(e)), Te = (e) => e.getById(F(e)), N = (e) => e.getById(G(e));
37
+ function Ee(e, t) {
38
+ const { state: r, send: o, prop: n, context: a, scope: c } = e, l = r.hasTag("open"), u = re({
33
39
  ...n("positioning"),
34
40
  placement: a.get("currentPlacement")
35
41
  });
36
42
  return {
37
43
  open: l,
38
44
  setOpen(i) {
39
- o.hasTag("open") !== i && r({ type: i ? "OPEN" : "CLOSE" });
45
+ r.hasTag("open") !== i && o({ type: i ? "OPEN" : "CLOSE" });
40
46
  },
41
47
  reposition(i = {}) {
42
- r({ type: "POSITIONING.SET", options: i });
48
+ o({ type: "POSITIONING.SET", options: i });
43
49
  },
44
50
  getArrowProps() {
45
51
  return t.element({
46
- id: ee(d),
47
- ...C.arrow.attrs,
52
+ id: Oe(c),
53
+ ...m.arrow.attrs,
48
54
  dir: n("dir"),
49
55
  style: u.arrow
50
56
  });
51
57
  },
52
58
  getArrowTipProps() {
53
59
  return t.element({
54
- ...C.arrowTip.attrs,
60
+ ...m.arrowTip.attrs,
55
61
  dir: n("dir"),
56
62
  style: u.arrowTip
57
63
  });
58
64
  },
59
65
  getTriggerProps() {
60
66
  return t.element({
61
- ...C.trigger.attrs,
67
+ ...m.trigger.attrs,
62
68
  dir: n("dir"),
63
69
  "data-placement": a.get("currentPlacement"),
64
- id: H(d),
70
+ id: $(c),
65
71
  "data-state": l ? "open" : "closed",
66
72
  onPointerEnter(i) {
67
- i.pointerType !== "touch" && r({ type: "POINTER_ENTER", src: "trigger" });
73
+ i.pointerType !== "touch" && o({ type: "POINTER_ENTER", src: "trigger" });
68
74
  },
69
75
  onPointerLeave(i) {
70
- i.pointerType !== "touch" && r({ type: "POINTER_LEAVE", src: "trigger" });
76
+ i.pointerType !== "touch" && o({ type: "POINTER_LEAVE", src: "trigger" });
71
77
  },
72
78
  onFocus() {
73
- r({ type: "TRIGGER_FOCUS" });
79
+ o({ type: "TRIGGER_FOCUS" });
74
80
  },
75
81
  onBlur() {
76
- r({ type: "TRIGGER_BLUR" });
82
+ o({ type: "TRIGGER_BLUR" });
77
83
  }
78
84
  });
79
85
  },
80
86
  getPositionerProps() {
81
87
  return t.element({
82
- id: A(d),
83
- ...C.positioner.attrs,
88
+ id: G(c),
89
+ ...m.positioner.attrs,
84
90
  dir: n("dir"),
85
91
  style: u.floating
86
92
  });
87
93
  },
88
94
  getContentProps() {
89
95
  return t.element({
90
- ...C.content.attrs,
96
+ ...m.content.attrs,
91
97
  dir: n("dir"),
92
- id: x(d),
98
+ id: F(c),
93
99
  hidden: !l,
94
100
  tabIndex: -1,
95
101
  "data-state": l ? "open" : "closed",
96
102
  "data-placement": a.get("currentPlacement"),
97
103
  onPointerEnter(i) {
98
- i.pointerType !== "touch" && r({ type: "POINTER_ENTER", src: "content" });
104
+ i.pointerType !== "touch" && o({ type: "POINTER_ENTER", src: "content" });
99
105
  },
100
106
  onPointerLeave(i) {
101
- i.pointerType !== "touch" && r({ type: "POINTER_LEAVE", src: "content" });
107
+ i.pointerType !== "touch" && o({ type: "POINTER_LEAVE", src: "content" });
102
108
  }
103
109
  });
104
110
  }
105
111
  };
106
112
  }
107
- var { not: O, and: f } = Q(), re = K({
113
+ var { not: E, and: b } = pe(), fe = de({
108
114
  props({ props: e }) {
109
115
  return {
110
116
  openDelay: 700,
@@ -124,8 +130,8 @@ var { not: O, and: f } = Q(), re = K({
124
130
  open: t(() => ({
125
131
  defaultValue: e("defaultOpen"),
126
132
  value: e("open"),
127
- onChange(o) {
128
- e("onOpenChange")?.({ open: o });
133
+ onChange(r) {
134
+ e("onOpenChange")?.({ open: r });
129
135
  }
130
136
  })),
131
137
  currentPlacement: t(() => ({
@@ -136,9 +142,9 @@ var { not: O, and: f } = Q(), re = K({
136
142
  }))
137
143
  };
138
144
  },
139
- watch({ track: e, context: t, action: o }) {
145
+ watch({ track: e, context: t, action: r }) {
140
146
  e([() => t.get("open")], () => {
141
- o(["toggleVisibility"]);
147
+ r(["toggleVisibility"]);
142
148
  });
143
149
  },
144
150
  states: {
@@ -194,12 +200,12 @@ var { not: O, and: f } = Q(), re = K({
194
200
  ],
195
201
  TRIGGER_BLUR: [
196
202
  {
197
- guard: f("isOpenControlled", O("isPointer")),
203
+ guard: b("isOpenControlled", E("isPointer")),
198
204
  // We trigger toggleVisibility manually since the `ctx.open` has not changed yet (at this point)
199
205
  actions: ["invokeOnClose", "toggleVisibility"]
200
206
  },
201
207
  {
202
- guard: O("isPointer"),
208
+ guard: E("isPointer"),
203
209
  target: "closed",
204
210
  actions: ["invokeOnClose"]
205
211
  }
@@ -242,11 +248,11 @@ var { not: O, and: f } = Q(), re = K({
242
248
  ],
243
249
  TRIGGER_BLUR: [
244
250
  {
245
- guard: f("isOpenControlled", O("isPointer")),
251
+ guard: b("isOpenControlled", E("isPointer")),
246
252
  actions: ["invokeOnClose"]
247
253
  },
248
254
  {
249
- guard: O("isPointer"),
255
+ guard: E("isPointer"),
250
256
  target: "closed",
251
257
  actions: ["invokeOnClose"]
252
258
  }
@@ -291,21 +297,21 @@ var { not: O, and: f } = Q(), re = K({
291
297
  },
292
298
  effects: {
293
299
  waitForOpenDelay({ send: e, prop: t }) {
294
- const o = setTimeout(() => {
300
+ const r = setTimeout(() => {
295
301
  e({ type: "OPEN_DELAY" });
296
302
  }, t("openDelay"));
297
- return () => clearTimeout(o);
303
+ return () => clearTimeout(r);
298
304
  },
299
305
  waitForCloseDelay({ send: e, prop: t }) {
300
- const o = setTimeout(() => {
306
+ const r = setTimeout(() => {
301
307
  e({ type: "CLOSE_DELAY" });
302
308
  }, t("closeDelay"));
303
- return () => clearTimeout(o);
309
+ return () => clearTimeout(r);
304
310
  },
305
- trackPositioning({ context: e, prop: t, scope: o }) {
311
+ trackPositioning({ context: e, prop: t, scope: r }) {
306
312
  e.get("currentPlacement") || e.set("currentPlacement", t("positioning").placement);
307
- const r = () => T(o);
308
- return m(E(o), r, {
313
+ const o = () => N(r);
314
+ return x(w(r), o, {
309
315
  ...t("positioning"),
310
316
  defer: !0,
311
317
  onComplete(n) {
@@ -313,17 +319,17 @@ var { not: O, and: f } = Q(), re = K({
313
319
  }
314
320
  });
315
321
  },
316
- trackDismissableElement({ send: e, scope: t, prop: o }) {
317
- return W(() => te(t), {
322
+ trackDismissableElement({ send: e, scope: t, prop: r }) {
323
+ return ue(() => Te(t), {
318
324
  defer: !0,
319
- exclude: [E(t)],
325
+ exclude: [w(t)],
320
326
  onDismiss() {
321
327
  e({ type: "CLOSE", src: "interact-outside" });
322
328
  },
323
- onInteractOutside: o("onInteractOutside"),
324
- onPointerDownOutside: o("onPointerDownOutside"),
329
+ onInteractOutside: r("onInteractOutside"),
330
+ onPointerDownOutside: r("onPointerDownOutside"),
325
331
  onFocusOutside(n) {
326
- n.preventDefault(), o("onFocusOutside")?.(n);
332
+ n.preventDefault(), r("onFocusOutside")?.(n);
327
333
  }
328
334
  });
329
335
  }
@@ -341,11 +347,11 @@ var { not: O, and: f } = Q(), re = K({
341
347
  clearIsPointer({ context: e }) {
342
348
  e.set("isPointer", !1);
343
349
  },
344
- reposition({ context: e, prop: t, scope: o, event: r }) {
345
- const n = () => T(o);
346
- m(E(o), n, {
350
+ reposition({ context: e, prop: t, scope: r, event: o }) {
351
+ const n = () => N(r);
352
+ x(w(r), n, {
347
353
  ...t("positioning"),
348
- ...r.options,
354
+ ...o.options,
349
355
  defer: !0,
350
356
  listeners: !1,
351
357
  onComplete(a) {
@@ -353,15 +359,15 @@ var { not: O, and: f } = Q(), re = K({
353
359
  }
354
360
  });
355
361
  },
356
- toggleVisibility({ prop: e, event: t, send: o }) {
362
+ toggleVisibility({ prop: e, event: t, send: r }) {
357
363
  queueMicrotask(() => {
358
- o({ type: e("open") ? "CONTROLLED.OPEN" : "CONTROLLED.CLOSE", previousEvent: t });
364
+ r({ type: e("open") ? "CONTROLLED.OPEN" : "CONTROLLED.CLOSE", previousEvent: t });
359
365
  });
360
366
  }
361
367
  }
362
368
  }
363
369
  });
364
- F()([
370
+ oe()([
365
371
  "closeDelay",
366
372
  "dir",
367
373
  "getRootNode",
@@ -376,93 +382,115 @@ F()([
376
382
  "onPointerDownOutside",
377
383
  "onFocusOutside"
378
384
  ]);
379
- const ne = (e) => {
380
- const t = S(), { getRootNode: o } = B(), { dir: r } = U(), n = {
385
+ const he = (e) => {
386
+ const t = Y(), { getRootNode: r } = ne(), { dir: o } = se(), n = {
381
387
  id: t,
382
- dir: r,
383
- getRootNode: o,
388
+ dir: o,
389
+ getRootNode: r,
384
390
  ...e
385
- }, a = Y(re, n);
386
- return oe(a, M);
387
- }, se = (e) => {
388
- const [t, { children: o, ...r }] = y(e), n = ne(r), a = N(c({ present: n.open }, t));
389
- return /* @__PURE__ */ s.jsx(L, { value: n, children: /* @__PURE__ */ s.jsx(R, { value: a, children: o }) });
390
- }, ie = (e) => {
391
- const [t, { value: o, children: r }] = y(e), n = N(c({ present: o.open }, t));
392
- return /* @__PURE__ */ s.jsx(L, { value: o, children: /* @__PURE__ */ s.jsx(R, { value: n, children: r }) });
393
- }, _ = p((e, t) => {
394
- const o = g(), r = c(o.getTriggerProps(), e);
395
- return /* @__PURE__ */ s.jsx(P.button, { ...r, ref: t });
391
+ }, a = ie(fe, n);
392
+ return Ee(a, ae);
393
+ }, we = (e) => {
394
+ const [t, { children: r, ...o }] = L(e), n = he(o), a = I(g({ present: n.open }, t));
395
+ return /* @__PURE__ */ s.jsx(D, { value: n, children: /* @__PURE__ */ s.jsx(H, { value: a, children: r }) });
396
+ }, ye = (e) => {
397
+ const [t, { value: r, children: o }] = L(e), n = I(g({ present: r.open }, t));
398
+ return /* @__PURE__ */ s.jsx(D, { value: r, children: /* @__PURE__ */ s.jsx(H, { value: n, children: o }) });
399
+ }, V = C((e, t) => {
400
+ const r = v(), o = g(r.getTriggerProps(), e);
401
+ return /* @__PURE__ */ s.jsx(O.button, { ...o, ref: t });
396
402
  });
397
- _.displayName = "HoverCardTrigger";
403
+ V.displayName = "HoverCardTrigger";
398
404
  const {
399
- withRootProvider: b,
400
- withContext: v,
401
- PropsProvider: ae
402
- } = J({ key: "hoverCard" }), Te = b(ie), de = b(
403
- se
404
- ), fe = ae, ce = v(_, "trigger", { forwardAsChild: !0 }), le = v(D, "positioner", { forwardAsChild: !0 }), pe = v(k, "content", { forwardAsChild: !0 }), j = v(I, "arrowTip", { forwardAsChild: !0 }), ge = v(
405
- w,
405
+ withRootProvider: B,
406
+ withContext: T,
407
+ PropsProvider: Re
408
+ } = le({ key: "hoverCard" }), Ue = B(ye), xe = B(
409
+ we
410
+ ), Me = Re, Ne = T(V, "trigger", { forwardAsChild: !0 }), be = T(S, "positioner", { forwardAsChild: !0 }), ke = T(A, "content", { forwardAsChild: !0 }), U = T(j, "arrowTip", { forwardAsChild: !0 }), Le = T(
411
+ _,
406
412
  "arrow",
407
413
  {
408
414
  forwardAsChild: !0,
409
- defaultProps: { children: /* @__PURE__ */ s.jsx(j, {}) }
415
+ defaultProps: { children: /* @__PURE__ */ s.jsx(U, {}) }
410
416
  }
411
- ), he = Z, ue = p(
417
+ ), We = Pe, Ie = K({
418
+ slots: ["root", "trigger", "content", "arrow", "arrowTip"],
419
+ base: {
420
+ arrow: {
421
+ "--arrow-size": "10px"
422
+ },
423
+ arrowTip: {
424
+ border: "none"
425
+ },
426
+ content: {
427
+ "--hovercard-bg": "colors.background.overlay.contrast",
428
+ border: "none",
429
+ borderRadius: "base",
430
+ boxShadow: "none",
431
+ padding: 2
432
+ },
433
+ trigger: {
434
+ display: "inline-block"
435
+ }
436
+ }
437
+ }), M = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx(ve, { className: "Text", "data-testid": "kibble-text", ...t, children: e });
438
+ M.displayName = "Text";
439
+ const He = De(M), W = C(
412
440
  (e, t) => {
413
441
  const {
414
- children: o,
415
- disabled: r = !1,
442
+ children: r,
443
+ disabled: o = !1,
416
444
  openDelay: n = 350,
417
445
  placement: a = "top",
418
- positioning: d,
446
+ positioning: c,
419
447
  portalled: l = !0,
420
448
  label: u,
421
449
  ...i
422
- } = e;
423
- return o ? r ? o : /* @__PURE__ */ s.jsxs(
424
- de,
450
+ } = e, d = Z({ recipe: Ie })();
451
+ return r ? o ? r : /* @__PURE__ */ s.jsxs(
452
+ xe,
425
453
  {
426
454
  positioning: {
427
- ...d,
428
- placement: d?.placement || a
455
+ ...c,
456
+ placement: c?.placement || a
429
457
  },
430
458
  openDelay: n,
431
459
  ...i,
432
460
  children: [
433
461
  /* @__PURE__ */ s.jsx(
434
- ce,
462
+ Ne,
435
463
  {
436
464
  asChild: !0,
437
465
  className: "Tooltip__Trigger",
438
466
  "data-testid": "kibble-tooltip-trigger",
439
- children: o
467
+ css: d.trigger,
468
+ children: r
440
469
  }
441
470
  ),
442
- /* @__PURE__ */ s.jsx(q, { disabled: !l, children: /* @__PURE__ */ s.jsx(
443
- le,
471
+ /* @__PURE__ */ s.jsx(ce, { disabled: !l, children: /* @__PURE__ */ s.jsx(
472
+ be,
444
473
  {
445
474
  className: "Tooltip",
446
475
  "data-testid": "kibble-tooltip",
447
476
  children: /* @__PURE__ */ s.jsxs(
448
- pe,
477
+ ke,
449
478
  {
450
479
  className: "Tooltip__Content",
451
480
  "data-testid": "kibble-tooltip-content",
452
481
  ref: t,
482
+ css: d.content,
453
483
  children: [
454
484
  /* @__PURE__ */ s.jsx(
455
- ge,
485
+ Le,
456
486
  {
457
487
  className: "Tooltip__Arrow",
458
488
  "data-testid": "kibble-tooltip-arrow",
459
- children: /* @__PURE__ */ s.jsx(
460
- j,
461
- {}
462
- )
489
+ css: d.arrow,
490
+ children: /* @__PURE__ */ s.jsx(U, { css: d.arrowTip })
463
491
  }
464
492
  ),
465
- u
493
+ /* @__PURE__ */ s.jsx(He, { truncated: !1, variant: "onContrast", size: "sm", children: u })
466
494
  ]
467
495
  }
468
496
  )
@@ -473,19 +501,80 @@ const {
473
501
  ) : /* @__PURE__ */ s.jsx(s.Fragment, {});
474
502
  }
475
503
  );
476
- ue.displayName = "Tooltip";
504
+ W.displayName = "Tooltip";
505
+ const De = (e) => {
506
+ const t = y(e);
507
+ function r({
508
+ truncated: o = !1,
509
+ noOfLines: n = 1,
510
+ children: a,
511
+ tooltipProps: c,
512
+ ...l
513
+ }) {
514
+ const [u, i] = z(!1), p = R(null), d = R(null), f = q(() => {
515
+ if (p.current) {
516
+ const P = p.current?.children[0].scrollHeight || 0, h = p.current?.offsetHeight || 0;
517
+ i(P > h);
518
+ }
519
+ }, []);
520
+ return J(() => {
521
+ if (o && p.current) {
522
+ let P;
523
+ const h = () => {
524
+ window.clearTimeout(P), P = window.setTimeout(f, 100);
525
+ };
526
+ return d.current = new ResizeObserver(() => {
527
+ h();
528
+ }), d.current.observe(p.current), f(), () => {
529
+ window.clearTimeout(P), d.current && d.current.disconnect();
530
+ };
531
+ }
532
+ }, [o, f]), o ? /* @__PURE__ */ s.jsx(
533
+ W,
534
+ {
535
+ ...c,
536
+ label: c?.label || a?.toLocaleString() || "",
537
+ disabled: !u,
538
+ "data-testid": "kibble-truncated-text-tooltip",
539
+ children: /* @__PURE__ */ s.jsx(
540
+ Q,
541
+ {
542
+ ref: p,
543
+ display: "inline-block",
544
+ position: "relative",
545
+ className: "TruncatedText__Wrapper",
546
+ "data-testid": "kibble-truncated-text-wrapper",
547
+ children: /* @__PURE__ */ s.jsx(
548
+ t,
549
+ {
550
+ className: "TruncatedText__TextContent",
551
+ "data-testid": "kibble-truncated-text-content",
552
+ lineClamp: n,
553
+ ...l,
554
+ children: a
555
+ }
556
+ )
557
+ }
558
+ )
559
+ }
560
+ ) : /* @__PURE__ */ s.jsx(t, { ...l, children: a });
561
+ }
562
+ return r.displayName = `withTruncation(${e.displayName || e.name}`, y(r);
563
+ };
477
564
  export {
478
- ge as H,
479
- ue as T,
480
- j as a,
481
- pe as b,
482
- he as c,
483
- le as d,
484
- fe as e,
485
- de as f,
486
- Te as g,
487
- ce as h,
488
- z as i,
489
- g as u
565
+ Le as H,
566
+ W as T,
567
+ He as W,
568
+ U as a,
569
+ ke as b,
570
+ We as c,
571
+ be as d,
572
+ Me as e,
573
+ xe as f,
574
+ Ue as g,
575
+ Ne as h,
576
+ me as i,
577
+ v as u,
578
+ De as w
490
579
  };
491
- //# sourceMappingURL=tooltip.component-BdlSO_v_.js.map
580
+ //# sourceMappingURL=withTruncation-CIxtQTOw.js.map