@teach-in/react 0.2.0 → 0.3.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 (214) hide show
  1. package/dist/{chunk-545OBZ4O.mjs → chunk-2ASQXBDD.mjs} +1 -1
  2. package/dist/{chunk-X7ER4IDJ.mjs → chunk-2CEZXLZR.mjs} +2 -2
  3. package/dist/chunk-2SNKT7I4.mjs +9 -0
  4. package/dist/chunk-4KPEPEPC.mjs +26 -0
  5. package/dist/chunk-C4PCTOGM.mjs +12 -0
  6. package/dist/chunk-CA2EAK5M.mjs +40 -0
  7. package/dist/chunk-E5QSNLSR.mjs +38 -0
  8. package/dist/chunk-FQUYFYMS.mjs +24 -0
  9. package/dist/chunk-ICRO6HS3.mjs +1 -0
  10. package/dist/chunk-J3GK2CGQ.mjs +1 -0
  11. package/dist/chunk-JTPBZJ4S.mjs +14 -0
  12. package/dist/chunk-L6XIUULU.mjs +14 -0
  13. package/dist/chunk-LLP2PTPK.mjs +1 -0
  14. package/dist/{chunk-6UIBJVXP.mjs → chunk-MCZBJUTN.mjs} +1 -1
  15. package/dist/chunk-MJTSZFLC.mjs +1 -0
  16. package/dist/{chunk-WTXPB253.mjs → chunk-N3QOXWJI.mjs} +1 -1
  17. package/dist/chunk-N7GOJBLM.mjs +1 -0
  18. package/dist/chunk-NMMWGIQE.mjs +1 -0
  19. package/dist/chunk-NOXFF2KJ.mjs +16 -0
  20. package/dist/chunk-NVLF7L4R.mjs +1 -0
  21. package/dist/chunk-OZSO3C5Q.mjs +14 -0
  22. package/dist/chunk-PKZZEODR.mjs +29 -0
  23. package/dist/chunk-Q6JSJOU4.mjs +1 -0
  24. package/dist/{chunk-PFLROV3C.mjs → chunk-QCLLPJMB.mjs} +2 -2
  25. package/dist/chunk-QUMDPADZ.mjs +14 -0
  26. package/dist/chunk-RRA7GWP2.mjs +1 -0
  27. package/dist/chunk-SAYYLTIE.mjs +52 -0
  28. package/dist/chunk-U4FAPNVK.mjs +1 -0
  29. package/dist/chunk-UFYLYN5Z.mjs +37 -0
  30. package/dist/chunk-UNBE67YJ.mjs +1 -0
  31. package/dist/chunk-UUKS7JYX.mjs +1 -0
  32. package/dist/chunk-VWGY6KWP.mjs +15 -0
  33. package/dist/chunk-W2A6C27Y.mjs +35 -0
  34. package/dist/chunk-XHCXM5MU.mjs +14 -0
  35. package/dist/chunk-YNCISHAU.mjs +27 -0
  36. package/dist/chunk-ZSYIKEXW.mjs +21 -0
  37. package/dist/index.js +539 -182
  38. package/dist/index.mjs +227 -93
  39. package/dist/ui/data/index.d.ts +2 -0
  40. package/dist/ui/data/index.js +37 -2
  41. package/dist/ui/data/index.mjs +24 -2
  42. package/dist/ui/data/table/index.d.ts +1 -0
  43. package/dist/ui/data/table/index.js +52 -0
  44. package/dist/ui/data/table/index.mjs +20 -0
  45. package/dist/ui/data/table/table.d.ts +23 -0
  46. package/dist/ui/data/table/table.js +50 -0
  47. package/dist/ui/data/table/table.mjs +19 -0
  48. package/dist/ui/data/user/index.d.ts +1 -0
  49. package/dist/ui/data/user/index.js +49 -0
  50. package/dist/ui/data/user/index.mjs +8 -0
  51. package/dist/ui/data/user/user.d.ts +6 -0
  52. package/dist/ui/data/user/user.js +47 -0
  53. package/dist/ui/data/user/user.mjs +7 -0
  54. package/dist/ui/feedback/index.d.ts +2 -0
  55. package/dist/ui/feedback/index.js +67 -10
  56. package/dist/ui/feedback/index.mjs +33 -6
  57. package/dist/ui/feedback/progress/circular-progress.d.ts +9 -0
  58. package/dist/ui/feedback/progress/circular-progress.js +47 -0
  59. package/dist/ui/feedback/progress/circular-progress.mjs +7 -0
  60. package/dist/ui/feedback/progress/index.d.ts +2 -0
  61. package/dist/ui/feedback/progress/index.js +60 -0
  62. package/dist/ui/feedback/progress/index.mjs +12 -0
  63. package/dist/ui/feedback/progress/progress.d.ts +9 -0
  64. package/dist/ui/feedback/progress/progress.js +47 -0
  65. package/dist/ui/feedback/progress/progress.mjs +7 -0
  66. package/dist/ui/feedback/toast/index.d.ts +1 -0
  67. package/dist/ui/feedback/toast/index.js +73 -0
  68. package/dist/ui/feedback/toast/index.mjs +21 -0
  69. package/dist/ui/feedback/toast/toast.d.ts +17 -0
  70. package/dist/ui/feedback/toast/toast.js +71 -0
  71. package/dist/ui/feedback/toast/toast.mjs +21 -0
  72. package/dist/ui/form/index.js +83 -43
  73. package/dist/ui/form/index.mjs +30 -21
  74. package/dist/ui/form/rhf/fields/autocomplete-field.mjs +15 -10
  75. package/dist/ui/form/rhf/fields/checkbox-field.js +1 -1
  76. package/dist/ui/form/rhf/fields/checkbox-field.mjs +16 -11
  77. package/dist/ui/form/rhf/fields/date-picker-field.mjs +15 -10
  78. package/dist/ui/form/rhf/fields/email-field.mjs +15 -10
  79. package/dist/ui/form/rhf/fields/index.d.ts +1 -0
  80. package/dist/ui/form/rhf/fields/index.js +79 -39
  81. package/dist/ui/form/rhf/fields/index.mjs +30 -21
  82. package/dist/ui/form/rhf/fields/input-field.mjs +15 -10
  83. package/dist/ui/form/rhf/fields/radio-field.d.ts +10 -0
  84. package/dist/ui/form/rhf/fields/radio-field.js +78 -0
  85. package/dist/ui/form/rhf/fields/radio-field.mjs +31 -0
  86. package/dist/ui/form/rhf/fields/select-field.mjs +15 -10
  87. package/dist/ui/form/rhf/fields/switch-field.mjs +15 -10
  88. package/dist/ui/form/rhf/fields/text-field.mjs +15 -10
  89. package/dist/ui/form/rhf/fields/textarea-field.mjs +15 -10
  90. package/dist/ui/form/rhf/index.js +79 -39
  91. package/dist/ui/form/rhf/index.mjs +30 -21
  92. package/dist/ui/format/index.mjs +6 -6
  93. package/dist/ui/index.js +539 -182
  94. package/dist/ui/index.mjs +227 -93
  95. package/dist/ui/inputs/checkbox/checkbox-group.d.ts +9 -0
  96. package/dist/ui/inputs/checkbox/checkbox-group.js +45 -0
  97. package/dist/ui/inputs/checkbox/checkbox-group.mjs +7 -0
  98. package/dist/ui/inputs/checkbox/checkbox.js +1 -1
  99. package/dist/ui/inputs/checkbox/checkbox.mjs +1 -1
  100. package/dist/ui/inputs/checkbox/index.d.ts +1 -0
  101. package/dist/ui/inputs/checkbox/index.js +12 -3
  102. package/dist/ui/inputs/checkbox/index.mjs +7 -3
  103. package/dist/ui/inputs/index.d.ts +1 -0
  104. package/dist/ui/inputs/index.js +93 -30
  105. package/dist/ui/inputs/index.mjs +32 -15
  106. package/dist/ui/inputs/radio/index.d.ts +2 -0
  107. package/dist/ui/inputs/radio/index.js +57 -0
  108. package/dist/ui/inputs/radio/index.mjs +12 -0
  109. package/dist/ui/inputs/radio/radio-group.d.ts +9 -0
  110. package/dist/ui/inputs/radio/radio-group.js +49 -0
  111. package/dist/ui/inputs/radio/radio-group.mjs +7 -0
  112. package/dist/ui/inputs/radio/radio.d.ts +6 -0
  113. package/dist/ui/inputs/radio/radio.js +32 -0
  114. package/dist/ui/inputs/radio/radio.mjs +7 -0
  115. package/dist/ui/inputs/switch/favorite-switch.d.ts +6 -0
  116. package/dist/ui/inputs/switch/favorite-switch.js +62 -0
  117. package/dist/ui/inputs/switch/favorite-switch.mjs +8 -0
  118. package/dist/ui/inputs/switch/index.d.ts +1 -0
  119. package/dist/ui/inputs/switch/index.js +35 -0
  120. package/dist/ui/inputs/switch/index.mjs +5 -1
  121. package/dist/ui/layout/accordion/accordion.d.ts +10 -0
  122. package/dist/ui/layout/accordion/accordion.js +35 -0
  123. package/dist/ui/layout/accordion/accordion.mjs +9 -0
  124. package/dist/ui/layout/accordion/index.d.ts +1 -0
  125. package/dist/ui/layout/accordion/index.js +37 -0
  126. package/dist/ui/layout/accordion/index.mjs +10 -0
  127. package/dist/ui/layout/container/container.mjs +85 -55
  128. package/dist/ui/layout/container/index.mjs +85 -55
  129. package/dist/ui/layout/divider/divider.d.ts +6 -0
  130. package/dist/ui/layout/divider/divider.js +48 -0
  131. package/dist/ui/layout/divider/divider.mjs +7 -0
  132. package/dist/ui/layout/divider/index.d.ts +1 -0
  133. package/dist/ui/layout/divider/index.js +50 -0
  134. package/dist/ui/layout/divider/index.mjs +8 -0
  135. package/dist/ui/layout/index.d.ts +3 -0
  136. package/dist/ui/layout/index.js +32 -0
  137. package/dist/ui/layout/index.mjs +98 -57
  138. package/dist/ui/layout/page/index.mjs +10 -6
  139. package/dist/ui/layout/page/page-loading.mjs +7 -3
  140. package/dist/ui/layout/page/section-loading.mjs +7 -3
  141. package/dist/ui/layout/scroll-shadow/index.d.ts +1 -0
  142. package/dist/ui/layout/scroll-shadow/index.js +49 -0
  143. package/dist/ui/layout/scroll-shadow/index.mjs +8 -0
  144. package/dist/ui/layout/scroll-shadow/scroll-shadow.d.ts +9 -0
  145. package/dist/ui/layout/scroll-shadow/scroll-shadow.js +47 -0
  146. package/dist/ui/layout/scroll-shadow/scroll-shadow.mjs +7 -0
  147. package/dist/ui/navigation/breadcrumbs/breadcrumbs.d.ts +6 -0
  148. package/dist/ui/navigation/breadcrumbs/breadcrumbs.js +57 -0
  149. package/dist/ui/navigation/breadcrumbs/breadcrumbs.mjs +9 -0
  150. package/dist/ui/navigation/breadcrumbs/index.d.ts +1 -0
  151. package/dist/ui/navigation/breadcrumbs/index.js +59 -0
  152. package/dist/ui/navigation/breadcrumbs/index.mjs +10 -0
  153. package/dist/ui/navigation/index.d.ts +3 -0
  154. package/dist/ui/navigation/index.js +98 -2
  155. package/dist/ui/navigation/index.mjs +31 -2
  156. package/dist/ui/navigation/navbar/index.d.ts +1 -0
  157. package/dist/ui/navigation/navbar/index.js +85 -0
  158. package/dist/ui/navigation/navbar/index.mjs +20 -0
  159. package/dist/ui/navigation/navbar/navbar.d.ts +26 -0
  160. package/dist/ui/navigation/navbar/navbar.js +83 -0
  161. package/dist/ui/navigation/navbar/navbar.mjs +19 -0
  162. package/dist/ui/navigation/tabs/index.d.ts +1 -0
  163. package/dist/ui/navigation/tabs/index.js +56 -0
  164. package/dist/ui/navigation/tabs/index.mjs +8 -0
  165. package/dist/ui/navigation/tabs/tabs.d.ts +7 -0
  166. package/dist/ui/navigation/tabs/tabs.js +54 -0
  167. package/dist/ui/navigation/tabs/tabs.mjs +7 -0
  168. package/dist/ui/overlays/dropdown/dropdown.d.ts +28 -0
  169. package/dist/ui/overlays/dropdown/dropdown.js +48 -0
  170. package/dist/ui/overlays/dropdown/dropdown.mjs +15 -0
  171. package/dist/ui/overlays/dropdown/index.d.ts +1 -0
  172. package/dist/ui/overlays/dropdown/index.js +50 -0
  173. package/dist/ui/overlays/dropdown/index.mjs +16 -0
  174. package/dist/ui/overlays/index.d.ts +1 -0
  175. package/dist/ui/overlays/index.js +22 -0
  176. package/dist/ui/overlays/index.mjs +14 -1
  177. package/dist/ui/provider/index.js +31 -2
  178. package/dist/ui/provider/index.mjs +14 -1
  179. package/dist/ui/provider/ui-provider.d.ts +3 -1
  180. package/dist/ui/provider/ui-provider.js +31 -2
  181. package/dist/ui/provider/ui-provider.mjs +14 -1
  182. package/dist/ui/surface/card/card.d.ts +36 -0
  183. package/dist/ui/surface/card/card.js +65 -0
  184. package/dist/ui/surface/card/card.mjs +7 -0
  185. package/dist/ui/surface/card/index.d.ts +1 -0
  186. package/dist/ui/surface/card/index.js +67 -0
  187. package/dist/ui/surface/card/index.mjs +8 -0
  188. package/dist/ui/surface/index.d.ts +1 -0
  189. package/dist/ui/surface/index.js +39 -0
  190. package/dist/ui/surface/index.mjs +6 -1
  191. package/dist/ui/theme/colors/common.mjs +4 -4
  192. package/dist/ui/theme/colors/index.js +1 -1
  193. package/dist/ui/theme/colors/index.mjs +6 -6
  194. package/dist/ui/theme/colors/semantic.js +1 -1
  195. package/dist/ui/theme/colors/semantic.mjs +5 -5
  196. package/dist/ui/theme/colors.js +1 -1
  197. package/dist/ui/theme/colors.mjs +6 -6
  198. package/dist/ui/theme/index.js +1 -1
  199. package/dist/ui/theme/index.mjs +7 -7
  200. package/dist/ui/theme/theme.js +1 -1
  201. package/dist/ui/theme/theme.mjs +7 -7
  202. package/package.json +14 -1
  203. package/dist/chunk-6WK4W5LL.mjs +0 -17
  204. package/dist/{chunk-54ZSBA6H.mjs → chunk-54FA62HL.mjs} +0 -0
  205. package/dist/{chunk-5EWHMXCP.mjs → chunk-57JRJHSH.mjs} +0 -0
  206. package/dist/{chunk-IZ5KKF6P.mjs → chunk-773RYGHT.mjs} +0 -0
  207. package/dist/{chunk-5HUR2CNH.mjs → chunk-AR4IYKG5.mjs} +0 -0
  208. package/dist/{chunk-5YMUHF45.mjs → chunk-AT6DX4DN.mjs} +0 -0
  209. package/dist/{chunk-CAJWTQDB.mjs → chunk-BGNMWHME.mjs} +0 -0
  210. package/dist/{chunk-JJHHWDZT.mjs → chunk-CTKWGSNJ.mjs} +0 -0
  211. package/dist/{chunk-OEHJDT6R.mjs → chunk-CYSW4N3T.mjs} +0 -0
  212. package/dist/{chunk-UURZJWWV.mjs → chunk-CZEO3U25.mjs} +0 -0
  213. package/dist/{chunk-WJXIRSSW.mjs → chunk-FKHR6G3R.mjs} +0 -0
  214. package/dist/{chunk-NCM6KIQH.mjs → chunk-IXPMUODA.mjs} +9 -9
