@televet/kibble-ui 4.0.0-beta.102 → 4.0.0-beta.103

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 (331) hide show
  1. package/dist/chunks/{alert.types-BFIjEpyN.js → alert.types-B-bS7qjd.js} +3 -3
  2. package/dist/chunks/{alert.types-BFIjEpyN.js.map → alert.types-B-bS7qjd.js.map} +1 -1
  3. package/dist/chunks/{alert.types-CBlxvlwZ.js → alert.types-CIc4IRMS.js} +2 -2
  4. package/dist/chunks/{alert.types-CBlxvlwZ.js.map → alert.types-CIc4IRMS.js.map} +1 -1
  5. package/dist/chunks/{avatar.component-DdeMVY3l.js → avatar.component-B63kpE9P.js} +6 -6
  6. package/dist/chunks/{avatar.component-DdeMVY3l.js.map → avatar.component-B63kpE9P.js.map} +1 -1
  7. package/dist/chunks/{avatar.component-37joMuMZ.js → avatar.component-DhVRhVUB.js} +2 -2
  8. package/dist/chunks/{avatar.component-37joMuMZ.js.map → avatar.component-DhVRhVUB.js.map} +1 -1
  9. package/dist/chunks/{avatarGroup.component-CPjot93U.js → avatarGroup.component-Bv-7rU7a.js} +2 -2
  10. package/dist/chunks/{avatarGroup.component-CPjot93U.js.map → avatarGroup.component-Bv-7rU7a.js.map} +1 -1
  11. package/dist/chunks/{avatarGroup.component-DboSD8PG.js → avatarGroup.component-S6IBJiRl.js} +2 -2
  12. package/dist/chunks/{avatarGroup.component-DboSD8PG.js.map → avatarGroup.component-S6IBJiRl.js.map} +1 -1
  13. package/dist/chunks/{buttonGroup.component-CmsAFBU-.js → buttonGroup.component-Bxg_xRWP.js} +2 -2
  14. package/dist/chunks/{buttonGroup.component-CmsAFBU-.js.map → buttonGroup.component-Bxg_xRWP.js.map} +1 -1
  15. package/dist/chunks/{buttonGroup.component-CeU9SOoZ.js → buttonGroup.component-C7pKCvcQ.js} +2 -2
  16. package/dist/chunks/{buttonGroup.component-CeU9SOoZ.js.map → buttonGroup.component-C7pKCvcQ.js.map} +1 -1
  17. package/dist/chunks/{characterCounter.component-D8qNJrRV.js → characterCounter.component-DElJ1iFK.js} +3 -3
  18. package/dist/chunks/{characterCounter.component-D8qNJrRV.js.map → characterCounter.component-DElJ1iFK.js.map} +1 -1
  19. package/dist/chunks/{characterCounter.component-Aa1IFCGT.js → characterCounter.component-DXmly18j.js} +2 -2
  20. package/dist/chunks/{characterCounter.component-Aa1IFCGT.js.map → characterCounter.component-DXmly18j.js.map} +1 -1
  21. package/dist/chunks/checkbox.component-BbjXZ9Nf.js +2 -0
  22. package/dist/chunks/{checkbox.component-BBnhOurl.js.map → checkbox.component-BbjXZ9Nf.js.map} +1 -1
  23. package/dist/chunks/{checkbox.component-Twnwzi6T.js → checkbox.component-DvG5FhBs.js} +50 -51
  24. package/dist/chunks/{checkbox.component-Twnwzi6T.js.map → checkbox.component-DvG5FhBs.js.map} +1 -1
  25. package/dist/chunks/checkbox.records-DI3mqSNf.js +2 -0
  26. package/dist/chunks/checkbox.records-DI3mqSNf.js.map +1 -0
  27. package/dist/chunks/{checkbox.anatomy-AIdXcqX-.js → checkbox.records-Ds6SvFdm.js} +22 -12
  28. package/dist/chunks/checkbox.records-Ds6SvFdm.js.map +1 -0
  29. package/dist/chunks/{checkboxGroup.component-BY34zJk7.js → checkboxGroup.component-ClGERT8x.js} +3 -3
  30. package/dist/chunks/{checkboxGroup.component-BY34zJk7.js.map → checkboxGroup.component-ClGERT8x.js.map} +1 -1
  31. package/dist/chunks/{checkboxGroup.component-B3R7JBVo.js → checkboxGroup.component-tnjabq8J.js} +2 -2
  32. package/dist/chunks/{checkboxGroup.component-B3R7JBVo.js.map → checkboxGroup.component-tnjabq8J.js.map} +1 -1
  33. package/dist/chunks/{config-BsZeMu66.js → config-DlTdf-Yt.js} +10 -10
  34. package/dist/chunks/{config-BsZeMu66.js.map → config-DlTdf-Yt.js.map} +1 -1
  35. package/dist/chunks/{conversationCard.component-BOH8hmb-.js → conversationCard.component-DXiIGFwM.js} +2 -2
  36. package/dist/chunks/{conversationCard.component-BOH8hmb-.js.map → conversationCard.component-DXiIGFwM.js.map} +1 -1
  37. package/dist/chunks/{conversationCard.component-FdiTvQhb.js → conversationCard.component-FisFG9p8.js} +9 -9
  38. package/dist/chunks/{conversationCard.component-FdiTvQhb.js.map → conversationCard.component-FisFG9p8.js.map} +1 -1
  39. package/dist/chunks/{datePicker.component-BKGUGrux.js → datePicker.component-BVgI3zPN.js} +2 -2
  40. package/dist/chunks/{datePicker.component-BKGUGrux.js.map → datePicker.component-BVgI3zPN.js.map} +1 -1
  41. package/dist/chunks/{datePicker.component-BMFKZ9jI.js → datePicker.component-D8yWK-mP.js} +8 -8
  42. package/dist/chunks/{datePicker.component-BMFKZ9jI.js.map → datePicker.component-D8yWK-mP.js.map} +1 -1
  43. package/dist/chunks/{dialog-trigger-TJz2Nslg.js → dialog-trigger-Crrp0YGG.js} +5 -5
  44. package/dist/chunks/{dialog-trigger-TJz2Nslg.js.map → dialog-trigger-Crrp0YGG.js.map} +1 -1
  45. package/dist/chunks/{dialog-trigger-CyE0fW3K.js → dialog-trigger-MkOQUjzu.js} +2 -2
  46. package/dist/chunks/{dialog-trigger-CyE0fW3K.js.map → dialog-trigger-MkOQUjzu.js.map} +1 -1
  47. package/dist/chunks/{heading.component-SSTHKtRE.js → heading.component-BMvc5kM8.js} +2 -2
  48. package/dist/chunks/{heading.component-SSTHKtRE.js.map → heading.component-BMvc5kM8.js.map} +1 -1
  49. package/dist/chunks/{heading.component-DiuOQTuV.js → heading.component-CSbfsm3W.js} +2 -2
  50. package/dist/chunks/{heading.component-DiuOQTuV.js.map → heading.component-CSbfsm3W.js.map} +1 -1
  51. package/dist/chunks/{index-BOJXzk6X.js → index-B3d3tRic.js} +4 -4
  52. package/dist/chunks/{index-BOJXzk6X.js.map → index-B3d3tRic.js.map} +1 -1
  53. package/dist/chunks/{index-CObxBCse.js → index-BBxAd1xM.js} +3 -3
  54. package/dist/chunks/{index-CObxBCse.js.map → index-BBxAd1xM.js.map} +1 -1
  55. package/dist/chunks/{index-DT0_Ld2V.js → index-BODNpj2d.js} +3 -3
  56. package/dist/chunks/{index-DT0_Ld2V.js.map → index-BODNpj2d.js.map} +1 -1
  57. package/dist/chunks/{index-BvfTd0It.js → index-BR7peqZO.js} +2 -2
  58. package/dist/chunks/{index-BvfTd0It.js.map → index-BR7peqZO.js.map} +1 -1
  59. package/dist/chunks/{index-7Od5VFiw.js → index-BRBNqTA7.js} +13 -13
  60. package/dist/chunks/{index-7Od5VFiw.js.map → index-BRBNqTA7.js.map} +1 -1
  61. package/dist/chunks/{index-AafzY9XD.js → index-BpQwMKfa.js} +10 -10
  62. package/dist/chunks/{index-AafzY9XD.js.map → index-BpQwMKfa.js.map} +1 -1
  63. package/dist/chunks/{index-Bkr-bXiq.js → index-C-m6RNXT.js} +11 -11
  64. package/dist/chunks/{index-Bkr-bXiq.js.map → index-C-m6RNXT.js.map} +1 -1
  65. package/dist/chunks/{index-BLSUI_Fi.js → index-CS8X6LiC.js} +2 -2
  66. package/dist/chunks/{index-BLSUI_Fi.js.map → index-CS8X6LiC.js.map} +1 -1
  67. package/dist/chunks/{index-IHJqZIuH.js → index-CX3yrbBD.js} +3 -3
  68. package/dist/chunks/{index-IHJqZIuH.js.map → index-CX3yrbBD.js.map} +1 -1
  69. package/dist/chunks/index-CYHDITxm.js +7859 -0
  70. package/dist/chunks/index-CYHDITxm.js.map +1 -0
  71. package/dist/chunks/{index-4eV_IBpJ.js → index-Cd-5e4RS.js} +5 -5
  72. package/dist/chunks/{index-4eV_IBpJ.js.map → index-Cd-5e4RS.js.map} +1 -1
  73. package/dist/chunks/index-ClcMgyeA.js +10 -0
  74. package/dist/chunks/index-ClcMgyeA.js.map +1 -0
  75. package/dist/chunks/{index-sEoMwGry.js → index-DBk0LkcO.js} +2 -2
  76. package/dist/chunks/{index-sEoMwGry.js.map → index-DBk0LkcO.js.map} +1 -1
  77. package/dist/chunks/{index-CYfS9qal.js → index-DOXzraja.js} +2 -2
  78. package/dist/chunks/{index-CYfS9qal.js.map → index-DOXzraja.js.map} +1 -1
  79. package/dist/chunks/{index-BszONCjy.js → index-DSedXH1s.js} +2 -2
  80. package/dist/chunks/{index-BszONCjy.js.map → index-DSedXH1s.js.map} +1 -1
  81. package/dist/chunks/{index-vvHShogE.js → index-DowO8Ued.js} +2 -2
  82. package/dist/chunks/{index-vvHShogE.js.map → index-DowO8Ued.js.map} +1 -1
  83. package/dist/chunks/{index-CVzg8MBo.js → index-QTIBH1Or.js} +2 -2
  84. package/dist/chunks/{index-CVzg8MBo.js.map → index-QTIBH1Or.js.map} +1 -1
  85. package/dist/chunks/{index-1syExFDc.js → index-Ztgrae6O.js} +11 -11
  86. package/dist/chunks/{index-1syExFDc.js.map → index-Ztgrae6O.js.map} +1 -1
  87. package/dist/chunks/{index-cHBEWy02.js → index-mndLieJA.js} +4 -4
  88. package/dist/chunks/{index-cHBEWy02.js.map → index-mndLieJA.js.map} +1 -1
  89. package/dist/chunks/{logo.types-Cx1LeO8I.js → logo.types-BbSodfBq.js} +2 -2
  90. package/dist/chunks/{logo.types-Cx1LeO8I.js.map → logo.types-BbSodfBq.js.map} +1 -1
  91. package/dist/chunks/{menu.component-BdkYpKpN.js → menu.component-ChULT3Gr.js} +8 -8
  92. package/dist/chunks/{menu.component-BdkYpKpN.js.map → menu.component-ChULT3Gr.js.map} +1 -1
  93. package/dist/chunks/{menu.component-CCM8bsSm.js → menu.component-XFe_M_SC.js} +2 -2
  94. package/dist/chunks/{menu.component-CCM8bsSm.js.map → menu.component-XFe_M_SC.js.map} +1 -1
  95. package/dist/chunks/{modal.types-VeN6tZvj.js → modal.types-C1izw_Yq.js} +2 -2
  96. package/dist/chunks/{modal.types-VeN6tZvj.js.map → modal.types-C1izw_Yq.js.map} +1 -1
  97. package/dist/chunks/{modal.types-D3YGNiuI.js → modal.types-DEGvHRn9.js} +4 -4
  98. package/dist/chunks/{modal.types-D3YGNiuI.js.map → modal.types-DEGvHRn9.js.map} +1 -1
  99. package/dist/chunks/{notificationCounter.component-Bgm4hK9N.js → notificationCounter.component-BzhAKrKR.js} +2 -2
  100. package/dist/chunks/{notificationCounter.component-Bgm4hK9N.js.map → notificationCounter.component-BzhAKrKR.js.map} +1 -1
  101. package/dist/chunks/{pinInput.types-BNBwX6Hl.js → pinInput.types-BHMFqLSM.js} +2 -2
  102. package/dist/chunks/{pinInput.types-BNBwX6Hl.js.map → pinInput.types-BHMFqLSM.js.map} +1 -1
  103. package/dist/chunks/{pinInput.types-NqL1HFRm.js → pinInput.types-DwCLcdqD.js} +6 -6
  104. package/dist/chunks/{pinInput.types-NqL1HFRm.js.map → pinInput.types-DwCLcdqD.js.map} +1 -1
  105. package/dist/chunks/{popover-root-provider-Dwbh8WhW.js → popover-root-provider-C2iwUZJn.js} +2 -2
  106. package/dist/chunks/{popover-root-provider-Dwbh8WhW.js.map → popover-root-provider-C2iwUZJn.js.map} +1 -1
  107. package/dist/chunks/{popover-root-provider-B9H57A1i.js → popover-root-provider-R2bRQ-xz.js} +4 -4
  108. package/dist/chunks/{popover-root-provider-B9H57A1i.js.map → popover-root-provider-R2bRQ-xz.js.map} +1 -1
  109. package/dist/chunks/{popover.component-CaYI1vEW.js → popover.component-BWj15KxJ.js} +2 -2
  110. package/dist/chunks/{popover.component-CaYI1vEW.js.map → popover.component-BWj15KxJ.js.map} +1 -1
  111. package/dist/chunks/{popover.component-DlGkkvve.js → popover.component-DT3QQWyX.js} +7 -7
  112. package/dist/chunks/{popover.component-DlGkkvve.js.map → popover.component-DT3QQWyX.js.map} +1 -1
  113. package/dist/chunks/{popover.recipe-CFCoAAlW.js → popover.recipe-CQYAiRTB.js} +2 -2
  114. package/dist/chunks/{popover.recipe-CFCoAAlW.js.map → popover.recipe-CQYAiRTB.js.map} +1 -1
  115. package/dist/chunks/{popover.recipe-DegR9fjD.js → popover.recipe-DDKba5kq.js} +5 -5
  116. package/dist/chunks/{popover.recipe-DegR9fjD.js.map → popover.recipe-DDKba5kq.js.map} +1 -1
  117. package/dist/chunks/{index-n37Ze35k.js → radio.records-j0JOqaJ4.js} +2 -2
  118. package/dist/chunks/radio.records-j0JOqaJ4.js.map +1 -0
  119. package/dist/chunks/{index-hGcS7e_x.js → radio.records-muLWVHhG.js} +33 -22
  120. package/dist/chunks/radio.records-muLWVHhG.js.map +1 -0
  121. package/dist/chunks/{radioGroup.component-q0bBXVnx.js → radioGroup.component-BUolfqWr.js} +21 -22
  122. package/dist/chunks/{radioGroup.component-q0bBXVnx.js.map → radioGroup.component-BUolfqWr.js.map} +1 -1
  123. package/dist/chunks/radioGroup.component-egpalXS-.js +2 -0
  124. package/dist/chunks/{radioGroup.component-CEnFc_Ag.js.map → radioGroup.component-egpalXS-.js.map} +1 -1
  125. package/dist/chunks/{ratingDots.component-eMRd5aP2.js → ratingDots.component-BY26etxR.js} +2 -2
  126. package/dist/chunks/{ratingDots.component-eMRd5aP2.js.map → ratingDots.component-BY26etxR.js.map} +1 -1
  127. package/dist/chunks/{ratingDots.component-BAm2XjZr.js → ratingDots.component-CrBOfyId.js} +4 -4
  128. package/dist/chunks/{ratingDots.component-BAm2XjZr.js.map → ratingDots.component-CrBOfyId.js.map} +1 -1
  129. package/dist/chunks/{render-strategy-BlfXwB_1.js → render-strategy-C_zp9LNQ.js} +2 -2
  130. package/dist/chunks/{render-strategy-BlfXwB_1.js.map → render-strategy-C_zp9LNQ.js.map} +1 -1
  131. package/dist/chunks/{render-strategy-DMTZ92PV.js → render-strategy-D5Z6LZ1V.js} +2 -2
  132. package/dist/chunks/{render-strategy-DMTZ92PV.js.map → render-strategy-D5Z6LZ1V.js.map} +1 -1
  133. package/dist/chunks/{select.component-Dp3XguXB.js → select.component-CQjAhCI2.js} +2 -2
  134. package/dist/chunks/{select.component-Dp3XguXB.js.map → select.component-CQjAhCI2.js.map} +1 -1
  135. package/dist/chunks/{select.component-BZwOWiuJ.js → select.component-D9bWpKVf.js} +9 -9
  136. package/dist/chunks/{select.component-BZwOWiuJ.js.map → select.component-D9bWpKVf.js.map} +1 -1
  137. package/dist/chunks/{sortableList.component-DfmuHVvP.js → sortableList.component-BWs5CrE2.js} +2 -2
  138. package/dist/chunks/{sortableList.component-DfmuHVvP.js.map → sortableList.component-BWs5CrE2.js.map} +1 -1
  139. package/dist/chunks/{sortableList.component-yvvu0IJp.js → sortableList.component-w4xLMCLj.js} +3 -3
  140. package/dist/chunks/{sortableList.component-yvvu0IJp.js.map → sortableList.component-w4xLMCLj.js.map} +1 -1
  141. package/dist/chunks/{spinner.component-C7ylmPXr.js → spinner.component-CzOv8dIY.js} +2 -2
  142. package/dist/chunks/{spinner.component-C7ylmPXr.js.map → spinner.component-CzOv8dIY.js.map} +1 -1
  143. package/dist/chunks/{spinner.component-Bu5rGx9x.js → spinner.component-gmb3jWCv.js} +3 -3
  144. package/dist/chunks/{spinner.component-Bu5rGx9x.js.map → spinner.component-gmb3jWCv.js.map} +1 -1
  145. package/dist/chunks/{styledAvatar.types-BaxV5wPq.js → styledAvatar.types-B0IAGnAx.js} +2 -2
  146. package/dist/chunks/{styledAvatar.types-BaxV5wPq.js.map → styledAvatar.types-B0IAGnAx.js.map} +1 -1
  147. package/dist/chunks/{styledAvatar.types-C_9GVvmD.js → styledAvatar.types-CVyai83h.js} +2 -2
  148. package/dist/chunks/{styledAvatar.types-C_9GVvmD.js.map → styledAvatar.types-CVyai83h.js.map} +1 -1
  149. package/dist/chunks/{swatch.types-DiwKSXzz.js → swatch.types-DbgA3RWc.js} +2 -2
  150. package/dist/chunks/{swatch.types-DiwKSXzz.js.map → swatch.types-DbgA3RWc.js.map} +1 -1
  151. package/dist/chunks/{switch.component-GM35zwYa.js → switch.component-DMj4TPl8.js} +2 -2
  152. package/dist/chunks/{switch.component-GM35zwYa.js.map → switch.component-DMj4TPl8.js.map} +1 -1
  153. package/dist/chunks/{switch.component-C4NO_Gs5.js → switch.component-lN5wISru.js} +6 -6
  154. package/dist/chunks/{switch.component-C4NO_Gs5.js.map → switch.component-lN5wISru.js.map} +1 -1
  155. package/dist/chunks/{tabs.component-BqawOxko.js → tabs.component-Dk9EUbWt.js} +10 -10
  156. package/dist/chunks/{tabs.component-BqawOxko.js.map → tabs.component-Dk9EUbWt.js.map} +1 -1
  157. package/dist/chunks/{tabs.component-1hCkIY3w.js → tabs.component-z7J2Yp6h.js} +2 -2
  158. package/dist/chunks/{tabs.component-1hCkIY3w.js.map → tabs.component-z7J2Yp6h.js.map} +1 -1
  159. package/dist/chunks/{tagBlock.component-DwTt-HqP.js → tagBlock.component-BIT-AVii.js} +2 -2
  160. package/dist/chunks/{tagBlock.component-DwTt-HqP.js.map → tagBlock.component-BIT-AVii.js.map} +1 -1
  161. package/dist/chunks/{tagBlock.component-ChGexy1g.js → tagBlock.component-BhgGstLU.js} +5 -5
  162. package/dist/chunks/{tagBlock.component-ChGexy1g.js.map → tagBlock.component-BhgGstLU.js.map} +1 -1
  163. package/dist/chunks/{text.component-DDSfgcFP.js → text.component-BMna3XOy.js} +2 -2
  164. package/dist/chunks/{text.component-DDSfgcFP.js.map → text.component-BMna3XOy.js.map} +1 -1
  165. package/dist/chunks/{text.component-fgp06lR8.js → text.component-waIIFgwB.js} +2 -2
  166. package/dist/chunks/{text.component-fgp06lR8.js.map → text.component-waIIFgwB.js.map} +1 -1
  167. package/dist/chunks/{textInput.component-B3Q800_J.js → textInput.component-D9iVzBPO.js} +2 -2
  168. package/dist/chunks/{textInput.component-B3Q800_J.js.map → textInput.component-D9iVzBPO.js.map} +1 -1
  169. package/dist/chunks/{textInput.component-vxAD2BDI.js → textInput.component-Dv4puTkb.js} +6 -6
  170. package/dist/chunks/{textInput.component-vxAD2BDI.js.map → textInput.component-Dv4puTkb.js.map} +1 -1
  171. package/dist/chunks/{textarea.component-DBS-A-Jk.js → textarea.component-BBZ01Uwu.js} +2 -2
  172. package/dist/chunks/{textarea.component-DBS-A-Jk.js.map → textarea.component-BBZ01Uwu.js.map} +1 -1
  173. package/dist/chunks/{textarea.component-CVCNVeqW.js → textarea.component-BXDGsp_X.js} +13 -13
  174. package/dist/chunks/{textarea.component-CVCNVeqW.js.map → textarea.component-BXDGsp_X.js.map} +1 -1
  175. package/dist/chunks/theme.provider-LbddeKMu.js +24 -0
  176. package/dist/chunks/theme.provider-LbddeKMu.js.map +1 -0
  177. package/dist/chunks/theme.provider-wWr4H_XJ.js +12053 -0
  178. package/dist/chunks/theme.provider-wWr4H_XJ.js.map +1 -0
  179. package/dist/chunks/{timePicker.component-f-FAs8bP.js → timePicker.component-BTj7DA_7.js} +4 -4
  180. package/dist/chunks/{timePicker.component-f-FAs8bP.js.map → timePicker.component-BTj7DA_7.js.map} +1 -1
  181. package/dist/chunks/{timePicker.component-KqAcboP6.js → timePicker.component-DLhuGlNp.js} +2 -2
  182. package/dist/chunks/{timePicker.component-KqAcboP6.js.map → timePicker.component-DLhuGlNp.js.map} +1 -1
  183. package/dist/chunks/{timeRange.component-pWCZj2UZ.js → timeRange.component-CMuPVdvd.js} +2 -2
  184. package/dist/chunks/{timeRange.component-pWCZj2UZ.js.map → timeRange.component-CMuPVdvd.js.map} +1 -1
  185. package/dist/chunks/{timeRange.component-C-SA8EFz.js → timeRange.component-Cbo_KMo2.js} +2 -2
  186. package/dist/chunks/{timeRange.component-C-SA8EFz.js.map → timeRange.component-Cbo_KMo2.js.map} +1 -1
  187. package/dist/chunks/{timestamp.component-CStcenp0.js → timestamp.component-B1UUyLk6.js} +2 -2
  188. package/dist/chunks/{timestamp.component-CStcenp0.js.map → timestamp.component-B1UUyLk6.js.map} +1 -1
  189. package/dist/chunks/{timestamp.component-DpA8pTzY.js → timestamp.component-BQmg8ejt.js} +3 -3
  190. package/dist/chunks/{timestamp.component-DpA8pTzY.js.map → timestamp.component-BQmg8ejt.js.map} +1 -1
  191. package/dist/chunks/{toaster.records-DjNU8CFN.js → toaster.records-DcadVT_W.js} +2 -2
  192. package/dist/chunks/{toaster.records-DjNU8CFN.js.map → toaster.records-DcadVT_W.js.map} +1 -1
  193. package/dist/chunks/tooltip.component-BBcfv22j.js +492 -0
  194. package/dist/chunks/tooltip.component-BBcfv22j.js.map +1 -0
  195. package/dist/chunks/tooltip.component-BlX3B2Di.js +2 -0
  196. package/dist/chunks/tooltip.component-BlX3B2Di.js.map +1 -0
  197. package/dist/chunks/typography.records-CSy2LmDd.js +2 -0
  198. package/dist/chunks/typography.records-CSy2LmDd.js.map +1 -0
  199. package/dist/chunks/{typography.records-BEd2lI_g.js → typography.records-DDZuRT8J.js} +22 -10
  200. package/dist/chunks/typography.records-DDZuRT8J.js.map +1 -0
  201. package/dist/chunks/{use-field-context-CFITFjXV.js → use-field-context-BZaIHuSQ.js} +2 -2
  202. package/dist/chunks/{use-field-context-CFITFjXV.js.map → use-field-context-BZaIHuSQ.js.map} +1 -1
  203. package/dist/chunks/{use-field-context-4x8yd4wU.js → use-field-context-CArmgHPP.js} +2 -2
  204. package/dist/chunks/{use-field-context-4x8yd4wU.js.map → use-field-context-CArmgHPP.js.map} +1 -1
  205. package/dist/chunks/{use-locale-context-ib8415q7.js → use-locale-context-BNU4MHrO.js} +775 -1127
  206. package/dist/chunks/use-locale-context-BNU4MHrO.js.map +1 -0
  207. package/dist/chunks/use-locale-context-D0LByRu9.js +22 -0
  208. package/dist/chunks/use-locale-context-D0LByRu9.js.map +1 -0
  209. package/dist/chunks/withFormControl-DJ6OVImD.js +2 -0
  210. package/dist/chunks/{withFormControl-DUbGQZnV.js.map → withFormControl-DJ6OVImD.js.map} +1 -1
  211. package/dist/chunks/{withFormControl-CKHeFdbP.js → withFormControl-DS2sMs8A.js} +55 -56
  212. package/dist/chunks/{withFormControl-CKHeFdbP.js.map → withFormControl-DS2sMs8A.js.map} +1 -1
  213. package/dist/chunks/{withTruncation-DubH2hvc.js → withTruncation-BY4-q1lB.js} +2 -2
  214. package/dist/chunks/{withTruncation-DubH2hvc.js.map → withTruncation-BY4-q1lB.js.map} +1 -1
  215. package/dist/chunks/{withTruncation-BjQjta4-.js → withTruncation-Do7RgFZB.js} +2 -2
  216. package/dist/chunks/{withTruncation-BjQjta4-.js.map → withTruncation-Do7RgFZB.js.map} +1 -1
  217. package/dist/chunks/{wrap-CfOMkouk.js → wrap-B8tBNeBY.js} +2 -2
  218. package/dist/chunks/{wrap-CfOMkouk.js.map → wrap-B8tBNeBY.js.map} +1 -1
  219. package/dist/cjs/chakra/index.cjs +1 -1
  220. package/dist/cjs/chakra/index.cjs.map +1 -1
  221. package/dist/cjs/components/Alert/index.cjs +1 -1
  222. package/dist/cjs/components/Avatar/index.cjs +1 -1
  223. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  224. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  225. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  226. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  227. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  228. package/dist/cjs/components/ConversationCard/index.cjs +1 -1
  229. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  230. package/dist/cjs/components/Heading/index.cjs +1 -1
  231. package/dist/cjs/components/Menu/index.cjs +1 -1
  232. package/dist/cjs/components/Modal/index.cjs +1 -1
  233. package/dist/cjs/components/PinInput/index.cjs +1 -1
  234. package/dist/cjs/components/Popover/index.cjs +1 -1
  235. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  236. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  237. package/dist/cjs/components/Select/index.cjs +1 -1
  238. package/dist/cjs/components/SortableList/index.cjs +1 -1
  239. package/dist/cjs/components/Spinner/index.cjs +1 -1
  240. package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
  241. package/dist/cjs/components/Switch/index.cjs +1 -1
  242. package/dist/cjs/components/Tabs/index.cjs +1 -1
  243. package/dist/cjs/components/TagBlock/index.cjs +1 -1
  244. package/dist/cjs/components/Text/index.cjs +1 -1
  245. package/dist/cjs/components/TextInput/index.cjs +1 -1
  246. package/dist/cjs/components/Textarea/index.cjs +1 -1
  247. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  248. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  249. package/dist/cjs/components/Timestamp/index.cjs +1 -1
  250. package/dist/cjs/components/Tooltip/index.cjs +1 -1
  251. package/dist/cjs/components/index.cjs +1 -1
  252. package/dist/cjs/index.cjs +1 -1
  253. package/dist/cjs/theme/index.cjs +1 -1
  254. package/dist/esm/chakra/index.js +96 -97
  255. package/dist/esm/components/Alert/index.js +1 -1
  256. package/dist/esm/components/Avatar/index.js +1 -1
  257. package/dist/esm/components/AvatarGroup/index.js +1 -1
  258. package/dist/esm/components/ButtonGroup/index.js +1 -1
  259. package/dist/esm/components/CharacterCounter/index.js +1 -1
  260. package/dist/esm/components/Checkbox/index.js +1 -1
  261. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  262. package/dist/esm/components/ConversationCard/index.js +1 -1
  263. package/dist/esm/components/DatePicker/index.js +1 -1
  264. package/dist/esm/components/Heading/index.js +1 -1
  265. package/dist/esm/components/Logo/index.js +1 -1
  266. package/dist/esm/components/Menu/index.js +1 -1
  267. package/dist/esm/components/Modal/index.js +1 -1
  268. package/dist/esm/components/NotificationCounter/index.js +1 -1
  269. package/dist/esm/components/PinInput/index.js +1 -1
  270. package/dist/esm/components/Popover/index.js +1 -1
  271. package/dist/esm/components/RadioGroup/index.js +1 -1
  272. package/dist/esm/components/RatingDots/index.js +1 -1
  273. package/dist/esm/components/Select/index.js +1 -1
  274. package/dist/esm/components/SortableList/index.js +1 -1
  275. package/dist/esm/components/Spinner/index.js +1 -1
  276. package/dist/esm/components/StyledAvatar/index.js +1 -1
  277. package/dist/esm/components/Swatch/index.js +1 -1
  278. package/dist/esm/components/Switch/index.js +1 -1
  279. package/dist/esm/components/Tabs/index.js +1 -1
  280. package/dist/esm/components/TagBlock/index.js +1 -1
  281. package/dist/esm/components/Text/index.js +1 -1
  282. package/dist/esm/components/TextInput/index.js +1 -1
  283. package/dist/esm/components/Textarea/index.js +1 -1
  284. package/dist/esm/components/TimePicker/index.js +1 -1
  285. package/dist/esm/components/TimeRange/index.js +1 -1
  286. package/dist/esm/components/Timestamp/index.js +1 -1
  287. package/dist/esm/components/Toast/index.js +1 -1
  288. package/dist/esm/components/Tooltip/index.js +1 -1
  289. package/dist/esm/components/index.js +33 -33
  290. package/dist/esm/index.js +34 -34
  291. package/dist/esm/theme/index.js +1 -1
  292. package/dist/types/chakra/index.d.ts +0 -1
  293. package/package.json +1 -1
  294. package/dist/chunks/checkbox.anatomy-AIdXcqX-.js.map +0 -1
  295. package/dist/chunks/checkbox.anatomy-Cscbdyfb.js +0 -2
  296. package/dist/chunks/checkbox.anatomy-Cscbdyfb.js.map +0 -1
  297. package/dist/chunks/checkbox.component-BBnhOurl.js +0 -2
  298. package/dist/chunks/checkbox.records-DJfdKuOe.js +0 -2
  299. package/dist/chunks/checkbox.records-DJfdKuOe.js.map +0 -1
  300. package/dist/chunks/checkbox.records-JWbKQ684.js +0 -14
  301. package/dist/chunks/checkbox.records-JWbKQ684.js.map +0 -1
  302. package/dist/chunks/field.anatomy-B-h4RMqL.js +0 -2
  303. package/dist/chunks/field.anatomy-B-h4RMqL.js.map +0 -1
  304. package/dist/chunks/field.anatomy-DuyH4wX7.js +0 -16
  305. package/dist/chunks/field.anatomy-DuyH4wX7.js.map +0 -1
  306. package/dist/chunks/index-hGcS7e_x.js.map +0 -1
  307. package/dist/chunks/index-n37Ze35k.js.map +0 -1
  308. package/dist/chunks/preset-Bpky4UAW.js +0 -17019
  309. package/dist/chunks/preset-Bpky4UAW.js.map +0 -1
  310. package/dist/chunks/preset-L6TibmCL.js +0 -10
  311. package/dist/chunks/preset-L6TibmCL.js.map +0 -1
  312. package/dist/chunks/radio.records-BxCn4oUd.js +0 -2
  313. package/dist/chunks/radio.records-BxCn4oUd.js.map +0 -1
  314. package/dist/chunks/radio.records-Cc3kP4Vn.js +0 -14
  315. package/dist/chunks/radio.records-Cc3kP4Vn.js.map +0 -1
  316. package/dist/chunks/radioGroup.component-CEnFc_Ag.js +0 -2
  317. package/dist/chunks/theme.provider-C-kSI07j.js +0 -24
  318. package/dist/chunks/theme.provider-C-kSI07j.js.map +0 -1
  319. package/dist/chunks/theme.provider-CQ3U4kMw.js +0 -2885
  320. package/dist/chunks/theme.provider-CQ3U4kMw.js.map +0 -1
  321. package/dist/chunks/tooltip.component-BYqCIrbb.js +0 -142
  322. package/dist/chunks/tooltip.component-BYqCIrbb.js.map +0 -1
  323. package/dist/chunks/tooltip.component-DFn799tO.js +0 -2
  324. package/dist/chunks/tooltip.component-DFn799tO.js.map +0 -1
  325. package/dist/chunks/typography.records-BEd2lI_g.js.map +0 -1
  326. package/dist/chunks/typography.records-Cg_lT1Z3.js +0 -2
  327. package/dist/chunks/typography.records-Cg_lT1Z3.js.map +0 -1
  328. package/dist/chunks/use-locale-context-DxX8oC2w.js +0 -22
  329. package/dist/chunks/use-locale-context-DxX8oC2w.js.map +0 -1
  330. package/dist/chunks/use-locale-context-ib8415q7.js.map +0 -1
  331. package/dist/chunks/withFormControl-DUbGQZnV.js +0 -2
