@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.
- 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-QU35SWES.mjs → chunk-TYMUQULA.mjs} +9 -5
- 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 +527 -55
- package/dist/index.mjs +110 -78
- package/dist/ui/actions/button/button.d.ts +0 -4
- package/dist/ui/actions/button/button.js +9 -6
- package/dist/ui/actions/button/button.mjs +1 -2
- package/dist/ui/actions/button/index.js +9 -5
- package/dist/ui/actions/button/index.mjs +1 -1
- package/dist/ui/actions/index.js +9 -5
- 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/alert/alert.js +0 -1
- package/dist/ui/feedback/alert/alert.mjs +0 -1
- package/dist/ui/feedback/chip/chip.js +0 -1
- package/dist/ui/feedback/chip/chip.mjs +0 -1
- package/dist/ui/feedback/index.js +4 -6
- package/dist/ui/feedback/index.mjs +8 -8
- 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 -6
- package/dist/ui/feedback/spinner/spinner.mjs +1 -2
- 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 -2
- package/dist/ui/feedback/tooltip/tooltip.mjs +1 -2
- package/dist/ui/form/index.mjs +14 -14
- package/dist/ui/form/rhf/fields/autocomplete-field.js +0 -1
- package/dist/ui/form/rhf/fields/autocomplete-field.mjs +6 -7
- package/dist/ui/form/rhf/fields/checkbox-field.js +0 -1
- package/dist/ui/form/rhf/fields/checkbox-field.mjs +6 -7
- package/dist/ui/form/rhf/fields/date-picker-field.js +0 -1
- package/dist/ui/form/rhf/fields/date-picker-field.mjs +6 -7
- package/dist/ui/form/rhf/fields/email-field.js +0 -1
- package/dist/ui/form/rhf/fields/email-field.mjs +6 -7
- package/dist/ui/form/rhf/fields/index.mjs +12 -12
- package/dist/ui/form/rhf/fields/input-field.js +0 -1
- package/dist/ui/form/rhf/fields/input-field.mjs +6 -7
- package/dist/ui/form/rhf/fields/select-field.js +0 -1
- package/dist/ui/form/rhf/fields/select-field.mjs +6 -7
- package/dist/ui/form/rhf/fields/switch-field.js +0 -1
- package/dist/ui/form/rhf/fields/switch-field.mjs +6 -7
- package/dist/ui/form/rhf/fields/text-field.js +0 -1
- package/dist/ui/form/rhf/fields/text-field.mjs +6 -7
- package/dist/ui/form/rhf/fields/textarea-field.js +0 -1
- package/dist/ui/form/rhf/fields/textarea-field.mjs +6 -7
- package/dist/ui/form/rhf/index.mjs +12 -12
- package/dist/ui/format/boolean.js +0 -1
- package/dist/ui/format/boolean.mjs +0 -1
- package/dist/ui/format/currency.js +0 -1
- package/dist/ui/format/currency.mjs +0 -1
- package/dist/ui/format/date.js +2 -3
- package/dist/ui/format/date.mjs +1 -2
- package/dist/ui/format/datetime.js +4 -4
- package/dist/ui/format/datetime.mjs +1 -2
- package/dist/ui/format/duration.js +0 -1
- package/dist/ui/format/duration.mjs +0 -1
- package/dist/ui/format/index.js +6 -5
- package/dist/ui/format/index.mjs +2 -2
- package/dist/ui/format/number.js +0 -1
- package/dist/ui/format/number.mjs +0 -1
- package/dist/ui/format/percent.js +0 -1
- package/dist/ui/format/percent.mjs +0 -1
- package/dist/ui/format/plural.js +0 -1
- package/dist/ui/format/plural.mjs +0 -1
- package/dist/ui/format/time.js +0 -1
- package/dist/ui/format/time.mjs +0 -1
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +527 -55
- package/dist/ui/index.mjs +110 -78
- package/dist/ui/inputs/index.mjs +10 -10
- package/dist/ui/inputs/switch/switch.js +0 -1
- package/dist/ui/inputs/switch/switch.mjs +0 -1
- package/dist/ui/layout/{container.d.ts → container/container.d.ts} +2 -2
- package/dist/ui/layout/{container.js → container/container.js} +3 -4
- 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 -2
- package/dist/ui/layout/{flex.mjs → flex/flex.mjs} +1 -2
- 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 +72 -48
- package/dist/ui/layout/page/breadcrumbs.js +0 -1
- package/dist/ui/layout/page/breadcrumbs.mjs +0 -1
- package/dist/ui/layout/page/index.js +3 -5
- package/dist/ui/layout/page/index.mjs +11 -11
- package/dist/ui/layout/page/page-loading.js +3 -5
- package/dist/ui/layout/page/page-loading.mjs +6 -6
- package/dist/ui/layout/page/section-loading.js +3 -5
- package/dist/ui/layout/page/section-loading.mjs +6 -6
- package/dist/ui/overlays/modal/modal.js +0 -1
- package/dist/ui/overlays/modal/modal.mjs +0 -1
- 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 -87
- package/dist/ui/theme/theme.css +0 -2
- /package/dist/ui/layout/{flex.d.ts → flex/flex.d.ts} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/theme/colors/blue.ts
|
|
4
|
+
var blue = {
|
|
5
|
+
50: "#f5f7fd",
|
|
6
|
+
100: "#dfe8fb",
|
|
7
|
+
200: "#b5c8f6",
|
|
8
|
+
300: "#80a2f1",
|
|
9
|
+
400: "#2e66e8",
|
|
10
|
+
500: "#2552ba",
|
|
11
|
+
600: "#1c3d8c",
|
|
12
|
+
700: "#173274",
|
|
13
|
+
800: "#0d1f45",
|
|
14
|
+
900: "#070f22"
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
blue
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/theme/colors/zinc.ts
|
|
4
|
+
var zinc = {
|
|
5
|
+
"50": "#fafafa",
|
|
6
|
+
"100": "#f4f4f5",
|
|
7
|
+
"200": "#e4e4e7",
|
|
8
|
+
"300": "#d4d4d8",
|
|
9
|
+
"400": "#a1a1aa",
|
|
10
|
+
"500": "#71717a",
|
|
11
|
+
"600": "#52525b",
|
|
12
|
+
"700": "#3f3f46",
|
|
13
|
+
"800": "#27272a",
|
|
14
|
+
"900": "#18181b"
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
zinc
|
|
19
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
semanticColors
|
|
4
|
+
} from "./chunk-X7ER4IDJ.mjs";
|
|
5
|
+
|
|
6
|
+
// src/ui/theme/theme.ts
|
|
7
|
+
import { heroui } from "@heroui/theme";
|
|
8
|
+
var theme = heroui({
|
|
9
|
+
layout: {
|
|
10
|
+
dividerWeight: "0.0625rem",
|
|
11
|
+
disabledOpacity: ".5",
|
|
12
|
+
fontSize: {
|
|
13
|
+
tiny: "0.75rem",
|
|
14
|
+
small: "0.875rem",
|
|
15
|
+
medium: "1rem",
|
|
16
|
+
large: "1.125rem"
|
|
17
|
+
},
|
|
18
|
+
lineHeight: {
|
|
19
|
+
tiny: "1rem",
|
|
20
|
+
small: "1.25rem",
|
|
21
|
+
medium: "1.5rem",
|
|
22
|
+
large: "1.75rem"
|
|
23
|
+
},
|
|
24
|
+
radius: {
|
|
25
|
+
small: "0.5rem",
|
|
26
|
+
medium: "0.75rem",
|
|
27
|
+
large: "1rem"
|
|
28
|
+
},
|
|
29
|
+
borderWidth: {
|
|
30
|
+
small: "0.0625rem",
|
|
31
|
+
medium: "0.125rem",
|
|
32
|
+
large: "0.1875rem"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
themes: {
|
|
36
|
+
light: {
|
|
37
|
+
colors: semanticColors.light
|
|
38
|
+
},
|
|
39
|
+
dark: {
|
|
40
|
+
colors: semanticColors.dark
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
theme
|
|
47
|
+
};
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
// src/ui/format/datetime.tsx
|
|
4
4
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
5
5
|
var defaultFormat = {
|
|
6
|
-
day: "
|
|
7
|
-
month: "
|
|
6
|
+
day: "numeric",
|
|
7
|
+
month: "long",
|
|
8
8
|
year: "numeric",
|
|
9
9
|
hour: "2-digit",
|
|
10
|
-
minute: "2-digit"
|
|
10
|
+
minute: "2-digit",
|
|
11
|
+
second: "2-digit"
|
|
11
12
|
};
|
|
12
13
|
function Datetime({
|
|
13
14
|
value,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/theme/colors/yellow.ts
|
|
4
|
+
var yellow = {
|
|
5
|
+
50: "#fffcec",
|
|
6
|
+
100: "#fff2ab",
|
|
7
|
+
200: "#ffe66e",
|
|
8
|
+
300: "#ffd739",
|
|
9
|
+
400: "#f5c20f",
|
|
10
|
+
500: "#daa800",
|
|
11
|
+
600: "#b38700",
|
|
12
|
+
700: "#836100",
|
|
13
|
+
800: "#4c3800",
|
|
14
|
+
900: "#171200"
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
yellow
|
|
19
|
+
};
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
cn
|
|
4
4
|
} from "./chunk-LOMRTWX5.mjs";
|
|
5
5
|
|
|
6
|
-
// src/ui/layout/container.tsx
|
|
6
|
+
// src/ui/layout/container/container.tsx
|
|
7
7
|
import { Slot } from "@radix-ui/react-slot";
|
|
8
8
|
import { tv } from "tailwind-variants";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -11,7 +11,7 @@ var variants = tv({
|
|
|
11
11
|
base: "w-full mx-auto px-6",
|
|
12
12
|
variants: {
|
|
13
13
|
size: {
|
|
14
|
-
xs: "max-w-
|
|
14
|
+
xs: "max-w-xs",
|
|
15
15
|
sm: "max-w-screen-sm",
|
|
16
16
|
md: "max-w-screen-md",
|
|
17
17
|
lg: "max-w-screen-lg",
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/surface/bento/bento.tsx
|
|
4
|
+
import { tv } from "tailwind-variants";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var bento = tv({
|
|
7
|
+
base: "rounded-xl p-6 transition-colors",
|
|
8
|
+
variants: {
|
|
9
|
+
color: {
|
|
10
|
+
default: "bg-default-50 text-default-700",
|
|
11
|
+
primary: "bg-primary-50 text-primary-700",
|
|
12
|
+
secondary: "bg-secondary-50 text-secondary-700",
|
|
13
|
+
success: "bg-success-50 text-success-700",
|
|
14
|
+
warning: "bg-warning-50 text-warning-700",
|
|
15
|
+
danger: "bg-danger-50 text-danger-700"
|
|
16
|
+
},
|
|
17
|
+
radius: {
|
|
18
|
+
none: "rounded-none",
|
|
19
|
+
sm: "rounded-md",
|
|
20
|
+
md: "rounded-lg",
|
|
21
|
+
lg: "rounded-xl",
|
|
22
|
+
full: "rounded-full"
|
|
23
|
+
},
|
|
24
|
+
shadow: {
|
|
25
|
+
none: "",
|
|
26
|
+
sm: "shadow-small",
|
|
27
|
+
md: "shadow-medium",
|
|
28
|
+
lg: "shadow-large"
|
|
29
|
+
},
|
|
30
|
+
bordered: {
|
|
31
|
+
false: "",
|
|
32
|
+
true: "border border-default-200"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
color: "default",
|
|
37
|
+
radius: "lg",
|
|
38
|
+
shadow: "none",
|
|
39
|
+
bordered: false
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
var Bento = ({ className, ...props }) => {
|
|
43
|
+
return /* @__PURE__ */ jsx("div", { className: bento({ ...props, className }), ...props });
|
|
44
|
+
};
|
|
45
|
+
Bento.displayName = "TeachInUI.Bento";
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
bento,
|
|
49
|
+
Bento
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/theme/colors/green.ts
|
|
4
|
+
var green = {
|
|
5
|
+
50: "#f2fbf6",
|
|
6
|
+
100: "#d9f2e3",
|
|
7
|
+
200: "#a3e0bb",
|
|
8
|
+
300: "#66cb8e",
|
|
9
|
+
400: "#00a843",
|
|
10
|
+
500: "#008636",
|
|
11
|
+
600: "#006528",
|
|
12
|
+
700: "#005421",
|
|
13
|
+
800: "#002f13",
|
|
14
|
+
900: "#00190a"
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
green
|
|
19
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
red
|
|
4
|
+
} from "./chunk-SLB2JE3N.mjs";
|
|
5
|
+
import {
|
|
6
|
+
shipgray
|
|
7
|
+
} from "./chunk-XYQVL4EX.mjs";
|
|
8
|
+
import {
|
|
9
|
+
yellow
|
|
10
|
+
} from "./chunk-HOVAPYGJ.mjs";
|
|
11
|
+
import {
|
|
12
|
+
zinc
|
|
13
|
+
} from "./chunk-3LOCA2SP.mjs";
|
|
14
|
+
import {
|
|
15
|
+
blue
|
|
16
|
+
} from "./chunk-2OPPNAW2.mjs";
|
|
17
|
+
import {
|
|
18
|
+
cyan
|
|
19
|
+
} from "./chunk-OW6U64MG.mjs";
|
|
20
|
+
import {
|
|
21
|
+
green
|
|
22
|
+
} from "./chunk-LUERGYYZ.mjs";
|
|
23
|
+
import {
|
|
24
|
+
pink
|
|
25
|
+
} from "./chunk-YBQFG6QJ.mjs";
|
|
26
|
+
import {
|
|
27
|
+
purple
|
|
28
|
+
} from "./chunk-XKX5LFH7.mjs";
|
|
29
|
+
|
|
30
|
+
// src/ui/theme/colors/common.ts
|
|
31
|
+
var commonColors = {
|
|
32
|
+
white: "#ffffff",
|
|
33
|
+
black: "#111016",
|
|
34
|
+
blue,
|
|
35
|
+
green,
|
|
36
|
+
pink,
|
|
37
|
+
purple,
|
|
38
|
+
red,
|
|
39
|
+
shipgray,
|
|
40
|
+
yellow,
|
|
41
|
+
cyan,
|
|
42
|
+
zinc
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
commonColors
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -3,12 +3,15 @@
|
|
|
3
3
|
// src/ui/data/pagination/pagination.tsx
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { Pagination as HeroUIPagination } from "@heroui/pagination";
|
|
6
|
+
import { PaginationItemType as HeroUIPaginationItemType } from "@heroui/pagination";
|
|
6
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
var PaginationItemType = HeroUIPaginationItemType;
|
|
7
9
|
var Pagination = React.forwardRef(({ pages, ...props }, ref) => {
|
|
8
10
|
return /* @__PURE__ */ jsx(HeroUIPagination, { ref, isCompact: true, showControls: true, showShadow: true, total: pages, ...props });
|
|
9
11
|
});
|
|
10
12
|
Pagination.displayName = "TeachInUI.Pagination";
|
|
11
13
|
|
|
12
14
|
export {
|
|
15
|
+
PaginationItemType,
|
|
13
16
|
Pagination
|
|
14
17
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/theme/colors/cyan.ts
|
|
4
|
+
var cyan = {
|
|
5
|
+
50: "#f4fdfe",
|
|
6
|
+
100: "#ddf9fd",
|
|
7
|
+
200: "#a9effb",
|
|
8
|
+
300: "#69e3f8",
|
|
9
|
+
400: "#1cd5f4",
|
|
10
|
+
500: "#18b3cd",
|
|
11
|
+
600: "#12889c",
|
|
12
|
+
700: "#0f6f7f",
|
|
13
|
+
800: "#084049",
|
|
14
|
+
900: "#05262c"
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
cyan
|
|
19
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
semanticColors
|
|
4
|
+
} from "./chunk-X7ER4IDJ.mjs";
|
|
5
|
+
import {
|
|
6
|
+
commonColors
|
|
7
|
+
} from "./chunk-NCM6KIQH.mjs";
|
|
8
|
+
|
|
9
|
+
// src/ui/theme/colors/index.ts
|
|
10
|
+
var colors = {
|
|
11
|
+
...commonColors,
|
|
12
|
+
...semanticColors
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
colors
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/theme/colors/red.ts
|
|
4
|
+
var red = {
|
|
5
|
+
50: "#fdf4f3",
|
|
6
|
+
100: "#f8dfdb",
|
|
7
|
+
200: "#eeb2a9",
|
|
8
|
+
300: "#e37f70",
|
|
9
|
+
400: "#d02a11",
|
|
10
|
+
500: "#a6220e",
|
|
11
|
+
600: "#7d190a",
|
|
12
|
+
700: "#681509",
|
|
13
|
+
800: "#3a0c05",
|
|
14
|
+
900: "#1f0603"
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
red
|
|
19
|
+
};
|
|
@@ -6,7 +6,7 @@ import { Tooltip as HeroUITooltip } from "@heroui/tooltip";
|
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
var Tooltip = React.forwardRef(
|
|
8
8
|
({ placement = "bottom", ...props }, ref) => {
|
|
9
|
-
return /* @__PURE__ */ jsx(HeroUITooltip, { ref,
|
|
9
|
+
return /* @__PURE__ */ jsx(HeroUITooltip, { ref, placement, ...props });
|
|
10
10
|
}
|
|
11
11
|
);
|
|
12
12
|
Tooltip.displayName = "TeachInUI.Tooltip";
|
|
@@ -7,11 +7,8 @@ import { extendVariants } from "@heroui/system";
|
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
var BaseButton = extendVariants(HeroUIButton, {
|
|
9
9
|
variants: {
|
|
10
|
-
color: {
|
|
11
|
-
primary: "bg-primary-400"
|
|
12
|
-
},
|
|
13
10
|
size: {
|
|
14
|
-
lg: "min-w-20 h-14 text-base gap-2
|
|
11
|
+
lg: "px-6 min-w-20 h-14 text-base gap-2 rounded-large"
|
|
15
12
|
}
|
|
16
13
|
},
|
|
17
14
|
defaultVariants: {
|
|
@@ -19,7 +16,14 @@ var BaseButton = extendVariants(HeroUIButton, {
|
|
|
19
16
|
}
|
|
20
17
|
});
|
|
21
18
|
var Button = React.forwardRef((props, ref) => {
|
|
22
|
-
return /* @__PURE__ */ jsx(
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
BaseButton,
|
|
21
|
+
{
|
|
22
|
+
ref,
|
|
23
|
+
className: props.variant === "flat" && props.color === "default" ? "bg-default-flat/25 !text-default-800" : props.className,
|
|
24
|
+
...props
|
|
25
|
+
}
|
|
26
|
+
);
|
|
23
27
|
});
|
|
24
28
|
Button.displayName = "TeachInUI.Button";
|
|
25
29
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/theme/swap-color-values.ts
|
|
4
|
+
function swapColorValues(colors) {
|
|
5
|
+
const swappedColors = {};
|
|
6
|
+
const keys = Object.keys(colors);
|
|
7
|
+
const length = keys.length;
|
|
8
|
+
for (let i = 0; i < length / 2; i++) {
|
|
9
|
+
const key1 = keys[i];
|
|
10
|
+
const key2 = keys[length - 1 - i];
|
|
11
|
+
swappedColors[key1] = colors[key2];
|
|
12
|
+
swappedColors[key2] = colors[key1];
|
|
13
|
+
}
|
|
14
|
+
if (length % 2 !== 0) {
|
|
15
|
+
const middleKey = keys[Math.floor(length / 2)];
|
|
16
|
+
swappedColors[middleKey] = colors[middleKey];
|
|
17
|
+
}
|
|
18
|
+
return swappedColors;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
swapColorValues
|
|
23
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/layout/grid/grid.tsx
|
|
4
|
+
import { tv } from "tailwind-variants";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var variants = tv({
|
|
7
|
+
base: "grid",
|
|
8
|
+
variants: {
|
|
9
|
+
columns: {
|
|
10
|
+
1: "grid-cols-1",
|
|
11
|
+
2: "grid-cols-2",
|
|
12
|
+
3: "grid-cols-3",
|
|
13
|
+
4: "grid-cols-4",
|
|
14
|
+
6: "grid-cols-6",
|
|
15
|
+
12: "grid-cols-12"
|
|
16
|
+
},
|
|
17
|
+
gap: {
|
|
18
|
+
0: "gap-0",
|
|
19
|
+
1: "gap-1",
|
|
20
|
+
2: "gap-2",
|
|
21
|
+
4: "gap-4",
|
|
22
|
+
6: "gap-6",
|
|
23
|
+
8: "gap-8"
|
|
24
|
+
},
|
|
25
|
+
align: {
|
|
26
|
+
start: "items-start",
|
|
27
|
+
center: "items-center",
|
|
28
|
+
end: "items-end",
|
|
29
|
+
stretch: "items-stretch"
|
|
30
|
+
},
|
|
31
|
+
justify: {
|
|
32
|
+
start: "justify-start",
|
|
33
|
+
center: "justify-center",
|
|
34
|
+
end: "justify-end",
|
|
35
|
+
between: "justify-between",
|
|
36
|
+
around: "justify-around",
|
|
37
|
+
evenly: "justify-evenly"
|
|
38
|
+
},
|
|
39
|
+
flow: {
|
|
40
|
+
row: "grid-flow-row",
|
|
41
|
+
col: "grid-flow-col",
|
|
42
|
+
"row-dense": "grid-flow-row-dense",
|
|
43
|
+
"col-dense": "grid-flow-col-dense"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
defaultVariants: {
|
|
47
|
+
columns: 3,
|
|
48
|
+
gap: 4,
|
|
49
|
+
align: "stretch",
|
|
50
|
+
justify: "start",
|
|
51
|
+
flow: "row"
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
var Grid = ({ className, ...props }) => {
|
|
55
|
+
return /* @__PURE__ */ jsx("div", { className: variants({ ...props, className }), ...props });
|
|
56
|
+
};
|
|
57
|
+
Grid.displayName = "TeachInUI.Grid";
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
Grid
|
|
61
|
+
};
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
commonColors
|
|
4
|
+
} from "./chunk-NCM6KIQH.mjs";
|
|
5
|
+
import {
|
|
6
|
+
swapColorValues
|
|
7
|
+
} from "./chunk-VIPLRFPR.mjs";
|
|
8
|
+
|
|
9
|
+
// src/ui/theme/colors/semantic.ts
|
|
10
|
+
var base = {
|
|
11
|
+
light: {
|
|
12
|
+
background: {
|
|
13
|
+
DEFAULT: commonColors.white
|
|
14
|
+
},
|
|
15
|
+
foreground: {
|
|
16
|
+
...commonColors.shipgray,
|
|
17
|
+
DEFAULT: commonColors.shipgray[800]
|
|
18
|
+
},
|
|
19
|
+
divider: {
|
|
20
|
+
DEFAULT: "rgba(17, 17, 6, 0.15)"
|
|
21
|
+
},
|
|
22
|
+
focus: {
|
|
23
|
+
DEFAULT: commonColors.blue[400]
|
|
24
|
+
},
|
|
25
|
+
overlay: {
|
|
26
|
+
DEFAULT: "#1110164c"
|
|
27
|
+
},
|
|
28
|
+
content1: {
|
|
29
|
+
DEFAULT: commonColors.shipgray[50],
|
|
30
|
+
foreground: commonColors.shipgray[900]
|
|
31
|
+
},
|
|
32
|
+
content2: {
|
|
33
|
+
DEFAULT: commonColors.shipgray[100],
|
|
34
|
+
foreground: commonColors.shipgray[800]
|
|
35
|
+
},
|
|
36
|
+
content3: {
|
|
37
|
+
DEFAULT: commonColors.shipgray[200],
|
|
38
|
+
foreground: commonColors.shipgray[700]
|
|
39
|
+
},
|
|
40
|
+
content4: {
|
|
41
|
+
DEFAULT: commonColors.shipgray[300],
|
|
42
|
+
foreground: commonColors.shipgray[600]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
dark: {
|
|
46
|
+
background: {
|
|
47
|
+
DEFAULT: commonColors.black
|
|
48
|
+
},
|
|
49
|
+
foreground: {
|
|
50
|
+
...swapColorValues(commonColors.shipgray),
|
|
51
|
+
DEFAULT: commonColors.shipgray[50]
|
|
52
|
+
},
|
|
53
|
+
focus: {
|
|
54
|
+
DEFAULT: commonColors.blue[500]
|
|
55
|
+
},
|
|
56
|
+
overlay: {
|
|
57
|
+
DEFAULT: "#1110164C"
|
|
58
|
+
},
|
|
59
|
+
divider: {
|
|
60
|
+
DEFAULT: "rgba(255, 255, 255, 0.15)"
|
|
61
|
+
},
|
|
62
|
+
content1: {
|
|
63
|
+
DEFAULT: commonColors.shipgray[800],
|
|
64
|
+
foreground: commonColors.shipgray[50]
|
|
65
|
+
},
|
|
66
|
+
content2: {
|
|
67
|
+
DEFAULT: commonColors.shipgray[700],
|
|
68
|
+
foreground: commonColors.shipgray[100]
|
|
69
|
+
},
|
|
70
|
+
content3: {
|
|
71
|
+
DEFAULT: commonColors.shipgray[600],
|
|
72
|
+
foreground: commonColors.shipgray[200]
|
|
73
|
+
},
|
|
74
|
+
content4: {
|
|
75
|
+
DEFAULT: commonColors.shipgray[500],
|
|
76
|
+
foreground: commonColors.shipgray[300]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
var themeColorsLight = {
|
|
81
|
+
...base.light,
|
|
82
|
+
default: {
|
|
83
|
+
...commonColors.shipgray,
|
|
84
|
+
foreground: commonColors.black,
|
|
85
|
+
flat: commonColors.shipgray[300],
|
|
86
|
+
DEFAULT: commonColors.shipgray[100]
|
|
87
|
+
},
|
|
88
|
+
primary: {
|
|
89
|
+
...commonColors.blue,
|
|
90
|
+
foreground: commonColors.white,
|
|
91
|
+
flat: commonColors.blue[500],
|
|
92
|
+
DEFAULT: commonColors.blue[400]
|
|
93
|
+
},
|
|
94
|
+
secondary: {
|
|
95
|
+
...commonColors.purple,
|
|
96
|
+
foreground: commonColors.white,
|
|
97
|
+
flat: commonColors.purple[500],
|
|
98
|
+
DEFAULT: commonColors.purple[400]
|
|
99
|
+
},
|
|
100
|
+
success: {
|
|
101
|
+
...commonColors.green,
|
|
102
|
+
foreground: commonColors.black,
|
|
103
|
+
flat: commonColors.green[500],
|
|
104
|
+
DEFAULT: commonColors.green[400]
|
|
105
|
+
},
|
|
106
|
+
warning: {
|
|
107
|
+
...commonColors.yellow,
|
|
108
|
+
foreground: commonColors.black,
|
|
109
|
+
flat: commonColors.yellow[500],
|
|
110
|
+
DEFAULT: commonColors.yellow[500]
|
|
111
|
+
},
|
|
112
|
+
danger: {
|
|
113
|
+
...commonColors.red,
|
|
114
|
+
foreground: commonColors.white,
|
|
115
|
+
flat: commonColors.red[500],
|
|
116
|
+
DEFAULT: commonColors.red[400]
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
var themeColorsDark = {
|
|
120
|
+
...base.dark,
|
|
121
|
+
default: {
|
|
122
|
+
...swapColorValues(commonColors.shipgray),
|
|
123
|
+
foreground: commonColors.white,
|
|
124
|
+
flat: commonColors.shipgray[600],
|
|
125
|
+
DEFAULT: commonColors.shipgray[700]
|
|
126
|
+
},
|
|
127
|
+
primary: {
|
|
128
|
+
...swapColorValues(commonColors.blue),
|
|
129
|
+
foreground: commonColors.blue[500],
|
|
130
|
+
flat: commonColors.blue[500],
|
|
131
|
+
DEFAULT: commonColors.blue[500]
|
|
132
|
+
},
|
|
133
|
+
secondary: {
|
|
134
|
+
...swapColorValues(commonColors.purple),
|
|
135
|
+
foreground: commonColors.white,
|
|
136
|
+
flat: commonColors.purple[400],
|
|
137
|
+
DEFAULT: commonColors.purple[400]
|
|
138
|
+
},
|
|
139
|
+
success: {
|
|
140
|
+
...swapColorValues(commonColors.green),
|
|
141
|
+
foreground: commonColors.black,
|
|
142
|
+
flat: commonColors.green[500],
|
|
143
|
+
DEFAULT: commonColors.green[500]
|
|
144
|
+
},
|
|
145
|
+
warning: {
|
|
146
|
+
...swapColorValues(commonColors.yellow),
|
|
147
|
+
foreground: commonColors.black,
|
|
148
|
+
flat: commonColors.yellow[500],
|
|
149
|
+
DEFAULT: commonColors.yellow[500]
|
|
150
|
+
},
|
|
151
|
+
danger: {
|
|
152
|
+
...swapColorValues(commonColors.red),
|
|
153
|
+
foreground: commonColors.white,
|
|
154
|
+
flat: commonColors.red[500],
|
|
155
|
+
DEFAULT: commonColors.red[500]
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
var semanticColors = {
|
|
159
|
+
light: themeColorsLight,
|
|
160
|
+
dark: themeColorsDark
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
export {
|
|
164
|
+
themeColorsLight,
|
|
165
|
+
themeColorsDark,
|
|
166
|
+
semanticColors
|
|
167
|
+
};
|