@televet/kibble-ui 4.0.0-beta.30 → 4.0.0-beta.32

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 (643) hide show
  1. package/dist/chunks/{IconLogo-BurrDDT6.js → IconLogo-D8EHZ4Is.js} +4 -4
  2. package/dist/chunks/{IconLogo-BurrDDT6.js.map → IconLogo-D8EHZ4Is.js.map} +1 -1
  3. package/dist/chunks/IconLogo-DedIxFq7.js +2 -0
  4. package/dist/chunks/{IconLogo-Dd5mp5A_.js.map → IconLogo-DedIxFq7.js.map} +1 -1
  5. package/dist/chunks/alert.component-CcCt-bb5.js +2 -0
  6. package/dist/chunks/alert.component-CcCt-bb5.js.map +1 -0
  7. package/dist/chunks/alert.component-Dk33kIVc.js +223 -0
  8. package/dist/chunks/alert.component-Dk33kIVc.js.map +1 -0
  9. package/dist/chunks/attr-BMs6szZx.js +2 -0
  10. package/dist/chunks/attr-BMs6szZx.js.map +1 -0
  11. package/dist/chunks/attr-sm10PXOd.js +5 -0
  12. package/dist/chunks/attr-sm10PXOd.js.map +1 -0
  13. package/dist/chunks/avatar.component-Bj-v-tJK.js +420 -0
  14. package/dist/chunks/avatar.component-Bj-v-tJK.js.map +1 -0
  15. package/dist/chunks/avatar.component-LWnRY2X6.js +2 -0
  16. package/dist/chunks/avatar.component-LWnRY2X6.js.map +1 -0
  17. package/dist/chunks/{avatarGroup.component-DmZLSikp.js → avatarGroup.component-DEDlMSqD.js} +19 -20
  18. package/dist/chunks/{avatarGroup.component-DmZLSikp.js.map → avatarGroup.component-DEDlMSqD.js.map} +1 -1
  19. package/dist/chunks/avatarGroup.component-Onosz6A9.js +2 -0
  20. package/dist/chunks/{avatarGroup.component-DSqzbbcH.js.map → avatarGroup.component-Onosz6A9.js.map} +1 -1
  21. package/dist/chunks/box-DQTWVrl0.js +7 -0
  22. package/dist/chunks/box-DQTWVrl0.js.map +1 -0
  23. package/dist/chunks/box-DiiiZkF4.js +2 -0
  24. package/dist/chunks/box-DiiiZkF4.js.map +1 -0
  25. package/dist/chunks/{button.component-D2oz1NlP.js → button.component-BZHMvNis.js} +12 -12
  26. package/dist/chunks/{button.component-D2oz1NlP.js.map → button.component-BZHMvNis.js.map} +1 -1
  27. package/dist/chunks/button.component-DrvTYE-F.js +2 -0
  28. package/dist/chunks/{button.component-C0WP_LB_.js.map → button.component-DrvTYE-F.js.map} +1 -1
  29. package/dist/chunks/buttonGroup.component-CmMPEPEN.js +2 -0
  30. package/dist/chunks/buttonGroup.component-CmMPEPEN.js.map +1 -0
  31. package/dist/chunks/buttonGroup.component-DoNMqghO.js +77 -0
  32. package/dist/chunks/buttonGroup.component-DoNMqghO.js.map +1 -0
  33. package/dist/chunks/card.component-BdHsWz_5.js +2 -0
  34. package/dist/chunks/{card.component-DD6Qc8tF.js.map → card.component-BdHsWz_5.js.map} +1 -1
  35. package/dist/chunks/{card.component-C3ybHDES.js → card.component-Ds2Q5-dv.js} +6 -6
  36. package/dist/chunks/{card.component-C3ybHDES.js.map → card.component-Ds2Q5-dv.js.map} +1 -1
  37. package/dist/chunks/{characterCounter.component-BeyzgJGW.js → characterCounter.component-2pxq0nJ_.js} +19 -17
  38. package/dist/chunks/{characterCounter.component-BeyzgJGW.js.map → characterCounter.component-2pxq0nJ_.js.map} +1 -1
  39. package/dist/chunks/characterCounter.component-OMu4axLo.js +2 -0
  40. package/dist/chunks/{characterCounter.component-DGpH9KSC.js.map → characterCounter.component-OMu4axLo.js.map} +1 -1
  41. package/dist/chunks/checkbox.component-6unW8bGD.js +300 -0
  42. package/dist/chunks/checkbox.component-6unW8bGD.js.map +1 -0
  43. package/dist/chunks/checkbox.component-CN7VT6Kl.js +2 -0
  44. package/dist/chunks/checkbox.component-CN7VT6Kl.js.map +1 -0
  45. package/dist/chunks/checkbox.records-1df_6uAA.js +266 -0
  46. package/dist/chunks/checkbox.records-1df_6uAA.js.map +1 -0
  47. package/dist/chunks/checkbox.records-BEJe1isy.js +2 -0
  48. package/dist/chunks/checkbox.records-BEJe1isy.js.map +1 -0
  49. package/dist/chunks/checkboxGroup.component-BJ12z-XW.js +2 -0
  50. package/dist/chunks/{checkboxGroup.component-C0JIZ2j9.js.map → checkboxGroup.component-BJ12z-XW.js.map} +1 -1
  51. package/dist/chunks/{checkboxGroup.component-CYFE6CZn.js → checkboxGroup.component-Dbc4R5pg.js} +15 -15
  52. package/dist/chunks/{checkboxGroup.component-CYFE6CZn.js.map → checkboxGroup.component-Dbc4R5pg.js.map} +1 -1
  53. package/dist/chunks/config-Bka1LOUG.js +2 -0
  54. package/dist/chunks/config-Bka1LOUG.js.map +1 -0
  55. package/dist/chunks/config-CWIRw37z.js +57 -0
  56. package/dist/chunks/config-CWIRw37z.js.map +1 -0
  57. package/dist/chunks/conversationCard.component--lfMn8rH.js +2 -0
  58. package/dist/chunks/{conversationCard.component-CA2l_lHe.js.map → conversationCard.component--lfMn8rH.js.map} +1 -1
  59. package/dist/chunks/{conversationCard.component-DM1izELD.js → conversationCard.component-D0iB6mGd.js} +45 -41
  60. package/dist/chunks/{conversationCard.component-DM1izELD.js.map → conversationCard.component-D0iB6mGd.js.map} +1 -1
  61. package/dist/chunks/create-recipe-context-ei7-Fhjc.js +61 -0
  62. package/dist/chunks/create-recipe-context-ei7-Fhjc.js.map +1 -0
  63. package/dist/chunks/create-recipe-context-yj-_0pxV.js +2 -0
  64. package/dist/chunks/create-recipe-context-yj-_0pxV.js.map +1 -0
  65. package/dist/chunks/create-slot-recipe-context-B6kmgvsX.js +96 -0
  66. package/dist/chunks/create-slot-recipe-context-B6kmgvsX.js.map +1 -0
  67. package/dist/chunks/create-slot-recipe-context-CNbTdeS5.js +2 -0
  68. package/dist/chunks/create-slot-recipe-context-CNbTdeS5.js.map +1 -0
  69. package/dist/chunks/datePicker.component-BjPLm6FH.js +3162 -0
  70. package/dist/chunks/datePicker.component-BjPLm6FH.js.map +1 -0
  71. package/dist/chunks/datePicker.component-DOq_pEln.js +15 -0
  72. package/dist/chunks/datePicker.component-DOq_pEln.js.map +1 -0
  73. package/dist/chunks/dialog-trigger-CUC9-uYl.js +2 -0
  74. package/dist/chunks/dialog-trigger-CUC9-uYl.js.map +1 -0
  75. package/dist/chunks/dialog-trigger-tzkv77T4.js +147 -0
  76. package/dist/chunks/dialog-trigger-tzkv77T4.js.map +1 -0
  77. package/dist/chunks/divider.types-CVrYEuME.js +47 -0
  78. package/dist/chunks/divider.types-CVrYEuME.js.map +1 -0
  79. package/dist/chunks/divider.types-Cum_pC7q.js +2 -0
  80. package/dist/chunks/divider.types-Cum_pC7q.js.map +1 -0
  81. package/dist/chunks/empty-B5_AO6Pg.js +2 -0
  82. package/dist/chunks/empty-B5_AO6Pg.js.map +1 -0
  83. package/dist/chunks/empty-BU2EAux9.js +8 -0
  84. package/dist/chunks/empty-BU2EAux9.js.map +1 -0
  85. package/dist/chunks/factory-D5ooFDGK.js +1471 -0
  86. package/dist/chunks/factory-D5ooFDGK.js.map +1 -0
  87. package/dist/chunks/factory-Djhmhla9.js +17 -0
  88. package/dist/chunks/factory-Djhmhla9.js.map +1 -0
  89. package/dist/chunks/flex-CoWH4MWg.js +2 -0
  90. package/dist/chunks/flex-CoWH4MWg.js.map +1 -0
  91. package/dist/chunks/flex-D2YmHSRL.js +40 -0
  92. package/dist/chunks/flex-D2YmHSRL.js.map +1 -0
  93. package/dist/chunks/float-3sTEdNja.js +64 -0
  94. package/dist/chunks/float-3sTEdNja.js.map +1 -0
  95. package/dist/chunks/float-D0XppGHj.js +2 -0
  96. package/dist/chunks/float-D0XppGHj.js.map +1 -0
  97. package/dist/chunks/format-BRt-TIiQ.js +2 -0
  98. package/dist/chunks/format-BRt-TIiQ.js.map +1 -0
  99. package/dist/chunks/format-DgHM6wFr.js +1275 -0
  100. package/dist/chunks/format-DgHM6wFr.js.map +1 -0
  101. package/dist/chunks/grid-item-CUvFlFUM.js +2 -0
  102. package/dist/chunks/grid-item-CUvFlFUM.js.map +1 -0
  103. package/dist/chunks/grid-item-Demhr3R8.js +90 -0
  104. package/dist/chunks/grid-item-Demhr3R8.js.map +1 -0
  105. package/dist/chunks/group-CyV6CH8n.js +139 -0
  106. package/dist/chunks/group-CyV6CH8n.js.map +1 -0
  107. package/dist/chunks/group-gT4uiUTj.js +2 -0
  108. package/dist/chunks/group-gT4uiUTj.js.map +1 -0
  109. package/dist/chunks/h-stack-DS6_Nmps.js +2 -0
  110. package/dist/chunks/h-stack-DS6_Nmps.js.map +1 -0
  111. package/dist/chunks/h-stack-DWIPFE4q.js +12 -0
  112. package/dist/chunks/h-stack-DWIPFE4q.js.map +1 -0
  113. package/dist/chunks/heading.component-CVtGEEgj.js +2 -0
  114. package/dist/chunks/heading.component-CVtGEEgj.js.map +1 -0
  115. package/dist/chunks/heading.component-WidNm4DU.js +12 -0
  116. package/dist/chunks/heading.component-WidNm4DU.js.map +1 -0
  117. package/dist/chunks/icon-button-BhUHtq9f.js +119 -0
  118. package/dist/chunks/icon-button-BhUHtq9f.js.map +1 -0
  119. package/dist/chunks/icon-button-BoeNBxVE.js +2 -0
  120. package/dist/chunks/icon-button-BoeNBxVE.js.map +1 -0
  121. package/dist/chunks/{icon.component-DBE3p_Uc.js → icon.component-CqMlCLYe.js} +8 -8
  122. package/dist/chunks/{icon.component-DBE3p_Uc.js.map → icon.component-CqMlCLYe.js.map} +1 -1
  123. package/dist/chunks/icon.component-RnXzLy9Z.js +2 -0
  124. package/dist/chunks/{icon.component-BfsX-enJ.js.map → icon.component-RnXzLy9Z.js.map} +1 -1
  125. package/dist/chunks/icons-6idzI9fr.js +216 -0
  126. package/dist/chunks/icons-6idzI9fr.js.map +1 -0
  127. package/dist/chunks/icons-DsfswYKK.js +2 -0
  128. package/dist/chunks/icons-DsfswYKK.js.map +1 -0
  129. package/dist/chunks/index-63NGUyr9.js +389 -0
  130. package/dist/chunks/index-63NGUyr9.js.map +1 -0
  131. package/dist/chunks/index-BBZxmcrY.js +2 -0
  132. package/dist/chunks/index-BBZxmcrY.js.map +1 -0
  133. package/dist/chunks/index-BGwwyukg.js +2 -0
  134. package/dist/chunks/index-BGwwyukg.js.map +1 -0
  135. package/dist/chunks/{index-vZE8Mg4a.js → index-BStpE8Il.js} +3 -3
  136. package/dist/chunks/{index-vZE8Mg4a.js.map → index-BStpE8Il.js.map} +1 -1
  137. package/dist/chunks/index-Bcp83GlU.js +376 -0
  138. package/dist/chunks/index-Bcp83GlU.js.map +1 -0
  139. package/dist/chunks/index-C1_01X--.js +6313 -0
  140. package/dist/chunks/index-C1_01X--.js.map +1 -0
  141. package/dist/chunks/index-C3d8HKg_.js +291 -0
  142. package/dist/chunks/index-C3d8HKg_.js.map +1 -0
  143. package/dist/chunks/index-CItwlE2r.js +2 -0
  144. package/dist/chunks/index-CItwlE2r.js.map +1 -0
  145. package/dist/chunks/index-CNSw8O4Z.js +2 -0
  146. package/dist/chunks/index-CNSw8O4Z.js.map +1 -0
  147. package/dist/chunks/index-CZ42b9rT.js +3 -0
  148. package/dist/chunks/index-CZ42b9rT.js.map +1 -0
  149. package/dist/chunks/index-CgivotaP.js +20 -0
  150. package/dist/chunks/index-CgivotaP.js.map +1 -0
  151. package/dist/chunks/index-Cl4DH-b8.js +2 -0
  152. package/dist/chunks/index-Cl4DH-b8.js.map +1 -0
  153. package/dist/chunks/index-CsjrqSSN.js +2 -0
  154. package/dist/chunks/index-CsjrqSSN.js.map +1 -0
  155. package/dist/chunks/index-Cv1W043o.js +8 -0
  156. package/dist/chunks/index-Cv1W043o.js.map +1 -0
  157. package/dist/chunks/index-Cz4pncg8.js +322 -0
  158. package/dist/chunks/index-Cz4pncg8.js.map +1 -0
  159. package/dist/chunks/index-D1m6YWQg.js +2 -0
  160. package/dist/chunks/index-D1m6YWQg.js.map +1 -0
  161. package/dist/chunks/index-D79JhErY.js +141 -0
  162. package/dist/chunks/index-D79JhErY.js.map +1 -0
  163. package/dist/chunks/index-DAWHN3cH.js +86 -0
  164. package/dist/chunks/index-DAWHN3cH.js.map +1 -0
  165. package/dist/chunks/index-DLvqBeH6.js +1018 -0
  166. package/dist/chunks/index-DLvqBeH6.js.map +1 -0
  167. package/dist/chunks/index-DQxjSq1v.js +257 -0
  168. package/dist/chunks/index-DQxjSq1v.js.map +1 -0
  169. package/dist/chunks/index-Dg2ABT8y.js +2 -0
  170. package/dist/chunks/index-Dg2ABT8y.js.map +1 -0
  171. package/dist/chunks/index-DgM7zI46.js +2 -0
  172. package/dist/chunks/index-DgM7zI46.js.map +1 -0
  173. package/dist/chunks/index-Dn2nvQ5m.js +1190 -0
  174. package/dist/chunks/index-Dn2nvQ5m.js.map +1 -0
  175. package/dist/chunks/index-JaYE81Ru.js +2 -0
  176. package/dist/chunks/index-JaYE81Ru.js.map +1 -0
  177. package/dist/chunks/index-Kw3RO_3f.js +444 -0
  178. package/dist/chunks/index-Kw3RO_3f.js.map +1 -0
  179. package/dist/chunks/index-bAktJOSP.js +2 -0
  180. package/dist/chunks/index-bAktJOSP.js.map +1 -0
  181. package/dist/chunks/index-naFRmuBR.js +2 -0
  182. package/dist/chunks/{index-DMJi1adP.js.map → index-naFRmuBR.js.map} +1 -1
  183. package/dist/chunks/index-sWaESJRS.js +1196 -0
  184. package/dist/chunks/index-sWaESJRS.js.map +1 -0
  185. package/dist/chunks/jsx-runtime-C5mzlN2N.js +285 -0
  186. package/dist/chunks/jsx-runtime-C5mzlN2N.js.map +1 -0
  187. package/dist/chunks/jsx-runtime-CITbqOLs.js +23 -0
  188. package/dist/chunks/jsx-runtime-CITbqOLs.js.map +1 -0
  189. package/dist/chunks/link.component-B0NnnoNo.js +61 -0
  190. package/dist/chunks/link.component-B0NnnoNo.js.map +1 -0
  191. package/dist/chunks/link.component-DfPzeeWK.js +2 -0
  192. package/dist/chunks/link.component-DfPzeeWK.js.map +1 -0
  193. package/dist/chunks/list-AkEh0-z3.js +2 -0
  194. package/dist/chunks/list-AkEh0-z3.js.map +1 -0
  195. package/dist/chunks/list-CBFKkZsk.js +20 -0
  196. package/dist/chunks/list-CBFKkZsk.js.map +1 -0
  197. package/dist/chunks/logo.types-DWfVoh84.js +2 -0
  198. package/dist/chunks/{logo.types-B8atHDWW.js.map → logo.types-DWfVoh84.js.map} +1 -1
  199. package/dist/chunks/{logo.types-Bvrs8ZXC.js → logo.types-Di-vcqft.js} +20 -18
  200. package/dist/chunks/{logo.types-Bvrs8ZXC.js.map → logo.types-Di-vcqft.js.map} +1 -1
  201. package/dist/chunks/menu.component-CVq3JuDQ.js +2 -0
  202. package/dist/chunks/menu.component-CVq3JuDQ.js.map +1 -0
  203. package/dist/chunks/menu.component-D7YIaf-Z.js +668 -0
  204. package/dist/chunks/menu.component-D7YIaf-Z.js.map +1 -0
  205. package/dist/chunks/modal.types-BqYvHMJ1.js +2 -0
  206. package/dist/chunks/modal.types-BqYvHMJ1.js.map +1 -0
  207. package/dist/chunks/modal.types-hd4zRySC.js +192 -0
  208. package/dist/chunks/modal.types-hd4zRySC.js.map +1 -0
  209. package/dist/chunks/notificationCounter.component-C1kj4Fks.js +2 -0
  210. package/dist/chunks/{notificationCounter.component-DkgPZi0c.js.map → notificationCounter.component-C1kj4Fks.js.map} +1 -1
  211. package/dist/chunks/{notificationCounter.component-Bvbl2C8b.js → notificationCounter.component-DucbUl3J.js} +10 -7
  212. package/dist/chunks/{notificationCounter.component-Bvbl2C8b.js.map → notificationCounter.component-DucbUl3J.js.map} +1 -1
  213. package/dist/chunks/notificationCounter.types-B_-siNfi.js +2 -0
  214. package/dist/chunks/notificationCounter.types-B_-siNfi.js.map +1 -0
  215. package/dist/chunks/notificationCounter.types-S7ENT1Oj.js +11 -0
  216. package/dist/chunks/notificationCounter.types-S7ENT1Oj.js.map +1 -0
  217. package/dist/chunks/omit-C-j4TrF5.js +10 -0
  218. package/dist/chunks/omit-C-j4TrF5.js.map +1 -0
  219. package/dist/chunks/omit-DqNeoZ8h.js +2 -0
  220. package/dist/chunks/omit-DqNeoZ8h.js.map +1 -0
  221. package/dist/chunks/picture.component-CFur6bma.js +2 -0
  222. package/dist/chunks/picture.component-CFur6bma.js.map +1 -0
  223. package/dist/chunks/picture.component-CcTQIBLG.js +35 -0
  224. package/dist/chunks/picture.component-CcTQIBLG.js.map +1 -0
  225. package/dist/chunks/pinInput.types-BkZoddhj.js +2 -0
  226. package/dist/chunks/pinInput.types-BkZoddhj.js.map +1 -0
  227. package/dist/chunks/pinInput.types-htAlsWUJ.js +161 -0
  228. package/dist/chunks/pinInput.types-htAlsWUJ.js.map +1 -0
  229. package/dist/chunks/popover-DK1Q0GmC.js +2 -0
  230. package/dist/chunks/popover-DK1Q0GmC.js.map +1 -0
  231. package/dist/chunks/popover-NyXIgDrR.js +110 -0
  232. package/dist/chunks/popover-NyXIgDrR.js.map +1 -0
  233. package/dist/chunks/popover-root-provider-DL0Y6XoH.js +2 -0
  234. package/dist/chunks/popover-root-provider-DL0Y6XoH.js.map +1 -0
  235. package/dist/chunks/popover-root-provider-_dExZRNY.js +43 -0
  236. package/dist/chunks/popover-root-provider-_dExZRNY.js.map +1 -0
  237. package/dist/chunks/popover.component-BU4ZYtgB.js +2 -0
  238. package/dist/chunks/popover.component-BU4ZYtgB.js.map +1 -0
  239. package/dist/chunks/popover.component-Di7A2mlT.js +323 -0
  240. package/dist/chunks/popover.component-Di7A2mlT.js.map +1 -0
  241. package/dist/chunks/popover.recipe-C7mfFIuD.js +478 -0
  242. package/dist/chunks/popover.recipe-C7mfFIuD.js.map +1 -0
  243. package/dist/chunks/popover.recipe-CFioNlNO.js +2 -0
  244. package/dist/chunks/popover.recipe-CFioNlNO.js.map +1 -0
  245. package/dist/chunks/radio.records-BvaGc_dX.js +382 -0
  246. package/dist/chunks/radio.records-BvaGc_dX.js.map +1 -0
  247. package/dist/chunks/radio.records-HAh4TB8-.js +2 -0
  248. package/dist/chunks/radio.records-HAh4TB8-.js.map +1 -0
  249. package/dist/chunks/radioGroup.component-AnXOfN3A.js +2 -0
  250. package/dist/chunks/radioGroup.component-AnXOfN3A.js.map +1 -0
  251. package/dist/chunks/radioGroup.component-Cdtgrekb.js +266 -0
  252. package/dist/chunks/radioGroup.component-Cdtgrekb.js.map +1 -0
  253. package/dist/chunks/{ratingDots.component-Bd43t7IQ.js → ratingDots.component-B-VtkikB.js} +31 -28
  254. package/dist/chunks/{ratingDots.component-Bd43t7IQ.js.map → ratingDots.component-B-VtkikB.js.map} +1 -1
  255. package/dist/chunks/ratingDots.component-wYh_RTGd.js +2 -0
  256. package/dist/chunks/{ratingDots.component-D4ppuVsC.js.map → ratingDots.component-wYh_RTGd.js.map} +1 -1
  257. package/dist/chunks/render-strategy-8uyKZcWI.js +2 -0
  258. package/dist/chunks/render-strategy-8uyKZcWI.js.map +1 -0
  259. package/dist/chunks/render-strategy-Cr139kIz.js +12 -0
  260. package/dist/chunks/render-strategy-Cr139kIz.js.map +1 -0
  261. package/dist/chunks/select.component-C9FC4hZN.js +344 -0
  262. package/dist/chunks/select.component-C9FC4hZN.js.map +1 -0
  263. package/dist/chunks/select.component-CtCEglbM.js +2 -0
  264. package/dist/chunks/select.component-CtCEglbM.js.map +1 -0
  265. package/dist/chunks/{dnd-B2xPQNV1.js → sortableList.component-BpkFj8Wt.js} +1015 -887
  266. package/dist/chunks/sortableList.component-BpkFj8Wt.js.map +1 -0
  267. package/dist/chunks/sortableList.component-Dft-FiMn.js +6 -0
  268. package/dist/chunks/sortableList.component-Dft-FiMn.js.map +1 -0
  269. package/dist/chunks/spinner-B981BEf0.js +2 -0
  270. package/dist/chunks/spinner-B981BEf0.js.map +1 -0
  271. package/dist/chunks/spinner-DUSVCecp.js +8 -0
  272. package/dist/chunks/spinner-DUSVCecp.js.map +1 -0
  273. package/dist/chunks/{spinner.component-Dv6ILpLw.js → spinner.component-BmT7fUg9.js} +21 -18
  274. package/dist/chunks/{spinner.component-Dv6ILpLw.js.map → spinner.component-BmT7fUg9.js.map} +1 -1
  275. package/dist/chunks/spinner.component-DPS-cIcA.js +2 -0
  276. package/dist/chunks/{spinner.component-BOvFHPif.js.map → spinner.component-DPS-cIcA.js.map} +1 -1
  277. package/dist/chunks/stack-BNCEW5sJ.js +85 -0
  278. package/dist/chunks/stack-BNCEW5sJ.js.map +1 -0
  279. package/dist/chunks/stack-DXGLsM8c.js +2 -0
  280. package/dist/chunks/stack-DXGLsM8c.js.map +1 -0
  281. package/dist/chunks/{styledAvatar.types-CwNCq3sT.js → styledAvatar.types-CI0j01cH.js} +3 -3
  282. package/dist/chunks/{styledAvatar.types-CwNCq3sT.js.map → styledAvatar.types-CI0j01cH.js.map} +1 -1
  283. package/dist/chunks/styledAvatar.types-CRb1HJCU.js +2 -0
  284. package/dist/chunks/{styledAvatar.types-PT4EAuEp.js.map → styledAvatar.types-CRb1HJCU.js.map} +1 -1
  285. package/dist/chunks/swatch.types-BtgRLAO2.js +2 -0
  286. package/dist/chunks/swatch.types-BtgRLAO2.js.map +1 -0
  287. package/dist/chunks/swatch.types-DMM5zh_t.js +67 -0
  288. package/dist/chunks/swatch.types-DMM5zh_t.js.map +1 -0
  289. package/dist/chunks/switch.component-Dl4g9R68.js +166 -0
  290. package/dist/chunks/switch.component-Dl4g9R68.js.map +1 -0
  291. package/dist/chunks/switch.component-Do0X7LJD.js +2 -0
  292. package/dist/chunks/switch.component-Do0X7LJD.js.map +1 -0
  293. package/dist/chunks/tabs.component-D1aPBr6M.js +639 -0
  294. package/dist/chunks/tabs.component-D1aPBr6M.js.map +1 -0
  295. package/dist/chunks/tabs.component-ISxMfB67.js +2 -0
  296. package/dist/chunks/tabs.component-ISxMfB67.js.map +1 -0
  297. package/dist/chunks/tag.component-BdVdchYv.js +82 -0
  298. package/dist/chunks/tag.component-BdVdchYv.js.map +1 -0
  299. package/dist/chunks/tag.component-Mi7eMQDk.js +2 -0
  300. package/dist/chunks/tag.component-Mi7eMQDk.js.map +1 -0
  301. package/dist/chunks/{tagBlock.component-mh1xalv9.js → tagBlock.component-BQRdsHPH.js} +18 -16
  302. package/dist/chunks/{tagBlock.component-mh1xalv9.js.map → tagBlock.component-BQRdsHPH.js.map} +1 -1
  303. package/dist/chunks/tagBlock.component-Dj3iPVJy.js +2 -0
  304. package/dist/chunks/{tagBlock.component-l95szZbR.js.map → tagBlock.component-Dj3iPVJy.js.map} +1 -1
  305. package/dist/chunks/text.component-uDfPjmx6.js +2 -0
  306. package/dist/chunks/text.component-uDfPjmx6.js.map +1 -0
  307. package/dist/chunks/text.component-ymbS_dRE.js +12 -0
  308. package/dist/chunks/text.component-ymbS_dRE.js.map +1 -0
  309. package/dist/chunks/textInput.component-CEF55yJj.js +2 -0
  310. package/dist/chunks/textInput.component-CEF55yJj.js.map +1 -0
  311. package/dist/chunks/textInput.component-DfqkWsJX.js +180 -0
  312. package/dist/chunks/textInput.component-DfqkWsJX.js.map +1 -0
  313. package/dist/chunks/textarea.component-1B3U7E2O.js +97 -0
  314. package/dist/chunks/textarea.component-1B3U7E2O.js.map +1 -0
  315. package/dist/chunks/textarea.component-BVGFuIZC.js +2 -0
  316. package/dist/chunks/textarea.component-BVGFuIZC.js.map +1 -0
  317. package/dist/chunks/{chakra-CM93-d7A.js → theme.provider-B2ycPYcf.js} +5058 -6193
  318. package/dist/chunks/theme.provider-B2ycPYcf.js.map +1 -0
  319. package/dist/chunks/theme.provider-BM3qjfO8.js +26 -0
  320. package/dist/chunks/theme.provider-BM3qjfO8.js.map +1 -0
  321. package/dist/chunks/{timePicker.component-De_cGEGp.js → timePicker.component-C7i3U49Y.js} +51 -48
  322. package/dist/chunks/{timePicker.component-De_cGEGp.js.map → timePicker.component-C7i3U49Y.js.map} +1 -1
  323. package/dist/chunks/timePicker.component-oN8iujB5.js +2 -0
  324. package/dist/chunks/{timePicker.component-xmuus8uL.js.map → timePicker.component-oN8iujB5.js.map} +1 -1
  325. package/dist/chunks/timeRange.component-BApcir-7.js +18 -0
  326. package/dist/chunks/{timeRange.component-DrzDwxwT.js.map → timeRange.component-BApcir-7.js.map} +1 -1
  327. package/dist/chunks/timeRange.component-XZD-d3X-.js +2 -0
  328. package/dist/chunks/{timeRange.component-CUvBh5g0.js.map → timeRange.component-XZD-d3X-.js.map} +1 -1
  329. package/dist/chunks/timestamp.component-25Br-GCm.js +54 -0
  330. package/dist/chunks/timestamp.component-25Br-GCm.js.map +1 -0
  331. package/dist/chunks/timestamp.component-DJZzpqBC.js +2 -0
  332. package/dist/chunks/timestamp.component-DJZzpqBC.js.map +1 -0
  333. package/dist/chunks/toaster.records-BSRUGTiS.js +824 -0
  334. package/dist/chunks/toaster.records-BSRUGTiS.js.map +1 -0
  335. package/dist/chunks/toaster.records-BTc-Lbzv.js +2 -0
  336. package/dist/chunks/toaster.records-BTc-Lbzv.js.map +1 -0
  337. package/dist/chunks/tooltip.component-CVPBpD3Z.js +2 -0
  338. package/dist/chunks/tooltip.component-CVPBpD3Z.js.map +1 -0
  339. package/dist/chunks/tooltip.component-Cf_csr_d.js +754 -0
  340. package/dist/chunks/tooltip.component-Cf_csr_d.js.map +1 -0
  341. package/dist/chunks/{typography.records-CG4wIBxE.js → typography.records-DA6XZIsX.js} +17 -5
  342. package/dist/chunks/typography.records-DA6XZIsX.js.map +1 -0
  343. package/dist/chunks/typography.records-DZdHSCkY.js +2 -0
  344. package/dist/chunks/typography.records-DZdHSCkY.js.map +1 -0
  345. package/dist/chunks/use-field-context-B8ygn96q.js +12 -0
  346. package/dist/chunks/use-field-context-B8ygn96q.js.map +1 -0
  347. package/dist/chunks/use-field-context-BPsEZCN4.js +2 -0
  348. package/dist/chunks/use-field-context-BPsEZCN4.js.map +1 -0
  349. package/dist/chunks/use-locale-context-Cc4BhWV1.js +22 -0
  350. package/dist/chunks/use-locale-context-Cc4BhWV1.js.map +1 -0
  351. package/dist/chunks/use-locale-context-zakBNK5b.js +2301 -0
  352. package/dist/chunks/use-locale-context-zakBNK5b.js.map +1 -0
  353. package/dist/chunks/use-recipe-CkP1U6f2.js +2 -0
  354. package/dist/chunks/use-recipe-CkP1U6f2.js.map +1 -0
  355. package/dist/chunks/use-recipe-D7cwXEim.js +13 -0
  356. package/dist/chunks/use-recipe-D7cwXEim.js.map +1 -0
  357. package/dist/chunks/use-slot-recipe-Bz5VPIbz.js +13 -0
  358. package/dist/chunks/use-slot-recipe-Bz5VPIbz.js.map +1 -0
  359. package/dist/chunks/use-slot-recipe-ClRnqDPf.js +2 -0
  360. package/dist/chunks/use-slot-recipe-ClRnqDPf.js.map +1 -0
  361. package/dist/chunks/v-stack-By2b5ZVX.js +2 -0
  362. package/dist/chunks/v-stack-By2b5ZVX.js.map +1 -0
  363. package/dist/chunks/v-stack-C_EMZ8cL.js +12 -0
  364. package/dist/chunks/v-stack-C_EMZ8cL.js.map +1 -0
  365. package/dist/chunks/walk-object-BQcbPtPs.js +28 -0
  366. package/dist/chunks/walk-object-BQcbPtPs.js.map +1 -0
  367. package/dist/chunks/walk-object-CwdvmBuz.js +2 -0
  368. package/dist/chunks/walk-object-CwdvmBuz.js.map +1 -0
  369. package/dist/chunks/withFormControl-CUnCiP8H.js +2 -0
  370. package/dist/chunks/withFormControl-CUnCiP8H.js.map +1 -0
  371. package/dist/chunks/withFormControl-DoBnTeb9.js +375 -0
  372. package/dist/chunks/withFormControl-DoBnTeb9.js.map +1 -0
  373. package/dist/chunks/withTruncation-CzqmBekU.js +2 -0
  374. package/dist/chunks/{withTruncation-BBPS7Ess.js.map → withTruncation-CzqmBekU.js.map} +1 -1
  375. package/dist/chunks/{withTruncation-B1xhd1td.js → withTruncation-iFpoL9YV.js} +4 -4
  376. package/dist/chunks/{withTruncation-B1xhd1td.js.map → withTruncation-iFpoL9YV.js.map} +1 -1
  377. package/dist/chunks/wrap-CdWJy79S.js +2 -0
  378. package/dist/chunks/wrap-CdWJy79S.js.map +1 -0
  379. package/dist/chunks/wrap-DwAuTaha.js +45 -0
  380. package/dist/chunks/wrap-DwAuTaha.js.map +1 -0
  381. package/dist/cjs/chakra/index.cjs +1 -1
  382. package/dist/cjs/chakra/index.cjs.map +1 -1
  383. package/dist/cjs/components/Alert/index.cjs +1 -1
  384. package/dist/cjs/components/Avatar/index.cjs +1 -1
  385. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  386. package/dist/cjs/components/Button/index.cjs +1 -1
  387. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  388. package/dist/cjs/components/Card/index.cjs +1 -1
  389. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  390. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  391. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  392. package/dist/cjs/components/ConversationCard/index.cjs +1 -1
  393. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  394. package/dist/cjs/components/Divider/index.cjs +1 -1
  395. package/dist/cjs/components/Divider/index.cjs.map +1 -1
  396. package/dist/cjs/components/Heading/index.cjs +1 -1
  397. package/dist/cjs/components/Icon/generated/index.cjs +1 -1
  398. package/dist/cjs/components/Icon/generated/index.cjs.map +1 -1
  399. package/dist/cjs/components/Icon/index.cjs +1 -1
  400. package/dist/cjs/components/Link/index.cjs +1 -1
  401. package/dist/cjs/components/Logo/generated/index.cjs +1 -1
  402. package/dist/cjs/components/Logo/index.cjs +1 -1
  403. package/dist/cjs/components/Menu/index.cjs +1 -1
  404. package/dist/cjs/components/Modal/index.cjs +1 -1
  405. package/dist/cjs/components/NotificationCounter/index.cjs +1 -1
  406. package/dist/cjs/components/NotificationCounter/index.cjs.map +1 -1
  407. package/dist/cjs/components/Picture/index.cjs +1 -1
  408. package/dist/cjs/components/Picture/index.cjs.map +1 -1
  409. package/dist/cjs/components/PinInput/index.cjs +1 -1
  410. package/dist/cjs/components/Popover/index.cjs +1 -1
  411. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  412. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  413. package/dist/cjs/components/Select/index.cjs +1 -1
  414. package/dist/cjs/components/SortableList/index.cjs +1 -1
  415. package/dist/cjs/components/Spinner/index.cjs +1 -1
  416. package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
  417. package/dist/cjs/components/Swatch/index.cjs +1 -1
  418. package/dist/cjs/components/Swatch/index.cjs.map +1 -1
  419. package/dist/cjs/components/Switch/index.cjs +1 -1
  420. package/dist/cjs/components/Tabs/index.cjs +1 -1
  421. package/dist/cjs/components/Tag/index.cjs +1 -1
  422. package/dist/cjs/components/TagBlock/index.cjs +1 -1
  423. package/dist/cjs/components/Text/index.cjs +1 -1
  424. package/dist/cjs/components/TextInput/index.cjs +1 -1
  425. package/dist/cjs/components/Textarea/index.cjs +1 -1
  426. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  427. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  428. package/dist/cjs/components/Timestamp/index.cjs +1 -1
  429. package/dist/cjs/components/Toast/index.cjs +1 -1
  430. package/dist/cjs/components/Tooltip/index.cjs +1 -1
  431. package/dist/cjs/components/index.cjs +1 -1
  432. package/dist/cjs/hocs/index.cjs +1 -1
  433. package/dist/cjs/hooks/index.cjs +1 -1
  434. package/dist/cjs/hooks/index.cjs.map +1 -1
  435. package/dist/cjs/index.cjs +1 -1
  436. package/dist/cjs/theme/index.cjs +1 -1
  437. package/dist/cjs/theme/tokens/blurs/index.cjs +1 -1
  438. package/dist/esm/chakra/index.js +3216 -66
  439. package/dist/esm/chakra/index.js.map +1 -1
  440. package/dist/esm/components/Alert/index.js +1 -1
  441. package/dist/esm/components/Avatar/index.js +1 -1
  442. package/dist/esm/components/AvatarGroup/index.js +1 -1
  443. package/dist/esm/components/Button/index.js +1 -1
  444. package/dist/esm/components/ButtonGroup/index.js +1 -1
  445. package/dist/esm/components/Card/index.js +1 -1
  446. package/dist/esm/components/CharacterCounter/index.js +1 -1
  447. package/dist/esm/components/Checkbox/index.js +1 -1
  448. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  449. package/dist/esm/components/ConversationCard/index.js +1 -1
  450. package/dist/esm/components/DatePicker/index.js +1 -1
  451. package/dist/esm/components/Divider/index.js +5 -24
  452. package/dist/esm/components/Divider/index.js.map +1 -1
  453. package/dist/esm/components/Heading/index.js +1 -1
  454. package/dist/esm/components/Icon/generated/index.js +1 -1
  455. package/dist/esm/components/Icon/index.js +1 -1
  456. package/dist/esm/components/Link/index.js +1 -1
  457. package/dist/esm/components/Logo/generated/index.js +1 -1
  458. package/dist/esm/components/Logo/index.js +1 -1
  459. package/dist/esm/components/Menu/index.js +1 -1
  460. package/dist/esm/components/Modal/index.js +1 -1
  461. package/dist/esm/components/NotificationCounter/index.js +4 -9
  462. package/dist/esm/components/NotificationCounter/index.js.map +1 -1
  463. package/dist/esm/components/Picture/index.js +1 -16
  464. package/dist/esm/components/Picture/index.js.map +1 -1
  465. package/dist/esm/components/PinInput/index.js +1 -1
  466. package/dist/esm/components/Popover/index.js +1 -1
  467. package/dist/esm/components/RadioGroup/index.js +1 -1
  468. package/dist/esm/components/RatingDots/index.js +1 -1
  469. package/dist/esm/components/Select/index.js +1 -1
  470. package/dist/esm/components/SortableList/index.js +1 -1
  471. package/dist/esm/components/Spinner/index.js +1 -1
  472. package/dist/esm/components/StyledAvatar/index.js +1 -1
  473. package/dist/esm/components/Swatch/index.js +3 -62
  474. package/dist/esm/components/Swatch/index.js.map +1 -1
  475. package/dist/esm/components/Switch/index.js +1 -1
  476. package/dist/esm/components/Tabs/index.js +1 -1
  477. package/dist/esm/components/Tag/index.js +1 -1
  478. package/dist/esm/components/TagBlock/index.js +1 -1
  479. package/dist/esm/components/Text/index.js +1 -1
  480. package/dist/esm/components/TextInput/index.js +1 -1
  481. package/dist/esm/components/Textarea/index.js +1 -1
  482. package/dist/esm/components/TimePicker/index.js +1 -1
  483. package/dist/esm/components/TimeRange/index.js +1 -1
  484. package/dist/esm/components/Timestamp/index.js +1 -1
  485. package/dist/esm/components/Toast/index.js +1 -1
  486. package/dist/esm/components/Tooltip/index.js +1 -1
  487. package/dist/esm/components/index.js +71 -71
  488. package/dist/esm/hocs/index.js +1 -1
  489. package/dist/esm/hooks/index.js +3 -17
  490. package/dist/esm/hooks/index.js.map +1 -1
  491. package/dist/esm/index.js +67 -67
  492. package/dist/esm/theme/index.js +1 -1
  493. package/dist/esm/theme/tokens/blurs/index.js +1 -2
  494. package/dist/esm/theme/tokens/blurs/index.js.map +1 -1
  495. package/package.json +1 -1
  496. package/dist/chunks/IconLogo-Dd5mp5A_.js +0 -2
  497. package/dist/chunks/alert.component-BckFT52S.js +0 -182
  498. package/dist/chunks/alert.component-BckFT52S.js.map +0 -1
  499. package/dist/chunks/alert.component-E006OS2e.js +0 -2
  500. package/dist/chunks/alert.component-E006OS2e.js.map +0 -1
  501. package/dist/chunks/avatar.component-CRJ7JH0g.js +0 -2
  502. package/dist/chunks/avatar.component-CRJ7JH0g.js.map +0 -1
  503. package/dist/chunks/avatar.component-Ds5P6pYC.js +0 -307
  504. package/dist/chunks/avatar.component-Ds5P6pYC.js.map +0 -1
  505. package/dist/chunks/avatarGroup.component-DSqzbbcH.js +0 -2
  506. package/dist/chunks/button.component-C0WP_LB_.js +0 -2
  507. package/dist/chunks/buttonGroup.component-ChKXpEdS.js +0 -2
  508. package/dist/chunks/buttonGroup.component-ChKXpEdS.js.map +0 -1
  509. package/dist/chunks/buttonGroup.component-Dg4GN69o.js +0 -67
  510. package/dist/chunks/buttonGroup.component-Dg4GN69o.js.map +0 -1
  511. package/dist/chunks/card.component-DD6Qc8tF.js +0 -2
  512. package/dist/chunks/chakra-C0NbsW66.js +0 -5
  513. package/dist/chunks/chakra-C0NbsW66.js.map +0 -1
  514. package/dist/chunks/chakra-CM93-d7A.js.map +0 -1
  515. package/dist/chunks/characterCounter.component-DGpH9KSC.js +0 -2
  516. package/dist/chunks/checkbox.component-B8_UcvuT.js +0 -2
  517. package/dist/chunks/checkbox.component-B8_UcvuT.js.map +0 -1
  518. package/dist/chunks/checkbox.component-DmvrqdLZ.js +0 -90
  519. package/dist/chunks/checkbox.component-DmvrqdLZ.js.map +0 -1
  520. package/dist/chunks/checkbox.records-DJfdKuOe.js +0 -2
  521. package/dist/chunks/checkbox.records-DJfdKuOe.js.map +0 -1
  522. package/dist/chunks/checkbox.records-JWbKQ684.js +0 -14
  523. package/dist/chunks/checkbox.records-JWbKQ684.js.map +0 -1
  524. package/dist/chunks/checkboxGroup.component-C0JIZ2j9.js +0 -2
  525. package/dist/chunks/conversationCard.component-CA2l_lHe.js +0 -2
  526. package/dist/chunks/date-CQ_hzmOK.js +0 -3598
  527. package/dist/chunks/date-CQ_hzmOK.js.map +0 -1
  528. package/dist/chunks/date-Dn1AgqaP.js +0 -15
  529. package/dist/chunks/date-Dn1AgqaP.js.map +0 -1
  530. package/dist/chunks/datePicker.component-B4vcW7h7.js +0 -2
  531. package/dist/chunks/datePicker.component-B4vcW7h7.js.map +0 -1
  532. package/dist/chunks/datePicker.component-cA-nGYqw.js +0 -749
  533. package/dist/chunks/datePicker.component-cA-nGYqw.js.map +0 -1
  534. package/dist/chunks/dnd-B2xPQNV1.js.map +0 -1
  535. package/dist/chunks/dnd-Whsk3gIz.js +0 -6
  536. package/dist/chunks/dnd-Whsk3gIz.js.map +0 -1
  537. package/dist/chunks/heading.component-gaqQG9s0.js +0 -2
  538. package/dist/chunks/heading.component-gaqQG9s0.js.map +0 -1
  539. package/dist/chunks/heading.component-hixOzKF-.js +0 -10
  540. package/dist/chunks/heading.component-hixOzKF-.js.map +0 -1
  541. package/dist/chunks/icon.component-BfsX-enJ.js +0 -2
  542. package/dist/chunks/index-DMJi1adP.js +0 -2
  543. package/dist/chunks/link.component-dqnMmYTA.js +0 -2
  544. package/dist/chunks/link.component-dqnMmYTA.js.map +0 -1
  545. package/dist/chunks/link.component-eJ17KWOU.js +0 -58
  546. package/dist/chunks/link.component-eJ17KWOU.js.map +0 -1
  547. package/dist/chunks/logo.types-B8atHDWW.js +0 -2
  548. package/dist/chunks/menu.component-BkBiiMuq.js +0 -390
  549. package/dist/chunks/menu.component-BkBiiMuq.js.map +0 -1
  550. package/dist/chunks/menu.component-DXMYm7dU.js +0 -2
  551. package/dist/chunks/menu.component-DXMYm7dU.js.map +0 -1
  552. package/dist/chunks/modal.types-DvtR-omH.js +0 -146
  553. package/dist/chunks/modal.types-DvtR-omH.js.map +0 -1
  554. package/dist/chunks/modal.types-z5WKe7Q0.js +0 -2
  555. package/dist/chunks/modal.types-z5WKe7Q0.js.map +0 -1
  556. package/dist/chunks/notificationCounter.component-DkgPZi0c.js +0 -2
  557. package/dist/chunks/pinInput.types-DHqvwJ2H.js +0 -2
  558. package/dist/chunks/pinInput.types-DHqvwJ2H.js.map +0 -1
  559. package/dist/chunks/pinInput.types-DyHMYDL5.js +0 -64
  560. package/dist/chunks/pinInput.types-DyHMYDL5.js.map +0 -1
  561. package/dist/chunks/popover.component-7qztHz-A.js +0 -221
  562. package/dist/chunks/popover.component-7qztHz-A.js.map +0 -1
  563. package/dist/chunks/popover.component-BHcW8kHH.js +0 -2
  564. package/dist/chunks/popover.component-BHcW8kHH.js.map +0 -1
  565. package/dist/chunks/popover.recipe-9UvOa6LD.js +0 -2
  566. package/dist/chunks/popover.recipe-9UvOa6LD.js.map +0 -1
  567. package/dist/chunks/popover.recipe-BecbuU0C.js +0 -123
  568. package/dist/chunks/popover.recipe-BecbuU0C.js.map +0 -1
  569. package/dist/chunks/radio.records-BxCn4oUd.js +0 -2
  570. package/dist/chunks/radio.records-BxCn4oUd.js.map +0 -1
  571. package/dist/chunks/radio.records-Cc3kP4Vn.js +0 -14
  572. package/dist/chunks/radio.records-Cc3kP4Vn.js.map +0 -1
  573. package/dist/chunks/radioGroup.component-BGyp2laV.js +0 -2
  574. package/dist/chunks/radioGroup.component-BGyp2laV.js.map +0 -1
  575. package/dist/chunks/radioGroup.component-C_ZyLaHd.js +0 -151
  576. package/dist/chunks/radioGroup.component-C_ZyLaHd.js.map +0 -1
  577. package/dist/chunks/ratingDots.component-D4ppuVsC.js +0 -2
  578. package/dist/chunks/select.component-CbIIIuhy.js +0 -2
  579. package/dist/chunks/select.component-CbIIIuhy.js.map +0 -1
  580. package/dist/chunks/select.component-ZziZvaYN.js +0 -129
  581. package/dist/chunks/select.component-ZziZvaYN.js.map +0 -1
  582. package/dist/chunks/sortableList.component-C0TkrJ1w.js +0 -145
  583. package/dist/chunks/sortableList.component-C0TkrJ1w.js.map +0 -1
  584. package/dist/chunks/sortableList.component-qsHXIcpT.js +0 -2
  585. package/dist/chunks/sortableList.component-qsHXIcpT.js.map +0 -1
  586. package/dist/chunks/spinner.component-BOvFHPif.js +0 -2
  587. package/dist/chunks/styledAvatar.types-PT4EAuEp.js +0 -2
  588. package/dist/chunks/switch.component-B3FklslV.js +0 -2
  589. package/dist/chunks/switch.component-B3FklslV.js.map +0 -1
  590. package/dist/chunks/switch.component-BGEZmxHH.js +0 -53
  591. package/dist/chunks/switch.component-BGEZmxHH.js.map +0 -1
  592. package/dist/chunks/tabs.component-BrrimKx6.js +0 -2
  593. package/dist/chunks/tabs.component-BrrimKx6.js.map +0 -1
  594. package/dist/chunks/tabs.component-CUIaXeqI.js +0 -87
  595. package/dist/chunks/tabs.component-CUIaXeqI.js.map +0 -1
  596. package/dist/chunks/tag.component-DyKlm8xn.js +0 -66
  597. package/dist/chunks/tag.component-DyKlm8xn.js.map +0 -1
  598. package/dist/chunks/tag.component-eQu3O7if.js +0 -2
  599. package/dist/chunks/tag.component-eQu3O7if.js.map +0 -1
  600. package/dist/chunks/tagBlock.component-l95szZbR.js +0 -2
  601. package/dist/chunks/text.component-BEmVrJQy.js +0 -2
  602. package/dist/chunks/text.component-BEmVrJQy.js.map +0 -1
  603. package/dist/chunks/text.component-BqLgdeLf.js +0 -10
  604. package/dist/chunks/text.component-BqLgdeLf.js.map +0 -1
  605. package/dist/chunks/textInput.component-CWd-3re1.js +0 -2
  606. package/dist/chunks/textInput.component-CWd-3re1.js.map +0 -1
  607. package/dist/chunks/textInput.component-kHpXV881.js +0 -98
  608. package/dist/chunks/textInput.component-kHpXV881.js.map +0 -1
  609. package/dist/chunks/textarea.component-DZPiaMgB.js +0 -51
  610. package/dist/chunks/textarea.component-DZPiaMgB.js.map +0 -1
  611. package/dist/chunks/textarea.component-Du9r-ixW.js +0 -2
  612. package/dist/chunks/textarea.component-Du9r-ixW.js.map +0 -1
  613. package/dist/chunks/theme.provider-BBYAbeey.js +0 -2681
  614. package/dist/chunks/theme.provider-BBYAbeey.js.map +0 -1
  615. package/dist/chunks/theme.provider-BieTVY3q.js +0 -24
  616. package/dist/chunks/theme.provider-BieTVY3q.js.map +0 -1
  617. package/dist/chunks/timePicker.component-xmuus8uL.js +0 -2
  618. package/dist/chunks/timeRange.component-CUvBh5g0.js +0 -2
  619. package/dist/chunks/timeRange.component-DrzDwxwT.js +0 -17
  620. package/dist/chunks/timestamp.component-BpkM-el7.js +0 -2
  621. package/dist/chunks/timestamp.component-BpkM-el7.js.map +0 -1
  622. package/dist/chunks/timestamp.component-CCDsOjUf.js +0 -37
  623. package/dist/chunks/timestamp.component-CCDsOjUf.js.map +0 -1
  624. package/dist/chunks/toaster.records-Dm3AFmL1.js +0 -2
  625. package/dist/chunks/toaster.records-Dm3AFmL1.js.map +0 -1
  626. package/dist/chunks/toaster.records-GZYhSv5r.js +0 -47
  627. package/dist/chunks/toaster.records-GZYhSv5r.js.map +0 -1
  628. package/dist/chunks/tooltip.component-BCqNpAW9.js +0 -2
  629. package/dist/chunks/tooltip.component-BCqNpAW9.js.map +0 -1
  630. package/dist/chunks/tooltip.component-L2RWV-Gf.js +0 -70
  631. package/dist/chunks/tooltip.component-L2RWV-Gf.js.map +0 -1
  632. package/dist/chunks/typography.records-BPYXVuvi.js +0 -2
  633. package/dist/chunks/typography.records-BPYXVuvi.js.map +0 -1
  634. package/dist/chunks/typography.records-CG4wIBxE.js.map +0 -1
  635. package/dist/chunks/vendor-CRIhG-7s.js +0 -21518
  636. package/dist/chunks/vendor-CRIhG-7s.js.map +0 -1
  637. package/dist/chunks/vendor-DcKGwQlH.js +0 -64
  638. package/dist/chunks/vendor-DcKGwQlH.js.map +0 -1
  639. package/dist/chunks/withFormControl-C8kEF6Sj.js +0 -149
  640. package/dist/chunks/withFormControl-C8kEF6Sj.js.map +0 -1
  641. package/dist/chunks/withFormControl-uSeX61J8.js +0 -2
  642. package/dist/chunks/withFormControl-uSeX61J8.js.map +0 -1
  643. package/dist/chunks/withTruncation-BBPS7Ess.js +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"tagBlock.component-l95szZbR.js","sources":["../../src/components/TagBlock/tagBlock.types.ts","../../src/components/TagBlock/tagBlock.component.tsx"],"sourcesContent":["export enum TagDisabledState {\n Inactive = \"Inactive\",\n Deleted = \"Deleted\",\n}\n\nexport interface TagBlockTag {\n label: string;\n value: string;\n groupLabel?: string;\n}\n","import React, { useCallback } from \"react\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport { Flex } from \"@chakra-ui/react/flex\";\nimport { HStack } from \"@chakra-ui/react/stack\";\nimport { Button } from \"components/Button/button.component\";\nimport { Heading } from \"components/Heading/heading.component\";\nimport { Menu, MenuProps } from \"components/Menu/menu.component\";\nimport { Spinner } from \"components/Spinner/spinner.component\";\nimport { Tag } from \"components/Tag/tag.component\";\nimport { Text } from \"components/Text/text.component\";\nimport { TagBlockTag, TagDisabledState } from \"./tagBlock.types\";\nimport { MenuButtonProps } from \"components/Menu/components/MenuButton/menuButton.components\";\n\ninterface BaseTagBlockProps {\n displayTagsInGroups?: boolean;\n errorText?: string;\n hasError?: boolean;\n loading?: boolean;\n menuProps?: MenuProps;\n onClearAll?: () => void;\n onRemoveTag?: (tag: string, selectedTags: TagBlockTag[]) => void;\n tags: TagBlockTag[];\n title?: string;\n}\n\ninterface DefaultTagBlockProps extends BaseTagBlockProps {\n canBeDeleted?: false;\n onDelete?: never;\n}\n\ninterface DeletableTagBlockProps extends BaseTagBlockProps {\n canBeDeleted: true;\n onDelete: () => void;\n}\n\nexport type TagBlockProps = DefaultTagBlockProps | DeletableTagBlockProps;\n\nconst defaultMenuButtonProps: MenuButtonProps = {\n size: \"sm\",\n variant: \"secondarySubtle\",\n iconName: \"plus\",\n text: \"Add\",\n hideCaret: true,\n};\n\nexport const TagBlock = ({\n title,\n menuProps,\n tags,\n canBeDeleted = false,\n onClearAll,\n onRemoveTag,\n onDelete,\n hasError = false,\n errorText = \"This field contains an error\",\n displayTagsInGroups,\n loading = false,\n}: TagBlockProps): React.JSX.Element => {\n const handleRemoveTag = useCallback(\n (value: string): void => {\n if (onRemoveTag) {\n onRemoveTag(value, tags);\n }\n },\n [onRemoveTag, tags],\n );\n\n const tagsByGroup = React.useMemo(() => {\n if (!displayTagsInGroups) {\n return [];\n }\n const grouped = {} as Record<string, TagBlockTag[]>;\n for (const tag of tags) {\n const group = tag.groupLabel || \"-\";\n if (!grouped[group]) {\n grouped[group] = [];\n }\n grouped[group].push(tag);\n }\n return Object.entries(grouped).map(([groupLabel, tags]) => ({\n groupLabel,\n tags,\n }));\n }, [tags, displayTagsInGroups]);\n\n const renderTags = useCallback(\n (tags: TagBlockTag[]) => {\n return tags.map((tag) => {\n const isDisabled =\n tag.label.includes(TagDisabledState.Inactive) ||\n tag.label.includes(TagDisabledState.Deleted);\n\n return (\n <Tag\n className=\"TagBlock__Tag\"\n data-testid=\"kibble-tag-block-tag\"\n mr={1}\n mb={1}\n key={tag.value}\n label={tag.label}\n onClose={(): void => handleRemoveTag(tag.value)}\n closeButtonDisplay=\"always\"\n fontWeight=\"normal\"\n color={isDisabled ? \"text.placeholder\" : \"text\"}\n size=\"md\"\n />\n );\n });\n },\n [handleRemoveTag],\n );\n\n return (\n <Box\n className=\"TagBlock\"\n data-testid=\"kibble-tag-block\"\n position=\"relative\"\n mb={3}\n py={2}\n pl={4}\n pr={2}\n bg=\"background.subtle\"\n borderRadius=\"lg\"\n boxShadow={hasError ? `0 0 0 2px var(--chakra-colors-border-danger)` : \"\"}\n border=\"1px\"\n borderColor=\"border\"\n overflow={loading ? \"hidden\" : undefined}\n >\n <Flex\n className=\"TagBlock__ButtonContainer\"\n data-testid=\"kibble-tag-block-button-container\"\n justifyContent=\"space-between\"\n >\n <HStack gap={1} minH={10}>\n {title && (\n <Text className=\"TagBlock__Title\" mr={2} fontWeight=\"bold\">\n {title}\n </Text>\n )}\n <Menu\n data-testid=\"kibble-tag-block-menu\"\n {...menuProps}\n buttonProps={menuProps?.buttonProps || defaultMenuButtonProps}\n />\n <Button\n className=\"TagBlock__Button--ClearAll\"\n data-testid=\"kibble-tag-block-clear-all-button\"\n size=\"sm\"\n iconName=\"arrowCircle\"\n variant=\"ghostNeutral\"\n onClick={onClearAll}\n disabled={tags.length <= 0}\n >\n Clear All\n </Button>\n </HStack>\n {canBeDeleted && (\n <Box>\n <Button\n className=\"TagBlock__Button--Delete\"\n data-testid=\"kibble-tag-block-delete-button\"\n iconName=\"trashcan\"\n variant=\"ghostNeutral\"\n onClick={onDelete}\n justifySelf=\"flex-end\"\n />\n </Box>\n )}\n </Flex>\n {Boolean(tags.length) && (\n <Flex\n className=\"TagBlock__TagContainer\"\n data-testid=\"kibble-tag-block-tag-container\"\n mt={2}\n pb={1}\n alignContent=\"space-between\"\n flexWrap=\"wrap\"\n justifyContent=\"flex-start\"\n alignItems=\"flex-start\"\n >\n {displayTagsInGroups && tagsByGroup.length ? (\n <Flex direction=\"column\">\n {tagsByGroup.map(({ groupLabel, tags }) => (\n <Box key={groupLabel} mb={2}>\n <Box\n className=\"TagBlock__GroupTitle\"\n data-testid=\"kibble-tag-block-group-title\"\n >\n <Heading size=\"xs\" pb={2}>\n {groupLabel}\n </Heading>\n </Box>\n <Flex\n alignContent=\"space-between\"\n flexWrap=\"wrap\"\n justifyContent=\"flex-start\"\n alignItems=\"flex-start\"\n >\n {renderTags(tags)}\n </Flex>\n </Box>\n ))}\n </Flex>\n ) : (\n renderTags(tags)\n )}\n </Flex>\n )}\n {loading && <Spinner fullScreen />}\n {hasError && (\n <Text\n className=\"TagBlock__Error\"\n data-testid=\"kibble-tag-block-error\"\n mt={2}\n size=\"xs\"\n as=\"p\"\n variant=\"danger\"\n >\n {errorText}\n </Text>\n )}\n </Box>\n );\n};\n"],"names":["TagDisabledState","defaultMenuButtonProps","TagBlock","title","menuProps","tags","canBeDeleted","onClearAll","onRemoveTag","onDelete","hasError","errorText","displayTagsInGroups","loading","handleRemoveTag","useCallback","value","tagsByGroup","React","grouped","tag","group","groupLabel","renderTags","isDisabled","jsx","Tag","jsxs","Box","Flex","HStack","Text","Menu","Button","Heading","Spinner"],"mappings":"6WAAY,IAAAA,GAAAA,IACVA,EAAA,SAAW,WACXA,EAAA,QAAU,UAFAA,IAAAA,GAAA,CAAA,CAAA,ECqCZ,MAAMC,EAA0C,CAC9C,KAAM,KACN,QAAS,kBACT,SAAU,OACV,KAAM,MACN,UAAW,EACb,EAEaC,EAAW,CAAC,CACvB,MAAAC,EACA,UAAAC,EACA,KAAAC,EACA,aAAAC,EAAe,GACf,WAAAC,EACA,YAAAC,EACA,SAAAC,EACA,SAAAC,EAAW,GACX,UAAAC,EAAY,+BACZ,oBAAAC,EACA,QAAAC,EAAU,EACZ,IAAwC,CACtC,MAAMC,EAAkBC,EAAA,YACrBC,GAAwB,CACnBR,GACFA,EAAYQ,EAAOX,CAAI,CAE3B,EACA,CAACG,EAAaH,CAAI,CACpB,EAEMY,EAAcC,EAAM,QAAQ,IAAM,CACtC,GAAI,CAACN,EACH,MAAO,CAAC,EAEV,MAAMO,EAAU,CAAC,EACjB,UAAWC,KAAOf,EAAM,CAChB,MAAAgB,EAAQD,EAAI,YAAc,IAC3BD,EAAQE,CAAK,IACRF,EAAAE,CAAK,EAAI,CAAC,GAEZF,EAAAE,CAAK,EAAE,KAAKD,CAAG,CAAA,CAElB,OAAA,OAAO,QAAQD,CAAO,EAAE,IAAI,CAAC,CAACG,EAAYjB,CAAI,KAAO,CAC1D,WAAAiB,EACA,KAAAjB,CAAA,EACA,CAAA,EACD,CAACA,EAAMO,CAAmB,CAAC,EAExBW,EAAaR,EAAA,YAChBV,GACQA,EAAK,IAAKe,GAAQ,CACjB,MAAAI,EACJJ,EAAI,MAAM,SAASpB,EAAiB,QAAQ,GAC5CoB,EAAI,MAAM,SAASpB,EAAiB,OAAO,EAG3C,OAAAyB,EAAA,kBAAA,IAACC,EAAA,IAAA,CACC,UAAU,gBACV,cAAY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AU,yBACV,cAAY,iCACZ,GAAI,EACJ,GAAI,EACJ,aAAa,gBACb,SAAS,OACT,eAAe,aACf,WAAW,aAEV,YAAuBZ,EAAY,+BACjCY,EAAK,KAAA,CAAA,UAAU,SACb,SAAYZ,EAAA,IAAI,CAAC,CAAE,WAAAK,EAAY,KAAAjB,KAC7BsB,yBAAAC,EAAAA,IAAA,CAAqB,GAAI,EACxB,SAAA,CAAAH,EAAA,kBAAA,IAACG,EAAA,IAAA,CACC,UAAU,uBACV,cAAY,+BAEZ,iCAACM,EAAQ,eAAA,CAAA,KAAK,KAAK,GAAI,EACpB,SACHZ,CAAA,CAAA,CAAA,CACF,EACAG,EAAA,kBAAA,IAACI,EAAA,KAAA,CACC,aAAa,gBACb,SAAS,OACT,eAAe,aACf,WAAW,aAEV,WAAWxB,CAAI,CAAA,CAAA,CAClB,CAAA,EAhBQiB,CAiBV,CACD,EACH,EAEAC,EAAWlB,CAAI,CAAA,CAEnB,EAEDQ,GAAWY,EAAAA,kBAAAA,IAACU,EAAAA,QAAQ,CAAA,WAAU,EAAC,CAAA,EAC/BzB,GACCe,EAAA,kBAAA,IAACM,EAAA,YAAA,CACC,UAAU,kBACV,cAAY,yBACZ,GAAI,EACJ,KAAK,KACL,GAAG,IACH,QAAQ,SAEP,SAAApB,CAAA,CAAA,CACH,CAAA,CAEJ,CAEJ"}
