@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,220 @@
1
+ "use client";
2
+
3
+ // src/ui/theme/theme.ts
4
+ import { heroui } from "@heroui/theme";
5
+ var theme_default = heroui({
6
+ layout: {
7
+ fontSize: {
8
+ tiny: "0.75rem",
9
+ small: "0.875rem",
10
+ medium: "1rem",
11
+ large: "1.125rem"
12
+ },
13
+ lineHeight: {
14
+ tiny: "1rem",
15
+ small: "1.25rem",
16
+ medium: "1.5rem",
17
+ large: "1.75rem"
18
+ },
19
+ radius: {
20
+ small: "0.5rem",
21
+ medium: "0.75rem",
22
+ large: "1rem"
23
+ },
24
+ borderWidth: {
25
+ small: "0.0625rem",
26
+ medium: "0.125rem",
27
+ large: "0.1875rem"
28
+ },
29
+ dividerWeight: "0.0625rem",
30
+ disabledOpacity: 0.5
31
+ },
32
+ themes: {
33
+ light: {
34
+ colors: {
35
+ background: "#ffffff",
36
+ foreground: "#1a1923",
37
+ divider: "#111106",
38
+ focus: "#2e66e8",
39
+ overlay: "#111016",
40
+ content1: "#f8f8fa",
41
+ content2: "#f4f4f8",
42
+ content3: "#cfcdde",
43
+ content4: "#acaac7",
44
+ default: {
45
+ 50: "#f8f8fa",
46
+ 100: "#f4f4f8",
47
+ 200: "#cfcdde",
48
+ 300: "#acaac7",
49
+ 400: "#7571a2",
50
+ 500: "#5e5a82",
51
+ 600: "#464461",
52
+ 700: "#232231",
53
+ 800: "#1a1923",
54
+ 900: "#121118",
55
+ foreground: "#111016"
56
+ },
57
+ primary: {
58
+ 50: "#f5f7fd",
59
+ 100: "#dfe8fb",
60
+ 200: "#b5c8f6",
61
+ 300: "#80a2f1",
62
+ 400: "#2e66e8",
63
+ 500: "#2552ba",
64
+ 600: "#1c3d8c",
65
+ 700: "#173274",
66
+ 800: "#0d1f45",
67
+ 900: "#070f22",
68
+ foreground: "#ffffff"
69
+ },
70
+ secondary: {
71
+ 50: "#faf6fe",
72
+ 100: "#efe5fd",
73
+ 200: "#d6bcfa",
74
+ 300: "#b88bf6",
75
+ 400: "#9350f2",
76
+ 500: "#7b43cb",
77
+ 600: "#5e339b",
78
+ 700: "#4c2a7e",
79
+ 800: "#2c1849",
80
+ 900: "#1a0e2c",
81
+ foreground: "#ffffff"
82
+ },
83
+ success: {
84
+ 50: "#f2fbf6",
85
+ 100: "#d9f2e3",
86
+ 200: "#a3e0bb",
87
+ 300: "#66cb8e",
88
+ 400: "#00a843",
89
+ 500: "#008636",
90
+ 600: "#006528",
91
+ 700: "#005421",
92
+ 800: "#002f13",
93
+ 900: "#00190a",
94
+ foreground: "#111016"
95
+ },
96
+ warning: {
97
+ 50: "#fffcec",
98
+ 100: "#fff2ab",
99
+ 200: "#ffe66e",
100
+ 300: "#ffd739",
101
+ 400: "#f5c20f",
102
+ 500: "#daa800",
103
+ 600: "#b38700",
104
+ 700: "#836100",
105
+ 800: "#4c3800",
106
+ 900: "#171200",
107
+ foreground: "#111016"
108
+ },
109
+ danger: {
110
+ 50: "#fdf4f3",
111
+ 100: "#f8dfdb",
112
+ 200: "#eeb2a9",
113
+ 300: "#e37f70",
114
+ 400: "#d02a11",
115
+ 500: "#a6220e",
116
+ 600: "#7d190a",
117
+ 700: "#681509",
118
+ 800: "#3a0c05",
119
+ 900: "#1f0603",
120
+ foreground: "#ffffff"
121
+ }
122
+ }
123
+ },
124
+ dark: {
125
+ colors: {
126
+ background: "#111016",
127
+ foreground: "#f8f8fa",
128
+ divider: "#ffffff",
129
+ focus: "#2552ba",
130
+ overlay: "#111016",
131
+ content1: "#1a1923",
132
+ content2: "#232231",
133
+ content3: "#464461",
134
+ content4: "#5e5a82",
135
+ default: {
136
+ 50: "#1a1923",
137
+ 100: "#232231",
138
+ 200: "#464461",
139
+ 300: "#5e5a82",
140
+ 400: "#7571a2",
141
+ 500: "#acaac7",
142
+ 600: "#cfcdde",
143
+ 700: "#f4f4f8",
144
+ 800: "#f8f8fa",
145
+ 900: "#ffffff",
146
+ foreground: "#ffffff"
147
+ },
148
+ primary: {
149
+ 50: "#070f22",
150
+ 100: "#0d1f45",
151
+ 200: "#173274",
152
+ 300: "#1c3d8c",
153
+ 400: "#2552ba",
154
+ 500: "#2e66e8",
155
+ 600: "#80a2f1",
156
+ 700: "#b5c8f6",
157
+ 800: "#dfe8fb",
158
+ 900: "#f5f7fd",
159
+ foreground: "#ffffff"
160
+ },
161
+ secondary: {
162
+ 50: "#1a0e2c",
163
+ 100: "#2c1849",
164
+ 200: "#4c2a7e",
165
+ 300: "#5e339b",
166
+ 400: "#7b43cb",
167
+ 500: "#9350f2",
168
+ 600: "#b88bf6",
169
+ 700: "#d6bcfa",
170
+ 800: "#efe5fd",
171
+ 900: "#faf6fe",
172
+ foreground: "#ffffff"
173
+ },
174
+ success: {
175
+ 50: "#00190a",
176
+ 100: "#002f13",
177
+ 200: "#005421",
178
+ 300: "#006528",
179
+ 400: "#008636",
180
+ 500: "#00a843",
181
+ 600: "#66cb8e",
182
+ 700: "#a3e0bb",
183
+ 800: "#d9f2e3",
184
+ 900: "#f2fbf6",
185
+ foreground: "#111016"
186
+ },
187
+ warning: {
188
+ 50: "#171200",
189
+ 100: "#4c3800",
190
+ 200: "#836100",
191
+ 300: "#b38700",
192
+ 400: "#daa800",
193
+ 500: "#f5c20f",
194
+ 600: "#ffd739",
195
+ 700: "#ffe66e",
196
+ 800: "#fff2ab",
197
+ 900: "#fffcec",
198
+ foreground: "#111016"
199
+ },
200
+ danger: {
201
+ 50: "#1f0603",
202
+ 100: "#3a0c05",
203
+ 200: "#681509",
204
+ 300: "#7d190a",
205
+ 400: "#a6220e",
206
+ 500: "#d02a11",
207
+ 600: "#e37f70",
208
+ 700: "#eeb2a9",
209
+ 800: "#f8dfdb",
210
+ 900: "#fdf4f3",
211
+ foreground: "#ffffff"
212
+ }
213
+ }
214
+ }
215
+ }
216
+ });
217
+
218
+ export {
219
+ theme_default
220
+ };
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,33 @@
1
+ "use client";
2
+ import {
3
+ Select
4
+ } from "./chunk-GQ3LBZ2Q.mjs";
5
+
6
+ // src/ui/form/rhf/fields/select-field.tsx
7
+ import { Controller, useFormContext } from "react-hook-form";
8
+ import { jsx } from "react/jsx-runtime";
9
+ function SelectField({ name, ...props }) {
10
+ const { control } = useFormContext();
11
+ return /* @__PURE__ */ jsx(
12
+ Controller,
13
+ {
14
+ control,
15
+ name,
16
+ render: ({ field, fieldState: { error } }) => /* @__PURE__ */ jsx(
17
+ Select,
18
+ {
19
+ value: field.value,
20
+ onChange: (value) => field.onChange(value),
21
+ ...props,
22
+ errorMessage: error == null ? void 0 : error.message,
23
+ isInvalid: !!error
24
+ }
25
+ )
26
+ }
27
+ );
28
+ }
29
+ SelectField.displayName = "TeachInUI.SelectField";
30
+
31
+ export {
32
+ SelectField
33
+ };
@@ -0,0 +1,33 @@
1
+ "use client";
2
+
3
+ // src/ui/inputs/select/select.tsx
4
+ import React from "react";
5
+ import { Select as HeroUISelect, SelectItem as HeroUISelectItem } from "@heroui/select";
6
+ import { jsx } from "react/jsx-runtime";
7
+ var Select = React.forwardRef(
8
+ ({ value, items, onChange, ...props }, ref) => {
9
+ const selectedKeys = value != null ? /* @__PURE__ */ new Set([value]) : void 0;
10
+ return /* @__PURE__ */ jsx(
11
+ HeroUISelect,
12
+ {
13
+ ref,
14
+ items,
15
+ placeholder: " ",
16
+ selectedKeys,
17
+ onSelectionChange: (keys) => {
18
+ const selected = Array.from(keys)[0];
19
+ if (typeof selected === "string") {
20
+ onChange == null ? void 0 : onChange(selected);
21
+ }
22
+ },
23
+ ...props,
24
+ children: (item) => /* @__PURE__ */ jsx(HeroUISelectItem, { children: item.label }, item.key)
25
+ }
26
+ );
27
+ }
28
+ );
29
+ Select.displayName = "TeachInUI.Select";
30
+
31
+ export {
32
+ Select
33
+ };
@@ -0,0 +1,16 @@
1
+ "use client";
2
+
3
+ // src/ui/feedback/tooltip/tooltip.tsx
4
+ import React from "react";
5
+ import { Tooltip as HeroUITooltip } from "@heroui/tooltip";
6
+ import { jsx } from "react/jsx-runtime";
7
+ var Tooltip = React.forwardRef(
8
+ ({ placement = "bottom", ...props }, ref) => {
9
+ return /* @__PURE__ */ jsx(HeroUITooltip, { ref, palacement: placement, ...props });
10
+ }
11
+ );
12
+ Tooltip.displayName = "TeachInUI.Tooltip";
13
+
14
+ export {
15
+ Tooltip
16
+ };
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ import {
3
+ Spinner
4
+ } from "./chunk-LR4R7GFR.mjs";
5
+
6
+ // src/ui/layout/page/section-loading.tsx
7
+ import { jsx } from "react/jsx-runtime";
8
+ var SectionLoading = () => /* @__PURE__ */ jsx("div", { className: "flex min-h-[400px] items-center justify-center", children: /* @__PURE__ */ jsx(Spinner, {}) });
9
+ SectionLoading.displayName = "TeachInUI.SectionLoading";
10
+
11
+ export {
12
+ SectionLoading
13
+ };
@@ -0,0 +1,16 @@
1
+ "use client";
2
+
3
+ // src/ui/inputs/textarea/textarea.tsx
4
+ import { Textarea as HeroUITextarea } from "@heroui/input";
5
+ import React from "react";
6
+ import { jsx } from "react/jsx-runtime";
7
+ var Textarea = React.forwardRef(
8
+ ({ minRows = 4, ...props }, ref) => {
9
+ return /* @__PURE__ */ jsx(HeroUITextarea, { ref, minRows, ...props });
10
+ }
11
+ );
12
+ Textarea.displayName = "TeachInUI.Textarea";
13
+
14
+ export {
15
+ Textarea
16
+ };
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,17 @@
1
+ "use client";
2
+
3
+ // src/ui/inputs/date-picker/date-picker.tsx
4
+ import React from "react";
5
+ import { DatePicker as HeroUIDatePicker } from "@heroui/date-picker";
6
+ import { I18nProvider } from "@react-aria/i18n";
7
+ import { jsx } from "react/jsx-runtime";
8
+ var DatePicker = React.forwardRef(
9
+ ({ locale, ...props }, ref) => {
10
+ return /* @__PURE__ */ jsx(I18nProvider, { locale, children: /* @__PURE__ */ jsx(HeroUIDatePicker, { ref, ...props }) });
11
+ }
12
+ );
13
+ DatePicker.displayName = "TeachInUI.DatePicker";
14
+
15
+ export {
16
+ DatePicker
17
+ };
@@ -0,0 +1,14 @@
1
+ "use client";
2
+
3
+ // src/ui/data/avatar/avatar.tsx
4
+ import React from "react";
5
+ import { Avatar as HeroUIAvatar } from "@heroui/avatar";
6
+ import { jsx } from "react/jsx-runtime";
7
+ var Avatar = React.forwardRef(({ children, ...props }, ref) => {
8
+ return /* @__PURE__ */ jsx(HeroUIAvatar, { ref, ...props, children });
9
+ });
10
+ Avatar.displayName = "TeachInUI.Avatar";
11
+
12
+ export {
13
+ Avatar
14
+ };
@@ -0,0 +1,24 @@
1
+ "use client";
2
+ import {
3
+ Input
4
+ } from "./chunk-V2G5QHZZ.mjs";
5
+
6
+ // src/ui/form/rhf/fields/input-field.tsx
7
+ import { Controller, useFormContext } from "react-hook-form";
8
+ import { jsx } from "react/jsx-runtime";
9
+ function InputField({ name, ...props }) {
10
+ const { control } = useFormContext();
11
+ return /* @__PURE__ */ jsx(
12
+ Controller,
13
+ {
14
+ control,
15
+ name,
16
+ render: ({ field: { ref, ...field }, fieldState: { error } }) => /* @__PURE__ */ jsx(Input, { ...props, ...field, ref, errorMessage: error == null ? void 0 : error.message, isInvalid: !!error })
17
+ }
18
+ );
19
+ }
20
+ InputField.displayName = "TeachInUI.InputField";
21
+
22
+ export {
23
+ InputField
24
+ };
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import {
3
+ Input
4
+ } from "./chunk-V2G5QHZZ.mjs";
5
+
6
+ // src/ui/inputs/text/text.tsx
7
+ import React from "react";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var Text = React.forwardRef(({ ...props }, ref) => {
10
+ return /* @__PURE__ */ jsx(Input, { ref, type: "text", ...props });
11
+ });
12
+ Text.displayName = "TeachInUI.Text";
13
+
14
+ export {
15
+ Text
16
+ };
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import {
3
+ Input
4
+ } from "./chunk-V2G5QHZZ.mjs";
5
+
6
+ // src/ui/inputs/email/email.tsx
7
+ import React from "react";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var Email = React.forwardRef(({ ...props }, ref) => {
10
+ return /* @__PURE__ */ jsx(Input, { ref, autoComplete: "email", type: "email", ...props });
11
+ });
12
+ Email.displayName = "TeachInUI.Email";
13
+
14
+ export {
15
+ Email
16
+ };
@@ -0,0 +1,25 @@
1
+ "use client";
2
+
3
+ // src/ui/format/currency.tsx
4
+ import { Fragment, jsx } from "react/jsx-runtime";
5
+ function Currency({
6
+ amount,
7
+ currency = "RUB",
8
+ locale = "ru-RU",
9
+ decimals
10
+ }) {
11
+ const formatter = new Intl.NumberFormat(locale, {
12
+ style: "currency",
13
+ currency,
14
+ ...decimals !== void 0 && {
15
+ minimumFractionDigits: decimals,
16
+ maximumFractionDigits: decimals
17
+ }
18
+ });
19
+ return /* @__PURE__ */ jsx(Fragment, { children: formatter.format(amount) });
20
+ }
21
+ Currency.displayName = "TeachInUI.FormatCurrency";
22
+
23
+ export {
24
+ Currency
25
+ };
@@ -0,0 +1,12 @@
1
+ "use client";
2
+
3
+ // src/ui/style/css.ts
4
+ import { clsx } from "clsx";
5
+ import { twMerge } from "tailwind-merge";
6
+ function cn(...inputs) {
7
+ return twMerge(clsx(inputs));
8
+ }
9
+
10
+ export {
11
+ cn
12
+ };
@@ -0,0 +1,16 @@
1
+ "use client";
2
+
3
+ // src/ui/feedback/spinner/spinner.tsx
4
+ import React from "react";
5
+ import { Spinner as HeroUISpinner } from "@heroui/spinner";
6
+ import { jsx } from "react/jsx-runtime";
7
+ var Spinner = React.forwardRef(
8
+ ({ label = "\u0418\u0434\u0451\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430...", ...props }, ref) => {
9
+ return /* @__PURE__ */ jsx(HeroUISpinner, { ref, label, ...props });
10
+ }
11
+ );
12
+ Spinner.displayName = "TeachInUI.Spinner";
13
+
14
+ export {
15
+ Spinner
16
+ };
@@ -0,0 +1,14 @@
1
+ "use client";
2
+
3
+ // src/ui/inputs/switch/switch.tsx
4
+ import React from "react";
5
+ import { Switch as HeroUISwitch } from "@heroui/switch";
6
+ import { jsx } from "react/jsx-runtime";
7
+ var Switch = React.forwardRef(({ ...props }, ref) => {
8
+ return /* @__PURE__ */ jsx(HeroUISwitch, { ref, ...props });
9
+ });
10
+ Switch.displayName = "TeachInUI.Switch";
11
+
12
+ export {
13
+ Switch
14
+ };
@@ -0,0 +1,15 @@
1
+ "use client";
2
+
3
+ // src/ui/theme/tokens/breakpoints.ts
4
+ var breakpoints = {
5
+ xs: 480,
6
+ sm: 640,
7
+ md: 768,
8
+ lg: 1024,
9
+ xl: 1280,
10
+ "2xl": 1536
11
+ };
12
+
13
+ export {
14
+ breakpoints
15
+ };
@@ -0,0 +1,16 @@
1
+ "use client";
2
+
3
+ // src/ui/format/number.tsx
4
+ import { Fragment, jsx } from "react/jsx-runtime";
5
+ function Number({ value, decimals, locale = "ru-RU" }) {
6
+ const formatter = new Intl.NumberFormat(locale, {
7
+ minimumFractionDigits: decimals != null ? decimals : 0,
8
+ maximumFractionDigits: decimals != null ? decimals : 2
9
+ });
10
+ return /* @__PURE__ */ jsx(Fragment, { children: formatter.format(value) });
11
+ }
12
+ Number.displayName = "TeachInUI.FormatNumber";
13
+
14
+ export {
15
+ Number
16
+ };
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,14 @@
1
+ "use client";
2
+
3
+ // src/ui/feedback/chip/chip.tsx
4
+ import React from "react";
5
+ import { Chip as HeroUIChip } from "@heroui/chip";
6
+ import { jsx } from "react/jsx-runtime";
7
+ var Chip = React.forwardRef(({ variant = "flat", ...props }, ref) => {
8
+ return /* @__PURE__ */ jsx(HeroUIChip, { ref, variant, ...props });
9
+ });
10
+ Chip.displayName = "TeachInUI.Chip";
11
+
12
+ export {
13
+ Chip
14
+ };
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ import {
3
+ Spinner
4
+ } from "./chunk-LR4R7GFR.mjs";
5
+
6
+ // src/ui/layout/page/page-loading.tsx
7
+ import { jsx } from "react/jsx-runtime";
8
+ var PageLoading = () => /* @__PURE__ */ jsx("div", { className: "flex h-screen items-center justify-center", children: /* @__PURE__ */ jsx(Spinner, {}) });
9
+ PageLoading.displayName = "TeachInUI.PageLoading";
10
+
11
+ export {
12
+ PageLoading
13
+ };
@@ -0,0 +1,73 @@
1
+ "use client";
2
+ import {
3
+ Breadcrumbs
4
+ } from "./chunk-DBQTFBA3.mjs";
5
+
6
+ // src/ui/layout/page/page-content.tsx
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ var Root = ({
9
+ children,
10
+ breadcrumbs = []
11
+ }) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", children: [
12
+ breadcrumbs.length > 0 && /* @__PURE__ */ jsx(Breadcrumbs, { items: breadcrumbs }),
13
+ children
14
+ ] });
15
+ Root.displayName = "TeachInUI.PageContent.Root";
16
+ var Header = ({ children, ...others }) => /* @__PURE__ */ jsx("header", { className: "flex items-center justify-between gap-4", role: "banner", ...others, children });
17
+ Header.displayName = "TeachInUI.PageContent.Header";
18
+ var Title = ({
19
+ children,
20
+ ...others
21
+ }) => /* @__PURE__ */ jsx("h1", { className: "text-4xl leading-10 font-bold", ...others, children });
22
+ Title.displayName = "TeachInUI.PageContent.Title";
23
+ var Actions = ({
24
+ children,
25
+ ...others
26
+ }) => /* @__PURE__ */ jsx("div", { className: "flex gap-2", role: "group", ...others, children });
27
+ Actions.displayName = "TeachInUI.PageContent.Actions";
28
+ var Body = ({ children }) => /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-6", children });
29
+ Body.displayName = "TeachInUI.PageContent.Body";
30
+ var Section = ({
31
+ children,
32
+ ...others
33
+ }) => /* @__PURE__ */ jsx("section", { className: "flex flex-col gap-4", ...others, children });
34
+ Section.displayName = "TeachInUI.PageContent.Section";
35
+ var SectionHeader = ({
36
+ children,
37
+ ...others
38
+ }) => /* @__PURE__ */ jsx("div", { className: "flex items-center justify-between", ...others, children });
39
+ SectionHeader.displayName = "TeachInUI.PageContent.SectionHeader";
40
+ var SectionTitle = ({
41
+ children,
42
+ ...others
43
+ }) => /* @__PURE__ */ jsx("h2", { className: "text-3xl leading-9 font-bold", ...others, children });
44
+ SectionTitle.displayName = "TeachInUI.PageContent.SectionTitle";
45
+ var SectionActions = ({
46
+ children,
47
+ ...others
48
+ }) => /* @__PURE__ */ jsx("div", { className: "flex gap-2", role: "group", ...others, children });
49
+ SectionActions.displayName = "TeachInUI.PageContent.SectionActions";
50
+ var PageContent = {
51
+ Root,
52
+ Header,
53
+ Title,
54
+ Actions,
55
+ Body,
56
+ Section,
57
+ SectionHeader,
58
+ SectionTitle,
59
+ SectionActions
60
+ };
61
+
62
+ export {
63
+ Root,
64
+ Header,
65
+ Title,
66
+ Actions,
67
+ Body,
68
+ Section,
69
+ SectionHeader,
70
+ SectionTitle,
71
+ SectionActions,
72
+ PageContent
73
+ };
@@ -0,0 +1 @@
1
+ "use client";