@televet/kibble-ui 5.0.28-rb.0 → 5.0.28

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 (262) hide show
  1. package/dist/chunks/{alert.component-nhRTQ5KK.js → alert.component-B0gDwaKQ.js} +2 -2
  2. package/dist/chunks/{alert.component-nhRTQ5KK.js.map → alert.component-B0gDwaKQ.js.map} +1 -1
  3. package/dist/chunks/{alert.component-OcRbeRJa.js → alert.component-B2kzYzhv.js} +3 -3
  4. package/dist/chunks/{alert.component-OcRbeRJa.js.map → alert.component-B2kzYzhv.js.map} +1 -1
  5. package/dist/chunks/{avatarGroup.component-CJCQSIyr.js → avatarGroup.component-CUOKTQHZ.js} +2 -2
  6. package/dist/chunks/{avatarGroup.component-CJCQSIyr.js.map → avatarGroup.component-CUOKTQHZ.js.map} +1 -1
  7. package/dist/chunks/{avatarGroup.component-BPhQpVYM.js → avatarGroup.component-z6SzTzKR.js} +3 -3
  8. package/dist/chunks/{avatarGroup.component-BPhQpVYM.js.map → avatarGroup.component-z6SzTzKR.js.map} +1 -1
  9. package/dist/chunks/{buttonGroup.component-pR0mvmm7.js → buttonGroup.component-CHbRCpMI.js} +2 -2
  10. package/dist/chunks/{buttonGroup.component-pR0mvmm7.js.map → buttonGroup.component-CHbRCpMI.js.map} +1 -1
  11. package/dist/chunks/{buttonGroup.component-CO5lC36l.js → buttonGroup.component-CYJxaqK1.js} +2 -2
  12. package/dist/chunks/{buttonGroup.component-CO5lC36l.js.map → buttonGroup.component-CYJxaqK1.js.map} +1 -1
  13. package/dist/chunks/calendar.component-BpDNoBAZ.js +62 -0
  14. package/dist/chunks/calendar.component-BpDNoBAZ.js.map +1 -0
  15. package/dist/chunks/calendar.component-C2bzItDq.js +2 -0
  16. package/dist/chunks/calendar.component-C2bzItDq.js.map +1 -0
  17. package/dist/chunks/{characterCounter.component-BRHLt929.js → characterCounter.component-CczgC612.js} +2 -2
  18. package/dist/chunks/{characterCounter.component-BRHLt929.js.map → characterCounter.component-CczgC612.js.map} +1 -1
  19. package/dist/chunks/{characterCounter.component-DI_FQNUR.js → characterCounter.component-Cm9yEHjz.js} +2 -2
  20. package/dist/chunks/{characterCounter.component-DI_FQNUR.js.map → characterCounter.component-Cm9yEHjz.js.map} +1 -1
  21. package/dist/chunks/{checkbox.component-DUJCiZr2.js → checkbox.component-Bytw6Mk1.js} +3 -3
  22. package/dist/chunks/{checkbox.component-DUJCiZr2.js.map → checkbox.component-Bytw6Mk1.js.map} +1 -1
  23. package/dist/chunks/{checkbox.component-C132vkan.js → checkbox.component-CrTnnQ30.js} +2 -2
  24. package/dist/chunks/{checkbox.component-C132vkan.js.map → checkbox.component-CrTnnQ30.js.map} +1 -1
  25. package/dist/chunks/{checkboxGroup.component-DW9qUlSm.js → checkboxGroup.component-Bf_yc-Fl.js} +3 -3
  26. package/dist/chunks/{checkboxGroup.component-DW9qUlSm.js.map → checkboxGroup.component-Bf_yc-Fl.js.map} +1 -1
  27. package/dist/chunks/{checkboxGroup.component-2U0ZW1TD.js → checkboxGroup.component-CndHvReL.js} +2 -2
  28. package/dist/chunks/{checkboxGroup.component-2U0ZW1TD.js.map → checkboxGroup.component-CndHvReL.js.map} +1 -1
  29. package/dist/chunks/{conversationCard.component-CscMIq51.js → conversationCard.component-BKXSq7NS.js} +2 -2
  30. package/dist/chunks/{conversationCard.component-CscMIq51.js.map → conversationCard.component-BKXSq7NS.js.map} +1 -1
  31. package/dist/chunks/{conversationCard.component-DByFo4jj.js → conversationCard.component-Mn3eYMW_.js} +6 -6
  32. package/dist/chunks/{conversationCard.component-DByFo4jj.js.map → conversationCard.component-Mn3eYMW_.js.map} +1 -1
  33. package/dist/chunks/{datePicker.component-CLTjEX7i.js → datePicker.component-CHBO_Jrk.js} +5 -5
  34. package/dist/chunks/{datePicker.component-CLTjEX7i.js.map → datePicker.component-CHBO_Jrk.js.map} +1 -1
  35. package/dist/chunks/{datePicker.component-BuGpHTzS.js → datePicker.component-DQ0a5vhA.js} +2 -2
  36. package/dist/chunks/{datePicker.component-BuGpHTzS.js.map → datePicker.component-DQ0a5vhA.js.map} +1 -1
  37. package/dist/chunks/{datePicker.provider-i35-VNAb.js → datePicker.provider-CDhsnFSD.js} +2 -2
  38. package/dist/chunks/{datePicker.provider-i35-VNAb.js.map → datePicker.provider-CDhsnFSD.js.map} +1 -1
  39. package/dist/chunks/{datePicker.provider-CttuPiiS.js → datePicker.provider-o-sEPUJe.js} +7 -7
  40. package/dist/chunks/{datePicker.provider-CttuPiiS.js.map → datePicker.provider-o-sEPUJe.js.map} +1 -1
  41. package/dist/chunks/dateTimePicker.component-B1tTKUZU.js +306 -0
  42. package/dist/chunks/dateTimePicker.component-B1tTKUZU.js.map +1 -0
  43. package/dist/chunks/dateTimePicker.component-oLZ5KXWa.js +2 -0
  44. package/dist/chunks/dateTimePicker.component-oLZ5KXWa.js.map +1 -0
  45. package/dist/chunks/endOfMonth-ClO3w4vF.js +2 -0
  46. package/dist/chunks/endOfMonth-ClO3w4vF.js.map +1 -0
  47. package/dist/chunks/endOfMonth-D0kCU08_.js +19 -0
  48. package/dist/chunks/endOfMonth-D0kCU08_.js.map +1 -0
  49. package/dist/chunks/{format-CqTHHSak.js → format-dJJ72A--.js} +3 -3
  50. package/dist/chunks/{format-CqTHHSak.js.map → format-dJJ72A--.js.map} +1 -1
  51. package/dist/chunks/{heading.component-CpSAN3cv.js → heading.component-BBTU00_w.js} +2 -2
  52. package/dist/chunks/{heading.component-CpSAN3cv.js.map → heading.component-BBTU00_w.js.map} +1 -1
  53. package/dist/chunks/{heading.component-DnoZOXdz.js → heading.component-DeM4h5rY.js} +2 -2
  54. package/dist/chunks/{heading.component-DnoZOXdz.js.map → heading.component-DeM4h5rY.js.map} +1 -1
  55. package/dist/chunks/isToday-Q8lj3mkM.js +23 -0
  56. package/dist/chunks/{isToday-iCYsPDMT.js.map → isToday-Q8lj3mkM.js.map} +1 -1
  57. package/dist/chunks/{maintenanceBanner.types-DerZF_8G.js → maintenanceBanner.types-BiSgtHkP.js} +2 -2
  58. package/dist/chunks/{maintenanceBanner.types-DerZF_8G.js.map → maintenanceBanner.types-BiSgtHkP.js.map} +1 -1
  59. package/dist/chunks/{maintenanceBanner.types-BsNjAlXa.js → maintenanceBanner.types-CfHYj6Nu.js} +2 -2
  60. package/dist/chunks/{maintenanceBanner.types-BsNjAlXa.js.map → maintenanceBanner.types-CfHYj6Nu.js.map} +1 -1
  61. package/dist/chunks/{menu.component-D2V9Q1Y5.js → menu.component-CNbEm3SL.js} +2 -2
  62. package/dist/chunks/{menu.component-D2V9Q1Y5.js.map → menu.component-CNbEm3SL.js.map} +1 -1
  63. package/dist/chunks/{menu.component-WHzMw5ZI.js → menu.component-DwnU1N2a.js} +5 -5
  64. package/dist/chunks/{menu.component-WHzMw5ZI.js.map → menu.component-DwnU1N2a.js.map} +1 -1
  65. package/dist/chunks/{modal.types-Bj6PrItn.js → modal.types-CfN8ElV6.js} +2 -2
  66. package/dist/chunks/{modal.types-Bj6PrItn.js.map → modal.types-CfN8ElV6.js.map} +1 -1
  67. package/dist/chunks/{modal.types-rx31rD9D.js → modal.types-DlvB1lQC.js} +2 -2
  68. package/dist/chunks/{modal.types-rx31rD9D.js.map → modal.types-DlvB1lQC.js.map} +1 -1
  69. package/dist/chunks/{notificationCounter.component-CBwi5vXa.js → notificationCounter.component-BUxWlpKh.js} +2 -2
  70. package/dist/chunks/{notificationCounter.component-CBwi5vXa.js.map → notificationCounter.component-BUxWlpKh.js.map} +1 -1
  71. package/dist/chunks/{notificationCounter.component-6Q3q8jWj.js → notificationCounter.component-DhfVkkOQ.js} +2 -2
  72. package/dist/chunks/{notificationCounter.component-6Q3q8jWj.js.map → notificationCounter.component-DhfVkkOQ.js.map} +1 -1
  73. package/dist/chunks/{numberInput.component-DGPEz0Fv.js → numberInput.component-B0P7w6Av.js} +2 -2
  74. package/dist/chunks/{numberInput.component-DGPEz0Fv.js.map → numberInput.component-B0P7w6Av.js.map} +1 -1
  75. package/dist/chunks/{numberInput.component-CRDRjrTH.js → numberInput.component-Bpl3NGJU.js} +2 -2
  76. package/dist/chunks/{numberInput.component-CRDRjrTH.js.map → numberInput.component-Bpl3NGJU.js.map} +1 -1
  77. package/dist/chunks/{pinInput.types-bIGh7aUS.js → pinInput.types-B0WLZ-4e.js} +2 -2
  78. package/dist/chunks/{pinInput.types-bIGh7aUS.js.map → pinInput.types-B0WLZ-4e.js.map} +1 -1
  79. package/dist/chunks/{pinInput.types-Can9f1Eu.js → pinInput.types-xxX7jDUo.js} +2 -2
  80. package/dist/chunks/{pinInput.types-Can9f1Eu.js.map → pinInput.types-xxX7jDUo.js.map} +1 -1
  81. package/dist/chunks/{popover.component-DIYT1Lc0.js → popover.component-65oNmbmB.js} +3 -3
  82. package/dist/chunks/{popover.component-DIYT1Lc0.js.map → popover.component-65oNmbmB.js.map} +1 -1
  83. package/dist/chunks/{popover.component-DTjA1GSd.js → popover.component-Cw6-018C.js} +2 -2
  84. package/dist/chunks/{popover.component-DTjA1GSd.js.map → popover.component-Cw6-018C.js.map} +1 -1
  85. package/dist/chunks/{radioGroup.types-U1ep9nrN.js → radioGroup.types-4D0zmi0v.js} +2 -2
  86. package/dist/chunks/{radioGroup.types-U1ep9nrN.js.map → radioGroup.types-4D0zmi0v.js.map} +1 -1
  87. package/dist/chunks/{radioGroup.types-DzSpA07h.js → radioGroup.types-Dbfon_Lr.js} +4 -4
  88. package/dist/chunks/{radioGroup.types-DzSpA07h.js.map → radioGroup.types-Dbfon_Lr.js.map} +1 -1
  89. package/dist/chunks/{rating.component-DsHkKmA7.js → rating.component-DOUCmD0Y.js} +2 -2
  90. package/dist/chunks/{rating.component-DsHkKmA7.js.map → rating.component-DOUCmD0Y.js.map} +1 -1
  91. package/dist/chunks/{rating.component-BWBPSEEk.js → rating.component-DlCpQ5GH.js} +2 -2
  92. package/dist/chunks/{rating.component-BWBPSEEk.js.map → rating.component-DlCpQ5GH.js.map} +1 -1
  93. package/dist/chunks/{ratingDots.component-BhWM7kTg.js → ratingDots.component-Qk8qlPmN.js} +3 -3
  94. package/dist/chunks/{ratingDots.component-BhWM7kTg.js.map → ratingDots.component-Qk8qlPmN.js.map} +1 -1
  95. package/dist/chunks/{ratingDots.component-CZ370iI3.js → ratingDots.component-pc5p1mua.js} +2 -2
  96. package/dist/chunks/{ratingDots.component-CZ370iI3.js.map → ratingDots.component-pc5p1mua.js.map} +1 -1
  97. package/dist/chunks/{select.component-OrsHXCMz.js → select.component-CzyXxbhS.js} +2 -2
  98. package/dist/chunks/{select.component-OrsHXCMz.js.map → select.component-CzyXxbhS.js.map} +1 -1
  99. package/dist/chunks/{select.component-DckP-f8y.js → select.component-DIrbeCPd.js} +5 -5
  100. package/dist/chunks/{select.component-DckP-f8y.js.map → select.component-DIrbeCPd.js.map} +1 -1
  101. package/dist/chunks/{semanticTokens.records-YFGbKTL1.js → semanticTokens.records-CmeaObFQ.js} +2 -2
  102. package/dist/chunks/{semanticTokens.records-YFGbKTL1.js.map → semanticTokens.records-CmeaObFQ.js.map} +1 -1
  103. package/dist/chunks/{semanticTokens.records-C_ewkfqj.js → semanticTokens.records-Di2_gv9n.js} +9 -9
  104. package/dist/chunks/{semanticTokens.records-C_ewkfqj.js.map → semanticTokens.records-Di2_gv9n.js.map} +1 -1
  105. package/dist/chunks/{sortableList.component-CbxbBLVQ.js → sortableList.component-05kG3QEM.js} +2 -2
  106. package/dist/chunks/{sortableList.component-CbxbBLVQ.js.map → sortableList.component-05kG3QEM.js.map} +1 -1
  107. package/dist/chunks/{sortableList.component-2yX2pXs7.js → sortableList.component-DX9EP39N.js} +2 -2
  108. package/dist/chunks/{sortableList.component-2yX2pXs7.js.map → sortableList.component-DX9EP39N.js.map} +1 -1
  109. package/dist/chunks/{spinner.component-Dq6u4vVL.js → spinner.component-0tE7mnxi.js} +2 -2
  110. package/dist/chunks/{spinner.component-Dq6u4vVL.js.map → spinner.component-0tE7mnxi.js.map} +1 -1
  111. package/dist/chunks/{spinner.component-CNHQ8UDz.js → spinner.component-CQ-JWUon.js} +2 -2
  112. package/dist/chunks/{spinner.component-CNHQ8UDz.js.map → spinner.component-CQ-JWUon.js.map} +1 -1
  113. package/dist/chunks/{switch.component-BYEMhBCA.js → switch.component-BKahX4Bw.js} +2 -2
  114. package/dist/chunks/{switch.component-BYEMhBCA.js.map → switch.component-BKahX4Bw.js.map} +1 -1
  115. package/dist/chunks/{switch.component-DjN67nap.js → switch.component-WMd5cinZ.js} +2 -2
  116. package/dist/chunks/{switch.component-DjN67nap.js.map → switch.component-WMd5cinZ.js.map} +1 -1
  117. package/dist/chunks/{tab.types-JAJ5Xxff.js → tab.types-CTlxVEvQ.js} +3 -3
  118. package/dist/chunks/{tab.types-JAJ5Xxff.js.map → tab.types-CTlxVEvQ.js.map} +1 -1
  119. package/dist/chunks/{tab.types-DSPWRVCF.js → tab.types-xN2lQJLC.js} +2 -2
  120. package/dist/chunks/{tab.types-DSPWRVCF.js.map → tab.types-xN2lQJLC.js.map} +1 -1
  121. package/dist/chunks/{tagBlock.component-CT7_RyJ-.js → tagBlock.component-CNwLyYYb.js} +5 -5
  122. package/dist/chunks/{tagBlock.component-CT7_RyJ-.js.map → tagBlock.component-CNwLyYYb.js.map} +1 -1
  123. package/dist/chunks/{tagBlock.component-B899iqQP.js → tagBlock.component-fnt27QP6.js} +2 -2
  124. package/dist/chunks/{tagBlock.component-B899iqQP.js.map → tagBlock.component-fnt27QP6.js.map} +1 -1
  125. package/dist/chunks/{text.component-DhuUgP3j.js → text.component-C9jh_JMO.js} +2 -2
  126. package/dist/chunks/{text.component-DhuUgP3j.js.map → text.component-C9jh_JMO.js.map} +1 -1
  127. package/dist/chunks/{text.component-BDDz5KQP.js → text.component-D5GpbfNx.js} +2 -2
  128. package/dist/chunks/{text.component-BDDz5KQP.js.map → text.component-D5GpbfNx.js.map} +1 -1
  129. package/dist/chunks/{textInput.component-CwTc0h_F.js → textInput.component-BDJuvT1c.js} +2 -2
  130. package/dist/chunks/{textInput.component-CwTc0h_F.js.map → textInput.component-BDJuvT1c.js.map} +1 -1
  131. package/dist/chunks/{textInput.component-BeiTxTkS.js → textInput.component-DAan7BwF.js} +3 -3
  132. package/dist/chunks/{textInput.component-BeiTxTkS.js.map → textInput.component-DAan7BwF.js.map} +1 -1
  133. package/dist/chunks/{textarea.component-BIg_XX_R.js → textarea.component-1Gvjelye.js} +2 -2
  134. package/dist/chunks/{textarea.component-BIg_XX_R.js.map → textarea.component-1Gvjelye.js.map} +1 -1
  135. package/dist/chunks/{textarea.component-C6Wt1Pk8.js → textarea.component-B-tQg_4m.js} +3 -3
  136. package/dist/chunks/{textarea.component-C6Wt1Pk8.js.map → textarea.component-B-tQg_4m.js.map} +1 -1
  137. package/dist/chunks/theme-BFbOz0Jj.js.map +1 -1
  138. package/dist/chunks/theme-BOK659O0.js.map +1 -1
  139. package/dist/chunks/{theme.provider-BeSlhtUQ.js → theme.provider-CD72J0A7.js} +17 -6
  140. package/dist/chunks/{theme.provider-BeSlhtUQ.js.map → theme.provider-CD72J0A7.js.map} +1 -1
  141. package/dist/chunks/{theme.provider-DYehMUhm.js → theme.provider-DpFjsbLx.js} +2 -2
  142. package/dist/chunks/{theme.provider-DYehMUhm.js.map → theme.provider-DpFjsbLx.js.map} +1 -1
  143. package/dist/chunks/{timePicker.component-BCMX6aqb.js → timePicker.component-CvQ9kF_7.js} +4 -4
  144. package/dist/chunks/{timePicker.component-BCMX6aqb.js.map → timePicker.component-CvQ9kF_7.js.map} +1 -1
  145. package/dist/chunks/{timePicker.component-D5hw80VV.js → timePicker.component-D2gDf5fp.js} +2 -2
  146. package/dist/chunks/{timePicker.component-D5hw80VV.js.map → timePicker.component-D2gDf5fp.js.map} +1 -1
  147. package/dist/chunks/{timeRange.component-D3Db8lvh.js → timeRange.component-DL2vskjy.js} +2 -2
  148. package/dist/chunks/{timeRange.component-D3Db8lvh.js.map → timeRange.component-DL2vskjy.js.map} +1 -1
  149. package/dist/chunks/{timeRange.component-BZHpZeAX.js → timeRange.component-DfOq2mGR.js} +2 -2
  150. package/dist/chunks/{timeRange.component-BZHpZeAX.js.map → timeRange.component-DfOq2mGR.js.map} +1 -1
  151. package/dist/chunks/{timestamp.component-BfmZPfy5.js → timestamp.component-CRTYMLmn.js} +2 -2
  152. package/dist/chunks/{timestamp.component-BfmZPfy5.js.map → timestamp.component-CRTYMLmn.js.map} +1 -1
  153. package/dist/chunks/{timestamp.component-DkLjxUsy.js → timestamp.component-CRz-1i68.js} +4 -4
  154. package/dist/chunks/{timestamp.component-DkLjxUsy.js.map → timestamp.component-CRz-1i68.js.map} +1 -1
  155. package/dist/chunks/{withFormControl-DW9A6BSL.js → withFormControl-DVeqCX53.js} +2 -2
  156. package/dist/chunks/{withFormControl-DW9A6BSL.js.map → withFormControl-DVeqCX53.js.map} +1 -1
  157. package/dist/chunks/{withFormControl-QV_Jridv.js → withFormControl-d2CEvsH2.js} +2 -2
  158. package/dist/chunks/{withFormControl-QV_Jridv.js.map → withFormControl-d2CEvsH2.js.map} +1 -1
  159. package/dist/chunks/withTruncation-D0mlwwep.js +2 -0
  160. package/dist/chunks/{withTruncation-B2GhwmHG.js.map → withTruncation-D0mlwwep.js.map} +1 -1
  161. package/dist/chunks/withTruncation-DW62mTHW.js +103 -0
  162. package/dist/chunks/withTruncation-DW62mTHW.js.map +1 -0
  163. package/dist/cjs/components/Alert/index.cjs +1 -1
  164. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  165. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  166. package/dist/cjs/components/Calendar/index.cjs +1 -1
  167. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  168. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  169. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  170. package/dist/cjs/components/ConversationCard/index.cjs +1 -1
  171. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  172. package/dist/cjs/components/DateTimePicker/index.cjs +1 -1
  173. package/dist/cjs/components/Heading/index.cjs +1 -1
  174. package/dist/cjs/components/MaintenanceBanner/index.cjs +1 -1
  175. package/dist/cjs/components/Menu/index.cjs +1 -1
  176. package/dist/cjs/components/Modal/index.cjs +1 -1
  177. package/dist/cjs/components/NotificationCounter/index.cjs +1 -1
  178. package/dist/cjs/components/NumberInput/index.cjs +1 -1
  179. package/dist/cjs/components/PinInput/index.cjs +1 -1
  180. package/dist/cjs/components/Popover/index.cjs +1 -1
  181. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  182. package/dist/cjs/components/Rating/index.cjs +1 -1
  183. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  184. package/dist/cjs/components/Select/index.cjs +1 -1
  185. package/dist/cjs/components/SortableList/index.cjs +1 -1
  186. package/dist/cjs/components/Spinner/index.cjs +1 -1
  187. package/dist/cjs/components/Switch/index.cjs +1 -1
  188. package/dist/cjs/components/Tabs/index.cjs +1 -1
  189. package/dist/cjs/components/TagBlock/index.cjs +1 -1
  190. package/dist/cjs/components/Text/index.cjs +1 -1
  191. package/dist/cjs/components/TextInput/index.cjs +1 -1
  192. package/dist/cjs/components/Textarea/index.cjs +1 -1
  193. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  194. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  195. package/dist/cjs/components/Timestamp/index.cjs +1 -1
  196. package/dist/cjs/components/index.cjs +1 -1
  197. package/dist/cjs/index.cjs +1 -1
  198. package/dist/cjs/theme/index.cjs +1 -1
  199. package/dist/cjs/theme/semanticTokens/index.cjs +1 -1
  200. package/dist/cjs/theme/semanticTokens/index.cjs.map +1 -1
  201. package/dist/esm/components/Alert/index.js +1 -1
  202. package/dist/esm/components/AvatarGroup/index.js +1 -1
  203. package/dist/esm/components/ButtonGroup/index.js +1 -1
  204. package/dist/esm/components/Calendar/index.js +4 -2
  205. package/dist/esm/components/CharacterCounter/index.js +1 -1
  206. package/dist/esm/components/Checkbox/index.js +1 -1
  207. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  208. package/dist/esm/components/ConversationCard/index.js +1 -1
  209. package/dist/esm/components/DatePicker/index.js +2 -2
  210. package/dist/esm/components/DateTimePicker/index.js +1 -1
  211. package/dist/esm/components/Heading/index.js +1 -1
  212. package/dist/esm/components/MaintenanceBanner/index.js +1 -1
  213. package/dist/esm/components/Menu/index.js +1 -1
  214. package/dist/esm/components/Modal/index.js +1 -1
  215. package/dist/esm/components/NotificationCounter/index.js +1 -1
  216. package/dist/esm/components/NumberInput/index.js +1 -1
  217. package/dist/esm/components/PinInput/index.js +1 -1
  218. package/dist/esm/components/Popover/index.js +1 -1
  219. package/dist/esm/components/RadioGroup/index.js +1 -1
  220. package/dist/esm/components/Rating/index.js +1 -1
  221. package/dist/esm/components/RatingDots/index.js +1 -1
  222. package/dist/esm/components/Select/index.js +1 -1
  223. package/dist/esm/components/SortableList/index.js +1 -1
  224. package/dist/esm/components/Spinner/index.js +1 -1
  225. package/dist/esm/components/Switch/index.js +1 -1
  226. package/dist/esm/components/Tabs/index.js +1 -1
  227. package/dist/esm/components/TagBlock/index.js +1 -1
  228. package/dist/esm/components/Text/index.js +1 -1
  229. package/dist/esm/components/TextInput/index.js +1 -1
  230. package/dist/esm/components/Textarea/index.js +1 -1
  231. package/dist/esm/components/TimePicker/index.js +1 -1
  232. package/dist/esm/components/TimeRange/index.js +1 -1
  233. package/dist/esm/components/Timestamp/index.js +1 -1
  234. package/dist/esm/components/index.js +127 -125
  235. package/dist/esm/index.js +155 -153
  236. package/dist/esm/theme/index.js +1 -1
  237. package/dist/esm/theme/semanticTokens/index.js +39 -15
  238. package/dist/esm/theme/semanticTokens/index.js.map +1 -1
  239. package/dist/types/components/Calendar/calendar.component.d.ts +19 -1
  240. package/dist/types/components/Calendar/calendar.utils.d.ts +3 -0
  241. package/dist/types/components/Calendar/calendarFooterButton.component.d.ts +41 -0
  242. package/dist/types/components/Calendar/index.d.ts +2 -0
  243. package/dist/types/components/Heading/heading.recipe.d.ts +1 -1
  244. package/dist/types/components/Link/link.recipe.d.ts +1 -1
  245. package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
  246. package/dist/types/components/Text/text.recipe.d.ts +1 -1
  247. package/dist/types/shared/types/theme.d.ts +1 -1
  248. package/dist/types/theme/semanticTokens/semanticTokens.config.d.ts +37 -37
  249. package/dist/types/theme/tokens/colors/colors.config.d.ts +1 -1
  250. package/package.json +1 -1
  251. package/dist/chunks/calendar.component-BFSyxaB6.js +0 -2
  252. package/dist/chunks/calendar.component-BFSyxaB6.js.map +0 -1
  253. package/dist/chunks/calendar.component-CegJR9ey.js +0 -18
  254. package/dist/chunks/calendar.component-CegJR9ey.js.map +0 -1
  255. package/dist/chunks/dateTimePicker.component-BlWhC5aT.js +0 -2
  256. package/dist/chunks/dateTimePicker.component-BlWhC5aT.js.map +0 -1
  257. package/dist/chunks/dateTimePicker.component-CLAI_Q6e.js +0 -317
  258. package/dist/chunks/dateTimePicker.component-CLAI_Q6e.js.map +0 -1
  259. package/dist/chunks/isToday-iCYsPDMT.js +0 -23
  260. package/dist/chunks/withTruncation-B2GhwmHG.js +0 -92
  261. package/dist/chunks/withTruncation-pzYbtqYw.js +0 -2
  262. package/dist/chunks/withTruncation-pzYbtqYw.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";const n=require("./jsx-runtime-BjDatQAs.js"),J=require("./text.component-BDDz5KQP.js"),K=require("../cjs/theme/tokens/typography/index.cjs"),Q=require("./icon.component-B1hr5lLa.js"),U=require("./index-BQRnVsAg.js"),T=require("./flex-BOU6tYUd.js"),o=require("react"),w=require("./factory-a2SJjEvR.js"),V=require("./create-slot-recipe-context-HXE1VazG.js"),X=require("./create-recipe-context-CDw-39SC.js"),y=require("./use-field-context-Cm29IQ7H.js"),g=require("./use-locale-context-ym21RUxU.js"),u=require("./index-CQURjLlA.js"),R=require("./field.anatomy-Bhj7Mlr7.js");function Y(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ee=Y(o),H=o.forwardRef((e,t)=>{const r=y.useFieldContext(),s=u.mergeProps(r.getErrorTextProps(),e);return r?.invalid?n.jsxRuntimeExports.jsx(g.ark.span,{...s,ref:t}):null});H.displayName="FieldErrorText";const L=o.forwardRef((e,t)=>{const r=y.useFieldContext(),s=u.mergeProps(r?.getHelperTextProps(),e);return n.jsxRuntimeExports.jsx(g.ark.span,{...s,ref:t})});L.displayName="FieldHelperText";const O=o.forwardRef((e,t)=>{const r=y.useFieldContext(),s=u.mergeProps(r?.getLabelProps(),e);return n.jsxRuntimeExports.jsx(g.ark.label,{...s,ref:t})});O.displayName="FieldLabel";const te=typeof window<"u"?o.useLayoutEffect:o.useEffect,[Re,re]=g.createContext({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1}),oe=(e={})=>{const t=re(),r=g.useEnvironmentContext(),{ids:s,disabled:a=!!t?.disabled,invalid:i=!1,readOnly:c=!1,required:x=!1}=e,[m,N]=o.useState(!1),[F,P]=o.useState(!1),_=o.useId(),d=e.id??_,b=o.useRef(null),j=s?.control??`field::${d}`,f=s?.errorText??`field::${d}::error-text`,p=s?.helperText??`field::${d}::helper-text`,E=s?.label??`field::${d}::label`;te(()=>{const C=b.current;if(!C)return;const $=()=>{const k=r.getRootNode();N(!!k.getElementById(f)),P(!!k.getElementById(p))};$();const G=r.getWindow(),M=new G.MutationObserver($);return M.observe(C,{childList:!0,subtree:!0}),()=>M.disconnect()},[r,f,p]);const v=o.useMemo(()=>{const C=[];return m&&i&&C.push(f),F&&C.push(p),C.join(" ")||void 0},[i,f,p,m,F]),l=o.useMemo(()=>()=>({...R.parts.root.attrs,id:j,ref:b,role:"group","data-disabled":u.dataAttr(a),"data-invalid":u.dataAttr(i),"data-readonly":u.dataAttr(c)}),[a,i,c,j]),q=o.useMemo(()=>()=>({...R.parts.label.attrs,id:E,"data-disabled":u.dataAttr(a),"data-invalid":u.dataAttr(i),"data-readonly":u.dataAttr(c),htmlFor:d}),[a,i,c,d,E]),h=o.useMemo(()=>()=>({"aria-describedby":v,"aria-invalid":u.ariaAttr(i),"data-invalid":u.dataAttr(i),"data-required":u.dataAttr(x),"data-readonly":u.dataAttr(c),id:d,required:x,disabled:a,readOnly:c}),[v,i,x,c,d,a]),A=o.useMemo(()=>()=>({...h(),...R.parts.input.attrs}),[h]),B=o.useMemo(()=>()=>({...h(),...R.parts.textarea.attrs}),[h]),D=o.useMemo(()=>()=>({...h(),...R.parts.select.attrs}),[h]),z=o.useMemo(()=>()=>({id:p,...R.parts.helperText.attrs,"data-disabled":u.dataAttr(a)}),[a,p]),W=o.useMemo(()=>()=>({id:f,...R.parts.errorText.attrs,"aria-live":"polite"}),[f]),Z=o.useMemo(()=>()=>({"aria-hidden":!0,...R.parts.requiredIndicator.attrs}),[]);return{ariaDescribedby:v,ids:{root:j,control:d,label:E,errorText:f,helperText:p},refs:{rootRef:b},disabled:a,invalid:i,readOnly:c,required:x,getLabelProps:q,getRootProps:l,getInputProps:A,getTextareaProps:B,getSelectProps:D,getHelperTextProps:z,getErrorTextProps:W,getRequiredIndicatorProps:Z}},I=o.forwardRef((e,t)=>{const[r,s]=g.createSplitProps()(e,["id","ids","disabled","invalid","readOnly","required"]),a=oe(r),i=u.mergeProps(a.getRootProps(),s);return n.jsxRuntimeExports.jsx(y.FieldProvider,{value:a,children:n.jsxRuntimeExports.jsx(g.ark.div,{...i,ref:g.composeRefs(t,a.refs.rootRef)})})});I.displayName="FieldRoot";const{useRecipeResult:se}=X.createRecipeContext({key:"icon"}),ne=ee.forwardRef(function(t,r){const{styles:s,className:a,props:i}=se({asChild:!t.as,...t});return n.jsxRuntimeExports.jsx(w.chakra.svg,{ref:r,focusable:!1,"aria-hidden":"true",...i,css:[s,t.css],className:w.cx(a,t.className)})});function ae(e){const{viewBox:t="0 0 24 24",d:r,displayName:s,defaultProps:a={}}=e,i=o.Children.toArray(e.path),c=o.forwardRef((x,m)=>n.jsxRuntimeExports.jsx(ne,{ref:m,asChild:!1,viewBox:t,...a,...x,children:i.length?i:n.jsxRuntimeExports.jsx("path",{fill:"currentColor",d:r})}));return c.displayName=s,c}const{withProvider:ie,withContext:S,useStyles:le,useClassNames:ce}=V.createSlotRecipeContext({key:"field"}),de=ie(I,"root",{forwardAsChild:!0}),ue=S(O,"label",{forwardAsChild:!0}),xe=S(L,"helperText",{forwardAsChild:!0}),pe=S(H,"errorText",{forwardAsChild:!0});ae({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"});const me=o.forwardRef(function(t,r){const{fallback:s,children:a="*",...i}=t,c=y.useFieldContext(),x=ce(),m=le();return c?.required?n.jsxRuntimeExports.jsx(w.chakra.span,{ref:r,"aria-hidden":"true",...i,className:w.cx(x.requiredIndicator,t.className),css:[m.requiredIndicator,t.css],children:a}):s}),fe={sm:10,md:12,lg:14},he=e=>{const t=({disabled:r=!1,errorText:s="Field is invalid",formControlStyle:a,fullWidth:i=!0,helperText:c,inlineField:x=!1,invalid:m=!1,invalidIconColor:N="danger",label:F,labelPosition:P="start",labelStyle:_,onContrast:d=!1,readOnly:b=!1,required:j=!1,showOptionalElement:f=!1,size:p="md",useInvalidIcon:E=!1,useInvalidText:v=!0,["data-testid"]:l,...q})=>{const h=n.jsxRuntimeExports.jsxs(ue,{className:"FormControl__Label",color:d?"text.contrast":"text",display:"flex",flexDirection:"row",gap:1,fontSize:K.fontSizes[p],fontWeight:"semibold","data-testid":l?`${l}-form-control-label`:void 0,..._,onClick:A=>{A.stopPropagation()},children:[n.jsxRuntimeExports.jsx(U.Box,{as:"span",children:F}),n.jsxRuntimeExports.jsx(me,{className:"FormControl__RequiredIndicator","data-testid":l?`${l}-form-control-required-indicator`:void 0,color:d?"text.danger.contrast":"text.danger",...!j&&{fallback:f?n.jsxRuntimeExports.jsx(J.WrappedText,{as:"span",variant:d?"subtleOnContrast":"subtle",fontSize:fe[p],display:"contents",ml:1,children:"(Optional)"}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{})}})]});return n.jsxRuntimeExports.jsxs(de,{className:"FormControl group",disabled:r,invalid:m,readOnly:b,required:j,width:i?"100%":"auto","data-testid":l?`${l}-form-control-root`:void 0,...a,children:[n.jsxRuntimeExports.jsxs(T.Flex,{className:"FormControl__Container",flexDirection:x?"row":"column",w:x?"max-content":"100%",gap:2,alignItems:x?"center":"flex-start","data-testid":l?`${l}-form-control-container`:void 0,children:[F&&P==="start"&&h,n.jsxRuntimeExports.jsxs(T.Flex,{className:"FormControl__Content",alignItems:"center",gap:2,w:x?"max-content":"100%",children:[n.jsxRuntimeExports.jsx(e,{disabled:r,invalid:m,onContrast:d,readOnly:b,required:j,size:p,"data-testid":l?`${l}`:void 0,...q}),E&&m&&n.jsxRuntimeExports.jsx(Q.Icon,{className:"FormControl__InvalidIcon","data-testid":l?`${l}-form-control-invalid-icon`:void 0,name:"warningSign",variant:N,size:p})]}),F&&P==="end"&&h]}),v&&m&&n.jsxRuntimeExports.jsx(pe,{className:"FormControl__ErrorText",fontSize:"xs",color:d?"text.danger.contrast":"text.danger","data-testid":l?`${l}-form-control-error-text`:void 0,children:s}),c&&n.jsxRuntimeExports.jsx(xe,{className:"FormControl__HelperText",fontSize:"xs",color:d?"text.subtle.contrast":"text.subtle","data-testid":l?`${l}-form-control-helper-text`:void 0,children:c})]})};return t.displayName=`withFormControl(${e.displayName||e.name}`,t};exports.withFormControl=he;
