ivt 0.5.0 → 0.5.2

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 (245) hide show
  1. package/dist/accordion/index.mjs +15 -15
  2. package/dist/alert/index.mjs +2 -2
  3. package/dist/alert-dialog/index.mjs +17 -17
  4. package/dist/aspect-ratio/index.mjs +1 -1
  5. package/dist/aspect-ratio/index.mjs.map +1 -1
  6. package/dist/avatar/index.mjs +7 -7
  7. package/dist/badge/index.mjs +3 -3
  8. package/dist/base/index.d.ts +19 -2
  9. package/dist/base/index.mjs +46 -74
  10. package/dist/base/index.mjs.map +1 -1
  11. package/dist/breadcrumb/index.mjs +5 -5
  12. package/dist/button/index.mjs +3 -3
  13. package/dist/button-group/index.mjs +3 -3
  14. package/dist/calendar/index.mjs +9 -8
  15. package/dist/calendar/index.mjs.map +1 -1
  16. package/dist/card/index.mjs +4 -55
  17. package/dist/card/index.mjs.map +1 -1
  18. package/dist/carousel/index.mjs +4 -4
  19. package/dist/chart/index.mjs +15975 -15658
  20. package/dist/chart/index.mjs.map +1 -1
  21. package/dist/checkbox/index.mjs +16 -221
  22. package/dist/checkbox/index.mjs.map +1 -1
  23. package/dist/chunks/CalendarRange-cGKHXdiT.mjs +45 -0
  24. package/dist/chunks/CalendarRange-cGKHXdiT.mjs.map +1 -0
  25. package/dist/chunks/ComboboxField-BTKXl9y7.mjs +67 -0
  26. package/dist/chunks/ComboboxField-BTKXl9y7.mjs.map +1 -0
  27. package/dist/chunks/{Container-LlUz2Xf7.mjs → Container-BUT39dlc.mjs} +2 -2
  28. package/dist/chunks/{Container-LlUz2Xf7.mjs.map → Container-BUT39dlc.mjs.map} +1 -1
  29. package/dist/chunks/TooltipIndicator-EfXM1ogO.mjs +44 -0
  30. package/dist/chunks/TooltipIndicator-EfXM1ogO.mjs.map +1 -0
  31. package/dist/chunks/{_commonjsHelpers-CZIfjjiR.mjs → _commonjsHelpers-DCzDIER3.mjs} +1 -1
  32. package/dist/chunks/_commonjsHelpers-DCzDIER3.mjs.map +1 -0
  33. package/dist/chunks/{accordion-BBMhFkK5.mjs → accordion-BXurL6Pv.mjs} +11 -11
  34. package/dist/chunks/{accordion-BBMhFkK5.mjs.map → accordion-BXurL6Pv.mjs.map} +1 -1
  35. package/dist/chunks/{badge-CShT6Er8.mjs → badge-CpWQDnGV.mjs} +2 -2
  36. package/dist/chunks/{badge-CShT6Er8.mjs.map → badge-CpWQDnGV.mjs.map} +1 -1
  37. package/dist/chunks/{bundle-mjs-CXcNQyyo.mjs → bundle-mjs-C9OlPgmH.mjs} +1 -1
  38. package/dist/chunks/{bundle-mjs-CXcNQyyo.mjs.map → bundle-mjs-C9OlPgmH.mjs.map} +1 -1
  39. package/dist/chunks/{button-ay7E6KrE.mjs → button-BrmYbiY8.mjs} +2 -2
  40. package/dist/chunks/{button-ay7E6KrE.mjs.map → button-BrmYbiY8.mjs.map} +1 -1
  41. package/dist/chunks/{calendar-D98dWxWB.mjs → calendar-BQgywKTj.mjs} +8 -2641
  42. package/dist/chunks/calendar-BQgywKTj.mjs.map +1 -0
  43. package/dist/chunks/calendar-days-C_RzSweF.mjs +82 -0
  44. package/dist/chunks/calendar-days-C_RzSweF.mjs.map +1 -0
  45. package/dist/chunks/card-DeaeODxs.mjs +55 -0
  46. package/dist/chunks/card-DeaeODxs.mjs.map +1 -0
  47. package/dist/chunks/{check-M4AEcM3j.mjs → check-CP6BCwvU.mjs} +2 -2
  48. package/dist/chunks/{check-M4AEcM3j.mjs.map → check-CP6BCwvU.mjs.map} +1 -1
  49. package/dist/chunks/checkbox-BvnI-3Q6.mjs +219 -0
  50. package/dist/chunks/checkbox-BvnI-3Q6.mjs.map +1 -0
  51. package/dist/chunks/{chevron-down-BgIYlWhk.mjs → chevron-down-cCIwKwmA.mjs} +2 -2
  52. package/dist/chunks/{chevron-down-BgIYlWhk.mjs.map → chevron-down-cCIwKwmA.mjs.map} +1 -1
  53. package/dist/chunks/{chevron-left-wvVA3SWH.mjs → chevron-left-BPWGf-Mt.mjs} +2 -2
  54. package/dist/chunks/{chevron-left-wvVA3SWH.mjs.map → chevron-left-BPWGf-Mt.mjs.map} +1 -1
  55. package/dist/chunks/{chevron-right-aTufSnLl.mjs → chevron-right-Bk4Jys-R.mjs} +2 -2
  56. package/dist/chunks/{chevron-right-aTufSnLl.mjs.map → chevron-right-Bk4Jys-R.mjs.map} +1 -1
  57. package/dist/chunks/{chevrons-up-down-TytmUcIx.mjs → chevrons-up-down-BDmpiJmb.mjs} +2 -2
  58. package/dist/chunks/{chevrons-up-down-TytmUcIx.mjs.map → chevrons-up-down-BDmpiJmb.mjs.map} +1 -1
  59. package/dist/chunks/{command-OnnopJEP.mjs → command-CTTPLJSd.mjs} +54 -64
  60. package/dist/chunks/command-CTTPLJSd.mjs.map +1 -0
  61. package/dist/chunks/{createLucideIcon-DwD3HsEs.mjs → createLucideIcon-rdK7ReAV.mjs} +1 -1
  62. package/dist/chunks/{createLucideIcon-DwD3HsEs.mjs.map → createLucideIcon-rdK7ReAV.mjs.map} +1 -1
  63. package/dist/chunks/{pt-BR-on-YW6Ay.mjs → date-BF0VPeD6.mjs} +62 -97
  64. package/dist/chunks/date-BF0VPeD6.mjs.map +1 -0
  65. package/dist/chunks/{dialog-D-h9t9_b.mjs → dialog-BZ1Bem1X.mjs} +22 -21
  66. package/dist/chunks/dialog-BZ1Bem1X.mjs.map +1 -0
  67. package/dist/chunks/{ellipsis-x68Orkqp.mjs → ellipsis-CvvEpdNm.mjs} +2 -2
  68. package/dist/chunks/{ellipsis-x68Orkqp.mjs.map → ellipsis-CvvEpdNm.mjs.map} +1 -1
  69. package/dist/chunks/form-CLuajH9A.mjs +2223 -0
  70. package/dist/chunks/form-CLuajH9A.mjs.map +1 -0
  71. package/dist/chunks/format-DvB2IToG.mjs +2636 -0
  72. package/dist/chunks/format-DvB2IToG.mjs.map +1 -0
  73. package/dist/chunks/format-numbers-DtAwKNYo.mjs +55 -0
  74. package/dist/chunks/format-numbers-DtAwKNYo.mjs.map +1 -0
  75. package/dist/chunks/{hover-card-DXAGq71O.mjs → hover-card-Cwtai5wK.mjs} +11 -11
  76. package/dist/chunks/{hover-card-DXAGq71O.mjs.map → hover-card-Cwtai5wK.mjs.map} +1 -1
  77. package/dist/chunks/{index-BLAYpkjT.mjs → index-2wUt7vgM.mjs} +5 -5
  78. package/dist/chunks/{index-BLAYpkjT.mjs.map → index-2wUt7vgM.mjs.map} +1 -1
  79. package/dist/chunks/{index-DRdSNmMB.mjs → index-9Ejb37i6.mjs} +2 -2
  80. package/dist/chunks/{index-DRdSNmMB.mjs.map → index-9Ejb37i6.mjs.map} +1 -1
  81. package/dist/chunks/{index-B7kZbHfd.mjs → index-B0fljwsr.mjs} +1 -1
  82. package/dist/chunks/{index-B7kZbHfd.mjs.map → index-B0fljwsr.mjs.map} +1 -1
  83. package/dist/chunks/{index-BW3aCz7h.mjs → index-B1HovDby.mjs} +1 -1
  84. package/dist/chunks/{index-BW3aCz7h.mjs.map → index-B1HovDby.mjs.map} +1 -1
  85. package/dist/chunks/{index-BtRo1b5t.mjs → index-BpfkkunI.mjs} +3 -3
  86. package/dist/chunks/{index-BtRo1b5t.mjs.map → index-BpfkkunI.mjs.map} +1 -1
  87. package/dist/chunks/{index-DfjpL9Sk.mjs → index-C5dQnmlR.mjs} +9 -9
  88. package/dist/chunks/{index-DfjpL9Sk.mjs.map → index-C5dQnmlR.mjs.map} +1 -1
  89. package/dist/chunks/{index-C5cl9B-D.mjs → index-C7WDAsMc.mjs} +2 -2
  90. package/dist/chunks/{index-C5cl9B-D.mjs.map → index-C7WDAsMc.mjs.map} +1 -1
  91. package/dist/chunks/{index-BdYD9SA8.mjs → index-C8YG6ZVI.mjs} +1 -1
  92. package/dist/chunks/{index-BdYD9SA8.mjs.map → index-C8YG6ZVI.mjs.map} +1 -1
  93. package/dist/chunks/{index-BBONAxxm.mjs → index-CJIjOsdz.mjs} +1 -1
  94. package/dist/chunks/{index-BBONAxxm.mjs.map → index-CJIjOsdz.mjs.map} +1 -1
  95. package/dist/chunks/{index-DpqIXFxh.mjs → index-CN-1P6oe.mjs} +9 -9
  96. package/dist/chunks/{index-DpqIXFxh.mjs.map → index-CN-1P6oe.mjs.map} +1 -1
  97. package/dist/chunks/{index-C45e7-3X.mjs → index-CcfhA3fh.mjs} +11 -11
  98. package/dist/chunks/{index-C45e7-3X.mjs.map → index-CcfhA3fh.mjs.map} +1 -1
  99. package/dist/chunks/{index-CMbJ1I29.mjs → index-CdbLHZ-v.mjs} +2 -2
  100. package/dist/chunks/{index-CMbJ1I29.mjs.map → index-CdbLHZ-v.mjs.map} +1 -1
  101. package/dist/chunks/{index-BBC4sR1G.mjs → index-D4Y6_Jit.mjs} +5 -5
  102. package/dist/chunks/{index-BBC4sR1G.mjs.map → index-D4Y6_Jit.mjs.map} +1 -1
  103. package/dist/chunks/{index-Db1acFFW.mjs → index-DEFfOyUE.mjs} +1 -1
  104. package/dist/chunks/{index-Db1acFFW.mjs.map → index-DEFfOyUE.mjs.map} +1 -1
  105. package/dist/chunks/{index-Bs4nZmb7.mjs → index-DFMyqwc8.mjs} +2 -2
  106. package/dist/chunks/{index-Bs4nZmb7.mjs.map → index-DFMyqwc8.mjs.map} +1 -1
  107. package/dist/chunks/{index-D5pght6h.mjs → index-DNPAHxPV.mjs} +1 -1
  108. package/dist/chunks/{index-D5pght6h.mjs.map → index-DNPAHxPV.mjs.map} +1 -1
  109. package/dist/chunks/{index-qOZvnMSQ.mjs → index-DkhtbUNc.mjs} +1 -1
  110. package/dist/chunks/{index-qOZvnMSQ.mjs.map → index-DkhtbUNc.mjs.map} +1 -1
  111. package/dist/chunks/{index-DU7dxusa.mjs → index-Dpe5NTKJ.mjs} +7 -7
  112. package/dist/chunks/{index-DU7dxusa.mjs.map → index-Dpe5NTKJ.mjs.map} +1 -1
  113. package/dist/chunks/{index-CLb4rDzh.mjs → index-DymROPqb.mjs} +1 -1
  114. package/dist/chunks/{index-CLb4rDzh.mjs.map → index-DymROPqb.mjs.map} +1 -1
  115. package/dist/chunks/{index-BxaETqU9.mjs → index-LOIUbp1N.mjs} +3 -3
  116. package/dist/chunks/{index-BxaETqU9.mjs.map → index-LOIUbp1N.mjs.map} +1 -1
  117. package/dist/chunks/{index-C9twRC0t.mjs → index-N54PlKgO.mjs} +1 -1
  118. package/dist/chunks/{index-C9twRC0t.mjs.map → index-N54PlKgO.mjs.map} +1 -1
  119. package/dist/chunks/{index-BsVg0u5v.mjs → index-SHhYuecD.mjs} +1 -1
  120. package/dist/chunks/{index-BsVg0u5v.mjs.map → index-SHhYuecD.mjs.map} +1 -1
  121. package/dist/chunks/{index-CVGBR4nU.mjs → index-eIYpJRu_.mjs} +15 -15
  122. package/dist/chunks/{index-CVGBR4nU.mjs.map → index-eIYpJRu_.mjs.map} +1 -1
  123. package/dist/chunks/{input-CqipwgOY.mjs → input-BRRi8JbN.mjs} +2 -2
  124. package/dist/chunks/{input-CqipwgOY.mjs.map → input-BRRi8JbN.mjs.map} +1 -1
  125. package/dist/chunks/{label-Cx4XtbXv.mjs → label-DyMdyPfF.mjs} +3 -3
  126. package/dist/chunks/{label-Cx4XtbXv.mjs.map → label-DyMdyPfF.mjs.map} +1 -1
  127. package/dist/chunks/{loader-circle-CfhWFS-M.mjs → loader-circle-DlDf3jDF.mjs} +2 -2
  128. package/dist/chunks/{loader-circle-CfhWFS-M.mjs.map → loader-circle-DlDf3jDF.mjs.map} +1 -1
  129. package/dist/chunks/multi-select-BAp66njF.mjs +277 -0
  130. package/dist/chunks/multi-select-BAp66njF.mjs.map +1 -0
  131. package/dist/chunks/{pagination-CzDSUdbY.mjs → pagination-CoQF8H-y.mjs} +6 -6
  132. package/dist/chunks/{pagination-CzDSUdbY.mjs.map → pagination-CoQF8H-y.mjs.map} +1 -1
  133. package/dist/chunks/{popover-BFcKYAot.mjs → popover-Bx3Ak-qS.mjs} +13 -13
  134. package/dist/chunks/{popover-BFcKYAot.mjs.map → popover-Bx3Ak-qS.mjs.map} +1 -1
  135. package/dist/chunks/{progress-Cm71BOo_.mjs → progress-Unv1Ywou.mjs} +4 -4
  136. package/dist/chunks/{progress-Cm71BOo_.mjs.map → progress-Unv1Ywou.mjs.map} +1 -1
  137. package/dist/chunks/{scroll-area-B9cWImdG.mjs → scroll-area-Bu_eg6tq.mjs} +11 -11
  138. package/dist/chunks/{scroll-area-B9cWImdG.mjs.map → scroll-area-Bu_eg6tq.mjs.map} +1 -1
  139. package/dist/chunks/{select-CQBb4aB3.mjs → select-VgTkuC8i.mjs} +5 -5
  140. package/dist/chunks/{select-CQBb4aB3.mjs.map → select-VgTkuC8i.mjs.map} +1 -1
  141. package/dist/chunks/{separator-D6zbGj0R.mjs → separator-ChTsmHyH.mjs} +3 -3
  142. package/dist/chunks/{separator-D6zbGj0R.mjs.map → separator-ChTsmHyH.mjs.map} +1 -1
  143. package/dist/chunks/{sheet-C0AR_o6p.mjs → sheet-CX9dlZuk.mjs} +4 -4
  144. package/dist/chunks/{sheet-C0AR_o6p.mjs.map → sheet-CX9dlZuk.mjs.map} +1 -1
  145. package/dist/chunks/{skeleton-Bd9uEq1R.mjs → skeleton-TvPSLZ-7.mjs} +2 -2
  146. package/dist/chunks/{skeleton-Bd9uEq1R.mjs.map → skeleton-TvPSLZ-7.mjs.map} +1 -1
  147. package/dist/chunks/{sortable-CTcnqQX_.mjs → sortable-DQ0ESvYM.mjs} +3 -3
  148. package/dist/chunks/{sortable-CTcnqQX_.mjs.map → sortable-DQ0ESvYM.mjs.map} +1 -1
  149. package/dist/chunks/{table-C829r3Zv.mjs → table-5dae4DKj.mjs} +2 -2
  150. package/dist/chunks/{table-C829r3Zv.mjs.map → table-5dae4DKj.mjs.map} +1 -1
  151. package/dist/chunks/{textarea-CD6y9GNW.mjs → textarea-C6sc9FNI.mjs} +2 -2
  152. package/dist/chunks/{textarea-CD6y9GNW.mjs.map → textarea-C6sc9FNI.mjs.map} +1 -1
  153. package/dist/chunks/{toggle-C8fZP79W.mjs → toggle-SS3ISGud.mjs} +5 -5
  154. package/dist/chunks/{toggle-C8fZP79W.mjs.map → toggle-SS3ISGud.mjs.map} +1 -1
  155. package/dist/chunks/{tooltip-R49U1IPs.mjs → tooltip-WyVePJR7.mjs} +13 -13
  156. package/dist/chunks/{tooltip-R49U1IPs.mjs.map → tooltip-WyVePJR7.mjs.map} +1 -1
  157. package/dist/chunks/{trash-2-ZC16Df_k.mjs → trash-2-Dp8LY8vw.mjs} +2 -2
  158. package/dist/chunks/{trash-2-ZC16Df_k.mjs.map → trash-2-Dp8LY8vw.mjs.map} +1 -1
  159. package/dist/chunks/triangle-alert-CpLMma6K.mjs +29 -0
  160. package/dist/chunks/triangle-alert-CpLMma6K.mjs.map +1 -0
  161. package/dist/chunks/{tslib.es6-CnQYzBlA.mjs → tslib.es6-BgXxJBc3.mjs} +1 -1
  162. package/dist/chunks/{tslib.es6-CnQYzBlA.mjs.map → tslib.es6-BgXxJBc3.mjs.map} +1 -1
  163. package/dist/chunks/{utils-DwA_HfJw.mjs → utils-DfaTa-5f.mjs} +2 -2
  164. package/dist/chunks/{utils-DwA_HfJw.mjs.map → utils-DfaTa-5f.mjs.map} +1 -1
  165. package/dist/chunks/{x-BZdVnIMx.mjs → x-BtRqeVV7.mjs} +2 -2
  166. package/dist/chunks/{x-BZdVnIMx.mjs.map → x-BtRqeVV7.mjs.map} +1 -1
  167. package/dist/collapsible/index.mjs +9 -9
  168. package/dist/combobox/index.d.ts +8 -1
  169. package/dist/combobox/index.mjs +121 -39
  170. package/dist/combobox/index.mjs.map +1 -1
  171. package/dist/command/index.d.ts +79 -16
  172. package/dist/command/index.mjs +20 -20
  173. package/dist/context-menu/index.mjs +23 -23
  174. package/dist/dash/index.d.ts +49 -0
  175. package/dist/dash/index.mjs +105 -0
  176. package/dist/dash/index.mjs.map +1 -0
  177. package/dist/data-table/index.d.ts +9 -4
  178. package/dist/data-table/index.mjs +71 -60
  179. package/dist/data-table/index.mjs.map +1 -1
  180. package/dist/date-picker/index.mjs +27 -25
  181. package/dist/date-picker/index.mjs.map +1 -1
  182. package/dist/dialog/index.d.ts +13 -11
  183. package/dist/dialog/index.mjs +19 -19
  184. package/dist/drawer/index.mjs +16 -16
  185. package/dist/dropdown-menu/index.mjs +23 -23
  186. package/dist/dropzone/index.d.ts +6 -0
  187. package/dist/dropzone/index.mjs +40 -28
  188. package/dist/dropzone/index.mjs.map +1 -1
  189. package/dist/empty/index.mjs +2 -2
  190. package/dist/field/index.mjs +5 -5
  191. package/dist/form/index.mjs +7 -653
  192. package/dist/form/index.mjs.map +1 -1
  193. package/dist/form-fields/index.d.ts +13 -0
  194. package/dist/form-fields/index.mjs +34 -0
  195. package/dist/form-fields/index.mjs.map +1 -0
  196. package/dist/hover-card/index.mjs +15 -15
  197. package/dist/icon/index.mjs +1 -1
  198. package/dist/index.css +1 -1
  199. package/dist/input/index.mjs +3 -3
  200. package/dist/input-group/index.mjs +5 -5
  201. package/dist/input-otp/index.mjs +3 -3
  202. package/dist/item/index.mjs +4 -4
  203. package/dist/ivt.css +1 -1
  204. package/dist/kbd/index.mjs +2 -2
  205. package/dist/label/index.mjs +4 -4
  206. package/dist/layout/index.mjs +6 -30
  207. package/dist/layout/index.mjs.map +1 -1
  208. package/dist/menubar/index.mjs +23 -23
  209. package/dist/multi-select/index.mjs +33 -295
  210. package/dist/multi-select/index.mjs.map +1 -1
  211. package/dist/navigation-menu/index.mjs +17 -17
  212. package/dist/pagination/index.mjs +8 -8
  213. package/dist/popover/index.mjs +18 -18
  214. package/dist/progress/index.mjs +5 -5
  215. package/dist/radio-group/index.mjs +17 -17
  216. package/dist/resizable/index.mjs +3 -3
  217. package/dist/scroll-area/index.mjs +12 -12
  218. package/dist/select/index.mjs +6 -6
  219. package/dist/separator/index.mjs +4 -4
  220. package/dist/shared/index.mjs +5 -5
  221. package/dist/sheet/index.mjs +19 -19
  222. package/dist/sidebar/index.mjs +27 -27
  223. package/dist/skeleton/index.mjs +3 -3
  224. package/dist/skeleton-component/index.mjs +4 -4
  225. package/dist/slider/index.mjs +12 -12
  226. package/dist/slider/index.mjs.map +1 -1
  227. package/dist/sortable/index.mjs +4 -4
  228. package/dist/spinner/index.mjs +4 -4
  229. package/dist/switch/index.mjs +10 -10
  230. package/dist/table/index.mjs +3 -3
  231. package/dist/table-filter/index.d.ts +49 -0
  232. package/dist/table-filter/index.mjs +2068 -0
  233. package/dist/table-filter/index.mjs.map +1 -0
  234. package/dist/tabs/index.mjs +13 -13
  235. package/dist/textarea/index.mjs +3 -3
  236. package/dist/toast/index.mjs +15 -15
  237. package/dist/toggle/index.mjs +7 -7
  238. package/dist/toggle-group/index.mjs +13 -13
  239. package/dist/tooltip/index.mjs +17 -17
  240. package/package.json +15 -2
  241. package/dist/chunks/_commonjsHelpers-CZIfjjiR.mjs.map +0 -1
  242. package/dist/chunks/calendar-D98dWxWB.mjs.map +0 -1
  243. package/dist/chunks/command-OnnopJEP.mjs.map +0 -1
  244. package/dist/chunks/dialog-D-h9t9_b.mjs.map +0 -1
  245. package/dist/chunks/pt-BR-on-YW6Ay.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { cva } from 'class-variance-authority';
