@televet/kibble-ui 4.0.0-beta.35 → 4.0.0-beta.37

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 (435) hide show
  1. package/dist/chunks/{IconLogo-DedIxFq7.js → IconLogo-C4aZqkn1.js} +2 -2
  2. package/dist/chunks/{IconLogo-DedIxFq7.js.map → IconLogo-C4aZqkn1.js.map} +1 -1
  3. package/dist/chunks/alert.component-BPTwogSX.js +2 -0
  4. package/dist/chunks/{alert.component-CcCt-bb5.js.map → alert.component-BPTwogSX.js.map} +1 -1
  5. package/dist/chunks/{alert.component-Dk33kIVc.js → alert.component-BT9Gn6Iw.js} +10 -10
  6. package/dist/chunks/{alert.component-Dk33kIVc.js.map → alert.component-BT9Gn6Iw.js.map} +1 -1
  7. package/dist/chunks/{avatar.component-Bj-v-tJK.js → avatar.component-B0LsaXtv.js} +12 -12
  8. package/dist/chunks/{avatar.component-Bj-v-tJK.js.map → avatar.component-B0LsaXtv.js.map} +1 -1
  9. package/dist/chunks/avatar.component-DLmlAmdJ.js +2 -0
  10. package/dist/chunks/{avatar.component-LWnRY2X6.js.map → avatar.component-DLmlAmdJ.js.map} +1 -1
  11. package/dist/chunks/{avatarGroup.component-Onosz6A9.js → avatarGroup.component-DHbejH6-.js} +2 -2
  12. package/dist/chunks/{avatarGroup.component-Onosz6A9.js.map → avatarGroup.component-DHbejH6-.js.map} +1 -1
  13. package/dist/chunks/{avatarGroup.component-DEDlMSqD.js → avatarGroup.component-DYQjXpw6.js} +2 -2
  14. package/dist/chunks/{avatarGroup.component-DEDlMSqD.js.map → avatarGroup.component-DYQjXpw6.js.map} +1 -1
  15. package/dist/chunks/box-CRddum0T.js +7 -0
  16. package/dist/chunks/{box-DQTWVrl0.js.map → box-CRddum0T.js.map} +1 -1
  17. package/dist/chunks/box-CqeORXNj.js +2 -0
  18. package/dist/chunks/{box-DiiiZkF4.js.map → box-CqeORXNj.js.map} +1 -1
  19. package/dist/chunks/{button.component-BZHMvNis.js → button.component-CXYCe9wy.js} +3 -3
  20. package/dist/chunks/{button.component-BZHMvNis.js.map → button.component-CXYCe9wy.js.map} +1 -1
  21. package/dist/chunks/{button.component-DrvTYE-F.js → button.component-Dkq2R93W.js} +2 -2
  22. package/dist/chunks/{button.component-DrvTYE-F.js.map → button.component-Dkq2R93W.js.map} +1 -1
  23. package/dist/chunks/{buttonGroup.component-DoNMqghO.js → buttonGroup.component-BLdNoPbq.js} +6 -6
  24. package/dist/chunks/{buttonGroup.component-DoNMqghO.js.map → buttonGroup.component-BLdNoPbq.js.map} +1 -1
  25. package/dist/chunks/{buttonGroup.component-CmMPEPEN.js → buttonGroup.component-CEL4pdRB.js} +2 -2
  26. package/dist/chunks/{buttonGroup.component-CmMPEPEN.js.map → buttonGroup.component-CEL4pdRB.js.map} +1 -1
  27. package/dist/chunks/{card.component-BdHsWz_5.js → card.component-BmmzlLYn.js} +2 -2
  28. package/dist/chunks/{card.component-BdHsWz_5.js.map → card.component-BmmzlLYn.js.map} +1 -1
  29. package/dist/chunks/{card.component-Ds2Q5-dv.js → card.component-uqvWzK_0.js} +2 -2
  30. package/dist/chunks/{card.component-Ds2Q5-dv.js.map → card.component-uqvWzK_0.js.map} +1 -1
  31. package/dist/chunks/{characterCounter.component-OMu4axLo.js → characterCounter.component-CZASTylb.js} +2 -2
  32. package/dist/chunks/{characterCounter.component-OMu4axLo.js.map → characterCounter.component-CZASTylb.js.map} +1 -1
  33. package/dist/chunks/{characterCounter.component-2pxq0nJ_.js → characterCounter.component-Dvz2OZQP.js} +5 -5
  34. package/dist/chunks/{characterCounter.component-2pxq0nJ_.js.map → characterCounter.component-Dvz2OZQP.js.map} +1 -1
  35. package/dist/chunks/{checkbox.component-6unW8bGD.js → checkbox.component-E4vMCQbq.js} +7 -7
  36. package/dist/chunks/{checkbox.component-6unW8bGD.js.map → checkbox.component-E4vMCQbq.js.map} +1 -1
  37. package/dist/chunks/checkbox.component-VWcYJiRf.js +2 -0
  38. package/dist/chunks/{checkbox.component-CN7VT6Kl.js.map → checkbox.component-VWcYJiRf.js.map} +1 -1
  39. package/dist/chunks/{checkbox.records-1df_6uAA.js → checkbox.records-B8iY0zdQ.js} +2 -2
  40. package/dist/chunks/{checkbox.records-1df_6uAA.js.map → checkbox.records-B8iY0zdQ.js.map} +1 -1
  41. package/dist/chunks/{checkbox.records-BEJe1isy.js → checkbox.records-C-c1IoWp.js} +2 -2
  42. package/dist/chunks/{checkbox.records-BEJe1isy.js.map → checkbox.records-C-c1IoWp.js.map} +1 -1
  43. package/dist/chunks/{checkboxGroup.component-BJ12z-XW.js → checkboxGroup.component-DAtqZ54e.js} +2 -2
  44. package/dist/chunks/{checkboxGroup.component-BJ12z-XW.js.map → checkboxGroup.component-DAtqZ54e.js.map} +1 -1
  45. package/dist/chunks/{checkboxGroup.component-Dbc4R5pg.js → checkboxGroup.component-SABwFfW_.js} +4 -4
  46. package/dist/chunks/{checkboxGroup.component-Dbc4R5pg.js.map → checkboxGroup.component-SABwFfW_.js.map} +1 -1
  47. package/dist/chunks/{config-CWIRw37z.js → config-CrnIcxSC.js} +2 -2
  48. package/dist/chunks/{config-CWIRw37z.js.map → config-CrnIcxSC.js.map} +1 -1
  49. package/dist/chunks/{config-Bka1LOUG.js → config-fNC832hN.js} +2 -2
  50. package/dist/chunks/{config-Bka1LOUG.js.map → config-fNC832hN.js.map} +1 -1
  51. package/dist/chunks/{conversationCard.component-D0iB6mGd.js → conversationCard.component-BtiP2oUj.js} +17 -17
  52. package/dist/chunks/{conversationCard.component-D0iB6mGd.js.map → conversationCard.component-BtiP2oUj.js.map} +1 -1
  53. package/dist/chunks/{conversationCard.component--lfMn8rH.js → conversationCard.component-D16i-VxT.js} +2 -2
  54. package/dist/chunks/{conversationCard.component--lfMn8rH.js.map → conversationCard.component-D16i-VxT.js.map} +1 -1
  55. package/dist/chunks/{create-recipe-context-yj-_0pxV.js → create-recipe-context-Bim5jFE2.js} +2 -2
  56. package/dist/chunks/{create-recipe-context-yj-_0pxV.js.map → create-recipe-context-Bim5jFE2.js.map} +1 -1
  57. package/dist/chunks/{create-recipe-context-ei7-Fhjc.js → create-recipe-context-CA3qYjga.js} +3 -3
  58. package/dist/chunks/{create-recipe-context-ei7-Fhjc.js.map → create-recipe-context-CA3qYjga.js.map} +1 -1
  59. package/dist/chunks/{create-slot-recipe-context-B6kmgvsX.js → create-slot-recipe-context-CGmjOuOh.js} +3 -3
  60. package/dist/chunks/{create-slot-recipe-context-B6kmgvsX.js.map → create-slot-recipe-context-CGmjOuOh.js.map} +1 -1
  61. package/dist/chunks/{create-slot-recipe-context-CNbTdeS5.js → create-slot-recipe-context-CgQA10Yw.js} +2 -2
  62. package/dist/chunks/{create-slot-recipe-context-CNbTdeS5.js.map → create-slot-recipe-context-CgQA10Yw.js.map} +1 -1
  63. package/dist/chunks/{datePicker.component-DOq_pEln.js → datePicker.component-CFK8KuwT.js} +2 -2
  64. package/dist/chunks/{datePicker.component-DOq_pEln.js.map → datePicker.component-CFK8KuwT.js.map} +1 -1
  65. package/dist/chunks/{datePicker.component-BjPLm6FH.js → datePicker.component-CgXA_g6P.js} +13 -13
  66. package/dist/chunks/{datePicker.component-BjPLm6FH.js.map → datePicker.component-CgXA_g6P.js.map} +1 -1
  67. package/dist/chunks/{dialog-trigger-tzkv77T4.js → dialog-trigger-B6YOjSvA.js} +2 -2
  68. package/dist/chunks/{dialog-trigger-tzkv77T4.js.map → dialog-trigger-B6YOjSvA.js.map} +1 -1
  69. package/dist/chunks/{dialog-trigger-CUC9-uYl.js → dialog-trigger-be7-Tznq.js} +2 -2
  70. package/dist/chunks/{dialog-trigger-CUC9-uYl.js.map → dialog-trigger-be7-Tznq.js.map} +1 -1
  71. package/dist/chunks/{divider.types-Cum_pC7q.js → divider.types-040bKgyZ.js} +2 -2
  72. package/dist/chunks/{divider.types-Cum_pC7q.js.map → divider.types-040bKgyZ.js.map} +1 -1
  73. package/dist/chunks/{divider.types-CVrYEuME.js → divider.types-DwqIRd94.js} +3 -3
  74. package/dist/chunks/{divider.types-CVrYEuME.js.map → divider.types-DwqIRd94.js.map} +1 -1
  75. package/dist/chunks/{factory-D5ooFDGK.js → factory-D_LOlWjz.js} +181 -181
  76. package/dist/chunks/{factory-D5ooFDGK.js.map → factory-D_LOlWjz.js.map} +1 -1
  77. package/dist/chunks/factory-DiRBd_Ei.js +17 -0
  78. package/dist/chunks/{factory-Djhmhla9.js.map → factory-DiRBd_Ei.js.map} +1 -1
  79. package/dist/chunks/{flex-D2YmHSRL.js → flex-9MBe_Izs.js} +2 -2
  80. package/dist/chunks/{flex-D2YmHSRL.js.map → flex-9MBe_Izs.js.map} +1 -1
  81. package/dist/chunks/{flex-CoWH4MWg.js → flex-BpxJvA4z.js} +2 -2
  82. package/dist/chunks/{flex-CoWH4MWg.js.map → flex-BpxJvA4z.js.map} +1 -1
  83. package/dist/chunks/{float-D0XppGHj.js → float-D5FLe8D9.js} +2 -2
  84. package/dist/chunks/{float-D0XppGHj.js.map → float-D5FLe8D9.js.map} +1 -1
  85. package/dist/chunks/{float-3sTEdNja.js → float-DltoW_Zq.js} +3 -3
  86. package/dist/chunks/{float-3sTEdNja.js.map → float-DltoW_Zq.js.map} +1 -1
  87. package/dist/chunks/{grid-item-CUvFlFUM.js → grid-item-Bh8eyURv.js} +2 -2
  88. package/dist/chunks/{grid-item-CUvFlFUM.js.map → grid-item-Bh8eyURv.js.map} +1 -1
  89. package/dist/chunks/{grid-item-Demhr3R8.js → grid-item-CtE_AYi_.js} +3 -3
  90. package/dist/chunks/{grid-item-Demhr3R8.js.map → grid-item-CtE_AYi_.js.map} +1 -1
  91. package/dist/chunks/{group-CyV6CH8n.js → group-B-T5mM5H.js} +2 -2
  92. package/dist/chunks/{group-CyV6CH8n.js.map → group-B-T5mM5H.js.map} +1 -1
  93. package/dist/chunks/{group-gT4uiUTj.js → group-C1RHA5D4.js} +2 -2
  94. package/dist/chunks/{group-gT4uiUTj.js.map → group-C1RHA5D4.js.map} +1 -1
  95. package/dist/chunks/{h-stack-DWIPFE4q.js → h-stack-BNJKAmfP.js} +2 -2
  96. package/dist/chunks/{h-stack-DWIPFE4q.js.map → h-stack-BNJKAmfP.js.map} +1 -1
  97. package/dist/chunks/h-stack-CS7rfLzY.js +2 -0
  98. package/dist/chunks/{h-stack-DS6_Nmps.js.map → h-stack-CS7rfLzY.js.map} +1 -1
  99. package/dist/chunks/{heading.component-WidNm4DU.js → heading.component-C0os9XQl.js} +3 -3
  100. package/dist/chunks/{heading.component-WidNm4DU.js.map → heading.component-C0os9XQl.js.map} +1 -1
  101. package/dist/chunks/heading.component-DPQ3Ldev.js +2 -0
  102. package/dist/chunks/{heading.component-CVtGEEgj.js.map → heading.component-DPQ3Ldev.js.map} +1 -1
  103. package/dist/chunks/{icon-button-BhUHtq9f.js → icon-button-C2UFU-Ne.js} +4 -4
  104. package/dist/chunks/{icon-button-BhUHtq9f.js.map → icon-button-C2UFU-Ne.js.map} +1 -1
  105. package/dist/chunks/icon-button-DTNVQ6ie.js +2 -0
  106. package/dist/chunks/{icon-button-BoeNBxVE.js.map → icon-button-DTNVQ6ie.js.map} +1 -1
  107. package/dist/chunks/{icon.component-CqMlCLYe.js → icon.component-2UIkFQec.js} +2 -2
  108. package/dist/chunks/{icon.component-CqMlCLYe.js.map → icon.component-2UIkFQec.js.map} +1 -1
  109. package/dist/chunks/{icon.component-RnXzLy9Z.js → icon.component-Bak20DHK.js} +2 -2
  110. package/dist/chunks/{icon.component-RnXzLy9Z.js.map → icon.component-Bak20DHK.js.map} +1 -1
  111. package/dist/chunks/{icons-6idzI9fr.js → icons-DV9YYLlJ.js} +2 -2
  112. package/dist/chunks/{icons-6idzI9fr.js.map → icons-DV9YYLlJ.js.map} +1 -1
  113. package/dist/chunks/{icons-DsfswYKK.js → icons-mKvEgUrt.js} +2 -2
  114. package/dist/chunks/{icons-DsfswYKK.js.map → icons-mKvEgUrt.js.map} +1 -1
  115. package/dist/chunks/{index-CItwlE2r.js → index-7Wm53w71.js} +2 -2
  116. package/dist/chunks/{index-CItwlE2r.js.map → index-7Wm53w71.js.map} +1 -1
  117. package/dist/chunks/{index-Cl4DH-b8.js → index-BDnnTdaJ.js} +2 -2
  118. package/dist/chunks/{index-Cl4DH-b8.js.map → index-BDnnTdaJ.js.map} +1 -1
  119. package/dist/chunks/{index-D1m6YWQg.js → index-BYf7SZUC.js} +2 -2
  120. package/dist/chunks/{index-D1m6YWQg.js.map → index-BYf7SZUC.js.map} +1 -1
  121. package/dist/chunks/{index-JaYE81Ru.js → index-COoMV9Mh.js} +2 -2
  122. package/dist/chunks/{index-JaYE81Ru.js.map → index-COoMV9Mh.js.map} +1 -1
  123. package/dist/chunks/{index-bAktJOSP.js → index-CZz7hHWb.js} +2 -2
  124. package/dist/chunks/{index-bAktJOSP.js.map → index-CZz7hHWb.js.map} +1 -1
  125. package/dist/chunks/{index-Dg2ABT8y.js → index-CkYZf9Pm.js} +2 -2
  126. package/dist/chunks/{index-Dg2ABT8y.js.map → index-CkYZf9Pm.js.map} +1 -1
  127. package/dist/chunks/{index-DQxjSq1v.js → index-Cn3XQQvx.js} +2 -2
  128. package/dist/chunks/{index-DQxjSq1v.js.map → index-Cn3XQQvx.js.map} +1 -1
  129. package/dist/chunks/index-DD49WSSW.js +2 -0
  130. package/dist/chunks/index-DD49WSSW.js.map +1 -0
  131. package/dist/chunks/index-DZ4rwOqN.js +2 -0
  132. package/dist/chunks/{index-naFRmuBR.js.map → index-DZ4rwOqN.js.map} +1 -1
  133. package/dist/chunks/{index-BStpE8Il.js → index-DyfLgoV3.js} +2 -2
  134. package/dist/chunks/{index-BStpE8Il.js.map → index-DyfLgoV3.js.map} +1 -1
  135. package/dist/chunks/{index-DgM7zI46.js → index-MlhL0PDC.js} +2 -2
  136. package/dist/chunks/{index-DgM7zI46.js.map → index-MlhL0PDC.js.map} +1 -1
  137. package/dist/chunks/{index-Cv1W043o.js → index-UWtj4ULm.js} +2 -2
  138. package/dist/chunks/{index-Cv1W043o.js.map → index-UWtj4ULm.js.map} +1 -1
  139. package/dist/chunks/{index-CNSw8O4Z.js → index-ZaGEDS_0.js} +2 -2
  140. package/dist/chunks/{index-CNSw8O4Z.js.map → index-ZaGEDS_0.js.map} +1 -1
  141. package/dist/chunks/{jsx-runtime-CITbqOLs.js → jsx-runtime-BjDatQAs.js} +5 -5
  142. package/dist/chunks/{jsx-runtime-CITbqOLs.js.map → jsx-runtime-BjDatQAs.js.map} +1 -1
  143. package/dist/chunks/{link.component-DfPzeeWK.js → link.component-Bc4wkkNV.js} +2 -2
  144. package/dist/chunks/{link.component-DfPzeeWK.js.map → link.component-Bc4wkkNV.js.map} +1 -1
  145. package/dist/chunks/{link.component-B0NnnoNo.js → link.component-DpZFgqBD.js} +5 -5
  146. package/dist/chunks/{link.component-B0NnnoNo.js.map → link.component-DpZFgqBD.js.map} +1 -1
  147. package/dist/chunks/{list-CBFKkZsk.js → list-6xuavQ8j.js} +2 -2
  148. package/dist/chunks/{list-CBFKkZsk.js.map → list-6xuavQ8j.js.map} +1 -1
  149. package/dist/chunks/{list-AkEh0-z3.js → list-btYImTmv.js} +2 -2
  150. package/dist/chunks/{list-AkEh0-z3.js.map → list-btYImTmv.js.map} +1 -1
  151. package/dist/chunks/{logo.types-DWfVoh84.js → logo.types-CNiIncF7.js} +2 -2
  152. package/dist/chunks/{logo.types-DWfVoh84.js.map → logo.types-CNiIncF7.js.map} +1 -1
  153. package/dist/chunks/{logo.types-Di-vcqft.js → logo.types-_82dfqCq.js} +4 -4
  154. package/dist/chunks/{logo.types-Di-vcqft.js.map → logo.types-_82dfqCq.js.map} +1 -1
  155. package/dist/chunks/{menu.component-D7YIaf-Z.js → menu.component-6ReZTkw3.js} +11 -11
  156. package/dist/chunks/{menu.component-D7YIaf-Z.js.map → menu.component-6ReZTkw3.js.map} +1 -1
  157. package/dist/chunks/menu.component-M23lpQYR.js +2 -0
  158. package/dist/chunks/{menu.component-CVq3JuDQ.js.map → menu.component-M23lpQYR.js.map} +1 -1
  159. package/dist/chunks/{modal.types-BqYvHMJ1.js → modal.types-C-ULroqw.js} +2 -2
  160. package/dist/chunks/{modal.types-BqYvHMJ1.js.map → modal.types-C-ULroqw.js.map} +1 -1
  161. package/dist/chunks/{modal.types-hd4zRySC.js → modal.types-Cz1sgSf1.js} +7 -7
  162. package/dist/chunks/{modal.types-hd4zRySC.js.map → modal.types-Cz1sgSf1.js.map} +1 -1
  163. package/dist/chunks/{notificationCounter.component-C1kj4Fks.js → notificationCounter.component-lX_ARuii.js} +2 -2
  164. package/dist/chunks/{notificationCounter.component-C1kj4Fks.js.map → notificationCounter.component-lX_ARuii.js.map} +1 -1
  165. package/dist/chunks/{notificationCounter.component-DucbUl3J.js → notificationCounter.component-nPsm5edj.js} +5 -5
  166. package/dist/chunks/{notificationCounter.component-DucbUl3J.js.map → notificationCounter.component-nPsm5edj.js.map} +1 -1
  167. package/dist/chunks/{picture.component-CcTQIBLG.js → picture.component-CRe72g3B.js} +2 -2
  168. package/dist/chunks/{picture.component-CcTQIBLG.js.map → picture.component-CRe72g3B.js.map} +1 -1
  169. package/dist/chunks/{picture.component-CFur6bma.js → picture.component-DietrSe9.js} +2 -2
  170. package/dist/chunks/{picture.component-CFur6bma.js.map → picture.component-DietrSe9.js.map} +1 -1
  171. package/dist/chunks/{pinInput.types-htAlsWUJ.js → pinInput.types-BEUtBvMe.js} +3 -3
  172. package/dist/chunks/{pinInput.types-htAlsWUJ.js.map → pinInput.types-BEUtBvMe.js.map} +1 -1
  173. package/dist/chunks/pinInput.types-DyQpSyoi.js +2 -0
  174. package/dist/chunks/{pinInput.types-BkZoddhj.js.map → pinInput.types-DyQpSyoi.js.map} +1 -1
  175. package/dist/chunks/{popover-NyXIgDrR.js → popover-B0kRlAi2.js} +2 -2
  176. package/dist/chunks/{popover-NyXIgDrR.js.map → popover-B0kRlAi2.js.map} +1 -1
  177. package/dist/chunks/{popover-DK1Q0GmC.js → popover-B8hI3TjN.js} +2 -2
  178. package/dist/chunks/{popover-DK1Q0GmC.js.map → popover-B8hI3TjN.js.map} +1 -1
  179. package/dist/chunks/{popover-root-provider-DL0Y6XoH.js → popover-root-provider-DAMDDAHQ.js} +2 -2
  180. package/dist/chunks/{popover-root-provider-DL0Y6XoH.js.map → popover-root-provider-DAMDDAHQ.js.map} +1 -1
  181. package/dist/chunks/{popover.component-Di7A2mlT.js → popover.component-CrVJG5hl.js} +11 -11
  182. package/dist/chunks/{popover.component-Di7A2mlT.js.map → popover.component-CrVJG5hl.js.map} +1 -1
  183. package/dist/chunks/popover.component-IX7vhT9Q.js +2 -0
  184. package/dist/chunks/{popover.component-BU4ZYtgB.js.map → popover.component-IX7vhT9Q.js.map} +1 -1
  185. package/dist/chunks/{popover.recipe-C7mfFIuD.js → popover.recipe-CXB-bizi.js} +2 -2
  186. package/dist/chunks/{popover.recipe-C7mfFIuD.js.map → popover.recipe-CXB-bizi.js.map} +1 -1
  187. package/dist/chunks/{popover.recipe-CFioNlNO.js → popover.recipe-DhCa6zgx.js} +2 -2
  188. package/dist/chunks/{popover.recipe-CFioNlNO.js.map → popover.recipe-DhCa6zgx.js.map} +1 -1
  189. package/dist/chunks/{radio.records-HAh4TB8-.js → radio.records-CgQh4PvA.js} +2 -2
  190. package/dist/chunks/{radio.records-HAh4TB8-.js.map → radio.records-CgQh4PvA.js.map} +1 -1
  191. package/dist/chunks/{radio.records-BvaGc_dX.js → radio.records-Ds_h4yC0.js} +2 -2
  192. package/dist/chunks/{radio.records-BvaGc_dX.js.map → radio.records-Ds_h4yC0.js.map} +1 -1
  193. package/dist/chunks/{radioGroup.component-Cdtgrekb.js → radioGroup.component-B3IbjBoh.js} +10 -10
  194. package/dist/chunks/{radioGroup.component-Cdtgrekb.js.map → radioGroup.component-B3IbjBoh.js.map} +1 -1
  195. package/dist/chunks/radioGroup.component-baegzOcU.js +2 -0
  196. package/dist/chunks/{radioGroup.component-AnXOfN3A.js.map → radioGroup.component-baegzOcU.js.map} +1 -1
  197. package/dist/chunks/{ratingDots.component-wYh_RTGd.js → ratingDots.component-BOP9ddLk.js} +2 -2
  198. package/dist/chunks/{ratingDots.component-wYh_RTGd.js.map → ratingDots.component-BOP9ddLk.js.map} +1 -1
  199. package/dist/chunks/{ratingDots.component-B-VtkikB.js → ratingDots.component-CDJNTlyt.js} +7 -7
  200. package/dist/chunks/{ratingDots.component-B-VtkikB.js.map → ratingDots.component-CDJNTlyt.js.map} +1 -1
  201. package/dist/chunks/{render-strategy-8uyKZcWI.js → render-strategy-BmWbSgqh.js} +2 -2
  202. package/dist/chunks/{render-strategy-8uyKZcWI.js.map → render-strategy-BmWbSgqh.js.map} +1 -1
  203. package/dist/chunks/select.component-D5Kx0C6H.js +2 -0
  204. package/dist/chunks/{select.component-CtCEglbM.js.map → select.component-D5Kx0C6H.js.map} +1 -1
  205. package/dist/chunks/{select.component-C9FC4hZN.js → select.component-kIMBGVX-.js} +9 -9
  206. package/dist/chunks/{select.component-C9FC4hZN.js.map → select.component-kIMBGVX-.js.map} +1 -1
  207. package/dist/chunks/sortableList.component-CMdzXRvM.js +6 -0
  208. package/dist/chunks/{sortableList.component-Dft-FiMn.js.map → sortableList.component-CMdzXRvM.js.map} +1 -1
  209. package/dist/chunks/{sortableList.component-BpkFj8Wt.js → sortableList.component-DWCeI27G.js} +5 -5
  210. package/dist/chunks/{sortableList.component-BpkFj8Wt.js.map → sortableList.component-DWCeI27G.js.map} +1 -1
  211. package/dist/chunks/spinner-BVmsGoNz.js +2 -0
  212. package/dist/chunks/{spinner-B981BEf0.js.map → spinner-BVmsGoNz.js.map} +1 -1
  213. package/dist/chunks/spinner-CIj_D6mc.js +8 -0
  214. package/dist/chunks/{spinner-DUSVCecp.js.map → spinner-CIj_D6mc.js.map} +1 -1
  215. package/dist/chunks/{spinner.component-BmT7fUg9.js → spinner.component-B0EkS0nN.js} +6 -6
  216. package/dist/chunks/{spinner.component-BmT7fUg9.js.map → spinner.component-B0EkS0nN.js.map} +1 -1
  217. package/dist/chunks/{spinner.component-DPS-cIcA.js → spinner.component-DbjX00Oz.js} +2 -2
  218. package/dist/chunks/{spinner.component-DPS-cIcA.js.map → spinner.component-DbjX00Oz.js.map} +1 -1
  219. package/dist/chunks/{stack-DXGLsM8c.js → stack-CJxtLLO5.js} +2 -2
  220. package/dist/chunks/{stack-DXGLsM8c.js.map → stack-CJxtLLO5.js.map} +1 -1
  221. package/dist/chunks/{stack-BNCEW5sJ.js → stack-DCiVNls4.js} +3 -3
  222. package/dist/chunks/{stack-BNCEW5sJ.js.map → stack-DCiVNls4.js.map} +1 -1
  223. package/dist/chunks/{styledAvatar.types-CI0j01cH.js → styledAvatar.types-D-EtAZDF.js} +2 -2
  224. package/dist/chunks/{styledAvatar.types-CI0j01cH.js.map → styledAvatar.types-D-EtAZDF.js.map} +1 -1
  225. package/dist/chunks/{styledAvatar.types-CRb1HJCU.js → styledAvatar.types-Dq0B2lvO.js} +2 -2
  226. package/dist/chunks/{styledAvatar.types-CRb1HJCU.js.map → styledAvatar.types-Dq0B2lvO.js.map} +1 -1
  227. package/dist/chunks/{swatch.types-BtgRLAO2.js → swatch.types-BaLvcOgk.js} +2 -2
  228. package/dist/chunks/{swatch.types-BtgRLAO2.js.map → swatch.types-BaLvcOgk.js.map} +1 -1
  229. package/dist/chunks/{swatch.types-DMM5zh_t.js → swatch.types-yT5psqUR.js} +4 -4
  230. package/dist/chunks/{swatch.types-DMM5zh_t.js.map → swatch.types-yT5psqUR.js.map} +1 -1
  231. package/dist/chunks/switch.component-Ok2ZZQth.js +2 -0
  232. package/dist/chunks/{switch.component-Do0X7LJD.js.map → switch.component-Ok2ZZQth.js.map} +1 -1
  233. package/dist/chunks/{switch.component-Dl4g9R68.js → switch.component-w_hI7PDT.js} +5 -5
  234. package/dist/chunks/{switch.component-Dl4g9R68.js.map → switch.component-w_hI7PDT.js.map} +1 -1
  235. package/dist/chunks/{tabs.component-D1aPBr6M.js → tabs.component-BWVporfj.js} +5 -5
  236. package/dist/chunks/{tabs.component-D1aPBr6M.js.map → tabs.component-BWVporfj.js.map} +1 -1
  237. package/dist/chunks/{tabs.component-ISxMfB67.js → tabs.component-CD-aAuwS.js} +2 -2
  238. package/dist/chunks/{tabs.component-ISxMfB67.js.map → tabs.component-CD-aAuwS.js.map} +1 -1
  239. package/dist/chunks/{tag.component-BdVdchYv.js → tag.component-B3HqTQv9.js} +3 -3
  240. package/dist/chunks/{tag.component-BdVdchYv.js.map → tag.component-B3HqTQv9.js.map} +1 -1
  241. package/dist/chunks/{tag.component-Mi7eMQDk.js → tag.component-CG0GhLTW.js} +2 -2
  242. package/dist/chunks/{tag.component-Mi7eMQDk.js.map → tag.component-CG0GhLTW.js.map} +1 -1
  243. package/dist/chunks/{tagBlock.component-BQRdsHPH.js → tagBlock.component-C4Jhgu0X.js} +10 -10
  244. package/dist/chunks/{tagBlock.component-BQRdsHPH.js.map → tagBlock.component-C4Jhgu0X.js.map} +1 -1
  245. package/dist/chunks/tagBlock.component-DVZRmYDw.js +2 -0
  246. package/dist/chunks/{tagBlock.component-Dj3iPVJy.js.map → tagBlock.component-DVZRmYDw.js.map} +1 -1
  247. package/dist/chunks/text.component-CjHMwskV.js +2 -0
  248. package/dist/chunks/{text.component-uDfPjmx6.js.map → text.component-CjHMwskV.js.map} +1 -1
  249. package/dist/chunks/{text.component-ymbS_dRE.js → text.component-DCAWfY65.js} +3 -3
  250. package/dist/chunks/{text.component-ymbS_dRE.js.map → text.component-DCAWfY65.js.map} +1 -1
  251. package/dist/chunks/{textInput.component-DfqkWsJX.js → textInput.component-B5-xa_yC.js} +9 -9
  252. package/dist/chunks/{textInput.component-DfqkWsJX.js.map → textInput.component-B5-xa_yC.js.map} +1 -1
  253. package/dist/chunks/textInput.component-BMSwF3Ae.js +2 -0
  254. package/dist/chunks/{textInput.component-CEF55yJj.js.map → textInput.component-BMSwF3Ae.js.map} +1 -1
  255. package/dist/chunks/{textarea.component-1B3U7E2O.js → textarea.component-1qoZ-mMp.js} +5 -5
  256. package/dist/chunks/{textarea.component-1B3U7E2O.js.map → textarea.component-1qoZ-mMp.js.map} +1 -1
  257. package/dist/chunks/textarea.component-L3bZoiXW.js +2 -0
  258. package/dist/chunks/{textarea.component-BVGFuIZC.js.map → textarea.component-L3bZoiXW.js.map} +1 -1
  259. package/dist/chunks/{theme.provider-BM3qjfO8.js → theme.provider-Cjzvgcq8.js} +4 -4
  260. package/dist/chunks/{theme.provider-BM3qjfO8.js.map → theme.provider-Cjzvgcq8.js.map} +1 -1
  261. package/dist/chunks/{theme.provider-B2ycPYcf.js → theme.provider-Ds0i6KF4.js} +586 -586
  262. package/dist/chunks/{theme.provider-B2ycPYcf.js.map → theme.provider-Ds0i6KF4.js.map} +1 -1
  263. package/dist/chunks/{timePicker.component-oN8iujB5.js → timePicker.component-CAAoFSZg.js} +2 -2
  264. package/dist/chunks/{timePicker.component-oN8iujB5.js.map → timePicker.component-CAAoFSZg.js.map} +1 -1
  265. package/dist/chunks/{timePicker.component-C7i3U49Y.js → timePicker.component-CImRXa-g.js} +8 -8
  266. package/dist/chunks/{timePicker.component-C7i3U49Y.js.map → timePicker.component-CImRXa-g.js.map} +1 -1
  267. package/dist/chunks/{timeRange.component-BApcir-7.js → timeRange.component-DNwdaf7m.js} +4 -4
  268. package/dist/chunks/{timeRange.component-BApcir-7.js.map → timeRange.component-DNwdaf7m.js.map} +1 -1
  269. package/dist/chunks/{timeRange.component-XZD-d3X-.js → timeRange.component-DXrBO0Id.js} +2 -2
  270. package/dist/chunks/{timeRange.component-XZD-d3X-.js.map → timeRange.component-DXrBO0Id.js.map} +1 -1
  271. package/dist/chunks/{timestamp.component-DJZzpqBC.js → timestamp.component-BACJfaKw.js} +2 -2
  272. package/dist/chunks/{timestamp.component-DJZzpqBC.js.map → timestamp.component-BACJfaKw.js.map} +1 -1
  273. package/dist/chunks/{timestamp.component-25Br-GCm.js → timestamp.component-Db-MbDMR.js} +3 -3
  274. package/dist/chunks/{timestamp.component-25Br-GCm.js.map → timestamp.component-Db-MbDMR.js.map} +1 -1
  275. package/dist/chunks/{tooltip.component-Cf_csr_d.js → tooltip.component-BPbl810g.js} +2 -2
  276. package/dist/chunks/{tooltip.component-Cf_csr_d.js.map → tooltip.component-BPbl810g.js.map} +1 -1
  277. package/dist/chunks/{tooltip.component-CVPBpD3Z.js → tooltip.component-JCzaFEUu.js} +2 -2
  278. package/dist/chunks/{tooltip.component-CVPBpD3Z.js.map → tooltip.component-JCzaFEUu.js.map} +1 -1
  279. package/dist/chunks/{use-field-context-BPsEZCN4.js → use-field-context--wBJQY1R.js} +2 -2
  280. package/dist/chunks/{use-field-context-BPsEZCN4.js.map → use-field-context--wBJQY1R.js.map} +1 -1
  281. package/dist/chunks/use-locale-context-BdqHZ8L8.js +22 -0
  282. package/dist/chunks/{use-locale-context-Cc4BhWV1.js.map → use-locale-context-BdqHZ8L8.js.map} +1 -1
  283. package/dist/chunks/{use-recipe-D7cwXEim.js → use-recipe-CJD8nmAh.js} +2 -2
  284. package/dist/chunks/{use-recipe-D7cwXEim.js.map → use-recipe-CJD8nmAh.js.map} +1 -1
  285. package/dist/chunks/use-recipe-e5vdQ3Ca.js +2 -0
  286. package/dist/chunks/{use-recipe-CkP1U6f2.js.map → use-recipe-e5vdQ3Ca.js.map} +1 -1
  287. package/dist/chunks/use-slot-recipe-BEyHP-Lh.js +2 -0
  288. package/dist/chunks/{use-slot-recipe-ClRnqDPf.js.map → use-slot-recipe-BEyHP-Lh.js.map} +1 -1
  289. package/dist/chunks/{use-slot-recipe-Bz5VPIbz.js → use-slot-recipe-CB5G_UZD.js} +2 -2
  290. package/dist/chunks/{use-slot-recipe-Bz5VPIbz.js.map → use-slot-recipe-CB5G_UZD.js.map} +1 -1
  291. package/dist/chunks/{v-stack-C_EMZ8cL.js → v-stack-DOm7QQkt.js} +2 -2
  292. package/dist/chunks/{v-stack-C_EMZ8cL.js.map → v-stack-DOm7QQkt.js.map} +1 -1
  293. package/dist/chunks/v-stack-wxICnH9w.js +2 -0
  294. package/dist/chunks/{v-stack-By2b5ZVX.js.map → v-stack-wxICnH9w.js.map} +1 -1
  295. package/dist/chunks/{walk-object-CwdvmBuz.js → walk-object-EkQnf0pF.js} +2 -2
  296. package/dist/chunks/{walk-object-CwdvmBuz.js.map → walk-object-EkQnf0pF.js.map} +1 -1
  297. package/dist/chunks/{walk-object-BQcbPtPs.js → walk-object-FYEyC1q9.js} +2 -2
  298. package/dist/chunks/{walk-object-BQcbPtPs.js.map → walk-object-FYEyC1q9.js.map} +1 -1
  299. package/dist/chunks/withFormControl-BHuqR52U.js +2 -0
  300. package/dist/chunks/{withFormControl-CUnCiP8H.js.map → withFormControl-BHuqR52U.js.map} +1 -1
  301. package/dist/chunks/{withFormControl-DoBnTeb9.js → withFormControl-D7wJfVjb.js} +7 -7
  302. package/dist/chunks/{withFormControl-DoBnTeb9.js.map → withFormControl-D7wJfVjb.js.map} +1 -1
  303. package/dist/chunks/{withTruncation-iFpoL9YV.js → withTruncation-B9ffIwF7.js} +3 -3
  304. package/dist/chunks/{withTruncation-iFpoL9YV.js.map → withTruncation-B9ffIwF7.js.map} +1 -1
  305. package/dist/chunks/{withTruncation-CzqmBekU.js → withTruncation-D04zq8uV.js} +2 -2
  306. package/dist/chunks/{withTruncation-CzqmBekU.js.map → withTruncation-D04zq8uV.js.map} +1 -1
  307. package/dist/chunks/{wrap-CdWJy79S.js → wrap-B06zjN2U.js} +2 -2
  308. package/dist/chunks/{wrap-CdWJy79S.js.map → wrap-B06zjN2U.js.map} +1 -1
  309. package/dist/chunks/{wrap-DwAuTaha.js → wrap-DQfXAuZ8.js} +3 -3
  310. package/dist/chunks/{wrap-DwAuTaha.js.map → wrap-DQfXAuZ8.js.map} +1 -1
  311. package/dist/cjs/chakra/index.cjs +1 -1
  312. package/dist/cjs/chakra/index.cjs.map +1 -1
  313. package/dist/cjs/components/Alert/index.cjs +1 -1
  314. package/dist/cjs/components/Avatar/index.cjs +1 -1
  315. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  316. package/dist/cjs/components/Button/index.cjs +1 -1
  317. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  318. package/dist/cjs/components/Card/index.cjs +1 -1
  319. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  320. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  321. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  322. package/dist/cjs/components/ConversationCard/index.cjs +1 -1
  323. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  324. package/dist/cjs/components/Divider/index.cjs +1 -1
  325. package/dist/cjs/components/Heading/index.cjs +1 -1
  326. package/dist/cjs/components/Icon/generated/index.cjs +1 -1
  327. package/dist/cjs/components/Icon/index.cjs +1 -1
  328. package/dist/cjs/components/Link/index.cjs +1 -1
  329. package/dist/cjs/components/Logo/generated/index.cjs +1 -1
  330. package/dist/cjs/components/Logo/index.cjs +1 -1
  331. package/dist/cjs/components/Menu/index.cjs +1 -1
  332. package/dist/cjs/components/Modal/index.cjs +1 -1
  333. package/dist/cjs/components/NotificationCounter/index.cjs +1 -1
  334. package/dist/cjs/components/Picture/index.cjs +1 -1
  335. package/dist/cjs/components/PinInput/index.cjs +1 -1
  336. package/dist/cjs/components/Popover/index.cjs +1 -1
  337. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  338. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  339. package/dist/cjs/components/Select/index.cjs +1 -1
  340. package/dist/cjs/components/SortableList/index.cjs +1 -1
  341. package/dist/cjs/components/Spinner/index.cjs +1 -1
  342. package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
  343. package/dist/cjs/components/Swatch/index.cjs +1 -1
  344. package/dist/cjs/components/Switch/index.cjs +1 -1
  345. package/dist/cjs/components/Tabs/index.cjs +1 -1
  346. package/dist/cjs/components/Tag/index.cjs +1 -1
  347. package/dist/cjs/components/TagBlock/index.cjs +1 -1
  348. package/dist/cjs/components/Text/index.cjs +1 -1
  349. package/dist/cjs/components/TextInput/index.cjs +1 -1
  350. package/dist/cjs/components/Textarea/index.cjs +1 -1
  351. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  352. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  353. package/dist/cjs/components/Timestamp/index.cjs +1 -1
  354. package/dist/cjs/components/Tooltip/index.cjs +1 -1
  355. package/dist/cjs/components/index.cjs +1 -1
  356. package/dist/cjs/hocs/index.cjs +1 -1
  357. package/dist/cjs/hooks/index.cjs +1 -1
  358. package/dist/cjs/index.cjs +1 -1
  359. package/dist/cjs/theme/index.cjs +1 -1
  360. package/dist/esm/chakra/index.js +21 -21
  361. package/dist/esm/components/Alert/index.js +1 -1
  362. package/dist/esm/components/Avatar/index.js +1 -1
  363. package/dist/esm/components/AvatarGroup/index.js +1 -1
  364. package/dist/esm/components/Button/index.js +1 -1
  365. package/dist/esm/components/ButtonGroup/index.js +1 -1
  366. package/dist/esm/components/Card/index.js +1 -1
  367. package/dist/esm/components/CharacterCounter/index.js +1 -1
  368. package/dist/esm/components/Checkbox/index.js +1 -1
  369. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  370. package/dist/esm/components/ConversationCard/index.js +1 -1
  371. package/dist/esm/components/DatePicker/index.js +1 -1
  372. package/dist/esm/components/Divider/index.js +1 -1
  373. package/dist/esm/components/Heading/index.js +1 -1
  374. package/dist/esm/components/Icon/index.js +1 -1
  375. package/dist/esm/components/Link/index.js +1 -1
  376. package/dist/esm/components/Logo/index.js +1 -1
  377. package/dist/esm/components/Menu/index.js +1 -1
  378. package/dist/esm/components/Modal/index.js +1 -1
  379. package/dist/esm/components/NotificationCounter/index.js +1 -1
  380. package/dist/esm/components/Picture/index.js +1 -1
  381. package/dist/esm/components/PinInput/index.js +1 -1
  382. package/dist/esm/components/Popover/index.js +1 -1
  383. package/dist/esm/components/RadioGroup/index.js +1 -1
  384. package/dist/esm/components/RatingDots/index.js +1 -1
  385. package/dist/esm/components/Select/index.js +1 -1
  386. package/dist/esm/components/SortableList/index.js +1 -1
  387. package/dist/esm/components/Spinner/index.js +1 -1
  388. package/dist/esm/components/StyledAvatar/index.js +1 -1
  389. package/dist/esm/components/Swatch/index.js +1 -1
  390. package/dist/esm/components/Switch/index.js +1 -1
  391. package/dist/esm/components/Tabs/index.js +1 -1
  392. package/dist/esm/components/Tag/index.js +1 -1
  393. package/dist/esm/components/TagBlock/index.js +1 -1
  394. package/dist/esm/components/Text/index.js +1 -1
  395. package/dist/esm/components/TextInput/index.js +1 -1
  396. package/dist/esm/components/Textarea/index.js +1 -1
  397. package/dist/esm/components/TimePicker/index.js +1 -1
  398. package/dist/esm/components/TimeRange/index.js +1 -1
  399. package/dist/esm/components/Timestamp/index.js +1 -1
  400. package/dist/esm/components/Tooltip/index.js +1 -1
  401. package/dist/esm/components/index.js +40 -40
  402. package/dist/esm/hocs/index.js +1 -1
  403. package/dist/esm/index.js +42 -42
  404. package/dist/esm/theme/index.js +1 -1
  405. package/package.json +2 -1
  406. package/dist/chunks/alert.component-CcCt-bb5.js +0 -2
  407. package/dist/chunks/avatar.component-LWnRY2X6.js +0 -2
  408. package/dist/chunks/box-DQTWVrl0.js +0 -7
  409. package/dist/chunks/box-DiiiZkF4.js +0 -2
  410. package/dist/chunks/checkbox.component-CN7VT6Kl.js +0 -2
  411. package/dist/chunks/factory-Djhmhla9.js +0 -17
  412. package/dist/chunks/h-stack-DS6_Nmps.js +0 -2
  413. package/dist/chunks/heading.component-CVtGEEgj.js +0 -2
  414. package/dist/chunks/icon-button-BoeNBxVE.js +0 -2
  415. package/dist/chunks/index-CsjrqSSN.js +0 -2
  416. package/dist/chunks/index-CsjrqSSN.js.map +0 -1
  417. package/dist/chunks/index-naFRmuBR.js +0 -2
  418. package/dist/chunks/menu.component-CVq3JuDQ.js +0 -2
  419. package/dist/chunks/pinInput.types-BkZoddhj.js +0 -2
  420. package/dist/chunks/popover.component-BU4ZYtgB.js +0 -2
  421. package/dist/chunks/radioGroup.component-AnXOfN3A.js +0 -2
  422. package/dist/chunks/select.component-CtCEglbM.js +0 -2
  423. package/dist/chunks/sortableList.component-Dft-FiMn.js +0 -6
  424. package/dist/chunks/spinner-B981BEf0.js +0 -2
  425. package/dist/chunks/spinner-DUSVCecp.js +0 -8
  426. package/dist/chunks/switch.component-Do0X7LJD.js +0 -2
  427. package/dist/chunks/tagBlock.component-Dj3iPVJy.js +0 -2
  428. package/dist/chunks/text.component-uDfPjmx6.js +0 -2
  429. package/dist/chunks/textInput.component-CEF55yJj.js +0 -2
  430. package/dist/chunks/textarea.component-BVGFuIZC.js +0 -2
  431. package/dist/chunks/use-locale-context-Cc4BhWV1.js +0 -22
  432. package/dist/chunks/use-recipe-CkP1U6f2.js +0 -2
  433. package/dist/chunks/use-slot-recipe-ClRnqDPf.js +0 -2
  434. package/dist/chunks/v-stack-By2b5ZVX.js +0 -2
  435. package/dist/chunks/withFormControl-CUnCiP8H.js +0 -2