@@ -1,17 +1,17 @@
1
1
  import { j as t } from "./jsx-runtime-C5mzlN2N.js";
2
2
  import b, { forwardRef as j, Children as T, cloneElement as k, useMemo as A } from "react";
3
- import { w as v } from "./withFormControl-CKHeFdbP.js";
3
+ import { w as v } from "./withFormControl-DS2sMs8A.js";
4
4
  import { B as w } from "./button.component-DOAhnxbj.js";
5
- import { C as N } from "./characterCounter.component-D8qNJrRV.js";
5
+ import { C as N } from "./characterCounter.component-DElJ1iFK.js";
6
6
  import { B } from "./box-Ck9I7FYv.js";
7
7
  import { E as S } from "./empty-BU2EAux9.js";
8
8
  import { c as E } from "./factory-Ctbv0Ozn.js";
9
9
  import { u as R } from "./use-recipe-d63ABaZ3.js";
10
10
  import { G } from "./group-DPCVolOl.js";
11
11
  import { c as F } from "./create-recipe-context-D7FewUR4.js";
12
- import { f as z } from "./use-locale-context-ib8415q7.js";
13
- import { u as M } from "./use-field-context-CFITFjXV.js";
14
- import { a1 as O } from "./index-1syExFDc.js";
12
+ import { f as z } from "./use-locale-context-BNU4MHrO.js";
13
+ import { u as M } from "./use-field-context-BZaIHuSQ.js";
14
+ import { a1 as O } from "./index-Ztgrae6O.js";
15
15
  const P = j((a, r) => {
16
16
  const e = M(), n = O(e?.getInputProps(), a);
17
17
  return /* @__PURE__ */ t.jsx(z.input, { ...n, ref: r });
@@ -166,4 +166,4 @@ const rt = v(_);
166
166
  export {
167
167
  rt as W
168
168
  };
169
- //# sourceMappingURL=textInput.component-vxAD2BDI.js.map
169
+ //# sourceMappingURL=textInput.component-Dv4puTkb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textInput.component-vxAD2BDI.js","sources":["../../node_modules/@ark-ui/react/dist/components/field/field-input.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input-addon.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input-element.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input-group.js","../../src/components/TextInput/textInput.records.ts","../../src/components/TextInput/textInput.component.tsx"],"sourcesContent":["'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldInput = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field?.getInputProps(), props);\n return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });\n});\nFieldInput.displayName = \"FieldInput\";\n\nexport { FieldInput };\n","\"use strict\";\n\"use client\";\nimport { Field } from '@ark-ui/react/field';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"input\"\n});\nconst Input = withContext(Field.Input);\nconst InputPropsProvider = PropsProvider;\n\nexport { Input, InputPropsProvider };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { EMPTY_SLOT_STYLES } from '../../styled-system/empty.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { useRecipe } from '../../styled-system/use-recipe.js';\n\nconst InputAddon = forwardRef(\n function InputAddon2({ unstyled, ...props }, ref) {\n const recipe = useRecipe({ key: \"inputAddon\", recipe: props.recipe });\n const [variantProps, localProps] = recipe.splitVariantProps(props);\n const styles = unstyled ? EMPTY_SLOT_STYLES : recipe(variantProps);\n return /* @__PURE__ */ jsx(chakra.div, { ref, ...localProps, css: [styles, props.css] });\n }\n);\n\nexport { InputAddon };\n","\"use strict\";\n\"use client\";\nimport { chakra } from '../../styled-system/factory.js';\n\nconst InputElement = chakra(\"div\", {\n base: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n position: \"absolute\",\n zIndex: 2,\n color: \"fg.muted\",\n height: \"full\",\n fontSize: \"sm\",\n px: \"3\"\n },\n variants: {\n placement: {\n start: {\n insetInlineStart: \"0\"\n },\n end: {\n insetInlineEnd: \"0\"\n }\n }\n }\n});\n\nexport { InputElement };\n","\"use strict\";\n\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, Children, cloneElement } from 'react';\nimport { InputAddon } from './input-addon.js';\nimport { InputElement } from './input-element.js';\nimport { Group } from '../group/group.js';\n\nconst InputGroup = forwardRef(\n function InputGroup2(props, ref) {\n const {\n startElement,\n startElementProps,\n endElement,\n endElementProps,\n startAddon,\n startAddonProps,\n endAddon,\n endAddonProps,\n children,\n startOffset = \"0px\",\n endOffset = \"0px\",\n ...rest\n } = props;\n const child = Children.only(children);\n const attached = Boolean(startAddon || endAddon);\n return /* @__PURE__ */ jsxs(\n Group,\n {\n width: \"full\",\n ref,\n attached,\n skip: (el) => el.type === InputElement,\n ...rest,\n children: [\n startAddon && /* @__PURE__ */ jsx(InputAddon, { ...startAddonProps, children: startAddon }),\n startElement && /* @__PURE__ */ jsx(InputElement, { pointerEvents: \"none\", ...startElementProps, children: startElement }),\n cloneElement(child, {\n ...startElement && {\n ps: `calc(var(--input-height) - ${startOffset})`\n },\n ...endElement && { pe: `calc(var(--input-height) - ${endOffset})` },\n ...children.props\n }),\n endElement && /* @__PURE__ */ jsx(InputElement, { placement: \"end\", ...endElementProps, children: endElement }),\n endAddon && /* @__PURE__ */ jsx(InputAddon, { ...endAddonProps, children: endAddon })\n ]\n }\n );\n }\n);\n\nexport { InputGroup };\n","import { ButtonSize } from 'components/Button/button.types';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\n\nexport const closeButtonSizeMap: Record<FormControlSize, ButtonSize> = {\n sm: 'xs',\n md: 'sm',\n lg: 'md',\n};\n","import React, { useMemo } from 'react';\nimport { Box } from '@chakra-ui/react/box';\nimport { withFormControl, WithFormControlProps } from 'hocs/withFormControl/withFormControl';\nimport { Input as CInput, InputProps as CInputProps, InputGroup } from '@chakra-ui/react/input';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\nimport { Button } from 'components/Button/button.component';\nimport { CharacterCounter } from 'components/CharacterCounter/characterCounter.component';\nimport { closeButtonSizeMap } from './textInput.records';\n\nexport interface TextInputBaseProps extends WithFormControlProps {\n charLimit?: number;\n inputRef?: React.RefObject<HTMLInputElement | null>;\n leftAddon?: React.ReactNode;\n leftElement?: React.ReactNode;\n onContrast?: boolean;\n rightAddon?: React.ReactNode;\n rightElement?: React.ReactNode;\n size?: FormControlSize;\n}\n\nexport interface DefaultTextInputProps extends TextInputBaseProps {\n clearable?: never;\n onClear?: never;\n}\n\nexport interface ClearableTextInputProps extends TextInputBaseProps {\n clearable?: boolean;\n onClear?: (val: string | number | readonly string[]) => void;\n}\n\nexport type KTextInputProps = DefaultTextInputProps | ClearableTextInputProps;\n\nexport type TextInputProps = KTextInputProps & CInputProps;\n\nconst TextInput = 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 ...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=\"kibble-text-input-clear-button\"\n size={closeButtonSizeMap[size as FormControlSize]}\n variant=\"ghostNeutral\"\n onClick={handleClear}\n iconName=\"close\"\n />\n );\n }\n\n const currentCharCount = useMemo(() => value?.toString()?.length || 0, [value]);\n\n return (\n <Box className=\"TextInput__Wrapper\" position=\"relative\" w=\"100%\">\n <InputGroup\n className=\"TextInput__InputGroup\"\n data-testid=\"kibble-text-input-group\"\n startElement={leftElement}\n startElementProps={{\n color: 'inherit',\n _groupDisabled: { opacity: 0.6 },\n }}\n endElement={rightElement}\n endElementProps={{\n color: 'inherit',\n paddingInline: 1.5,\n _groupDisabled: { opacity: 0.6 },\n }}\n startAddon={leftAddon}\n endAddon={rightAddon}\n >\n <CInput\n data-testid=\"kibble-text-input\"\n className=\"TextInput\"\n ref={inputRef || 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 && <CharacterCounter withLimit={true} limit={charLimit} currentCount={currentCharCount} />}\n </Box>\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","InputAddon","unstyled","recipe","useRecipe","variantProps","localProps","styles","EMPTY_SLOT_STYLES","chakra","InputElement","InputGroup","startElement","startElementProps","endElement","endElementProps","startAddon","startAddonProps","endAddon","endAddonProps","children","startOffset","endOffset","rest","child","Children","attached","jsxs","Group","el","cloneElement","closeButtonSizeMap","TextInput","React","charLimit","clearable","disabled","inputRef","invalid","leftAddon","leftElement","onClear","onContrast","rightAddon","rightElement","size","value","handleClear","Button","currentCharCount","useMemo","Box","CInput","CharacterCounter","WrappedTextInput","withFormControl"],"mappings":";;;;;;;;;;;;;;AAOA,MAAMA,IAAaC,EAAW,CAACC,GAAOC,MAAQ;AAC5C,QAAMC,IAAQC,EAAiB,GACzBC,IAAcC,EAAWH,GAAO,cAAa,GAAIF,CAAK;AAC5D,SAAuBM,gBAAAA,EAAAA,IAAIC,EAAI,OAAO,EAAE,GAAGH,GAAa,KAAAH,GAAK;AAC/D,CAAC;AACDH,EAAW,cAAc;ACPzB,MAAM,EAAE,aAAAU,EAA2B,IAAIC,EAAoB;AAAA,EACzD,KAAK;AACP,CAAC,GACKC,IAAQF,EAAYG,CAAW,GCA/BC,IAAab;AAAA,EACjB,SAAqB,EAAE,UAAAc,GAAU,GAAGb,EAAK,GAAIC,GAAK;AAChD,UAAMa,IAASC,EAAU,EAAE,KAAK,cAAc,QAAQf,EAAM,QAAQ,GAC9D,CAACgB,GAAcC,CAAU,IAAIH,EAAO,kBAAkBd,CAAK,GAC3DkB,IAASL,IAAWM,IAAoBL,EAAOE,CAAY;AACjE,WAAuBV,gBAAAA,MAAIc,EAAO,KAAK,EAAE,KAAAnB,GAAK,GAAGgB,GAAY,KAAK,CAACC,GAAQlB,EAAM,GAAG,EAAC,CAAE;AAAA,EAC3F;AACA,GCXMqB,IAAeD,EAAO,OAAO;AAAA,EACjC,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,IAAI;AAAA,EACL;AAAA,EACD,UAAU;AAAA,IACR,WAAW;AAAA,MACT,OAAO;AAAA,QACL,kBAAkB;AAAA,MACnB;AAAA,MACD,KAAK;AAAA,QACH,gBAAgB;AAAA,MACxB;AAAA,IACA;AAAA,EACA;AACA,CAAC,GClB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YAACyD;AAAAA,YAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAU;AAAA,cACV,KAAKf,KAAY/C;AAAA,cACjB,OAAAwD;AAAA,cACA,MAAAD;AAAA,cACA,UAAAT;AAAA,cACC,GAAIE,KAAW,EAAE,gBAAgB,GAAK;AAAA,cACvC,SAASI,IAAa,eAAe;AAAA,cACpC,GAAGnB;AAAA,YAAA;AAAA,UAAA;AAAA,QACN;AAAA,MACF;AAAA,MACC,CAAC,CAACW,KAAcvC,gBAAAA,MAAA0D,GAAA,EAAiB,WAAW,IAAM,OAAOnB,GAAW,cAAce,EAAkB,CAAA;AAAA,IAAA,GACvG;AAAA,EAAA;AAGN;AAEAjB,EAAU,cAAc;AAClB,MAAAsB,KAAmBC,EAAgCvB,CAAS;","x_google_ignoreList":[0,1,2,3,4]}
1
+ {"version":3,"file":"textInput.component-Dv4puTkb.js","sources":["../../node_modules/@ark-ui/react/dist/components/field/field-input.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input-addon.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input-element.js","../../node_modules/@chakra-ui/react/dist/esm/components/input/input-group.js","../../src/components/TextInput/textInput.records.ts","../../src/components/TextInput/textInput.component.tsx"],"sourcesContent":["'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldInput = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field?.getInputProps(), props);\n return /* @__PURE__ */ jsx(ark.input, { ...mergedProps, ref });\n});\nFieldInput.displayName = \"FieldInput\";\n\nexport { FieldInput };\n","\"use strict\";\n\"use client\";\nimport { Field } from '@ark-ui/react/field';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"input\"\n});\nconst Input = withContext(Field.Input);\nconst InputPropsProvider = PropsProvider;\n\nexport { Input, InputPropsProvider };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { EMPTY_SLOT_STYLES } from '../../styled-system/empty.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { useRecipe } from '../../styled-system/use-recipe.js';\n\nconst InputAddon = forwardRef(\n function InputAddon2({ unstyled, ...props }, ref) {\n const recipe = useRecipe({ key: \"inputAddon\", recipe: props.recipe });\n const [variantProps, localProps] = recipe.splitVariantProps(props);\n const styles = unstyled ? EMPTY_SLOT_STYLES : recipe(variantProps);\n return /* @__PURE__ */ jsx(chakra.div, { ref, ...localProps, css: [styles, props.css] });\n }\n);\n\nexport { InputAddon };\n","\"use strict\";\n\"use client\";\nimport { chakra } from '../../styled-system/factory.js';\n\nconst InputElement = chakra(\"div\", {\n base: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n position: \"absolute\",\n zIndex: 2,\n color: \"fg.muted\",\n height: \"full\",\n fontSize: \"sm\",\n px: \"3\"\n },\n variants: {\n placement: {\n start: {\n insetInlineStart: \"0\"\n },\n end: {\n insetInlineEnd: \"0\"\n }\n }\n }\n});\n\nexport { InputElement };\n","\"use strict\";\n\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, Children, cloneElement } from 'react';\nimport { InputAddon } from './input-addon.js';\nimport { InputElement } from './input-element.js';\nimport { Group } from '../group/group.js';\n\nconst InputGroup = forwardRef(\n function InputGroup2(props, ref) {\n const {\n startElement,\n startElementProps,\n endElement,\n endElementProps,\n startAddon,\n startAddonProps,\n endAddon,\n endAddonProps,\n children,\n startOffset = \"0px\",\n endOffset = \"0px\",\n ...rest\n } = props;\n const child = Children.only(children);\n const attached = Boolean(startAddon || endAddon);\n return /* @__PURE__ */ jsxs(\n Group,\n {\n width: \"full\",\n ref,\n attached,\n skip: (el) => el.type === InputElement,\n ...rest,\n children: [\n startAddon && /* @__PURE__ */ jsx(InputAddon, { ...startAddonProps, children: startAddon }),\n startElement && /* @__PURE__ */ jsx(InputElement, { pointerEvents: \"none\", ...startElementProps, children: startElement }),\n cloneElement(child, {\n ...startElement && {\n ps: `calc(var(--input-height) - ${startOffset})`\n },\n ...endElement && { pe: `calc(var(--input-height) - ${endOffset})` },\n ...children.props\n }),\n endElement && /* @__PURE__ */ jsx(InputElement, { placement: \"end\", ...endElementProps, children: endElement }),\n endAddon && /* @__PURE__ */ jsx(InputAddon, { ...endAddonProps, children: endAddon })\n ]\n }\n );\n }\n);\n\nexport { InputGroup };\n","import { ButtonSize } from 'components/Button/button.types';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\n\nexport const closeButtonSizeMap: Record<FormControlSize, ButtonSize> = {\n sm: 'xs',\n md: 'sm',\n lg: 'md',\n};\n","import React, { useMemo } from 'react';\nimport { Box } from '@chakra-ui/react/box';\nimport { withFormControl, WithFormControlProps } from 'hocs/withFormControl/withFormControl';\nimport { Input as CInput, InputProps as CInputProps, InputGroup } from '@chakra-ui/react/input';\nimport { FormControlSize } from 'hocs/withFormControl/withFormControl.types';\nimport { Button } from 'components/Button/button.component';\nimport { CharacterCounter } from 'components/CharacterCounter/characterCounter.component';\nimport { closeButtonSizeMap } from './textInput.records';\n\nexport interface TextInputBaseProps extends WithFormControlProps {\n charLimit?: number;\n inputRef?: React.RefObject<HTMLInputElement | null>;\n leftAddon?: React.ReactNode;\n leftElement?: React.ReactNode;\n onContrast?: boolean;\n rightAddon?: React.ReactNode;\n rightElement?: React.ReactNode;\n size?: FormControlSize;\n}\n\nexport interface DefaultTextInputProps extends TextInputBaseProps {\n clearable?: never;\n onClear?: never;\n}\n\nexport interface ClearableTextInputProps extends TextInputBaseProps {\n clearable?: boolean;\n onClear?: (val: string | number | readonly string[]) => void;\n}\n\nexport type KTextInputProps = DefaultTextInputProps | ClearableTextInputProps;\n\nexport type TextInputProps = KTextInputProps & CInputProps;\n\nconst TextInput = 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 ...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=\"kibble-text-input-clear-button\"\n size={closeButtonSizeMap[size as FormControlSize]}\n variant=\"ghostNeutral\"\n onClick={handleClear}\n iconName=\"close\"\n />\n );\n }\n\n const currentCharCount = useMemo(() => value?.toString()?.length || 0, [value]);\n\n return (\n <Box className=\"TextInput__Wrapper\" position=\"relative\" w=\"100%\">\n <InputGroup\n className=\"TextInput__InputGroup\"\n data-testid=\"kibble-text-input-group\"\n startElement={leftElement}\n startElementProps={{\n color: 'inherit',\n _groupDisabled: { opacity: 0.6 },\n }}\n endElement={rightElement}\n endElementProps={{\n color: 'inherit',\n paddingInline: 1.5,\n _groupDisabled: { opacity: 0.6 },\n }}\n startAddon={leftAddon}\n endAddon={rightAddon}\n >\n <CInput\n data-testid=\"kibble-text-input\"\n className=\"TextInput\"\n ref={inputRef || 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 && <CharacterCounter withLimit={true} limit={charLimit} currentCount={currentCharCount} />}\n </Box>\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","InputAddon","unstyled","recipe","useRecipe","variantProps","localProps","styles","EMPTY_SLOT_STYLES","chakra","InputElement","InputGroup","startElement","startElementProps","endElement","endElementProps","startAddon","startAddonProps","endAddon","endAddonProps","children","startOffset","endOffset","rest","child","Children","attached","jsxs","Group","el","cloneElement","closeButtonSizeMap","TextInput","React","charLimit","clearable","disabled","inputRef","invalid","leftAddon","leftElement","onClear","onContrast","rightAddon","rightElement","size","value","handleClear","Button","currentCharCount","useMemo","Box","CInput","CharacterCounter","WrappedTextInput","withFormControl"],"mappings":";;;;;;;;;;;;;;AAOA,MAAMA,IAAaC,EAAW,CAACC,GAAOC,MAAQ;AAC5C,QAAMC,IAAQC,EAAiB,GACzBC,IAAcC,EAAWH,GAAO,cAAa,GAAIF,CAAK;AAC5D,SAAuBM,gBAAAA,EAAAA,IAAIC,EAAI,OAAO,EAAE,GAAGH,GAAa,KAAAH,GAAK;AAC/D,CAAC;AACDH,EAAW,cAAc;ACPzB,MAAM,EAAE,aAAAU,EAA2B,IAAIC,EAAoB;AAAA,EACzD,KAAK;AACP,CAAC,GACKC,IAAQF,EAAYG,CAAW,GCA/BC,IAAab;AAAA,EACjB,SAAqB,EAAE,UAAAc,GAAU,GAAGb,EAAK,GAAIC,GAAK;AAChD,UAAMa,IAASC,EAAU,EAAE,KAAK,cAAc,QAAQf,EAAM,QAAQ,GAC9D,CAACgB,GAAcC,CAAU,IAAIH,EAAO,kBAAkBd,CAAK,GAC3DkB,IAASL,IAAWM,IAAoBL,EAAOE,CAAY;AACjE,WAAuBV,gBAAAA,MAAIc,EAAO,KAAK,EAAE,KAAAnB,GAAK,GAAGgB,GAAY,KAAK,CAACC,GAAQlB,EAAM,GAAG,EAAC,CAAE;AAAA,EAC3F;AACA,GCXMqB,IAAeD,EAAO,OAAO;AAAA,EACjC,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,IAAI;AAAA,EACL;AAAA,EACD,UAAU;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AAO;AAAA,YACP,eAAe;AAAA,YACf,gBAAgB,EAAE,SAAS,IAAI;AAAA,UACjC;AAAA,UACA,YAAYL;AAAA,UACZ,UAAUI;AAAA,UAEV,UAAAhD,gBAAAA,EAAA;AAAA,YAACyD;AAAAA,YAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAU;AAAA,cACV,KAAKf,KAAY/C;AAAA,cACjB,OAAAwD;AAAA,cACA,MAAAD;AAAA,cACA,UAAAT;AAAA,cACC,GAAIE,KAAW,EAAE,gBAAgB,GAAK;AAAA,cACvC,SAASI,IAAa,eAAe;AAAA,cACpC,GAAGnB;AAAA,YAAA;AAAA,UAAA;AAAA,QACN;AAAA,MACF;AAAA,MACC,CAAC,CAACW,KAAcvC,gBAAAA,MAAA0D,GAAA,EAAiB,WAAW,IAAM,OAAOnB,GAAW,cAAce,EAAkB,CAAA;AAAA,IAAA,GACvG;AAAA,EAAA;AAGN;AAEAjB,EAAU,cAAc;AAClB,MAAAsB,KAAmBC,EAAgCvB,CAAS;","x_google_ignoreList":[0,1,2,3,4]}
@@ -1,2 +1,2 @@
1
- "use strict";const p=require("./jsx-runtime-BjDatQAs.js"),c=require("react"),h=require("./withFormControl-DUbGQZnV.js"),v=require("./characterCounter.component-Aa1IFCGT.js"),g=require("./flex-D14H6HbP.js"),w=require("./create-recipe-context-sESms8Eo.js"),x=require("./index-CHIISuTq.js"),l=require("./use-locale-context-DxX8oC2w.js"),b=require("./use-field-context-4x8yd4wU.js"),C=e=>e&&e.__esModule?e:{default:e},F=C(c);var y=e=>{if(!e)return;const t=x.getComputedStyle(e),o=x.getWindow(e),a=x.getDocument(e),r=()=>{requestAnimationFrame(()=>{e.style.height="auto";let s;t.boxSizing==="content-box"?s=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):s=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&s>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),s=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${s}px`})};e.addEventListener("input",r),e.form?.addEventListener("reset",r);const n=Object.getPrototypeOf(e),i=Object.getOwnPropertyDescriptor(n,"value");Object.defineProperty(e,"value",{...i,set(){i?.set?.apply(this,arguments),r()}});const u=new o.ResizeObserver(()=>{requestAnimationFrame(()=>r())});u.observe(e);const d=new o.MutationObserver(()=>r());return d.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),a.fonts?.addEventListener("loadingdone",r),()=>{e.removeEventListener("input",r),e.form?.removeEventListener("reset",r),a.fonts?.removeEventListener("loadingdone",r),u.disconnect(),d.disconnect()}};const m=c.forwardRef((e,t)=>{const{autoresize:o,...a}=e,r=c.useRef(null),n=b.useFieldContext(),i=x.mergeProps(n?.getTextareaProps(),{style:{resize:o?"none":void 0}},a);return c.useEffect(()=>{if(o)return y(r.current)},[o]),p.jsxRuntimeExports.jsx(l.ark.textarea,{...i,ref:l.composeRefs(t,r)})});m.displayName="FieldTextarea";const{withContext:R}=w.createRecipeContext({key:"textarea"}),T=R(m),f=F.default.forwardRef(({charLimit:e=void 0,invalid:t,onContrast:o,resize:a="none",textareaRef:r,value:n,...i},u)=>{const d=o?"onContrast":"default",s=c.useMemo(()=>n?.toString()?.length||0,[n]);return p.jsxRuntimeExports.jsxs(g.Flex,{className:"Textarea__Wrapper",position:"relative",w:"100%",children:[p.jsxRuntimeExports.jsx(T,{className:"Textarea","data-testid":"kibble-textarea",ref:r||u,resize:a,variant:d,value:n,...t&&{"aria-invalid":!0},minH:"140px",...i}),!!e&&p.jsxRuntimeExports.jsx(v.CharacterCounter,{withLimit:!0,limit:e,currentCount:s})]})});f.displayName="Textarea";const j=h.withFormControl(f);exports.WrappedTextarea=j;
2
- //# sourceMappingURL=textarea.component-DBS-A-Jk.js.map
1
+ "use strict";const p=require("./jsx-runtime-BjDatQAs.js"),c=require("react"),h=require("./withFormControl-DJ6OVImD.js"),v=require("./characterCounter.component-DXmly18j.js"),g=require("./flex-D14H6HbP.js"),w=require("./create-recipe-context-sESms8Eo.js"),x=require("./index-CHIISuTq.js"),l=require("./use-locale-context-D0LByRu9.js"),b=require("./use-field-context-CArmgHPP.js"),C=e=>e&&e.__esModule?e:{default:e},F=C(c);var y=e=>{if(!e)return;const t=x.getComputedStyle(e),o=x.getWindow(e),a=x.getDocument(e),r=()=>{requestAnimationFrame(()=>{e.style.height="auto";let s;t.boxSizing==="content-box"?s=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):s=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&s>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),s=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${s}px`})};e.addEventListener("input",r),e.form?.addEventListener("reset",r);const n=Object.getPrototypeOf(e),i=Object.getOwnPropertyDescriptor(n,"value");Object.defineProperty(e,"value",{...i,set(){i?.set?.apply(this,arguments),r()}});const u=new o.ResizeObserver(()=>{requestAnimationFrame(()=>r())});u.observe(e);const d=new o.MutationObserver(()=>r());return d.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),a.fonts?.addEventListener("loadingdone",r),()=>{e.removeEventListener("input",r),e.form?.removeEventListener("reset",r),a.fonts?.removeEventListener("loadingdone",r),u.disconnect(),d.disconnect()}};const m=c.forwardRef((e,t)=>{const{autoresize:o,...a}=e,r=c.useRef(null),n=b.useFieldContext(),i=x.mergeProps(n?.getTextareaProps(),{style:{resize:o?"none":void 0}},a);return c.useEffect(()=>{if(o)return y(r.current)},[o]),p.jsxRuntimeExports.jsx(l.ark.textarea,{...i,ref:l.composeRefs(t,r)})});m.displayName="FieldTextarea";const{withContext:R}=w.createRecipeContext({key:"textarea"}),T=R(m),f=F.default.forwardRef(({charLimit:e=void 0,invalid:t,onContrast:o,resize:a="none",textareaRef:r,value:n,...i},u)=>{const d=o?"onContrast":"default",s=c.useMemo(()=>n?.toString()?.length||0,[n]);return p.jsxRuntimeExports.jsxs(g.Flex,{className:"Textarea__Wrapper",position:"relative",w:"100%",children:[p.jsxRuntimeExports.jsx(T,{className:"Textarea","data-testid":"kibble-textarea",ref:r||u,resize:a,variant:d,value:n,...t&&{"aria-invalid":!0},minH:"140px",...i}),!!e&&p.jsxRuntimeExports.jsx(v.CharacterCounter,{withLimit:!0,limit:e,currentCount:s})]})});f.displayName="Textarea";const j=h.withFormControl(f);exports.WrappedTextarea=j;
2
+ //# sourceMappingURL=textarea.component-BBZ01Uwu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.component-DBS-A-Jk.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, { ForwardedRef, 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 charLimit?: number;\n textareaRef?: ForwardedRef<HTMLTextAreaElement | null>;\n size?: FormControlSize;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n { charLimit = undefined, invalid, onContrast, resize = 'none', textareaRef, value, ...rest },\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\" position=\"relative\" w=\"100%\">\n <CTextarea\n className=\"Textarea\"\n data-testid=\"kibble-textarea\"\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 && <CharacterCounter withLimit={true} limit={charLimit} currentCount={currentCharCount} />}\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","rest","_computedVariant","currentCharCount","useMemo","Flex","CTextarea","CharacterCounter","WrappedTextarea","withFormControl"],"mappings":"qaAwCA,IAAIA,EAAsBC,GAAO,CAC/B,GAAI,CAACA,EAAI,OACT,MAAMC,EAAQC,EAAgB,iBAACF,CAAE,EAC3BG,EAAMC,EA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AkB,EAAAA,iBAAA,CAAiB,UAAW,GAAM,MAAOV,EAAW,aAAcM,CAAkB,CAAA,CAAA,EACvG,CAAA,CAGN,EAEAT,EAAS,YAAc,WACjB,MAAAc,EAAkBC,kBAA+Bf,CAAQ","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"textarea.component-BBZ01Uwu.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, { ForwardedRef, 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 charLimit?: number;\n textareaRef?: ForwardedRef<HTMLTextAreaElement | null>;\n size?: FormControlSize;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n { charLimit = undefined, invalid, onContrast, resize = 'none', textareaRef, value, ...rest },\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\" position=\"relative\" w=\"100%\">\n <CTextarea\n className=\"Textarea\"\n data-testid=\"kibble-textarea\"\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 && <CharacterCounter withLimit={true} limit={charLimit} currentCount={currentCharCount} />}\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","rest","_computedVariant","currentCharCount","useMemo","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,WA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wardRef as l, useRef as x, useEffect as v, useMemo as g } from "react";
3
- import { w as h } from "./withFormControl-CKHeFdbP.js";
4
- import { C as w } from "./characterCounter.component-D8qNJrRV.js";
3
+ import { w as h } from "./withFormControl-DS2sMs8A.js";
4
+ import { C as w } from "./characterCounter.component-DElJ1iFK.js";
5
5
  import { F as b } from "./flex-smlF8uQG.js";
