@teach-in/react 0.1.0 → 0.2.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 (209) hide show
  1. package/dist/{chunk-HH7MLUOF.mjs → chunk-25XG46X6.mjs} +1 -1
  2. package/dist/chunk-2OPPNAW2.mjs +19 -0
  3. package/dist/chunk-3LOCA2SP.mjs +19 -0
  4. package/dist/chunk-545OBZ4O.mjs +47 -0
  5. package/dist/{chunk-2W4N27WQ.mjs → chunk-6NZ4IHNU.mjs} +4 -3
  6. package/dist/{chunk-CLDAITOP.mjs → chunk-BUVPBB4J.mjs} +2 -2
  7. package/dist/chunk-CAJWTQDB.mjs +1 -0
  8. package/dist/chunk-EJQH6CYW.mjs +1 -0
  9. package/dist/chunk-HOVAPYGJ.mjs +19 -0
  10. package/dist/{chunk-S2TB4GD2.mjs → chunk-IZ5KKF6P.mjs} +2 -2
  11. package/dist/chunk-J3OZNLTZ.mjs +50 -0
  12. package/dist/chunk-JUIVZCH7.mjs +1 -0
  13. package/dist/chunk-JWMPI5AZ.mjs +1 -0
  14. package/dist/chunk-LUERGYYZ.mjs +19 -0
  15. package/dist/{chunk-CUVF3U67.mjs → chunk-M5F723W7.mjs} +1 -1
  16. package/dist/chunk-NCM6KIQH.mjs +47 -0
  17. package/dist/chunk-NDQAHQFL.mjs +1 -0
  18. package/dist/{chunk-AS4T5M6E.mjs → chunk-O5T4GUJH.mjs} +3 -0
  19. package/dist/chunk-OW6U64MG.mjs +19 -0
  20. package/dist/chunk-PFLROV3C.mjs +17 -0
  21. package/dist/chunk-PON4ZQKG.mjs +1 -0
  22. package/dist/chunk-SLB2JE3N.mjs +19 -0
  23. package/dist/{chunk-PEB5ZH76.mjs → chunk-SPED4RBS.mjs} +1 -1
  24. package/dist/{chunk-GRWFJ4FP.mjs → chunk-TJBXXTYS.mjs} +1 -1
  25. package/dist/{chunk-QU35SWES.mjs → chunk-TYMUQULA.mjs} +9 -5
  26. package/dist/chunk-VIPLRFPR.mjs +23 -0
  27. package/dist/chunk-W6NKLZ73.mjs +61 -0
  28. package/dist/chunk-X7ER4IDJ.mjs +167 -0
  29. package/dist/chunk-XKX5LFH7.mjs +19 -0
  30. package/dist/chunk-XYQVL4EX.mjs +19 -0
  31. package/dist/chunk-YBQFG6QJ.mjs +19 -0
  32. package/dist/{chunk-LR4R7GFR.mjs → chunk-ZXCQ73RT.mjs} +3 -5
  33. package/dist/index.js +527 -55
  34. package/dist/index.mjs +110 -78
  35. package/dist/ui/actions/button/button.d.ts +0 -4
  36. package/dist/ui/actions/button/button.js +9 -6
  37. package/dist/ui/actions/button/button.mjs +1 -2
  38. package/dist/ui/actions/button/index.js +9 -5
  39. package/dist/ui/actions/button/index.mjs +1 -1
  40. package/dist/ui/actions/index.js +9 -5
  41. package/dist/ui/actions/index.mjs +1 -1
  42. package/dist/ui/data/index.js +1 -0
  43. package/dist/ui/data/index.mjs +1 -1
  44. package/dist/ui/data/pagination/index.js +1 -0
  45. package/dist/ui/data/pagination/index.mjs +1 -1
  46. package/dist/ui/data/pagination/pagination.d.ts +6 -2
  47. package/dist/ui/data/pagination/pagination.js +6 -2
  48. package/dist/ui/data/pagination/pagination.mjs +5 -3
  49. package/dist/ui/feedback/alert/alert.d.ts +1 -1
  50. package/dist/ui/feedback/alert/alert.js +0 -1
  51. package/dist/ui/feedback/alert/alert.mjs +0 -1
  52. package/dist/ui/feedback/chip/chip.js +0 -1
  53. package/dist/ui/feedback/chip/chip.mjs +0 -1
  54. package/dist/ui/feedback/index.js +4 -6
  55. package/dist/ui/feedback/index.mjs +8 -8
  56. package/dist/ui/feedback/spinner/index.js +3 -5
  57. package/dist/ui/feedback/spinner/index.mjs +1 -1
  58. package/dist/ui/feedback/spinner/spinner.d.ts +8 -4
  59. package/dist/ui/feedback/spinner/spinner.js +3 -6
  60. package/dist/ui/feedback/spinner/spinner.mjs +1 -2
  61. package/dist/ui/feedback/tooltip/index.js +1 -1
  62. package/dist/ui/feedback/tooltip/index.mjs +1 -1
  63. package/dist/ui/feedback/tooltip/tooltip.d.ts +2 -2
  64. package/dist/ui/feedback/tooltip/tooltip.js +1 -2
  65. package/dist/ui/feedback/tooltip/tooltip.mjs +1 -2
  66. package/dist/ui/form/index.mjs +14 -14
  67. package/dist/ui/form/rhf/fields/autocomplete-field.js +0 -1
  68. package/dist/ui/form/rhf/fields/autocomplete-field.mjs +6 -7
  69. package/dist/ui/form/rhf/fields/checkbox-field.js +0 -1
  70. package/dist/ui/form/rhf/fields/checkbox-field.mjs +6 -7
  71. package/dist/ui/form/rhf/fields/date-picker-field.js +0 -1
  72. package/dist/ui/form/rhf/fields/date-picker-field.mjs +6 -7
  73. package/dist/ui/form/rhf/fields/email-field.js +0 -1
  74. package/dist/ui/form/rhf/fields/email-field.mjs +6 -7
  75. package/dist/ui/form/rhf/fields/index.mjs +12 -12
  76. package/dist/ui/form/rhf/fields/input-field.js +0 -1
  77. package/dist/ui/form/rhf/fields/input-field.mjs +6 -7
  78. package/dist/ui/form/rhf/fields/select-field.js +0 -1
  79. package/dist/ui/form/rhf/fields/select-field.mjs +6 -7
  80. package/dist/ui/form/rhf/fields/switch-field.js +0 -1
  81. package/dist/ui/form/rhf/fields/switch-field.mjs +6 -7
  82. package/dist/ui/form/rhf/fields/text-field.js +0 -1
  83. package/dist/ui/form/rhf/fields/text-field.mjs +6 -7
  84. package/dist/ui/form/rhf/fields/textarea-field.js +0 -1
  85. package/dist/ui/form/rhf/fields/textarea-field.mjs +6 -7
  86. package/dist/ui/form/rhf/index.mjs +12 -12
  87. package/dist/ui/format/boolean.js +0 -1
  88. package/dist/ui/format/boolean.mjs +0 -1
  89. package/dist/ui/format/currency.js +0 -1
  90. package/dist/ui/format/currency.mjs +0 -1
  91. package/dist/ui/format/date.js +2 -3
  92. package/dist/ui/format/date.mjs +1 -2
  93. package/dist/ui/format/datetime.js +4 -4
  94. package/dist/ui/format/datetime.mjs +1 -2
  95. package/dist/ui/format/duration.js +0 -1
  96. package/dist/ui/format/duration.mjs +0 -1
  97. package/dist/ui/format/index.js +6 -5
  98. package/dist/ui/format/index.mjs +2 -2
  99. package/dist/ui/format/number.js +0 -1
  100. package/dist/ui/format/number.mjs +0 -1
  101. package/dist/ui/format/percent.js +0 -1
  102. package/dist/ui/format/percent.mjs +0 -1
  103. package/dist/ui/format/plural.js +0 -1
  104. package/dist/ui/format/plural.mjs +0 -1
  105. package/dist/ui/format/time.js +0 -1
  106. package/dist/ui/format/time.mjs +0 -1
  107. package/dist/ui/index.d.ts +1 -0
  108. package/dist/ui/index.js +527 -55
  109. package/dist/ui/index.mjs +110 -78
  110. package/dist/ui/inputs/index.mjs +10 -10
  111. package/dist/ui/inputs/switch/switch.js +0 -1
  112. package/dist/ui/inputs/switch/switch.mjs +0 -1
  113. package/dist/ui/layout/{container.d.ts → container/container.d.ts} +2 -2
  114. package/dist/ui/layout/{container.js → container/container.js} +3 -4
  115. package/dist/ui/layout/container/container.mjs +107 -0
  116. package/dist/ui/layout/container/index.d.ts +1 -0
  117. package/dist/ui/layout/container/index.js +66 -0
  118. package/dist/ui/layout/container/index.mjs +107 -0
  119. package/dist/ui/layout/{flex.js → flex/flex.js} +1 -2
  120. package/dist/ui/layout/{flex.mjs → flex/flex.mjs} +1 -2
  121. package/dist/ui/layout/flex/index.d.ts +1 -0
  122. package/dist/ui/layout/flex/index.js +84 -0
  123. package/dist/ui/layout/flex/index.mjs +8 -0
  124. package/dist/ui/layout/grid/grid.d.ts +118 -0
  125. package/dist/ui/layout/grid/grid.js +84 -0
  126. package/dist/ui/layout/grid/grid.mjs +7 -0
  127. package/dist/ui/layout/grid/index.d.ts +1 -0
  128. package/dist/ui/layout/grid/index.js +86 -0
  129. package/dist/ui/layout/grid/index.mjs +8 -0
  130. package/dist/ui/layout/index.d.ts +1 -0
  131. package/dist/ui/layout/index.js +65 -9
  132. package/dist/ui/layout/index.mjs +72 -48
  133. package/dist/ui/layout/page/breadcrumbs.js +0 -1
  134. package/dist/ui/layout/page/breadcrumbs.mjs +0 -1
  135. package/dist/ui/layout/page/index.js +3 -5
  136. package/dist/ui/layout/page/index.mjs +11 -11
  137. package/dist/ui/layout/page/page-loading.js +3 -5
  138. package/dist/ui/layout/page/page-loading.mjs +6 -6
  139. package/dist/ui/layout/page/section-loading.js +3 -5
  140. package/dist/ui/layout/page/section-loading.mjs +6 -6
  141. package/dist/ui/overlays/modal/modal.js +0 -1
  142. package/dist/ui/overlays/modal/modal.mjs +0 -1
  143. package/dist/ui/surface/bento/bento.d.ts +86 -0
  144. package/dist/ui/surface/bento/bento.js +74 -0
  145. package/dist/ui/surface/bento/bento.mjs +9 -0
  146. package/dist/ui/surface/bento/index.d.ts +1 -0
  147. package/dist/ui/surface/bento/index.js +76 -0
  148. package/dist/ui/surface/bento/index.mjs +10 -0
  149. package/dist/ui/surface/index.d.ts +1 -0
  150. package/dist/ui/surface/index.js +76 -0
  151. package/dist/ui/surface/index.mjs +11 -0
  152. package/dist/ui/theme/colors/blue.d.ts +12 -0
  153. package/dist/ui/theme/colors/blue.js +42 -0
  154. package/dist/ui/theme/colors/blue.mjs +7 -0
  155. package/dist/ui/theme/colors/common.d.ts +113 -0
  156. package/dist/ui/theme/colors/common.js +171 -0
  157. package/dist/ui/theme/colors/common.mjs +16 -0
  158. package/dist/ui/theme/colors/cyan.d.ts +12 -0
  159. package/dist/ui/theme/colors/cyan.js +42 -0
  160. package/dist/ui/theme/colors/cyan.mjs +7 -0
  161. package/dist/ui/theme/colors/flat.d.ts +22 -0
  162. package/dist/ui/theme/colors/flat.js +52 -0
  163. package/dist/ui/theme/colors/flat.mjs +28 -0
  164. package/dist/ui/theme/colors/green.d.ts +12 -0
  165. package/dist/ui/theme/colors/green.js +42 -0
  166. package/dist/ui/theme/colors/green.mjs +7 -0
  167. package/dist/ui/theme/colors/index.d.ts +118 -0
  168. package/dist/ui/theme/colors/index.js +353 -0
  169. package/dist/ui/theme/colors/index.mjs +26 -0
  170. package/dist/ui/theme/colors/pink.d.ts +12 -0
  171. package/dist/ui/theme/colors/pink.js +42 -0
  172. package/dist/ui/theme/colors/pink.mjs +7 -0
  173. package/dist/ui/theme/colors/purple.d.ts +12 -0
  174. package/dist/ui/theme/colors/purple.js +42 -0
  175. package/dist/ui/theme/colors/purple.mjs +7 -0
  176. package/dist/ui/theme/colors/red.d.ts +12 -0
  177. package/dist/ui/theme/colors/red.js +42 -0
  178. package/dist/ui/theme/colors/red.mjs +7 -0
  179. package/dist/ui/theme/colors/semantic.d.ts +7 -0
  180. package/dist/ui/theme/colors/semantic.js +347 -0
  181. package/dist/ui/theme/colors/semantic.mjs +22 -0
  182. package/dist/ui/theme/colors/shipgray.d.ts +12 -0
  183. package/dist/ui/theme/colors/shipgray.js +42 -0
  184. package/dist/ui/theme/colors/shipgray.mjs +7 -0
  185. package/dist/ui/theme/colors/types.d.ts +38 -0
  186. package/dist/ui/theme/colors/types.js +19 -0
  187. package/dist/ui/theme/colors/types.mjs +2 -0
  188. package/dist/ui/theme/colors/yellow.d.ts +12 -0
  189. package/dist/ui/theme/colors/yellow.js +42 -0
  190. package/dist/ui/theme/colors/yellow.mjs +7 -0
  191. package/dist/ui/theme/colors/zinc.d.ts +12 -0
  192. package/dist/ui/theme/colors/zinc.js +42 -0
  193. package/dist/ui/theme/colors/zinc.mjs +7 -0
  194. package/dist/ui/theme/colors.d.ts +1 -0
  195. package/dist/ui/theme/colors.js +353 -0
  196. package/dist/ui/theme/colors.mjs +27 -0
  197. package/dist/ui/theme/index.js +364 -2
  198. package/dist/ui/theme/index.mjs +20 -2
  199. package/dist/ui/theme/swap-color-values.d.ts +1 -0
  200. package/dist/ui/theme/swap-color-values.js +46 -0
  201. package/dist/ui/theme/swap-color-values.mjs +7 -0
  202. package/dist/ui/theme/theme.d.ts +1 -2
  203. package/dist/ui/theme/theme.js +332 -183
  204. package/dist/ui/theme/theme.mjs +18 -3
  205. package/package.json +4 -3
  206. package/dist/chunk-FELJP42D.mjs +0 -220
  207. package/dist/ui/layout/container.mjs +0 -87
  208. package/dist/ui/theme/theme.css +0 -2
  209. /package/dist/ui/layout/{flex.d.ts → flex/flex.d.ts} +0 -0