@@ -1,14 +1,14 @@
1
1
  import { j as t } from "./jsx-runtime-C5mzlN2N.js";
2
2
  import y, { forwardRef as j, Children as b, cloneElement as T, useMemo as k } from "react";
3
- import { w as A } from "./withFormControl-DoBnTeb9.js";
4
- import { B as v } from "./button.component-BZHMvNis.js";
5
- import { C as w } from "./characterCounter.component-2pxq0nJ_.js";
6
- import { B as N } from "./box-DQTWVrl0.js";
3
+ import { w as A } from "./withFormControl-D7wJfVjb.js";
4
+ import { B as v } from "./button.component-CXYCe9wy.js";
5
+ import { C as w } from "./characterCounter.component-Dvz2OZQP.js";
6
+ import { B as N } from "./box-CRddum0T.js";
7
7
  import { E as B } from "./empty-BU2EAux9.js";
8
- import { c as C } from "./factory-D5ooFDGK.js";
9
- import { u as R } from "./use-recipe-D7cwXEim.js";
10
- import { G as S } from "./group-CyV6CH8n.js";
11
- import { c as G } from "./create-recipe-context-ei7-Fhjc.js";
8
+ import { c as C } from "./factory-D_LOlWjz.js";
9
+ import { u as R } from "./use-recipe-CJD8nmAh.js";
10
+ import { G as S } from "./group-B-T5mM5H.js";
11
+ import { c as G } from "./create-recipe-context-CA3qYjga.js";
12
12
  import { f as F } from "./use-locale-context-zakBNK5b.js";