@@ -2,25 +2,30 @@
2
2
  import {
3
3
  TextareaField
4
4
  } from "../../../../chunk-V4HKGJYK.mjs";
5
- import "../../../../chunk-5YMUHF45.mjs";
6
- import "../../../../chunk-5HK7HRTR.mjs";
7
- import "../../../../chunk-HJUZTISD.mjs";
8
- import "../../../../chunk-5EWHMXCP.mjs";
5
+ import "../../../../chunk-CZEO3U25.mjs";
6
+ import "../../../../chunk-LLP2PTPK.mjs";
7
+ import "../../../../chunk-E5QSNLSR.mjs";
9
8
  import "../../../../chunk-N3EAW6UO.mjs";
9
+ import "../../../../chunk-RRA7GWP2.mjs";
10
+ import "../../../../chunk-NOXFF2KJ.mjs";
11
+ import "../../../../chunk-2SNKT7I4.mjs";
10
12
  import "../../../../chunk-DUQFM3QS.mjs";
11
13
  import "../../../../chunk-KTUGFQWJ.mjs";
14
+ import "../../../../chunk-5HK7HRTR.mjs";
15
+ import "../../../../chunk-HJUZTISD.mjs";
16
+ import "../../../../chunk-V3KKDSQP.mjs";
12
17
  import "../../../../chunk-V2HNFTTX.mjs";
