@teach-in/react 0.1.0

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 (333) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -0
  3. package/dist/chunk-25ISU6R3.mjs +1 -0
  4. package/dist/chunk-26RHRVH2.mjs +18 -0
  5. package/dist/chunk-2W4N27WQ.mjs +28 -0
  6. package/dist/chunk-3BST3PYD.mjs +1 -0
  7. package/dist/chunk-3N5UZODS.mjs +1 -0
  8. package/dist/chunk-3ZTXXJSO.mjs +25 -0
  9. package/dist/chunk-4QSIBIUI.mjs +32 -0
  10. package/dist/chunk-54ZSBA6H.mjs +1 -0
  11. package/dist/chunk-5EWHMXCP.mjs +1 -0
  12. package/dist/chunk-5HK7HRTR.mjs +1 -0
  13. package/dist/chunk-5HUR2CNH.mjs +1 -0
  14. package/dist/chunk-5IHVMMCK.mjs +1 -0
  15. package/dist/chunk-5UKTT75Y.mjs +1 -0
  16. package/dist/chunk-5YMUHF45.mjs +1 -0
  17. package/dist/chunk-6UIBJVXP.mjs +27 -0
  18. package/dist/chunk-6WK4W5LL.mjs +17 -0
  19. package/dist/chunk-7GHK5XYK.mjs +33 -0
  20. package/dist/chunk-7T3JFARO.mjs +13 -0
  21. package/dist/chunk-A3AAC7PF.mjs +14 -0
  22. package/dist/chunk-AQ3ISJKU.mjs +1 -0
  23. package/dist/chunk-AS4T5M6E.mjs +14 -0
  24. package/dist/chunk-C3MURCMZ.mjs +19 -0
  25. package/dist/chunk-CETCW7DS.mjs +24 -0
  26. package/dist/chunk-CLDAITOP.mjs +26 -0
  27. package/dist/chunk-CRPCWBXA.mjs +1 -0
  28. package/dist/chunk-CUVF3U67.mjs +59 -0
  29. package/dist/chunk-CXAZBWS4.mjs +23 -0
  30. package/dist/chunk-DBQTFBA3.mjs +10 -0
  31. package/dist/chunk-DUQFM3QS.mjs +1 -0
  32. package/dist/chunk-EC3NSPHR.mjs +27 -0
  33. package/dist/chunk-EVQFKHCM.mjs +1 -0
  34. package/dist/chunk-FELJP42D.mjs +220 -0
  35. package/dist/chunk-FXXWSYJA.mjs +1 -0
  36. package/dist/chunk-GEJLG5RP.mjs +33 -0
  37. package/dist/chunk-GQ3LBZ2Q.mjs +33 -0
  38. package/dist/chunk-GRWFJ4FP.mjs +16 -0
  39. package/dist/chunk-HH7MLUOF.mjs +13 -0
  40. package/dist/chunk-HJUZTISD.mjs +16 -0
  41. package/dist/chunk-HZ5YAOU6.mjs +1 -0
  42. package/dist/chunk-I5AMV7H7.mjs +1 -0
  43. package/dist/chunk-IAJ6G633.mjs +17 -0
  44. package/dist/chunk-IZEJE6V2.mjs +14 -0
  45. package/dist/chunk-JDFRAN4S.mjs +24 -0
  46. package/dist/chunk-JJHHWDZT.mjs +1 -0
  47. package/dist/chunk-K3WTHFIG.mjs +1 -0
  48. package/dist/chunk-KH4D2C2T.mjs +1 -0
  49. package/dist/chunk-KTUGFQWJ.mjs +16 -0
  50. package/dist/chunk-LJIVY6GU.mjs +16 -0
  51. package/dist/chunk-LN7WH3OB.mjs +25 -0
  52. package/dist/chunk-LOMRTWX5.mjs +12 -0
  53. package/dist/chunk-LR4R7GFR.mjs +16 -0
  54. package/dist/chunk-N3EAW6UO.mjs +14 -0
  55. package/dist/chunk-NBFOX367.mjs +15 -0
  56. package/dist/chunk-NZI5NBXF.mjs +16 -0
  57. package/dist/chunk-OEHJDT6R.mjs +1 -0
  58. package/dist/chunk-ONQIPN3G.mjs +14 -0
  59. package/dist/chunk-PEB5ZH76.mjs +13 -0
  60. package/dist/chunk-Q4TQYK6N.mjs +73 -0
  61. package/dist/chunk-Q6XJI7Q2.mjs +1 -0
  62. package/dist/chunk-QU35SWES.mjs +28 -0
  63. package/dist/chunk-R7LDL5CU.mjs +24 -0
  64. package/dist/chunk-S2TB4GD2.mjs +35 -0
  65. package/dist/chunk-S3ET5HKP.mjs +33 -0
  66. package/dist/chunk-T57H3CGO.mjs +47 -0
  67. package/dist/chunk-TIFF5WZA.mjs +14 -0
  68. package/dist/chunk-UHLC7GOU.mjs +31 -0
  69. package/dist/chunk-UTZUYZZL.mjs +1 -0
  70. package/dist/chunk-UURZJWWV.mjs +1 -0
  71. package/dist/chunk-V2G5QHZZ.mjs +14 -0
  72. package/dist/chunk-V2HNFTTX.mjs +1 -0
  73. package/dist/chunk-V3KKDSQP.mjs +1 -0
  74. package/dist/chunk-V4HKGJYK.mjs +33 -0
  75. package/dist/chunk-V77JZXH7.mjs +1 -0
  76. package/dist/chunk-VOG5HJID.mjs +1 -0
  77. package/dist/chunk-WJXIRSSW.mjs +1 -0
  78. package/dist/chunk-WTXPB253.mjs +16 -0
  79. package/dist/chunk-WYJW5NNA.mjs +1 -0
  80. package/dist/chunk-WZDFBWUL.mjs +1 -0
  81. package/dist/chunk-XAW35UDV.mjs +1 -0
  82. package/dist/chunk-ZRHEFEFS.mjs +1 -0
  83. package/dist/index.d.ts +1 -0
  84. package/dist/index.js +939 -0
  85. package/dist/index.mjs +237 -0
  86. package/dist/ui/actions/button/button.d.ts +25 -0
  87. package/dist/ui/actions/button/button.js +62 -0
  88. package/dist/ui/actions/button/button.mjs +8 -0
  89. package/dist/ui/actions/button/index.d.ts +1 -0
  90. package/dist/ui/actions/button/index.js +63 -0
  91. package/dist/ui/actions/button/index.mjs +8 -0
  92. package/dist/ui/actions/index.d.ts +1 -0
  93. package/dist/ui/actions/index.js +63 -0
  94. package/dist/ui/actions/index.mjs +9 -0
  95. package/dist/ui/data/avatar/avatar.d.ts +6 -0
  96. package/dist/ui/data/avatar/avatar.js +47 -0
  97. package/dist/ui/data/avatar/avatar.mjs +7 -0
  98. package/dist/ui/data/avatar/index.d.ts +1 -0
  99. package/dist/ui/data/avatar/index.js +49 -0
  100. package/dist/ui/data/avatar/index.mjs +8 -0
  101. package/dist/ui/data/index.d.ts +2 -0
  102. package/dist/ui/data/index.js +60 -0
  103. package/dist/ui/data/index.mjs +14 -0
  104. package/dist/ui/data/pagination/index.d.ts +1 -0
  105. package/dist/ui/data/pagination/index.js +49 -0
  106. package/dist/ui/data/pagination/index.mjs +8 -0
  107. package/dist/ui/data/pagination/pagination.d.ts +7 -0
  108. package/dist/ui/data/pagination/pagination.js +47 -0
  109. package/dist/ui/data/pagination/pagination.mjs +7 -0
  110. package/dist/ui/feedback/alert/alert.d.ts +8 -0
  111. package/dist/ui/feedback/alert/alert.js +48 -0
  112. package/dist/ui/feedback/alert/alert.mjs +8 -0
  113. package/dist/ui/feedback/alert/index.d.ts +1 -0
  114. package/dist/ui/feedback/alert/index.js +49 -0
  115. package/dist/ui/feedback/alert/index.mjs +8 -0
  116. package/dist/ui/feedback/chip/chip.d.ts +6 -0
  117. package/dist/ui/feedback/chip/chip.js +48 -0
  118. package/dist/ui/feedback/chip/chip.mjs +8 -0
  119. package/dist/ui/feedback/chip/index.d.ts +1 -0
  120. package/dist/ui/feedback/chip/index.js +49 -0
  121. package/dist/ui/feedback/chip/index.mjs +8 -0
  122. package/dist/ui/feedback/index.d.ts +4 -0
  123. package/dist/ui/feedback/index.js +86 -0
  124. package/dist/ui/feedback/index.mjs +24 -0
  125. package/dist/ui/feedback/spinner/index.d.ts +1 -0
  126. package/dist/ui/feedback/spinner/index.js +51 -0
  127. package/dist/ui/feedback/spinner/index.mjs +8 -0
  128. package/dist/ui/feedback/spinner/spinner.d.ts +6 -0
  129. package/dist/ui/feedback/spinner/spinner.js +50 -0
  130. package/dist/ui/feedback/spinner/spinner.mjs +8 -0
  131. package/dist/ui/feedback/tooltip/index.d.ts +1 -0
  132. package/dist/ui/feedback/tooltip/index.js +51 -0
  133. package/dist/ui/feedback/tooltip/index.mjs +8 -0
  134. package/dist/ui/feedback/tooltip/tooltip.d.ts +6 -0
  135. package/dist/ui/feedback/tooltip/tooltip.js +50 -0
  136. package/dist/ui/feedback/tooltip/tooltip.mjs +8 -0
  137. package/dist/ui/form/form.d.ts +6 -0
  138. package/dist/ui/form/form.js +47 -0
  139. package/dist/ui/form/form.mjs +7 -0
  140. package/dist/ui/form/index.d.ts +2 -0
  141. package/dist/ui/form/index.js +364 -0
  142. package/dist/ui/form/index.mjs +65 -0
  143. package/dist/ui/form/rhf/fields/autocomplete-field.d.ts +10 -0
  144. package/dist/ui/form/rhf/fields/autocomplete-field.js +77 -0
  145. package/dist/ui/form/rhf/fields/autocomplete-field.mjs +27 -0
  146. package/dist/ui/form/rhf/fields/checkbox-field.d.ts +10 -0
  147. package/dist/ui/form/rhf/fields/checkbox-field.js +71 -0
  148. package/dist/ui/form/rhf/fields/checkbox-field.mjs +27 -0
  149. package/dist/ui/form/rhf/fields/date-picker-field.d.ts +10 -0
  150. package/dist/ui/form/rhf/fields/date-picker-field.js +78 -0
  151. package/dist/ui/form/rhf/fields/date-picker-field.mjs +27 -0
  152. package/dist/ui/form/rhf/fields/email-field.d.ts +10 -0
  153. package/dist/ui/form/rhf/fields/email-field.js +76 -0
  154. package/dist/ui/form/rhf/fields/email-field.mjs +27 -0
  155. package/dist/ui/form/rhf/fields/index.d.ts +9 -0
  156. package/dist/ui/form/rhf/fields/index.js +353 -0
  157. package/dist/ui/form/rhf/fields/index.mjs +59 -0
  158. package/dist/ui/form/rhf/fields/input-field.d.ts +10 -0
  159. package/dist/ui/form/rhf/fields/input-field.js +66 -0
  160. package/dist/ui/form/rhf/fields/input-field.mjs +27 -0
  161. package/dist/ui/form/rhf/fields/select-field.d.ts +10 -0
  162. package/dist/ui/form/rhf/fields/select-field.js +94 -0
  163. package/dist/ui/form/rhf/fields/select-field.mjs +27 -0
  164. package/dist/ui/form/rhf/fields/switch-field.d.ts +10 -0
  165. package/dist/ui/form/rhf/fields/switch-field.js +69 -0
  166. package/dist/ui/form/rhf/fields/switch-field.mjs +27 -0
  167. package/dist/ui/form/rhf/fields/text-field.d.ts +10 -0
  168. package/dist/ui/form/rhf/fields/text-field.js +74 -0
  169. package/dist/ui/form/rhf/fields/text-field.mjs +27 -0
  170. package/dist/ui/form/rhf/fields/textarea-field.d.ts +10 -0
  171. package/dist/ui/form/rhf/fields/textarea-field.js +77 -0
  172. package/dist/ui/form/rhf/fields/textarea-field.mjs +27 -0
  173. package/dist/ui/form/rhf/index.d.ts +1 -0
  174. package/dist/ui/form/rhf/index.js +353 -0
  175. package/dist/ui/form/rhf/index.mjs +60 -0
  176. package/dist/ui/format/boolean.d.ts +12 -0
  177. package/dist/ui/format/boolean.js +42 -0
  178. package/dist/ui/format/boolean.mjs +8 -0
  179. package/dist/ui/format/currency.d.ts +12 -0
  180. package/dist/ui/format/currency.js +49 -0
  181. package/dist/ui/format/currency.mjs +8 -0
  182. package/dist/ui/format/date.d.ts +12 -0
  183. package/dist/ui/format/date.js +50 -0
  184. package/dist/ui/format/date.mjs +8 -0
  185. package/dist/ui/format/datetime.d.ts +12 -0
  186. package/dist/ui/format/datetime.js +52 -0
  187. package/dist/ui/format/datetime.mjs +8 -0
  188. package/dist/ui/format/duration.d.ts +13 -0
  189. package/dist/ui/format/duration.js +56 -0
  190. package/dist/ui/format/duration.mjs +8 -0
  191. package/dist/ui/format/index.d.ts +9 -0
  192. package/dist/ui/format/index.js +225 -0
  193. package/dist/ui/format/index.mjs +40 -0
  194. package/dist/ui/format/number.d.ts +11 -0
  195. package/dist/ui/format/number.js +40 -0
  196. package/dist/ui/format/number.mjs +8 -0
  197. package/dist/ui/format/percent.d.ts +12 -0
  198. package/dist/ui/format/percent.js +47 -0
  199. package/dist/ui/format/percent.mjs +8 -0
  200. package/dist/ui/format/plural.d.ts +14 -0
  201. package/dist/ui/format/plural.js +55 -0
  202. package/dist/ui/format/plural.mjs +8 -0
  203. package/dist/ui/format/time.d.ts +12 -0
  204. package/dist/ui/format/time.js +49 -0
  205. package/dist/ui/format/time.mjs +8 -0
  206. package/dist/ui/index.d.ts +12 -0
  207. package/dist/ui/index.js +939 -0
  208. package/dist/ui/index.mjs +237 -0
  209. package/dist/ui/inputs/autocomplete/autocomplete.d.ts +11 -0
  210. package/dist/ui/inputs/autocomplete/autocomplete.js +49 -0
  211. package/dist/ui/inputs/autocomplete/autocomplete.mjs +7 -0
  212. package/dist/ui/inputs/autocomplete/index.d.ts +1 -0
  213. package/dist/ui/inputs/autocomplete/index.js +51 -0
  214. package/dist/ui/inputs/autocomplete/index.mjs +8 -0
  215. package/dist/ui/inputs/checkbox/checkbox.d.ts +6 -0
  216. package/dist/ui/inputs/checkbox/checkbox.js +49 -0
  217. package/dist/ui/inputs/checkbox/checkbox.mjs +7 -0
  218. package/dist/ui/inputs/checkbox/index.d.ts +1 -0
  219. package/dist/ui/inputs/checkbox/index.js +51 -0
  220. package/dist/ui/inputs/checkbox/index.mjs +8 -0
  221. package/dist/ui/inputs/date-picker/date-picker.d.ts +6 -0
  222. package/dist/ui/inputs/date-picker/date-picker.js +50 -0
  223. package/dist/ui/inputs/date-picker/date-picker.mjs +7 -0
  224. package/dist/ui/inputs/date-picker/index.d.ts +1 -0
  225. package/dist/ui/inputs/date-picker/index.js +52 -0
  226. package/dist/ui/inputs/date-picker/index.mjs +8 -0
  227. package/dist/ui/inputs/email/email.d.ts +5 -0
  228. package/dist/ui/inputs/email/email.js +57 -0
  229. package/dist/ui/inputs/email/email.mjs +9 -0
  230. package/dist/ui/inputs/email/index.d.ts +1 -0
  231. package/dist/ui/inputs/email/index.js +59 -0
  232. package/dist/ui/inputs/email/index.mjs +10 -0
  233. package/dist/ui/inputs/index.d.ts +9 -0
  234. package/dist/ui/inputs/index.js +165 -0
  235. package/dist/ui/inputs/index.mjs +49 -0
  236. package/dist/ui/inputs/input/index.d.ts +1 -0
  237. package/dist/ui/inputs/input/index.js +49 -0
  238. package/dist/ui/inputs/input/index.mjs +8 -0
  239. package/dist/ui/inputs/input/input.d.ts +5 -0
  240. package/dist/ui/inputs/input/input.js +47 -0
  241. package/dist/ui/inputs/input/input.mjs +7 -0
  242. package/dist/ui/inputs/select/index.d.ts +1 -0
  243. package/dist/ui/inputs/select/index.js +68 -0
  244. package/dist/ui/inputs/select/index.mjs +8 -0
  245. package/dist/ui/inputs/select/select.d.ts +13 -0
  246. package/dist/ui/inputs/select/select.js +66 -0
  247. package/dist/ui/inputs/select/select.mjs +7 -0
  248. package/dist/ui/inputs/switch/index.d.ts +1 -0
  249. package/dist/ui/inputs/switch/index.js +49 -0
  250. package/dist/ui/inputs/switch/index.mjs +8 -0
  251. package/dist/ui/inputs/switch/switch.d.ts +5 -0
  252. package/dist/ui/inputs/switch/switch.js +48 -0
  253. package/dist/ui/inputs/switch/switch.mjs +8 -0
  254. package/dist/ui/inputs/text/index.d.ts +1 -0
  255. package/dist/ui/inputs/text/index.js +59 -0
  256. package/dist/ui/inputs/text/index.mjs +10 -0
  257. package/dist/ui/inputs/text/text.d.ts +5 -0
  258. package/dist/ui/inputs/text/text.js +57 -0
  259. package/dist/ui/inputs/text/text.mjs +9 -0
  260. package/dist/ui/inputs/textarea/index.d.ts +1 -0
  261. package/dist/ui/inputs/textarea/index.js +51 -0
  262. package/dist/ui/inputs/textarea/index.mjs +8 -0
  263. package/dist/ui/inputs/textarea/textarea.d.ts +5 -0
  264. package/dist/ui/inputs/textarea/textarea.js +49 -0
  265. package/dist/ui/inputs/textarea/textarea.mjs +7 -0
  266. package/dist/ui/layout/container.d.ts +12 -0
  267. package/dist/ui/layout/container.js +65 -0
  268. package/dist/ui/layout/container.mjs +87 -0
  269. package/dist/ui/layout/flex.d.ts +112 -0
  270. package/dist/ui/layout/flex.js +83 -0
  271. package/dist/ui/layout/flex.mjs +8 -0
  272. package/dist/ui/layout/index.d.ts +3 -0
  273. package/dist/ui/layout/index.js +238 -0
  274. package/dist/ui/layout/index.mjs +116 -0
  275. package/dist/ui/layout/page/breadcrumbs.d.ts +8 -0
  276. package/dist/ui/layout/page/breadcrumbs.js +34 -0
  277. package/dist/ui/layout/page/breadcrumbs.mjs +8 -0
  278. package/dist/ui/layout/page/index.d.ts +3 -0
  279. package/dist/ui/layout/page/index.js +144 -0
  280. package/dist/ui/layout/page/index.mjs +44 -0
  281. package/dist/ui/layout/page/page-content.d.ts +64 -0
  282. package/dist/ui/layout/page/page-content.js +109 -0
  283. package/dist/ui/layout/page/page-content.mjs +26 -0
  284. package/dist/ui/layout/page/page-loading.d.ts +2 -0
  285. package/dist/ui/layout/page/page-loading.js +56 -0
  286. package/dist/ui/layout/page/page-loading.mjs +16 -0
  287. package/dist/ui/layout/page/section-loading.d.ts +2 -0
  288. package/dist/ui/layout/page/section-loading.js +56 -0
  289. package/dist/ui/layout/page/section-loading.mjs +16 -0
  290. package/dist/ui/navigation/index.d.ts +1 -0
  291. package/dist/ui/navigation/index.js +38 -0
  292. package/dist/ui/navigation/index.mjs +9 -0
  293. package/dist/ui/navigation/link/index.d.ts +1 -0
  294. package/dist/ui/navigation/link/index.js +38 -0
  295. package/dist/ui/navigation/link/index.mjs +8 -0
  296. package/dist/ui/navigation/link/link.d.ts +8 -0
  297. package/dist/ui/navigation/link/link.js +36 -0
  298. package/dist/ui/navigation/link/link.mjs +7 -0
  299. package/dist/ui/overlays/index.d.ts +1 -0
  300. package/dist/ui/overlays/index.js +66 -0
  301. package/dist/ui/overlays/index.mjs +9 -0
  302. package/dist/ui/overlays/modal/index.d.ts +1 -0
  303. package/dist/ui/overlays/modal/index.js +66 -0
  304. package/dist/ui/overlays/modal/index.mjs +8 -0
  305. package/dist/ui/overlays/modal/modal.d.ts +40 -0
  306. package/dist/ui/overlays/modal/modal.js +65 -0
  307. package/dist/ui/overlays/modal/modal.mjs +8 -0
  308. package/dist/ui/provider/index.d.ts +2 -0
  309. package/dist/ui/provider/index.js +44 -0
  310. package/dist/ui/provider/index.mjs +9 -0
  311. package/dist/ui/provider/ui-provider.d.ts +5 -0
  312. package/dist/ui/provider/ui-provider.js +40 -0
  313. package/dist/ui/provider/ui-provider.mjs +7 -0
  314. package/dist/ui/style/css.d.ts +2 -0
  315. package/dist/ui/style/css.js +35 -0
  316. package/dist/ui/style/css.mjs +7 -0
  317. package/dist/ui/style/index.d.ts +1 -0
  318. package/dist/ui/style/index.js +37 -0
  319. package/dist/ui/style/index.mjs +8 -0
  320. package/dist/ui/theme/index.d.ts +2 -0
  321. package/dist/ui/theme/index.js +40 -0
  322. package/dist/ui/theme/index.mjs +10 -0
  323. package/dist/ui/theme/theme.css +2 -0
  324. package/dist/ui/theme/theme.d.ts +2 -0
  325. package/dist/ui/theme/theme.js +239 -0
  326. package/dist/ui/theme/theme.mjs +7 -0
  327. package/dist/ui/theme/tokens/breakpoints.d.ts +9 -0
  328. package/dist/ui/theme/tokens/breakpoints.js +38 -0
  329. package/dist/ui/theme/tokens/breakpoints.mjs +7 -0
  330. package/dist/ui/theme/tokens/index.d.ts +1 -0
  331. package/dist/ui/theme/tokens/index.js +40 -0
  332. package/dist/ui/theme/tokens/index.mjs +8 -0
  333. package/package.json +75 -0
