@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,52 @@
1
+ "use client";
2
+ "use strict";
3
+ "use client";
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+
22
+ // src/ui/format/datetime.tsx
23
+ var datetime_exports = {};
24
+ __export(datetime_exports, {
25
+ Datetime: () => Datetime
26
+ });
27
+ module.exports = __toCommonJS(datetime_exports);
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ var defaultFormat = {
30
+ day: "2-digit",
31
+ month: "2-digit",
32
+ year: "numeric",
33
+ hour: "2-digit",
34
+ minute: "2-digit"
35
+ };
36
+ function Datetime({
37
+ value,
38
+ format = defaultFormat,
39
+ locale = "ru-RU",
40
+ fallback = "\u2014"
41
+ }) {
42
+ const formatter = new Intl.DateTimeFormat(locale, format);
43
+ if (!value) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: fallback });
44
+ const date = value instanceof Date ? value : new Date(value);
45
+ if (isNaN(date.getTime())) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: fallback });
46
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: formatter.format(date) });
47
+ }
48
+ Datetime.displayName = "TeachInUI.FormatDatetime";
49
+ // Annotate the CommonJS export names for ESM import in node:
50
+ 0 && (module.exports = {
51
+ Datetime
52
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ Datetime
5
+ } from "../../chunk-2W4N27WQ.mjs";
6
+ export {
7
+ Datetime
8
+ };
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ interface Props {
3
+ readonly minutes?: number;
4
+ readonly hours?: number;
5
+ readonly days?: number;
6
+ readonly seconds?: number;
7
+ readonly compact?: boolean;
8
+ }
9
+ export declare function Duration({ minutes, hours, days, seconds, compact, }: Props): React.JSX.Element;
10
+ export declare namespace Duration {
11
+ var displayName: string;
12
+ }
13
+ export {};
@@ -0,0 +1,56 @@
1
+ "use client";
2
+ "use strict";
3
+ "use client";
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+
22
+ // src/ui/format/duration.tsx
23
+ var duration_exports = {};
24
+ __export(duration_exports, {
25
+ Duration: () => Duration
26
+ });
27
+ module.exports = __toCommonJS(duration_exports);
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ function Duration({
30
+ minutes = 0,
31
+ hours = 0,
32
+ days = 0,
33
+ seconds = 0,
34
+ compact = false
35
+ }) {
36
+ const totalMinutes = days * 24 * 60 + hours * 60 + minutes + Math.floor(seconds / 60);
37
+ const totalDays = Math.floor(totalMinutes / (24 * 60));
38
+ const totalHours = Math.floor(totalMinutes % (24 * 60) / 60);
39
+ const remainingMinutes = totalMinutes % 60;
40
+ const parts = [];
41
+ if (totalDays > 0) {
42
+ parts.push(compact ? `${totalDays}\u0434` : `${totalDays} \u0434`);
43
+ }
44
+ if (totalHours > 0) {
45
+ parts.push(compact ? `${totalHours}\u0447` : `${totalHours} \u0447`);
46
+ }
47
+ if (remainingMinutes > 0 || totalDays === 0 && totalHours === 0) {
48
+ parts.push(compact ? `${remainingMinutes}\u043C` : `${remainingMinutes} \u043C\u0438\u043D`);
49
+ }
50
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: parts.join(" ") });
51
+ }
52
+ Duration.displayName = "TeachInUI.FormatDuration";
53
+ // Annotate the CommonJS export names for ESM import in node:
54
+ 0 && (module.exports = {
55
+ Duration
56
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ Duration
5
+ } from "../../chunk-4QSIBIUI.mjs";
6
+ export {
7
+ Duration
8
+ };
@@ -0,0 +1,9 @@
1
+ export { Datetime as FormatDatetime } from "./datetime";
2
+ export { DateFormat as FormatDate } from "./date";
3
+ export { Time as FormatTime } from "./time";
4
+ export { Currency as FormatCurrency } from "./currency";
5
+ export { Number as FormatNumber } from "./number";
6
+ export { Percent as FormatPercent } from "./percent";
7
+ export { Plural as FormatPlural } from "./plural";
8
+ export { Duration as FormatDuration } from "./duration";
9
+ export { Boolean as FormatBoolean } from "./boolean";
@@ -0,0 +1,225 @@
1
+ "use client";
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/ui/format/index.ts
22
+ var format_exports = {};
23
+ __export(format_exports, {
24
+ FormatBoolean: () => Boolean,
25
+ FormatCurrency: () => Currency,
26
+ FormatDate: () => DateFormat,
27
+ FormatDatetime: () => Datetime,
28
+ FormatDuration: () => Duration,
29
+ FormatNumber: () => Number,
30
+ FormatPercent: () => Percent,
31
+ FormatPlural: () => Plural,
32
+ FormatTime: () => Time
33
+ });
34
+ module.exports = __toCommonJS(format_exports);
35
+
36
+ // src/ui/format/datetime.tsx
37
+ var import_jsx_runtime = require("react/jsx-runtime");
38
+ var defaultFormat = {
39
+ day: "2-digit",
40
+ month: "2-digit",
41
+ year: "numeric",
42
+ hour: "2-digit",
43
+ minute: "2-digit"
44
+ };
45
+ function Datetime({
46
+ value,
47
+ format = defaultFormat,
48
+ locale = "ru-RU",
49
+ fallback = "\u2014"
50
+ }) {
51
+ const formatter = new Intl.DateTimeFormat(locale, format);
52
+ if (!value) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: fallback });
53
+ const date = value instanceof Date ? value : new Date(value);
54
+ if (isNaN(date.getTime())) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: fallback });
55
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: formatter.format(date) });
56
+ }
57
+ Datetime.displayName = "TeachInUI.FormatDatetime";
58
+
59
+ // src/ui/format/date.tsx
60
+ var import_jsx_runtime2 = require("react/jsx-runtime");
61
+ var defaultFormat2 = {
62
+ day: "2-digit",
63
+ month: "2-digit",
64
+ year: "numeric"
65
+ };
66
+ function DateFormat({
67
+ value,
68
+ format = defaultFormat2,
69
+ locale = "ru-RU",
70
+ fallback = "\u2014"
71
+ }) {
72
+ const formatter = new Intl.DateTimeFormat(locale, format);
73
+ if (!value) return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: fallback });
74
+ const date = value instanceof Date ? value : new Date(value);
75
+ if (isNaN(date.getTime())) return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: fallback });
76
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: formatter.format(date) });
77
+ }
78
+ DateFormat.displayName = "TeachInUI.FormatDate";
79
+
80
+ // src/ui/format/time.tsx
81
+ var import_jsx_runtime3 = require("react/jsx-runtime");
82
+ var defaultFormat3 = {
83
+ hour: "2-digit",
84
+ minute: "2-digit"
85
+ };
86
+ function Time({
87
+ value,
88
+ format = defaultFormat3,
89
+ locale = "ru-RU",
90
+ fallback = "\u2014"
91
+ }) {
92
+ const formatter = new Intl.DateTimeFormat(locale, format);
93
+ if (!value) return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: fallback });
94
+ const date = value instanceof Date ? value : new Date(value);
95
+ if (isNaN(date.getTime())) return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: fallback });
96
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: formatter.format(date) });
97
+ }
98
+ Time.displayName = "TeachInUI.FormatTime";
99
+
100
+ // src/ui/format/currency.tsx
101
+ var import_jsx_runtime4 = require("react/jsx-runtime");
102
+ function Currency({
103
+ amount,
104
+ currency = "RUB",
105
+ locale = "ru-RU",
106
+ decimals
107
+ }) {
108
+ const formatter = new Intl.NumberFormat(locale, {
109
+ style: "currency",
110
+ currency,
111
+ ...decimals !== void 0 && {
112
+ minimumFractionDigits: decimals,
113
+ maximumFractionDigits: decimals
114
+ }
115
+ });
116
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: formatter.format(amount) });
117
+ }
118
+ Currency.displayName = "TeachInUI.FormatCurrency";
119
+
120
+ // src/ui/format/number.tsx
121
+ var import_jsx_runtime5 = require("react/jsx-runtime");
122
+ function Number({ value, decimals, locale = "ru-RU" }) {
123
+ const formatter = new Intl.NumberFormat(locale, {
124
+ minimumFractionDigits: decimals != null ? decimals : 0,
125
+ maximumFractionDigits: decimals != null ? decimals : 2
126
+ });
127
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: formatter.format(value) });
128
+ }
129
+ Number.displayName = "TeachInUI.FormatNumber";
130
+
131
+ // src/ui/format/percent.tsx
132
+ var import_jsx_runtime6 = require("react/jsx-runtime");
133
+ function Percent({
134
+ value,
135
+ decimals = 1,
136
+ locale = "ru-RU",
137
+ unit = "percent"
138
+ }) {
139
+ const formatter = new Intl.NumberFormat(locale, {
140
+ style: "percent",
141
+ minimumFractionDigits: decimals,
142
+ maximumFractionDigits: decimals
143
+ });
144
+ const normalizedValue = unit === "percent" ? value / 100 : value;
145
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: formatter.format(normalizedValue) });
146
+ }
147
+ Percent.displayName = "TeachInUI.FormatPercent";
148
+
149
+ // src/ui/format/plural.tsx
150
+ var import_jsx_runtime7 = require("react/jsx-runtime");
151
+ function Plural({
152
+ count,
153
+ one,
154
+ few,
155
+ many,
156
+ locale = "ru-RU",
157
+ showCount = true
158
+ }) {
159
+ const pluralRules = new Intl.PluralRules(locale);
160
+ const rule = pluralRules.select(count);
161
+ const forms = {
162
+ zero: many,
163
+ one,
164
+ two: few,
165
+ few,
166
+ many,
167
+ other: many
168
+ };
169
+ const selectedForm = forms[rule];
170
+ const result = showCount ? `${count} ${selectedForm}` : selectedForm;
171
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: result });
172
+ }
173
+ Plural.displayName = "TeachInUI.FormatPlural";
174
+
175
+ // src/ui/format/duration.tsx
176
+ var import_jsx_runtime8 = require("react/jsx-runtime");
177
+ function Duration({
178
+ minutes = 0,
179
+ hours = 0,
180
+ days = 0,
181
+ seconds = 0,
182
+ compact = false
183
+ }) {
184
+ const totalMinutes = days * 24 * 60 + hours * 60 + minutes + Math.floor(seconds / 60);
185
+ const totalDays = Math.floor(totalMinutes / (24 * 60));
186
+ const totalHours = Math.floor(totalMinutes % (24 * 60) / 60);
187
+ const remainingMinutes = totalMinutes % 60;
188
+ const parts = [];
189
+ if (totalDays > 0) {
190
+ parts.push(compact ? `${totalDays}\u0434` : `${totalDays} \u0434`);
191
+ }
192
+ if (totalHours > 0) {
193
+ parts.push(compact ? `${totalHours}\u0447` : `${totalHours} \u0447`);
194
+ }
195
+ if (remainingMinutes > 0 || totalDays === 0 && totalHours === 0) {
196
+ parts.push(compact ? `${remainingMinutes}\u043C` : `${remainingMinutes} \u043C\u0438\u043D`);
197
+ }
198
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children: parts.join(" ") });
199
+ }
200
+ Duration.displayName = "TeachInUI.FormatDuration";
201
+
202
+ // src/ui/format/boolean.tsx
203
+ var import_jsx_runtime9 = require("react/jsx-runtime");
204
+ function Boolean({
205
+ value,
206
+ trueLabel = "\u0414\u0430",
207
+ falseLabel = "\u041D\u0435\u0442",
208
+ nullLabel = "\u2014"
209
+ }) {
210
+ if (value === null || value === void 0) return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children: nullLabel });
211
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children: value ? trueLabel : falseLabel });
212
+ }
213
+ Boolean.displayName = "TeachInUI.FormatBoolean";
214
+ // Annotate the CommonJS export names for ESM import in node:
215
+ 0 && (module.exports = {
216
+ FormatBoolean,
217
+ FormatCurrency,
218
+ FormatDate,
219
+ FormatDatetime,
220
+ FormatDuration,
221
+ FormatNumber,
222
+ FormatPercent,
223
+ FormatPlural,
224
+ FormatTime
225
+ });
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ import "../../chunk-5IHVMMCK.mjs";
3
+ import {
4
+ Number
5
+ } from "../../chunk-NZI5NBXF.mjs";
6
+ import {
7
+ Percent
8
+ } from "../../chunk-CXAZBWS4.mjs";
9
+ import {
10
+ Plural
11
+ } from "../../chunk-UHLC7GOU.mjs";
12
+ import {
13
+ Time
14
+ } from "../../chunk-3ZTXXJSO.mjs";
15
+ import {
16
+ Boolean
17
+ } from "../../chunk-26RHRVH2.mjs";
18
+ import {
19
+ Currency
20
+ } from "../../chunk-LN7WH3OB.mjs";
21
+ import {
22
+ DateFormat
23
+ } from "../../chunk-CLDAITOP.mjs";
24
+ import {
25
+ Datetime
26
+ } from "../../chunk-2W4N27WQ.mjs";
27
+ import {
28
+ Duration
29
+ } from "../../chunk-4QSIBIUI.mjs";
30
+ export {
31
+ Boolean as FormatBoolean,
32
+ Currency as FormatCurrency,
33
+ DateFormat as FormatDate,
34
+ Datetime as FormatDatetime,
35
+ Duration as FormatDuration,
36
+ Number as FormatNumber,
37
+ Percent as FormatPercent,
38
+ Plural as FormatPlural,
39
+ Time as FormatTime
40
+ };
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ interface Props {
3
+ readonly value: number;
4
+ readonly decimals?: number;
5
+ readonly locale?: string;
6
+ }
7
+ export declare function Number({ value, decimals, locale }: Props): React.JSX.Element;
8
+ export declare namespace Number {
9
+ var displayName: string;
10
+ }
11
+ export {};
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ "use strict";
3
+ "use client";
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+
22
+ // src/ui/format/number.tsx
23
+ var number_exports = {};
24
+ __export(number_exports, {
25
+ Number: () => Number
26
+ });
27
+ module.exports = __toCommonJS(number_exports);
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ function Number({ value, decimals, locale = "ru-RU" }) {
30
+ const formatter = new Intl.NumberFormat(locale, {
31
+ minimumFractionDigits: decimals != null ? decimals : 0,
32
+ maximumFractionDigits: decimals != null ? decimals : 2
33
+ });
34
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: formatter.format(value) });
35
+ }
36
+ Number.displayName = "TeachInUI.FormatNumber";
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ Number
40
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ Number
5
+ } from "../../chunk-NZI5NBXF.mjs";
6
+ export {
7
+ Number
8
+ };
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ interface Props {
3
+ readonly value: number;
4
+ readonly decimals?: number;
5
+ readonly locale?: string;
6
+ readonly unit?: "percent" | "decimal";
7
+ }
8
+ export declare function Percent({ value, decimals, locale, unit, }: Props): React.JSX.Element;
9
+ export declare namespace Percent {
10
+ var displayName: string;
11
+ }
12
+ export {};
@@ -0,0 +1,47 @@
1
+ "use client";
2
+ "use strict";
3
+ "use client";
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+
22
+ // src/ui/format/percent.tsx
23
+ var percent_exports = {};
24
+ __export(percent_exports, {
25
+ Percent: () => Percent
26
+ });
27
+ module.exports = __toCommonJS(percent_exports);
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ function Percent({
30
+ value,
31
+ decimals = 1,
32
+ locale = "ru-RU",
33
+ unit = "percent"
34
+ }) {
35
+ const formatter = new Intl.NumberFormat(locale, {
36
+ style: "percent",
37
+ minimumFractionDigits: decimals,
38
+ maximumFractionDigits: decimals
39
+ });
40
+ const normalizedValue = unit === "percent" ? value / 100 : value;
41
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: formatter.format(normalizedValue) });
42
+ }
43
+ Percent.displayName = "TeachInUI.FormatPercent";
44
+ // Annotate the CommonJS export names for ESM import in node:
45
+ 0 && (module.exports = {
46
+ Percent
47
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ Percent
5
+ } from "../../chunk-CXAZBWS4.mjs";
6
+ export {
7
+ Percent
8
+ };
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ interface Props {
3
+ readonly count: number;
4
+ readonly one: string;
5
+ readonly few: string;
6
+ readonly many: string;
7
+ readonly locale?: string;
8
+ readonly showCount?: boolean;
9
+ }
10
+ export declare function Plural({ count, one, few, many, locale, showCount, }: Props): React.JSX.Element;
11
+ export declare namespace Plural {
12
+ var displayName: string;
13
+ }
14
+ export {};
@@ -0,0 +1,55 @@
1
+ "use client";
2
+ "use strict";
3
+ "use client";
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+
22
+ // src/ui/format/plural.tsx
23
+ var plural_exports = {};
24
+ __export(plural_exports, {
25
+ Plural: () => Plural
26
+ });
27
+ module.exports = __toCommonJS(plural_exports);
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ function Plural({
30
+ count,
31
+ one,
32
+ few,
33
+ many,
34
+ locale = "ru-RU",
35
+ showCount = true
36
+ }) {
37
+ const pluralRules = new Intl.PluralRules(locale);
38
+ const rule = pluralRules.select(count);
39
+ const forms = {
40
+ zero: many,
41
+ one,
42
+ two: few,
43
+ few,
44
+ many,
45
+ other: many
46
+ };
47
+ const selectedForm = forms[rule];
48
+ const result = showCount ? `${count} ${selectedForm}` : selectedForm;
49
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: result });
50
+ }
51
+ Plural.displayName = "TeachInUI.FormatPlural";
52
+ // Annotate the CommonJS export names for ESM import in node:
53
+ 0 && (module.exports = {
54
+ Plural
55
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ Plural
5
+ } from "../../chunk-UHLC7GOU.mjs";
6
+ export {
7
+ Plural
8
+ };
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ interface Props {
3
+ readonly value: string | Date | null | undefined;
4
+ readonly format?: Pick<Intl.DateTimeFormatOptions, "hour" | "minute" | "second">;
5
+ readonly locale?: string;
6
+ readonly fallback?: string;
7
+ }
8
+ export declare function Time({ value, format, locale, fallback, }: Props): React.JSX.Element;
9
+ export declare namespace Time {
10
+ var displayName: string;
11
+ }
12
+ export {};