@televet/kibble-ui 5.0.1-beta.3 → 5.0.1

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 (236) hide show
  1. package/dist/chunks/{alert.types-CjIUiK5M.js → alert.types-BKSqs9qY.js} +2 -2
  2. package/dist/chunks/{alert.types-CjIUiK5M.js.map → alert.types-BKSqs9qY.js.map} +1 -1
  3. package/dist/chunks/{alert.types--ZQbhwi3.js → alert.types-C_ygg7fh.js} +3 -3
  4. package/dist/chunks/{alert.types--ZQbhwi3.js.map → alert.types-C_ygg7fh.js.map} +1 -1
  5. package/dist/chunks/{avatar.component-C2OoiZW6.js → avatar.component-B1HGlwVW.js} +2 -2
  6. package/dist/chunks/{avatar.component-C2OoiZW6.js.map → avatar.component-B1HGlwVW.js.map} +1 -1
  7. package/dist/chunks/{avatar.component-DAaI4wvh.js → avatar.component-C-365mx3.js} +2 -2
  8. package/dist/chunks/{avatar.component-DAaI4wvh.js.map → avatar.component-C-365mx3.js.map} +1 -1
  9. package/dist/chunks/{avatarGroup.component-BUhsZBv0.js → avatarGroup.component-B-ZOhj7i.js} +5 -5
  10. package/dist/chunks/{avatarGroup.component-BUhsZBv0.js.map → avatarGroup.component-B-ZOhj7i.js.map} +1 -1
  11. package/dist/chunks/{avatarGroup.component-BihQ8qWV.js → avatarGroup.component-CTBfGiSm.js} +2 -2
  12. package/dist/chunks/{avatarGroup.component-BihQ8qWV.js.map → avatarGroup.component-CTBfGiSm.js.map} +1 -1
  13. package/dist/chunks/{buttonGroup.component-DsJK4ZJ9.js → buttonGroup.component-CowJsbr7.js} +2 -2
  14. package/dist/chunks/{buttonGroup.component-DsJK4ZJ9.js.map → buttonGroup.component-CowJsbr7.js.map} +1 -1
  15. package/dist/chunks/{buttonGroup.component-BgGh75k6.js → buttonGroup.component-DUK2FgFn.js} +2 -2
  16. package/dist/chunks/{buttonGroup.component-BgGh75k6.js.map → buttonGroup.component-DUK2FgFn.js.map} +1 -1
  17. package/dist/chunks/{calendar.component-CMnBc46u.js → calendar.component-CHIhplfO.js} +2 -2
  18. package/dist/chunks/{calendar.component-CMnBc46u.js.map → calendar.component-CHIhplfO.js.map} +1 -1
  19. package/dist/chunks/{calendar.component-D-2KzF9Q.js → calendar.component-tOoK1NrU.js} +2 -2
  20. package/dist/chunks/{calendar.component-D-2KzF9Q.js.map → calendar.component-tOoK1NrU.js.map} +1 -1
  21. package/dist/chunks/{characterCounter.component-CKAR4aCe.js → characterCounter.component-CKDigkoD.js} +2 -2
  22. package/dist/chunks/{characterCounter.component-CKAR4aCe.js.map → characterCounter.component-CKDigkoD.js.map} +1 -1
  23. package/dist/chunks/{characterCounter.component-Cd2r4VAV.js → characterCounter.component-Ch3P3GqC.js} +2 -2
  24. package/dist/chunks/{characterCounter.component-Cd2r4VAV.js.map → characterCounter.component-Ch3P3GqC.js.map} +1 -1
  25. package/dist/chunks/{checkbox.component-CtPp_vbo.js → checkbox.component-CiA3Z1zR.js} +2 -2
  26. package/dist/chunks/{checkbox.component-CtPp_vbo.js.map → checkbox.component-CiA3Z1zR.js.map} +1 -1
  27. package/dist/chunks/{checkbox.component-ClEOcUPl.js → checkbox.component-DE35wBj-.js} +3 -3
  28. package/dist/chunks/{checkbox.component-ClEOcUPl.js.map → checkbox.component-DE35wBj-.js.map} +1 -1
  29. package/dist/chunks/{checkboxGroup.component-QCbAP8s8.js → checkboxGroup.component-BGBd-roJ.js} +2 -2
  30. package/dist/chunks/{checkboxGroup.component-QCbAP8s8.js.map → checkboxGroup.component-BGBd-roJ.js.map} +1 -1
  31. package/dist/chunks/{checkboxGroup.component-BumixbJk.js → checkboxGroup.component-CYwGlktu.js} +3 -3
  32. package/dist/chunks/{checkboxGroup.component-BumixbJk.js.map → checkboxGroup.component-CYwGlktu.js.map} +1 -1
  33. package/dist/chunks/{conversationCard.component-dt3EZO6p.js → conversationCard.component-BrDGshOG.js} +2 -2
  34. package/dist/chunks/{conversationCard.component-dt3EZO6p.js.map → conversationCard.component-BrDGshOG.js.map} +1 -1
  35. package/dist/chunks/{conversationCard.component-TgMvo1z9.js → conversationCard.component-CMdqD3yN.js} +8 -8
  36. package/dist/chunks/{conversationCard.component-TgMvo1z9.js.map → conversationCard.component-CMdqD3yN.js.map} +1 -1
  37. package/dist/chunks/{datePicker.component-93K2sTq4.js → datePicker.component-C6cD1_HR.js} +2 -2
  38. package/dist/chunks/{datePicker.component-93K2sTq4.js.map → datePicker.component-C6cD1_HR.js.map} +1 -1
  39. package/dist/chunks/{datePicker.component-Du7VlqPw.js → datePicker.component-eHU7IZgC.js} +4 -4
  40. package/dist/chunks/{datePicker.component-Du7VlqPw.js.map → datePicker.component-eHU7IZgC.js.map} +1 -1
  41. package/dist/chunks/{datePicker.provider-BUseysTP.js → datePicker.provider-BWHE-9FA.js} +3 -3
  42. package/dist/chunks/{datePicker.provider-BUseysTP.js.map → datePicker.provider-BWHE-9FA.js.map} +1 -1
  43. package/dist/chunks/{datePicker.provider-BsFRDkt9.js → datePicker.provider-DgarjPPd.js} +2 -2
  44. package/dist/chunks/{datePicker.provider-BsFRDkt9.js.map → datePicker.provider-DgarjPPd.js.map} +1 -1
  45. package/dist/chunks/{dateTimePicker.component-BCKIB5nl.js → dateTimePicker.component-Byjxg2lJ.js} +5 -5
  46. package/dist/chunks/{dateTimePicker.component-BCKIB5nl.js.map → dateTimePicker.component-Byjxg2lJ.js.map} +1 -1
  47. package/dist/chunks/{dateTimePicker.component-CloZHAY9.js → dateTimePicker.component-REz9iX4S.js} +2 -2
  48. package/dist/chunks/{dateTimePicker.component-CloZHAY9.js.map → dateTimePicker.component-REz9iX4S.js.map} +1 -1
  49. package/dist/chunks/{heading.component-D2GevGaf.js → heading.component-7ikcgDco.js} +2 -2
  50. package/dist/chunks/{heading.component-D2GevGaf.js.map → heading.component-7ikcgDco.js.map} +1 -1
  51. package/dist/chunks/{heading.component-BJF9w89n.js → heading.component-DMAQO_-m.js} +2 -2
  52. package/dist/chunks/{heading.component-BJF9w89n.js.map → heading.component-DMAQO_-m.js.map} +1 -1
  53. package/dist/chunks/logo.types-88a31xCx.js.map +1 -1
  54. package/dist/chunks/logo.types-C5GwpHjM.js.map +1 -1
  55. package/dist/chunks/{menu.component-DGRYx9uq.js → menu.component-D4-4xRDj.js} +2 -2
  56. package/dist/chunks/{menu.component-DGRYx9uq.js.map → menu.component-D4-4xRDj.js.map} +1 -1
  57. package/dist/chunks/{menu.component-DP2EIgRW.js → menu.component-DwTen8Uv.js} +6 -6
  58. package/dist/chunks/{menu.component-DP2EIgRW.js.map → menu.component-DwTen8Uv.js.map} +1 -1
  59. package/dist/chunks/{modal.types-CTysHKuo.js → modal.types-74os4Bqi.js} +2 -2
  60. package/dist/chunks/{modal.types-CTysHKuo.js.map → modal.types-74os4Bqi.js.map} +1 -1
  61. package/dist/chunks/{modal.types-CDDJUW93.js → modal.types-B0rK6xJy.js} +2 -2
  62. package/dist/chunks/{modal.types-CDDJUW93.js.map → modal.types-B0rK6xJy.js.map} +1 -1
  63. package/dist/chunks/{notificationCounter.component-BG67N0hr.js → notificationCounter.component-BexkISUl.js} +2 -2
  64. package/dist/chunks/{notificationCounter.component-BG67N0hr.js.map → notificationCounter.component-BexkISUl.js.map} +1 -1
  65. package/dist/chunks/{notificationCounter.component-BZ-p6nJc.js → notificationCounter.component-DJpUXeXm.js} +2 -2
  66. package/dist/chunks/{notificationCounter.component-BZ-p6nJc.js.map → notificationCounter.component-DJpUXeXm.js.map} +1 -1
  67. package/dist/chunks/{numberInput.component-BEhyTG0A.js → numberInput.component-DIABzNV6.js} +2 -2
  68. package/dist/chunks/{numberInput.component-BEhyTG0A.js.map → numberInput.component-DIABzNV6.js.map} +1 -1
  69. package/dist/chunks/{numberInput.component-CWzidXQY.js → numberInput.component-RCwUUzmH.js} +2 -2
  70. package/dist/chunks/{numberInput.component-CWzidXQY.js.map → numberInput.component-RCwUUzmH.js.map} +1 -1
  71. package/dist/chunks/{pinInput.types-CeoFuSCZ.js → pinInput.types-BCzsoF9r.js} +2 -2
  72. package/dist/chunks/{pinInput.types-CeoFuSCZ.js.map → pinInput.types-BCzsoF9r.js.map} +1 -1
  73. package/dist/chunks/{pinInput.types-CyWr2uk3.js → pinInput.types-CcaAN6P2.js} +2 -2
  74. package/dist/chunks/{pinInput.types-CyWr2uk3.js.map → pinInput.types-CcaAN6P2.js.map} +1 -1
  75. package/dist/chunks/{popover.component-Bekht4aK.js → popover.component-BBp_5m8e.js} +2 -2
  76. package/dist/chunks/{popover.component-Bekht4aK.js.map → popover.component-BBp_5m8e.js.map} +1 -1
  77. package/dist/chunks/{popover.component-BzwIWHoc.js → popover.component-DEOUdSu3.js} +4 -4
  78. package/dist/chunks/{popover.component-BzwIWHoc.js.map → popover.component-DEOUdSu3.js.map} +1 -1
  79. package/dist/chunks/{radioGroup.types-CH1qqib7.js → radioGroup.types-C7A8mLMz.js} +2 -2
  80. package/dist/chunks/{radioGroup.types-CH1qqib7.js.map → radioGroup.types-C7A8mLMz.js.map} +1 -1
  81. package/dist/chunks/{radioGroup.types-UuaVft7f.js → radioGroup.types-DJ68ERdO.js} +4 -4
  82. package/dist/chunks/{radioGroup.types-UuaVft7f.js.map → radioGroup.types-DJ68ERdO.js.map} +1 -1
  83. package/dist/chunks/{rating.component-oGPlxXt7.js → rating.component-BsuGbcxP.js} +2 -2
  84. package/dist/chunks/{rating.component-oGPlxXt7.js.map → rating.component-BsuGbcxP.js.map} +1 -1
  85. package/dist/chunks/{rating.component-CXdTeL70.js → rating.component-ChzcvUl6.js} +2 -2
  86. package/dist/chunks/{rating.component-CXdTeL70.js.map → rating.component-ChzcvUl6.js.map} +1 -1
  87. package/dist/chunks/{ratingDots.component-CcKLD_YN.js → ratingDots.component-CVjSZ9JJ.js} +2 -2
  88. package/dist/chunks/{ratingDots.component-CcKLD_YN.js.map → ratingDots.component-CVjSZ9JJ.js.map} +1 -1
  89. package/dist/chunks/{ratingDots.component-Cn_b7XNL.js → ratingDots.component-D9WQGVcj.js} +3 -3
  90. package/dist/chunks/{ratingDots.component-Cn_b7XNL.js.map → ratingDots.component-D9WQGVcj.js.map} +1 -1
  91. package/dist/chunks/{select.component-MOdtL7IW.js → select.component-B4mAPqzN.js} +5 -5
  92. package/dist/chunks/{select.component-MOdtL7IW.js.map → select.component-B4mAPqzN.js.map} +1 -1
  93. package/dist/chunks/{select.component-BUQW4vnf.js → select.component-CCNxMGvb.js} +2 -2
  94. package/dist/chunks/{select.component-BUQW4vnf.js.map → select.component-CCNxMGvb.js.map} +1 -1
  95. package/dist/chunks/{sortableList.component-VTqxs2NN.js → sortableList.component-BlwtnxVj.js} +2 -2
  96. package/dist/chunks/{sortableList.component-VTqxs2NN.js.map → sortableList.component-BlwtnxVj.js.map} +1 -1
  97. package/dist/chunks/{sortableList.component-Yf5Y7vkk.js → sortableList.component-XfURY7C2.js} +2 -2
  98. package/dist/chunks/{sortableList.component-Yf5Y7vkk.js.map → sortableList.component-XfURY7C2.js.map} +1 -1
  99. package/dist/chunks/{spinner.component-BZMXHES5.js → spinner.component-B3dkvoO9.js} +2 -2
  100. package/dist/chunks/{spinner.component-BZMXHES5.js.map → spinner.component-B3dkvoO9.js.map} +1 -1
  101. package/dist/chunks/{spinner.component-DqgNewM2.js → spinner.component-DuW1_IWM.js} +2 -2
  102. package/dist/chunks/{spinner.component-DqgNewM2.js.map → spinner.component-DuW1_IWM.js.map} +1 -1
  103. package/dist/chunks/{styledAvatar.types-BGGW1QZW.js → styledAvatar.types-CcP-Vl9c.js} +2 -2
  104. package/dist/chunks/{styledAvatar.types-BGGW1QZW.js.map → styledAvatar.types-CcP-Vl9c.js.map} +1 -1
  105. package/dist/chunks/{styledAvatar.types-C80hus3q.js → styledAvatar.types-cR6PNPxA.js} +2 -2
  106. package/dist/chunks/{styledAvatar.types-C80hus3q.js.map → styledAvatar.types-cR6PNPxA.js.map} +1 -1
  107. package/dist/chunks/{switch.component-CkaMRTup.js → switch.component-CgzCLoTB.js} +2 -2
  108. package/dist/chunks/{switch.component-CkaMRTup.js.map → switch.component-CgzCLoTB.js.map} +1 -1
  109. package/dist/chunks/{switch.component-B8HgMP8D.js → switch.component-CpV7mnhR.js} +2 -2
  110. package/dist/chunks/{switch.component-B8HgMP8D.js.map → switch.component-CpV7mnhR.js.map} +1 -1
  111. package/dist/chunks/{tab.types-Cb7HyYq8.js → tab.types-DaJfFBvr.js} +3 -3
  112. package/dist/chunks/{tab.types-Cb7HyYq8.js.map → tab.types-DaJfFBvr.js.map} +1 -1
  113. package/dist/chunks/{tab.types-Bq-A5YO-.js → tab.types-DwPEP_5N.js} +2 -2
  114. package/dist/chunks/{tab.types-Bq-A5YO-.js.map → tab.types-DwPEP_5N.js.map} +1 -1
  115. package/dist/chunks/{tagBlock.component-B3frcT_b.js → tagBlock.component-BGEvRu81.js} +2 -2
  116. package/dist/chunks/{tagBlock.component-B3frcT_b.js.map → tagBlock.component-BGEvRu81.js.map} +1 -1
  117. package/dist/chunks/{tagBlock.component-DbFhjAD4.js → tagBlock.component-Cor6eakc.js} +5 -5
  118. package/dist/chunks/{tagBlock.component-DbFhjAD4.js.map → tagBlock.component-Cor6eakc.js.map} +1 -1
  119. package/dist/chunks/{text.component-Cv7odzlt.js → text.component-CdTyTFds.js} +2 -2
  120. package/dist/chunks/{text.component-Cv7odzlt.js.map → text.component-CdTyTFds.js.map} +1 -1
  121. package/dist/chunks/{text.component-DNNttvId.js → text.component-CeioUl0G.js} +2 -2
  122. package/dist/chunks/{text.component-DNNttvId.js.map → text.component-CeioUl0G.js.map} +1 -1
  123. package/dist/chunks/{textInput.component-Bagp9Z4m.js → textInput.component-BC0Hi8R_.js} +3 -3
  124. package/dist/chunks/{textInput.component-Bagp9Z4m.js.map → textInput.component-BC0Hi8R_.js.map} +1 -1
  125. package/dist/chunks/{textInput.component-D_MEzg3q.js → textInput.component-C1vwy6pL.js} +2 -2
  126. package/dist/chunks/{textInput.component-D_MEzg3q.js.map → textInput.component-C1vwy6pL.js.map} +1 -1
  127. package/dist/chunks/{textarea.component-DYCiC_cs.js → textarea.component-D15hA9Jb.js} +2 -2
  128. package/dist/chunks/{textarea.component-DYCiC_cs.js.map → textarea.component-D15hA9Jb.js.map} +1 -1
  129. package/dist/chunks/{textarea.component-BfNOFIoI.js → textarea.component-axjxiv82.js} +3 -3
  130. package/dist/chunks/{textarea.component-BfNOFIoI.js.map → textarea.component-axjxiv82.js.map} +1 -1
  131. package/dist/chunks/{theme.provider-DYOpOJIR.js → theme.provider-BD7qyu-B.js} +3 -3
  132. package/dist/chunks/{theme.provider-DYOpOJIR.js.map → theme.provider-BD7qyu-B.js.map} +1 -1
  133. package/dist/chunks/{theme.provider-B4WZvGfo.js → theme.provider-DFwAy7tr.js} +2 -2
  134. package/dist/chunks/{theme.provider-B4WZvGfo.js.map → theme.provider-DFwAy7tr.js.map} +1 -1
  135. package/dist/chunks/{timePicker.component-D6EIwWok.js → timePicker.component-Cz2XxVL6.js} +2 -2
  136. package/dist/chunks/{timePicker.component-D6EIwWok.js.map → timePicker.component-Cz2XxVL6.js.map} +1 -1
  137. package/dist/chunks/{timePicker.component-CE4pX9KG.js → timePicker.component-u34pHrzr.js} +3 -3
  138. package/dist/chunks/{timePicker.component-CE4pX9KG.js.map → timePicker.component-u34pHrzr.js.map} +1 -1
  139. package/dist/chunks/{timeRange.component-yx_l4Utm.js → timeRange.component-BiA1VWQ8.js} +2 -2
  140. package/dist/chunks/{timeRange.component-yx_l4Utm.js.map → timeRange.component-BiA1VWQ8.js.map} +1 -1
  141. package/dist/chunks/{timeRange.component-URBrUmwi.js → timeRange.component-tU_nCTmS.js} +2 -2
  142. package/dist/chunks/{timeRange.component-URBrUmwi.js.map → timeRange.component-tU_nCTmS.js.map} +1 -1
  143. package/dist/chunks/{timestamp.component-DgIXMBc6.js → timestamp.component-DBmc7D23.js} +3 -3
  144. package/dist/chunks/{timestamp.component-DgIXMBc6.js.map → timestamp.component-DBmc7D23.js.map} +1 -1
  145. package/dist/chunks/{timestamp.component-DtTGEtPG.js → timestamp.component-DYZHgaas.js} +2 -2
  146. package/dist/chunks/{timestamp.component-DtTGEtPG.js.map → timestamp.component-DYZHgaas.js.map} +1 -1
  147. package/dist/chunks/{tooltip.component-Cn9JSqUn.js → tooltip.component-BkFDi5yK.js} +2 -2
  148. package/dist/chunks/{tooltip.component-Cn9JSqUn.js.map → tooltip.component-BkFDi5yK.js.map} +1 -1
  149. package/dist/chunks/{tooltip.component-CiiT7r7V.js → tooltip.component-C_NS-AoH.js} +12 -12
  150. package/dist/chunks/{tooltip.component-CiiT7r7V.js.map → tooltip.component-C_NS-AoH.js.map} +1 -1
  151. package/dist/chunks/{withFormControl-B8dsRsaO.js → withFormControl-DePFf9SY.js} +2 -2
  152. package/dist/chunks/{withFormControl-B8dsRsaO.js.map → withFormControl-DePFf9SY.js.map} +1 -1
  153. package/dist/chunks/{withFormControl-BlRmmpmv.js → withFormControl-wZA87Sd4.js} +2 -2
  154. package/dist/chunks/{withFormControl-BlRmmpmv.js.map → withFormControl-wZA87Sd4.js.map} +1 -1
  155. package/dist/chunks/{withTruncation-DrxrJuSQ.js → withTruncation-DE3FFPE7.js} +2 -2
  156. package/dist/chunks/{withTruncation-DrxrJuSQ.js.map → withTruncation-DE3FFPE7.js.map} +1 -1
  157. package/dist/chunks/{withTruncation-DeEu1ylr.js → withTruncation-DTCfQ2yk.js} +2 -2
  158. package/dist/chunks/{withTruncation-DeEu1ylr.js.map → withTruncation-DTCfQ2yk.js.map} +1 -1
  159. package/dist/cjs/components/Alert/index.cjs +1 -1
  160. package/dist/cjs/components/Avatar/index.cjs +1 -1
  161. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  162. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  163. package/dist/cjs/components/Calendar/index.cjs +1 -1
  164. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  165. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  166. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  167. package/dist/cjs/components/ConversationCard/index.cjs +1 -1
  168. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  169. package/dist/cjs/components/DateTimePicker/index.cjs +1 -1
  170. package/dist/cjs/components/Heading/index.cjs +1 -1
  171. package/dist/cjs/components/Menu/index.cjs +1 -1
  172. package/dist/cjs/components/Modal/index.cjs +1 -1
  173. package/dist/cjs/components/NotificationCounter/index.cjs +1 -1
  174. package/dist/cjs/components/NumberInput/index.cjs +1 -1
  175. package/dist/cjs/components/PinInput/index.cjs +1 -1
  176. package/dist/cjs/components/Popover/index.cjs +1 -1
  177. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  178. package/dist/cjs/components/Rating/index.cjs +1 -1
  179. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  180. package/dist/cjs/components/Select/index.cjs +1 -1
  181. package/dist/cjs/components/SortableList/index.cjs +1 -1
  182. package/dist/cjs/components/Spinner/index.cjs +1 -1
  183. package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
  184. package/dist/cjs/components/Switch/index.cjs +1 -1
  185. package/dist/cjs/components/Tabs/index.cjs +1 -1
  186. package/dist/cjs/components/TagBlock/index.cjs +1 -1
  187. package/dist/cjs/components/Text/index.cjs +1 -1
  188. package/dist/cjs/components/TextInput/index.cjs +1 -1
  189. package/dist/cjs/components/Textarea/index.cjs +1 -1
  190. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  191. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  192. package/dist/cjs/components/Timestamp/index.cjs +1 -1
  193. package/dist/cjs/components/Tooltip/index.cjs +1 -1
  194. package/dist/cjs/components/index.cjs +1 -1
  195. package/dist/cjs/index.cjs +1 -1
  196. package/dist/cjs/theme/index.cjs +1 -1
  197. package/dist/esm/components/Alert/index.js +1 -1
  198. package/dist/esm/components/Avatar/index.js +1 -1
  199. package/dist/esm/components/AvatarGroup/index.js +1 -1
  200. package/dist/esm/components/ButtonGroup/index.js +1 -1
  201. package/dist/esm/components/Calendar/index.js +1 -1
  202. package/dist/esm/components/CharacterCounter/index.js +1 -1
  203. package/dist/esm/components/Checkbox/index.js +1 -1
  204. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  205. package/dist/esm/components/ConversationCard/index.js +1 -1
  206. package/dist/esm/components/DatePicker/index.js +2 -2
  207. package/dist/esm/components/DateTimePicker/index.js +1 -1
  208. package/dist/esm/components/Heading/index.js +1 -1
  209. package/dist/esm/components/Menu/index.js +1 -1
  210. package/dist/esm/components/Modal/index.js +1 -1
  211. package/dist/esm/components/NotificationCounter/index.js +1 -1
  212. package/dist/esm/components/NumberInput/index.js +1 -1
  213. package/dist/esm/components/PinInput/index.js +1 -1
  214. package/dist/esm/components/Popover/index.js +1 -1
  215. package/dist/esm/components/RadioGroup/index.js +1 -1
  216. package/dist/esm/components/Rating/index.js +1 -1
  217. package/dist/esm/components/RatingDots/index.js +1 -1
  218. package/dist/esm/components/Select/index.js +1 -1
  219. package/dist/esm/components/SortableList/index.js +1 -1
  220. package/dist/esm/components/Spinner/index.js +1 -1
  221. package/dist/esm/components/StyledAvatar/index.js +1 -1
  222. package/dist/esm/components/Switch/index.js +1 -1
  223. package/dist/esm/components/Tabs/index.js +1 -1
  224. package/dist/esm/components/TagBlock/index.js +1 -1
  225. package/dist/esm/components/Text/index.js +1 -1
  226. package/dist/esm/components/TextInput/index.js +1 -1
  227. package/dist/esm/components/Textarea/index.js +1 -1
  228. package/dist/esm/components/TimePicker/index.js +1 -1
  229. package/dist/esm/components/TimeRange/index.js +1 -1
  230. package/dist/esm/components/Timestamp/index.js +1 -1
  231. package/dist/esm/components/Tooltip/index.js +1 -1
  232. package/dist/esm/components/index.js +36 -36
  233. package/dist/esm/index.js +37 -37
  234. package/dist/esm/theme/index.js +1 -1
  235. package/dist/types/components/Logo/logo.component.d.ts +2 -2
  236. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./jsx-runtime-BjDatQAs.js"),u=require("react"),g=require("./withFormControl-BlRmmpmv.js"),q=require("./button.component-DjdgBXDC.js"),E=require("./characterCounter.component-CKAR4aCe.js"),N=require("./flex-BOU6tYUd.js"),w=require("./input-group-DUdSDk4o.js"),F=require("./create-recipe-context-CDw-39SC.js"),b=require("./use-locale-context-ym21RUxU.js"),y=require("./use-field-context-Cm29IQ7H.js"),P=require("./index-CQURjLlA.js"),T=t=>t&&t.__esModule?t:{default:t},k=T(u),l=u.forwardRef((t,s)=>{const r=y.useFieldContext(),i=P.mergeProps(r?.getInputProps(),t);return e.jsxRuntimeExports.jsx(b.ark.input,{...i,ref:s})});l.displayName="FieldInput";const{withContext:D}=F.createRecipeContext({key:"input"}),B=D(l),G={sm:"xs",md:"sm",lg:"md"},d=k.default.forwardRef(({charLimit:t=void 0,clearable:s=!1,disabled:r=!1,inputRef:i,invalid:x,leftAddon:m,leftElement:f,onClear:a,onContrast:C,rightAddon:_,rightElement:c,size:p="md",value:n,["data-testid"]:o="kibble-text-input",...h},j)=>{const I=()=>{a&&a(n||"")};s&&n&&!r&&(c=e.jsxRuntimeExports.jsx(q.Button,{className:"TextInput__ClearButton","data-testid":`${o}-clear-button`,size:G[p],variant:"ghostNeutral",onClick:I,iconName:"close"}));const R=u.useMemo(()=>n?.toString()?.length||0,[n]);return e.jsxRuntimeExports.jsxs(N.Flex,{className:"TextInput__Wrapper",w:"100%",flexDirection:"column",gap:1,alignItems:"flex-end",children:[e.jsxRuntimeExports.jsx(w.InputGroup,{className:"TextInput__InputGroup","data-testid":`${o}-input-group`,startElement:f,startElementProps:{color:"inherit",_groupDisabled:{opacity:.6}},endElement:c,endElementProps:{color:"inherit",paddingInline:1.5,_groupDisabled:{opacity:.6}},startAddon:m,endAddon:_,children:e.jsxRuntimeExports.jsx(B,{"data-testid":o,className:"TextInput",ref:i||j,value:n,size:p,disabled:r,...x&&{"aria-invalid":!0},variant:C?"onContrast":"default",...h})}),!!t&&e.jsxRuntimeExports.jsx(E.CharacterCounter,{"data-testid":`${o}-character-counter`,withLimit:!0,limit:t,currentCount:R})]})});d.displayName="TextInput";const M=g.withFormControl(d);exports.WrappedTextInput=M;