6
- import { c as y } from "./create-recipe-context-D7FewUR4.js";
7
- import { e as F, H as C, I as T, a1 as j } from "./index-1syExFDc.js";
8
- import { f as O, h as R } from "./use-locale-context-ib8415q7.js";
9
- import { u as E } from "./use-field-context-CFITFjXV.js";
10
- var H = (e) => {
6
+ import { c as F } from "./create-recipe-context-D7FewUR4.js";
7
+ import { e as y, F as C, G as T, a1 as j } from "./index-Ztgrae6O.js";
8
+ import { f as O, h as R } from "./use-locale-context-BNU4MHrO.js";
9
+ import { u as E } from "./use-field-context-BZaIHuSQ.js";
10
+ var P = (e) => {
11
11
  if (!e) return;
12
- const t = F(e), o = C(e), n = T(e), r = () => {
12
+ const t = y(e), o = C(e), n = T(e), r = () => {
13
13
  requestAnimationFrame(() => {
14
14
  e.style.height = "auto";
15
15
  let s;
@@ -41,20 +41,20 @@ const c = l((e, t) => {
41
41
  );
42
42
  return v(() => {
43
43
  if (o)
44
- return H(r.current);
44
+ return P(r.current);
45
45
  }, [o]), /* @__PURE__ */ p.jsx(O.textarea, { ...i, ref: R(t, r) });
46
46
  });
47
47
  c.displayName = "FieldTextarea";
48
- const { withContext: P } = y({
48
+ const { withContext: z } = F({
49
49
  key: "textarea"
50
- }), z = P(
50
+ }), H = z(
51
51
  c
52
52
  ), f = u.forwardRef(
53
53
  ({ charLimit: e = void 0, invalid: t, onContrast: o, resize: n = "none", textareaRef: r, value: a, ...i }, d) => {
54
54
  const m = o ? "onContrast" : "default", s = g(() => a?.toString()?.length || 0, [a]);
55
55
  return /* @__PURE__ */ p.jsxs(b, { className: "Textarea__Wrapper", position: "relative", w: "100%", children: [
56
56
  /* @__PURE__ */ p.jsx(
57
- z,
57
+ H,
58
58
  {
59
59
  className: "Textarea",
60
60
  "data-testid": "kibble-textarea",
@@ -76,4 +76,4 @@ const B = h(f);
76
76
  export {
77
77
  B as W
78
78
  };
79
- //# sourceMappingURL=textarea.component-CVCNVeqW.js.map
79
+ //# sourceMappingURL=textarea.component-BXDGsp_X.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.component-CVCNVeqW.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, { ForwardedRef, 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 charLimit?: number;\n textareaRef?: ForwardedRef<HTMLTextAreaElement | null>;\n size?: FormControlSize;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n { charLimit = undefined, invalid, onContrast, resize = 'none', textareaRef, value, ...rest },\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\" position=\"relative\" w=\"100%\">\n <CTextarea\n className=\"Textarea\"\n data-testid=\"kibble-textarea\"\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 && <CharacterCounter withLimit={true} limit={charLimit} currentCount={currentCharCount} />}\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","rest","_computedVariant","currentCharCount","useMemo","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,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AAiB,WAAW,IAAM,OAAOV,GAAW,cAAcM,EAAkB,CAAA;AAAA,IAAA,GACvG;AAAA,EAAA;AAGN;AAEAT,EAAS,cAAc;AACjB,MAAAc,IAAkBC,EAA+Bf,CAAQ;","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"textarea.component-BXDGsp_X.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, { ForwardedRef, 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 charLimit?: number;\n textareaRef?: ForwardedRef<HTMLTextAreaElement | null>;\n size?: FormControlSize;\n}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n (\n { charLimit = undefined, invalid, onContrast, resize = 'none', textareaRef, value, ...rest },\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\" position=\"relative\" w=\"100%\">\n <CTextarea\n className=\"Textarea\"\n data-testid=\"kibble-textarea\"\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 && <CharacterCounter withLimit={true} limit={charLimit} currentCount={currentCharCount} />}\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","rest","_computedVariant","currentCharCount","useMemo","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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