13
18
  import "../../../../chunk-IAJ6G633.mjs";
14
- import "../../../../chunk-V3KKDSQP.mjs";
15
- import "../../../../chunk-LJIVY6GU.mjs";
16
- import "../../../../chunk-ZRHEFEFS.mjs";
17
- import "../../../../chunk-V2G5QHZZ.mjs";
18
19
  import "../../../../chunk-AQ3ISJKU.mjs";
19
20
  import "../../../../chunk-GQ3LBZ2Q.mjs";
20
21
  import "../../../../chunk-WYJW5NNA.mjs";
21
22
  import "../../../../chunk-C3MURCMZ.mjs";
22
- import "../../../../chunk-WJXIRSSW.mjs";
23
- import "../../../../chunk-WTXPB253.mjs";
23
+ import "../../../../chunk-UUKS7JYX.mjs";
24
+ import "../../../../chunk-C4PCTOGM.mjs";
25
+ import "../../../../chunk-N3QOXWJI.mjs";
26
+ import "../../../../chunk-LJIVY6GU.mjs";
27
+ import "../../../../chunk-ZRHEFEFS.mjs";
28
+ import "../../../../chunk-V2G5QHZZ.mjs";
24
29
  export {
25
30
  TextareaField
26
31
  };
@@ -36,6 +36,7 @@ __export(rhf_exports, {
36
36
  DatePickerField: () => DatePickerField,
37
37
  EmailField: () => EmailField,
38
38
  InputField: () => InputField,
39
+ RadioField: () => RadioField,
39
40
  SelectField: () => SelectField,
40
41
  SwitchField: () => SwitchField,
41
42
  TextField: () => TextField,
@@ -63,7 +64,7 @@ var import_react2 = __toESM(require("react"));
63
64
  var import_jsx_runtime2 = require("react/jsx-runtime");
64
65
  var Checkbox = import_react2.default.forwardRef(
65
66
  ({ label, ...props }, ref) => {
66
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_checkbox.Checkbox, { ref, label, ...props, children: label });
67
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_checkbox.Checkbox, { ref, ...props, children: label });
67
68
  }
68
69
  );