2
- //# sourceMappingURL=textInput.component-D_MEzg3q.js.map
1
+ "use strict";const e=require("./jsx-runtime-BjDatQAs.js"),u=require("react"),g=require("./withFormControl-wZA87Sd4.js"),q=require("./button.component-DjdgBXDC.js"),E=require("./characterCounter.component-CKDigkoD.js"),N=require("./flex-BOU6tYUd.js"),w=require("./input-group-DUdSDk4o.js"),F=require("./create-recipe-context-CDw-39SC.js"),b=require("./use-locale-context-ym21RUxU.js"),y=require("./use-field-context-Cm29IQ7H.js"),P=require("./index-CQURjLlA.js"),T=t=>t&&t.__esModule?t:{default:t},k=T(u),l=u.forwardRef((t,s)=>{const r=y.useFieldContext(),i=P.mergeProps(r?.getInputProps(),t);return e.jsxRuntimeExports.jsx(b.ark.input,{...i,ref:s})});l.displayName="FieldInput";const{withContext:D}=F.createRecipeContext({key:"input"}),B=D(l),G={sm:"xs",md:"sm",lg:"md"},d=k.default.forwardRef(({charLimit:t=void 0,clearable:s=!1,disabled:r=!1,inputRef:i,invalid:x,leftAddon:m,leftElement:f,onClear:a,onContrast:C,rightAddon:_,rightElement:c,size:p="md",value:n,["data-testid"]:o="kibble-text-input",...h},j)=>{const I=()=>{a&&a(n||"")};s&&n&&!r&&(c=e.jsxRuntimeExports.jsx(q.Button,{className:"TextInput__ClearButton","data-testid":`${o}-clear-button`,size:G[p],variant:"ghostNeutral",onClick:I,iconName:"close"}));const R=u.useMemo(()=>n?.toString()?.length||0,[n]);return e.jsxRuntimeExports.jsxs(N.Flex,{className:"TextInput__Wrapper",w:"100%",flexDirection:"column",gap:1,alignItems:"flex-end",children:[e.jsxRuntimeExports.jsx(w.InputGroup,{className:"TextInput__InputGroup","data-testid":`${o}-input-group`,startElement:f,startElementProps:{color:"inherit",_groupDisabled:{opacity:.6}},endElement:c,endElementProps:{color:"inherit",paddingInline:1.5,_groupDisabled:{opacity:.6}},startAddon:m,endAddon:_,children:e.jsxRuntimeExports.jsx(B,{"data-testid":o,className:"TextInput",ref:i||j,value:n,size:p,disabled:r,...x&&{"aria-invalid":!0},variant:C?"onContrast":"default",...h})}),!!t&&e.jsxRuntimeExports.jsx(E.CharacterCounter,{"data-testid":`${o}-character-counter`,withLimit:!0,limit:t,currentCount:R})]})});d.displayName="TextInput";const M=g.withFormControl(d);exports.WrappedTextInput=M;
2
+ //# sourceMappingURL=textInput.component-C1vwy6pL.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textInput.component-D_MEzg3q.js","sources":["../../node_modules/@ark-ui/react/dist/components/field/field-input.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input.js","../../src/components/TextInput/textInput.records.ts","../../src/components/TextInput/textInput.component.tsx"],"sourcesContent":["'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldInput = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field?.getInputProps(), props);\n return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });\n});\nFieldInput.displayName = \"FieldInput\";\n\nexport { FieldInput };\n","\"use strict\";\n\"use client\";\nimport { Field } from '@ark-ui/react/field';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"input\"\n});\nconst Input = withContext(Field.Input);\nconst InputPropsProvider = PropsProvider;\n\nexport { Input, InputPropsProvider };\n","import { ButtonSize } from 'components/Button/button.types';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\n\nexport const closeButtonSizeMap: Record<FormControlSize, ButtonSize> = {\n sm: 'xs',\n md: 'sm',\n lg: 'md',\n};\n","import React, { useMemo } from 'react';\nimport { Flex } from '@chakra-ui/react/flex';\nimport { withFormControl, WithFormControlProps } from 'hocs/withFormControl/withFormControl';\nimport { Input as CInput, InputProps as CInputProps } from '@chakra-ui/react/input';\nimport { InputGroup } from '@chakra-ui/react/input-group';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\nimport { Button } from 'components/Button/button.component';\nimport { CharacterCounter } from 'components/CharacterCounter/characterCounter.component';\nimport { closeButtonSizeMap } from './textInput.records';\n\nexport interface TextInputBaseProps extends WithFormControlProps {\n /** The maximum number of characters that can be entered into the input. */\n charLimit?: number;\n /** Ref to the input element. */\n inputRef?: React.Ref<HTMLInputElement | null>;\n /** Left addon element. */\n leftAddon?: React.ReactNode;\n /** Left element inside the input. */\n leftElement?: React.ReactNode;\n /**\n * If true, the input will render a contrasting variant.\n * @default false\n */\n onContrast?: boolean;\n /** Placeholder text for the input field. */\n placeholder?: string;\n /** Right addon element. */\n rightAddon?: React.ReactNode;\n /** Right element inside the input. */\n rightElement?: React.ReactNode;\n /** The size of the input. */\n size?: FormControlSize;\n /**\n * Data test id for the text input.\n * @default kibble-text-input\n */\n 'data-testid'?: string;\n}\n\nexport interface DefaultTextInputProps extends TextInputBaseProps {\n /**\n * If true, the input will have a button to clear out the field.\n * @default false\n */\n clearable?: never;\n /** Callback function when the clear button is clicked. */\n onClear?: never;\n}\n\nexport interface ClearableTextInputProps extends TextInputBaseProps {\n /**\n * If true, the input will have a button to clear out the field.\n * @default false\n */\n clearable?: boolean;\n /** Callback function when the clear button is clicked. */\n onClear?: (val: string | number | readonly string[]) => void;\n}\n\nexport type KTextInputProps = DefaultTextInputProps | ClearableTextInputProps;\n\nexport type TextInputProps = KTextInputProps & CInputProps;\n\nconst TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(\n (\n {\n charLimit = undefined,\n clearable = false,\n disabled = false,\n inputRef,\n invalid,\n leftAddon,\n leftElement,\n onClear,\n onContrast,\n rightAddon,\n rightElement,\n size = 'md',\n value,\n ['data-testid']: dataTestId = 'kibble-text-input',\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const handleClear = (): void => {\n if (onClear) {\n onClear(value || '');\n }\n };\n\n if (clearable && !!value && !disabled) {\n rightElement = (\n <Button\n className=\"TextInput__ClearButton\"\n data-testid={`${dataTestId}-clear-button`}\n size={closeButtonSizeMap[size as FormControlSize]}\n variant=\"ghostNeutral\"\n onClick={handleClear}\n iconName=\"close\"\n />\n );\n }\n\n const currentCharCount = useMemo(() => value?.toString()?.length || 0, [value]);\n\n return (\n <Flex className=\"TextInput__Wrapper\" w=\"100%\" flexDirection=\"column\" gap={1} alignItems=\"flex-end\">\n <InputGroup\n className=\"TextInput__InputGroup\"\n data-testid={`${dataTestId}-input-group`}\n startElement={leftElement}\n startElementProps={{\n color: 'inherit',\n _groupDisabled: { opacity: 0.6 },\n }}\n endElement={rightElement}\n endElementProps={{\n color: 'inherit',\n paddingInline: 1.5,\n _groupDisabled: { opacity: 0.6 },\n }}\n startAddon={leftAddon}\n endAddon={rightAddon}\n >\n <CInput\n data-testid={dataTestId}\n className=\"TextInput\"\n ref={inputRef || ref}\n value={value}\n size={size}\n disabled={disabled}\n {...(invalid && { 'aria-invalid': true })}\n variant={onContrast ? 'onContrast' : 'default'}\n {...rest}\n />\n </InputGroup>\n {!!charLimit && (\n <CharacterCounter\n data-testid={`${dataTestId}-character-counter`}\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nTextInput.displayName = 'TextInput';\nconst WrappedTextInput = withFormControl<TextInputProps>(TextInput);\n\nexport { WrappedTextInput as TextInput };\n"],"names":["FieldInput","forwardRef","props","ref","field","useFieldContext","mergedProps","mergeProps","jsx","ark","withContext","createRecipeContext","Input","Field.Input","closeButtonSizeMap","TextInput","React","charLimit","clearable","disabled","inputRef","invalid","leftAddon","leftElement","onClear","onContrast","rightAddon","rightElement","size","value","dataTestId","rest","handleClear","Button","currentCharCount","useMemo","jsxs","Flex","InputGroup","CInput","CharacterCounter","WrappedTextInput","withFormControl"],"mappings":"wfAOMA,EAAaC,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAC5C,MAAMC,EAAQC,EAAAA,gBAAiB,EACzBC,EAAcC,EAAU,WAACH,GAA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e,IACf,eAAgB,CAAE,QAAS,EAAI,CACjC,EACA,WAAYL,EACZ,SAAUI,EAEV,SAAAlB,EAAA,kBAAA,IAAC+B,EAAA,CACC,cAAaT,EACb,UAAU,YACV,IAAKV,GAAYjB,EACjB,MAAA0B,EACA,KAAAD,EACA,SAAAT,EACC,GAAIE,GAAW,CAAE,eAAgB,EAAK,EACvC,QAASI,EAAa,aAAe,UACpC,GAAGM,CAAA,CAAA,CACN,CACF,EACC,CAAC,CAACd,GACDT,EAAA,kBAAA,IAACgC,EAAA,iBAAA,CACC,cAAa,GAAGV,CAAU,qBAC1B,UAAW,GACX,MAAOb,EACP,aAAciB,CAAA,CAAA,CAChB,EAEJ,CAAA,CAGN,EAEAnB,EAAU,YAAc,YAClB,MAAA0B,EAAmBC,kBAAgC3B,CAAS","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"textInput.component-C1vwy6pL.js","sources":["../../node_modules/@ark-ui/react/dist/components/field/field-input.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input.js","../../src/components/TextInput/textInput.records.ts","../../src/components/TextInput/textInput.component.tsx"],"sourcesContent":["'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldInput = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field?.getInputProps(), props);\n return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });\n});\nFieldInput.displayName = \"FieldInput\";\n\nexport { FieldInput };\n","\"use strict\";\n\"use client\";\nimport { Field } from '@ark-ui/react/field';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"input\"\n});\nconst Input = withContext(Field.Input);\nconst InputPropsProvider = PropsProvider;\n\nexport { Input, InputPropsProvider };\n","import { ButtonSize } from 'components/Button/button.types';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\n\nexport const closeButtonSizeMap: Record<FormControlSize, ButtonSize> = {\n sm: 'xs',\n md: 'sm',\n lg: 'md',\n};\n","import React, { useMemo } from 'react';\nimport { Flex } from '@chakra-ui/react/flex';\nimport { withFormControl, WithFormControlProps } from 'hocs/withFormControl/withFormControl';\nimport { Input as CInput, InputProps as CInputProps } from '@chakra-ui/react/input';\nimport { InputGroup } from '@chakra-ui/react/input-group';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\nimport { Button } from 'components/Button/button.component';\nimport { CharacterCounter } from 'components/CharacterCounter/characterCounter.component';\nimport { closeButtonSizeMap } from './textInput.records';\n\nexport interface TextInputBaseProps extends WithFormControlProps {\n /** The maximum number of characters that can be entered into the input. */\n charLimit?: number;\n /** Ref to the input element. */\n inputRef?: React.Ref<HTMLInputElement | null>;\n /** Left addon element. */\n leftAddon?: React.ReactNode;\n /** Left element inside the input. */\n leftElement?: React.ReactNode;\n /**\n * If true, the input will render a contrasting variant.\n * @default false\n */\n onContrast?: boolean;\n /** Placeholder text for the input field. */\n placeholder?: string;\n /** Right addon element. */\n rightAddon?: React.ReactNode;\n /** Right element inside the input. */\n rightElement?: React.ReactNode;\n /** The size of the input. */\n size?: FormControlSize;\n /**\n * Data test id for the text input.\n * @default kibble-text-input\n */\n 'data-testid'?: string;\n}\n\nexport interface DefaultTextInputProps extends TextInputBaseProps {\n /**\n * If true, the input will have a button to clear out the field.\n * @default false\n */\n clearable?: never;\n /** Callback function when the clear button is clicked. */\n onClear?: never;\n}\n\nexport interface ClearableTextInputProps extends TextInputBaseProps {\n /**\n * If true, the input will have a button to clear out the field.\n * @default false\n */\n clearable?: boolean;\n /** Callback function when the clear button is clicked. */\n onClear?: (val: string | number | readonly string[]) => void;\n}\n\nexport type KTextInputProps = DefaultTextInputProps | ClearableTextInputProps;\n\nexport type TextInputProps = KTextInputProps & CInputProps;\n\nconst TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(\n (\n {\n charLimit = undefined,\n clearable = false,\n disabled = false,\n inputRef,\n invalid,\n leftAddon,\n leftElement,\n onClear,\n onContrast,\n rightAddon,\n rightElement,\n size = 'md',\n value,\n ['data-testid']: dataTestId = 'kibble-text-input',\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const handleClear = (): void => {\n if (onClear) {\n onClear(value || '');\n }\n };\n\n if (clearable && !!value && !disabled) {\n rightElement = (\n <Button\n className=\"TextInput__ClearButton\"\n data-testid={`${dataTestId}-clear-button`}\n size={closeButtonSizeMap[size as FormControlSize]}\n variant=\"ghostNeutral\"\n onClick={handleClear}\n iconName=\"close\"\n />\n );\n }\n\n const currentCharCount = useMemo(() => value?.toString()?.length || 0, [value]);\n\n return (\n <Flex className=\"TextInput__Wrapper\" w=\"100%\" flexDirection=\"column\" gap={1} alignItems=\"flex-end\">\n <InputGroup\n className=\"TextInput__InputGroup\"\n data-testid={`${dataTestId}-input-group`}\n startElement={leftElement}\n startElementProps={{\n color: 'inherit',\n _groupDisabled: { opacity: 0.6 },\n }}\n endElement={rightElement}\n endElementProps={{\n color: 'inherit',\n paddingInline: 1.5,\n _groupDisabled: { opacity: 0.6 },\n }}\n startAddon={leftAddon}\n endAddon={rightAddon}\n >\n <CInput\n data-testid={dataTestId}\n className=\"TextInput\"\n ref={inputRef || ref}\n value={value}\n size={size}\n disabled={disabled}\n {...(invalid && { 'aria-invalid': true })}\n variant={onContrast ? 'onContrast' : 'default'}\n {...rest}\n />\n </InputGroup>\n {!!charLimit && (\n <CharacterCounter\n data-testid={`${dataTestId}-character-counter`}\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nTextInput.displayName = 'TextInput';\nconst WrappedTextInput = withFormControl<TextInputProps>(TextInput);\n\nexport { WrappedTextInput as TextInput };\n"],"names":["FieldInput","forwardRef","props","ref","field","useFieldContext","mergedProps","mergeProps","jsx","ark","withContext","createRecipeContext","Input","Field.Input","closeButtonSizeMap","TextInput","React","charLimit","clearable","disabled","inputRef","invalid","leftAddon","leftElement","onClear","onContrast","rightAddon","rightElement","size","value","dataTestId","rest","handleClear","Button","currentCharCount","useMemo","jsxs","Flex","InputGroup","CInput","CharacterCounter","WrappedTextInput","withFormControl"],"mappings":"wfAOMA,EAAaC,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,CAC/D,CAAC,EACDH,EAAW,YAAc,aCPzB,KAAM,CAAE,YAAAU,CAA2B,EAAIC,sBAAoB,CACzD,IAAK,OACP,CAAC,EACKC,EAAQF,EAAYG,CAAW,ECLxBC,EAA0D,CACrE,GAAI,KACJ,GAAI,KACJ,GAAI,IACN,ECwDMC,EAAYC,EAAM,QAAA,WACtB,CACE,CACE,UAAAC,EAAY,OACZ,UAAAC,EAAY,GACZ,SAAAC,EAAW,GACX,SAAAC,EACA,QAAAC,EACA,UAAAC,EACA,YAAAC,EACA,QAAAC,EACA,WAAAC,EACA,WAAAC,EACA,aAAAC,EACA,KAAAC,EAAO,KACP,MAAAC,EACA,CAAC,eAAgBC,EAAa,oBAC9B,GAAGC,GAEL5B,IACsB,CACtB,MAAM6B,EAAc,IAAY,CAC1BR,GACFA,EAAQK,GAAS,EAAE,CAEvB,EAEIX,GAAeW,GAAS,CAACV,IAEzBQ,EAAAnB,EAAA,kBAAA,IAACyB,EAAA,OAAA,CACC,UAAU,yBACV,cAAa,GAAGH,CAAU,gBAC1B,KAAMhB,EAAmBc,CAAuB,EAChD,QAAQ,eACR,QAASI,EACT,SAAS,OAAA,CACX,GAIE,MAAAE,EAAmBC,UAAQ,IAAMN,GAAO,YAAY,QAAU,EAAG,CAACA,CAAK,CAAC,EAG5E,OAAAO,EAAA,kBAAA,KAACC,EAAK,KAAA,CAAA,UAAU,qBAAqB,EAAE,OAAO,cAAc,SAAS,IAAK,EAAG,WAAW,WACtF,SAAA,CAAA7B,EAAA,kBAAA,IAAC8B,EAAA,WAAA,CACC,UAAU,wBACV,cAAa,GAAGR,CAAU,eAC1B,aAAcP,EACd,kBAAmB,CACjB,MAAO,UACP,eAAgB,CAAE,QAAS,EAAI,CACjC,EACA,WAAYI,EACZ,gBAAiB,CACf,MAAO,UACP,cAAe,IACf,eAAgB,CAAE,QAAS,EAAI,CACjC,EACA,WAAYL,EACZ,SAAUI,EAEV,SAAAlB,EAAA,kBAAA,IAAC+B,EAAA,CACC,cAAaT,EACb,UAAU,YACV,IAAKV,GAAYjB,EACjB,MAAA0B,EACA,KAAAD,EACA,SAAAT,EACC,GAAIE,GAAW,CAAE,eAAgB,EAAK,EACvC,QAASI,EAAa,aAAe,UACpC,GAAGM,CAAA,CAAA,CACN,CACF,EACC,CAAC,CAACd,GACDT,EAAA,kBAAA,IAACgC,EAAA,iBAAA,CACC,cAAa,GAAGV,CAAU,qBAC1B,UAAW,GACX,MAAOb,EACP,aAAciB,CAAA,CAAA,CAChB,EAEJ,CAAA,CAGN,EAEAnB,EAAU,YAAc,YAClB,MAAA0B,EAAmBC,kBAAgC3B,CAAS","x_google_ignoreList":[0,1]}
@@ -1,2 +1,2 @@
1
- "use strict";const l=require("./jsx-runtime-BjDatQAs.js"),c=require("react"),h=require("./withFormControl-BlRmmpmv.js"),v=require("./characterCounter.component-CKAR4aCe.js"),w=require("./flex-BOU6tYUd.js"),b=require("./create-recipe-context-CDw-39SC.js"),p=require("./index-CQURjLlA.js"),x=require("./use-locale-context-ym21RUxU.js"),C=require("./use-field-context-Cm29IQ7H.js"),F=e=>e&&e.__esModule?e:{default:e},y=F(c);var R=e=>{if(!e)return;const t=p.getComputedStyle(e),o=p.getWindow(e),i=p.getDocument(e),r=()=>{requestAnimationFrame(()=>{e.style.height="auto";let a;t.boxSizing==="content-box"?a=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):a=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&a>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),a=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${a}px`})};e.addEventListener("input",r),e.form?.addEventListener("reset",r);const n=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(n,"value");Object.defineProperty(e,"value",{...s,set(){s?.set?.apply(this,arguments),r()}});const d=new o.ResizeObserver(()=>{requestAnimationFrame(()=>r())});d.observe(e);const u=new o.MutationObserver(()=>r());return u.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),i.fonts?.addEventListener("loadingdone",r),()=>{e.removeEventListener("input",r),e.form?.removeEventListener("reset",r),i.fonts?.removeEventListener("loadingdone",r),d.disconnect(),u.disconnect()}};const m=c.forwardRef((e,t)=>{const{autoresize:o,...i}=e,r=c.useRef(null),n=C.useFieldContext(),s=p.mergeProps(n?.getTextareaProps(),{style:{resize:o?"none":void 0}},i);return c.useEffect(()=>{if(o)return R(r.current)},[o]),l.jsxRuntimeExports.jsx(x.ark.textarea,{...s,ref:x.composeRefs(t,r)})});m.displayName="FieldTextarea";const{withContext:j}=b.createRecipeContext({key:"textarea"}),T=j(m),f=y.default.forwardRef(({charLimit:e=void 0,invalid:t,onContrast:o,resize:i="none",textareaRef:r,value:n,["data-testid"]:s="kibble-textarea",...d},u)=>{const a=o?"onContrast":"default",g=c.useMemo(()=>n?.toString()?.length||0,[n]);return l.jsxRuntimeExports.jsxs(w.Flex,{className:"Textarea__Wrapper",flexDirection:"column",w:"100%",gap:1,alignItems:"flex-end",children:[l.jsxRuntimeExports.jsx(T,{className:"Textarea","data-testid":s,ref:r||u,resize:i,variant:a,value:n,...t&&{"aria-invalid":!0},minH:"140px",...d}),!!e&&l.jsxRuntimeExports.jsx(v.CharacterCounter,{"data-testid":`${s}-character-counter`,withLimit:!0,limit:e,currentCount:g})]})});f.displayName="Textarea";const q=h.withFormControl(f);exports.WrappedTextarea=q;
2
- //# sourceMappingURL=textarea.component-DYCiC_cs.js.map
1
+ "use strict";const l=require("./jsx-runtime-BjDatQAs.js"),c=require("react"),h=require("./withFormControl-wZA87Sd4.js"),v=require("./characterCounter.component-CKDigkoD.js"),w=require("./flex-BOU6tYUd.js"),b=require("./create-recipe-context-CDw-39SC.js"),p=require("./index-CQURjLlA.js"),x=require("./use-locale-context-ym21RUxU.js"),C=require("./use-field-context-Cm29IQ7H.js"),F=e=>e&&e.__esModule?e:{default:e},y=F(c);var R=e=>{if(!e)return;const t=p.getComputedStyle(e),o=p.getWindow(e),i=p.getDocument(e),r=()=>{requestAnimationFrame(()=>{e.style.height="auto";let a;t.boxSizing==="content-box"?a=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):a=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&a>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),a=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${a}px`})};e.addEventListener("input",r),e.form?.addEventListener("reset",r);const n=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(n,"value");Object.defineProperty(e,"value",{...s,set(){s?.set?.apply(this,arguments),r()}});const d=new o.ResizeObserver(()=>{requestAnimationFrame(()=>r())});d.observe(e);const u=new o.MutationObserver(()=>r());return u.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),i.fonts?.addEventListener("loadingdone",r),()=>{e.removeEventListener("input",r),e.form?.removeEventListener("reset",r),i.fonts?.removeEventListener("loadingdone",r),d.disconnect(),u.disconnect()}};const m=c.forwardRef((e,t)=>{const{autoresize:o,...i}=e,r=c.useRef(null),n=C.useFieldContext(),s=p.mergeProps(n?.getTextareaProps(),{style:{resize:o?"none":void 0}},i);return c.useEffect(()=>{if(o)return R(r.current)},[o]),l.jsxRuntimeExports.jsx(x.ark.textarea,{...s,ref:x.composeRefs(t,r)})});m.displayName="FieldTextarea";const{withContext:j}=b.createRecipeContext({key:"textarea"}),T=j(m),f=y.default.forwardRef(({charLimit:e=void 0,invalid:t,onContrast:o,resize:i="none",textareaRef:r,value:n,["data-testid"]:s="kibble-textarea",...d},u)=>{const a=o?"onContrast":"default",g=c.useMemo(()=>n?.toString()?.length||0,[n]);return l.jsxRuntimeExports.jsxs(w.Flex,{className:"Textarea__Wrapper",flexDirection:"column",w:"100%",gap:1,alignItems:"flex-end",children:[l.jsxRuntimeExports.jsx(T,{className:"Textarea","data-testid":s,ref:r||u,resize:i,variant:a,value:n,...t&&{"aria-invalid":!0},minH:"140px",...d}),!!e&&l.jsxRuntimeExports.jsx(v.CharacterCounter,{"data-testid":`${s}-character-counter`,withLimit:!0,limit:e,currentCount:g})]})});f.displayName="Textarea";const q=h.withFormControl(f);exports.WrappedTextarea=q;
2
+ //# sourceMappingURL=textarea.component-D15hA9Jb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.component-DYCiC_cs.js","sources":["../../node_modules/@zag-js/auto-resize/dist/index.mjs","../../node_modules/@ark-ui/react/dist/components/field/field-textarea.js","../../node_modules/@chakra-ui/react/dist/esm/components/textarea/textarea.js","../../src/components/Textarea/textarea.component.tsx"],"sourcesContent":["import { getDocument, getWindow, getComputedStyle } from '@zag-js/dom-query';\n\n// src/autoresize-input.ts\nfunction getVisualStyles(node) {\n if (!node) return;\n const style = getComputedStyle(node);\n return \"box-sizing:\" + style.boxSizing + \";border-left:\" + style.borderLeftWidth + \" solid red;border-right:\" + style.borderRightWidth + \" solid red;font-family:\" + style.fontFamily + \";font-feature-settings:\" + style.fontFeatureSettings + \";font-kerning:\" + style.fontKerning + \";font-size:\" + style.fontSize + \";font-stretch:\" + style.fontStretch + \";font-style:\" + style.fontStyle + \";font-variant:\" + style.fontVariant + \";font-variant-caps:\" + style.fontVariantCaps + \";font-variant-ligatures:\" + style.fontVariantLigatures + \";font-variant-numeric:\" + style.fontVariantNumeric + \";font-weight:\" + style.fontWeight + \";letter-spacing:\" + style.letterSpacing + \";margin-left:\" + style.marginLeft + \";margin-right:\" + style.marginRight + \";padding-left:\" + style.paddingLeft + \";padding-right:\" + style.paddingRight + \";text-indent:\" + style.textIndent + \";text-transform:\" + style.textTransform;\n}\n\n// src/autoresize-input.ts\nfunction createGhostElement(doc) {\n var el = doc.createElement(\"div\");\n el.id = \"ghost\";\n el.style.cssText = \"display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;\";\n doc.body.appendChild(el);\n return el;\n}\nfunction autoResizeInput(input) {\n if (!input) return;\n const doc = getDocument(input);\n const win = getWindow(input);\n const ghost = createGhostElement(doc);\n const cssText = getVisualStyles(input);\n if (cssText) ghost.style.cssText += cssText;\n function resize() {\n win.requestAnimationFrame(() => {\n ghost.innerHTML = input.value;\n const rect = win.getComputedStyle(ghost);\n input?.style.setProperty(\"width\", rect.width);\n });\n }\n resize();\n input?.addEventListener(\"input\", resize);\n input?.addEventListener(\"change\", resize);\n return () => {\n doc.body.removeChild(ghost);\n input?.removeEventListener(\"input\", resize);\n input?.removeEventListener(\"change\", resize);\n };\n}\nvar autoresizeTextarea = (el) => {\n if (!el) return;\n const style = getComputedStyle(el);\n const win = getWindow(el);\n const doc = getDocument(el);\n const resize = () => {\n requestAnimationFrame(() => {\n el.style.height = \"auto\";\n let newHeight;\n if (style.boxSizing === \"content-box\") {\n newHeight = el.scrollHeight - (parseFloat(style.paddingTop) + parseFloat(style.paddingBottom));\n } else {\n newHeight = el.scrollHeight + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);\n }\n if (style.maxHeight !== \"none\" && newHeight > parseFloat(style.maxHeight)) {\n if (style.overflowY === \"hidden\") {\n el.style.overflowY = \"scroll\";\n }\n newHeight = parseFloat(style.maxHeight);\n } else if (style.overflowY !== \"hidden\") {\n el.style.overflowY = \"hidden\";\n }\n el.style.height = `${newHeight}px`;\n });\n };\n el.addEventListener(\"input\", resize);\n el.form?.addEventListener(\"reset\", resize);\n const elementPrototype = Object.getPrototypeOf(el);\n const descriptor = Object.getOwnPropertyDescriptor(elementPrototype, \"value\");\n Object.defineProperty(el, \"value\", {\n ...descriptor,\n set() {\n descriptor?.set?.apply(this, arguments);\n resize();\n }\n });\n const resizeObserver = new win.ResizeObserver(() => {\n requestAnimationFrame(() => resize());\n });\n resizeObserver.observe(el);\n const attrObserver = new win.MutationObserver(() => resize());\n attrObserver.observe(el, { attributes: true, attributeFilter: [\"rows\", \"placeholder\"] });\n doc.fonts?.addEventListener(\"loadingdone\", resize);\n return () => {\n el.removeEventListener(\"input\", resize);\n el.form?.removeEventListener(\"reset\", resize);\n doc.fonts?.removeEventListener(\"loadingdone\", resize);\n resizeObserver.disconnect();\n attrObserver.disconnect();\n };\n};\n\nexport { autoResizeInput, autoresizeTextarea };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { autoresizeTextarea } from '@zag-js/auto-resize';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef, useRef, useEffect } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldTextarea = forwardRef((props, ref) => {\n const { autoresize, ...textareaProps } = props;\n const textareaRef = useRef(null);\n const field = useFieldContext();\n const mergedProps = mergeProps(\n field?.getTextareaProps(),\n { style: { resize: autoresize ? \"none\" : void 0 } },\n textareaProps\n );\n useEffect(() => {\n if (!autoresize) return;\n return autoresizeTextarea(textareaRef.current);\n }, [autoresize]);\n return /* @__PURE__ */ jsx(ark.textarea, { ...mergedProps, ref: composeRefs(ref, textareaRef) });\n});\nFieldTextarea.displayName = \"FieldTextarea\";\n\nexport { FieldTextarea };\n","\"use strict\";\n\"use client\";\nimport { Field } from '@ark-ui/react/field';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"textarea\"\n});\nconst Textarea = withContext(\n Field.Textarea\n);\nconst TextareaPropsProvider = PropsProvider;\n\nexport { Textarea, TextareaPropsProvider };\n","import React, { useMemo } from 'react';\nimport { Textarea as CTextarea, TextareaProps as CTextareaProps } from '@chakra-ui/react/textarea';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\nimport { withFormControl, WithFormControlProps } from 'hocs/withFormControl/withFormControl';\nimport { Flex } from '@chakra-ui/react/flex';\nimport { CharacterCounter } from 'components/CharacterCounter/characterCounter.component';\n\nexport interface TextareaProps extends WithFormControlProps, CTextareaProps {\n /** The maximum number of characters that can be entered into the textarea. */\n charLimit?: number;\n /** Ref to the textarea element. */\n textareaRef?: React.Ref<HTMLTextAreaElement | null>;\n /** Placeholder text for the textarea. */\n placeholder?: string;\n /**\n * The size of the textarea.\n * @default md\n */\n size?: FormControlSize;\n /**\n * Data test id for the textarea.\n * @default kibble-textarea\n */\n 'data-testid'?: string;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n {\n charLimit = undefined,\n invalid,\n onContrast,\n resize = 'none',\n textareaRef,\n value,\n ['data-testid']: dataTestId = 'kibble-textarea',\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = onContrast ? 'onContrast' : 'default';\n\n const currentCharCount = useMemo(() => value?.toString()?.length || 0, [value]);\n\n return (\n <Flex className=\"Textarea__Wrapper\" flexDirection=\"column\" w=\"100%\" gap={1} alignItems=\"flex-end\">\n <CTextarea\n className=\"Textarea\"\n data-testid={dataTestId}\n ref={textareaRef || ref}\n resize={resize}\n variant={_computedVariant}\n value={value}\n {...(invalid && { 'aria-invalid': true })}\n minH=\"140px\"\n {...rest}\n />\n {!!charLimit && (\n <CharacterCounter\n data-testid={`${dataTestId}-character-counter`}\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nTextarea.displayName = 'Textarea';\nconst WrappedTextarea = withFormControl<TextareaProps>(Textarea);\n\nexport { WrappedTextarea as Textarea };\n"],"names":["autoresizeTextarea","el","style","getComputedStyle","win","getWindow","doc","getDocument","resize","newHeight","elementPrototype","descriptor","resizeObserver","attrObserver","FieldTextarea","forwardRef","props","ref","autoresize","textareaProps","textareaRef","useRef","field","useFieldContext","mergedProps","mergeProps","useEffect","jsx","ark","composeRefs","withContext","createRecipeContext","Textarea","Field.Textarea","React","charLimit","invalid","onContrast","value","dataTestId","rest","_computedVariant","currentCharCount","useMemo","jsxs","Flex","CTextarea","CharacterCounter","WrappedTextarea","withFormControl"],"mappings":"qaAwCA,IAAIA,EAAsBC,GAAO,CAC/B,GAAI,CAACA,EAAI,OACT,MAAMC,EAAQC,EAAgB,iBAACF,CAAE,EAC3BG,EAAMC,EAAS,UAACJ,CAAE,EAClBK,EAAMC,EAAW,YAACN,CAAE,EACpBO,EAAS,IAAM,CACnB,sBAAsB,IAAM,CAC1BP,EAAG,MAAM,OAAS,OAClB,IAAIQ,EACAP,EAAM,YAAc,cACtBO,EAAYR,EAAG,cAAgB,WAAWC,EAAM,UAAU,EAAI,WAAWA,EAAM,aAAa,GAE5FO,EAAYR,EAAG,aAAe,WAAWC,EAAM,cAAc,EAAI,WAAWA,EAAM,iBAAiB,EAEjGA,EAAM,YAAc,QAAUO,EAAY,WAAWP,EAAM,SAAS,GAClEA,EAAM,YAAc,WACtBD,EAAG,MAAM,UAAY,UAEvBQ,EAAY,WAAWP,EAAM,SAAS,GAC7BA,EAAM,YAAc,WAC7BD,EAAG,MAAM,UAAY,UAEvBA,EAAG,MAAM,OAAS,GAAGQ,CAAS,IACpC,CAAK,CACF,EACDR,EAAG,iBAAiB,QAASO,CAAM,EACnCP,EAAG,MAAM,iBAAiB,QAASO,CAAM,EACzC,MAAME,EAAmB,OAAO,eAAeT,CAAE,EAC3CU,EAAa,OAAO,yBAAyBD,EAAkB,OAAO,EAC5E,OAAO,eAAeT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ACE,UAAAC,EAAY,OACZ,QAAAC,EACA,WAAAC,EACA,OAAA7B,EAAS,OACT,YAAAY,EACA,MAAAkB,EACA,CAAC,eAAgBC,EAAa,kBAC9B,GAAGC,GAELvB,IACsB,CAChB,MAAAwB,EAAmBJ,EAAa,aAAe,UAE/CK,EAAmBC,UAAQ,IAAML,GAAO,YAAY,QAAU,EAAG,CAACA,CAAK,CAAC,EAG5E,OAAAM,EAAA,kBAAA,KAACC,EAAK,KAAA,CAAA,UAAU,oBAAoB,cAAc,SAAS,EAAE,OAAO,IAAK,EAAG,WAAW,WACrF,SAAA,CAAAlB,EAAA,kBAAA,IAACmB,EAAA,CACC,UAAU,WACV,cAAaP,EACb,IAAKnB,GAAeH,EACpB,OAAAT,EACA,QAASiC,EACT,MAAAH,EACC,GAAIF,GAAW,CAAE,eAAgB,EAAK,EACvC,KAAK,QACJ,GAAGI,CAAA,CACN,EACC,CAAC,CAACL,GACDR,EAAA,kBAAA,IAACoB,EAAA,iBAAA,CACC,cAAa,GAAGR,CAAU,qBAC1B,UAAW,GACX,MAAOJ,EACP,aAAcO,CAAA,CAAA,CAChB,EAEJ,CAAA,CAGN,EAEAV,EAAS,YAAc,WACjB,MAAAgB,EAAkBC,kBAA+BjB,CAAQ","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"textarea.component-D15hA9Jb.js","sources":["../../node_modules/@zag-js/auto-resize/dist/index.mjs","../../node_modules/@ark-ui/react/dist/components/field/field-textarea.js","../../node_modules/@chakra-ui/react/dist/esm/components/textarea/textarea.js","../../src/components/Textarea/textarea.component.tsx"],"sourcesContent":["import { getDocument, getWindow, getComputedStyle } from '@zag-js/dom-query';\n\n// src/autoresize-input.ts\nfunction getVisualStyles(node) {\n if (!node) return;\n const style = getComputedStyle(node);\n return \"box-sizing:\" + style.boxSizing + \";border-left:\" + style.borderLeftWidth + \" solid red;border-right:\" + style.borderRightWidth + \" solid red;font-family:\" + style.fontFamily + \";font-feature-settings:\" + style.fontFeatureSettings + \";font-kerning:\" + style.fontKerning + \";font-size:\" + style.fontSize + \";font-stretch:\" + style.fontStretch + \";font-style:\" + style.fontStyle + \";font-variant:\" + style.fontVariant + \";font-variant-caps:\" + style.fontVariantCaps + \";font-variant-ligatures:\" + style.fontVariantLigatures + \";font-variant-numeric:\" + style.fontVariantNumeric + \";font-weight:\" + style.fontWeight + \";letter-spacing:\" + style.letterSpacing + \";margin-left:\" + style.marginLeft + \";margin-right:\" + style.marginRight + \";padding-left:\" + style.paddingLeft + \";padding-right:\" + style.paddingRight + \";text-indent:\" + style.textIndent + \";text-transform:\" + style.textTransform;\n}\n\n// src/autoresize-input.ts\nfunction createGhostElement(doc) {\n var el = doc.createElement(\"div\");\n el.id = \"ghost\";\n el.style.cssText = \"display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;\";\n doc.body.appendChild(el);\n return el;\n}\nfunction autoResizeInput(input) {\n if (!input) return;\n const doc = getDocument(input);\n const win = getWindow(input);\n const ghost = createGhostElement(doc);\n const cssText = getVisualStyles(input);\n if (cssText) ghost.style.cssText += cssText;\n function resize() {\n win.requestAnimationFrame(() => {\n ghost.innerHTML = input.value;\n const rect = win.getComputedStyle(ghost);\n input?.style.setProperty(\"width\", rect.width);\n });\n }\n resize();\n input?.addEventListener(\"input\", resize);\n input?.addEventListener(\"change\", resize);\n return () => {\n doc.body.removeChild(ghost);\n input?.removeEventListener(\"input\", resize);\n input?.removeEventListener(\"change\", resize);\n };\n}\nvar autoresizeTextarea = (el) => {\n if (!el) return;\n const style = getComputedStyle(el);\n const win = getWindow(el);\n const doc = getDocument(el);\n const resize = () => {\n requestAnimationFrame(() => {\n el.style.height = \"auto\";\n let newHeight;\n if (style.boxSizing === \"content-box\") {\n newHeight = el.scrollHeight - (parseFloat(style.paddingTop) + parseFloat(style.paddingBottom));\n } else {\n newHeight = el.scrollHeight + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);\n }\n if (style.maxHeight !== \"none\" && newHeight > parseFloat(style.maxHeight)) {\n if (style.overflowY === \"hidden\") {\n el.style.overflowY = \"scroll\";\n }\n newHeight = parseFloat(style.maxHeight);\n } else if (style.overflowY !== \"hidden\") {\n el.style.overflowY = \"hidden\";\n }\n el.style.height = `${newHeight}px`;\n });\n };\n el.addEventListener(\"input\", resize);\n el.form?.addEventListener(\"reset\", resize);\n const elementPrototype = Object.getPrototypeOf(el);\n const descriptor = Object.getOwnPropertyDescriptor(elementPrototype, \"value\");\n Object.defineProperty(el, \"value\", {\n ...descriptor,\n set() {\n descriptor?.set?.apply(this, arguments);\n resize();\n }\n });\n const resizeObserver = new win.ResizeObserver(() => {\n requestAnimationFrame(() => resize());\n });\n resizeObserver.observe(el);\n const attrObserver = new win.MutationObserver(() => resize());\n attrObserver.observe(el, { attributes: true, attributeFilter: [\"rows\", \"placeholder\"] });\n doc.fonts?.addEventListener(\"loadingdone\", resize);\n return () => {\n el.removeEventListener(\"input\", resize);\n el.form?.removeEventListener(\"reset\", resize);\n doc.fonts?.removeEventListener(\"loadingdone\", resize);\n resizeObserver.disconnect();\n attrObserver.disconnect();\n };\n};\n\nexport { autoResizeInput, autoresizeTextarea };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { autoresizeTextarea } from '@zag-js/auto-resize';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef, useRef, useEffect } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldTextarea = forwardRef((props, ref) => {\n const { autoresize, ...textareaProps } = props;\n const textareaRef = useRef(null);\n const field = useFieldContext();\n const mergedProps = mergeProps(\n field?.getTextareaProps(),\n { style: { resize: autoresize ? \"none\" : void 0 } },\n textareaProps\n );\n useEffect(() => {\n if (!autoresize) return;\n return autoresizeTextarea(textareaRef.current);\n }, [autoresize]);\n return /* @__PURE__ */ jsx(ark.textarea, { ...mergedProps, ref: composeRefs(ref, textareaRef) });\n});\nFieldTextarea.displayName = \"FieldTextarea\";\n\nexport { FieldTextarea };\n","\"use strict\";\n\"use client\";\nimport { Field } from '@ark-ui/react/field';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"textarea\"\n});\nconst Textarea = withContext(\n Field.Textarea\n);\nconst TextareaPropsProvider = PropsProvider;\n\nexport { Textarea, TextareaPropsProvider };\n","import React, { useMemo } from 'react';\nimport { Textarea as CTextarea, TextareaProps as CTextareaProps } from '@chakra-ui/react/textarea';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\nimport { withFormControl, WithFormControlProps } from 'hocs/withFormControl/withFormControl';\nimport { Flex } from '@chakra-ui/react/flex';\nimport { CharacterCounter } from 'components/CharacterCounter/characterCounter.component';\n\nexport interface TextareaProps extends WithFormControlProps, CTextareaProps {\n /** The maximum number of characters that can be entered into the textarea. */\n charLimit?: number;\n /** Ref to the textarea element. */\n textareaRef?: React.Ref<HTMLTextAreaElement | null>;\n /** Placeholder text for the textarea. */\n placeholder?: string;\n /**\n * The size of the textarea.\n * @default md\n */\n size?: FormControlSize;\n /**\n * Data test id for the textarea.\n * @default kibble-textarea\n */\n 'data-testid'?: string;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n {\n charLimit = undefined,\n invalid,\n onContrast,\n resize = 'none',\n textareaRef,\n value,\n ['data-testid']: dataTestId = 'kibble-textarea',\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = onContrast ? 'onContrast' : 'default';\n\n const currentCharCount = useMemo(() => value?.toString()?.length || 0, [value]);\n\n return (\n <Flex className=\"Textarea__Wrapper\" flexDirection=\"column\" w=\"100%\" gap={1} alignItems=\"flex-end\">\n <CTextarea\n className=\"Textarea\"\n data-testid={dataTestId}\n ref={textareaRef || ref}\n resize={resize}\n variant={_computedVariant}\n value={value}\n {...(invalid && { 'aria-invalid': true })}\n minH=\"140px\"\n {...rest}\n />\n {!!charLimit && (\n <CharacterCounter\n data-testid={`${dataTestId}-character-counter`}\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nTextarea.displayName = 'Textarea';\nconst WrappedTextarea = withFormControl<TextareaProps>(Textarea);\n\nexport { WrappedTextarea as Textarea };\n"],"names":["autoresizeTextarea","el","style","getComputedStyle","win","getWindow","doc","getDocument","resize","newHeight","elementPrototype","descriptor","resizeObserver","attrObserver","FieldTextarea","forwardRef","props","ref","autoresize","textareaProps","textareaRef","useRef","field","useFieldContext","mergedProps","mergeProps","useEffect","jsx","ark","composeRefs","withContext","createRecipeContext","Textarea","Field.Textarea","React","charLimit","invalid","onContrast","value","dataTestId","rest","_computedVariant","currentCharCount","useMemo","jsxs","Flex","CTextarea","CharacterCounter","WrappedTextarea","withFormControl"],"mappings":"qaAwCA,IAAIA,EAAsBC,GAAO,CAC/B,GAAI,CAACA,EAAI,OACT,MAAMC,EAAQC,EAAgB,iBAACF,CAAE,EAC3BG,EAAMC,EAAS,UAACJ,CAAE,EAClBK,EAAMC,EAAW,YAACN,CAAE,EACpBO,EAAS,IAAM,CACnB,sBAAsB,IAAM,CAC1BP,EAAG,MAAM,OAAS,OAClB,IAAIQ,EACAP,EAAM,YAAc,cACtBO,EAAYR,EAAG,cAAgB,WAAWC,EAAM,UAAU,EAAI,WAAWA,EAAM,aAAa,GAE5FO,EAAYR,EAAG,aAAe,WAAWC,EAAM,cAAc,EAAI,WAAWA,EAAM,iBAAiB,EAEjGA,EAAM,YAAc,QAAUO,EAAY,WAAWP,EAAM,SAAS,GAClEA,EAAM,YAAc,WACtBD,EAAG,MAAM,UAAY,UAEvBQ,EAAY,WAAWP,EAAM,SAAS,GAC7BA,EAAM,YAAc,WAC7BD,EAAG,MAAM,UAAY,UAEvBA,EAAG,MAAM,OAAS,GAAGQ,CAAS,IACpC,CAAK,CACF,EACDR,EAAG,iBAAiB,QAASO,CAAM,EACnCP,EAAG,MAAM,iB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,YAAAgB,CAA2B,EAAIC,sBAAoB,CACzD,IAAK,UACP,CAAC,EACKC,EAAWF,EACfG,CACF,ECgBMD,EAAWE,EAAM,QAAA,WACrB,CACE,CACE,UAAAC,EAAY,OACZ,QAAAC,EACA,WAAAC,EACA,OAAA7B,EAAS,OACT,YAAAY,EACA,MAAAkB,EACA,CAAC,eAAgBC,EAAa,kBAC9B,GAAGC,GAELvB,IACsB,CAChB,MAAAwB,EAAmBJ,EAAa,aAAe,UAE/CK,EAAmBC,UAAQ,IAAML,GAAO,YAAY,QAAU,EAAG,CAACA,CAAK,CAAC,EAG5E,OAAAM,EAAA,kBAAA,KAACC,EAAK,KAAA,CAAA,UAAU,oBAAoB,cAAc,SAAS,EAAE,OAAO,IAAK,EAAG,WAAW,WACrF,SAAA,CAAAlB,EAAA,kBAAA,IAACmB,EAAA,CACC,UAAU,WACV,cAAaP,EACb,IAAKnB,GAAeH,EACpB,OAAAT,EACA,QAASiC,EACT,MAAAH,EACC,GAAIF,GAAW,CAAE,eAAgB,EAAK,EACvC,KAAK,QACJ,GAAGI,CAAA,CACN,EACC,CAAC,CAACL,GACDR,EAAA,kBAAA,IAACoB,EAAA,iBAAA,CACC,cAAa,GAAGR,CAAU,qBAC1B,UAAW,GACX,MAAOJ,EACP,aAAcO,CAAA,CAAA,CAChB,EAEJ,CAAA,CAGN,EAEAV,EAAS,YAAc,WACjB,MAAAgB,EAAkBC,kBAA+BjB,CAAQ","x_google_ignoreList":[0,1,2]}
@@ -1,7 +1,7 @@
1
1
  import { j as m } from "./jsx-runtime-C5mzlN2N.js";