2
2
  import React__default from 'react';
3
- import { c as cn } from '../chunks/utils-DwA_HfJw.mjs';
4
- import '../chunks/bundle-mjs-CXcNQyyo.mjs';
3
+ import { c as cn } from '../chunks/utils-DfaTa-5f.mjs';
4
+ import '../chunks/bundle-mjs-C9OlPgmH.mjs';
5
5
 
6
6
  function Empty({ className, ...props }) {
7
7
  return /*#__PURE__*/ React__default.createElement("div", {
@@ -1,10 +1,10 @@
1
1
  import { cva } from 'class-variance-authority';
2
2
  import React__default from 'react';
3
- import { c as cn } from '../chunks/utils-DwA_HfJw.mjs';
4
- import { L as Label } from '../chunks/label-Cx4XtbXv.mjs';
5
- import { S as Separator } from '../chunks/separator-D6zbGj0R.mjs';
6
- import '../chunks/bundle-mjs-CXcNQyyo.mjs';
7
- import '../chunks/index-B7kZbHfd.mjs';
3
+ import { c as cn } from '../chunks/utils-DfaTa-5f.mjs';
4
+ import { L as Label } from '../chunks/label-DyMdyPfF.mjs';
5
+ import { S as Separator } from '../chunks/separator-ChTsmHyH.mjs';
6
+ import '../chunks/bundle-mjs-C9OlPgmH.mjs';
7
+ import '../chunks/index-B0fljwsr.mjs';
8
8
  import 'react-dom';
9
9
  import '@radix-ui/react-slot';
10
10
  import 'react/jsx-runtime';
@@ -1,656 +1,10 @@
1
- import { Slot } from '@radix-ui/react-slot';
2
- import * as React from 'react';
3
- import React__default from 'react';
4
- import { c as cn } from '../chunks/utils-DwA_HfJw.mjs';
5
- import { L as Label } from '../chunks/label-Cx4XtbXv.mjs';
6
- import '../chunks/bundle-mjs-CXcNQyyo.mjs';
7
- import '../chunks/index-B7kZbHfd.mjs';
1
+ export { F as Form, c as FormControl, d as FormDescription, f as FormField, a as FormItem, b as FormLabel, e as FormMessage, u as useFormField } from '../chunks/form-CLuajH9A.mjs';
2
+ import '@radix-ui/react-slot';
3
+ import 'react';
4
+ import '../chunks/utils-DfaTa-5f.mjs';
5
+ import '../chunks/bundle-mjs-C9OlPgmH.mjs';
6
+ import '../chunks/label-DyMdyPfF.mjs';
7
+ import '../chunks/index-B0fljwsr.mjs';
8
8
  import 'react-dom';
9
9
  import 'react/jsx-runtime';
10
-
11
- var isCheckBoxInput = (element)=>element.type === 'checkbox';
12
- var isDateObject = (value1)=>value1 instanceof Date;
13
- var isNullOrUndefined = (value1)=>value1 == null;
14
- const isObjectType = (value1)=>typeof value1 === 'object';
15
- var isObject = (value1)=>!isNullOrUndefined(value1) && !Array.isArray(value1) && isObjectType(value1) && !isDateObject(value1);
16
- var getEventValue = (event)=>isObject(event) && event.target ? isCheckBoxInput(event.target) ? event.target.checked : event.target.value : event;
17
- var getNodeParentName = (name)=>name.substring(0, name.search(/\.\d+(\.|$)/)) || name;
18
- var isNameInFieldArray = (names, name)=>names.has(getNodeParentName(name));
19
- var isPlainObject = (tempObject)=>{
20
- const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;
21
- return isObject(prototypeCopy) && prototypeCopy.hasOwnProperty('isPrototypeOf');
22
- };
23
- var isWeb = typeof window !== 'undefined' && typeof window.HTMLElement !== 'undefined' && typeof document !== 'undefined';
24
- function cloneObject(data) {
25
- let copy;
26
- const isArray = Array.isArray(data);
27
- const isFileListInstance = typeof FileList !== 'undefined' ? data instanceof FileList : false;
28
- if (data instanceof Date) {
29
- copy = new Date(data);
30
- } else if (!(isWeb && (data instanceof Blob || isFileListInstance)) && (isArray || isObject(data))) {
31
- copy = isArray ? [] : Object.create(Object.getPrototypeOf(data));
32
- if (!isArray && !isPlainObject(data)) {
33
- copy = data;
34
- } else {
35
- for(const key in data){
36
- if (data.hasOwnProperty(key)) {
37
- copy[key] = cloneObject(data[key]);
38
- }
39
- }
40
- }
41
- } else {
42
- return data;
43
- }
44
- return copy;
45
- }
46
- var isKey = (value1)=>/^\w*$/.test(value1);
47
- var isUndefined = (val)=>val === undefined;
48
- var compact = (value1)=>Array.isArray(value1) ? value1.filter(Boolean) : [];
49
- var stringToPath = (input)=>compact(input.replace(/["|']|\]/g, '').split(/\.|\[/));
50
- var get = (object, path, defaultValue)=>{
51
- if (!path || !isObject(object)) {
52
- return defaultValue;
53
- }
54
- const result = (isKey(path) ? [
55
- path
56
- ] : stringToPath(path)).reduce((result, key)=>isNullOrUndefined(result) ? result : result[key], object);
57
- return isUndefined(result) || result === object ? isUndefined(object[path]) ? defaultValue : object[path] : result;
58
- };
59
- var isBoolean = (value1)=>typeof value1 === 'boolean';
60
- var set = (object, path, value1)=>{
61
- let index = -1;
62
- const tempPath = isKey(path) ? [
63
- path
64
- ] : stringToPath(path);
65
- const length = tempPath.length;
66
- const lastIndex = length - 1;
67
- while(++index < length){
68
- const key = tempPath[index];
69
- let newValue = value1;
70
- if (index !== lastIndex) {
71
- const objValue = object[key];
72
- newValue = isObject(objValue) || Array.isArray(objValue) ? objValue : !isNaN(+tempPath[index + 1]) ? [] : {};
73
- }
74
- if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
75
- return;
76
- }
77
- object[key] = newValue;
78
- object = object[key];
79
- }
80
- };
81
- const EVENTS = {
82
- BLUR: 'blur',
83
- CHANGE: 'change'
84
- };
85
- const VALIDATION_MODE = {
86
- all: 'all'
87
- };
88
- const HookFormContext = React__default.createContext(null);
89
- HookFormContext.displayName = 'HookFormContext';
90
- /**
91
- * This custom hook allows you to access the form context. useFormContext is intended to be used in deeply nested structures, where it would become inconvenient to pass the context as a prop. To be used with {@link FormProvider}.
92
- *
93
- * @remarks
94
- * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)
95
- *
96
- * @returns return all useForm methods
97
- *
98
- * @example
99
- * ```tsx
100
- * function App() {
101
- * const methods = useForm();
102
- * const onSubmit = data => console.log(data);
103
- *
104
- * return (
105
- * <FormProvider {...methods} >
106
- * <form onSubmit={methods.handleSubmit(onSubmit)}>
107
- * <NestedInput />
108
- * <input type="submit" />
109
- * </form>
110
- * </FormProvider>
111
- * );
112
- * }
113
- *
114
- * function NestedInput() {
115
- * const { register } = useFormContext(); // retrieve all hook methods
116
- * return <input {...register("test")} />;
117
- * }
118
- * ```
119
- */ const useFormContext = ()=>React__default.useContext(HookFormContext);
120
- /**
121
- * A provider component that propagates the `useForm` methods to all children components via [React Context](https://reactjs.org/docs/context.html) API. To be used with {@link useFormContext}.
122
- *
123
- * @remarks
124
- * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)
125
- *
126
- * @param props - all useForm methods
127
- *
128
- * @example
129
- * ```tsx
130
- * function App() {
131
- * const methods = useForm();
132
- * const onSubmit = data => console.log(data);
133
- *
134
- * return (
135
- * <FormProvider {...methods} >
136
- * <form onSubmit={methods.handleSubmit(onSubmit)}>
137
- * <NestedInput />
138
- * <input type="submit" />
139
- * </form>
140
- * </FormProvider>
141
- * );
142
- * }
143
- *
144
- * function NestedInput() {
145
- * const { register } = useFormContext(); // retrieve all hook methods
146
- * return <input {...register("test")} />;
147
- * }
148
- * ```
149
- */ const FormProvider = (props)=>{
150
- const { children, ...data } = props;
151
- return React__default.createElement(HookFormContext.Provider, {
152
- value: data
153
- }, children);
154
- };
155
- var getProxyFormState = (formState, control, localProxyFormState, isRoot = true)=>{
156
- const result = {
157
- defaultValues: control._defaultValues
158
- };
159
- for(const key in formState){
160
- Object.defineProperty(result, key, {
161
- get: ()=>{
162
- const _key = key;
163
- if (control._proxyFormState[_key] !== VALIDATION_MODE.all) {
164
- control._proxyFormState[_key] = !isRoot || VALIDATION_MODE.all;
165
- }
166
- localProxyFormState && (localProxyFormState[_key] = true);
167
- return formState[_key];
168
- }
169
- });
170
- }
171
- return result;
172
- };
173
- const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React__default.useLayoutEffect : React__default.useEffect;
174
- /**
175
- * This custom hook allows you to subscribe to each form state, and isolate the re-render at the custom hook level. It has its scope in terms of form state subscription, so it would not affect other useFormState and useForm. Using this hook can reduce the re-render impact on large and complex form application.
176
- *
177
- * @remarks
178
- * [API](https://react-hook-form.com/docs/useformstate) • [Demo](https://codesandbox.io/s/useformstate-75xly)
179
- *
180
- * @param props - include options on specify fields to subscribe. {@link UseFormStateReturn}
181
- *
182
- * @example
183
- * ```tsx
184
- * function App() {
185
- * const { register, handleSubmit, control } = useForm({
186
- * defaultValues: {
187
- * firstName: "firstName"
188
- * }});
189
- * const { dirtyFields } = useFormState({
190
- * control
191
- * });
192
- * const onSubmit = (data) => console.log(data);
193
- *
194
- * return (
195
- * <form onSubmit={handleSubmit(onSubmit)}>
196
- * <input {...register("firstName")} placeholder="First Name" />
197
- * {dirtyFields.firstName && <p>Field is dirty.</p>}
198
- * <input type="submit" />
199
- * </form>
200
- * );
201
- * }
202
- * ```
203
- */ function useFormState(props) {
204
- const methods = useFormContext();
205
- const { control = methods.control, disabled, name, exact } = props || {};
206
- const [formState, updateFormState] = React__default.useState(control._formState);
207
- const _localProxyFormState = React__default.useRef({
208
- isDirty: false,
209
- isLoading: false,
210
- dirtyFields: false,
211
- touchedFields: false,
212
- validatingFields: false,
213
- isValidating: false,
214
- isValid: false,
215
- errors: false
216
- });
217
- useIsomorphicLayoutEffect(()=>control._subscribe({
218
- name,
219
- formState: _localProxyFormState.current,
220
- exact,
221
- callback: (formState)=>{
222
- !disabled && updateFormState({
223
- ...control._formState,
224
- ...formState
225
- });
226
- }
227
- }), [
228
- name,
229
- disabled,
230
- exact
231
- ]);
232
- React__default.useEffect(()=>{
233
- _localProxyFormState.current.isValid && control._setValid(true);
234
- }, [
235
- control
236
- ]);
237
- return React__default.useMemo(()=>getProxyFormState(formState, control, _localProxyFormState.current, false), [
238
- formState,
239
- control
240
- ]);
241
- }
242
- var isString = (value1)=>typeof value1 === 'string';
243
- var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue)=>{
244
- if (isString(names)) {
245
- return get(formValues, names, defaultValue);
246
- }
247
- if (Array.isArray(names)) {
248
- return names.map((fieldName)=>(get(formValues, fieldName)));
249
- }
250
- return formValues;
251
- };
252
- var isPrimitive = (value1)=>isNullOrUndefined(value1) || !isObjectType(value1);
253
- function deepEqual(object1, object2, _internal_visited = new WeakSet()) {
254
- if (isPrimitive(object1) || isPrimitive(object2)) {
255
- return object1 === object2;
256
- }
257
- if (isDateObject(object1) && isDateObject(object2)) {
258
- return object1.getTime() === object2.getTime();
259
- }
260
- const keys1 = Object.keys(object1);
261
- const keys2 = Object.keys(object2);
262
- if (keys1.length !== keys2.length) {
263
- return false;
264
- }
265
- if (_internal_visited.has(object1) || _internal_visited.has(object2)) {
266
- return true;
267
- }
268
- _internal_visited.add(object1);
269
- _internal_visited.add(object2);
270
- for (const key of keys1){
271
- const val1 = object1[key];
272
- if (!keys2.includes(key)) {
273
- return false;
274
- }
275
- if (key !== 'ref') {
276
- const val2 = object2[key];
277
- if (isDateObject(val1) && isDateObject(val2) || isObject(val1) && isObject(val2) || Array.isArray(val1) && Array.isArray(val2) ? !deepEqual(val1, val2, _internal_visited) : val1 !== val2) {
278
- return false;
279
- }
280
- }
281
- }
282
- return true;
283
- }
284
- /**
285
- * Custom hook to subscribe to field change and isolate re-rendering at the component level.
286
- *
287
- * @remarks
288
- *
289
- * [API](https://react-hook-form.com/docs/usewatch) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-usewatch-h9i5e)
290
- *
291
- * @example
292
- * ```tsx
293
- * const { control } = useForm();
294
- * const values = useWatch({
295
- * name: "fieldName"
296
- * control,
297
- * })
298
- * ```
299
- */ function useWatch(props) {
300
- const methods = useFormContext();
301
- const { control = methods.control, name, defaultValue, disabled, exact, compute } = props || {};
302
- const _defaultValue = React__default.useRef(defaultValue);
303
- const _compute = React__default.useRef(compute);
304
- const _computeFormValues = React__default.useRef(undefined);
305
- _compute.current = compute;
306
- const defaultValueMemo = React__default.useMemo(()=>control._getWatch(name, _defaultValue.current), [
307
- control,
308
- name
309
- ]);
310
- const [value1, updateValue] = React__default.useState(_compute.current ? _compute.current(defaultValueMemo) : defaultValueMemo);
311
- useIsomorphicLayoutEffect(()=>control._subscribe({
312
- name,
313
- formState: {
314
- values: true
315
- },
316
- exact,
317
- callback: (formState)=>{
318
- if (!disabled) {
319
- const formValues = generateWatchOutput(name, control._names, formState.values || control._formValues, false, _defaultValue.current);
320
- if (_compute.current) {
321
- const computedFormValues = _compute.current(formValues);
322
- if (!deepEqual(computedFormValues, _computeFormValues.current)) {
323
- updateValue(computedFormValues);
324
- _computeFormValues.current = computedFormValues;
325
- }
326
- } else {
327
- updateValue(formValues);
328
- }
329
- }
330
- }
331
- }), [
332
- control,
333
- disabled,
334
- name,
335
- exact
336
- ]);
337
- React__default.useEffect(()=>control._removeUnmounted());
338
- return value1;
339
- }
340
- /**
341
- * Custom hook to work with controlled component, this function provide you with both form and field level state. Re-render is isolated at the hook level.
342
- *
343
- * @remarks
344
- * [API](https://react-hook-form.com/docs/usecontroller) • [Demo](https://codesandbox.io/s/usecontroller-0o8px)
345
- *
346
- * @param props - the path name to the form field value, and validation rules.
347
- *
348
- * @returns field properties, field and form state. {@link UseControllerReturn}
349
- *
350
- * @example
351
- * ```tsx
352
- * function Input(props) {
353
- * const { field, fieldState, formState } = useController(props);
354
- * return (
355
- * <div>
356
- * <input {...field} placeholder={props.name} />
357
- * <p>{fieldState.isTouched && "Touched"}</p>
358
- * <p>{formState.isSubmitted ? "submitted" : ""}</p>
359
- * </div>
360
- * );
361
- * }
362
- * ```
363
- */ function useController(props) {
364
- const methods = useFormContext();
365
- const { name, disabled, control = methods.control, shouldUnregister, defaultValue } = props;
366
- const isArrayField = isNameInFieldArray(control._names.array, name);
367
- const defaultValueMemo = React__default.useMemo(()=>get(control._formValues, name, get(control._defaultValues, name, defaultValue)), [
368
- control,
369
- name,
370
- defaultValue
371
- ]);
372
- const value1 = useWatch({
373
- control,
374
- name,
375
- defaultValue: defaultValueMemo,
376
- exact: true
377
- });
378
- const formState = useFormState({
379
- control,
380
- name,
381
- exact: true
382
- });
383
- const _props = React__default.useRef(props);
384
- const _previousNameRef = React__default.useRef(undefined);
385
- const _registerProps = React__default.useRef(control.register(name, {
386
- ...props.rules,
387
- value: value1,
388
- ...isBoolean(props.disabled) ? {
389
- disabled: props.disabled
390
- } : {}
391
- }));
392
- _props.current = props;
393
- const fieldState = React__default.useMemo(()=>Object.defineProperties({}, {
394
- invalid: {
395
- enumerable: true,
396
- get: ()=>!!get(formState.errors, name)
397
- },
398
- isDirty: {
399
- enumerable: true,
400
- get: ()=>!!get(formState.dirtyFields, name)
401
- },
402
- isTouched: {
403
- enumerable: true,
404
- get: ()=>!!get(formState.touchedFields, name)
405
- },
406
- isValidating: {
407
- enumerable: true,
408
- get: ()=>!!get(formState.validatingFields, name)
409
- },
410
- error: {
411
- enumerable: true,
412
- get: ()=>get(formState.errors, name)
413
- }
414
- }), [
415
- formState,
416
- name
417
- ]);
418
- const onChange = React__default.useCallback((event)=>_registerProps.current.onChange({
419
- target: {
420
- value: getEventValue(event),
421
- name: name
422
- },
423
- type: EVENTS.CHANGE
424
- }), [
425
- name
426
- ]);
427
- const onBlur = React__default.useCallback(()=>_registerProps.current.onBlur({
428
- target: {
429
- value: get(control._formValues, name),
430
- name: name
431
- },
432
- type: EVENTS.BLUR
433
- }), [
434
- name,
435
- control._formValues
436
- ]);
437
- const ref = React__default.useCallback((elm)=>{
438
- const field = get(control._fields, name);
439
- if (field && elm) {
440
- field._f.ref = {
441
- focus: ()=>elm.focus && elm.focus(),
442
- select: ()=>elm.select && elm.select(),
443
- setCustomValidity: (message)=>elm.setCustomValidity(message),
444
- reportValidity: ()=>elm.reportValidity()
445
- };
446
- }
447
- }, [
448
- control._fields,
449
- name
450
- ]);
451
- const field = React__default.useMemo(()=>({
452
- name,
453
- value: value1,
454
- ...isBoolean(disabled) || formState.disabled ? {
455
- disabled: formState.disabled || disabled
456
- } : {},
457
- onChange,
458
- onBlur,
459
- ref
460
- }), [
461
- name,
462
- disabled,
463
- formState.disabled,
464
- onChange,
465
- onBlur,
466
- ref,
467
- value1
468
- ]);
469
- React__default.useEffect(()=>{
470
- const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
471
- const previousName = _previousNameRef.current;
472
- if (previousName && previousName !== name && !isArrayField) {
473
- control.unregister(previousName);
474
- }
475
- control.register(name, {
476
- ..._props.current.rules,
477
- ...isBoolean(_props.current.disabled) ? {
478
- disabled: _props.current.disabled
479
- } : {}
480
- });
481
- const updateMounted = (name, value1)=>{
482
- const field = get(control._fields, name);
483
- if (field && field._f) {
484
- field._f.mount = value1;
485
- }
486
- };
487
- updateMounted(name, true);
488
- if (_shouldUnregisterField) {
489
- const value1 = cloneObject(get(control._options.defaultValues, name, _props.current.defaultValue));
490
- set(control._defaultValues, name, value1);
491
- if (isUndefined(get(control._formValues, name))) {
492
- set(control._formValues, name, value1);
493
- }
494
- }
495
- !isArrayField && control.register(name);
496
- _previousNameRef.current = name;
497
- return ()=>{
498
- (isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
499
- };
500
- }, [
501
- name,
502
- control,
503
- isArrayField,
504
- shouldUnregister
505
- ]);
506
- React__default.useEffect(()=>{
507
- control._setDisabledField({
508
- disabled,
509
- name
510
- });
511
- }, [
512
- disabled,
513
- name,
514
- control
515
- ]);
516
- return React__default.useMemo(()=>({
517
- field,
518
- formState,
519
- fieldState
520
- }), [
521
- field,
522
- formState,
523
- fieldState
524
- ]);
525
- }
526
- /**
527
- * Component based on `useController` hook to work with controlled component.
528
- *
529
- * @remarks
530
- * [API](https://react-hook-form.com/docs/usecontroller/controller) • [Demo](https://codesandbox.io/s/react-hook-form-v6-controller-ts-jwyzw) • [Video](https://www.youtube.com/watch?v=N2UNk_UCVyA)
531
- *
532
- * @param props - the path name to the form field value, and validation rules.
533
- *
534
- * @returns provide field handler functions, field and form state.
535
- *
536
- * @example
537
- * ```tsx
538
- * function App() {
539
- * const { control } = useForm<FormValues>({
540
- * defaultValues: {
541
- * test: ""
542
- * }
543
- * });
544
- *
545
- * return (
546
- * <form>
547
- * <Controller
548
- * control={control}
549
- * name="test"
550
- * render={({ field: { onChange, onBlur, value, ref }, formState, fieldState }) => (
551
- * <>
552
- * <input
553
- * onChange={onChange} // send value to hook form
554
- * onBlur={onBlur} // notify when input is touched
555
- * value={value} // return updated value
556
- * ref={ref} // set ref for focus management
557
- * />
558
- * <p>{formState.isSubmitted ? "submitted" : ""}</p>
559
- * <p>{fieldState.isTouched ? "touched" : ""}</p>
560
- * </>
561
- * )}
562
- * />
563
- * </form>
564
- * );
565
- * }
566
- * ```
567
- */ const Controller = (props)=>props.render(useController(props));
568
-
569
- const Form = FormProvider;
570
- const FormFieldContext = /*#__PURE__*/ React.createContext({});
571
- const FormField = ({ ...props })=>{
572
- return /*#__PURE__*/ React.createElement(FormFieldContext.Provider, {
573
- value: {
574
- name: props.name
575
- }
576
- }, /*#__PURE__*/ React.createElement(Controller, props));
577
- };
578
- const useFormField = ()=>{
579
- const fieldContext = React.useContext(FormFieldContext);
580
- const itemContext = React.useContext(FormItemContext);
581
- const { getFieldState } = useFormContext();
582
- const formState = useFormState({
583
- name: fieldContext.name
584
- });
585
- const fieldState = getFieldState(fieldContext.name, formState);
586
- if (!fieldContext) {
587
- throw new Error("useFormField should be used within <FormField>");
588
- }
589
- const { id } = itemContext;
590
- return {
591
- id,
592
- name: fieldContext.name,
593
- formItemId: `${id}-form-item`,
594
- formDescriptionId: `${id}-form-item-description`,
595
- formMessageId: `${id}-form-item-message`,
596
- ...fieldState
597
- };
598
- };
599
- const FormItemContext = /*#__PURE__*/ React.createContext({});
600
- function FormItem({ className, ...props }) {
601
- const id = React.useId();
602
- return /*#__PURE__*/ React.createElement(FormItemContext.Provider, {
603
- value: {
604
- id
605
- }
606
- }, /*#__PURE__*/ React.createElement("div", {
607
- "data-slot": "form-item",
608
- className: cn("grid gap-2", className),
609
- ...props
610
- }));
611
- }
612
- function FormLabel({ className, ...props }) {
613
- const { error, formItemId } = useFormField();
614
- return /*#__PURE__*/ React.createElement(Label, {
615
- "data-slot": "form-label",
616
- "data-error": !!error,
617
- className: cn("data-[error=true]:text-destructive", className),
618
- htmlFor: formItemId,
619
- ...props
620
- });
621
- }
622
- function FormControl({ ...props }) {
623
- const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
624
- return /*#__PURE__*/ React.createElement(Slot, {
625
- "data-slot": "form-control",
626
- id: formItemId,
627
- "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
628
- "aria-invalid": !!error,
629
- ...props
630
- });
631
- }
632
- function FormDescription({ className, ...props }) {
633
- const { formDescriptionId } = useFormField();
634
- return /*#__PURE__*/ React.createElement("p", {
635
- "data-slot": "form-description",
636
- id: formDescriptionId,
637
- className: cn("text-muted-foreground text-sm", className),
638
- ...props
639
- });
640
- }
641
- function FormMessage({ className, ...props }) {
642
- const { error, formMessageId } = useFormField();
643
- const body = error ? String(error?.message ?? "") : props.children;
644
- if (!body) {
645
- return null;
646
- }
647
- return /*#__PURE__*/ React.createElement("p", {
648
- "data-slot": "form-message",
649
- id: formMessageId,
650
- className: cn("text-destructive text-sm", className),
651
- ...props
652
- }, body);
653
- }
654
-
655
- export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
656
10
  //# sourceMappingURL=index.mjs.map