13
13
  import { u as z } from "./use-field-context-B8ygn96q.js";
14
14
  import { U as M } from "./index-DLvqBeH6.js";
@@ -177,4 +177,4 @@ $.displayName = "TextInput";
177
177
  export {
178
178
  $ as W
179
179
  };
180
- //# sourceMappingURL=textInput.component-DfqkWsJX.js.map
180
+ //# sourceMappingURL=textInput.component-B5-xa_yC.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textInput.component-DfqkWsJX.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, { ForwardedRef, useMemo } from \"react\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport {\n Input as CInput,\n InputProps as CInputProps,\n InputGroup,\n} 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?: ForwardedRef<HTMLInputElement>;\n onContrast?: boolean;\n leftAddon?: React.ReactNode;\n leftElement?: React.ReactNode;\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 = withFormControl(\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 }: TextInputProps): 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(\n () => value?.toString()?.length || 0,\n [value],\n );\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}\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 withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Box>\n );\n },\n);\n\nconst WrappedTextInput = React.forwardRef(\n (props: TextInputProps, ref: ForwardedRef<HTMLInputElement>) => (\n <TextInput inputRef={ref} {...props} />\n ),\n);\n\nWrappedTextInput.displayName = \"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","withFormControl","charLimit","clearable","disabled","inputRef","invalid","leftAddon","leftElement","onClear","onContrast","rightAddon","rightElement","size","value","handleClear","Button","currentCharCount","useMemo","Box","CInput","CharacterCounter","WrappedTextInput","React"],"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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A;AAAA,YAACyD;AAAAA,YAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAU;AAAA,cACV,KAAKf;AAAA,cACL,OAAAS;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,KACDvC,gBAAAA,EAAA;AAAA,QAAC0D;AAAA,QAAA;AAAA,UACC,WAAW;AAAA,UACX,OAAOnB;AAAA,UACP,cAAce;AAAA,QAAA;AAAA,MAAA;AAAA,IAChB,GAEJ;AAAA,EAAA;AAGN,GAEMK,IAAmBC,EAAM;AAAA,EAC7B,CAAClE,GAAuBC,MACtBK,gBAAAA,MAACqC,KAAU,UAAU1C,GAAM,GAAGD,EAAO,CAAA;AAEzC;AAEAiE,EAAiB,cAAc;","x_google_ignoreList":[0,1,2,3,4]}
1
+ {"version":3,"file":"textInput.component-B5-xa_yC.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, { ForwardedRef, useMemo } from \"react\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport {\n Input as CInput,\n InputProps as CInputProps,\n InputGroup,\n} 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?: ForwardedRef<HTMLInputElement>;\n onContrast?: boolean;\n leftAddon?: React.ReactNode;\n leftElement?: React.ReactNode;\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 = withFormControl(\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 }: TextInputProps): 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(\n () => value?.toString()?.length || 0,\n [value],\n );\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}\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 withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Box>\n );\n },\n);\n\nconst WrappedTextInput = React.forwardRef(\n (props: TextInputProps, ref: ForwardedRef<HTMLInputElement>) => (\n <TextInput inputRef={ref} {...props} />\n ),\n);\n\nWrappedTextInput.displayName = \"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","withFormControl","charLimit","clearable","disabled","inputRef","invalid","leftAddon","leftElement","onClear","onContrast","rightAddon","rightElement","size","value","handleClear","Button","currentCharCount","useMemo","Box","CInput","CharacterCounter","WrappedTextInput","React"],"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,E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,UAAA;AAAA,MAAAxD,gBAAAA,EAAA;AAAA,QAACgB;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,eAAY;AAAA,UACZ,cAAc6B;AAAA,UACd,mBAAmB;AAAA,YACjB,OAAO;AAAA,YACP,gBAAgB,EAAE,SAAS,IAAI;AAAA,UACjC;AAAA,UACA,YAAYI;AAAA,UACZ,iBAAiB;AAAA,YACf,OAAO;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;AAAA,cACL,OAAAS;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,KACDvC,gBAAAA,EAAA;AAAA,QAAC0D;AAAA,QAAA;AAAA,UACC,WAAW;AAAA,UACX,OAAOnB;AAAA,UACP,cAAce;AAAA,QAAA;AAAA,MAAA;AAAA,IAChB,GAEJ;AAAA,EAAA;AAGN,GAEMK,IAAmBC,EAAM;AAAA,EAC7B,CAAClE,GAAuBC,MACtBK,gBAAAA,MAACqC,KAAU,UAAU1C,GAAM,GAAGD,EAAO,CAAA;AAEzC;AAEAiE,EAAiB,cAAc;","x_google_ignoreList":[0,1,2,3,4]}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./jsx-runtime-BjDatQAs.js"),c=require("react"),y=require("./withFormControl-BHuqR52U.js"),P=require("./button.component-Dkq2R93W.js"),b=require("./characterCounter.component-CZASTylb.js"),T=require("./box-CqeORXNj.js"),k=require("./empty-B5_AO6Pg.js"),I=require("./factory-DiRBd_Ei.js"),w=require("./use-recipe-e5vdQ3Ca.js"),A=require("./group-C1RHA5D4.js"),v=require("./create-recipe-context-Bim5jFE2.js"),N=require("./use-locale-context-BdqHZ8L8.js"),S=require("./use-field-context--wBJQY1R.js"),F=require("./index-CZ42b9rT.js"),B=t=>t&&t.__esModule?t:{default:t},G=B(c),C=c.forwardRef((t,s)=>{const n=S.useFieldContext(),r=F.mergeProps(n?.getInputProps(),t);return e.jsxRuntimeExports.jsx(N.ark.input,{...r,ref:s})});C.displayName="FieldInput";const{withContext:M}=v.createRecipeContext({key:"input"}),z=M(C),R=c.forwardRef(function({unstyled:s,...n},r){const p=w.useRecipe({key:"inputAddon",recipe:n.recipe}),[i,a]=p.splitVariantProps(n),o=s?k.EMPTY_SLOT_STYLES:p(i);return e.jsxRuntimeExports.jsx(I.chakra.div,{ref:r,...a,css:[o,n.css]})}),E=I.chakra("div",{base:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,color:"fg.muted",height:"full",fontSize:"sm",px:"3"},variants:{placement:{start:{insetInlineStart:"0"},end:{insetInlineEnd:"0"}}}}),D=c.forwardRef(function(s,n){const{startElement:r,startElementProps:p,endElement:i,endElementProps:a,startAddon:o,startAddonProps:m,endAddon:d,endAddonProps:x,children:l,startOffset:u="0px",endOffset:f="0px",...h}=s,j=c.Children.only(l),g=!!(o||d);return e.jsxRuntimeExports.jsxs(A.Group,{width:"full",ref:n,attached:g,skip:q=>q.type===E,...h,children:[o&&e.jsxRuntimeExports.jsx(R,{...m,children:o}),r&&e.jsxRuntimeExports.jsx(E,{pointerEvents:"none",...p,children:r}),c.cloneElement(j,{...r&&{ps:`calc(var(--input-height) - ${u})`},...i&&{pe:`calc(var(--input-height) - ${f})`},...l.props}),i&&e.jsxRuntimeExports.jsx(E,{placement:"end",...a,children:i}),d&&e.jsxRuntimeExports.jsx(R,{...x,children:d})]})}),L={sm:"xs",md:"sm",lg:"md"},O=y.withFormControl(({charLimit:t=void 0,clearable:s=!1,disabled:n=!1,inputRef:r,invalid:p,leftAddon:i,leftElement:a,onClear:o,onContrast:m,rightAddon:d,rightElement:x,size:l="md",value:u,...f})=>{const h=()=>{o&&o(u||"")};s&&u&&!n&&(x=e.jsxRuntimeExports.jsx(P.Button,{className:"TextInput__ClearButton","data-testid":"kibble-text-input-clear-button",size:L[l],variant:"ghostNeutral",onClick:h,iconName:"close"}));const j=c.useMemo(()=>u?.toString()?.length||0,[u]);return e.jsxRuntimeExports.jsxs(T.Box,{className:"TextInput__Wrapper",position:"relative",w:"100%",children:[e.jsxRuntimeExports.jsx(D,{className:"TextInput__InputGroup","data-testid":"kibble-text-input-group",startElement:a,startElementProps:{color:"inherit",_groupDisabled:{opacity:.6}},endElement:x,endElementProps:{color:"inherit",paddingInline:1.5,_groupDisabled:{opacity:.6}},startAddon:i,endAddon:d,children:e.jsxRuntimeExports.jsx(z,{"data-testid":"kibble-text-input",className:"TextInput",ref:r,value:u,size:l,disabled:n,...p&&{"aria-invalid":!0},variant:m?"onContrast":"default",...f})}),!!t&&e.jsxRuntimeExports.jsx(b.CharacterCounter,{withLimit:!0,limit:t,currentCount:j})]})}),_=G.default.forwardRef((t,s)=>e.jsxRuntimeExports.jsx(O,{inputRef:s,...t}));_.displayName="TextInput";exports.WrappedTextInput=_;
2
+ //# sourceMappingURL=textInput.component-BMSwF3Ae.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textInput.component-CEF55yJj.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, { ForwardedRef, useMemo } from \"react\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport {\n Input as CInput,\n InputProps as CInputProps,\n InputGroup,\n} 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?: ForwardedRef<HTMLInputElement>;\n onContrast?: boolean;\n leftAddon?: React.ReactNode;\n leftElement?: React.ReactNode;\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 = withFormControl(\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 }: TextInputProps): 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(\n () => value?.toString()?.length || 0,\n [value],\n );\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}\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 withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Box>\n );\n },\n);\n\nconst WrappedTextInput = React.forwardRef(\n (props: TextInputProps, ref: ForwardedRef<HTMLInputElement>) => (\n <TextInput inputRef={ref} {...props} />\n ),\n);\n\nWrappedTextInput.displayName = \"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","withFormControl","charLimit","clearable","disabled","inputRef","invalid","leftAddon","leftElement","onClear","onContrast","rightAddon","rightElement","size","value","handleClear","Button","currentCharCount","useMemo","Box","CInput","CharacterCounter","WrappedTextInput","React"],"mappings":"ijBAOMA,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,ECA/BC,EAAab,EAAU,WAC3B,SAAqB,CAAE,SAAAc,EAAU,GAAGb,CAAK,EAAIC,EAAK,CAChD,MAAMa,EAASC,EAAS,UAAC,CAAE,IAAK,aAAc,OAAQf,EAAM,OAAQ,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,CACC,cAAY,oBACZ,UAAU,YACV,IAAKf,EACL,MAAAS,EACA,KAAAD,EACA,SAAAT,EACC,GAAIE,GAAW,CAAE,eAAgB,EAAK,EACvC,QAASI,EAAa,aAAe,UACpC,GAAGnB,CAAA,CAAA,CACN,CACF,EACC,CAAC,CAACW,GACDvC,EAAA,kBAAA,IAAC0D,EAAA,iBAAA,CACC,UAAW,GACX,MAAOnB,EACP,aAAce,CAAA,CAAA,CAChB,EAEJ,CAAA,CAGN,EAEMK,EAAmBC,EAAM,WAC7B,CAAClE,EAAuBC,IACtBK,wBAACqC,GAAU,SAAU1C,EAAM,GAAGD,CAAO,CAAA,CAEzC,EAEAiE,EAAiB,YAAc","x_google_ignoreList":[0,1,2,3,4]}
1
+ {"version":3,"file":"textInput.component-BMSwF3Ae.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, { ForwardedRef, useMemo } from \"react\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport {\n Input as CInput,\n InputProps as CInputProps,\n InputGroup,\n} 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?: ForwardedRef<HTMLInputElement>;\n onContrast?: boolean;\n leftAddon?: React.ReactNode;\n leftElement?: React.ReactNode;\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 = withFormControl(\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 }: TextInputProps): 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(\n () => value?.toString()?.length || 0,\n [value],\n );\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}\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 withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Box>\n );\n },\n);\n\nconst WrappedTextInput = React.forwardRef(\n (props: TextInputProps, ref: ForwardedRef<HTMLInputElement>) => (\n <TextInput inputRef={ref} {...props} />\n ),\n);\n\nWrappedTextInput.displayName = \"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","withFormControl","charLimit","clearable","disabled","inputRef","invalid","leftAddon","leftElement","onClear","onContrast","rightAddon","rightElement","size","value","handleClear","Button","currentCharCount","useMemo","Box","CInput","CharacterCounter","WrappedTextInput","React"],"mappings":"2lBAOMA,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,ECA/BC,EAAab,EAAU,WAC3B,SAAqB,CAAE,SAAAc,EAAU,GAAGb,CAAK,EAAIC,EAAK,CAChD,MAAMa,EAASC,EAAS,UAAC,CAAE,IAAK,aAAc,OAAQf,EAAM,OAAQ,EAC9D,CAACgB,EAAcC,CAAU,EAAIH,EAAO,kBAAkBd,CAAK,EAC3DkB,EAASL,EAAWM,oBAAoBL,EAAOE,CAAY,EACjE,OAAuBV,wBAAIc,EAAAA,OAAO,IAAK,CAAE,IAAAnB,EAAK,GAAGgB,EAAY,IAAK,CAACC,EAAQlB,EAAM,GAAG,CAAC,CAAE,CAC3F,CACA,ECXMqB,EAAeD,EAAM,OAAC,MAAO,CACjC,KAAM,CACJ,QAAS,OACT,WAAY,SACZ,eAAgB,SAChB,SAAU,WACV,OAAQ,EACR,MAAO,WACP,OAAQ,OACR,SAAU,KACV,GAAI,GACL,EAC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D,CAAO,CAAA,CAEzC,EAEAiE,EAAiB,YAAc","x_google_ignoreList":[0,1,2,3,4]}
@@ -1,9 +1,9 @@
1
1
  import { j as d } from "./jsx-runtime-C5mzlN2N.js";