2
2
  import l, { forwardRef as x, useRef as g, useEffect as h, useMemo as v } from "react";
3
- import { w } from "./withFormControl-B8dsRsaO.js";
4
- import { C as b } from "./characterCounter.component-Cd2r4VAV.js";
3
+ import { w } from "./withFormControl-DePFf9SY.js";
4
+ import { C as b } from "./characterCounter.component-Ch3P3GqC.js";
5
5
  import { F as y } from "./flex-CX-8gE9T.js";
6
6
  import { c as F } from "./create-recipe-context-DfQ-MTih.js";
7
7
  import { z as C, L as T, M as j, a6 as O } from "./index-fHSGm2nC.js";
@@ -93,4 +93,4 @@ const q = w(f);
93
93
  export {
94
94
  q as W
95
95
  };
96
- //# sourceMappingURL=textarea.component-BfNOFIoI.js.map
96
+ //# sourceMappingURL=textarea.component-axjxiv82.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.component-BfNOFIoI.js","sources":["../../node_modules/@zag-js/auto-resize/dist/index.mjs","../../node_modules/@ark-ui/react/dist/components/field/field-textarea.js","../../node_modules/@chakra-ui/react/dist/esm/components/textarea/textarea.js","../../src/components/Textarea/textarea.component.tsx"],"sourcesContent":["import { getDocument, getWindow, getComputedStyle } from '@zag-js/dom-query';\n\n// src/autoresize-input.ts\nfunction getVisualStyles(node) {\n if (!node) return;\n const style = getComputedStyle(node);\n return \"box-sizing:\" + style.boxSizing + \";border-left:\" + style.borderLeftWidth + \" solid red;border-right:\" + style.borderRightWidth + \" solid red;font-family:\" + style.fontFamily + \";font-feature-settings:\" + style.fontFeatureSettings + \";font-kerning:\" + style.fontKerning + \";font-size:\" + style.fontSize + \";font-stretch:\" + style.fontStretch + \";font-style:\" + style.fontStyle + \";font-variant:\" + style.fontVariant + \";font-variant-caps:\" + style.fontVariantCaps + \";font-variant-ligatures:\" + style.fontVariantLigatures + \";font-variant-numeric:\" + style.fontVariantNumeric + \";font-weight:\" + style.fontWeight + \";letter-spacing:\" + style.letterSpacing + \";margin-left:\" + style.marginLeft + \";margin-right:\" + style.marginRight + \";padding-left:\" + style.paddingLeft + \";padding-right:\" + style.paddingRight + \";text-indent:\" + style.textIndent + \";text-transform:\" + style.textTransform;\n}\n\n// src/autoresize-input.ts\nfunction createGhostElement(doc) {\n var el = doc.createElement(\"div\");\n el.id = \"ghost\";\n el.style.cssText = \"display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;\";\n doc.body.appendChild(el);\n return el;\n}\nfunction autoResizeInput(input) {\n if (!input) return;\n const doc = getDocument(input);\n const win = getWindow(input);\n const ghost = createGhostElement(doc);\n const cssText = getVisualStyles(input);\n if (cssText) ghost.style.cssText += cssText;\n function resize() {\n win.requestAnimationFrame(() => {\n ghost.innerHTML = input.value;\n const rect = win.getComputedStyle(ghost);\n input?.style.setProperty(\"width\", rect.width);\n });\n }\n resize();\n input?.addEventListener(\"input\", resize);\n input?.addEventListener(\"change\", resize);\n return () => {\n doc.body.removeChild(ghost);\n input?.removeEventListener(\"input\", resize);\n input?.removeEventListener(\"change\", resize);\n };\n}\nvar autoresizeTextarea = (el) => {\n if (!el) return;\n const style = getComputedStyle(el);\n const win = getWindow(el);\n const doc = getDocument(el);\n const resize = () => {\n requestAnimationFrame(() => {\n el.style.height = \"auto\";\n let newHeight;\n if (style.boxSizing === \"content-box\") {\n newHeight = el.scrollHeight - (parseFloat(style.paddingTop) + parseFloat(style.paddingBottom));\n } else {\n newHeight = el.scrollHeight + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);\n }\n if (style.maxHeight !== \"none\" && newHeight > parseFloat(style.maxHeight)) {\n if (style.overflowY === \"hidden\") {\n el.style.overflowY = \"scroll\";\n }\n newHeight = parseFloat(style.maxHeight);\n } else if (style.overflowY !== \"hidden\") {\n el.style.overflowY = \"hidden\";\n }\n el.style.height = `${newHeight}px`;\n });\n };\n el.addEventListener(\"input\", resize);\n el.form?.addEventListener(\"reset\", resize);\n const elementPrototype = Object.getPrototypeOf(el);\n const descriptor = Object.getOwnPropertyDescriptor(elementPrototype, \"value\");\n Object.defineProperty(el, \"value\", {\n ...descriptor,\n set() {\n descriptor?.set?.apply(this, arguments);\n resize();\n }\n });\n const resizeObserver = new win.ResizeObserver(() => {\n requestAnimationFrame(() => resize());\n });\n resizeObserver.observe(el);\n const attrObserver = new win.MutationObserver(() => resize());\n attrObserver.observe(el, { attributes: true, attributeFilter: [\"rows\", \"placeholder\"] });\n doc.fonts?.addEventListener(\"loadingdone\", resize);\n return () => {\n el.removeEventListener(\"input\", resize);\n el.form?.removeEventListener(\"reset\", resize);\n doc.fonts?.removeEventListener(\"loadingdone\", resize);\n resizeObserver.disconnect();\n attrObserver.disconnect();\n };\n};\n\nexport { autoResizeInput, autoresizeTextarea };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { autoresizeTextarea } from '@zag-js/auto-resize';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef, useRef, useEffect } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldTextarea = forwardRef((props, ref) => {\n const { autoresize, ...textareaProps } = props;\n const textareaRef = useRef(null);\n const field = useFieldContext();\n const mergedProps = mergeProps(\n field?.getTextareaProps(),\n { style: { resize: autoresize ? \"none\" : void 0 } },\n textareaProps\n );\n useEffect(() => {\n if (!autoresize) return;\n return autoresizeTextarea(textareaRef.current);\n }, [autoresize]);\n return /* @__PURE__ */ jsx(ark.textarea, { ...mergedProps, ref: composeRefs(ref, textareaRef) });\n});\nFieldTextarea.displayName = \"FieldTextarea\";\n\nexport { FieldTextarea };\n","\"use strict\";\n\"use client\";\nimport { Field } from '@ark-ui/react/field';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"textarea\"\n});\nconst Textarea = withContext(\n Field.Textarea\n);\nconst TextareaPropsProvider = PropsProvider;\n\nexport { Textarea, TextareaPropsProvider };\n","import React, { useMemo } from 'react';\nimport { Textarea as CTextarea, TextareaProps as CTextareaProps } from '@chakra-ui/react/textarea';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\nimport { withFormControl, WithFormControlProps } from 'hocs/withFormControl/withFormControl';\nimport { Flex } from '@chakra-ui/react/flex';\nimport { CharacterCounter } from 'components/CharacterCounter/characterCounter.component';\n\nexport interface TextareaProps extends WithFormControlProps, CTextareaProps {\n /** The maximum number of characters that can be entered into the textarea. */\n charLimit?: number;\n /** Ref to the textarea element. */\n textareaRef?: React.Ref<HTMLTextAreaElement | null>;\n /** Placeholder text for the textarea. */\n placeholder?: string;\n /**\n * The size of the textarea.\n * @default md\n */\n size?: FormControlSize;\n /**\n * Data test id for the textarea.\n * @default kibble-textarea\n */\n 'data-testid'?: string;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n {\n charLimit = undefined,\n invalid,\n onContrast,\n resize = 'none',\n textareaRef,\n value,\n ['data-testid']: dataTestId = 'kibble-textarea',\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = onContrast ? 'onContrast' : 'default';\n\n const currentCharCount = useMemo(() => value?.toString()?.length || 0, [value]);\n\n return (\n <Flex className=\"Textarea__Wrapper\" flexDirection=\"column\" w=\"100%\" gap={1} alignItems=\"flex-end\">\n <CTextarea\n className=\"Textarea\"\n data-testid={dataTestId}\n ref={textareaRef || ref}\n resize={resize}\n variant={_computedVariant}\n value={value}\n {...(invalid && { 'aria-invalid': true })}\n minH=\"140px\"\n {...rest}\n />\n {!!charLimit && (\n <CharacterCounter\n data-testid={`${dataTestId}-character-counter`}\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nTextarea.displayName = 'Textarea';\nconst WrappedTextarea = withFormControl<TextareaProps>(Textarea);\n\nexport { WrappedTextarea as Textarea };\n"],"names":["autoresizeTextarea","el","style","getComputedStyle","win","getWindow","doc","getDocument","resize","newHeight","elementPrototype","descriptor","resizeObserver","attrObserver","FieldTextarea","forwardRef","props","ref","autoresize","textareaProps","textareaRef","useRef","field","useFieldContext","mergedProps","mergeProps","useEffect","jsx","ark","composeRefs","withContext","createRecipeContext","Textarea","Field.Textarea","React","charLimit","invalid","onContrast","value","dataTestId","rest","_computedVariant","currentCharCount","useMemo","jsxs","Flex","CTextarea","CharacterCounter","WrappedTextarea","withFormControl"],"mappings":";;;;;;;;;AAwCA,IAAIA,IAAqB,CAACC,MAAO;AA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,UAAS,GAAE,QAAO,KAAK,GAAG,YAAW,YACrF,UAAA;AAAA,MAAAlB,gBAAAA,EAAA;AAAA,QAACmB;AAAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,eAAaP;AAAA,UACb,KAAKnB,KAAeH;AAAA,UACpB,QAAAT;AAAA,UACA,SAASiC;AAAA,UACT,OAAAH;AAAA,UACC,GAAIF,KAAW,EAAE,gBAAgB,GAAK;AAAA,UACvC,MAAK;AAAA,UACJ,GAAGI;AAAA,QAAA;AAAA,MACN;AAAA,MACC,CAAC,CAACL,KACDR,gBAAAA,EAAA;AAAA,QAACoB;AAAA,QAAA;AAAA,UACC,eAAa,GAAGR,CAAU;AAAA,UAC1B,WAAW;AAAA,UACX,OAAOJ;AAAA,UACP,cAAcO;AAAA,QAAA;AAAA,MAAA;AAAA,IAChB,GAEJ;AAAA,EAAA;AAGN;AAEAV,EAAS,cAAc;AACjB,MAAAgB,IAAkBC,EAA+BjB,CAAQ;","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"textarea.component-axjxiv82.js","sources":["../../node_modules/@zag-js/auto-resize/dist/index.mjs","../../node_modules/@ark-ui/react/dist/components/field/field-textarea.js","../../node_modules/@chakra-ui/react/dist/esm/components/textarea/textarea.js","../../src/components/Textarea/textarea.component.tsx"],"sourcesContent":["import { getDocument, getWindow, getComputedStyle } from '@zag-js/dom-query';\n\n// src/autoresize-input.ts\nfunction getVisualStyles(node) {\n if (!node) return;\n const style = getComputedStyle(node);\n return \"box-sizing:\" + style.boxSizing + \";border-left:\" + style.borderLeftWidth + \" solid red;border-right:\" + style.borderRightWidth + \" solid red;font-family:\" + style.fontFamily + \";font-feature-settings:\" + style.fontFeatureSettings + \";font-kerning:\" + style.fontKerning + \";font-size:\" + style.fontSize + \";font-stretch:\" + style.fontStretch + \";font-style:\" + style.fontStyle + \";font-variant:\" + style.fontVariant + \";font-variant-caps:\" + style.fontVariantCaps + \";font-variant-ligatures:\" + style.fontVariantLigatures + \";font-variant-numeric:\" + style.fontVariantNumeric + \";font-weight:\" + style.fontWeight + \";letter-spacing:\" + style.letterSpacing + \";margin-left:\" + style.marginLeft + \";margin-right:\" + style.marginRight + \";padding-left:\" + style.paddingLeft + \";padding-right:\" + style.paddingRight + \";text-indent:\" + style.textIndent + \";text-transform:\" + style.textTransform;\n}\n\n// src/autoresize-input.ts\nfunction createGhostElement(doc) {\n var el = doc.createElement(\"div\");\n el.id = \"ghost\";\n el.style.cssText = \"display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;\";\n doc.body.appendChild(el);\n return el;\n}\nfunction autoResizeInput(input) {\n if (!input) return;\n const doc = getDocument(input);\n const win = getWindow(input);\n const ghost = createGhostElement(doc);\n const cssText = getVisualStyles(input);\n if (cssText) ghost.style.cssText += cssText;\n function resize() {\n win.requestAnimationFrame(() => {\n ghost.innerHTML = input.value;\n const rect = win.getComputedStyle(ghost);\n input?.style.setProperty(\"width\", rect.width);\n });\n }\n resize();\n input?.addEventListener(\"input\", resize);\n input?.addEventListener(\"change\", resize);\n return () => {\n doc.body.removeChild(ghost);\n input?.removeEventListener(\"input\", resize);\n input?.removeEventListener(\"change\", resize);\n };\n}\nvar autoresizeTextarea = (el) => {\n if (!el) return;\n const style = getComputedStyle(el);\n const win = getWindow(el);\n const doc = getDocument(el);\n const resize = () => {\n requestAnimationFrame(() => {\n el.style.height = \"auto\";\n let newHeight;\n if (style.boxSizing === \"content-box\") {\n newHeight = el.scrollHeight - (parseFloat(style.paddingTop) + parseFloat(style.paddingBottom));\n } else {\n newHeight = el.scrollHeight + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);\n }\n if (style.maxHeight !== \"none\" && newHeight > parseFloat(style.maxHeight)) {\n if (style.overflowY === \"hidden\") {\n el.style.overflowY = \"scroll\";\n }\n newHeight = parseFloat(style.maxHeight);\n } else if (style.overflowY !== \"hidden\") {\n el.style.overflowY = \"hidden\";\n }\n el.style.height = `${newHeight}px`;\n });\n };\n el.addEventListener(\"input\", resize);\n el.form?.addEventListener(\"reset\", resize);\n const elementPrototype = Object.getPrototypeOf(el);\n const descriptor = Object.getOwnPropertyDescriptor(elementPrototype, \"value\");\n Object.defineProperty(el, \"value\", {\n ...descriptor,\n set() {\n descriptor?.set?.apply(this, arguments);\n resize();\n }\n });\n const resizeObserver = new win.ResizeObserver(() => {\n requestAnimationFrame(() => resize());\n });\n resizeObserver.observe(el);\n const attrObserver = new win.MutationObserver(() => resize());\n attrObserver.observe(el, { attributes: true, attributeFilter: [\"rows\", \"placeholder\"] });\n doc.fonts?.addEventListener(\"loadingdone\", resize);\n return () => {\n el.removeEventListener(\"input\", resize);\n el.form?.removeEventListener(\"reset\", resize);\n doc.fonts?.removeEventListener(\"loadingdone\", resize);\n resizeObserver.disconnect();\n attrObserver.disconnect();\n };\n};\n\nexport { autoResizeInput, autoresizeTextarea };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { autoresizeTextarea } from '@zag-js/auto-resize';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef, useRef, useEffect } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldTextarea = forwardRef((props, ref) => {\n const { autoresize, ...textareaProps } = props;\n const textareaRef = useRef(null);\n const field = useFieldContext();\n const mergedProps = mergeProps(\n field?.getTextareaProps(),\n { style: { resize: autoresize ? \"none\" : void 0 } },\n textareaProps\n );\n useEffect(() => {\n if (!autoresize) return;\n return autoresizeTextarea(textareaRef.current);\n }, [autoresize]);\n return /* @__PURE__ */ jsx(ark.textarea, { ...mergedProps, ref: composeRefs(ref, textareaRef) });\n});\nFieldTextarea.displayName = \"FieldTextarea\";\n\nexport { FieldTextarea };\n","\"use strict\";\n\"use client\";\nimport { Field } from '@ark-ui/react/field';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"textarea\"\n});\nconst Textarea = withContext(\n Field.Textarea\n);\nconst TextareaPropsProvider = PropsProvider;\n\nexport { Textarea, TextareaPropsProvider };\n","import React, { useMemo } from 'react';\nimport { Textarea as CTextarea, TextareaProps as CTextareaProps } from '@chakra-ui/react/textarea';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\nimport { withFormControl, WithFormControlProps } from 'hocs/withFormControl/withFormControl';\nimport { Flex } from '@chakra-ui/react/flex';\nimport { CharacterCounter } from 'components/CharacterCounter/characterCounter.component';\n\nexport interface TextareaProps extends WithFormControlProps, CTextareaProps {\n /** The maximum number of characters that can be entered into the textarea. */\n charLimit?: number;\n /** Ref to the textarea element. */\n textareaRef?: React.Ref<HTMLTextAreaElement | null>;\n /** Placeholder text for the textarea. */\n placeholder?: string;\n /**\n * The size of the textarea.\n * @default md\n */\n size?: FormControlSize;\n /**\n * Data test id for the textarea.\n * @default kibble-textarea\n */\n 'data-testid'?: string;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n {\n charLimit = undefined,\n invalid,\n onContrast,\n resize = 'none',\n textareaRef,\n value,\n ['data-testid']: dataTestId = 'kibble-textarea',\n ...rest\n },\n ref,\n ): React.JSX.Element => {\n const _computedVariant = onContrast ? 'onContrast' : 'default';\n\n const currentCharCount = useMemo(() => value?.toString()?.length || 0, [value]);\n\n return (\n <Flex className=\"Textarea__Wrapper\" flexDirection=\"column\" w=\"100%\" gap={1} alignItems=\"flex-end\">\n <CTextarea\n className=\"Textarea\"\n data-testid={dataTestId}\n ref={textareaRef || ref}\n resize={resize}\n variant={_computedVariant}\n value={value}\n {...(invalid && { 'aria-invalid': true })}\n minH=\"140px\"\n {...rest}\n />\n {!!charLimit && (\n <CharacterCounter\n data-testid={`${dataTestId}-character-counter`}\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nTextarea.displayName = 'Textarea';\nconst WrappedTextarea = withFormControl<TextareaProps>(Textarea);\n\nexport { WrappedTextarea as Textarea };\n"],"names":["autoresizeTextarea","el","style","getComputedStyle","win","getWindow","doc","getDocument","resize","newHeight","elementPrototype","descriptor","resizeObserver","attrObserver","FieldTextarea","forwardRef","props","ref","autoresize","textareaProps","textareaRef","useRef","field","useFieldContext","mergedProps","mergeProps","useEffect","jsx","ark","composeRefs","withContext","createRecipeContext","Textarea","Field.Textarea","React","charLimit","invalid","onContrast","value","dataTestId","rest","_computedVariant","currentCharCount","useMemo","jsxs","Flex","CTextarea","CharacterCounter","WrappedTextarea","withFormControl"],"mappings":";;;;;;;;;AAwCA,IAAIA,IAAqB,CAACC,MAAO;AAC/B,MAAI,CAACA,EAAI;AACT,QAAMC,IAAQC,EAAiBF,CAAE,GAC3BG,IAAMC,EAAUJ,CAAE,GAClBK,IAAMC,EAAYN,CAAE,GACpBO,IAAS,MAAM;AACnB,0BAAsB,MAAM;AAC1B,MAAAP,EAAG,MAAM,SAAS;AAClB,UAAIQ;AACJ,MAAIP,EAAM,cAAc,gBACtBO,IAAYR,EAAG,gBAAgB,WAAWC,EAAM,UAAU,IAAI,WAAWA,EAAM,aAAa,KAE5FO,IAAYR,EAAG,eAAe,WAAWC,EAAM,cAAc,IAAI,WAAWA,EAAM,iBAAiB,GAEjGA,EAAM,cAAc,UAAUO,IAAY,WAAWP,EAAM,SAAS,KAClEA,EAAM,cAAc,aACtBD,EAAG,MAAM,YAAY,WAEvBQ,IAAY,WAAWP,EAAM,SAAS,KAC7BA,EAAM,cAAc,aAC7BD,EAAG,MAAM,YAAY,WAEvBA,EAAG,MAAM,SAAS,GAAGQ,CAAS;AAAA,IACpC,CAAK;AAAA,EACF;AACD,EAAAR,EAAG,iBAAiB,SAASO,CAAM,GACnCP,EAAG,MAAM,iBAAiB,SAASO,CAAM;AACzC,QAAME,IAAmB,OAAO,eAAeT,CAAE,GAC3CU,IAAa,OAAO,yBAAyBD,GAAkB,OAAO;AAC5E,SAAO,eAAeT,GAAI,SAAS;AAAA,IACjC,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D,IAAWE,EAAM;AAAA,EACrB,CACE;AAAA,IACE,WAAAC,IAAY;AAAA,IACZ,SAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAA7B,IAAS;AAAA,IACT,aAAAY;AAAA,IACA,OAAAkB;AAAA,IACA,CAAC,gBAAgBC,IAAa;AAAA,IAC9B,GAAGC;AAAA,KAELvB,MACsB;AAChB,UAAAwB,IAAmBJ,IAAa,eAAe,WAE/CK,IAAmBC,EAAQ,MAAML,GAAO,YAAY,UAAU,GAAG,CAACA,CAAK,CAAC;AAG5E,WAAAM,gBAAAA,EAAA,KAACC,GAAK,EAAA,WAAU,qBAAoB,eAAc,UAAS,GAAE,QAAO,KAAK,GAAG,YAAW,YACrF,UAAA;AAAA,MAAAlB,gBAAAA,EAAA;AAAA,QAACmB;AAAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,eAAaP;AAAA,UACb,KAAKnB,KAAeH;AAAA,UACpB,QAAAT;AAAA,UACA,SAASiC;AAAA,UACT,OAAAH;AAAA,UACC,GAAIF,KAAW,EAAE,gBAAgB,GAAK;AAAA,UACvC,MAAK;AAAA,UACJ,GAAGI;AAAA,QAAA;AAAA,MACN;AAAA,MACC,CAAC,CAACL,KACDR,gBAAAA,EAAA;AAAA,QAACoB;AAAA,QAAA;AAAA,UACC,eAAa,GAAGR,CAAU;AAAA,UAC1B,WAAW;AAAA,UACX,OAAOJ;AAAA,UACP,cAAcO;AAAA,QAAA;AAAA,MAAA;AAAA,IAChB,GAEJ;AAAA,EAAA;AAGN;AAEAV,EAAS,cAAc;AACjB,MAAAgB,IAAkBC,EAA+BjB,CAAQ;","x_google_ignoreList":[0,1,2]}
@@ -5,7 +5,7 @@ import { e as ve, f as Yt, g as qt, h as Xt, i as Kt, a as f, j as ae, d as a, b
5
5
  import { a as Zt, b as eo, c as tt, d as to, e as oo, f as ro, g as ao, h as io, i as so, j as lo, k as no, l as ot, m as co, n as uo, o as go, q as po, r as bo, s as mo, t as rt, u as at, v as it, w as ho, p as fo, x as vo, y as st, z as lt, A as xo, B as yo, C as ko, D as So, E as nt, F as dt, G as ct, H as ut, I as zo, J as gt } from "./anatomy-zd4ecEFD.js";
6
6
  import { a as pt, A as X } from "./avatar.records-EoZmO3VR.js";
7
7
  import { c as bt } from "./checkbox.anatomy-BzZ0IkUF.js";
8
- import { i as wo } from "./tooltip.component-CiiT7r7V.js";
8
+ import { i as wo } from "./tooltip.component-C_NS-AoH.js";
9
9
  import { a as mt } from "./index-D1RhzPVz.js";
10
10
  import { a as ht } from "./index-D7QT9KIZ.js";
11
11
  import { a as xe } from "./index-BbZjRFzg.js";
@@ -23,7 +23,7 @@ import { B as kt } from "./button.component-BO6oee_V.js";
23
23
  import { I as Vo } from "./icon.component-PV_nHBId.js";
24
24
  import { B as St } from "./index-9BerxEcw.js";
25
25
  import { StatusIconMap as No } from "../esm/shared/records/index.js";
26
- import { W as Te } from "./text.component-Cv7odzlt.js";
26
+ import { W as Te } from "./text.component-CdTyTFds.js";
27
27
  import { F as jo } from "./flex-CX-8gE9T.js";
28
28
  import { c as Lo } from "./create-slot-recipe-context-D_FXDJGp.js";
29
29
  import { c as Fo } from "./factory-BQshv7_b.js";
@@ -12290,4 +12290,4 @@ export {
12290
12290
  Ms as k,
12291
12291
  Ys as s
12292
12292
  };
12293
- //# sourceMappingURL=theme.provider-DYOpOJIR.js.map
12293
+ //# sourceMappingURL=theme.provider-BD7qyu-B.js.map