2
- //# sourceMappingURL=withFormControl-QV_Jridv.js.map
1
+ "use strict";const n=require("./jsx-runtime-BjDatQAs.js"),J=require("./text.component-D5GpbfNx.js"),K=require("../cjs/theme/tokens/typography/index.cjs"),Q=require("./icon.component-B1hr5lLa.js"),U=require("./index-BQRnVsAg.js"),T=require("./flex-BOU6tYUd.js"),o=require("react"),w=require("./factory-a2SJjEvR.js"),V=require("./create-slot-recipe-context-HXE1VazG.js"),X=require("./create-recipe-context-CDw-39SC.js"),y=require("./use-field-context-Cm29IQ7H.js"),g=require("./use-locale-context-ym21RUxU.js"),u=require("./index-CQURjLlA.js"),R=require("./field.anatomy-Bhj7Mlr7.js");function Y(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ee=Y(o),H=o.forwardRef((e,t)=>{const r=y.useFieldContext(),s=u.mergeProps(r.getErrorTextProps(),e);return r?.invalid?n.jsxRuntimeExports.jsx(g.ark.span,{...s,ref:t}):null});H.displayName="FieldErrorText";const L=o.forwardRef((e,t)=>{const r=y.useFieldContext(),s=u.mergeProps(r?.getHelperTextProps(),e);return n.jsxRuntimeExports.jsx(g.ark.span,{...s,ref:t})});L.displayName="FieldHelperText";const O=o.forwardRef((e,t)=>{const r=y.useFieldContext(),s=u.mergeProps(r?.getLabelProps(),e);return n.jsxRuntimeExports.jsx(g.ark.label,{...s,ref:t})});O.displayName="FieldLabel";const te=typeof window<"u"?o.useLayoutEffect:o.useEffect,[Re,re]=g.createContext({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1}),oe=(e={})=>{const t=re(),r=g.useEnvironmentContext(),{ids:s,disabled:a=!!t?.disabled,invalid:i=!1,readOnly:c=!1,required:x=!1}=e,[m,N]=o.useState(!1),[F,P]=o.useState(!1),_=o.useId(),d=e.id??_,b=o.useRef(null),j=s?.control??`field::${d}`,f=s?.errorText??`field::${d}::error-text`,p=s?.helperText??`field::${d}::helper-text`,E=s?.label??`field::${d}::label`;te(()=>{const C=b.current;if(!C)return;const $=()=>{const k=r.getRootNode();N(!!k.getElementById(f)),P(!!k.getElementById(p))};$();const G=r.getWindow(),M=new G.MutationObserver($);return M.observe(C,{childList:!0,subtree:!0}),()=>M.disconnect()},[r,f,p]);const v=o.useMemo(()=>{const C=[];return m&&i&&C.push(f),F&&C.push(p),C.join(" ")||void 0},[i,f,p,m,F]),l=o.useMemo(()=>()=>({...R.parts.root.attrs,id:j,ref:b,role:"group","data-disabled":u.dataAttr(a),"data-invalid":u.dataAttr(i),"data-readonly":u.dataAttr(c)}),[a,i,c,j]),q=o.useMemo(()=>()=>({...R.parts.label.attrs,id:E,"data-disabled":u.dataAttr(a),"data-invalid":u.dataAttr(i),"data-readonly":u.dataAttr(c),htmlFor:d}),[a,i,c,d,E]),h=o.useMemo(()=>()=>({"aria-describedby":v,"aria-invalid":u.ariaAttr(i),"data-invalid":u.dataAttr(i),"data-required":u.dataAttr(x),"data-readonly":u.dataAttr(c),id:d,required:x,disabled:a,readOnly:c}),[v,i,x,c,d,a]),A=o.useMemo(()=>()=>({...h(),...R.parts.input.attrs}),[h]),B=o.useMemo(()=>()=>({...h(),...R.parts.textarea.attrs}),[h]),D=o.useMemo(()=>()=>({...h(),...R.parts.select.attrs}),[h]),z=o.useMemo(()=>()=>({id:p,...R.parts.helperText.attrs,"data-disabled":u.dataAttr(a)}),[a,p]),W=o.useMemo(()=>()=>({id:f,...R.parts.errorText.attrs,"aria-live":"polite"}),[f]),Z=o.useMemo(()=>()=>({"aria-hidden":!0,...R.parts.requiredIndicator.attrs}),[]);return{ariaDescribedby:v,ids:{root:j,control:d,label:E,errorText:f,helperText:p},refs:{rootRef:b},disabled:a,invalid:i,readOnly:c,required:x,getLabelProps:q,getRootProps:l,getInputProps:A,getTextareaProps:B,getSelectProps:D,getHelperTextProps:z,getErrorTextProps:W,getRequiredIndicatorProps:Z}},I=o.forwardRef((e,t)=>{const[r,s]=g.createSplitProps()(e,["id","ids","disabled","invalid","readOnly","required"]),a=oe(r),i=u.mergeProps(a.getRootProps(),s);return n.jsxRuntimeExports.jsx(y.FieldProvider,{value:a,children:n.jsxRuntimeExports.jsx(g.ark.div,{...i,ref:g.composeRefs(t,a.refs.rootRef)})})});I.displayName="FieldRoot";const{useRecipeResult:se}=X.createRecipeContext({key:"icon"}),ne=ee.forwardRef(function(t,r){const{styles:s,className:a,props:i}=se({asChild:!t.as,...t});return n.jsxRuntimeExports.jsx(w.chakra.svg,{ref:r,focusable:!1,"aria-hidden":"true",...i,css:[s,t.css],className:w.cx(a,t.className)})});function ae(e){const{viewBox:t="0 0 24 24",d:r,displayName:s,defaultProps:a={}}=e,i=o.Children.toArray(e.path),c=o.forwardRef((x,m)=>n.jsxRuntimeExports.jsx(ne,{ref:m,asChild:!1,viewBox:t,...a,...x,children:i.length?i:n.jsxRuntimeExports.jsx("path",{fill:"currentColor",d:r})}));return c.displayName=s,c}const{withProvider:ie,withContext:S,useStyles:le,useClassNames:ce}=V.createSlotRecipeContext({key:"field"}),de=ie(I,"root",{forwardAsChild:!0}),ue=S(O,"label",{forwardAsChild:!0}),xe=S(L,"helperText",{forwardAsChild:!0}),pe=S(H,"errorText",{forwardAsChild:!0});ae({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"});const me=o.forwardRef(function(t,r){const{fallback:s,children:a="*",...i}=t,c=y.useFieldContext(),x=ce(),m=le();return c?.required?n.jsxRuntimeExports.jsx(w.chakra.span,{ref:r,"aria-hidden":"true",...i,className:w.cx(x.requiredIndicator,t.className),css:[m.requiredIndicator,t.css],children:a}):s}),fe={sm:10,md:12,lg:14},he=e=>{const t=({disabled:r=!1,errorText:s="Field is invalid",formControlStyle:a,fullWidth:i=!0,helperText:c,inlineField:x=!1,invalid:m=!1,invalidIconColor:N="danger",label:F,labelPosition:P="start",labelStyle:_,onContrast:d=!1,readOnly:b=!1,required:j=!1,showOptionalElement:f=!1,size:p="md",useInvalidIcon:E=!1,useInvalidText:v=!0,["data-testid"]:l,...q})=>{const h=n.jsxRuntimeExports.jsxs(ue,{className:"FormControl__Label",color:d?"text.contrast":"text",display:"flex",flexDirection:"row",gap:1,fontSize:K.fontSizes[p],fontWeight:"semibold","data-testid":l?`${l}-form-control-label`:void 0,..._,onClick:A=>{A.stopPropagation()},children:[n.jsxRuntimeExports.jsx(U.Box,{as:"span",children:F}),n.jsxRuntimeExports.jsx(me,{className:"FormControl__RequiredIndicator","data-testid":l?`${l}-form-control-required-indicator`:void 0,color:d?"text.danger.contrast":"text.danger",...!j&&{fallback:f?n.jsxRuntimeExports.jsx(J.WrappedText,{as:"span",variant:d?"subtleOnContrast":"subtle",fontSize:fe[p],display:"contents",ml:1,children:"(Optional)"}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{})}})]});return n.jsxRuntimeExports.jsxs(de,{className:"FormControl group",disabled:r,invalid:m,readOnly:b,required:j,width:i?"100%":"auto","data-testid":l?`${l}-form-control-root`:void 0,...a,children:[n.jsxRuntimeExports.jsxs(T.Flex,{className:"FormControl__Container",flexDirection:x?"row":"column",w:x?"max-content":"100%",gap:2,alignItems:x?"center":"flex-start","data-testid":l?`${l}-form-control-container`:void 0,children:[F&&P==="start"&&h,n.jsxRuntimeExports.jsxs(T.Flex,{className:"FormControl__Content",alignItems:"center",gap:2,w:x?"max-content":"100%",children:[n.jsxRuntimeExports.jsx(e,{disabled:r,invalid:m,onContrast:d,readOnly:b,required:j,size:p,"data-testid":l?`${l}`:void 0,...q}),E&&m&&n.jsxRuntimeExports.jsx(Q.Icon,{className:"FormControl__InvalidIcon","data-testid":l?`${l}-form-control-invalid-icon`:void 0,name:"warningSign",variant:N,size:p})]}),F&&P==="end"&&h]}),v&&m&&n.jsxRuntimeExports.jsx(pe,{className:"FormControl__ErrorText",fontSize:"xs",color:d?"text.danger.contrast":"text.danger","data-testid":l?`${l}-form-control-error-text`:void 0,children:s}),c&&n.jsxRuntimeExports.jsx(xe,{className:"FormControl__HelperText",fontSize:"xs",color:d?"text.subtle.contrast":"text.subtle","data-testid":l?`${l}-form-control-helper-text`:void 0,children:c})]})};return t.displayName=`withFormControl(${e.displayName||e.name}`,t};exports.withFormControl=he;
2
+ //# sourceMappingURL=withFormControl-d2CEvsH2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"withFormControl-QV_Jridv.js","sources":["../../node_modules/@ark-ui/react/dist/components/field/field-error-text.js","../../node_modules/@ark-ui/react/dist/components/field/field-helper-text.js","../../node_modules/@ark-ui/react/dist/components/field/field-label.js","../../node_modules/@ark-ui/react/dist/utils/use-safe-layout-effect.js","../../node_modules/@ark-ui/react/dist/components/fieldset/use-fieldset-context.js","../../node_modules/@ark-ui/react/dist/components/field/use-field.js","../../node_modules/@ark-ui/react/dist/components/field/field-root.js","../../node_modules/@chakra-ui/react/dist/esm/components/icon/icon.js","../../node_modules/@chakra-ui/react/dist/esm/components/icon/create-icon.js","../../node_modules/@chakra-ui/react/dist/esm/components/field/field.js","../../src/hocs/withFormControl/withFormControl.records.ts","../../src/hocs/withFormControl/withFormControl.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 FieldErrorText = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field.getErrorTextProps(), props);\n if (field?.invalid) {\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n }\n return null;\n});\nFieldErrorText.displayName = \"FieldErrorText\";\n\nexport { FieldErrorText };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldHelperText = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field?.getHelperTextProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nFieldHelperText.displayName = \"FieldHelperText\";\n\nexport { FieldHelperText };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldLabel = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field?.getLabelProps(), props);\n return /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref });\n});\nFieldLabel.displayName = \"FieldLabel\";\n\nexport { FieldLabel };\n","'use client';\nimport { useLayoutEffect, useEffect } from 'react';\n\nconst useSafeLayoutEffect = typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\nexport { useSafeLayoutEffect };\n","'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [FieldsetProvider, useFieldsetContext] = createContext({\n name: \"FieldsetContext\",\n hookName: \"useFieldsetContext\",\n providerName: \"<FieldsetProvider />\",\n strict: false\n});\n\nexport { FieldsetProvider, useFieldsetContext };\n","'use client';\nimport { dataAttr, ariaAttr } from '@zag-js/dom-query';\nimport { useState, useId, useRef, useMemo } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useSafeLayoutEffect } from '../../utils/use-safe-layout-effect.js';\nimport { useFieldsetContext } from '../fieldset/use-fieldset-context.js';\nimport { parts } from './field.anatomy.js';\n\nconst useField = (props = {}) => {\n const fieldset = useFieldsetContext();\n const env = useEnvironmentContext();\n const { ids, disabled = Boolean(fieldset?.disabled), invalid = false, readOnly = false, required = false } = props;\n const [hasErrorText, setHasErrorText] = useState(false);\n const [hasHelperText, setHasHelperText] = useState(false);\n const uid = useId();\n const id = props.id ?? uid;\n const rootRef = useRef(null);\n const rootId = ids?.control ?? `field::${id}`;\n const errorTextId = ids?.errorText ?? `field::${id}::error-text`;\n const helperTextId = ids?.helperText ?? `field::${id}::helper-text`;\n const labelId = ids?.label ?? `field::${id}::label`;\n useSafeLayoutEffect(() => {\n const rootNode = rootRef.current;\n if (!rootNode) return;\n const checkTextElements = () => {\n const docOrShadowRoot = env.getRootNode();\n setHasErrorText(!!docOrShadowRoot.getElementById(errorTextId));\n setHasHelperText(!!docOrShadowRoot.getElementById(helperTextId));\n };\n checkTextElements();\n const win = env.getWindow();\n const observer = new win.MutationObserver(checkTextElements);\n observer.observe(rootNode, { childList: true, subtree: true });\n return () => observer.disconnect();\n }, [env, errorTextId, helperTextId]);\n const labelIds = useMemo(() => {\n const ids2 = [];\n if (hasErrorText && invalid) ids2.push(errorTextId);\n if (hasHelperText) ids2.push(helperTextId);\n return ids2.join(\" \") || void 0;\n }, [invalid, errorTextId, helperTextId, hasErrorText, hasHelperText]);\n const getRootProps = useMemo(\n () => () => ({\n ...parts.root.attrs,\n id: rootId,\n ref: rootRef,\n role: \"group\",\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid),\n \"data-readonly\": dataAttr(readOnly)\n }),\n [disabled, invalid, readOnly, rootId]\n );\n const getLabelProps = useMemo(\n () => () => ({\n ...parts.label.attrs,\n id: labelId,\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid),\n \"data-readonly\": dataAttr(readOnly),\n htmlFor: id\n }),\n [disabled, invalid, readOnly, id, labelId]\n );\n const getControlProps = useMemo(\n () => () => ({\n \"aria-describedby\": labelIds,\n \"aria-invalid\": ariaAttr(invalid),\n \"data-invalid\": dataAttr(invalid),\n \"data-required\": dataAttr(required),\n \"data-readonly\": dataAttr(readOnly),\n id,\n required,\n disabled,\n readOnly\n }),\n [labelIds, invalid, required, readOnly, id, disabled]\n );\n const getInputProps = useMemo(\n () => () => ({\n ...getControlProps(),\n ...parts.input.attrs\n }),\n [getControlProps]\n );\n const getTextareaProps = useMemo(\n () => () => ({\n ...getControlProps(),\n ...parts.textarea.attrs\n }),\n [getControlProps]\n );\n const getSelectProps = useMemo(\n () => () => ({\n ...getControlProps(),\n ...parts.select.attrs\n }),\n [getControlProps]\n );\n const getHelperTextProps = useMemo(\n () => () => ({\n id: helperTextId,\n ...parts.helperText.attrs,\n \"data-disabled\": dataAttr(disabled)\n }),\n [disabled, helperTextId]\n );\n const getErrorTextProps = useMemo(\n () => () => ({\n id: errorTextId,\n ...parts.errorText.attrs,\n \"aria-live\": \"polite\"\n }),\n [errorTextId]\n );\n const getRequiredIndicatorProps = useMemo(\n () => () => ({\n \"aria-hidden\": true,\n ...parts.requiredIndicator.attrs\n }),\n []\n );\n return {\n ariaDescribedby: labelIds,\n ids: {\n root: rootId,\n control: id,\n label: labelId,\n errorText: errorTextId,\n helperText: helperTextId\n },\n refs: {\n rootRef\n },\n disabled,\n invalid,\n readOnly,\n required,\n getLabelProps,\n getRootProps,\n getInputProps,\n getTextareaProps,\n getSelectProps,\n getHelperTextProps,\n getErrorTextProps,\n getRequiredIndicatorProps\n };\n};\n\nexport { useField };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useField } from './use-field.js';\nimport { FieldProvider } from './use-field-context.js';\n\nconst FieldRoot = forwardRef((props, ref) => {\n const [useFieldProps, localProps] = createSplitProps()(props, [\n \"id\",\n \"ids\",\n \"disabled\",\n \"invalid\",\n \"readOnly\",\n \"required\"\n ]);\n const field = useField(useFieldProps);\n const mergedProps = mergeProps(field.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(FieldProvider, { value: field, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(ref, field.refs.rootRef) }) });\n});\nFieldRoot.displayName = \"FieldRoot\";\n\nexport { FieldRoot };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { cx } from '../../utils/cx.js';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\n\nconst { useRecipeResult, PropsProvider } = createRecipeContext({ key: \"icon\" });\nconst Icon = React.forwardRef(\n function Icon2(props, ref) {\n const {\n styles,\n className,\n props: otherProps\n } = useRecipeResult({ asChild: !props.as, ...props });\n return /* @__PURE__ */ jsx(\n chakra.svg,\n {\n ref,\n focusable: false,\n \"aria-hidden\": \"true\",\n ...otherProps,\n css: [styles, props.css],\n className: cx(className, props.className)\n }\n );\n }\n);\nconst IconPropsProvider = PropsProvider;\n\nexport { Icon, IconPropsProvider };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Children, forwardRef } from 'react';\nimport { Icon } from './icon.js';\n\nfunction createIcon(options) {\n const {\n viewBox = \"0 0 24 24\",\n d: pathDefinition,\n displayName,\n defaultProps = {}\n } = options;\n const path = Children.toArray(options.path);\n const Comp = forwardRef((props, ref) => /* @__PURE__ */ jsx(\n Icon,\n {\n ref,\n asChild: false,\n viewBox,\n ...defaultProps,\n ...props,\n children: path.length ? path : /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: pathDefinition })\n }\n ));\n Comp.displayName = displayName;\n return Comp;\n}\n\nexport { createIcon };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Field, useFieldContext } from '@ark-ui/react/field';\nimport { forwardRef } from 'react';\nimport { cx } from '../../utils/cx.js';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { createIcon } from '../icon/create-icon.js';\n\nconst {\n withProvider,\n withContext,\n useStyles: useFieldStyles,\n useClassNames,\n PropsProvider\n} = createSlotRecipeContext({ key: \"field\" });\nconst FieldRoot = withProvider(\n Field.Root,\n \"root\",\n { forwardAsChild: true }\n);\nconst FieldPropsProvider = PropsProvider;\nconst FieldLabel = withContext(\n Field.Label,\n \"label\",\n { forwardAsChild: true }\n);\nconst FieldHelperText = withContext(Field.HelperText, \"helperText\", { forwardAsChild: true });\nconst FieldErrorText = withContext(\n Field.ErrorText,\n \"errorText\",\n { forwardAsChild: true }\n);\nconst FieldErrorIcon = createIcon({\n d: \"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z\"\n});\nconst FieldRequiredIndicator = forwardRef(function RequiredIndicator(props, ref) {\n const { fallback, children = \"*\", ...restProps } = props;\n const field = useFieldContext();\n const classNames = useClassNames();\n const styles = useFieldStyles();\n if (!field?.required) {\n return fallback;\n }\n return /* @__PURE__ */ jsx(\n chakra.span,\n {\n ref,\n \"aria-hidden\": \"true\",\n ...restProps,\n className: cx(classNames.requiredIndicator, props.className),\n css: [styles.requiredIndicator, props.css],\n children\n }\n );\n});\n\nexport { FieldErrorIcon, FieldErrorText, FieldHelperText, FieldLabel, FieldPropsProvider, FieldRequiredIndicator, FieldRoot, useFieldStyles };\n","import { FormControlSize } from './withFormControl.types';\n\nexport const optionalTextSizeMap: Record<FormControlSize, number> = {\n sm: 10,\n md: 12,\n lg: 14,\n};\n","import React from 'react';\nimport { Field } from '@chakra-ui/react/field';\nimport { FormControlLabelPosition, FormControlSize } from './withFormControl.types';\nimport { SystemStyleObject } from '@chakra-ui/react/styled-system';\nimport { TypographyVariant } from 'shared/types/typography';\nimport { Text } from 'components/Text/text.component';\nimport { optionalTextSizeMap } from './withFormControl.records';\nimport { fontSizes } from '@televet/kibble-primitives/core/typography';\nimport { Flex } from '@chakra-ui/react/flex';\nimport { Icon } from 'components/Icon/icon.component';\nimport { Box } from '@chakra-ui/react/box';\n\nexport interface WithFormControlProps {\n /** If true, the form control will be disabled.\n * @default false\n */\n disabled?: boolean;\n /** The error text to be displayed when the form control is invalid.\n * @default Field is invalid\n */\n errorText?: string;\n /** Props to customize the form control. */\n formControlStyle?: SystemStyleObject;\n /** If true, the form control will take the full width of its container.\n * @default true\n */\n fullWidth?: boolean;\n /** The helper text to be displayed below the form control. */\n helperText?: string;\n /** If true, the form control will be displayed inline with the label. */\n inlineField?: boolean;\n /** If true, the form control will be invalid.\n * @default false\n */\n invalid?: boolean;\n /** The variant of the invalid icon.\n * @default danger\n */\n invalidIconColor?: TypographyVariant;\n /** The label to be displayed above the form control. */\n label?: string | React.ReactNode;\n /** The position of the label relative to the form control.\n * @default start\n */\n labelPosition?: FormControlLabelPosition;\n /** Props to customize the label. */\n labelStyle?: SystemStyleObject;\n /** If true, the form control will be styled for contrast mode.\n * @default false\n */\n onContrast?: boolean;\n /** If true, the form element will be read only.\n * @default false\n */\n readOnly?: boolean;\n /** If true, the form control will be required.\n * @default false\n */\n required?: boolean;\n /** If true, the form control will show an optional text.\n * @default false\n */\n showOptionalElement?: boolean;\n /** The size of the form control.\n * @default md\n */\n size?: FormControlSize;\n /** If true, the form control will show an invalid icon.\n * @default false\n */\n useInvalidIcon?: boolean;\n /** If true, the form control will show an invalid text.\n * @default true\n */\n useInvalidText?: boolean;\n /** Data test id for the form control.\n */\n 'data-testid'?: string;\n}\n\nexport const withFormControl = <P extends WithFormControlProps>(Component: React.ComponentType<P>): React.FC<P> => {\n const WithFormControl = ({\n disabled = false,\n errorText = 'Field is invalid',\n formControlStyle,\n fullWidth = true,\n helperText,\n inlineField = false,\n invalid = false,\n invalidIconColor = 'danger',\n label,\n labelPosition = 'start',\n labelStyle,\n onContrast = false,\n readOnly = false,\n required = false,\n showOptionalElement = false,\n size = 'md',\n useInvalidIcon = false,\n useInvalidText = true,\n ['data-testid']: dataTestId,\n ...props\n }: WithFormControlProps): React.JSX.Element => {\n const labelComponent = (\n <Field.Label\n className=\"FormControl__Label\"\n color={onContrast ? 'text.contrast' : 'text'}\n display=\"flex\"\n flexDirection=\"row\"\n gap={1}\n fontSize={fontSizes[size]}\n fontWeight=\"semibold\"\n data-testid={dataTestId ? `${dataTestId}-form-control-label` : undefined}\n {...labelStyle}\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n <Box as=\"span\">{label}</Box>\n <Field.RequiredIndicator\n className=\"FormControl__RequiredIndicator\"\n data-testid={dataTestId ? `${dataTestId}-form-control-required-indicator` : undefined}\n color={onContrast ? 'text.danger.contrast' : 'text.danger'}\n {...(!required && {\n fallback: showOptionalElement ? (\n <Text\n as=\"span\"\n variant={onContrast ? 'subtleOnContrast' : 'subtle'}\n fontSize={optionalTextSizeMap[size]}\n display=\"contents\"\n ml={1}\n >\n (Optional)\n </Text>\n ) : (\n <></>\n ),\n })}\n />\n </Field.Label>\n );\n\n return (\n <Field.Root\n className=\"FormControl group\"\n disabled={disabled}\n invalid={invalid}\n readOnly={readOnly}\n required={required}\n width={fullWidth ? '100%' : 'auto'}\n data-testid={dataTestId ? `${dataTestId}-form-control-root` : undefined}\n {...formControlStyle}\n >\n <Flex\n className=\"FormControl__Container\"\n flexDirection={inlineField ? 'row' : 'column'}\n w={inlineField ? 'max-content' : '100%'}\n gap={2}\n alignItems={inlineField ? 'center' : 'flex-start'}\n data-testid={dataTestId ? `${dataTestId}-form-control-container` : undefined}\n >\n {label && labelPosition === 'start' && labelComponent}\n <Flex className=\"FormControl__Content\" alignItems=\"center\" gap={2} w={inlineField ? 'max-content' : '100%'}>\n <Component\n disabled={disabled}\n invalid={invalid}\n onContrast={onContrast}\n readOnly={readOnly}\n required={required}\n size={size}\n data-testid={dataTestId ? `${dataTestId}` : undefined}\n {...(props as P)}\n />\n {useInvalidIcon && invalid && (\n <Icon\n className=\"FormControl__InvalidIcon\"\n data-testid={dataTestId ? `${dataTestId}-form-control-invalid-icon` : undefined}\n name=\"warningSign\"\n variant={invalidIconColor}\n size={size}\n />\n )}\n </Flex>\n {label && labelPosition === 'end' && labelComponent}\n </Flex>\n {useInvalidText && invalid && (\n <Field.ErrorText\n className=\"FormControl__ErrorText\"\n fontSize=\"xs\"\n color={onContrast ? 'text.danger.contrast' : 'text.danger'}\n data-testid={dataTestId ? `${dataTestId}-form-control-error-text` : undefined}\n >\n {errorText}\n </Field.ErrorText>\n )}\n {helperText && (\n <Field.HelperText\n className=\"FormControl__HelperText\"\n fontSize=\"xs\"\n color={onContrast ? 'text.subtle.contrast' : 'text.subtle'}\n data-testid={dataTestId ? `${dataTestId}-form-control-helper-text` : undefined}\n >\n {helperText}\n </Field.HelperText>\n )}\n </Field.Root>\n );\n };\n\n WithFormControl.displayName = `withFormControl(${Component.displayName || Component.name}`;\n return WithFormControl;\n};\n"],"names":["FieldErrorText","forwardRef","props","ref","field","useFieldContext","mergedProps","mergeProps","jsx","ark","FieldHelperText","FieldLabel","useSafeLayoutEffect","useLayoutEffect","useEffect","FieldsetProvider","useFieldsetContext","createContext","useField","fieldset","env","useEnvironmentContext","ids","disabled","invalid","readOnly","required","hasErrorText","setHasErrorText","useState","hasHelperText","setHasHelperText","uid","useId","id","rootRef","useRef","rootId","errorTextId","helperTextId","labelId","rootNode","checkTextElements","docOrShadowRoot","win","observer","labelIds","useMemo","ids2","getRootProps","parts","dataAttr","getLabelProps","getControlProps","ariaAttr","getInputProps","getTextareaProps","getSelectProps","getHelperTextProps","getErrorTextProps","getRequiredIndicatorProps","FieldRoot","useFieldProps","localProps","createSplitProps","FieldProvider","composeRefs","useRecipeResult","createRecipeContext","Icon","React","styles","className","otherProps","chakra","cx","createIcon","options","viewBox","pathDefinition","displayName","defaultProps","path","Children","Comp","withProvider","withContext","useFieldStyles","useClassNames","createSlotRecipeContext","Field.Root","Field.Label","Field.HelperText","Field.ErrorText","FieldRequiredIndicator","fallback","children","restProps","classNames","optionalTextSizeMap","withFormControl","Component","WithFormControl","errorText","formControlStyle","fullWidth","helperText","inlineField","invalidIconColor","label","labelPosition","labelStyle","onContrast","showOptionalElement","size","useInvalidIcon","useInvalidText","dataTestId","labelComponent","jsxs","fontSizes","e","Box","Field.RequiredIndicator","Text","Fragment","Flex"],"mappings":"83BAOMA,EAAiBC,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAChD,MAAMC,EAAQC,EAAAA,gBAAiB,EACzBC,EAAcC,EAAU,WAACH,EAAM,kBAAiB,EAAIF,CAAK,EAC/D,OAAIE,GAAO,QACcI,EAAAA,kBAAAA,IAAIC,EAAAA,IAAI,KAAM,CAAE,GAAGH,EAAa,IAAAH,EAAK,EAEvD,IACT,CAAC,EACDH,EAAe,YAAc,iBCR7B,MAAMU,EAAkBT,EAAU,WAAC,CAACC,EAAOC,IAAQ,CACjD,MAAMC,EAAQC,EAAAA,gBAAiB,EACzBC,EAAcC,EAAU,WAACH,GAAO,mBAAkB,EAAIF,CAAK,EACjE,OAAuBM,EAAAA,kBAAAA,IAAIC,EAAAA,IAAI,KAAM,CAAE,GAAGH,EAAa,IAAAH,EAAK,CAC9D,CAAC,EACDO,EAAgB,YAAc,kBCL9B,MAAMC,EAAaV,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAC5C,MAAMC,EAAQC,EAAAA,gBAAiB,EACzBC,EAAcC,EAAU,WAACH,GAAO,cAAa,EAAIF,CAAK,EAC5D,OAAuBM,EAAAA,kBAAAA,IAAIC,EAAAA,IAAI,MAAO,CAAE,GAAGH,EAAa,IAAAH,EAAK,C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S,IAAK,EAAG,EAAGnB,EAAc,cAAgB,OAClG,SAAA,CAAAnG,EAAA,kBAAA,IAAC6F,EAAA,CACC,SAAA9E,EACA,QAAAC,EACA,WAAAwF,EACA,SAAAvF,EACA,SAAAC,EACA,KAAAwF,EACA,cAAaG,EAAa,GAAGA,CAAU,GAAK,OAC3C,GAAInH,CAAA,CACP,EACCiH,GAAkB3F,GACjBhB,EAAA,kBAAA,IAAC6D,EAAA,KAAA,CACC,UAAU,2BACV,cAAagD,EAAa,GAAGA,CAAU,6BAA+B,OACtE,KAAK,cACL,QAAST,EACT,KAAAM,CAAA,CAAA,CACF,EAEJ,EACCL,GAASC,IAAkB,OAASQ,CAAA,CAAA,CACvC,EACCF,GAAkB5F,GACjBhB,EAAA,kBAAA,IAACqF,GAAA,CACC,UAAU,yBACV,SAAS,KACT,MAAOmB,EAAa,uBAAyB,cAC7C,cAAaK,EAAa,GAAGA,CAAU,2BAA6B,OAEnE,SAAAd,CAAA,CACH,EAEDG,GACClG,EAAA,kBAAA,IAACoF,GAAA,CACC,UAAU,0BACV,SAAS,KACT,MAAOoB,EAAa,uBAAyB,cAC7C,cAAaK,EAAa,GAAGA,CAAU,4BAA8B,OAEpE,SAAAX,CAAA,CAAA,CACH,CAAA,CAEJ,CAEJ,EAEA,OAAAJ,EAAgB,YAAc,mBAAmBD,EAAU,aAAeA,EAAU,IAAI,GACjFC,CACT","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9]}
1
+ {"version":3,"file":"withFormControl-d2CEvsH2.js","sources":["../../node_modules/@ark-ui/react/dist/components/field/field-error-text.js","../../node_modules/@ark-ui/react/dist/components/field/field-helper-text.js","../../node_modules/@ark-ui/react/dist/components/field/field-label.js","../../node_modules/@ark-ui/react/dist/utils/use-safe-layout-effect.js","../../node_modules/@ark-ui/react/dist/components/fieldset/use-fieldset-context.js","../../node_modules/@ark-ui/react/dist/components/field/use-field.js","../../node_modules/@ark-ui/react/dist/components/field/field-root.js","../../node_modules/@chakra-ui/react/dist/esm/components/icon/icon.js","../../node_modules/@chakra-ui/react/dist/esm/components/icon/create-icon.js","../../node_modules/@chakra-ui/react/dist/esm/components/field/field.js","../../src/hocs/withFormControl/withFormControl.records.ts","../../src/hocs/withFormControl/withFormControl.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 FieldErrorText = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field.getErrorTextProps(), props);\n if (field?.invalid) {\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n }\n return null;\n});\nFieldErrorText.displayName = \"FieldErrorText\";\n\nexport { FieldErrorText };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldHelperText = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field?.getHelperTextProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nFieldHelperText.displayName = \"FieldHelperText\";\n\nexport { FieldHelperText };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldLabel = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field?.getLabelProps(), props);\n return /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref });\n});\nFieldLabel.displayName = \"FieldLabel\";\n\nexport { FieldLabel };\n","'use client';\nimport { useLayoutEffect, useEffect } from 'react';\n\nconst useSafeLayoutEffect = typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\nexport { useSafeLayoutEffect };\n","'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [FieldsetProvider, useFieldsetContext] = createContext({\n name: \"FieldsetContext\",\n hookName: \"useFieldsetContext\",\n providerName: \"<FieldsetProvider />\",\n strict: false\n});\n\nexport { FieldsetProvider, useFieldsetContext };\n","'use client';\nimport { dataAttr, ariaAttr } from '@zag-js/dom-query';\nimport { useState, useId, useRef, useMemo } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useSafeLayoutEffect } from '../../utils/use-safe-layout-effect.js';\nimport { useFieldsetContext } from '../fieldset/use-fieldset-context.js';\nimport { parts } from './field.anatomy.js';\n\nconst useField = (props = {}) => {\n const fieldset = useFieldsetContext();\n const env = useEnvironmentContext();\n const { ids, disabled = Boolean(fieldset?.disabled), invalid = false, readOnly = false, required = false } = props;\n const [hasErrorText, setHasErrorText] = useState(false);\n const [hasHelperText, setHasHelperText] = useState(false);\n const uid = useId();\n const id = props.id ?? uid;\n const rootRef = useRef(null);\n const rootId = ids?.control ?? `field::${id}`;\n const errorTextId = ids?.errorText ?? `field::${id}::error-text`;\n const helperTextId = ids?.helperText ?? `field::${id}::helper-text`;\n const labelId = ids?.label ?? `field::${id}::label`;\n useSafeLayoutEffect(() => {\n const rootNode = rootRef.current;\n if (!rootNode) return;\n const checkTextElements = () => {\n const docOrShadowRoot = env.getRootNode();\n setHasErrorText(!!docOrShadowRoot.getElementById(errorTextId));\n setHasHelperText(!!docOrShadowRoot.getElementById(helperTextId));\n };\n checkTextElements();\n const win = env.getWindow();\n const observer = new win.MutationObserver(checkTextElements);\n observer.observe(rootNode, { childList: true, subtree: true });\n return () => observer.disconnect();\n }, [env, errorTextId, helperTextId]);\n const labelIds = useMemo(() => {\n const ids2 = [];\n if (hasErrorText && invalid) ids2.push(errorTextId);\n if (hasHelperText) ids2.push(helperTextId);\n return ids2.join(\" \") || void 0;\n }, [invalid, errorTextId, helperTextId, hasErrorText, hasHelperText]);\n const getRootProps = useMemo(\n () => () => ({\n ...parts.root.attrs,\n id: rootId,\n ref: rootRef,\n role: \"group\",\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid),\n \"data-readonly\": dataAttr(readOnly)\n }),\n [disabled, invalid, readOnly, rootId]\n );\n const getLabelProps = useMemo(\n () => () => ({\n ...parts.label.attrs,\n id: labelId,\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid),\n \"data-readonly\": dataAttr(readOnly),\n htmlFor: id\n }),\n [disabled, invalid, readOnly, id, labelId]\n );\n const getControlProps = useMemo(\n () => () => ({\n \"aria-describedby\": labelIds,\n \"aria-invalid\": ariaAttr(invalid),\n \"data-invalid\": dataAttr(invalid),\n \"data-required\": dataAttr(required),\n \"data-readonly\": dataAttr(readOnly),\n id,\n required,\n disabled,\n readOnly\n }),\n [labelIds, invalid, required, readOnly, id, disabled]\n );\n const getInputProps = useMemo(\n () => () => ({\n ...getControlProps(),\n ...parts.input.attrs\n }),\n [getControlProps]\n );\n const getTextareaProps = useMemo(\n () => () => ({\n ...getControlProps(),\n ...parts.textarea.attrs\n }),\n [getControlProps]\n );\n const getSelectProps = useMemo(\n () => () => ({\n ...getControlProps(),\n ...parts.select.attrs\n }),\n [getControlProps]\n );\n const getHelperTextProps = useMemo(\n () => () => ({\n id: helperTextId,\n ...parts.helperText.attrs,\n \"data-disabled\": dataAttr(disabled)\n }),\n [disabled, helperTextId]\n );\n const getErrorTextProps = useMemo(\n () => () => ({\n id: errorTextId,\n ...parts.errorText.attrs,\n \"aria-live\": \"polite\"\n }),\n [errorTextId]\n );\n const getRequiredIndicatorProps = useMemo(\n () => () => ({\n \"aria-hidden\": true,\n ...parts.requiredIndicator.attrs\n }),\n []\n );\n return {\n ariaDescribedby: labelIds,\n ids: {\n root: rootId,\n control: id,\n label: labelId,\n errorText: errorTextId,\n helperText: helperTextId\n },\n refs: {\n rootRef\n },\n disabled,\n invalid,\n readOnly,\n required,\n getLabelProps,\n getRootProps,\n getInputProps,\n getTextareaProps,\n getSelectProps,\n getHelperTextProps,\n getErrorTextProps,\n getRequiredIndicatorProps\n };\n};\n\nexport { useField };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useField } from './use-field.js';\nimport { FieldProvider } from './use-field-context.js';\n\nconst FieldRoot = forwardRef((props, ref) => {\n const [useFieldProps, localProps] = createSplitProps()(props, [\n \"id\",\n \"ids\",\n \"disabled\",\n \"invalid\",\n \"readOnly\",\n \"required\"\n ]);\n const field = useField(useFieldProps);\n const mergedProps = mergeProps(field.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(FieldProvider, { value: field, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(ref, field.refs.rootRef) }) });\n});\nFieldRoot.displayName = \"FieldRoot\";\n\nexport { FieldRoot };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { cx } from '../../utils/cx.js';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\n\nconst { useRecipeResult, PropsProvider } = createRecipeContext({ key: \"icon\" });\nconst Icon = React.forwardRef(\n function Icon2(props, ref) {\n const {\n styles,\n className,\n props: otherProps\n } = useRecipeResult({ asChild: !props.as, ...props });\n return /* @__PURE__ */ jsx(\n chakra.svg,\n {\n ref,\n focusable: false,\n \"aria-hidden\": \"true\",\n ...otherProps,\n css: [styles, props.css],\n className: cx(className, props.className)\n }\n );\n }\n);\nconst IconPropsProvider = PropsProvider;\n\nexport { Icon, IconPropsProvider };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Children, forwardRef } from 'react';\nimport { Icon } from './icon.js';\n\nfunction createIcon(options) {\n const {\n viewBox = \"0 0 24 24\",\n d: pathDefinition,\n displayName,\n defaultProps = {}\n } = options;\n const path = Children.toArray(options.path);\n const Comp = forwardRef((props, ref) => /* @__PURE__ */ jsx(\n Icon,\n {\n ref,\n asChild: false,\n viewBox,\n ...defaultProps,\n ...props,\n children: path.length ? path : /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: pathDefinition })\n }\n ));\n Comp.displayName = displayName;\n return Comp;\n}\n\nexport { createIcon };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Field, useFieldContext } from '@ark-ui/react/field';\nimport { forwardRef } from 'react';\nimport { cx } from '../../utils/cx.js';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { createIcon } from '../icon/create-icon.js';\n\nconst {\n withProvider,\n withContext,\n useStyles: useFieldStyles,\n useClassNames,\n PropsProvider\n} = createSlotRecipeContext({ key: \"field\" });\nconst FieldRoot = withProvider(\n Field.Root,\n \"root\",\n { forwardAsChild: true }\n);\nconst FieldPropsProvider = PropsProvider;\nconst FieldLabel = withContext(\n Field.Label,\n \"label\",\n { forwardAsChild: true }\n);\nconst FieldHelperText = withContext(Field.HelperText, \"helperText\", { forwardAsChild: true });\nconst FieldErrorText = withContext(\n Field.ErrorText,\n \"errorText\",\n { forwardAsChild: true }\n);\nconst FieldErrorIcon = createIcon({\n d: \"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z\"\n});\nconst FieldRequiredIndicator = forwardRef(function RequiredIndicator(props, ref) {\n const { fallback, children = \"*\", ...restProps } = props;\n const field = useFieldContext();\n const classNames = useClassNames();\n const styles = useFieldStyles();\n if (!field?.required) {\n return fallback;\n }\n return /* @__PURE__ */ jsx(\n chakra.span,\n {\n ref,\n \"aria-hidden\": \"true\",\n ...restProps,\n className: cx(classNames.requiredIndicator, props.className),\n css: [styles.requiredIndicator, props.css],\n children\n }\n );\n});\n\nexport { FieldErrorIcon, FieldErrorText, FieldHelperText, FieldLabel, FieldPropsProvider, FieldRequiredIndicator, FieldRoot, useFieldStyles };\n","import { FormControlSize } from './withFormControl.types';\n\nexport const optionalTextSizeMap: Record<FormControlSize, number> = {\n sm: 10,\n md: 12,\n lg: 14,\n};\n","import React from 'react';\nimport { Field } from '@chakra-ui/react/field';\nimport { FormControlLabelPosition, FormControlSize } from './withFormControl.types';\nimport { SystemStyleObject } from '@chakra-ui/react/styled-system';\nimport { TypographyVariant } from 'shared/types/typography';\nimport { Text } from 'components/Text/text.component';\nimport { optionalTextSizeMap } from './withFormControl.records';\nimport { fontSizes } from '@televet/kibble-primitives/core/typography';\nimport { Flex } from '@chakra-ui/react/flex';\nimport { Icon } from 'components/Icon/icon.component';\nimport { Box } from '@chakra-ui/react/box';\n\nexport interface WithFormControlProps {\n /** If true, the form control will be disabled.\n * @default false\n */\n disabled?: boolean;\n /** The error text to be displayed when the form control is invalid.\n * @default Field is invalid\n */\n errorText?: string;\n /** Props to customize the form control. */\n formControlStyle?: SystemStyleObject;\n /** If true, the form control will take the full width of its container.\n * @default true\n */\n fullWidth?: boolean;\n /** The helper text to be displayed below the form control. */\n helperText?: string;\n /** If true, the form control will be displayed inline with the label. */\n inlineField?: boolean;\n /** If true, the form control will be invalid.\n * @default false\n */\n invalid?: boolean;\n /** The variant of the invalid icon.\n * @default danger\n */\n invalidIconColor?: TypographyVariant;\n /** The label to be displayed above the form control. */\n label?: string | React.ReactNode;\n /** The position of the label relative to the form control.\n * @default start\n */\n labelPosition?: FormControlLabelPosition;\n /** Props to customize the label. */\n labelStyle?: SystemStyleObject;\n /** If true, the form control will be styled for contrast mode.\n * @default false\n */\n onContrast?: boolean;\n /** If true, the form element will be read only.\n * @default false\n */\n readOnly?: boolean;\n /** If true, the form control will be required.\n * @default false\n */\n required?: boolean;\n /** If true, the form control will show an optional text.\n * @default false\n */\n showOptionalElement?: boolean;\n /** The size of the form control.\n * @default md\n */\n size?: FormControlSize;\n /** If true, the form control will show an invalid icon.\n * @default false\n */\n useInvalidIcon?: boolean;\n /** If true, the form control will show an invalid text.\n * @default true\n */\n useInvalidText?: boolean;\n /** Data test id for the form control.\n */\n 'data-testid'?: string;\n}\n\nexport const withFormControl = <P extends WithFormControlProps>(Component: React.ComponentType<P>): React.FC<P> => {\n const WithFormControl = ({\n disabled = false,\n errorText = 'Field is invalid',\n formControlStyle,\n fullWidth = true,\n helperText,\n inlineField = false,\n invalid = false,\n invalidIconColor = 'danger',\n label,\n labelPosition = 'start',\n labelStyle,\n onContrast = false,\n readOnly = false,\n required = false,\n showOptionalElement = false,\n size = 'md',\n useInvalidIcon = false,\n useInvalidText = true,\n ['data-testid']: dataTestId,\n ...props\n }: WithFormControlProps): React.JSX.Element => {\n const labelComponent = (\n <Field.Label\n className=\"FormControl__Label\"\n color={onContrast ? 'text.contrast' : 'text'}\n display=\"flex\"\n flexDirection=\"row\"\n gap={1}\n fontSize={fontSizes[size]}\n fontWeight=\"semibold\"\n data-testid={dataTestId ? `${dataTestId}-form-control-label` : undefined}\n {...labelStyle}\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n <Box as=\"span\">{label}</Box>\n <Field.RequiredIndicator\n className=\"FormControl__RequiredIndicator\"\n data-testid={dataTestId ? `${dataTestId}-form-control-required-indicator` : undefined}\n color={onContrast ? 'text.danger.contrast' : 'text.danger'}\n {...(!required && {\n fallback: showOptionalElement ? (\n <Text\n as=\"span\"\n variant={onContrast ? 'subtleOnContrast' : 'subtle'}\n fontSize={optionalTextSizeMap[size]}\n display=\"contents\"\n ml={1}\n >\n (Optional)\n </Text>\n ) : (\n <></>\n ),\n })}\n />\n </Field.Label>\n );\n\n return (\n <Field.Root\n className=\"FormControl group\"\n disabled={disabled}\n invalid={invalid}\n readOnly={readOnly}\n required={required}\n width={fullWidth ? '100%' : 'auto'}\n data-testid={dataTestId ? `${dataTestId}-form-control-root` : undefined}\n {...formControlStyle}\n >\n <Flex\n className=\"FormControl__Container\"\n flexDirection={inlineField ? 'row' : 'column'}\n w={inlineField ? 'max-content' : '100%'}\n gap={2}\n alignItems={inlineField ? 'center' : 'flex-start'}\n data-testid={dataTestId ? `${dataTestId}-form-control-container` : undefined}\n >\n {label && labelPosition === 'start' && labelComponent}\n <Flex className=\"FormControl__Content\" alignItems=\"center\" gap={2} w={inlineField ? 'max-content' : '100%'}>\n <Component\n disabled={disabled}\n invalid={invalid}\n onContrast={onContrast}\n readOnly={readOnly}\n required={required}\n size={size}\n data-testid={dataTestId ? `${dataTestId}` : undefined}\n {...(props as P)}\n />\n {useInvalidIcon && invalid && (\n <Icon\n className=\"FormControl__InvalidIcon\"\n data-testid={dataTestId ? `${dataTestId}-form-control-invalid-icon` : undefined}\n name=\"warningSign\"\n variant={invalidIconColor}\n size={size}\n />\n )}\n </Flex>\n {label && labelPosition === 'end' && labelComponent}\n </Flex>\n {useInvalidText && invalid && (\n <Field.ErrorText\n className=\"FormControl__ErrorText\"\n fontSize=\"xs\"\n color={onContrast ? 'text.danger.contrast' : 'text.danger'}\n data-testid={dataTestId ? `${dataTestId}-form-control-error-text` : undefined}\n >\n {errorText}\n </Field.ErrorText>\n )}\n {helperText && (\n <Field.HelperText\n className=\"FormControl__HelperText\"\n fontSize=\"xs\"\n color={onContrast ? 'text.subtle.contrast' : 'text.subtle'}\n data-testid={dataTestId ? `${dataTestId}-form-control-helper-text` : undefined}\n >\n {helperText}\n </Field.HelperText>\n )}\n </Field.Root>\n );\n };\n\n WithFormControl.displayName = `withFormControl(${Component.displayName || Component.name}`;\n return WithFormControl;\n};\n"],"names":["FieldErrorText","forwardRef","props","ref","field","useFieldContext","mergedProps","mergeProps","jsx","ark","FieldHelperText","FieldLabel","useSafeLayoutEffect","useLayoutEffect","useEffect","FieldsetProvider","useFieldsetContext","createContext","useField","fieldset","env","useEnvironmentContext","ids","disabled","invalid","readOnly","required","hasErrorText","setHasErrorText","useState","hasHelperText","setHasHelperText","uid","useId","id","rootRef","useRef","rootId","errorTextId","helperTextId","labelId","rootNode","checkTextElements","docOrShadowRoot","win","observer","labelIds","useMemo","ids2","getRootProps","parts","dataAttr","getLabelProps","getControlProps","ariaAttr","getInputProps","getTextareaProps","getSelectProps","getHelperTextProps","getErrorTextProps","getRequiredIndicatorProps","FieldRoot","useFieldProps","localProps","createSplitProps","FieldProvider","composeRefs","useRecipeResult","createRecipeContext","Icon","React","styles","className","otherProps","chakra","cx","createIcon","options","viewBox","pathDefinition","displayName","defaultProps","path","Children","Comp","withProvider","withContext","useFieldStyles","useClassNames","createSlotRecipeContext","Field.Root","Field.Label","Field.HelperText","Field.ErrorText","FieldRequiredIndicator","fallback","children","restProps","classNames","optionalTextSizeMap","withFormControl","Component","WithFormControl","errorText","formControlStyle","fullWidth","helperText","inlineField","invalidIconColor","label","labelPosition","labelStyle","onContrast","showOptionalElement","size","useInvalidIcon","useInvalidText","dataTestId","labelComponent","jsxs","fontSizes","e","Box","Field.RequiredIndicator","Text","Fragment","Flex"],"mappings":"83BAOMA,EAAiBC,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAChD,MAAMC,EAAQC,EAAAA,gBAAiB,EACzBC,EAAcC,EAAU,WAACH,EAAM,kBAAiB,EAAIF,CAAK,EAC/D,OAAIE,GAAO,QACcI,EAAAA,kBAAAA,IAAIC,EAAAA,IAAI,KAAM,CAAE,GAAGH,EAAa,IAAAH,EAAK,EAEvD,IACT,CAAC,EACDH,EAAe,YAAc,iBCR7B,MAAMU,EAAkBT,EAAU,WAAC,CAACC,EAAOC,IAAQ,CACjD,MAAMC,EAAQC,EAAAA,gBAAiB,EACzBC,EAAcC,EAAU,WAACH,GAAO,mBAAkB,EAAI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_google_ignoreList":[0,1,2,3,4,5,6,7,8,9]}
@@ -0,0 +1,2 @@
1
+ "use strict";const l=require("./jsx-runtime-BjDatQAs.js"),r=require("react"),v=require("./index-BQRnVsAg.js"),j=require("./tooltip.component-DBw-hAPU.js"),_=e=>e&&e.__esModule?e:{default:e},h=_(r),d=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(h.default.isValidElement(e)){const i=e;if(i.props.children)return d(i.props.children)}return Array.isArray(e)?e.map(d).join(" "):""},k=e=>{function i({truncated:a=!1,noOfLines:m=1,children:n,tooltipProps:s,["data-testid"]:u="kibble-truncated-text",...w}){const[p,b]=r.useState(!1),o=r.useRef(null),T=r.useRef(null),c=r.useRef(null),f=r.useCallback(()=>{if(!o.current)return;const t=o.current.children[0];if(!t)return;T.current=t;const x=t.scrollHeight>t.clientHeight;b(x)},[]);r.useEffect(()=>{if(!a)return;let t;const x=()=>{window.clearTimeout(t),t=window.setTimeout(f,100)},R=window.setTimeout(f,50);return o.current&&(c.current=new ResizeObserver(()=>{x()}),c.current.observe(o.current)),()=>{window.clearTimeout(t),window.clearTimeout(R),c.current&&c.current.disconnect()}},[a,f,n,m]);const g=r.useMemo(()=>s?.label||d(n),[n,s?.label]);return a?l.jsxRuntimeExports.jsx(j.Tooltip,{...s,label:g,disabled:!p,"data-testid":`${u}-tooltip`,triggerProps:{...s?.triggerProps,css:{width:"full",minWidth:0,...s?.triggerProps?.css}},children:l.jsxRuntimeExports.jsx(v.Box,{ref:o,width:"100%",minWidth:0,overflow:"hidden",flex:"1 1 auto",className:"TruncatedText__Wrapper","data-testid":`${u}-wrapper`,children:l.jsxRuntimeExports.jsx(e,{className:"TruncatedText__TextContent","data-testid":`${u}-content`,css:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:m,overflow:"hidden",textOverflow:"ellipsis"},...w,children:n})})}):l.jsxRuntimeExports.jsx(e,{...w,"data-testid":u,children:n})}return i.displayName=`withTruncation(${e.displayName||e.name})`,i};exports.withTruncation=k;
2
+ //# sourceMappingURL=withTruncation-D0mlwwep.js.map
@@ -1 +1 @@
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,OAAOA,KAAa;AACf,WAAAA;AAET,MAAI,OAAOA,KAAa,YAAY,OAAOA,KAAa;AACtD,WAAO,OAAOA,CAAQ;AAEpB,MAAAC,EAAM,eAAeD,CAAQ,GAAG;AAClC,UAAME,IAAUF;AACZ,QAAAE,EAAQ,MAAM;AACT,aAAAH,EAAoBG,EAAQ,MAAM,QAAQ;AAAA,EACnD;AAEE,SAAA,MAAM,QAAQF,CAAQ,IACjBA,EAAS,IAAID,CAAmB,EAAE,KAAK,GAAG,IAE5C;AACT,GAEaI,IAAiB,CAAgCC,MAAmD;AAC/G,WAASC,EAAe;AAAA,IACtB,WAAAC,IAAY;AAAA,IACZ,WAAAC,IAAY;AAAA,IACZ,UAAAP;AAAA,IACA,cAAAQ;AAAA,IACA,CAAC,aAAa,GAAGC,IAAa;AAAA,IAC9B,GAAGC;AAAA,EAAA,GACsC;AACzC,UAAM,CAACC,GAAmBC,CAAoB,IAAIC,EAAkB,EAAK,GACnEC,IAAeC,EAAuB,IAAI,GAC1CC,IAAiBD,EAA2B,IAAI,GAChDE,IAAoBF,EAA8B,IAAI,GAEtDG,IAAgBC,EAAY,MAAM;AAClC,UAAA,CAACL,EAAa,QAAS;AAG3B,YAAMM,IAAcN,EAAa,QAAQ,SAAS,CAAC;AACnD,UAAI,CAACM,EAAa;AAElB,MAAAJ,EAAe,UAAUI;AAGnB,YAAAC,IAAgBD,EAAY,eAAeA,EAAY;AAC7D,MAAAR,EAAqBS,CAAa;AAAA,IACpC,GAAG,EAAE;AAEL,IAAAC,EAAU,MAAM;AACd,UAAI,CAAChB,EAAW;AAEZ,UAAAiB;AAEJ,YAAMC,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AAAA,MACF;AAAA,IACF,0BArCGI,GAAW,EAAA,GAAIM,GAAY,eAAaD,GACtC,UAAAT,GACH;AAAA,EAmCF;AAIJ,SAAAK,EAAe,cAAc,kBAAkBD,EAAU,eAAeA,EAAU,IAAI,KAC/EC;AACT;"}
1
+ {"version":3,"file":"withTruncation-D0mlwwep.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 triggerProps={{\n ...tooltipProps?.triggerProps,\n css: {\n // Tooltip's trigger recipe sets `width: max-content`, which fights this wrapper's\n // flex-shrink and lets truncated content pop back to its full intrinsic width once\n // the tooltip activates. Override it so truncation keeps working while hovered.\n width: 'full',\n minWidth: 0,\n ...tooltipProps?.triggerProps?.css,\n },\n }}\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":"qMAsBMA,EAAuBC,GAAyC,CAChE,GAAA,OAAOA,GAAa,SACf,OAAAA,EAET,GAAI,OAAOA,GAAa,UAAY,OAAOA,GAAa,UACtD,OAAO,OAAOA,CAAQ,EAEpB,GAAAC,EAAA,QAAM,eAAeD,CAAQ,EAAG,CAClC,MAAME,EAAUF,EACZ,GAAAE,EAAQ,MAAM,SACT,OAAAH,EAAoBG,EAAQ,MAAM,QAAQ,CACnD,CAEE,OAAA,MAAM,QAAQF,CAAQ,EACjBA,EAAS,IAAID,CAAmB,EAAE,KAAK,GAAG,EAE5C,EACT,EAEaI,EAAiDC,GAAmD,CAC/G,SAASC,EAAe,CACtB,UAAAC,EAAY,GACZ,UAAAC,EAAY,EACZ,SAAAP,EACA,aAAAQ,EACA,CAAC,aAAa,EAAGC,EAAa,wBAC9B,GAAGC,CAAA,EACsC,CACzC,KAAM,CAACC,EAAmBC,CAAoB,EAAIC,EAAAA,SAAkB,EAAK,EACnEC,EAAeC,SAAuB,IAAI,EAC1CC,EAAiBD,SAA2B,IAAI,EAChDE,EAAoBF,SAA8B,IAAI,EAEtDG,EAAgBC,EAAAA,YAAY,IAAM,CAClC,GAAA,CAACL,EAAa,QAAS,OAG3B,MAAMM,EAAcN,EA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AAiBF,EACjB,SAAU,SACV,aAAc,UAChB,EACC,GAAIG,EAEJ,SAAAV,CAAA,CAAA,CACH,CAAA,CACF,CACF,0BAhDGI,EAAW,CAAA,GAAIM,EAAY,cAAaD,EACtC,SAAAT,EACH,CA8CF,CAIJ,OAAAK,EAAe,YAAc,kBAAkBD,EAAU,aAAeA,EAAU,IAAI,IAC/EC,CACT"}
@@ -0,0 +1,103 @@
1
+ import { j as u } from "./jsx-runtime-C5mzlN2N.js";
2
+ import h, { useState as k, useRef as m, useCallback as y, useEffect as j, useMemo as O } from "react";
3
+ import { B as R } from "./index-9BerxEcw.js";
4
+ import { T as W } 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 (h.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: n,
22
+ ["data-testid"]: o = "kibble-truncated-text",
23
+ ...x
24
+ }) {
25
+ const [b, p] = k(!1), s = m(null), T = m(null), a = m(null), c = y(() => {
26
+ if (!s.current) return;
27
+ const t = s.current.children[0];
28
+ if (!t) return;
29
+ T.current = t;
30
+ const f = t.scrollHeight > t.clientHeight;
31
+ p(f);
32
+ }, []);
33
+ j(() => {
34
+ if (!l) return;
35
+ let t;
36
+ const f = () => {
37
+ window.clearTimeout(t), t = window.setTimeout(c, 100);
38
+ }, v = window.setTimeout(c, 50);
39
+ return s.current && (a.current = new ResizeObserver(() => {
40
+ f();
41
+ }), a.current.observe(s.current)), () => {
42
+ window.clearTimeout(t), window.clearTimeout(v), a.current && a.current.disconnect();
43
+ };
44
+ }, [l, c, i, d]);
45
+ const g = O(
46
+ () => n?.label || w(i),
47
+ [i, n?.label]
48
+ );
49
+ return l ? /* @__PURE__ */ u.jsx(
50
+ W,
51
+ {
52
+ ...n,
53
+ label: g,
54
+ disabled: !b,
55
+ "data-testid": `${o}-tooltip`,
56
+ triggerProps: {
57
+ ...n?.triggerProps,
58
+ css: {
59
+ // Tooltip's trigger recipe sets `width: max-content`, which fights this wrapper's
60
+ // flex-shrink and lets truncated content pop back to its full intrinsic width once
61
+ // the tooltip activates. Override it so truncation keeps working while hovered.
62
+ width: "full",
63
+ minWidth: 0,
64
+ ...n?.triggerProps?.css
65
+ }
66
+ },
67
+ children: /* @__PURE__ */ u.jsx(
68
+ R,
69
+ {
70
+ ref: s,
71
+ width: "100%",
72
+ minWidth: 0,
73
+ overflow: "hidden",
74
+ flex: "1 1 auto",
75
+ className: "TruncatedText__Wrapper",
76
+ "data-testid": `${o}-wrapper`,
77
+ children: /* @__PURE__ */ u.jsx(
78
+ e,
79
+ {
80
+ className: "TruncatedText__TextContent",
81
+ "data-testid": `${o}-content`,
82
+ css: {
83
+ display: "-webkit-box",
84
+ WebkitBoxOrient: "vertical",
85
+ WebkitLineClamp: d,
86
+ overflow: "hidden",
87
+ textOverflow: "ellipsis"
88
+ },
89
+ ...x,
90
+ children: i
91
+ }
92
+ )
93
+ }
94
+ )
95
+ }
96
+ ) : /* @__PURE__ */ u.jsx(e, { ...x, "data-testid": o, children: i });
97
+ }
98
+ return r.displayName = `withTruncation(${e.displayName || e.name})`, r;
99
+ };
100
+ export {
101
+ B as w
102
+ };
103
+ //# sourceMappingURL=withTruncation-DW62mTHW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withTruncation-DW62mTHW.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 triggerProps={{\n ...tooltipProps?.triggerProps,\n css: {\n // Tooltip's trigger recipe sets `width: max-content`, which fights this wrapper's\n // flex-shrink and lets truncated content pop back to its full intrinsic width once\n // the tooltip activates. Override it so truncation keeps working while hovered.\n width: 'full',\n minWidth: 0,\n ...tooltipProps?.triggerProps?.css,\n },\n }}\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","toolt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AAA,YAAA;AAAA,UACH;AAAA,QAAA;AAAA,MACF;AAAA,IACF,0BAhDGI,GAAW,EAAA,GAAIM,GAAY,eAAaD,GACtC,UAAAT,GACH;AAAA,EA8CF;AAIJ,SAAAK,EAAe,cAAc,kBAAkBD,EAAU,eAAeA,EAAU,IAAI,KAC/EC;AACT;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/alert.component-nhRTQ5KK.js"),e=require("../../../chunks/alert.types-8mtsdXr4.js");exports.Alert=t.Alert;exports.alertButtonPositions=e.alertButtonPositions;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/alert.component-B0gDwaKQ.js"),e=require("../../../chunks/alert.types-8mtsdXr4.js");exports.Alert=t.Alert;exports.alertButtonPositions=e.alertButtonPositions;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../chunks/avatarGroup.component-CJCQSIyr.js");exports.AvatarGroup=r.AvatarGroup;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../chunks/avatarGroup.component-CUOKTQHZ.js");exports.AvatarGroup=r.AvatarGroup;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/buttonGroup.component-pR0mvmm7.js");exports.ButtonGroup=t.ButtonGroup;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/buttonGroup.component-CHbRCpMI.js");exports.ButtonGroup=t.ButtonGroup;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/calendar.component-BFSyxaB6.js");exports.Calendar=e.Calendar;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/calendar.component-C2bzItDq.js");exports.Calendar=e.Calendar;exports.CalendarFooterButton=e.CalendarFooterButton;exports.isRangePreset=e.isRangePreset;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/characterCounter.component-BRHLt929.js");exports.CharacterCounter=e.CharacterCounter;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/characterCounter.component-CczgC612.js");exports.CharacterCounter=e.CharacterCounter;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/checkbox.component-C132vkan.js");exports.Checkbox=e.WrappedCheckbox;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/checkbox.component-CrTnnQ30.js");exports.Checkbox=e.WrappedCheckbox;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/checkboxGroup.component-2U0ZW1TD.js");exports.CheckboxGroup=e.WrappedCheckboxGroup;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/checkboxGroup.component-CndHvReL.js");exports.CheckboxGroup=e.WrappedCheckboxGroup;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/conversationCard.component-CscMIq51.js");exports.ConversationCard=e.ConversationCard;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/conversationCard.component-BKXSq7NS.js");exports.ConversationCard=e.ConversationCard;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/datePicker.component-BuGpHTzS.js"),t=require("../../../chunks/datePicker.provider-i35-VNAb.js");exports.DatePicker=e.DatePicker;exports.DateFormats=t.DateFormats;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/datePicker.component-DQ0a5vhA.js"),t=require("../../../chunks/datePicker.provider-CDhsnFSD.js");exports.DatePicker=e.DatePicker;exports.DateFormats=t.DateFormats;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/dateTimePicker.component-BlWhC5aT.js");exports.DateTimePicker=e.DateTimePicker;exports.DateTimePickerDefaultOptionValue=e.DateTimePickerDefaultOptionValue;exports.calendarViews=e.calendarViews;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/dateTimePicker.component-oLZ5KXWa.js");exports.DateTimePicker=e.DateTimePicker;exports.DateTimePickerDefaultOptionValue=e.DateTimePickerDefaultOptionValue;exports.calendarViews=e.calendarViews;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/heading.component-DnoZOXdz.js");exports.Heading=e.WrappedHeading;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/heading.component-DeM4h5rY.js");exports.Heading=e.WrappedHeading;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../chunks/maintenanceBanner.types-BsNjAlXa.js");exports.MaintenanceBanner=n.MaintenanceBanner;exports.maintenanceBannerEnvKeys=n.maintenanceBannerEnvKeys;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../chunks/maintenanceBanner.types-CfHYj6Nu.js");exports.MaintenanceBanner=n.MaintenanceBanner;exports.maintenanceBannerEnvKeys=n.maintenanceBannerEnvKeys;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/menu.component-D2V9Q1Y5.js");exports.Menu=e.Menu;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/menu.component-CNbEm3SL.js");exports.Menu=e.Menu;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../chunks/modal.types-Bj6PrItn.js");exports.Modal=o.Modal;exports.modalMotionPresets=o.modalMotionPresets;exports.modalPlacements=o.modalPlacements;exports.modalScrollBehaviors=o.modalScrollBehaviors;exports.modalSizes=o.modalSizes;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../chunks/modal.types-CfN8ElV6.js");exports.Modal=o.Modal;exports.modalMotionPresets=o.modalMotionPresets;exports.modalPlacements=o.modalPlacements;exports.modalScrollBehaviors=o.modalScrollBehaviors;exports.modalSizes=o.modalSizes;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../chunks/notificationCounter.component-CBwi5vXa.js"),t=require("../../../chunks/notificationCounter.types-B_-siNfi.js");exports.NotificationCounter=i.NotificationCounter;exports.notificationCounterSizes=t.notificationCounterSizes;exports.notificationCounterVariants=t.notificationCounterVariants;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../chunks/notificationCounter.component-BUxWlpKh.js"),t=require("../../../chunks/notificationCounter.types-B_-siNfi.js");exports.NotificationCounter=i.NotificationCounter;exports.notificationCounterSizes=t.notificationCounterSizes;exports.notificationCounterVariants=t.notificationCounterVariants;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/numberInput.component-DGPEz0Fv.js");exports.NumberInput=e.WrappedNumberInput;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/numberInput.component-B0P7w6Av.js");exports.NumberInput=e.WrappedNumberInput;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../../../chunks/pinInput.types-Can9f1Eu.js");exports.PinInput=p.WrappedPinInput;exports.pinInputTypes=p.pinInputTypes;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../../../chunks/pinInput.types-xxX7jDUo.js");exports.PinInput=p.WrappedPinInput;exports.pinInputTypes=p.pinInputTypes;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../chunks/popover.component-DTjA1GSd.js"),e=require("../../../chunks/popover.types-ChA9ccQ2.js");exports.Popover=o.Popover;exports.popoverSizes=e.popoverSizes;exports.popoverTriggerTypes=e.popoverTriggerTypes;exports.popoverVariants=e.popoverVariants;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../chunks/popover.component-Cw6-018C.js"),e=require("../../../chunks/popover.types-ChA9ccQ2.js");exports.Popover=o.Popover;exports.popoverSizes=e.popoverSizes;exports.popoverTriggerTypes=e.popoverTriggerTypes;exports.popoverVariants=e.popoverVariants;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/radioGroup.types-U1ep9nrN.js");exports.RadioGroup=e.WrappedRadioGroup;exports.radioAlignments=e.radioAlignments;exports.radioTypes=e.radioTypes;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/radioGroup.types-4D0zmi0v.js");exports.RadioGroup=e.WrappedRadioGroup;exports.radioAlignments=e.radioAlignments;exports.radioTypes=e.radioTypes;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/rating.component-DsHkKmA7.js");exports.Rating=e.WrappedRating;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/rating.component-DOUCmD0Y.js");exports.Rating=e.WrappedRating;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/ratingDots.component-CZ370iI3.js");exports.RatingDots=t.WrappedRatingDots;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/ratingDots.component-pc5p1mua.js");exports.RatingDots=t.WrappedRatingDots;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/select.component-OrsHXCMz.js");exports.Select=e.WrappedSelect;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/select.component-CzyXxbhS.js");exports.Select=e.WrappedSelect;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/sortableList.component-2yX2pXs7.js");exports.SortableList=t.SortableList;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/sortableList.component-DX9EP39N.js");exports.SortableList=t.SortableList;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/spinner.component-Dq6u4vVL.js"),n=require("../../../chunks/spinner.types-BCLN5-H2.js");exports.Spinner=e.Spinner;exports.spinnerSizes=n.spinnerSizes;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/spinner.component-0tE7mnxi.js"),n=require("../../../chunks/spinner.types-BCLN5-H2.js");exports.Spinner=e.Spinner;exports.spinnerSizes=n.spinnerSizes;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/switch.component-BYEMhBCA.js");exports.Switch=e.WrappedSwitch;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/switch.component-BKahX4Bw.js");exports.Switch=e.WrappedSwitch;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/tab.types-DSPWRVCF.js");exports.Tabs=t.Tabs;exports.tabIconPositions=t.tabIconPositions;exports.tabSizes=t.tabSizes;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/tab.types-xN2lQJLC.js");exports.Tabs=t.Tabs;exports.tabIconPositions=t.tabIconPositions;exports.tabSizes=t.tabSizes;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/tagBlock.component-B899iqQP.js");exports.TagBlock=e.TagBlock;exports.TagDisabledState=e.TagDisabledState;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/tagBlock.component-fnt27QP6.js");exports.TagBlock=e.TagBlock;exports.TagDisabledState=e.TagDisabledState;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/text.component-BDDz5KQP.js");exports.Text=e.WrappedText;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/text.component-D5GpbfNx.js");exports.Text=e.WrappedText;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/textInput.component-CwTc0h_F.js");exports.TextInput=t.WrappedTextInput;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/textInput.component-BDJuvT1c.js");exports.TextInput=t.WrappedTextInput;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/textarea.component-BIg_XX_R.js");exports.Textarea=e.WrappedTextarea;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/textarea.component-1Gvjelye.js");exports.Textarea=e.WrappedTextarea;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/timePicker.component-D5hw80VV.js");exports.Meridiem=e.Meridiem;exports.TimePicker=e.TimePicker;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/timePicker.component-D2gDf5fp.js");exports.Meridiem=e.Meridiem;exports.TimePicker=e.TimePicker;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/timeRange.component-D3Db8lvh.js");exports.TimeRange=e.TimeRange;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/timeRange.component-DL2vskjy.js");exports.TimeRange=e.TimeRange;
2
2
  //# sourceMappingURL=index.cjs.map