@@ -1,6 +1,5 @@
1
1
  "use client";
2
2
  "use strict";
3
- "use client";
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -19,7 +18,7 @@ var __copyProps = (to, from, except, desc) => {
19
18
  };
20
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
20
 
22
- // src/ui/layout/flex.tsx
21
+ // src/ui/layout/flex/flex.tsx
23
22
  var flex_exports = {};
24
23
  __export(flex_exports, {
25
24
  Flex: () => Flex
@@ -1,8 +1,7 @@
1
1
  "use client";
2
- "use client";
3
2
  import {
4
3
  Flex
5
- } from "../../chunk-CUVF3U67.mjs";
4
+ } from "../../../chunk-M5F723W7.mjs";
6
5
  export {
7
6
  Flex
8
7
  };
@@ -0,0 +1 @@
1
+ export * from "./flex";
@@ -0,0 +1,84 @@
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/layout/flex/index.ts
22
+ var flex_exports = {};
23
+ __export(flex_exports, {
24
+ Flex: () => Flex
25
+ });
26
+ module.exports = __toCommonJS(flex_exports);
27
+
28
+ // src/ui/layout/flex/flex.tsx
29
+ var import_tailwind_variants = require("tailwind-variants");
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var variants = (0, import_tailwind_variants.tv)({
32
+ base: "flex",
33
+ variants: {
34
+ direction: {
35
+ row: "flex-row",
36
+ column: "flex-col",
37
+ "row-reverse": "flex-row-reverse",
38
+ "column-reverse": "flex-col-reverse"
39
+ },
40
+ align: {
41
+ start: "items-start",
42
+ center: "items-center",
43
+ end: "items-end",
44
+ stretch: "items-stretch",
45
+ baseline: "items-baseline"
46
+ },
47
+ justify: {
48
+ start: "justify-start",
49
+ center: "justify-center",
50
+ end: "justify-end",
51
+ between: "justify-between",
52
+ around: "justify-around",
53
+ evenly: "justify-evenly"
54
+ },
55
+ wrap: {
56
+ nowrap: "flex-nowrap",
57
+ wrap: "flex-wrap",
58
+ "wrap-reverse": "flex-wrap-reverse"
59
+ },
60
+ gap: {
61
+ 0: "gap-0",
62
+ 1: "gap-1",
63
+ 2: "gap-2",
64
+ 4: "gap-4",
65
+ 6: "gap-6",
66
+ 8: "gap-8"
67
+ }
68
+ },
69
+ defaultVariants: {
70
+ direction: "row",
71
+ align: "stretch",
72
+ justify: "start",
73
+ wrap: "nowrap",
74
+ gap: 0
75
+ }
76
+ });
77
+ var Flex = ({ className, ...props }) => {
78
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: variants({ ...props, className }), ...props });
79
+ };
80
+ Flex.displayName = "TeachInUI.Flex";
81
+ // Annotate the CommonJS export names for ESM import in node:
82
+ 0 && (module.exports = {
83
+ Flex
84
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../../chunk-JUIVZCH7.mjs";
3
+ import {
4
+ Flex
5
+ } from "../../../chunk-M5F723W7.mjs";
6
+ export {
7
+ Flex
8
+ };
@@ -0,0 +1,118 @@
1
+ import type { VariantProps } from "tailwind-variants";
2
+ import React from "react";
3
+ declare const variants: import("tailwind-variants").TVReturnType<{
4
+ columns: {
5
+ 1: string;
6
+ 2: string;
7
+ 3: string;
8
+ 4: string;
9
+ 6: string;
10
+ 12: string;
11
+ };
12
+ gap: {
13
+ 0: string;
14
+ 1: string;
15
+ 2: string;
16
+ 4: string;
17
+ 6: string;
18
+ 8: string;
19
+ };
20
+ align: {
21
+ start: string;
22
+ center: string;
23
+ end: string;
24
+ stretch: string;
25
+ };
26
+ justify: {
27
+ start: string;
28
+ center: string;
29
+ end: string;
30
+ between: string;
31
+ around: string;
32
+ evenly: string;
33
+ };
34
+ flow: {
35
+ row: string;
36
+ col: string;
37
+ "row-dense": string;
38
+ "col-dense": string;
39
+ };
40
+ }, undefined, "grid", {
41
+ columns: {
42
+ 1: string;
43
+ 2: string;
44
+ 3: string;
45
+ 4: string;
46
+ 6: string;
47
+ 12: string;
48
+ };
49
+ gap: {
50
+ 0: string;
51
+ 1: string;
52
+ 2: string;
53
+ 4: string;
54
+ 6: string;
55
+ 8: string;
56
+ };
57
+ align: {
58
+ start: string;
59
+ center: string;
60
+ end: string;
61
+ stretch: string;
62
+ };
63
+ justify: {
64
+ start: string;
65
+ center: string;
66
+ end: string;
67
+ between: string;
68
+ around: string;
69
+ evenly: string;
70
+ };
71
+ flow: {
72
+ row: string;
73
+ col: string;
74
+ "row-dense": string;
75
+ "col-dense": string;
76
+ };
77
+ }, undefined, import("tailwind-variants").TVReturnType<{
78
+ columns: {
79
+ 1: string;
80
+ 2: string;
81
+ 3: string;
82
+ 4: string;
83
+ 6: string;
84
+ 12: string;
85
+ };
86
+ gap: {
87
+ 0: string;
88
+ 1: string;
89
+ 2: string;
90
+ 4: string;
91
+ 6: string;
92
+ 8: string;
93
+ };
94
+ align: {
95
+ start: string;
96
+ center: string;
97
+ end: string;
98
+ stretch: string;
99
+ };
100
+ justify: {
101
+ start: string;
102
+ center: string;
103
+ end: string;
104
+ between: string;
105
+ around: string;
106
+ evenly: string;
107
+ };
108
+ flow: {
109
+ row: string;
110
+ col: string;
111
+ "row-dense": string;
112
+ "col-dense": string;
113
+ };
114
+ }, undefined, "grid", unknown, unknown, undefined>>;
115
+ export interface GridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof variants> {
116
+ }
117
+ export declare const Grid: React.FC<GridProps>;
118
+ export {};
@@ -0,0 +1,84 @@
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/layout/grid/grid.tsx
22
+ var grid_exports = {};
23
+ __export(grid_exports, {
24
+ Grid: () => Grid
25
+ });
26
+ module.exports = __toCommonJS(grid_exports);
27
+ var import_tailwind_variants = require("tailwind-variants");
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ var variants = (0, import_tailwind_variants.tv)({
30
+ base: "grid",
31
+ variants: {
32
+ columns: {
33
+ 1: "grid-cols-1",
34
+ 2: "grid-cols-2",
35
+ 3: "grid-cols-3",
36
+ 4: "grid-cols-4",
37
+ 6: "grid-cols-6",
38
+ 12: "grid-cols-12"
39
+ },
40
+ gap: {
41
+ 0: "gap-0",
42
+ 1: "gap-1",
43
+ 2: "gap-2",
44
+ 4: "gap-4",
45
+ 6: "gap-6",
46
+ 8: "gap-8"
47
+ },
48
+ align: {
49
+ start: "items-start",
50
+ center: "items-center",
51
+ end: "items-end",
52
+ stretch: "items-stretch"
53
+ },
54
+ justify: {
55
+ start: "justify-start",
56
+ center: "justify-center",
57
+ end: "justify-end",
58
+ between: "justify-between",
59
+ around: "justify-around",
60
+ evenly: "justify-evenly"
61
+ },
62
+ flow: {
63
+ row: "grid-flow-row",
64
+ col: "grid-flow-col",
65
+ "row-dense": "grid-flow-row-dense",
66
+ "col-dense": "grid-flow-col-dense"
67
+ }
68
+ },
69
+ defaultVariants: {
70
+ columns: 3,
71
+ gap: 4,
72
+ align: "stretch",
73
+ justify: "start",
74
+ flow: "row"
75
+ }
76
+ });
77
+ var Grid = ({ className, ...props }) => {
78
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: variants({ ...props, className }), ...props });
79
+ };
80
+ Grid.displayName = "TeachInUI.Grid";
81
+ // Annotate the CommonJS export names for ESM import in node:
82
+ 0 && (module.exports = {
83
+ Grid
84
+ });
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ Grid
4
+ } from "../../../chunk-W6NKLZ73.mjs";
5
+ export {
6
+ Grid
7
+ };
@@ -0,0 +1 @@
1
+ export * from "./grid";
@@ -0,0 +1,86 @@
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/layout/grid/index.ts
22
+ var grid_exports = {};
23
+ __export(grid_exports, {
24
+ Grid: () => Grid
25
+ });
26
+ module.exports = __toCommonJS(grid_exports);
27
+
28
+ // src/ui/layout/grid/grid.tsx
29
+ var import_tailwind_variants = require("tailwind-variants");
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var variants = (0, import_tailwind_variants.tv)({
32
+ base: "grid",
33
+ variants: {
34
+ columns: {
35
+ 1: "grid-cols-1",
36
+ 2: "grid-cols-2",
37
+ 3: "grid-cols-3",
38
+ 4: "grid-cols-4",
39
+ 6: "grid-cols-6",
40
+ 12: "grid-cols-12"
41
+ },
42
+ gap: {
43
+ 0: "gap-0",
44
+ 1: "gap-1",
45
+ 2: "gap-2",
46
+ 4: "gap-4",
47
+ 6: "gap-6",
48
+ 8: "gap-8"
49
+ },
50
+ align: {
51
+ start: "items-start",
52
+ center: "items-center",
53
+ end: "items-end",
54
+ stretch: "items-stretch"
55
+ },
56
+ justify: {
57
+ start: "justify-start",
58
+ center: "justify-center",
59
+ end: "justify-end",
60
+ between: "justify-between",
61
+ around: "justify-around",
62
+ evenly: "justify-evenly"
63
+ },
64
+ flow: {
65
+ row: "grid-flow-row",
66
+ col: "grid-flow-col",
67
+ "row-dense": "grid-flow-row-dense",
68
+ "col-dense": "grid-flow-col-dense"
69
+ }
70
+ },
71
+ defaultVariants: {
72
+ columns: 3,
73
+ gap: 4,
74
+ align: "stretch",
75
+ justify: "start",
76
+ flow: "row"
77
+ }
78
+ });
79
+ var Grid = ({ className, ...props }) => {
80
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: variants({ ...props, className }), ...props });
81
+ };
82
+ Grid.displayName = "TeachInUI.Grid";
83
+ // Annotate the CommonJS export names for ESM import in node:
84
+ 0 && (module.exports = {
85
+ Grid
86
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../../chunk-NDQAHQFL.mjs";
3
+ import {
4
+ Grid
5
+ } from "../../../chunk-W6NKLZ73.mjs";
6
+ export {
7
+ Grid
8
+ };
@@ -1,3 +1,4 @@
1
1
  export * from "./container";
2
2
  export * from "./page";
3
3
  export * from "./flex";
4
+ export * from "./grid";
@@ -35,6 +35,7 @@ __export(layout_exports, {
35
35
  Body: () => Body,
36
36
  Container: () => Container,
37
37
  Flex: () => Flex,
38
+ Grid: () => Grid,
38
39
  Header: () => Header,
39
40
  PageContent: () => PageContent,
40
41
  PageLoading: () => PageLoading,
@@ -48,7 +49,7 @@ __export(layout_exports, {
48
49
  });
49
50
  module.exports = __toCommonJS(layout_exports);
50
51
 
51
- // src/ui/layout/container.tsx
52
+ // src/ui/layout/container/container.tsx
52
53
  var import_react_slot = require("@radix-ui/react-slot");
53
54
  var import_tailwind_variants = require("tailwind-variants");
54
55
 
@@ -56,11 +57,9 @@ var import_tailwind_variants = require("tailwind-variants");
56
57
  var import_react = __toESM(require("react"));
57
58
  var import_spinner = require("@heroui/spinner");
58
59
  var import_jsx_runtime = require("react/jsx-runtime");
59
- var Spinner = import_react.default.forwardRef(
60
- ({ label = "\u0418\u0434\u0451\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430...", ...props }, ref) => {
61
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_spinner.Spinner, { ref, label, ...props });
62
- }
63
- );
60
+ var Spinner = import_react.default.forwardRef((props, ref) => {
61
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_spinner.Spinner, { ref, ...props });
62
+ });
64
63
  Spinner.displayName = "TeachInUI.Spinner";
65
64
 
66
65
  // src/ui/style/css.ts
@@ -70,13 +69,13 @@ function cn(...inputs) {
70
69
  return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
71
70
  }
72
71
 
73
- // src/ui/layout/container.tsx
72
+ // src/ui/layout/container/container.tsx
74
73
  var import_jsx_runtime2 = require("react/jsx-runtime");
75
74
  var variants = (0, import_tailwind_variants.tv)({
76
75
  base: "w-full mx-auto px-6",
77
76
  variants: {
78
77
  size: {
79
- xs: "max-w-screen-xs",
78
+ xs: "max-w-xs",
80
79
  sm: "max-w-screen-sm",
81
80
  md: "max-w-screen-md",
82
81
  lg: "max-w-screen-lg",
@@ -166,7 +165,7 @@ var import_jsx_runtime6 = require("react/jsx-runtime");
166
165
  var SectionLoading = () => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex min-h-[400px] items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Spinner, {}) });
167
166
  SectionLoading.displayName = "TeachInUI.SectionLoading";
168
167
 
169
- // src/ui/layout/flex.tsx
168
+ // src/ui/layout/flex/flex.tsx
170
169
  var import_tailwind_variants2 = require("tailwind-variants");
171
170
  var import_jsx_runtime7 = require("react/jsx-runtime");
172
171
  var variants2 = (0, import_tailwind_variants2.tv)({
@@ -219,12 +218,69 @@ var Flex = ({ className, ...props }) => {
219
218
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: variants2({ ...props, className }), ...props });
220
219
  };
221
220
  Flex.displayName = "TeachInUI.Flex";
221
+
222
+ // src/ui/layout/grid/grid.tsx
223
+ var import_tailwind_variants3 = require("tailwind-variants");
224
+ var import_jsx_runtime8 = require("react/jsx-runtime");
225
+ var variants3 = (0, import_tailwind_variants3.tv)({
226
+ base: "grid",
227
+ variants: {
228
+ columns: {
229
+ 1: "grid-cols-1",
230
+ 2: "grid-cols-2",
231
+ 3: "grid-cols-3",
232
+ 4: "grid-cols-4",
233
+ 6: "grid-cols-6",
234
+ 12: "grid-cols-12"
235
+ },
236
+ gap: {
237
+ 0: "gap-0",
238
+ 1: "gap-1",
239
+ 2: "gap-2",
240
+ 4: "gap-4",
241
+ 6: "gap-6",
242
+ 8: "gap-8"
243
+ },
244
+ align: {
245
+ start: "items-start",
246
+ center: "items-center",
247
+ end: "items-end",
248
+ stretch: "items-stretch"
249
+ },
250
+ justify: {
251
+ start: "justify-start",
252
+ center: "justify-center",
253
+ end: "justify-end",
254
+ between: "justify-between",
255
+ around: "justify-around",
256
+ evenly: "justify-evenly"
257
+ },
258
+ flow: {
259
+ row: "grid-flow-row",
260
+ col: "grid-flow-col",
261
+ "row-dense": "grid-flow-row-dense",
262
+ "col-dense": "grid-flow-col-dense"
263
+ }
264
+ },
265
+ defaultVariants: {
266
+ columns: 3,
267
+ gap: 4,
268
+ align: "stretch",
269
+ justify: "start",
270
+ flow: "row"
271
+ }
272
+ });
273
+ var Grid = ({ className, ...props }) => {
274
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: variants3({ ...props, className }), ...props });
275
+ };
276
+ Grid.displayName = "TeachInUI.Grid";
222
277
  // Annotate the CommonJS export names for ESM import in node:
223
278
  0 && (module.exports = {
224
279
  Actions,
225
280
  Body,
226
281
  Container,
227
282
  Flex,
283
+ Grid,
228
284
  Header,
229
285
  PageContent,
230
286
  PageLoading,