69
70
  Checkbox.displayName = "TeachInUI.Checkbox";
@@ -136,35 +137,46 @@ var Switch = import_react7.default.forwardRef(({ ...props }, ref) => {
136
137
  });
137
138
  Switch.displayName = "TeachInUI.Switch";
138
139
 
139
- // src/ui/inputs/text/text.tsx
140
+ // src/ui/inputs/radio/radio-group.tsx
140
141
  var import_react8 = __toESM(require("react"));
142
+ var import_radio = require("@heroui/radio");
141
143
  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
+ var RadioGroup = import_react8.default.forwardRef(
145
+ (props, ref) => {
146
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_radio.RadioGroup, { ref, ...props });
147
+ }
148
+ );
149
+ RadioGroup.displayName = "TeachInUI.RadioGroup";
150
+
151
+ // src/ui/inputs/text/text.tsx
152
+ var import_react9 = __toESM(require("react"));
153
+ var import_jsx_runtime9 = require("react/jsx-runtime");
154
+ var Text = import_react9.default.forwardRef(({ ...props }, ref) => {
155
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Input, { ref, type: "text", ...props });
144
156
  });
145
157
  Text.displayName = "TeachInUI.Text";
146
158
 
147
159
  // src/ui/inputs/textarea/textarea.tsx