2
2
  import f, { forwardRef as u, useRef as l, useEffect as x, useMemo as v } from "react";
3
- import { w as g } from "./withFormControl-DoBnTeb9.js";
4
- import { C as h } from "./characterCounter.component-2pxq0nJ_.js";
5
- import { F as w } from "./flex-D2YmHSRL.js";
6
- import { c as b } from "./create-recipe-context-ei7-Fhjc.js";
3
+ import { w as g } from "./withFormControl-D7wJfVjb.js";
4
+ import { C as h } from "./characterCounter.component-Dvz2OZQP.js";
5
+ import { F as w } from "./flex-9MBe_Izs.js";
6
+ import { c as b } from "./create-recipe-context-CA3qYjga.js";
7
7
  import { k as y, _ as F, a2 as C, U as T } from "./index-DLvqBeH6.js";
8
8
  import { f as j, h as R } from "./use-locale-context-zakBNK5b.js";
9
9
  import { u as O } from "./use-field-context-B8ygn96q.js";
@@ -94,4 +94,4 @@ L.displayName = "Textarea";
94
94
  export {
95
95
  L as W
96
96
  };
97
- //# sourceMappingURL=textarea.component-1B3U7E2O.js.map
97
+ //# sourceMappingURL=textarea.component-1qoZ-mMp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.component-1B3U7E2O.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 {\n Textarea as CTextarea,\n TextareaProps as CTextareaProps,\n} from \"@chakra-ui/react/textarea\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport {\n withFormControl,\n WithFormControlProps,\n} 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>;\n size?: FormControlSize;\n}\n\nconst Textarea = withFormControl(\n ({\n charLimit = undefined,\n invalid,\n onContrast,\n resize = \"none\",\n textareaRef,\n value,\n ...rest\n }: TextareaProps): React.JSX.Element => {\n const _computedVariant = onContrast ? \"onContrast\" : \"default\";\n\n const currentCharCount = useMemo(\n () => value?.toString()?.length || 0,\n [value],\n );\n\n return (\n <Flex className=\"Textarea__Wrapper\" position=\"relative\" w=\"100%\">\n <CTextarea\n className=\"Textarea\"\n data-testid=\"kibble-textarea\"\n resize={resize}\n variant={_computedVariant}\n value={value}\n {...(invalid && { \"aria-invalid\": true })}\n {...rest}\n ref={textareaRef}\n />\n {!!charLimit && (\n <CharacterCounter\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nconst WrappedTextArea = React.forwardRef(\n (props: TextareaProps, ref: ForwardedRef<HTMLTextAreaElement>) => (\n <Textarea textareaRef={ref} {...props} />\n ),\n);\n\nWrappedTextArea.displayName = \"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","withFormControl","charLimit","invalid","onContrast","value","rest","_computedVariant","currentCharCount","useMemo","Flex","CTextarea","CharacterCounter","WrappedTextArea","React"],"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,GAAGU;AAAA,IACH,MAAM;AACJ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A,IACC,WAAAC,IAAY;AAAA,IACZ,SAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAA7B,IAAS;AAAA,IACT,aAAAY;AAAA,IACA,OAAAkB;AAAA,IACA,GAAGC;AAAA,EAAA,MACmC;AAChC,UAAAC,IAAmBH,IAAa,eAAe,WAE/CI,IAAmBC;AAAA,MACvB,MAAMJ,GAAO,YAAY,UAAU;AAAA,MACnC,CAACA,CAAK;AAAA,IACR;AAEA,kCACGK,GAAK,EAAA,WAAU,qBAAoB,UAAS,YAAW,GAAE,QACxD,UAAA;AAAA,MAAAhB,gBAAAA,EAAA;AAAA,QAACiB;AAAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,eAAY;AAAA,UACZ,QAAApC;AAAA,UACA,SAASgC;AAAA,UACT,OAAAF;AAAA,UACC,GAAIF,KAAW,EAAE,gBAAgB,GAAK;AAAA,UACtC,GAAGG;AAAA,UACJ,KAAKnB;AAAA,QAAA;AAAA,MACP;AAAA,MACC,CAAC,CAACe,KACDR,gBAAAA,EAAA;AAAA,QAACkB;AAAA,QAAA;AAAA,UACC,WAAW;AAAA,UACX,OAAOV;AAAA,UACP,cAAcM;AAAA,QAAA;AAAA,MAAA;AAAA,IAChB,GAEJ;AAAA,EAAA;AAGN,GAEMK,IAAkBC,EAAM;AAAA,EAC5B,CAAC/B,GAAsBC,MACrBU,gBAAAA,MAACK,KAAS,aAAaf,GAAM,GAAGD,EAAO,CAAA;AAE3C;AAEA8B,EAAgB,cAAc;","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"textarea.component-1qoZ-mMp.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 {\n Textarea as CTextarea,\n TextareaProps as CTextareaProps,\n} from \"@chakra-ui/react/textarea\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport {\n withFormControl,\n WithFormControlProps,\n} 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>;\n size?: FormControlSize;\n}\n\nconst Textarea = withFormControl(\n ({\n charLimit = undefined,\n invalid,\n onContrast,\n resize = \"none\",\n textareaRef,\n value,\n ...rest\n }: TextareaProps): React.JSX.Element => {\n const _computedVariant = onContrast ? \"onContrast\" : \"default\";\n\n const currentCharCount = useMemo(\n () => value?.toString()?.length || 0,\n [value],\n );\n\n return (\n <Flex className=\"Textarea__Wrapper\" position=\"relative\" w=\"100%\">\n <CTextarea\n className=\"Textarea\"\n data-testid=\"kibble-textarea\"\n resize={resize}\n variant={_computedVariant}\n value={value}\n {...(invalid && { \"aria-invalid\": true })}\n {...rest}\n ref={textareaRef}\n />\n {!!charLimit && (\n <CharacterCounter\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nconst WrappedTextArea = React.forwardRef(\n (props: TextareaProps, ref: ForwardedRef<HTMLTextAreaElement>) => (\n <Textarea textareaRef={ref} {...props} />\n ),\n);\n\nWrappedTextArea.displayName = \"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","withFormControl","charLimit","invalid","onContrast","value","rest","_computedVariant","currentCharCount","useMemo","Flex","CTextarea","CharacterCounter","WrappedTextArea","React"],"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,MA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AAG;AACjG,CAAC;AACDN,EAAc,cAAc;ACnB5B,MAAM,EAAE,aAAAgB,EAA2B,IAAIC,EAAoB;AAAA,EACzD,KAAK;AACP,CAAC,GACKC,IAAWF;AAAA,EACfG;AACF,GCSMD,IAAWE;AAAA,EACf,CAAC;AAAA,IACC,WAAAC,IAAY;AAAA,IACZ,SAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAA7B,IAAS;AAAA,IACT,aAAAY;AAAA,IACA,OAAAkB;AAAA,IACA,GAAGC;AAAA,EAAA,MACmC;AAChC,UAAAC,IAAmBH,IAAa,eAAe,WAE/CI,IAAmBC;AAAA,MACvB,MAAMJ,GAAO,YAAY,UAAU;AAAA,MACnC,CAACA,CAAK;AAAA,IACR;AAEA,kCACGK,GAAK,EAAA,WAAU,qBAAoB,UAAS,YAAW,GAAE,QACxD,UAAA;AAAA,MAAAhB,gBAAAA,EAAA;AAAA,QAACiB;AAAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,eAAY;AAAA,UACZ,QAAApC;AAAA,UACA,SAASgC;AAAA,UACT,OAAAF;AAAA,UACC,GAAIF,KAAW,EAAE,gBAAgB,GAAK;AAAA,UACtC,GAAGG;AAAA,UACJ,KAAKnB;AAAA,QAAA;AAAA,MACP;AAAA,MACC,CAAC,CAACe,KACDR,gBAAAA,EAAA;AAAA,QAACkB;AAAA,QAAA;AAAA,UACC,WAAW;AAAA,UACX,OAAOV;AAAA,UACP,cAAcM;AAAA,QAAA;AAAA,MAAA;AAAA,IAChB,GAEJ;AAAA,EAAA;AAGN,GAEMK,IAAkBC,EAAM;AAAA,EAC5B,CAAC/B,GAAsBC,MACrBU,gBAAAA,MAACK,KAAS,aAAaf,GAAM,GAAGD,EAAO,CAAA;AAE3C;AAEA8B,EAAgB,cAAc;","x_google_ignoreList":[0,1,2]}
@@ -0,0 +1,2 @@
1
+ "use strict";const c=require("./jsx-runtime-BjDatQAs.js"),u=require("react"),h=require("./withFormControl-BHuqR52U.js"),v=require("./characterCounter.component-CZASTylb.js"),g=require("./flex-BpxJvA4z.js"),w=require("./create-recipe-context-Bim5jFE2.js"),p=require("./index-CZ42b9rT.js"),l=require("./use-locale-context-BdqHZ8L8.js"),b=require("./use-field-context--wBJQY1R.js"),R=e=>e&&e.__esModule?e:{default:e},C=R(u);var F=e=>{if(!e)return;const t=p.getComputedStyle(e),o=p.getWindow(e),s=p.getDocument(e),r=()=>{requestAnimationFrame(()=>{e.style.height="auto";let i;t.boxSizing==="content-box"?i=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):i=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&i>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),i=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${i}px`})};e.addEventListener("input",r),e.form?.addEventListener("reset",r);const n=Object.getPrototypeOf(e),a=Object.getOwnPropertyDescriptor(n,"value");Object.defineProperty(e,"value",{...a,set(){a?.set?.apply(this,arguments),r()}});const d=new o.ResizeObserver(()=>{requestAnimationFrame(()=>r())});d.observe(e);const x=new o.MutationObserver(()=>r());return x.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),s.fonts?.addEventListener("loadingdone",r),()=>{e.removeEventListener("input",r),e.form?.removeEventListener("reset",r),s.fonts?.removeEventListener("loadingdone",r),d.disconnect(),x.disconnect()}};const m=u.forwardRef((e,t)=>{const{autoresize:o,...s}=e,r=u.useRef(null),n=b.useFieldContext(),a=p.mergeProps(n?.getTextareaProps(),{style:{resize:o?"none":void 0}},s);return u.useEffect(()=>{if(o)return F(r.current)},[o]),c.jsxRuntimeExports.jsx(l.ark.textarea,{...a,ref:l.composeRefs(t,r)})});m.displayName="FieldTextarea";const{withContext:y}=w.createRecipeContext({key:"textarea"}),j=y(m),T=h.withFormControl(({charLimit:e=void 0,invalid:t,onContrast:o,resize:s="none",textareaRef:r,value:n,...a})=>{const d=o?"onContrast":"default",x=u.useMemo(()=>n?.toString()?.length||0,[n]);return c.jsxRuntimeExports.jsxs(g.Flex,{className:"Textarea__Wrapper",position:"relative",w:"100%",children:[c.jsxRuntimeExports.jsx(j,{className:"Textarea","data-testid":"kibble-textarea",resize:s,variant:d,value:n,...t&&{"aria-invalid":!0},...a,ref:r}),!!e&&c.jsxRuntimeExports.jsx(v.CharacterCounter,{withLimit:!0,limit:e,currentCount:x})]})}),f=C.default.forwardRef((e,t)=>c.jsxRuntimeExports.jsx(T,{textareaRef:t,...e}));f.displayName="Textarea";exports.WrappedTextArea=f;
2
+ //# sourceMappingURL=textarea.component-L3bZoiXW.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.component-BVGFuIZC.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 {\n Textarea as CTextarea,\n TextareaProps as CTextareaProps,\n} from \"@chakra-ui/react/textarea\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport {\n withFormControl,\n WithFormControlProps,\n} 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>;\n size?: FormControlSize;\n}\n\nconst Textarea = withFormControl(\n ({\n charLimit = undefined,\n invalid,\n onContrast,\n resize = \"none\",\n textareaRef,\n value,\n ...rest\n }: TextareaProps): React.JSX.Element => {\n const _computedVariant = onContrast ? \"onContrast\" : \"default\";\n\n const currentCharCount = useMemo(\n () => value?.toString()?.length || 0,\n [value],\n );\n\n return (\n <Flex className=\"Textarea__Wrapper\" position=\"relative\" w=\"100%\">\n <CTextarea\n className=\"Textarea\"\n data-testid=\"kibble-textarea\"\n resize={resize}\n variant={_computedVariant}\n value={value}\n {...(invalid && { \"aria-invalid\": true })}\n {...rest}\n ref={textareaRef}\n />\n {!!charLimit && (\n <CharacterCounter\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nconst WrappedTextArea = React.forwardRef(\n (props: TextareaProps, ref: ForwardedRef<HTMLTextAreaElement>) => (\n <Textarea textareaRef={ref} {...props} />\n ),\n);\n\nWrappedTextArea.displayName = \"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","withFormControl","charLimit","invalid","onContrast","value","rest","_computedVariant","currentCharCount","useMemo","Flex","CTextarea","CharacterCounter","WrappedTextArea","React"],"mappings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,EAAK,EACtC,GAAGG,EACJ,IAAKnB,CAAA,CACP,EACC,CAAC,CAACe,GACDR,EAAA,kBAAA,IAACkB,EAAA,iBAAA,CACC,UAAW,GACX,MAAOV,EACP,aAAcM,CAAA,CAAA,CAChB,EAEJ,CAAA,CAGN,EAEMK,EAAkBC,EAAM,WAC5B,CAAC/B,EAAsBC,IACrBU,wBAACK,GAAS,YAAaf,EAAM,GAAGD,CAAO,CAAA,CAE3C,EAEA8B,EAAgB,YAAc","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"textarea.component-L3bZoiXW.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 {\n Textarea as CTextarea,\n TextareaProps as CTextareaProps,\n} from \"@chakra-ui/react/textarea\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\nimport {\n withFormControl,\n WithFormControlProps,\n} 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>;\n size?: FormControlSize;\n}\n\nconst Textarea = withFormControl(\n ({\n charLimit = undefined,\n invalid,\n onContrast,\n resize = \"none\",\n textareaRef,\n value,\n ...rest\n }: TextareaProps): React.JSX.Element => {\n const _computedVariant = onContrast ? \"onContrast\" : \"default\";\n\n const currentCharCount = useMemo(\n () => value?.toString()?.length || 0,\n [value],\n );\n\n return (\n <Flex className=\"Textarea__Wrapper\" position=\"relative\" w=\"100%\">\n <CTextarea\n className=\"Textarea\"\n data-testid=\"kibble-textarea\"\n resize={resize}\n variant={_computedVariant}\n value={value}\n {...(invalid && { \"aria-invalid\": true })}\n {...rest}\n ref={textareaRef}\n />\n {!!charLimit && (\n <CharacterCounter\n withLimit={true}\n limit={charLimit}\n currentCount={currentCharCount}\n />\n )}\n </Flex>\n );\n },\n);\n\nconst WrappedTextArea = React.forwardRef(\n (props: TextareaProps, ref: ForwardedRef<HTMLTextAreaElement>) => (\n <Textarea textareaRef={ref} {...props} />\n ),\n);\n\nWrappedTextArea.displayName = \"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","withFormControl","charLimit","invalid","onContrast","value","rest","_computedVariant","currentCharCount","useMemo","Flex","CTextarea","CharacterCounter","WrappedTextArea","React"],"mappings":"qaAwCA,IAAIA,EAAsBC,GAAO,CAC/B,GAAI,CAACA,EAAI,OACT,MAAMC,EAAQC,EAAgB,iBAACF,CAAE,EAC3BG,EAAMC,EAAS,U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