1
+ {"version":3,"file":"tagBlock.component-Dj3iPVJy.js","sources":["../../src/components/TagBlock/tagBlock.types.ts","../../src/components/TagBlock/tagBlock.component.tsx"],"sourcesContent":["export enum TagDisabledState {\n Inactive = \"Inactive\",\n Deleted = \"Deleted\",\n}\n\nexport interface TagBlockTag {\n label: string;\n value: string;\n groupLabel?: string;\n}\n","import React, { useCallback } from \"react\";\nimport { Box } from \"@chakra-ui/react/box\";\nimport { Flex } from \"@chakra-ui/react/flex\";\nimport { HStack } from \"@chakra-ui/react/stack\";\nimport { Button } from \"components/Button/button.component\";\nimport { Heading } from \"components/Heading/heading.component\";\nimport { Menu, MenuProps } from \"components/Menu/menu.component\";\nimport { Spinner } from \"components/Spinner/spinner.component\";\nimport { Tag } from \"components/Tag/tag.component\";\nimport { Text } from \"components/Text/text.component\";\nimport { TagBlockTag, TagDisabledState } from \"./tagBlock.types\";\nimport { MenuButtonProps } from \"components/Menu/components/MenuButton/menuButton.components\";\n\ninterface BaseTagBlockProps {\n displayTagsInGroups?: boolean;\n errorText?: string;\n hasError?: boolean;\n loading?: boolean;\n menuProps?: MenuProps;\n onClearAll?: () => void;\n onRemoveTag?: (tag: string, selectedTags: TagBlockTag[]) => void;\n tags: TagBlockTag[];\n title?: string;\n}\n\ninterface DefaultTagBlockProps extends BaseTagBlockProps {\n canBeDeleted?: false;\n onDelete?: never;\n}\n\ninterface DeletableTagBlockProps extends BaseTagBlockProps {\n canBeDeleted: true;\n onDelete: () => void;\n}\n\nexport type TagBlockProps = DefaultTagBlockProps | DeletableTagBlockProps;\n\nconst defaultMenuButtonProps: MenuButtonProps = {\n size: \"sm\",\n variant: \"secondarySubtle\",\n iconName: \"plus\",\n text: \"Add\",\n hideCaret: true,\n};\n\nexport const TagBlock = ({\n title,\n menuProps,\n tags,\n canBeDeleted = false,\n onClearAll,\n onRemoveTag,\n onDelete,\n hasError = false,\n errorText = \"This field contains an error\",\n displayTagsInGroups,\n loading = false,\n}: TagBlockProps): React.JSX.Element => {\n const handleRemoveTag = useCallback(\n (value: string): void => {\n if (onRemoveTag) {\n onRemoveTag(value, tags);\n }\n },\n [onRemoveTag, tags],\n );\n\n const tagsByGroup = React.useMemo(() => {\n if (!displayTagsInGroups) {\n return [];\n }\n const grouped = {} as Record<string, TagBlockTag[]>;\n for (const tag of tags) {\n const group = tag.groupLabel || \"-\";\n if (!grouped[group]) {\n grouped[group] = [];\n }\n grouped[group].push(tag);\n }\n return Object.entries(grouped).map(([groupLabel, tags]) => ({\n groupLabel,\n tags,\n }));\n }, [tags, displayTagsInGroups]);\n\n const renderTags = useCallback(\n (tags: TagBlockTag[]) => {\n return tags.map((tag) => {\n const isDisabled =\n tag.label.includes(TagDisabledState.Inactive) ||\n tag.label.includes(TagDisabledState.Deleted);\n\n return (\n <Tag\n className=\"TagBlock__Tag\"\n data-testid=\"kibble-tag-block-tag\"\n mr={1}\n mb={1}\n key={tag.value}\n label={tag.label}\n onClose={(): void => handleRemoveTag(tag.value)}\n closeButtonDisplay=\"always\"\n fontWeight=\"normal\"\n color={isDisabled ? \"text.placeholder\" : \"text\"}\n size=\"md\"\n />\n );\n });\n },\n [handleRemoveTag],\n );\n\n return (\n <Box\n className=\"TagBlock\"\n data-testid=\"kibble-tag-block\"\n position=\"relative\"\n mb={3}\n py={2}\n pl={4}\n pr={2}\n bg=\"background.subtle\"\n borderRadius=\"lg\"\n boxShadow={hasError ? `0 0 0 2px var(--chakra-colors-border-danger)` : \"\"}\n border=\"1px\"\n borderColor=\"border\"\n overflow={loading ? \"hidden\" : undefined}\n >\n <Flex\n className=\"TagBlock__ButtonContainer\"\n data-testid=\"kibble-tag-block-button-container\"\n justifyContent=\"space-between\"\n >\n <HStack gap={1} minH={10}>\n {title && (\n <Text className=\"TagBlock__Title\" mr={2} fontWeight=\"bold\">\n {title}\n </Text>\n )}\n <Menu\n data-testid=\"kibble-tag-block-menu\"\n {...menuProps}\n buttonProps={menuProps?.buttonProps || defaultMenuButtonProps}\n />\n <Button\n className=\"TagBlock__Button--ClearAll\"\n data-testid=\"kibble-tag-block-clear-all-button\"\n size=\"sm\"\n iconName=\"arrowCircle\"\n variant=\"ghostNeutral\"\n onClick={onClearAll}\n disabled={tags.length <= 0}\n >\n Clear All\n </Button>\n </HStack>\n {canBeDeleted && (\n <Box>\n <Button\n className=\"TagBlock__Button--Delete\"\n data-testid=\"kibble-tag-block-delete-button\"\n iconName=\"trashcan\"\n variant=\"ghostNeutral\"\n onClick={onDelete}\n justifySelf=\"flex-end\"\n />\n </Box>\n )}\n </Flex>\n {Boolean(tags.length) && (\n <Flex\n className=\"TagBlock__TagContainer\"\n data-testid=\"kibble-tag-block-tag-container\"\n mt={2}\n pb={1}\n alignContent=\"space-between\"\n flexWrap=\"wrap\"\n justifyContent=\"flex-start\"\n alignItems=\"flex-start\"\n >\n {displayTagsInGroups && tagsByGroup.length ? (\n <Flex direction=\"column\">\n {tagsByGroup.map(({ groupLabel, tags }) => (\n <Box key={groupLabel} mb={2}>\n <Box\n className=\"TagBlock__GroupTitle\"\n data-testid=\"kibble-tag-block-group-title\"\n >\n <Heading size=\"xs\" pb={2}>\n {groupLabel}\n </Heading>\n </Box>\n <Flex\n alignContent=\"space-between\"\n flexWrap=\"wrap\"\n justifyContent=\"flex-start\"\n alignItems=\"flex-start\"\n >\n {renderTags(tags)}\n </Flex>\n </Box>\n ))}\n </Flex>\n ) : (\n renderTags(tags)\n )}\n </Flex>\n )}\n {loading && <Spinner fullScreen />}\n {hasError && (\n <Text\n className=\"TagBlock__Error\"\n data-testid=\"kibble-tag-block-error\"\n mt={2}\n size=\"xs\"\n as=\"p\"\n variant=\"danger\"\n >\n {errorText}\n </Text>\n )}\n </Box>\n );\n};\n"],"names":["TagDisabledState","defaultMenuButtonProps","TagBlock","title","menuProps","tags","canBeDeleted","onClearAll","onRemoveTag","onDelete","hasError","errorText","displayTagsInGroups","loading","handleRemoveTag","useCallback","value","tagsByGroup","React","grouped","tag","group","groupLabel","renderTags","isDisabled","jsx","Tag","jsxs","Box","Flex","HStack","Text","Menu","Button","Heading","Spinner"],"mappings":"kbAAY,IAAAA,GAAAA,IACVA,EAAA,SAAW,WACXA,EAAA,QAAU,UAFAA,IAAAA,GAAA,CAAA,CAAA,ECqCZ,MAAMC,EAA0C,CAC9C,KAAM,KACN,QAAS,kBACT,SAAU,OACV,KAAM,MACN,UAAW,EACb,EAEaC,EAAW,CAAC,CACvB,MAAAC,EACA,UAAAC,EACA,KAAAC,EACA,aAAAC,EAAe,GACf,WAAAC,EACA,YAAAC,EACA,SAAAC,EACA,SAAAC,EAAW,GACX,UAAAC,EAAY,+BACZ,oBAAAC,EACA,QAAAC,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Ae,aACf,WAAW,aAEV,WAAWxB,CAAI,CAAA,CAAA,CAClB,CAAA,EAhBQiB,CAiBV,CACD,EACH,EAEAC,EAAWlB,CAAI,CAAA,CAEnB,EAEDQ,GAAWY,EAAAA,kBAAAA,IAACU,EAAAA,QAAQ,CAAA,WAAU,EAAC,CAAA,EAC/BzB,GACCe,EAAA,kBAAA,IAACM,EAAA,YAAA,CACC,UAAU,kBACV,cAAY,yBACZ,GAAI,EACJ,KAAK,KACL,GAAG,IACH,QAAQ,SAEP,SAAApB,CAAA,CAAA,CACH,CAAA,CAEJ,CAEJ"}
@@ -0,0 +1,2 @@
1
+ "use strict";const s=require("./jsx-runtime-CITbqOLs.js"),i=require("./withTruncation-CzqmBekU.js"),r=require("./create-recipe-context-yj-_0pxV.js"),{withContext:c}=r.createRecipeContext({key:"text"}),x=c("p"),t=({children:e,...n})=>s.jsxRuntimeExports.jsx(x,{className:"Text","data-testid":"kibble-text",...n,children:e});t.displayName="Text";const o=i.withTruncation(t);exports.WrappedText=o;
2
+ //# sourceMappingURL=text.component-uDfPjmx6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.component-uDfPjmx6.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/typography/text.js","../../src/components/Text/text.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"text\"\n});\nconst Text = withContext(\"p\");\nconst TextPropsProvider = PropsProvider;\n\nexport { Text, TextPropsProvider };\n","import React from \"react\";\nimport {\n Text as CText,\n TextProps as CTextProps,\n} from \"@chakra-ui/react/typography\";\nimport { withTruncation, WithTruncationProps } from \"hocs/withTruncation\";\nimport { TextSize } from \"./text.types\";\nimport { TypographyVariant } from \"shared/types/typography\";\n\nexport interface KTextProps extends WithTruncationProps {\n size?: TextSize;\n variant?: TypographyVariant;\n}\n\nexport type TextProps = KTextProps & CTextProps;\n\nconst Text = ({ children, ...rest }: TextProps): React.JSX.Element => {\n return (\n <CText className=\"Text\" data-testid=\"kibble-text\" {...rest}>\n {children}\n </CText>\n );\n};\n\nText.displayName = \"Text\";\n\nconst WrappedText = withTruncation(Text);\n\nexport { WrappedText as Text };\n"],"names":["withContext","createRecipeContext","Text","children","rest","jsx","CText","WrappedText","withTruncation"],"mappings":"qJAIM,CAAE,YAAAA,CAA2B,EAAIC,sBAAoB,CACzD,IAAK,MACP,CAAC,EACKC,EAAOF,EAAY,GAAG,ECStBE,EAAO,CAAC,CAAE,SAAAC,EAAU,GAAGC,KAEzBC,EAAA,kBAAA,IAACC,GAAM,UAAU,OAAO,cAAY,cAAe,GAAGF,EACnD,SAAAD,EACH,EAIJD,EAAK,YAAc,OAEb,MAAAK,EAAcC,iBAAeN,CAAI","x_google_ignoreList":[0]}
@@ -0,0 +1,12 @@
1
+ import { j as s } from "./jsx-runtime-C5mzlN2N.js";
2
+ import { w as a } from "./withTruncation-iFpoL9YV.js";
3
+ import { c as r } from "./create-recipe-context-ei7-Fhjc.js";
4
+ const { withContext: x } = r({
5
+ key: "text"
6
+ }), i = x("p"), t = ({ children: e, ...o }) => /* @__PURE__ */ s.jsx(i, { className: "Text", "data-testid": "kibble-text", ...o, children: e });
7
+ t.displayName = "Text";
8
+ const m = a(t);
9
+ export {
10
+ m as W
11
+ };
12
+ //# sourceMappingURL=text.component-ymbS_dRE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.component-ymbS_dRE.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/typography/text.js","../../src/components/Text/text.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"text\"\n});\nconst Text = withContext(\"p\");\nconst TextPropsProvider = PropsProvider;\n\nexport { Text, TextPropsProvider };\n","import React from \"react\";\nimport {\n Text as CText,\n TextProps as CTextProps,\n} from \"@chakra-ui/react/typography\";\nimport { withTruncation, WithTruncationProps } from \"hocs/withTruncation\";\nimport { TextSize } from \"./text.types\";\nimport { TypographyVariant } from \"shared/types/typography\";\n\nexport interface KTextProps extends WithTruncationProps {\n size?: TextSize;\n variant?: TypographyVariant;\n}\n\nexport type TextProps = KTextProps & CTextProps;\n\nconst Text = ({ children, ...rest }: TextProps): React.JSX.Element => {\n return (\n <CText className=\"Text\" data-testid=\"kibble-text\" {...rest}>\n {children}\n </CText>\n );\n};\n\nText.displayName = \"Text\";\n\nconst WrappedText = withTruncation(Text);\n\nexport { WrappedText as Text };\n"],"names":["withContext","createRecipeContext","Text","children","rest","jsx","CText","WrappedText","withTruncation"],"mappings":";;;AAIA,MAAM,EAAE,aAAAA,EAA2B,IAAIC,EAAoB;AAAA,EACzD,KAAK;AACP,CAAC,GACKC,IAAOF,EAAY,GAAG,GCStBE,IAAO,CAAC,EAAE,UAAAC,GAAU,GAAGC,QAEzBC,gBAAAA,EAAA,IAACC,KAAM,WAAU,QAAO,eAAY,eAAe,GAAGF,GACnD,UAAAD,GACH;AAIJD,EAAK,cAAc;AAEb,MAAAK,IAAcC,EAAeN,CAAI;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";const t=require("./jsx-runtime-CITbqOLs.js"),c=require("react"),P=require("./withFormControl-CUnCiP8H.js"),b=require("./button.component-DrvTYE-F.js"),_=require("./characterCounter.component-OMu4axLo.js"),T=require("./box-DiiiZkF4.js"),k=require("./empty-B5_AO6Pg.js"),I=require("./factory-Djhmhla9.js"),w=require("./use-recipe-CkP1U6f2.js"),A=require("./group-gT4uiUTj.js"),v=require("./create-recipe-context-yj-_0pxV.js"),N=require("./use-locale-context-Cc4BhWV1.js"),S=require("./use-field-context-BPsEZCN4.js"),F=require("./index-CZ42b9rT.js"),C=c.forwardRef((s,n)=>{const e=S.useFieldContext(),r=F.mergeProps(e?.getInputProps(),s);return t.jsxRuntimeExports.jsx(N.ark.input,{...r,ref:n})});C.displayName="FieldInput";const{withContext:B}=v.createRecipeContext({key:"input"}),G=B(C),R=c.forwardRef(function({unstyled:n,...e},r){const u=w.useRecipe({key:"inputAddon",recipe:e.recipe}),[i,a]=u.splitVariantProps(e),o=n?k.EMPTY_SLOT_STYLES:u(i);return t.jsxRuntimeExports.jsx(I.chakra.div,{ref:r,...a,css:[o,e.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"}}}}),z=c.forwardRef(function(n,e){const{startElement:r,startElementProps:u,endElement:i,endElementProps:a,startAddon:o,startAddonProps:m,endAddon:d,endAddonProps:x,children:l,startOffset:p="0px",endOffset:h="0px",...f}=n,j=c.Children.only(l),q=!!(o||d);return t.jsxRuntimeExports.jsxs(A.Group,{width:"full",ref:e,attached:q,skip:y=>y.type===E,...f,children:[o&&t.jsxRuntimeExports.jsx(R,{...m,children:o}),r&&t.jsxRuntimeExports.jsx(E,{pointerEvents:"none",...u,children:r}),c.cloneElement(j,{...r&&{ps:`calc(var(--input-height) - ${p})`},...i&&{pe:`calc(var(--input-height) - ${h})`},...l.props}),i&&t.jsxRuntimeExports.jsx(E,{placement:"end",...a,children:i}),d&&t.jsxRuntimeExports.jsx(R,{...x,children:d})]})}),L={sm:"xs",md:"sm",lg:"md"},M=P.withFormControl(({charLimit:s=void 0,clearable:n=!1,disabled:e=!1,inputRef:r,invalid:u,leftAddon:i,leftElement:a,onClear:o,onContrast:m,rightAddon:d,rightElement:x,size:l="md",value:p,...h})=>{const f=()=>{o&&o(p||"")};n&&p&&!e&&(x=t.jsxRuntimeExports.jsx(b.Button,{className:"TextInput__ClearButton","data-testid":"kibble-text-input-clear-button",size:L[l],variant:"ghostNeutral",onClick:f,iconName:"close"}));const j=c.useMemo(()=>p?.toString()?.length||0,[p]);return t.jsxRuntimeExports.jsxs(T.Box,{className:"TextInput__Wrapper",position:"relative",w:"100%",children:[t.jsxRuntimeExports.jsx(z,{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:t.jsxRuntimeExports.jsx(G,{"data-testid":"kibble-text-input",className:"TextInput",ref:r,value:p,size:l,disabled:e,...u&&{"aria-invalid":!0},variant:m?"onContrast":"default",...h})}),!!s&&t.jsxRuntimeExports.jsx(_.CharacterCounter,{withLimit:!0,limit:s,currentCount:j})]})}),g=c.forwardRef((s,n)=>t.jsxRuntimeExports.jsx(M,{inputRef:n,...s}));g.displayName="TextInput";exports.WrappedTextInput=g;
2
+ //# sourceMappingURL=textInput.component-CEF55yJj.js.map
@@ -0,0 +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,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,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,CAAClE,EAAuBC,IACtBK,wBAACqC,GAAU,SAAU1C,EAAM,GAAGD,CAAO,CAAA,CAEzC,EAEAiE,EAAiB,YAAc","x_google_ignoreList":[0,1,2,3,4]}
@@ -0,0 +1,180 @@
1
+ import { j as t } from "./jsx-runtime-C5mzlN2N.js";
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";
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";
12
+ import { f as F } from "./use-locale-context-zakBNK5b.js";
13
+ import { u as z } from "./use-field-context-B8ygn96q.js";
14
+ import { U as M } from "./index-DLvqBeH6.js";
15
+ const E = j((r, n) => {
16
+ const e = z(), o = M(e?.getInputProps(), r);
17
+ return /* @__PURE__ */ t.jsx(F.input, { ...o, ref: n });
18
+ });
19
+ E.displayName = "FieldInput";
20
+ const { withContext: O } = G({
21
+ key: "input"
22
+ }), W = O(E), g = j(
23
+ function({ unstyled: n, ...e }, o) {
24
+ const p = R({ key: "inputAddon", recipe: e.recipe }), [i, d] = p.splitVariantProps(e), s = n ? B : p(i);
25
+ return /* @__PURE__ */ t.jsx(C.div, { ref: o, ...d, css: [s, e.css] });
26
+ }
27
+ ), I = C("div", {
28
+ base: {
29
+ display: "flex",
30
+ alignItems: "center",
31
+ justifyContent: "center",
32
+ position: "absolute",
33
+ zIndex: 2,
34
+ color: "fg.muted",
35
+ height: "full",
36
+ fontSize: "sm",
37
+ px: "3"
38
+ },
39
+ variants: {
40
+ placement: {
41
+ start: {
42
+ insetInlineStart: "0"
43
+ },
44
+ end: {
45
+ insetInlineEnd: "0"
46
+ }
47
+ }
48
+ }
49
+ }), D = j(
50
+ function(n, e) {
51
+ const {
52
+ startElement: o,
53
+ startElementProps: p,
54
+ endElement: i,
55
+ endElementProps: d,
56
+ startAddon: s,
57
+ startAddonProps: u,
58
+ endAddon: l,
59
+ endAddonProps: m,
60
+ children: c,
61
+ startOffset: a = "0px",
62
+ endOffset: f = "0px",
63
+ ...x
64
+ } = n, h = b.only(c), P = !!(s || l);
65
+ return /* @__PURE__ */ t.jsxs(
66
+ S,
67
+ {
68
+ width: "full",
69
+ ref: e,
70
+ attached: P,
71
+ skip: (_) => _.type === I,
72
+ ...x,
73
+ children: [
74
+ s && /* @__PURE__ */ t.jsx(g, { ...u, children: s }),
75
+ o && /* @__PURE__ */ t.jsx(I, { pointerEvents: "none", ...p, children: o }),
76
+ T(h, {
77
+ ...o && {
78
+ ps: `calc(var(--input-height) - ${a})`
79
+ },
80
+ ...i && { pe: `calc(var(--input-height) - ${f})` },
81
+ ...c.props
82
+ }),
83
+ i && /* @__PURE__ */ t.jsx(I, { placement: "end", ...d, children: i }),
84
+ l && /* @__PURE__ */ t.jsx(g, { ...m, children: l })
85
+ ]
86
+ }
87
+ );
88
+ }
89
+ ), L = {
90
+ sm: "xs",
91
+ md: "sm",
92
+ lg: "md"
93
+ }, Y = A(
94
+ ({
95
+ charLimit: r = void 0,
96
+ clearable: n = !1,
97
+ disabled: e = !1,
98
+ inputRef: o,
99
+ invalid: p,
100
+ leftAddon: i,
101
+ leftElement: d,
102
+ onClear: s,
103
+ onContrast: u,
104
+ rightAddon: l,
105
+ rightElement: m,
106
+ size: c = "md",
107
+ value: a,
108
+ ...f
109
+ }) => {
110
+ const x = () => {
111
+ s && s(a || "");
112
+ };
113
+ n && a && !e && (m = /* @__PURE__ */ t.jsx(
114
+ v,
115
+ {
116
+ className: "TextInput__ClearButton",
117
+ "data-testid": "kibble-text-input-clear-button",
118
+ size: L[c],
119
+ variant: "ghostNeutral",
120
+ onClick: x,
121
+ iconName: "close"
122
+ }
123
+ ));
124
+ const h = k(
125
+ () => a?.toString()?.length || 0,
126
+ [a]
127
+ );
128
+ return /* @__PURE__ */ t.jsxs(N, { className: "TextInput__Wrapper", position: "relative", w: "100%", children: [
129
+ /* @__PURE__ */ t.jsx(
130
+ D,
131
+ {
132
+ className: "TextInput__InputGroup",
133
+ "data-testid": "kibble-text-input-group",
134
+ startElement: d,
135
+ startElementProps: {
136
+ color: "inherit",
137
+ _groupDisabled: { opacity: 0.6 }
138
+ },
139
+ endElement: m,
140
+ endElementProps: {
141
+ color: "inherit",
142
+ paddingInline: 1.5,
143
+ _groupDisabled: { opacity: 0.6 }
144
+ },
145
+ startAddon: i,
146
+ endAddon: l,
147
+ children: /* @__PURE__ */ t.jsx(
148
+ W,
149
+ {
150
+ "data-testid": "kibble-text-input",
151
+ className: "TextInput",
152
+ ref: o,
153
+ value: a,
154
+ size: c,
155
+ disabled: e,
156
+ ...p && { "aria-invalid": !0 },
157
+ variant: u ? "onContrast" : "default",
158
+ ...f
159
+ }
160
+ )
161
+ }
162
+ ),
163
+ !!r && /* @__PURE__ */ t.jsx(
164
+ w,
165
+ {
166
+ withLimit: !0,
167
+ limit: r,
168
+ currentCount: h
169
+ }
170
+ )
171
+ ] });
172
+ }
173
+ ), $ = y.forwardRef(
174
+ (r, n) => /* @__PURE__ */ t.jsx(Y, { inputRef: n, ...r })
175
+ );
176
+ $.displayName = "TextInput";
177
+ export {
178
+ $ as W
179
+ };
180
+ //# sourceMappingURL=textInput.component-DfqkWsJX.js.map
@@ -0,0 +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,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C7B,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,97 @@
1
+ import { j as d } from "./jsx-runtime-C5mzlN2N.js";
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";
7
+ import { k as y, _ as F, a2 as C, U as T } from "./index-DLvqBeH6.js";
8
+ import { f as j, h as R } from "./use-locale-context-zakBNK5b.js";
9
+ import { u as O } from "./use-field-context-B8ygn96q.js";
10
+ var E = (e) => {
11
+ if (!e) return;
12
+ const t = y(e), o = F(e), s = C(e), r = () => {
13
+ requestAnimationFrame(() => {
14
+ e.style.height = "auto";
15
+ let i;
16
+ 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`;
17
+ });
18
+ };
19
+ e.addEventListener("input", r), e.form?.addEventListener("reset", r);
20
+ const a = Object.getPrototypeOf(e), n = Object.getOwnPropertyDescriptor(a, "value");
21
+ Object.defineProperty(e, "value", {
22
+ ...n,
23
+ set() {
24
+ n?.set?.apply(this, arguments), r();
25
+ }
26
+ });
27
+ const c = new o.ResizeObserver(() => {
28
+ requestAnimationFrame(() => r());
29
+ });
30
+ c.observe(e);
31
+ const m = new o.MutationObserver(() => r());
32
+ return m.observe(e, { attributes: !0, attributeFilter: ["rows", "placeholder"] }), s.fonts?.addEventListener("loadingdone", r), () => {
33
+ e.removeEventListener("input", r), e.form?.removeEventListener("reset", r), s.fonts?.removeEventListener("loadingdone", r), c.disconnect(), m.disconnect();
34
+ };
35
+ };
36
+ const p = u((e, t) => {
37
+ const { autoresize: o, ...s } = e, r = l(null), a = O(), n = T(
38
+ a?.getTextareaProps(),
39
+ { style: { resize: o ? "none" : void 0 } },
40
+ s
41
+ );
42
+ return x(() => {
43
+ if (o)
44
+ return E(r.current);
45
+ }, [o]), /* @__PURE__ */ d.jsx(j.textarea, { ...n, ref: R(t, r) });
46
+ });
47
+ p.displayName = "FieldTextarea";
48
+ const { withContext: P } = b({
49
+ key: "textarea"
50
+ }), z = P(
51
+ p
52
+ ), H = g(
53
+ ({
54
+ charLimit: e = void 0,
55
+ invalid: t,
56
+ onContrast: o,
57
+ resize: s = "none",
58
+ textareaRef: r,
59
+ value: a,
60
+ ...n
61
+ }) => {
62
+ const c = o ? "onContrast" : "default", m = v(
63
+ () => a?.toString()?.length || 0,
64
+ [a]
65
+ );
66
+ return /* @__PURE__ */ d.jsxs(w, { className: "Textarea__Wrapper", position: "relative", w: "100%", children: [
67
+ /* @__PURE__ */ d.jsx(
68
+ z,
69
+ {
70
+ className: "Textarea",
71
+ "data-testid": "kibble-textarea",
72
+ resize: s,
73
+ variant: c,
74
+ value: a,
75
+ ...t && { "aria-invalid": !0 },
76
+ ...n,
77
+ ref: r
78
+ }
79
+ ),
80
+ !!e && /* @__PURE__ */ d.jsx(
81
+ h,
82
+ {
83
+ withLimit: !0,
84
+ limit: e,
85
+ currentCount: m
86
+ }
87
+ )
88
+ ] });
89
+ }
90
+ ), L = f.forwardRef(
91
+ (e, t) => /* @__PURE__ */ d.jsx(H, { textareaRef: t, ...e })
92
+ );
93
+ L.displayName = "Textarea";
94
+ export {
95
+ L as W
96
+ };
97
+ //# sourceMappingURL=textarea.component-1B3U7E2O.js.map
@@ -0,0 +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,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;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-CITbqOLs.js"),u=require("react"),h=require("./withFormControl-CUnCiP8H.js"),v=require("./characterCounter.component-OMu4axLo.js"),g=require("./flex-CoWH4MWg.js"),w=require("./create-recipe-context-yj-_0pxV.js"),p=require("./index-CZ42b9rT.js"),l=require("./use-locale-context-Cc4BhWV1.js"),b=require("./use-field-context-BPsEZCN4.js");var C=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 C(r.current)},[o]),c.jsxRuntimeExports.jsx(l.ark.textarea,{...a,ref:l.composeRefs(t,r)})});m.displayName="FieldTextarea";const{withContext:F}=w.createRecipeContext({key:"textarea"}),R=F(m),y=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(R,{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=u.forwardRef((e,t)=>c.jsxRuntimeExports.jsx(y,{textareaRef:t,...e}));f.displayName="Textarea";exports.WrappedTextArea=f;
2
+ //# sourceMappingURL=textarea.component-BVGFuIZC.js.map
@@ -0,0 +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":"2XAwCA,IAAIA,EAAsBC,GAAO,CAC/B,GAAI,CAACA,EAAI,OACT,MAAMC,EAAQC,EAAgB,iBAACF,CAAE,EAC3BG,EAAMC,EAAS,UAACJ,CAAE,EAClBK,EAAMC,EAAW,YAACN,CAAE,EACpBO,EAAS,IAAM,CACnB,sBAAsB,IAAM,CAC1BP,EAAG,MAAM,OAAS,OAClB,IAAIQ,EACAP,EAAM,YAAc,cACtBO,EAAYR,EAAG,cAAgB,WAAWC,EAAM,UAAU,EAAI,WAAWA,EAAM,aAAa,GAE5FO,EAAYR,EAAG,aAAe,WAAWC,EAAM,cAAc,EAAI,WAAWA,EAAM,iBAAiB,EAEjGA,EAAM,YAAc,QAAUO,EAAY,WAAWP,EAAM,SAAS,GAClEA,EAAM,YAAc,WACtBD,EAAG,MAAM,UAAY,UAEvBQ,EAAY,WAAWP,EAAM,SAAS,GAC7BA,EAAM,YAAc,WAC7BD,EAAG,MAAM,UAAY,UAEvBA,EAAG,MAAM,OAAS,GAAGQ,CAAS,IACpC,CAAK,CACF,EACDR,EAAG,iBAAiB,QAASO,CAAM,EACnCP,EAAG,MAAM,iBAAiB,QAASO,CAAM,EACzC,MAAME,EAAmB,OAAO,eAAeT,CAAE,EAC3CU,EAAa,OAAO,yBAAyBD,EAAkB,OAAO,EAC5E,OAAO,eAAeT,EAAI,QAAS,CACjC,GAAGU,EACH,KAAM,CACJA,GAAY,KAAK,MAAM,KAAM,SAAS,EACtCH,EAAQ,CACd,CACA,CAAG,EACD,MAAMI,EAAiB,IAAIR,EAAI,eAAe,IAAM,CAClD,sBAAsB,IAA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