148
160
  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(
161
+ var import_react10 = __toESM(require("react"));
162
+ var import_jsx_runtime10 = require("react/jsx-runtime");
163
+ var Textarea = import_react10.default.forwardRef(
152
164
  ({ minRows = 4, ...props }, ref) => {
153
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_input5.Textarea, { ref, minRows, ...props });
165
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_input5.Textarea, { ref, minRows, ...props });
154
166
  }
155
167
  );
156
168
  Textarea.displayName = "TeachInUI.Textarea";
157
169
 
158
170
  // src/ui/form/rhf/fields/input-field.tsx
159
- var import_jsx_runtime10 = require("react/jsx-runtime");
171
+ var import_jsx_runtime11 = require("react/jsx-runtime");
160
172
  function InputField({ name, ...props }) {
161
173
  const { control } = (0, import_react_hook_form.useFormContext)();
162
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
174
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
163
175
  import_react_hook_form.Controller,
164
176
  {
165
177
  control,
166
178
  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 })
179
+ render: ({ field: { ref, ...field }, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Input, { ...props, ...field, ref, errorMessage: error == null ? void 0 : error.message, isInvalid: !!error })
168
180
  }
169
181
  );
170
182
  }
@@ -172,15 +184,15 @@ InputField.displayName = "TeachInUI.InputField";
172
184
 
