@teach-in/react 0.1.1 → 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.
- package/dist/{chunk-HH7MLUOF.mjs → chunk-25XG46X6.mjs} +1 -1
- package/dist/chunk-2OPPNAW2.mjs +19 -0
- package/dist/chunk-3LOCA2SP.mjs +19 -0
- package/dist/chunk-545OBZ4O.mjs +47 -0
- package/dist/{chunk-2W4N27WQ.mjs → chunk-6NZ4IHNU.mjs} +4 -3
- package/dist/{chunk-CLDAITOP.mjs → chunk-BUVPBB4J.mjs} +2 -2
- package/dist/chunk-CAJWTQDB.mjs +1 -0
- package/dist/chunk-EJQH6CYW.mjs +1 -0
- package/dist/chunk-HOVAPYGJ.mjs +19 -0
- package/dist/{chunk-S2TB4GD2.mjs → chunk-IZ5KKF6P.mjs} +2 -2
- package/dist/chunk-J3OZNLTZ.mjs +50 -0
- package/dist/chunk-JUIVZCH7.mjs +1 -0
- package/dist/chunk-JWMPI5AZ.mjs +1 -0
- package/dist/chunk-LUERGYYZ.mjs +19 -0
- package/dist/{chunk-CUVF3U67.mjs → chunk-M5F723W7.mjs} +1 -1
- package/dist/chunk-NCM6KIQH.mjs +47 -0
- package/dist/chunk-NDQAHQFL.mjs +1 -0
- package/dist/{chunk-AS4T5M6E.mjs → chunk-O5T4GUJH.mjs} +3 -0
- package/dist/chunk-OW6U64MG.mjs +19 -0
- package/dist/chunk-PFLROV3C.mjs +17 -0
- package/dist/chunk-PON4ZQKG.mjs +1 -0
- package/dist/chunk-SLB2JE3N.mjs +19 -0
- package/dist/{chunk-PEB5ZH76.mjs → chunk-SPED4RBS.mjs} +1 -1
- package/dist/{chunk-GRWFJ4FP.mjs → chunk-TJBXXTYS.mjs} +1 -1
- package/dist/{chunk-WVF5LVDJ.mjs → chunk-TYMUQULA.mjs} +1 -1
- package/dist/chunk-VIPLRFPR.mjs +23 -0
- package/dist/chunk-W6NKLZ73.mjs +61 -0
- package/dist/chunk-X7ER4IDJ.mjs +167 -0
- package/dist/chunk-XKX5LFH7.mjs +19 -0
- package/dist/chunk-XYQVL4EX.mjs +19 -0
- package/dist/chunk-YBQFG6QJ.mjs +19 -0
- package/dist/{chunk-LR4R7GFR.mjs → chunk-ZXCQ73RT.mjs} +3 -5
- package/dist/index.js +519 -51
- package/dist/index.mjs +94 -62
- package/dist/ui/actions/button/button.js +1 -1
- package/dist/ui/actions/button/button.mjs +1 -1
- package/dist/ui/actions/button/index.js +1 -1
- package/dist/ui/actions/button/index.mjs +1 -1
- package/dist/ui/actions/index.js +1 -1
- package/dist/ui/actions/index.mjs +1 -1
- package/dist/ui/data/index.js +1 -0
- package/dist/ui/data/index.mjs +1 -1
- package/dist/ui/data/pagination/index.js +1 -0
- package/dist/ui/data/pagination/index.mjs +1 -1
- package/dist/ui/data/pagination/pagination.d.ts +6 -2
- package/dist/ui/data/pagination/pagination.js +6 -2
- package/dist/ui/data/pagination/pagination.mjs +5 -3
- package/dist/ui/feedback/alert/alert.d.ts +1 -1
- package/dist/ui/feedback/index.js +4 -6
- package/dist/ui/feedback/index.mjs +6 -6
- package/dist/ui/feedback/spinner/index.js +3 -5
- package/dist/ui/feedback/spinner/index.mjs +1 -1
- package/dist/ui/feedback/spinner/spinner.d.ts +8 -4
- package/dist/ui/feedback/spinner/spinner.js +3 -5
- package/dist/ui/feedback/spinner/spinner.mjs +1 -1
- package/dist/ui/feedback/tooltip/index.js +1 -1
- package/dist/ui/feedback/tooltip/index.mjs +1 -1
- package/dist/ui/feedback/tooltip/tooltip.d.ts +2 -2
- package/dist/ui/feedback/tooltip/tooltip.js +1 -1
- package/dist/ui/feedback/tooltip/tooltip.mjs +1 -1
- package/dist/ui/form/index.mjs +11 -11
- package/dist/ui/form/rhf/fields/autocomplete-field.mjs +5 -5
- package/dist/ui/form/rhf/fields/checkbox-field.mjs +5 -5
- package/dist/ui/form/rhf/fields/date-picker-field.mjs +5 -5
- package/dist/ui/form/rhf/fields/email-field.mjs +5 -5
- package/dist/ui/form/rhf/fields/index.mjs +11 -11
- package/dist/ui/form/rhf/fields/input-field.mjs +5 -5
- package/dist/ui/form/rhf/fields/select-field.mjs +5 -5
- package/dist/ui/form/rhf/fields/switch-field.mjs +5 -5
- package/dist/ui/form/rhf/fields/text-field.mjs +5 -5
- package/dist/ui/form/rhf/fields/textarea-field.mjs +5 -5
- package/dist/ui/form/rhf/index.mjs +11 -11
- package/dist/ui/format/date.js +2 -2
- package/dist/ui/format/date.mjs +1 -1
- package/dist/ui/format/datetime.js +4 -3
- package/dist/ui/format/datetime.mjs +1 -1
- package/dist/ui/format/index.js +6 -5
- package/dist/ui/format/index.mjs +14 -14
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +519 -51
- package/dist/ui/index.mjs +94 -62
- package/dist/ui/inputs/index.mjs +11 -11
- package/dist/ui/layout/{container.d.ts → container/container.d.ts} +2 -2
- package/dist/ui/layout/{container.js → container/container.js} +3 -3
- package/dist/ui/layout/container/container.mjs +107 -0
- package/dist/ui/layout/container/index.d.ts +1 -0
- package/dist/ui/layout/container/index.js +66 -0
- package/dist/ui/layout/container/index.mjs +107 -0
- package/dist/ui/layout/{flex.js → flex/flex.js} +1 -1
- package/dist/ui/layout/{flex.mjs → flex/flex.mjs} +1 -1
- package/dist/ui/layout/flex/index.d.ts +1 -0
- package/dist/ui/layout/flex/index.js +84 -0
- package/dist/ui/layout/flex/index.mjs +8 -0
- package/dist/ui/layout/grid/grid.d.ts +118 -0
- package/dist/ui/layout/grid/grid.js +84 -0
- package/dist/ui/layout/grid/grid.mjs +7 -0
- package/dist/ui/layout/grid/index.d.ts +1 -0
- package/dist/ui/layout/grid/index.js +86 -0
- package/dist/ui/layout/grid/index.mjs +8 -0
- package/dist/ui/layout/index.d.ts +1 -0
- package/dist/ui/layout/index.js +65 -9
- package/dist/ui/layout/index.mjs +59 -35
- package/dist/ui/layout/page/index.js +3 -5
- package/dist/ui/layout/page/index.mjs +6 -6
- package/dist/ui/layout/page/page-loading.js +3 -5
- package/dist/ui/layout/page/page-loading.mjs +5 -5
- package/dist/ui/layout/page/section-loading.js +3 -5
- package/dist/ui/layout/page/section-loading.mjs +5 -5
- package/dist/ui/surface/bento/bento.d.ts +86 -0
- package/dist/ui/surface/bento/bento.js +74 -0
- package/dist/ui/surface/bento/bento.mjs +9 -0
- package/dist/ui/surface/bento/index.d.ts +1 -0
- package/dist/ui/surface/bento/index.js +76 -0
- package/dist/ui/surface/bento/index.mjs +10 -0
- package/dist/ui/surface/index.d.ts +1 -0
- package/dist/ui/surface/index.js +76 -0
- package/dist/ui/surface/index.mjs +11 -0
- package/dist/ui/theme/colors/blue.d.ts +12 -0
- package/dist/ui/theme/colors/blue.js +42 -0
- package/dist/ui/theme/colors/blue.mjs +7 -0
- package/dist/ui/theme/colors/common.d.ts +113 -0
- package/dist/ui/theme/colors/common.js +171 -0
- package/dist/ui/theme/colors/common.mjs +16 -0
- package/dist/ui/theme/colors/cyan.d.ts +12 -0
- package/dist/ui/theme/colors/cyan.js +42 -0
- package/dist/ui/theme/colors/cyan.mjs +7 -0
- package/dist/ui/theme/colors/flat.d.ts +22 -0
- package/dist/ui/theme/colors/flat.js +52 -0
- package/dist/ui/theme/colors/flat.mjs +28 -0
- package/dist/ui/theme/colors/green.d.ts +12 -0
- package/dist/ui/theme/colors/green.js +42 -0
- package/dist/ui/theme/colors/green.mjs +7 -0
- package/dist/ui/theme/colors/index.d.ts +118 -0
- package/dist/ui/theme/colors/index.js +353 -0
- package/dist/ui/theme/colors/index.mjs +26 -0
- package/dist/ui/theme/colors/pink.d.ts +12 -0
- package/dist/ui/theme/colors/pink.js +42 -0
- package/dist/ui/theme/colors/pink.mjs +7 -0
- package/dist/ui/theme/colors/purple.d.ts +12 -0
- package/dist/ui/theme/colors/purple.js +42 -0
- package/dist/ui/theme/colors/purple.mjs +7 -0
- package/dist/ui/theme/colors/red.d.ts +12 -0
- package/dist/ui/theme/colors/red.js +42 -0
- package/dist/ui/theme/colors/red.mjs +7 -0
- package/dist/ui/theme/colors/semantic.d.ts +7 -0
- package/dist/ui/theme/colors/semantic.js +347 -0
- package/dist/ui/theme/colors/semantic.mjs +22 -0
- package/dist/ui/theme/colors/shipgray.d.ts +12 -0
- package/dist/ui/theme/colors/shipgray.js +42 -0
- package/dist/ui/theme/colors/shipgray.mjs +7 -0
- package/dist/ui/theme/colors/types.d.ts +38 -0
- package/dist/ui/theme/colors/types.js +19 -0
- package/dist/ui/theme/colors/types.mjs +2 -0
- package/dist/ui/theme/colors/yellow.d.ts +12 -0
- package/dist/ui/theme/colors/yellow.js +42 -0
- package/dist/ui/theme/colors/yellow.mjs +7 -0
- package/dist/ui/theme/colors/zinc.d.ts +12 -0
- package/dist/ui/theme/colors/zinc.js +42 -0
- package/dist/ui/theme/colors/zinc.mjs +7 -0
- package/dist/ui/theme/colors.d.ts +1 -0
- package/dist/ui/theme/colors.js +353 -0
- package/dist/ui/theme/colors.mjs +27 -0
- package/dist/ui/theme/index.js +364 -2
- package/dist/ui/theme/index.mjs +20 -2
- package/dist/ui/theme/swap-color-values.d.ts +1 -0
- package/dist/ui/theme/swap-color-values.js +46 -0
- package/dist/ui/theme/swap-color-values.mjs +7 -0
- package/dist/ui/theme/theme.d.ts +1 -2
- package/dist/ui/theme/theme.js +332 -183
- package/dist/ui/theme/theme.mjs +18 -3
- package/package.json +4 -3
- package/dist/chunk-FELJP42D.mjs +0 -220
- package/dist/ui/layout/container.mjs +0 -86
- package/dist/ui/theme/theme.css +0 -2
- /package/dist/ui/layout/{flex.d.ts → flex/flex.d.ts} +0 -0
|
@@ -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,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 @@
|
|
|
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
|
+
});
|
package/dist/ui/layout/index.js
CHANGED
|
@@ -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
|
-
|
|
61
|
-
|
|
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-
|
|
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,
|