@teach-in/react 1.3.0 → 1.5.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-2UHA3DYG.mjs +62 -0
- package/dist/{chunk-LJIVY6GU.mjs → chunk-46SKVFMZ.mjs} +1 -1
- package/dist/{chunk-JDFRAN4S.mjs → chunk-5FFWQB7D.mjs} +12 -2
- package/dist/{chunk-544SDU73.mjs → chunk-BBUPZCY6.mjs} +1 -1
- package/dist/chunk-C2VWADF5.mjs +34 -0
- package/dist/{chunk-NLHQDWUK.mjs → chunk-CKJ5U5Q4.mjs} +1 -1
- package/dist/chunk-CUEG2BFV.mjs +34 -0
- package/dist/chunk-GTE5VEBV.mjs +68 -0
- package/dist/{chunk-CETCW7DS.mjs → chunk-IU2JYI7W.mjs} +1 -1
- package/dist/{chunk-KTUGFQWJ.mjs → chunk-KTWHCUYV.mjs} +1 -1
- package/dist/chunk-MCQGBAUS.mjs +73 -0
- package/dist/chunk-NSU66J5E.mjs +59 -0
- package/dist/{chunk-UFYLYN5Z.mjs → chunk-QFWSQOF6.mjs} +20 -2
- package/dist/{chunk-R7LDL5CU.mjs → chunk-R46SWVWL.mjs} +1 -1
- package/dist/{chunk-WFNNN6WU.mjs → chunk-RPIOTLYT.mjs} +1 -1
- package/dist/chunk-SEJXJZSK.mjs +64 -0
- package/dist/chunk-TUIN5YJW.mjs +33 -0
- package/dist/chunk-UQAG7TKJ.mjs +1 -0
- package/dist/chunk-VXYV37IM.mjs +74 -0
- package/dist/{chunk-J3OZNLTZ.mjs → chunk-WG4IPOHE.mjs} +5 -5
- package/dist/{chunk-AFVGHUW2.mjs → chunk-YZB4VBX7.mjs} +24 -2
- package/dist/index.js +658 -247
- package/dist/index.mjs +200 -184
- package/dist/ui/data/index.mjs +8 -8
- package/dist/ui/feedback/index.mjs +11 -11
- package/dist/ui/feedback/progress/index.mjs +3 -3
- package/dist/ui/form/index.js +447 -106
- package/dist/ui/form/index.mjs +30 -20
- package/dist/ui/form/rhf/fields/autocomplete-field.mjs +19 -13
- package/dist/ui/form/rhf/fields/checkbox-field.mjs +19 -13
- package/dist/ui/form/rhf/fields/date-picker-field.mjs +19 -13
- package/dist/ui/form/rhf/fields/email-field.js +147 -10
- package/dist/ui/form/rhf/fields/email-field.mjs +20 -14
- package/dist/ui/form/rhf/fields/index.d.ts +1 -0
- package/dist/ui/form/rhf/fields/index.js +443 -102
- package/dist/ui/form/rhf/fields/index.mjs +30 -20
- package/dist/ui/form/rhf/fields/input-field.js +153 -6
- package/dist/ui/form/rhf/fields/input-field.mjs +20 -14
- package/dist/ui/form/rhf/fields/radio-field.mjs +19 -13
- package/dist/ui/form/rhf/fields/search-field.d.ts +10 -0
- package/dist/ui/form/rhf/fields/search-field.js +296 -0
- package/dist/ui/form/rhf/fields/search-field.mjs +37 -0
- package/dist/ui/form/rhf/fields/select-field.js +136 -26
- package/dist/ui/form/rhf/fields/select-field.mjs +20 -14
- package/dist/ui/form/rhf/fields/switch-field.mjs +19 -13
- package/dist/ui/form/rhf/fields/text-field.js +147 -10
- package/dist/ui/form/rhf/fields/text-field.mjs +20 -14
- package/dist/ui/form/rhf/fields/textarea-field.mjs +19 -13
- package/dist/ui/form/rhf/index.js +443 -102
- package/dist/ui/form/rhf/index.mjs +30 -20
- package/dist/ui/format/index.mjs +6 -6
- package/dist/ui/index.js +658 -247
- package/dist/ui/index.mjs +199 -183
- package/dist/ui/inputs/clear-button.d.ts +5 -0
- package/dist/ui/inputs/clear-button.js +67 -0
- package/dist/ui/inputs/clear-button.mjs +8 -0
- package/dist/ui/inputs/email/email.js +144 -7
- package/dist/ui/inputs/email/email.mjs +4 -2
- package/dist/ui/inputs/email/index.js +144 -7
- package/dist/ui/inputs/email/index.mjs +4 -2
- package/dist/ui/inputs/index.d.ts +2 -0
- package/dist/ui/inputs/index.js +396 -59
- package/dist/ui/inputs/index.mjs +33 -21
- package/dist/ui/inputs/input/index.js +140 -3
- package/dist/ui/inputs/input/index.mjs +3 -1
- package/dist/ui/inputs/input/input.d.ts +1 -0
- package/dist/ui/inputs/input/input.js +140 -3
- package/dist/ui/inputs/input/input.mjs +3 -1
- package/dist/ui/inputs/input/use-input.d.ts +19 -0
- package/dist/ui/inputs/input/use-input.js +82 -0
- package/dist/ui/inputs/input/use-input.mjs +7 -0
- package/dist/ui/inputs/radio/index.mjs +3 -3
- package/dist/ui/inputs/search/index.d.ts +1 -0
- package/dist/ui/inputs/search/index.js +270 -0
- package/dist/ui/inputs/search/index.mjs +13 -0
- package/dist/ui/inputs/search/search.d.ts +7 -0
- package/dist/ui/inputs/search/search.js +268 -0
- package/dist/ui/inputs/search/search.mjs +12 -0
- package/dist/ui/inputs/search/use-search.d.ts +12 -0
- package/dist/ui/inputs/search/use-search.js +57 -0
- package/dist/ui/inputs/search/use-search.mjs +7 -0
- package/dist/ui/inputs/select/index.js +132 -22
- package/dist/ui/inputs/select/index.mjs +3 -1
- package/dist/ui/inputs/select/select.d.ts +4 -0
- package/dist/ui/inputs/select/select.js +132 -22
- package/dist/ui/inputs/select/select.mjs +3 -1
- package/dist/ui/inputs/select/use-select.d.ts +17 -0
- package/dist/ui/inputs/select/use-select.js +85 -0
- package/dist/ui/inputs/select/use-select.mjs +7 -0
- package/dist/ui/inputs/switch/favorite-switch.d.ts +23 -2
- package/dist/ui/inputs/switch/favorite-switch.js +34 -4
- package/dist/ui/inputs/switch/favorite-switch.mjs +1 -1
- package/dist/ui/inputs/switch/index.js +34 -4
- package/dist/ui/inputs/switch/index.mjs +3 -3
- package/dist/ui/inputs/text/index.js +144 -7
- package/dist/ui/inputs/text/index.mjs +4 -2
- package/dist/ui/inputs/text/text.js +144 -7
- package/dist/ui/inputs/text/text.mjs +4 -2
- package/dist/ui/layout/container/container.mjs +96 -89
- package/dist/ui/layout/container/index.mjs +96 -89
- package/dist/ui/layout/index.mjs +101 -94
- package/dist/ui/layout/page/index.mjs +7 -7
- package/dist/ui/layout/page/page-loading.mjs +6 -6
- package/dist/ui/layout/page/section-loading.mjs +6 -6
- package/dist/ui/navigation/index.mjs +9 -9
- package/dist/ui/overlays/index.mjs +8 -8
- package/dist/ui/provider/index.mjs +6 -6
- package/dist/ui/provider/ui-provider.mjs +6 -6
- package/dist/ui/surface/bento/bento.d.ts +2 -2
- package/dist/ui/surface/bento/bento.js +5 -5
- package/dist/ui/surface/bento/bento.mjs +1 -1
- package/dist/ui/surface/bento/index.js +5 -5
- package/dist/ui/surface/bento/index.mjs +1 -1
- package/dist/ui/surface/card/card.d.ts +2427 -5
- package/dist/ui/surface/card/card.js +29 -2
- package/dist/ui/surface/card/card.mjs +5 -1
- package/dist/ui/surface/card/index.js +29 -2
- package/dist/ui/surface/card/index.mjs +5 -1
- package/dist/ui/surface/index.js +34 -7
- package/dist/ui/surface/index.mjs +7 -3
- package/dist/ui/theme/colors/index.js +24 -2
- package/dist/ui/theme/colors/index.mjs +2 -2
- package/dist/ui/theme/colors/semantic.js +24 -2
- package/dist/ui/theme/colors/semantic.mjs +1 -1
- package/dist/ui/theme/colors/types.d.ts +2 -0
- package/dist/ui/theme/colors.js +24 -2
- package/dist/ui/theme/colors.mjs +2 -2
- package/dist/ui/theme/index.js +24 -2
- package/dist/ui/theme/index.mjs +3 -3
- package/dist/ui/theme/theme.js +24 -2
- package/dist/ui/theme/theme.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-3YOW5DEZ.mjs +0 -45
- package/dist/chunk-E5QSNLSR.mjs +0 -38
- package/dist/chunk-V2G5QHZZ.mjs +0 -14
- /package/dist/{chunk-CZEO3U25.mjs → chunk-5RNCFTW5.mjs} +0 -0
- /package/dist/{chunk-Q6JSJOU4.mjs → chunk-PTCNYQVY.mjs} +0 -0
|
@@ -36,9 +36,36 @@ __export(card_exports, {
|
|
|
36
36
|
module.exports = __toCommonJS(card_exports);
|
|
37
37
|
var import_react = __toESM(require("react"));
|
|
38
38
|
var import_card = require("@heroui/card");
|
|
39
|
+
|
|
40
|
+
// src/utils/extend-variants.ts
|
|
41
|
+
var import_system = require("@heroui/system");
|
|
42
|
+
var extendVariants = (component, config) => {
|
|
43
|
+
return (0, import_system.extendVariants)(component, config);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// src/ui/style/css.ts
|
|
47
|
+
var import_clsx = require("clsx");
|
|
48
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
49
|
+
function cn(...inputs) {
|
|
50
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// src/ui/surface/card/card.tsx
|
|
39
54
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
40
|
-
var
|
|
41
|
-
|
|
55
|
+
var CardBase = extendVariants(import_card.Card, {
|
|
56
|
+
variants: {
|
|
57
|
+
radius: {
|
|
58
|
+
sm: { base: "rounded-lg" },
|
|
59
|
+
md: { base: "rounded-2xl" },
|
|
60
|
+
lg: { base: "rounded-3xl" }
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
defaultVariants: {
|
|
64
|
+
shadow: "none"
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
var Root = import_react.default.forwardRef(({ children, className, ...props }, ref) => {
|
|
68
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardBase, { ref, className: cn("bg-default-100", className), ...props, children });
|
|
42
69
|
});
|
|
43
70
|
Root.displayName = "TeachInUI.Card.Root";
|
|
44
71
|
var Header = import_react.default.forwardRef(({ children, ...props }, ref) => {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Card
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-QFWSQOF6.mjs";
|
|
5
|
+
import "../../../chunk-Q6XJI7Q2.mjs";
|
|
6
|
+
import "../../../chunk-LOMRTWX5.mjs";
|
|
7
|
+
import "../../../chunk-Q2ILWL7L.mjs";
|
|
8
|
+
import "../../../chunk-7BTEKEON.mjs";
|
|
5
9
|
export {
|
|
6
10
|
Card
|
|
7
11
|
};
|
|
@@ -38,9 +38,36 @@ module.exports = __toCommonJS(card_exports);
|
|
|
38
38
|
// src/ui/surface/card/card.tsx
|
|
39
39
|
var import_react = __toESM(require("react"));
|
|
40
40
|
var import_card = require("@heroui/card");
|
|
41
|
+
|
|
42
|
+
// src/utils/extend-variants.ts
|
|
43
|
+
var import_system = require("@heroui/system");
|
|
44
|
+
var extendVariants = (component, config) => {
|
|
45
|
+
return (0, import_system.extendVariants)(component, config);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
// src/ui/style/css.ts
|
|
49
|
+
var import_clsx = require("clsx");
|
|
50
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
51
|
+
function cn(...inputs) {
|
|
52
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// src/ui/surface/card/card.tsx
|
|
41
56
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
-
var
|
|
43
|
-
|
|
57
|
+
var CardBase = extendVariants(import_card.Card, {
|
|
58
|
+
variants: {
|
|
59
|
+
radius: {
|
|
60
|
+
sm: { base: "rounded-lg" },
|
|
61
|
+
md: { base: "rounded-2xl" },
|
|
62
|
+
lg: { base: "rounded-3xl" }
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
defaultVariants: {
|
|
66
|
+
shadow: "none"
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
var Root = import_react.default.forwardRef(({ children, className, ...props }, ref) => {
|
|
70
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardBase, { ref, className: cn("bg-default-100", className), ...props, children });
|
|
44
71
|
});
|
|
45
72
|
Root.displayName = "TeachInUI.Card.Root";
|
|
46
73
|
var Header = import_react.default.forwardRef(({ children, ...props }, ref) => {
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
import "../../../chunk-57JRJHSH.mjs";
|
|
3
3
|
import {
|
|
4
4
|
Card
|
|
5
|
-
} from "../../../chunk-
|
|
5
|
+
} from "../../../chunk-QFWSQOF6.mjs";
|
|
6
|
+
import "../../../chunk-Q6XJI7Q2.mjs";
|
|
7
|
+
import "../../../chunk-LOMRTWX5.mjs";
|
|
8
|
+
import "../../../chunk-Q2ILWL7L.mjs";
|
|
9
|
+
import "../../../chunk-7BTEKEON.mjs";
|
|
6
10
|
export {
|
|
7
11
|
Card
|
|
8
12
|
};
|
package/dist/ui/surface/index.js
CHANGED
|
@@ -41,10 +41,10 @@ module.exports = __toCommonJS(surface_exports);
|
|
|
41
41
|
var import_tailwind_variants = require("tailwind-variants");
|
|
42
42
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
43
43
|
var bento = (0, import_tailwind_variants.tv)({
|
|
44
|
-
base: "
|
|
44
|
+
base: "p-8 transition-colors",
|
|
45
45
|
variants: {
|
|
46
46
|
color: {
|
|
47
|
-
default: "bg-
|
|
47
|
+
default: "bg-content1 text-foreground",
|
|
48
48
|
primary: "bg-primary-50 text-primary-700",
|
|
49
49
|
secondary: "bg-secondary-50 text-secondary-700",
|
|
50
50
|
success: "bg-success-50 text-success-700",
|
|
@@ -53,9 +53,9 @@ var bento = (0, import_tailwind_variants.tv)({
|
|
|
53
53
|
},
|
|
54
54
|
radius: {
|
|
55
55
|
none: "rounded-none",
|
|
56
|
-
sm: "rounded-
|
|
57
|
-
md: "rounded-
|
|
58
|
-
lg: "rounded-
|
|
56
|
+
sm: "rounded-lg",
|
|
57
|
+
md: "rounded-2xl",
|
|
58
|
+
lg: "rounded-3xl",
|
|
59
59
|
full: "rounded-full"
|
|
60
60
|
},
|
|
61
61
|
shadow: {
|
|
@@ -84,9 +84,36 @@ Bento.displayName = "TeachInUI.Bento";
|
|
|
84
84
|
// src/ui/surface/card/card.tsx
|
|
85
85
|
var import_react = __toESM(require("react"));
|
|
86
86
|
var import_card = require("@heroui/card");
|
|
87
|
+
|
|
88
|
+
// src/utils/extend-variants.ts
|
|
89
|
+
var import_system = require("@heroui/system");
|
|
90
|
+
var extendVariants = (component, config) => {
|
|
91
|
+
return (0, import_system.extendVariants)(component, config);
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
// src/ui/style/css.ts
|
|
95
|
+
var import_clsx = require("clsx");
|
|
96
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
97
|
+
function cn(...inputs) {
|
|
98
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// src/ui/surface/card/card.tsx
|
|
87
102
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
88
|
-
var
|
|
89
|
-
|
|
103
|
+
var CardBase = extendVariants(import_card.Card, {
|
|
104
|
+
variants: {
|
|
105
|
+
radius: {
|
|
106
|
+
sm: { base: "rounded-lg" },
|
|
107
|
+
md: { base: "rounded-2xl" },
|
|
108
|
+
lg: { base: "rounded-3xl" }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
defaultVariants: {
|
|
112
|
+
shadow: "none"
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
var Root = import_react.default.forwardRef(({ children, className, ...props }, ref) => {
|
|
116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CardBase, { ref, className: cn("bg-default-100", className), ...props, children });
|
|
90
117
|
});
|
|
91
118
|
Root.displayName = "TeachInUI.Card.Root";
|
|
92
119
|
var Header = import_react.default.forwardRef(({ children, ...props }, ref) => {
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../chunk-UNBE67YJ.mjs";
|
|
3
|
+
import "../../chunk-PON4ZQKG.mjs";
|
|
3
4
|
import "../../chunk-57JRJHSH.mjs";
|
|
4
5
|
import {
|
|
5
6
|
Card
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-PON4ZQKG.mjs";
|
|
7
|
+
} from "../../chunk-QFWSQOF6.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Bento,
|
|
10
10
|
bento
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-WG4IPOHE.mjs";
|
|
12
|
+
import "../../chunk-Q6XJI7Q2.mjs";
|
|
13
|
+
import "../../chunk-LOMRTWX5.mjs";
|
|
14
|
+
import "../../chunk-Q2ILWL7L.mjs";
|
|
15
|
+
import "../../chunk-7BTEKEON.mjs";
|
|
12
16
|
export {
|
|
13
17
|
Bento,
|
|
14
18
|
Card,
|
|
@@ -263,7 +263,7 @@ var themeColorsLight = {
|
|
|
263
263
|
...commonColors.shipgray,
|
|
264
264
|
foreground: commonColors.black,
|
|
265
265
|
flat: commonColors.shipgray[300],
|
|
266
|
-
DEFAULT: commonColors.shipgray[
|
|
266
|
+
DEFAULT: commonColors.shipgray[200]
|
|
267
267
|
},
|
|
268
268
|
primary: {
|
|
269
269
|
...commonColors.blue,
|
|
@@ -294,15 +294,31 @@ var themeColorsLight = {
|
|
|
294
294
|
foreground: commonColors.white,
|
|
295
295
|
flat: commonColors.red[500],
|
|
296
296
|
DEFAULT: commonColors.red[400]
|
|
297
|
+
},
|
|
298
|
+
link: {
|
|
299
|
+
DEFAULT: commonColors.blue[500]
|
|
300
|
+
},
|
|
301
|
+
brand: {
|
|
302
|
+
DEFAULT: commonColors.blue[800]
|
|
297
303
|
}
|
|
298
304
|
};
|
|
299
305
|
var themeColorsDark = {
|
|
300
306
|
...base.dark,
|
|
301
307
|
default: {
|
|
302
308
|
...swapColorValues(commonColors.shipgray),
|
|
309
|
+
50: commonColors.shipgray[800],
|
|
310
|
+
100: commonColors.shipgray[700],
|
|
311
|
+
200: commonColors.shipgray[600],
|
|
312
|
+
300: commonColors.shipgray[500],
|
|
313
|
+
400: commonColors.shipgray[400],
|
|
314
|
+
500: commonColors.shipgray[300],
|
|
315
|
+
600: commonColors.shipgray[200],
|
|
316
|
+
700: commonColors.shipgray[100],
|
|
317
|
+
800: commonColors.shipgray[50],
|
|
318
|
+
900: commonColors.white,
|
|
303
319
|
foreground: commonColors.white,
|
|
304
320
|
flat: commonColors.shipgray[600],
|
|
305
|
-
DEFAULT: commonColors.shipgray[
|
|
321
|
+
DEFAULT: commonColors.shipgray[600]
|
|
306
322
|
},
|
|
307
323
|
primary: {
|
|
308
324
|
...swapColorValues(commonColors.blue),
|
|
@@ -333,6 +349,12 @@ var themeColorsDark = {
|
|
|
333
349
|
foreground: commonColors.white,
|
|
334
350
|
flat: commonColors.red[500],
|
|
335
351
|
DEFAULT: commonColors.red[500]
|
|
352
|
+
},
|
|
353
|
+
link: {
|
|
354
|
+
DEFAULT: commonColors.blue[300]
|
|
355
|
+
},
|
|
356
|
+
brand: {
|
|
357
|
+
DEFAULT: commonColors.white
|
|
336
358
|
}
|
|
337
359
|
};
|
|
338
360
|
var semanticColors = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
colors
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-BBUPZCY6.mjs";
|
|
5
5
|
import "../../../chunk-EJQH6CYW.mjs";
|
|
6
6
|
import {
|
|
7
7
|
semanticColors
|
|
8
|
-
} from "../../../chunk-
|
|
8
|
+
} from "../../../chunk-YZB4VBX7.mjs";
|
|
9
9
|
import {
|
|
10
10
|
commonColors
|
|
11
11
|
} from "../../../chunk-5WDV3PDI.mjs";
|
|
@@ -263,7 +263,7 @@ var themeColorsLight = {
|
|
|
263
263
|
...commonColors.shipgray,
|
|
264
264
|
foreground: commonColors.black,
|
|
265
265
|
flat: commonColors.shipgray[300],
|
|
266
|
-
DEFAULT: commonColors.shipgray[
|
|
266
|
+
DEFAULT: commonColors.shipgray[200]
|
|
267
267
|
},
|
|
268
268
|
primary: {
|
|
269
269
|
...commonColors.blue,
|
|
@@ -294,15 +294,31 @@ var themeColorsLight = {
|
|
|
294
294
|
foreground: commonColors.white,
|
|
295
295
|
flat: commonColors.red[500],
|
|
296
296
|
DEFAULT: commonColors.red[400]
|
|
297
|
+
},
|
|
298
|
+
link: {
|
|
299
|
+
DEFAULT: commonColors.blue[500]
|
|
300
|
+
},
|
|
301
|
+
brand: {
|
|
302
|
+
DEFAULT: commonColors.blue[800]
|
|
297
303
|
}
|
|
298
304
|
};
|
|
299
305
|
var themeColorsDark = {
|
|
300
306
|
...base.dark,
|
|
301
307
|
default: {
|
|
302
308
|
...swapColorValues(commonColors.shipgray),
|
|
309
|
+
50: commonColors.shipgray[800],
|
|
310
|
+
100: commonColors.shipgray[700],
|
|
311
|
+
200: commonColors.shipgray[600],
|
|
312
|
+
300: commonColors.shipgray[500],
|
|
313
|
+
400: commonColors.shipgray[400],
|
|
314
|
+
500: commonColors.shipgray[300],
|
|
315
|
+
600: commonColors.shipgray[200],
|
|
316
|
+
700: commonColors.shipgray[100],
|
|
317
|
+
800: commonColors.shipgray[50],
|
|
318
|
+
900: commonColors.white,
|
|
303
319
|
foreground: commonColors.white,
|
|
304
320
|
flat: commonColors.shipgray[600],
|
|
305
|
-
DEFAULT: commonColors.shipgray[
|
|
321
|
+
DEFAULT: commonColors.shipgray[600]
|
|
306
322
|
},
|
|
307
323
|
primary: {
|
|
308
324
|
...swapColorValues(commonColors.blue),
|
|
@@ -333,6 +349,12 @@ var themeColorsDark = {
|
|
|
333
349
|
foreground: commonColors.white,
|
|
334
350
|
flat: commonColors.red[500],
|
|
335
351
|
DEFAULT: commonColors.red[500]
|
|
352
|
+
},
|
|
353
|
+
link: {
|
|
354
|
+
DEFAULT: commonColors.blue[300]
|
|
355
|
+
},
|
|
356
|
+
brand: {
|
|
357
|
+
DEFAULT: commonColors.white
|
|
336
358
|
}
|
|
337
359
|
};
|
|
338
360
|
var semanticColors = {
|
package/dist/ui/theme/colors.js
CHANGED
|
@@ -263,7 +263,7 @@ var themeColorsLight = {
|
|
|
263
263
|
...commonColors.shipgray,
|
|
264
264
|
foreground: commonColors.black,
|
|
265
265
|
flat: commonColors.shipgray[300],
|
|
266
|
-
DEFAULT: commonColors.shipgray[
|
|
266
|
+
DEFAULT: commonColors.shipgray[200]
|
|
267
267
|
},
|
|
268
268
|
primary: {
|
|
269
269
|
...commonColors.blue,
|
|
@@ -294,15 +294,31 @@ var themeColorsLight = {
|
|
|
294
294
|
foreground: commonColors.white,
|
|
295
295
|
flat: commonColors.red[500],
|
|
296
296
|
DEFAULT: commonColors.red[400]
|
|
297
|
+
},
|
|
298
|
+
link: {
|
|
299
|
+
DEFAULT: commonColors.blue[500]
|
|
300
|
+
},
|
|
301
|
+
brand: {
|
|
302
|
+
DEFAULT: commonColors.blue[800]
|
|
297
303
|
}
|
|
298
304
|
};
|
|
299
305
|
var themeColorsDark = {
|
|
300
306
|
...base.dark,
|
|
301
307
|
default: {
|
|
302
308
|
...swapColorValues(commonColors.shipgray),
|
|
309
|
+
50: commonColors.shipgray[800],
|
|
310
|
+
100: commonColors.shipgray[700],
|
|
311
|
+
200: commonColors.shipgray[600],
|
|
312
|
+
300: commonColors.shipgray[500],
|
|
313
|
+
400: commonColors.shipgray[400],
|
|
314
|
+
500: commonColors.shipgray[300],
|
|
315
|
+
600: commonColors.shipgray[200],
|
|
316
|
+
700: commonColors.shipgray[100],
|
|
317
|
+
800: commonColors.shipgray[50],
|
|
318
|
+
900: commonColors.white,
|
|
303
319
|
foreground: commonColors.white,
|
|
304
320
|
flat: commonColors.shipgray[600],
|
|
305
|
-
DEFAULT: commonColors.shipgray[
|
|
321
|
+
DEFAULT: commonColors.shipgray[600]
|
|
306
322
|
},
|
|
307
323
|
primary: {
|
|
308
324
|
...swapColorValues(commonColors.blue),
|
|
@@ -333,6 +349,12 @@ var themeColorsDark = {
|
|
|
333
349
|
foreground: commonColors.white,
|
|
334
350
|
flat: commonColors.red[500],
|
|
335
351
|
DEFAULT: commonColors.red[500]
|
|
352
|
+
},
|
|
353
|
+
link: {
|
|
354
|
+
DEFAULT: commonColors.blue[300]
|
|
355
|
+
},
|
|
356
|
+
brand: {
|
|
357
|
+
DEFAULT: commonColors.white
|
|
336
358
|
}
|
|
337
359
|
};
|
|
338
360
|
var semanticColors = {
|
package/dist/ui/theme/colors.mjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import "../../chunk-JWMPI5AZ.mjs";
|
|
3
3
|
import {
|
|
4
4
|
colors
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-BBUPZCY6.mjs";
|
|
6
6
|
import "../../chunk-EJQH6CYW.mjs";
|
|
7
7
|
import {
|
|
8
8
|
semanticColors
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-YZB4VBX7.mjs";
|
|
10
10
|
import {
|
|
11
11
|
commonColors
|
|
12
12
|
} from "../../chunk-5WDV3PDI.mjs";
|
package/dist/ui/theme/index.js
CHANGED
|
@@ -275,7 +275,7 @@ var themeColorsLight = {
|
|
|
275
275
|
...commonColors.shipgray,
|
|
276
276
|
foreground: commonColors.black,
|
|
277
277
|
flat: commonColors.shipgray[300],
|
|
278
|
-
DEFAULT: commonColors.shipgray[
|
|
278
|
+
DEFAULT: commonColors.shipgray[200]
|
|
279
279
|
},
|
|
280
280
|
primary: {
|
|
281
281
|
...commonColors.blue,
|
|
@@ -306,15 +306,31 @@ var themeColorsLight = {
|
|
|
306
306
|
foreground: commonColors.white,
|
|
307
307
|
flat: commonColors.red[500],
|
|
308
308
|
DEFAULT: commonColors.red[400]
|
|
309
|
+
},
|
|
310
|
+
link: {
|
|
311
|
+
DEFAULT: commonColors.blue[500]
|
|
312
|
+
},
|
|
313
|
+
brand: {
|
|
314
|
+
DEFAULT: commonColors.blue[800]
|
|
309
315
|
}
|
|
310
316
|
};
|
|
311
317
|
var themeColorsDark = {
|
|
312
318
|
...base.dark,
|
|
313
319
|
default: {
|
|
314
320
|
...swapColorValues(commonColors.shipgray),
|
|
321
|
+
50: commonColors.shipgray[800],
|
|
322
|
+
100: commonColors.shipgray[700],
|
|
323
|
+
200: commonColors.shipgray[600],
|
|
324
|
+
300: commonColors.shipgray[500],
|
|
325
|
+
400: commonColors.shipgray[400],
|
|
326
|
+
500: commonColors.shipgray[300],
|
|
327
|
+
600: commonColors.shipgray[200],
|
|
328
|
+
700: commonColors.shipgray[100],
|
|
329
|
+
800: commonColors.shipgray[50],
|
|
330
|
+
900: commonColors.white,
|
|
315
331
|
foreground: commonColors.white,
|
|
316
332
|
flat: commonColors.shipgray[600],
|
|
317
|
-
DEFAULT: commonColors.shipgray[
|
|
333
|
+
DEFAULT: commonColors.shipgray[600]
|
|
318
334
|
},
|
|
319
335
|
primary: {
|
|
320
336
|
...swapColorValues(commonColors.blue),
|
|
@@ -345,6 +361,12 @@ var themeColorsDark = {
|
|
|
345
361
|
foreground: commonColors.white,
|
|
346
362
|
flat: commonColors.red[500],
|
|
347
363
|
DEFAULT: commonColors.red[500]
|
|
364
|
+
},
|
|
365
|
+
link: {
|
|
366
|
+
DEFAULT: commonColors.blue[300]
|
|
367
|
+
},
|
|
368
|
+
brand: {
|
|
369
|
+
DEFAULT: commonColors.white
|
|
348
370
|
}
|
|
349
371
|
};
|
|
350
372
|
var semanticColors = {
|
package/dist/ui/theme/index.mjs
CHANGED
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "../../chunk-NBFOX367.mjs";
|
|
7
7
|
import {
|
|
8
8
|
theme
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-RPIOTLYT.mjs";
|
|
10
10
|
import "../../chunk-JWMPI5AZ.mjs";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-BBUPZCY6.mjs";
|
|
12
12
|
import "../../chunk-EJQH6CYW.mjs";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-YZB4VBX7.mjs";
|
|
14
14
|
import "../../chunk-5WDV3PDI.mjs";
|
|
15
15
|
import "../../chunk-HOVAPYGJ.mjs";
|
|
16
16
|
import "../../chunk-3LOCA2SP.mjs";
|
package/dist/ui/theme/theme.js
CHANGED
|
@@ -262,7 +262,7 @@ var themeColorsLight = {
|
|
|
262
262
|
...commonColors.shipgray,
|
|
263
263
|
foreground: commonColors.black,
|
|
264
264
|
flat: commonColors.shipgray[300],
|
|
265
|
-
DEFAULT: commonColors.shipgray[
|
|
265
|
+
DEFAULT: commonColors.shipgray[200]
|
|
266
266
|
},
|
|
267
267
|
primary: {
|
|
268
268
|
...commonColors.blue,
|
|
@@ -293,15 +293,31 @@ var themeColorsLight = {
|
|
|
293
293
|
foreground: commonColors.white,
|
|
294
294
|
flat: commonColors.red[500],
|
|
295
295
|
DEFAULT: commonColors.red[400]
|
|
296
|
+
},
|
|
297
|
+
link: {
|
|
298
|
+
DEFAULT: commonColors.blue[500]
|
|
299
|
+
},
|
|
300
|
+
brand: {
|
|
301
|
+
DEFAULT: commonColors.blue[800]
|
|
296
302
|
}
|
|
297
303
|
};
|
|
298
304
|
var themeColorsDark = {
|
|
299
305
|
...base.dark,
|
|
300
306
|
default: {
|
|
301
307
|
...swapColorValues(commonColors.shipgray),
|
|
308
|
+
50: commonColors.shipgray[800],
|
|
309
|
+
100: commonColors.shipgray[700],
|
|
310
|
+
200: commonColors.shipgray[600],
|
|
311
|
+
300: commonColors.shipgray[500],
|
|
312
|
+
400: commonColors.shipgray[400],
|
|
313
|
+
500: commonColors.shipgray[300],
|
|
314
|
+
600: commonColors.shipgray[200],
|
|
315
|
+
700: commonColors.shipgray[100],
|
|
316
|
+
800: commonColors.shipgray[50],
|
|
317
|
+
900: commonColors.white,
|
|
302
318
|
foreground: commonColors.white,
|
|
303
319
|
flat: commonColors.shipgray[600],
|
|
304
|
-
DEFAULT: commonColors.shipgray[
|
|
320
|
+
DEFAULT: commonColors.shipgray[600]
|
|
305
321
|
},
|
|
306
322
|
primary: {
|
|
307
323
|
...swapColorValues(commonColors.blue),
|
|
@@ -332,6 +348,12 @@ var themeColorsDark = {
|
|
|
332
348
|
foreground: commonColors.white,
|
|
333
349
|
flat: commonColors.red[500],
|
|
334
350
|
DEFAULT: commonColors.red[500]
|
|
351
|
+
},
|
|
352
|
+
link: {
|
|
353
|
+
DEFAULT: commonColors.blue[300]
|
|
354
|
+
},
|
|
355
|
+
brand: {
|
|
356
|
+
DEFAULT: commonColors.white
|
|
335
357
|
}
|
|
336
358
|
};
|
|
337
359
|
var semanticColors = {
|
package/dist/ui/theme/theme.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
theme
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-RPIOTLYT.mjs";
|
|
5
5
|
import "../../chunk-JWMPI5AZ.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-BBUPZCY6.mjs";
|
|
7
7
|
import "../../chunk-EJQH6CYW.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-YZB4VBX7.mjs";
|
|
9
9
|
import "../../chunk-5WDV3PDI.mjs";
|
|
10
10
|
import "../../chunk-HOVAPYGJ.mjs";
|
|
11
11
|
import "../../chunk-3LOCA2SP.mjs";
|
package/package.json
CHANGED
package/dist/chunk-3YOW5DEZ.mjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/ui/inputs/select/select.tsx
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { Select as HeroUISelect, SelectItem as HeroUISelectItem } from "@heroui/select";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
var Select = React.forwardRef(
|
|
8
|
-
({ value, items, onChange, selectionMode, ...props }, ref) => {
|
|
9
|
-
const isMultiple = selectionMode === "multiple";
|
|
10
|
-
const selectedKeys = React.useMemo(() => {
|
|
11
|
-
if (value == null) return /* @__PURE__ */ new Set();
|
|
12
|
-
return new Set(Array.isArray(value) ? value : [value]);
|
|
13
|
-
}, [value]);
|
|
14
|
-
const handleSelectionChange = React.useCallback(
|
|
15
|
-
(keys) => {
|
|
16
|
-
var _a;
|
|
17
|
-
if (keys === "all") return;
|
|
18
|
-
const selected = Array.from(keys).filter((key) => typeof key === "string");
|
|
19
|
-
if (isMultiple) {
|
|
20
|
-
onChange == null ? void 0 : onChange(selected);
|
|
21
|
-
} else {
|
|
22
|
-
onChange == null ? void 0 : onChange((_a = selected[0]) != null ? _a : null);
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
[onChange, isMultiple]
|
|
26
|
-
);
|
|
27
|
-
return /* @__PURE__ */ jsx(
|
|
28
|
-
HeroUISelect,
|
|
29
|
-
{
|
|
30
|
-
ref,
|
|
31
|
-
items,
|
|
32
|
-
selectedKeys,
|
|
33
|
-
selectionMode,
|
|
34
|
-
onSelectionChange: handleSelectionChange,
|
|
35
|
-
...props,
|
|
36
|
-
children: (item) => /* @__PURE__ */ jsx(HeroUISelectItem, { children: item.label }, item.key)
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
Select.displayName = "TeachInUI.Select";
|
|
42
|
-
|
|
43
|
-
export {
|
|
44
|
-
Select
|
|
45
|
-
};
|
package/dist/chunk-E5QSNLSR.mjs
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/ui/inputs/switch/favorite-switch.tsx
|
|
4
|
-
import { useSwitch } from "@heroui/switch";
|
|
5
|
-
import { Bookmark } from "lucide-react";
|
|
6
|
-
import { tv } from "tailwind-variants";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
var bookmarkVariants = tv({
|
|
9
|
-
base: "size-6 stroke-default-400 group-hover:fill-primary-100 group-hover:stroke-default-400",
|
|
10
|
-
variants: {
|
|
11
|
-
isSelected: {
|
|
12
|
-
true: "stroke-primary fill-primary-100"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
function FavoriteSwitch({ isSelected, onValueChange }) {
|
|
17
|
-
const { Component, slots, getBaseProps, getInputProps, getWrapperProps } = useSwitch({
|
|
18
|
-
isSelected,
|
|
19
|
-
onValueChange
|
|
20
|
-
});
|
|
21
|
-
return /* @__PURE__ */ jsxs(Component, { ...getBaseProps(), children: [
|
|
22
|
-
/* @__PURE__ */ jsx("div", { className: "sr-only", children: /* @__PURE__ */ jsx("input", { ...getInputProps() }) }),
|
|
23
|
-
/* @__PURE__ */ jsx(
|
|
24
|
-
"div",
|
|
25
|
-
{
|
|
26
|
-
...getWrapperProps(),
|
|
27
|
-
className: slots.wrapper({
|
|
28
|
-
class: "flex h-8 w-8 cursor-pointer items-center justify-center rounded-sm !bg-transparent"
|
|
29
|
-
}),
|
|
30
|
-
children: /* @__PURE__ */ jsx(Bookmark, { className: bookmarkVariants({ isSelected }) })
|
|
31
|
-
}
|
|
32
|
-
)
|
|
33
|
-
] });
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export {
|
|
37
|
-
FavoriteSwitch
|
|
38
|
-
};
|
package/dist/chunk-V2G5QHZZ.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/ui/inputs/input/input.tsx
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { Input as HeroUIInput } from "@heroui/input";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
var Input = React.forwardRef(({ ...props }, ref) => {
|
|
8
|
-
return /* @__PURE__ */ jsx(HeroUIInput, { ref, ...props });
|
|
9
|
-
});
|
|
10
|
-
Input.displayName = "TeachInUI.Input";
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
Input
|
|
14
|
-
};
|
|
File without changes
|
|
File without changes
|