173
185
  // src/ui/form/rhf/fields/text-field.tsx
174
186
  var import_react_hook_form2 = require("react-hook-form");
175
- var import_jsx_runtime11 = require("react/jsx-runtime");
187
+ var import_jsx_runtime12 = require("react/jsx-runtime");
176
188
  function TextField({ name, ...props }) {
177
189
  const { control } = (0, import_react_hook_form2.useFormContext)();
178
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
190
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
179
191
  import_react_hook_form2.Controller,
180
192
  {
181
193
  control,
182
194
  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 })
195
+ render: ({ field: { ref, ...field }, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { ...props, ...field, ref, errorMessage: error == null ? void 0 : error.message, isInvalid: !!error })
184
196
  }
185
197
  );
186
198
  }
@@ -188,15 +200,15 @@ TextField.displayName = "TeachInUI.TextField";
188
200
 
189
201
  // src/ui/form/rhf/fields/email-field.tsx
190
202
  var import_react_hook_form3 = require("react-hook-form");
191
- var import_jsx_runtime12 = require("react/jsx-runtime");
203
+ var import_jsx_runtime13 = require("react/jsx-runtime");
192
204
  function EmailField({ name, ...props }) {
193
205
  const { control } = (0, import_react_hook_form3.useFormContext)();
194
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
206
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
195
207
  import_react_hook_form3.Controller,
196
208
  {
197
209
  control,
198
210
  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 })
211
+ render: ({ field: { ref, ...field }, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Email, { ...props, ...field, ref, errorMessage: error == null ? void 0 : error.message, isInvalid: !!error })
200
212
  }
201
213
  );
202
214
  }
@@ -204,15 +216,15 @@ EmailField.displayName = "TeachInUI.EmailField";
204
216
 
205
217
  // src/ui/form/rhf/fields/textarea-field.tsx
206
218
  var import_react_hook_form4 = require("react-hook-form");