@@ -0,0 +1,353 @@
1
+ "use client";
2
+ "use strict";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // src/ui/form/rhf/fields/index.ts
32
+ var fields_exports = {};
33
+ __export(fields_exports, {
34
+ AutocompleteField: () => AutocompleteField,
35
+ CheckboxField: () => CheckboxField,
36
+ DatePickerField: () => DatePickerField,
37
+ EmailField: () => EmailField,
38
+ InputField: () => InputField,
39
+ SelectField: () => SelectField,
40
+ SwitchField: () => SwitchField,
41
+ TextField: () => TextField,
42
+ TextareaField: () => TextareaField
43
+ });
44
+ module.exports = __toCommonJS(fields_exports);
45
+
46
+ // src/ui/form/rhf/fields/input-field.tsx
47
+ var import_react_hook_form = require("react-hook-form");
48
+
49
+ // src/ui/inputs/autocomplete/autocomplete.tsx
50
+ var import_react = __toESM(require("react"));
51
+ var import_autocomplete = require("@heroui/autocomplete");
52
+ var import_jsx_runtime = require("react/jsx-runtime");
53
+ var Autocomplete = import_react.default.forwardRef(
54
+ ({ items, ...props }, ref) => {
55
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_autocomplete.Autocomplete, { ref, items, ...props, children: (item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_autocomplete.AutocompleteItem, { children: item.label }, item.key) });
56
+ }
57
+ );
58
+ Autocomplete.displayName = "TeachInUI.Autocomplete";
59
+
60
+ // src/ui/inputs/checkbox/checkbox.tsx
61
+ var import_checkbox = require("@heroui/checkbox");
62
+ var import_react2 = __toESM(require("react"));
63
+ var import_jsx_runtime2 = require("react/jsx-runtime");
64
+ var Checkbox = import_react2.default.forwardRef(
65
+ ({ label, ...props }, ref) => {
66
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_checkbox.Checkbox, { ref, label, ...props, children: label });
67
+ }
68
+ );
69
+ Checkbox.displayName = "TeachInUI.Checkbox";
70
+
71
+ // src/ui/inputs/date-picker/date-picker.tsx
72
+ var import_react3 = __toESM(require("react"));
73
+ var import_date_picker = require("@heroui/date-picker");
74
+ var import_i18n = require("@react-aria/i18n");
75
+ var import_jsx_runtime3 = require("react/jsx-runtime");
76
+ var DatePicker = import_react3.default.forwardRef(
77
+ ({ locale, ...props }, ref) => {
78
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_i18n.I18nProvider, { locale, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_date_picker.DatePicker, { ref, ...props }) });
79
+ }
80
+ );
81
+ DatePicker.displayName = "TeachInUI.DatePicker";
82
+
83
+ // src/ui/inputs/email/email.tsx
84
+ var import_react5 = __toESM(require("react"));
85
+
86
+ // src/ui/inputs/input/input.tsx
87
+ var import_react4 = __toESM(require("react"));
88
+ var import_input = require("@heroui/input");
89
+ var import_jsx_runtime4 = require("react/jsx-runtime");
90
+ var Input = import_react4.default.forwardRef(({ ...props }, ref) => {
91
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_input.Input, { ref, ...props });
92
+ });
93
+ Input.displayName = "TeachInUI.Input";
94
+
95
+ // src/ui/inputs/email/email.tsx
96
+ var import_jsx_runtime5 = require("react/jsx-runtime");
97
+ var Email = import_react5.default.forwardRef(({ ...props }, ref) => {
98
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Input, { ref, autoComplete: "email", type: "email", ...props });
99
+ });
100
+ Email.displayName = "TeachInUI.Email";
101
+
102
+ // src/ui/inputs/select/select.tsx
103
+ var import_react6 = __toESM(require("react"));
104
+ var import_select = require("@heroui/select");
105
+ var import_jsx_runtime6 = require("react/jsx-runtime");
106
+ var Select = import_react6.default.forwardRef(
107
+ ({ value, items, onChange, ...props }, ref) => {
108
+ const selectedKeys = value != null ? /* @__PURE__ */ new Set([value]) : void 0;
109
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
110
+ import_select.Select,
111
+ {
112
+ ref,
113
+ items,
114
+ placeholder: " ",
115
+ selectedKeys,
116
+ onSelectionChange: (keys) => {
117
+ const selected = Array.from(keys)[0];
118
+ if (typeof selected === "string") {
119
+ onChange == null ? void 0 : onChange(selected);
120
+ }
121
+ },
122
+ ...props,
123
+ children: (item) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_select.SelectItem, { children: item.label }, item.key)
124
+ }
125
+ );
126
+ }
127
+ );
128
+ Select.displayName = "TeachInUI.Select";
129
+
130
+ // src/ui/inputs/switch/switch.tsx
131
+ var import_react7 = __toESM(require("react"));
132
+ var import_switch = require("@heroui/switch");
133
+ var import_jsx_runtime7 = require("react/jsx-runtime");
134
+ var Switch = import_react7.default.forwardRef(({ ...props }, ref) => {
135
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_switch.Switch, { ref, ...props });
136
+ });
137
+ Switch.displayName = "TeachInUI.Switch";
138
+
139
+ // src/ui/inputs/text/text.tsx
140
+ var import_react8 = __toESM(require("react"));
141
+ var import_jsx_runtime8 = require("react/jsx-runtime");
142
+ var Text = import_react8.default.forwardRef(({ ...props }, ref) => {
143
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Input, { ref, type: "text", ...props });
144
+ });
145
+ Text.displayName = "TeachInUI.Text";
146
+
147
+ // src/ui/inputs/textarea/textarea.tsx
148
+ var import_input5 = require("@heroui/input");
149
+ var import_react9 = __toESM(require("react"));
150
+ var import_jsx_runtime9 = require("react/jsx-runtime");
151
+ var Textarea = import_react9.default.forwardRef(
152
+ ({ minRows = 4, ...props }, ref) => {
153
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_input5.Textarea, { ref, minRows, ...props });
154
+ }
155
+ );
156
+ Textarea.displayName = "TeachInUI.Textarea";
157
+
158
+ // src/ui/form/rhf/fields/input-field.tsx
159
+ var import_jsx_runtime10 = require("react/jsx-runtime");
160
+ function InputField({ name, ...props }) {
161
+ const { control } = (0, import_react_hook_form.useFormContext)();
162
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
163
+ import_react_hook_form.Controller,
164
+ {
165
+ control,
166
+ name,
167
+ render: ({ field: { ref, ...field }, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Input, { ...props, ...field, ref, errorMessage: error == null ? void 0 : error.message, isInvalid: !!error })
168
+ }
169
+ );
170
+ }
171
+ InputField.displayName = "TeachInUI.InputField";
172
+
173
+ // src/ui/form/rhf/fields/text-field.tsx
174
+ var import_react_hook_form2 = require("react-hook-form");
175
+ var import_jsx_runtime11 = require("react/jsx-runtime");
176
+ function TextField({ name, ...props }) {
177
+ const { control } = (0, import_react_hook_form2.useFormContext)();
178
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
179
+ import_react_hook_form2.Controller,
180
+ {
181
+ control,
182
+ name,
183
+ render: ({ field: { ref, ...field }, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { ...props, ...field, ref, errorMessage: error == null ? void 0 : error.message, isInvalid: !!error })
184
+ }
185
+ );
186
+ }
187
+ TextField.displayName = "TeachInUI.TextField";
188
+
189
+ // src/ui/form/rhf/fields/email-field.tsx
190
+ var import_react_hook_form3 = require("react-hook-form");
191
+ var import_jsx_runtime12 = require("react/jsx-runtime");
192
+ function EmailField({ name, ...props }) {
193
+ const { control } = (0, import_react_hook_form3.useFormContext)();
194
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
195
+ import_react_hook_form3.Controller,
196
+ {
197
+ control,
198
+ name,
199
+ render: ({ field: { ref, ...field }, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Email, { ...props, ...field, ref, errorMessage: error == null ? void 0 : error.message, isInvalid: !!error })
200
+ }
201
+ );
202
+ }
203
+ EmailField.displayName = "TeachInUI.EmailField";
204
+
205
+ // src/ui/form/rhf/fields/textarea-field.tsx
206
+ var import_react_hook_form4 = require("react-hook-form");
207
+ var import_jsx_runtime13 = require("react/jsx-runtime");
208
+ function TextareaField({ name, ...props }) {
209
+ const { control } = (0, import_react_hook_form4.useFormContext)();
210
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
211
+ import_react_hook_form4.Controller,
212
+ {
213
+ control,
214
+ name,
215
+ render: ({ field: { ref, ...field }, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
216
+ Textarea,
217
+ {
218
+ ...props,
219
+ ...field,
220
+ ref,
221
+ errorMessage: error == null ? void 0 : error.message,
222
+ isInvalid: !!error
223
+ }
224
+ )
225
+ }
226
+ );
227
+ }
228
+ TextareaField.displayName = "TeachInUI.TextareaField";
229
+
230
+ // src/ui/form/rhf/fields/select-field.tsx
231
+ var import_react_hook_form5 = require("react-hook-form");
232
+ var import_jsx_runtime14 = require("react/jsx-runtime");
233
+ function SelectField({ name, ...props }) {
234
+ const { control } = (0, import_react_hook_form5.useFormContext)();
235
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
236
+ import_react_hook_form5.Controller,
237
+ {
238
+ control,
239
+ name,
240
+ render: ({ field, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
241
+ Select,
242
+ {
243
+ value: field.value,
244
+ onChange: (value) => field.onChange(value),
245
+ ...props,
246
+ errorMessage: error == null ? void 0 : error.message,
247
+ isInvalid: !!error
248
+ }
249
+ )
250
+ }
251
+ );
252
+ }
253
+ SelectField.displayName = "TeachInUI.SelectField";
254
+
255
+ // src/ui/form/rhf/fields/autocomplete-field.tsx
256
+ var import_react_hook_form6 = require("react-hook-form");
257
+ var import_jsx_runtime15 = require("react/jsx-runtime");
258
+ function AutocompleteField({ name, ...props }) {
259
+ const { control } = (0, import_react_hook_form6.useFormContext)();
260
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
261
+ import_react_hook_form6.Controller,
262
+ {
263
+ control,
264
+ name,
265
+ render: ({ field, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
266
+ Autocomplete,
267
+ {
268
+ ...props,
269
+ errorMessage: error == null ? void 0 : error.message,
270
+ isInvalid: !!error,
271
+ selectedKey: field.value,
272
+ onSelectionChange: field.onChange
273
+ }
274
+ )
275
+ }
276
+ );
277
+ }
278
+ AutocompleteField.displayName = "TeachInUI.AutocompleteField";
279
+
280
+ // src/ui/form/rhf/fields/date-picker-field.tsx
281
+ var import_react_hook_form7 = require("react-hook-form");
282
+ var import_jsx_runtime16 = require("react/jsx-runtime");
283
+ function DatePickerField({ name, ...props }) {
284
+ const { control } = (0, import_react_hook_form7.useFormContext)();
285
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
286
+ import_react_hook_form7.Controller,
287
+ {
288
+ control,
289
+ name,
290
+ render: ({ field: { ref, ...field }, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
291
+ DatePicker,
292
+ {
293
+ ...props,
294
+ ...field,
295
+ ref,
296
+ errorMessage: error == null ? void 0 : error.message,
297
+ isInvalid: !!error
298
+ }
299
+ )
300
+ }
301
+ );
302
+ }
303
+ DatePickerField.displayName = "TeachInUI.DatePickerField";
304
+
305
+ // src/ui/form/rhf/fields/checkbox-field.tsx
306
+ var import_react_hook_form8 = require("react-hook-form");
307
+ var import_jsx_runtime17 = require("react/jsx-runtime");
308
+ function CheckboxField({ name, ...props }) {
309
+ const { control } = (0, import_react_hook_form8.useFormContext)();
310
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
311
+ import_react_hook_form8.Controller,
312
+ {
313
+ control,
314
+ name,
315
+ render: ({ field, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { children: [
316
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Checkbox, { ...props, isSelected: field.value, onValueChange: field.onChange }),
317
+ error && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-tiny text-danger", children: error.message })
318
+ ] })
319
+ }
320
+ );
321
+ }
322
+ CheckboxField.displayName = "TeachInUI.CheckboxField";
323
+
324
+ // src/ui/form/rhf/fields/switch-field.tsx
325
+ var import_react_hook_form9 = require("react-hook-form");
326
+ var import_jsx_runtime18 = require("react/jsx-runtime");
327
+ function SwitchField({ name, ...props }) {
328
+ const { control } = (0, import_react_hook_form9.useFormContext)();
329
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
330
+ import_react_hook_form9.Controller,
331
+ {
332
+ control,
333
+ name,
334
+ render: ({ field, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
335
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Switch, { ...props, isSelected: field.value, onValueChange: field.onChange }),
336
+ error && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-tiny text-danger", children: error.message })
337
+ ] })
338
+ }
339
+ );
340
+ }
341
+ SwitchField.displayName = "TeachInUI.SwitchField";
342
+ // Annotate the CommonJS export names for ESM import in node:
343
+ 0 && (module.exports = {
344
+ AutocompleteField,
345
+ CheckboxField,
346
+ DatePickerField,
347
+ EmailField,
348
+ InputField,
349
+ SelectField,
350
+ SwitchField,
351
+ TextField,
352
+ TextareaField
353
+ });
@@ -0,0 +1,59 @@
1
+ "use client";
2
+ import "../../../../chunk-JJHHWDZT.mjs";
3
+ import {
4
+ SelectField
5
+ } from "../../../../chunk-GEJLG5RP.mjs";
6
+ import {
7
+ SwitchField
8
+ } from "../../../../chunk-EC3NSPHR.mjs";
9
+ import {
10
+ TextField
11
+ } from "../../../../chunk-CETCW7DS.mjs";
12
+ import {
13
+ TextareaField
14
+ } from "../../../../chunk-V4HKGJYK.mjs";
15
+ import {
16
+ AutocompleteField
17
+ } from "../../../../chunk-S3ET5HKP.mjs";
18
+ import {
19
+ CheckboxField
20
+ } from "../../../../chunk-6UIBJVXP.mjs";
21
+ import {
22
+ DatePickerField
23
+ } from "../../../../chunk-7GHK5XYK.mjs";
24
+ import {
25
+ EmailField
26
+ } from "../../../../chunk-R7LDL5CU.mjs";
27
+ import {
28
+ InputField
29
+ } from "../../../../chunk-JDFRAN4S.mjs";
30
+ import "../../../../chunk-5YMUHF45.mjs";
31
+ import "../../../../chunk-DUQFM3QS.mjs";
32
+ import "../../../../chunk-KTUGFQWJ.mjs";
33
+ import "../../../../chunk-5EWHMXCP.mjs";
34
+ import "../../../../chunk-N3EAW6UO.mjs";
35
+ import "../../../../chunk-5HK7HRTR.mjs";
36
+ import "../../../../chunk-HJUZTISD.mjs";
37
+ import "../../../../chunk-V3KKDSQP.mjs";
38
+ import "../../../../chunk-LJIVY6GU.mjs";
39
+ import "../../../../chunk-V2HNFTTX.mjs";
40
+ import "../../../../chunk-IAJ6G633.mjs";
41
+ import "../../../../chunk-ZRHEFEFS.mjs";
42
+ import "../../../../chunk-V2G5QHZZ.mjs";
43
+ import "../../../../chunk-AQ3ISJKU.mjs";
44
+ import "../../../../chunk-GQ3LBZ2Q.mjs";
45
+ import "../../../../chunk-WYJW5NNA.mjs";
46
+ import "../../../../chunk-C3MURCMZ.mjs";
47
+ import "../../../../chunk-WJXIRSSW.mjs";
48
+ import "../../../../chunk-WTXPB253.mjs";
49
+ export {
50
+ AutocompleteField,
51
+ CheckboxField,
52
+ DatePickerField,
53
+ EmailField,
54
+ InputField,
55
+ SelectField,
56
+ SwitchField,
57
+ TextField,
58
+ TextareaField
59
+ };
@@ -0,0 +1,10 @@
1
+ import type { InputProps } from "../../../inputs";
2
+ import React from "react";
3
+ interface Props extends Omit<InputProps, "name" | "errorMessage" | "isInvalid"> {
4
+ readonly name: string;
5
+ }
6
+ export declare function InputField({ name, ...props }: Props): React.JSX.Element;
7
+ export declare namespace InputField {
8
+ var displayName: string;
9
+ }
10
+ export {};
@@ -0,0 +1,66 @@
1
+ "use client";
2
+ "use strict";
3
+ "use client";
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
+ mod
29
+ ));
30
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
+
32
+ // src/ui/form/rhf/fields/input-field.tsx
33
+ var input_field_exports = {};
34
+ __export(input_field_exports, {
35
+ InputField: () => InputField
36
+ });
37
+ module.exports = __toCommonJS(input_field_exports);
38
+ var import_react_hook_form = require("react-hook-form");
39
+
40
+ // src/ui/inputs/input/input.tsx
41
+ var import_react = __toESM(require("react"));
42
+ var import_input = require("@heroui/input");
43
+ var import_jsx_runtime = require("react/jsx-runtime");
44
+ var Input = import_react.default.forwardRef(({ ...props }, ref) => {
45
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { ref, ...props });
46
+ });
47
+ Input.displayName = "TeachInUI.Input";
48
+
49
+ // src/ui/form/rhf/fields/input-field.tsx
50
+ var import_jsx_runtime2 = require("react/jsx-runtime");
51
+ function InputField({ name, ...props }) {
52
+ const { control } = (0, import_react_hook_form.useFormContext)();
53
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
54
+ import_react_hook_form.Controller,
55
+ {
56
+ control,
57
+ name,
58
+ render: ({ field: { ref, ...field }, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Input, { ...props, ...field, ref, errorMessage: error == null ? void 0 : error.message, isInvalid: !!error })
59
+ }
60
+ );
61
+ }
62
+ InputField.displayName = "TeachInUI.InputField";
63
+ // Annotate the CommonJS export names for ESM import in node:
64
+ 0 && (module.exports = {
65
+ InputField
66
+ });
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ InputField
5
+ } from "../../../../chunk-JDFRAN4S.mjs";
6
+ import "../../../../chunk-5YMUHF45.mjs";
7
+ import "../../../../chunk-DUQFM3QS.mjs";
8
+ import "../../../../chunk-KTUGFQWJ.mjs";
9
+ import "../../../../chunk-5EWHMXCP.mjs";
10
+ import "../../../../chunk-N3EAW6UO.mjs";
11
+ import "../../../../chunk-5HK7HRTR.mjs";
12
+ import "../../../../chunk-HJUZTISD.mjs";
13
+ import "../../../../chunk-V3KKDSQP.mjs";
14
+ import "../../../../chunk-LJIVY6GU.mjs";
15
+ import "../../../../chunk-V2HNFTTX.mjs";
16
+ import "../../../../chunk-IAJ6G633.mjs";
17
+ import "../../../../chunk-ZRHEFEFS.mjs";
18
+ import "../../../../chunk-V2G5QHZZ.mjs";
19
+ import "../../../../chunk-AQ3ISJKU.mjs";
20
+ import "../../../../chunk-GQ3LBZ2Q.mjs";
21
+ import "../../../../chunk-WYJW5NNA.mjs";
22
+ import "../../../../chunk-C3MURCMZ.mjs";
23
+ import "../../../../chunk-WJXIRSSW.mjs";
24
+ import "../../../../chunk-WTXPB253.mjs";
25
+ export {
26
+ InputField
27
+ };
@@ -0,0 +1,10 @@
1
+ import type { SelectProps } from "../../../inputs";
2
+ import React from "react";
3
+ interface Props extends Omit<SelectProps, "name" | "errorMessage" | "isInvalid" | "value" | "onChange"> {
4
+ readonly name: string;
5
+ }
6
+ export declare function SelectField({ name, ...props }: Props): React.JSX.Element;
7
+ export declare namespace SelectField {
8
+ var displayName: string;
9
+ }
10
+ export {};
@@ -0,0 +1,94 @@
1
+ "use client";
2
+ "use strict";
3
+ "use client";
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
+ mod
29
+ ));
30
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
+
32
+ // src/ui/form/rhf/fields/select-field.tsx
33
+ var select_field_exports = {};
34
+ __export(select_field_exports, {
35
+ SelectField: () => SelectField
36
+ });
37
+ module.exports = __toCommonJS(select_field_exports);
38
+ var import_react_hook_form = require("react-hook-form");
39
+
40
+ // src/ui/inputs/select/select.tsx
41
+ var import_react = __toESM(require("react"));
42
+ var import_select = require("@heroui/select");
43
+ var import_jsx_runtime = require("react/jsx-runtime");
44
+ var Select = import_react.default.forwardRef(
45
+ ({ value, items, onChange, ...props }, ref) => {
46
+ const selectedKeys = value != null ? /* @__PURE__ */ new Set([value]) : void 0;
47
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
48
+ import_select.Select,
49
+ {
50
+ ref,
51
+ items,
52
+ placeholder: " ",
53
+ selectedKeys,
54
+ onSelectionChange: (keys) => {
55
+ const selected = Array.from(keys)[0];
56
+ if (typeof selected === "string") {
57
+ onChange == null ? void 0 : onChange(selected);
58
+ }
59
+ },
60
+ ...props,
61
+ children: (item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectItem, { children: item.label }, item.key)
62
+ }
63
+ );
64
+ }
65
+ );
66
+ Select.displayName = "TeachInUI.Select";
67
+
68
+ // src/ui/form/rhf/fields/select-field.tsx
69
+ var import_jsx_runtime2 = require("react/jsx-runtime");
70
+ function SelectField({ name, ...props }) {
71
+ const { control } = (0, import_react_hook_form.useFormContext)();
72
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
73
+ import_react_hook_form.Controller,
74
+ {
75
+ control,
76
+ name,
77
+ render: ({ field, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
78
+ Select,
79
+ {
80
+ value: field.value,
81
+ onChange: (value) => field.onChange(value),
82
+ ...props,
83
+ errorMessage: error == null ? void 0 : error.message,
84
+ isInvalid: !!error
85
+ }
86
+ )
87
+ }
88
+ );
89
+ }
90
+ SelectField.displayName = "TeachInUI.SelectField";
91
+ // Annotate the CommonJS export names for ESM import in node:
92
+ 0 && (module.exports = {
93
+ SelectField
94
+ });
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ SelectField
5
+ } from "../../../../chunk-GEJLG5RP.mjs";
6
+ import "../../../../chunk-5YMUHF45.mjs";
7
+ import "../../../../chunk-DUQFM3QS.mjs";
8
+ import "../../../../chunk-KTUGFQWJ.mjs";
9
+ import "../../../../chunk-5EWHMXCP.mjs";
10
+ import "../../../../chunk-N3EAW6UO.mjs";
11
+ import "../../../../chunk-5HK7HRTR.mjs";
12
+ import "../../../../chunk-HJUZTISD.mjs";
13
+ import "../../../../chunk-V3KKDSQP.mjs";
14
+ import "../../../../chunk-LJIVY6GU.mjs";
15
+ import "../../../../chunk-V2HNFTTX.mjs";
16
+ import "../../../../chunk-IAJ6G633.mjs";
17
+ import "../../../../chunk-ZRHEFEFS.mjs";
18
+ import "../../../../chunk-V2G5QHZZ.mjs";
19
+ import "../../../../chunk-AQ3ISJKU.mjs";
20
+ import "../../../../chunk-GQ3LBZ2Q.mjs";
21
+ import "../../../../chunk-WYJW5NNA.mjs";
22
+ import "../../../../chunk-C3MURCMZ.mjs";
23
+ import "../../../../chunk-WJXIRSSW.mjs";
24
+ import "../../../../chunk-WTXPB253.mjs";
25
+ export {
26
+ SelectField
27
+ };
@@ -0,0 +1,10 @@
1
+ import type { SwitchProps } from "../../../inputs";
2
+ import React from "react";
3
+ interface Props extends Omit<SwitchProps, "name" | "isSelected" | "onValueChange"> {
4
+ readonly name: string;
5
+ }
6
+ export declare function SwitchField({ name, ...props }: Props): React.JSX.Element;
7
+ export declare namespace SwitchField {
8
+ var displayName: string;
9
+ }
10
+ export {};