207
- var import_jsx_runtime13 = require("react/jsx-runtime");
219
+ var import_jsx_runtime14 = require("react/jsx-runtime");
208
220
  function TextareaField({ name, ...props }) {
209
221
  const { control } = (0, import_react_hook_form4.useFormContext)();
210
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
222
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
211
223
  import_react_hook_form4.Controller,
212
224
  {
213
225
  control,
214
226
  name,
215
- render: ({ field: { ref, ...field }, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
227
+ render: ({ field: { ref, ...field }, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
216
228
  Textarea,
217
229
  {
218
230
  ...props,
@@ -229,15 +241,15 @@ TextareaField.displayName = "TeachInUI.TextareaField";
229
241
 
230
242
  // src/ui/form/rhf/fields/select-field.tsx
231
243
  var import_react_hook_form5 = require("react-hook-form");
232
- var import_jsx_runtime14 = require("react/jsx-runtime");
244
+ var import_jsx_runtime15 = require("react/jsx-runtime");
233
245
  function SelectField({ name, ...props }) {
234
246
  const { control } = (0, import_react_hook_form5.useFormContext)();
235
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
247
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
236
248
  import_react_hook_form5.Controller,
237
249
  {
238
250
  control,
239
251
  name,
240
- render: ({ field, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
252
+ render: ({ field, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
241
253
  Select,
242
254
  {
243
255
  value: field.value,
@@ -254,15 +266,15 @@ SelectField.displayName = "TeachInUI.SelectField";
254
266
 
255
267
  // src/ui/form/rhf/fields/autocomplete-field.tsx
256
268
  var import_react_hook_form6 = require("react-hook-form");
257
- var import_jsx_runtime15 = require("react/jsx-runtime");
269
+ var import_jsx_runtime16 = require("react/jsx-runtime");
258
270
  function AutocompleteField({ name, ...props }) {
259
271
  const { control } = (0, import_react_hook_form6.useFormContext)();
260
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
272
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
261
273
  import_react_hook_form6.Controller,
262
274
  {
263
275
  control,
264
276
  name,
265
- render: ({ field, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
277
+ render: ({ field, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
266
278
  Autocomplete,
267
279
  {
268
280
  ...props,
@@ -279,15 +291,15 @@ AutocompleteField.displayName = "TeachInUI.AutocompleteField";
279
291
 
280
292
  // src/ui/form/rhf/fields/date-picker-field.tsx
281
293
  var import_react_hook_form7 = require("react-hook-form");
282
- var import_jsx_runtime16 = require("react/jsx-runtime");
294
+ var import_jsx_runtime17 = require("react/jsx-runtime");
283
295
  function DatePickerField({ name, ...props }) {
284
296
  const { control } = (0, import_react_hook_form7.useFormContext)();
285
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
297
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
286
298
  import_react_hook_form7.Controller,
287
299
  {
288
300
  control,
289
301
  name,
290
- render: ({ field: { ref, ...field }, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
302
+ render: ({ field: { ref, ...field }, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
291
303
  DatePicker,
292
304
  {
293
305
  ...props,
@@ -304,17 +316,17 @@ DatePickerField.displayName = "TeachInUI.DatePickerField";
304
316
 
305
317
  // src/ui/form/rhf/fields/checkbox-field.tsx
306
318
  var import_react_hook_form8 = require("react-hook-form");
307
- var import_jsx_runtime17 = require("react/jsx-runtime");
319
+ var import_jsx_runtime18 = require("react/jsx-runtime");
308
320
  function CheckboxField({ name, ...props }) {
309
321
  const { control } = (0, import_react_hook_form8.useFormContext)();
310
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
322
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
311
323
  import_react_hook_form8.Controller,
312
324
  {
313
325
  control,
314
326
  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 })
327
+ render: ({ field, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
328
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Checkbox, { ...props, isSelected: field.value, onValueChange: field.onChange }),
329
+ error && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-tiny text-danger", children: error.message })
318
330
  ] })
319
331
  }
320
332
  );
@@ -323,22 +335,49 @@ CheckboxField.displayName = "TeachInUI.CheckboxField";
323
335
 
324
336
  // src/ui/form/rhf/fields/switch-field.tsx
325
337
  var import_react_hook_form9 = require("react-hook-form");
326
- var import_jsx_runtime18 = require("react/jsx-runtime");
338
+ var import_jsx_runtime19 = require("react/jsx-runtime");
327
339
  function SwitchField({ name, ...props }) {
328
340
  const { control } = (0, import_react_hook_form9.useFormContext)();
329
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
341
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
330
342
  import_react_hook_form9.Controller,
331
343
  {
332
344
  control,
333
345
  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 })
346
+ render: ({ field, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { children: [
347
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Switch, { ...props, isSelected: field.value, onValueChange: field.onChange }),
348
+ error && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-tiny text-danger", children: error.message })
337
349
  ] })
338
350
  }
339
351
  );
340
352
  }
341
353
  SwitchField.displayName = "TeachInUI.SwitchField";
354
+
355
+ // src/ui/form/rhf/fields/radio-field.tsx
356
+ var import_react_hook_form10 = require("react-hook-form");
357
+ var import_jsx_runtime20 = require("react/jsx-runtime");
358
+ function RadioField({ name, ...props }) {
359
+ const { control } = (0, import_react_hook_form10.useFormContext)();
360
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
361
+ import_react_hook_form10.Controller,
362
+ {
363
+ control,
364
+ name,
365
+ render: ({ field: { ref, value, onChange, ...field }, fieldState: { error } }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
366
+ RadioGroup,
367
+ {
368
+ ...props,
369
+ ...field,
370
+ ref,
371
+ errorMessage: error == null ? void 0 : error.message,
372
+ isInvalid: !!error,
373
+ value,
374
+ onValueChange: onChange
375
+ }
376
+ )
377
+ }
378
+ );
379
+ }
380
+ RadioField.displayName = "TeachInUI.RadioField";
342
381
  // Annotate the CommonJS export names for ESM import in node:
343
382
  0 && (module.exports = {
344
383
  AutocompleteField,
@@ -346,6 +385,7 @@ SwitchField.displayName = "TeachInUI.SwitchField";
346
385
  DatePickerField,
347
386
  EmailField,
348
387
  InputField,
388
+ RadioField,
349
389
  SelectField,
350
390
  SwitchField,
351
391
  TextField,
@@ -1,6 +1,18 @@
1
1
  "use client";
2
2
  import "../../../chunk-FXXWSYJA.mjs";
3
- import "../../../chunk-JJHHWDZT.mjs";
3
+ import "../../../chunk-Q6JSJOU4.mjs";
4
+ import {
5
+ InputField
6
+ } from "../../../chunk-JDFRAN4S.mjs";
7
+ import {
8
+ RadioField
9
+ } from "../../../chunk-W2A6C27Y.mjs";
10
+ import {
11
+ SelectField
12
+ } from "../../../chunk-GEJLG5RP.mjs";
13
+ import {
14
+ SwitchField
15
+ } from "../../../chunk-EC3NSPHR.mjs";
4
16
  import {
5
17
  TextField
6
18
  } from "../../../chunk-CETCW7DS.mjs";
@@ -12,47 +24,44 @@ import {
12
24
  } from "../../../chunk-S3ET5HKP.mjs";
13
25
  import {
14
26
  CheckboxField
15
- } from "../../../chunk-6UIBJVXP.mjs";
27
+ } from "../../../chunk-MCZBJUTN.mjs";
16
28
  import {
17
29
  DatePickerField
18
30
  } from "../../../chunk-7GHK5XYK.mjs";
19
31
  import {
20
32
  EmailField
21
33
  } from "../../../chunk-R7LDL5CU.mjs";
22
- import {
23
- InputField
24
- } from "../../../chunk-JDFRAN4S.mjs";
25
- import {
26
- SelectField
27
- } from "../../../chunk-GEJLG5RP.mjs";
28
- import {
29
- SwitchField
30
- } from "../../../chunk-EC3NSPHR.mjs";
31
- import "../../../chunk-5YMUHF45.mjs";
32
- import "../../../chunk-5HK7HRTR.mjs";
33
- import "../../../chunk-HJUZTISD.mjs";
34
- import "../../../chunk-5EWHMXCP.mjs";
34
+ import "../../../chunk-CZEO3U25.mjs";
35
+ import "../../../chunk-LLP2PTPK.mjs";
36
+ import "../../../chunk-E5QSNLSR.mjs";
35
37
  import "../../../chunk-N3EAW6UO.mjs";
38
+ import "../../../chunk-RRA7GWP2.mjs";
39
+ import "../../../chunk-NOXFF2KJ.mjs";
40
+ import "../../../chunk-2SNKT7I4.mjs";
36
41
  import "../../../chunk-DUQFM3QS.mjs";
37
42
  import "../../../chunk-KTUGFQWJ.mjs";
43
+ import "../../../chunk-5HK7HRTR.mjs";
44
+ import "../../../chunk-HJUZTISD.mjs";
45
+ import "../../../chunk-V3KKDSQP.mjs";
38
46
  import "../../../chunk-V2HNFTTX.mjs";
39
47
  import "../../../chunk-IAJ6G633.mjs";
40
- import "../../../chunk-V3KKDSQP.mjs";
41
- import "../../../chunk-LJIVY6GU.mjs";
42
- import "../../../chunk-ZRHEFEFS.mjs";
43
- import "../../../chunk-V2G5QHZZ.mjs";
44
48
  import "../../../chunk-AQ3ISJKU.mjs";
45
49
  import "../../../chunk-GQ3LBZ2Q.mjs";
46
50
  import "../../../chunk-WYJW5NNA.mjs";
47
51
  import "../../../chunk-C3MURCMZ.mjs";
48
- import "../../../chunk-WJXIRSSW.mjs";
49
- import "../../../chunk-WTXPB253.mjs";
52
+ import "../../../chunk-UUKS7JYX.mjs";
53
+ import "../../../chunk-C4PCTOGM.mjs";
54
+ import "../../../chunk-N3QOXWJI.mjs";
55
+ import "../../../chunk-LJIVY6GU.mjs";
56
+ import "../../../chunk-ZRHEFEFS.mjs";
57
+ import "../../../chunk-V2G5QHZZ.mjs";
50
58
  export {
51
59
  AutocompleteField,
52
60
  CheckboxField,
53
61
  DatePickerField,
54
62
  EmailField,
55
63
  InputField,
64
+ RadioField,
56
65
  SelectField,
57
66
  SwitchField,
58
67
  TextField,
@@ -1,11 +1,5 @@
1
1
  "use client";
2
2
  import "../../chunk-5IHVMMCK.mjs";
3
- import {
4
- Number
5
- } from "../../chunk-NZI5NBXF.mjs";
6
- import {
7
- Percent
8
- } from "../../chunk-CXAZBWS4.mjs";
9
3
  import {
10
4
  Plural
11
5
  } from "../../chunk-UHLC7GOU.mjs";
@@ -27,6 +21,12 @@ import {
27
21
  import {
28
22
  Duration
29
23
  } from "../../chunk-4QSIBIUI.mjs";
24
+ import {
25
+ Number
26
+ } from "../../chunk-NZI5NBXF.mjs";
27
+ import {
28
+ Percent
29
+ } from "../../chunk-CXAZBWS4.mjs";
30
30
  export {
31
31
  Boolean as FormatBoolean,
32
32
  Currency as FormatCurrency,