@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
package/dist/ui/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __export(ui_exports, {
|
|
|
36
36
|
Autocomplete: () => Autocomplete,
|
|
37
37
|
AutocompleteField: () => AutocompleteField,
|
|
38
38
|
Avatar: () => Avatar,
|
|
39
|
+
Bento: () => Bento,
|
|
39
40
|
Body: () => Body,
|
|
40
41
|
Button: () => Button,
|
|
41
42
|
Checkbox: () => Checkbox,
|
|
@@ -57,6 +58,7 @@ __export(ui_exports, {
|
|
|
57
58
|
FormatPercent: () => Percent,
|
|
58
59
|
FormatPlural: () => Plural,
|
|
59
60
|
FormatTime: () => Time,
|
|
61
|
+
Grid: () => Grid,
|
|
60
62
|
Header: () => Header,
|
|
61
63
|
Input: () => Input,
|
|
62
64
|
InputField: () => InputField,
|
|
@@ -84,8 +86,10 @@ __export(ui_exports, {
|
|
|
84
86
|
Title: () => Title,
|
|
85
87
|
Tooltip: () => Tooltip,
|
|
86
88
|
UIProvider: () => UIProvider,
|
|
89
|
+
bento: () => bento,
|
|
87
90
|
breakpoints: () => breakpoints,
|
|
88
|
-
cn: () => cn
|
|
91
|
+
cn: () => cn,
|
|
92
|
+
theme: () => theme
|
|
89
93
|
});
|
|
90
94
|
module.exports = __toCommonJS(ui_exports);
|
|
91
95
|
|
|
@@ -109,7 +113,7 @@ var Button = import_react.default.forwardRef((props, ref) => {
|
|
|
109
113
|
BaseButton,
|
|
110
114
|
{
|
|
111
115
|
ref,
|
|
112
|
-
className: props.variant === "flat" && props.color === "default" ? "
|
|
116
|
+
className: props.variant === "flat" && props.color === "default" ? "bg-default-flat/25 !text-default-800" : props.className,
|
|
113
117
|
...props
|
|
114
118
|
}
|
|
115
119
|
);
|
|
@@ -128,6 +132,7 @@ Avatar.displayName = "TeachInUI.Avatar";
|
|
|
128
132
|
// src/ui/data/pagination/pagination.tsx
|
|
129
133
|
var import_react3 = __toESM(require("react"));
|
|
130
134
|
var import_pagination = require("@heroui/pagination");
|
|
135
|
+
var import_pagination2 = require("@heroui/pagination");
|
|
131
136
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
132
137
|
var Pagination = import_react3.default.forwardRef(({ pages, ...props }, ref) => {
|
|
133
138
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_pagination.Pagination, { ref, isCompact: true, showControls: true, showShadow: true, total: pages, ...props });
|
|
@@ -156,11 +161,9 @@ Chip.displayName = "TeachInUI.Chip";
|
|
|
156
161
|
var import_react6 = __toESM(require("react"));
|
|
157
162
|
var import_spinner = require("@heroui/spinner");
|
|
158
163
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
159
|
-
var Spinner = import_react6.default.forwardRef(
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
);
|
|
164
|
+
var Spinner = import_react6.default.forwardRef((props, ref) => {
|
|
165
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_spinner.Spinner, { ref, ...props });
|
|
166
|
+
});
|
|
164
167
|
Spinner.displayName = "TeachInUI.Spinner";
|
|
165
168
|
|
|
166
169
|
// src/ui/feedback/tooltip/tooltip.tsx
|
|
@@ -169,7 +172,7 @@ var import_tooltip = require("@heroui/tooltip");
|
|
|
169
172
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
170
173
|
var Tooltip = import_react7.default.forwardRef(
|
|
171
174
|
({ placement = "bottom", ...props }, ref) => {
|
|
172
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_tooltip.Tooltip, { ref,
|
|
175
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_tooltip.Tooltip, { ref, placement, ...props });
|
|
173
176
|
}
|
|
174
177
|
);
|
|
175
178
|
Tooltip.displayName = "TeachInUI.Tooltip";
|
|
@@ -483,11 +486,12 @@ Form.displayName = "TeachInUI.Form";
|
|
|
483
486
|
// src/ui/format/datetime.tsx
|
|
484
487
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
485
488
|
var defaultFormat = {
|
|
486
|
-
day: "
|
|
487
|
-
month: "
|
|
489
|
+
day: "numeric",
|
|
490
|
+
month: "long",
|
|
488
491
|
year: "numeric",
|
|
489
492
|
hour: "2-digit",
|
|
490
|
-
minute: "2-digit"
|
|
493
|
+
minute: "2-digit",
|
|
494
|
+
second: "2-digit"
|
|
491
495
|
};
|
|
492
496
|
function Datetime({
|
|
493
497
|
value,
|
|
@@ -506,8 +510,8 @@ Datetime.displayName = "TeachInUI.FormatDatetime";
|
|
|
506
510
|
// src/ui/format/date.tsx
|
|
507
511
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
508
512
|
var defaultFormat2 = {
|
|
509
|
-
day: "
|
|
510
|
-
month: "
|
|
513
|
+
day: "numeric",
|
|
514
|
+
month: "long",
|
|
511
515
|
year: "numeric"
|
|
512
516
|
};
|
|
513
517
|
function DateFormat({
|
|
@@ -659,15 +663,59 @@ function Boolean({
|
|
|
659
663
|
}
|
|
660
664
|
Boolean.displayName = "TeachInUI.FormatBoolean";
|
|
661
665
|
|
|
662
|
-
// src/ui/
|
|
663
|
-
var import_react_slot = require("@radix-ui/react-slot");
|
|
666
|
+
// src/ui/surface/bento/bento.tsx
|
|
664
667
|
var import_tailwind_variants = require("tailwind-variants");
|
|
665
668
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
666
|
-
var
|
|
669
|
+
var bento = (0, import_tailwind_variants.tv)({
|
|
670
|
+
base: "rounded-xl p-6 transition-colors",
|
|
671
|
+
variants: {
|
|
672
|
+
color: {
|
|
673
|
+
default: "bg-default-50 text-default-700",
|
|
674
|
+
primary: "bg-primary-50 text-primary-700",
|
|
675
|
+
secondary: "bg-secondary-50 text-secondary-700",
|
|
676
|
+
success: "bg-success-50 text-success-700",
|
|
677
|
+
warning: "bg-warning-50 text-warning-700",
|
|
678
|
+
danger: "bg-danger-50 text-danger-700"
|
|
679
|
+
},
|
|
680
|
+
radius: {
|
|
681
|
+
none: "rounded-none",
|
|
682
|
+
sm: "rounded-md",
|
|
683
|
+
md: "rounded-lg",
|
|
684
|
+
lg: "rounded-xl",
|
|
685
|
+
full: "rounded-full"
|
|
686
|
+
},
|
|
687
|
+
shadow: {
|
|
688
|
+
none: "",
|
|
689
|
+
sm: "shadow-small",
|
|
690
|
+
md: "shadow-medium",
|
|
691
|
+
lg: "shadow-large"
|
|
692
|
+
},
|
|
693
|
+
bordered: {
|
|
694
|
+
false: "",
|
|
695
|
+
true: "border border-default-200"
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
defaultVariants: {
|
|
699
|
+
color: "default",
|
|
700
|
+
radius: "lg",
|
|
701
|
+
shadow: "none",
|
|
702
|
+
bordered: false
|
|
703
|
+
}
|
|
704
|
+
});
|
|
705
|
+
var Bento = ({ className, ...props }) => {
|
|
706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: bento({ ...props, className }), ...props });
|
|
707
|
+
};
|
|
708
|
+
Bento.displayName = "TeachInUI.Bento";
|
|
709
|
+
|
|
710
|
+
// src/ui/layout/container/container.tsx
|
|
711
|
+
var import_react_slot = require("@radix-ui/react-slot");
|
|
712
|
+
var import_tailwind_variants2 = require("tailwind-variants");
|
|
713
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
714
|
+
var variants = (0, import_tailwind_variants2.tv)({
|
|
667
715
|
base: "w-full mx-auto px-6",
|
|
668
716
|
variants: {
|
|
669
717
|
size: {
|
|
670
|
-
xs: "max-w-
|
|
718
|
+
xs: "max-w-xs",
|
|
671
719
|
sm: "max-w-screen-sm",
|
|
672
720
|
md: "max-w-screen-md",
|
|
673
721
|
lg: "max-w-screen-lg",
|
|
@@ -682,58 +730,58 @@ var variants = (0, import_tailwind_variants.tv)({
|
|
|
682
730
|
});
|
|
683
731
|
var Container = ({ children, asChild = false, className, size, ...props }) => {
|
|
684
732
|
const Comp = asChild ? import_react_slot.Slot : "div";
|
|
685
|
-
return /* @__PURE__ */ (0,
|
|
733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Comp, { className: cn(variants({ size }), className), ...props, children });
|
|
686
734
|
};
|
|
687
735
|
Container.displayName = "TeachInUI.Container";
|
|
688
736
|
|
|
689
737
|
// src/ui/layout/page/breadcrumbs.tsx
|
|
690
738
|
var import_breadcrumbs = require("@heroui/breadcrumbs");
|
|
691
|
-
var
|
|
692
|
-
var Breadcrumbs = ({ items }) => /* @__PURE__ */ (0,
|
|
739
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
740
|
+
var Breadcrumbs = ({ items }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_breadcrumbs.Breadcrumbs, { children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_breadcrumbs.BreadcrumbItem, { href: item.href, isDisabled: item.href === void 0, children: item.label }, item.label)) });
|
|
693
741
|
|
|
694
742
|
// src/ui/layout/page/page-content.tsx
|
|
695
|
-
var
|
|
743
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
696
744
|
var Root = ({
|
|
697
745
|
children,
|
|
698
746
|
breadcrumbs = []
|
|
699
|
-
}) => /* @__PURE__ */ (0,
|
|
700
|
-
breadcrumbs.length > 0 && /* @__PURE__ */ (0,
|
|
747
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-col gap-6", children: [
|
|
748
|
+
breadcrumbs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Breadcrumbs, { items: breadcrumbs }),
|
|
701
749
|
children
|
|
702
750
|
] });
|
|
703
751
|
Root.displayName = "TeachInUI.PageContent.Root";
|
|
704
|
-
var Header = ({ children, ...others }) => /* @__PURE__ */ (0,
|
|
752
|
+
var Header = ({ children, ...others }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("header", { className: "flex items-center justify-between gap-4", role: "banner", ...others, children });
|
|
705
753
|
Header.displayName = "TeachInUI.PageContent.Header";
|
|
706
754
|
var Title = ({
|
|
707
755
|
children,
|
|
708
756
|
...others
|
|
709
|
-
}) => /* @__PURE__ */ (0,
|
|
757
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h1", { className: "text-4xl leading-10 font-bold", ...others, children });
|
|
710
758
|
Title.displayName = "TeachInUI.PageContent.Title";
|
|
711
759
|
var Actions = ({
|
|
712
760
|
children,
|
|
713
761
|
...others
|
|
714
|
-
}) => /* @__PURE__ */ (0,
|
|
762
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex gap-2", role: "group", ...others, children });
|
|
715
763
|
Actions.displayName = "TeachInUI.PageContent.Actions";
|
|
716
|
-
var Body = ({ children }) => /* @__PURE__ */ (0,
|
|
764
|
+
var Body = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex flex-col gap-6", children });
|
|
717
765
|
Body.displayName = "TeachInUI.PageContent.Body";
|
|
718
766
|
var Section = ({
|
|
719
767
|
children,
|
|
720
768
|
...others
|
|
721
|
-
}) => /* @__PURE__ */ (0,
|
|
769
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("section", { className: "flex flex-col gap-4", ...others, children });
|
|
722
770
|
Section.displayName = "TeachInUI.PageContent.Section";
|
|
723
771
|
var SectionHeader = ({
|
|
724
772
|
children,
|
|
725
773
|
...others
|
|
726
|
-
}) => /* @__PURE__ */ (0,
|
|
774
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex items-center justify-between", ...others, children });
|
|
727
775
|
SectionHeader.displayName = "TeachInUI.PageContent.SectionHeader";
|
|
728
776
|
var SectionTitle = ({
|
|
729
777
|
children,
|
|
730
778
|
...others
|
|
731
|
-
}) => /* @__PURE__ */ (0,
|
|
779
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h2", { className: "text-3xl leading-9 font-bold", ...others, children });
|
|
732
780
|
SectionTitle.displayName = "TeachInUI.PageContent.SectionTitle";
|
|
733
781
|
var SectionActions = ({
|
|
734
782
|
children,
|
|
735
783
|
...others
|
|
736
|
-
}) => /* @__PURE__ */ (0,
|
|
784
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex gap-2", role: "group", ...others, children });
|
|
737
785
|
SectionActions.displayName = "TeachInUI.PageContent.SectionActions";
|
|
738
786
|
var PageContent = {
|
|
739
787
|
Root,
|
|
@@ -748,19 +796,19 @@ var PageContent = {
|
|
|
748
796
|
};
|
|
749
797
|
|
|
750
798
|
// src/ui/layout/page/page-loading.tsx
|
|
751
|
-
var
|
|
752
|
-
var PageLoading = () => /* @__PURE__ */ (0,
|
|
799
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
800
|
+
var PageLoading = () => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex h-screen items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Spinner, {}) });
|
|
753
801
|
PageLoading.displayName = "TeachInUI.PageLoading";
|
|
754
802
|
|
|
755
803
|
// src/ui/layout/page/section-loading.tsx
|
|
756
|
-
var
|
|
757
|
-
var SectionLoading = () => /* @__PURE__ */ (0,
|
|
804
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
805
|
+
var SectionLoading = () => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex min-h-[400px] items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Spinner, {}) });
|
|
758
806
|
SectionLoading.displayName = "TeachInUI.SectionLoading";
|
|
759
807
|
|
|
760
|
-
// src/ui/layout/flex.tsx
|
|
761
|
-
var
|
|
762
|
-
var
|
|
763
|
-
var variants2 = (0,
|
|
808
|
+
// src/ui/layout/flex/flex.tsx
|
|
809
|
+
var import_tailwind_variants3 = require("tailwind-variants");
|
|
810
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
811
|
+
var variants2 = (0, import_tailwind_variants3.tv)({
|
|
764
812
|
base: "flex",
|
|
765
813
|
variants: {
|
|
766
814
|
direction: {
|
|
@@ -807,44 +855,100 @@ var variants2 = (0, import_tailwind_variants2.tv)({
|
|
|
807
855
|
}
|
|
808
856
|
});
|
|
809
857
|
var Flex = ({ className, ...props }) => {
|
|
810
|
-
return /* @__PURE__ */ (0,
|
|
858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: variants2({ ...props, className }), ...props });
|
|
811
859
|
};
|
|
812
860
|
Flex.displayName = "TeachInUI.Flex";
|
|
813
861
|
|
|
862
|
+
// src/ui/layout/grid/grid.tsx
|
|
863
|
+
var import_tailwind_variants4 = require("tailwind-variants");
|
|
864
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
865
|
+
var variants3 = (0, import_tailwind_variants4.tv)({
|
|
866
|
+
base: "grid",
|
|
867
|
+
variants: {
|
|
868
|
+
columns: {
|
|
869
|
+
1: "grid-cols-1",
|
|
870
|
+
2: "grid-cols-2",
|
|
871
|
+
3: "grid-cols-3",
|
|
872
|
+
4: "grid-cols-4",
|
|
873
|
+
6: "grid-cols-6",
|
|
874
|
+
12: "grid-cols-12"
|
|
875
|
+
},
|
|
876
|
+
gap: {
|
|
877
|
+
0: "gap-0",
|
|
878
|
+
1: "gap-1",
|
|
879
|
+
2: "gap-2",
|
|
880
|
+
4: "gap-4",
|
|
881
|
+
6: "gap-6",
|
|
882
|
+
8: "gap-8"
|
|
883
|
+
},
|
|
884
|
+
align: {
|
|
885
|
+
start: "items-start",
|
|
886
|
+
center: "items-center",
|
|
887
|
+
end: "items-end",
|
|
888
|
+
stretch: "items-stretch"
|
|
889
|
+
},
|
|
890
|
+
justify: {
|
|
891
|
+
start: "justify-start",
|
|
892
|
+
center: "justify-center",
|
|
893
|
+
end: "justify-end",
|
|
894
|
+
between: "justify-between",
|
|
895
|
+
around: "justify-around",
|
|
896
|
+
evenly: "justify-evenly"
|
|
897
|
+
},
|
|
898
|
+
flow: {
|
|
899
|
+
row: "grid-flow-row",
|
|
900
|
+
col: "grid-flow-col",
|
|
901
|
+
"row-dense": "grid-flow-row-dense",
|
|
902
|
+
"col-dense": "grid-flow-col-dense"
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
defaultVariants: {
|
|
906
|
+
columns: 3,
|
|
907
|
+
gap: 4,
|
|
908
|
+
align: "stretch",
|
|
909
|
+
justify: "start",
|
|
910
|
+
flow: "row"
|
|
911
|
+
}
|
|
912
|
+
});
|
|
913
|
+
var Grid = ({ className, ...props }) => {
|
|
914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: variants3({ ...props, className }), ...props });
|
|
915
|
+
};
|
|
916
|
+
Grid.displayName = "TeachInUI.Grid";
|
|
917
|
+
|
|
814
918
|
// src/ui/navigation/link/link.tsx
|
|
815
919
|
var import_link = require("@heroui/link");
|
|
816
|
-
var
|
|
920
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
817
921
|
function Link({ children, ...props }) {
|
|
818
|
-
return /* @__PURE__ */ (0,
|
|
922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_link.Link, { ...props, children });
|
|
819
923
|
}
|
|
820
924
|
Link.displayName = "TeachInUI.Link";
|
|
821
925
|
|
|
822
926
|
// src/ui/overlays/modal/modal.tsx
|
|
823
927
|
var import_modal = require("@heroui/modal");
|
|
824
|
-
var
|
|
928
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
825
929
|
function Root2({
|
|
826
930
|
size = "md",
|
|
827
931
|
placement = "center",
|
|
828
932
|
children,
|
|
829
933
|
...props
|
|
830
934
|
}) {
|
|
831
|
-
return /* @__PURE__ */ (0,
|
|
935
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_modal.Modal, { placement, size, ...props, children });
|
|
832
936
|
}
|
|
833
937
|
Root2.displayName = "TeachInUI.Modal.Root";
|
|
834
938
|
function Content({ children, ...props }) {
|
|
835
|
-
return /* @__PURE__ */ (0,
|
|
939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_modal.ModalContent, { ...props, children: (onClose) => typeof children === "function" ? children(onClose) : children });
|
|
836
940
|
}
|
|
837
941
|
Content.displayName = "TeachInUI.Modal.Content";
|
|
838
942
|
function Header2({ children, ...props }) {
|
|
839
|
-
return /* @__PURE__ */ (0,
|
|
943
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_modal.ModalHeader, { ...props, children });
|
|
840
944
|
}
|
|
841
945
|
Header2.displayName = "TeachInUI.Modal.Header";
|
|
842
946
|
function Body2({ children, ...props }) {
|
|
843
|
-
return /* @__PURE__ */ (0,
|
|
947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_modal.ModalBody, { ...props, children });
|
|
844
948
|
}
|
|
845
949
|
Body2.displayName = "TeachInUI.Modal.Body";
|
|
846
950
|
function Footer({ children, ...props }) {
|
|
847
|
-
return /* @__PURE__ */ (0,
|
|
951
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_modal.ModalFooter, { ...props, children });
|
|
848
952
|
}
|
|
849
953
|
Footer.displayName = "TeachInUI.Modal.Footer";
|
|
850
954
|
var Modal = {
|
|
@@ -857,14 +961,14 @@ var Modal = {
|
|
|
857
961
|
|
|
858
962
|
// src/ui/provider/ui-provider.tsx
|
|
859
963
|
var import_system2 = require("@heroui/system");
|
|
860
|
-
var
|
|
964
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
861
965
|
function UIProvider({
|
|
862
966
|
children,
|
|
863
967
|
locale = "ru-RU",
|
|
864
968
|
labelPlacement = "outside",
|
|
865
969
|
navigate
|
|
866
970
|
}) {
|
|
867
|
-
return /* @__PURE__ */ (0,
|
|
971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_system2.HeroUIProvider, { labelPlacement, locale, navigate, children });
|
|
868
972
|
}
|
|
869
973
|
|
|
870
974
|
// src/ui/style/css.ts
|
|
@@ -883,6 +987,366 @@ var breakpoints = {
|
|
|
883
987
|
xl: 1280,
|
|
884
988
|
"2xl": 1536
|
|
885
989
|
};
|
|
990
|
+
|
|
991
|
+
// src/ui/theme/theme.ts
|
|
992
|
+
var import_theme = require("@heroui/theme");
|
|
993
|
+
|
|
994
|
+
// src/ui/theme/colors/blue.ts
|
|
995
|
+
var blue = {
|
|
996
|
+
50: "#f5f7fd",
|
|
997
|
+
100: "#dfe8fb",
|
|
998
|
+
200: "#b5c8f6",
|
|
999
|
+
300: "#80a2f1",
|
|
1000
|
+
400: "#2e66e8",
|
|
1001
|
+
500: "#2552ba",
|
|
1002
|
+
600: "#1c3d8c",
|
|
1003
|
+
700: "#173274",
|
|
1004
|
+
800: "#0d1f45",
|
|
1005
|
+
900: "#070f22"
|
|
1006
|
+
};
|
|
1007
|
+
|
|
1008
|
+
// src/ui/theme/colors/green.ts
|
|
1009
|
+
var green = {
|
|
1010
|
+
50: "#f2fbf6",
|
|
1011
|
+
100: "#d9f2e3",
|
|
1012
|
+
200: "#a3e0bb",
|
|
1013
|
+
300: "#66cb8e",
|
|
1014
|
+
400: "#00a843",
|
|
1015
|
+
500: "#008636",
|
|
1016
|
+
600: "#006528",
|
|
1017
|
+
700: "#005421",
|
|
1018
|
+
800: "#002f13",
|
|
1019
|
+
900: "#00190a"
|
|
1020
|
+
};
|
|
1021
|
+
|
|
1022
|
+
// src/ui/theme/colors/pink.ts
|
|
1023
|
+
var pink = {
|
|
1024
|
+
50: "#fef8ff",
|
|
1025
|
+
100: "#fce9ff",
|
|
1026
|
+
200: "#f8c6ff",
|
|
1027
|
+
300: "#f4a8ff",
|
|
1028
|
+
400: "#ed6aff",
|
|
1029
|
+
500: "#c759d6",
|
|
1030
|
+
600: "#9844a3",
|
|
1031
|
+
700: "#7b3785",
|
|
1032
|
+
800: "#47204d",
|
|
1033
|
+
900: "#2b132e"
|
|
1034
|
+
};
|
|
1035
|
+
|
|
1036
|
+
// src/ui/theme/colors/purple.ts
|
|
1037
|
+
var purple = {
|
|
1038
|
+
50: "#faf6fe",
|
|
1039
|
+
100: "#efe5fd",
|
|
1040
|
+
200: "#d6bcfa",
|
|
1041
|
+
300: "#b88bf6",
|
|
1042
|
+
400: "#9350f2",
|
|
1043
|
+
500: "#7b43cb",
|
|
1044
|
+
600: "#5e339b",
|
|
1045
|
+
700: "#4c2a7e",
|
|
1046
|
+
800: "#2c1849",
|
|
1047
|
+
900: "#1a0e2c"
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
// src/ui/theme/colors/red.ts
|
|
1051
|
+
var red = {
|
|
1052
|
+
50: "#fdf4f3",
|
|
1053
|
+
100: "#f8dfdb",
|
|
1054
|
+
200: "#eeb2a9",
|
|
1055
|
+
300: "#e37f70",
|
|
1056
|
+
400: "#d02a11",
|
|
1057
|
+
500: "#a6220e",
|
|
1058
|
+
600: "#7d190a",
|
|
1059
|
+
700: "#681509",
|
|
1060
|
+
800: "#3a0c05",
|
|
1061
|
+
900: "#1f0603"
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
// src/ui/theme/colors/shipgray.ts
|
|
1065
|
+
var shipgray = {
|
|
1066
|
+
50: "#f8f8fa",
|
|
1067
|
+
100: "#f4f4f8",
|
|
1068
|
+
200: "#cfcdde",
|
|
1069
|
+
300: "#acaac7",
|
|
1070
|
+
400: "#7571a2",
|
|
1071
|
+
500: "#5e5a82",
|
|
1072
|
+
600: "#464461",
|
|
1073
|
+
700: "#232231",
|
|
1074
|
+
800: "#1a1923",
|
|
1075
|
+
900: "#121118"
|
|
1076
|
+
};
|
|
1077
|
+
|
|
1078
|
+
// src/ui/theme/colors/yellow.ts
|
|
1079
|
+
var yellow = {
|
|
1080
|
+
50: "#fffcec",
|
|
1081
|
+
100: "#fff2ab",
|
|
1082
|
+
200: "#ffe66e",
|
|
1083
|
+
300: "#ffd739",
|
|
1084
|
+
400: "#f5c20f",
|
|
1085
|
+
500: "#daa800",
|
|
1086
|
+
600: "#b38700",
|
|
1087
|
+
700: "#836100",
|
|
1088
|
+
800: "#4c3800",
|
|
1089
|
+
900: "#171200"
|
|
1090
|
+
};
|
|
1091
|
+
|
|
1092
|
+
// src/ui/theme/colors/cyan.ts
|
|
1093
|
+
var cyan = {
|
|
1094
|
+
50: "#f4fdfe",
|
|
1095
|
+
100: "#ddf9fd",
|
|
1096
|
+
200: "#a9effb",
|
|
1097
|
+
300: "#69e3f8",
|
|
1098
|
+
400: "#1cd5f4",
|
|
1099
|
+
500: "#18b3cd",
|
|
1100
|
+
600: "#12889c",
|
|
1101
|
+
700: "#0f6f7f",
|
|
1102
|
+
800: "#084049",
|
|
1103
|
+
900: "#05262c"
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
// src/ui/theme/colors/zinc.ts
|
|
1107
|
+
var zinc = {
|
|
1108
|
+
"50": "#fafafa",
|
|
1109
|
+
"100": "#f4f4f5",
|
|
1110
|
+
"200": "#e4e4e7",
|
|
1111
|
+
"300": "#d4d4d8",
|
|
1112
|
+
"400": "#a1a1aa",
|
|
1113
|
+
"500": "#71717a",
|
|
1114
|
+
"600": "#52525b",
|
|
1115
|
+
"700": "#3f3f46",
|
|
1116
|
+
"800": "#27272a",
|
|
1117
|
+
"900": "#18181b"
|
|
1118
|
+
};
|
|
1119
|
+
|
|
1120
|
+
// src/ui/theme/colors/common.ts
|
|
1121
|
+
var commonColors = {
|
|
1122
|
+
white: "#ffffff",
|
|
1123
|
+
black: "#111016",
|
|
1124
|
+
blue,
|
|
1125
|
+
green,
|
|
1126
|
+
pink,
|
|
1127
|
+
purple,
|
|
1128
|
+
red,
|
|
1129
|
+
shipgray,
|
|
1130
|
+
yellow,
|
|
1131
|
+
cyan,
|
|
1132
|
+
zinc
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
// src/ui/theme/swap-color-values.ts
|
|
1136
|
+
function swapColorValues(colors2) {
|
|
1137
|
+
const swappedColors = {};
|
|
1138
|
+
const keys = Object.keys(colors2);
|
|
1139
|
+
const length = keys.length;
|
|
1140
|
+
for (let i = 0; i < length / 2; i++) {
|
|
1141
|
+
const key1 = keys[i];
|
|
1142
|
+
const key2 = keys[length - 1 - i];
|
|
1143
|
+
swappedColors[key1] = colors2[key2];
|
|
1144
|
+
swappedColors[key2] = colors2[key1];
|
|
1145
|
+
}
|
|
1146
|
+
if (length % 2 !== 0) {
|
|
1147
|
+
const middleKey = keys[Math.floor(length / 2)];
|
|
1148
|
+
swappedColors[middleKey] = colors2[middleKey];
|
|
1149
|
+
}
|
|
1150
|
+
return swappedColors;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
// src/ui/theme/colors/semantic.ts
|
|
1154
|
+
var base = {
|
|
1155
|
+
light: {
|
|
1156
|
+
background: {
|
|
1157
|
+
DEFAULT: commonColors.white
|
|
1158
|
+
},
|
|
1159
|
+
foreground: {
|
|
1160
|
+
...commonColors.shipgray,
|
|
1161
|
+
DEFAULT: commonColors.shipgray[800]
|
|
1162
|
+
},
|
|
1163
|
+
divider: {
|
|
1164
|
+
DEFAULT: "rgba(17, 17, 6, 0.15)"
|
|
1165
|
+
},
|
|
1166
|
+
focus: {
|
|
1167
|
+
DEFAULT: commonColors.blue[400]
|
|
1168
|
+
},
|
|
1169
|
+
overlay: {
|
|
1170
|
+
DEFAULT: "#1110164c"
|
|
1171
|
+
},
|
|
1172
|
+
content1: {
|
|
1173
|
+
DEFAULT: commonColors.shipgray[50],
|
|
1174
|
+
foreground: commonColors.shipgray[900]
|
|
1175
|
+
},
|
|
1176
|
+
content2: {
|
|
1177
|
+
DEFAULT: commonColors.shipgray[100],
|
|
1178
|
+
foreground: commonColors.shipgray[800]
|
|
1179
|
+
},
|
|
1180
|
+
content3: {
|
|
1181
|
+
DEFAULT: commonColors.shipgray[200],
|
|
1182
|
+
foreground: commonColors.shipgray[700]
|
|
1183
|
+
},
|
|
1184
|
+
content4: {
|
|
1185
|
+
DEFAULT: commonColors.shipgray[300],
|
|
1186
|
+
foreground: commonColors.shipgray[600]
|
|
1187
|
+
}
|
|
1188
|
+
},
|
|
1189
|
+
dark: {
|
|
1190
|
+
background: {
|
|
1191
|
+
DEFAULT: commonColors.black
|
|
1192
|
+
},
|
|
1193
|
+
foreground: {
|
|
1194
|
+
...swapColorValues(commonColors.shipgray),
|
|
1195
|
+
DEFAULT: commonColors.shipgray[50]
|
|
1196
|
+
},
|
|
1197
|
+
focus: {
|
|
1198
|
+
DEFAULT: commonColors.blue[500]
|
|
1199
|
+
},
|
|
1200
|
+
overlay: {
|
|
1201
|
+
DEFAULT: "#1110164C"
|
|
1202
|
+
},
|
|
1203
|
+
divider: {
|
|
1204
|
+
DEFAULT: "rgba(255, 255, 255, 0.15)"
|
|
1205
|
+
},
|
|
1206
|
+
content1: {
|
|
1207
|
+
DEFAULT: commonColors.shipgray[800],
|
|
1208
|
+
foreground: commonColors.shipgray[50]
|
|
1209
|
+
},
|
|
1210
|
+
content2: {
|
|
1211
|
+
DEFAULT: commonColors.shipgray[700],
|
|
1212
|
+
foreground: commonColors.shipgray[100]
|
|
1213
|
+
},
|
|
1214
|
+
content3: {
|
|
1215
|
+
DEFAULT: commonColors.shipgray[600],
|
|
1216
|
+
foreground: commonColors.shipgray[200]
|
|
1217
|
+
},
|
|
1218
|
+
content4: {
|
|
1219
|
+
DEFAULT: commonColors.shipgray[500],
|
|
1220
|
+
foreground: commonColors.shipgray[300]
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
};
|
|
1224
|
+
var themeColorsLight = {
|
|
1225
|
+
...base.light,
|
|
1226
|
+
default: {
|
|
1227
|
+
...commonColors.shipgray,
|
|
1228
|
+
foreground: commonColors.black,
|
|
1229
|
+
flat: commonColors.shipgray[300],
|
|
1230
|
+
DEFAULT: commonColors.shipgray[100]
|
|
1231
|
+
},
|
|
1232
|
+
primary: {
|
|
1233
|
+
...commonColors.blue,
|
|
1234
|
+
foreground: commonColors.white,
|
|
1235
|
+
flat: commonColors.blue[500],
|
|
1236
|
+
DEFAULT: commonColors.blue[400]
|
|
1237
|
+
},
|
|
1238
|
+
secondary: {
|
|
1239
|
+
...commonColors.purple,
|
|
1240
|
+
foreground: commonColors.white,
|
|
1241
|
+
flat: commonColors.purple[500],
|
|
1242
|
+
DEFAULT: commonColors.purple[400]
|
|
1243
|
+
},
|
|
1244
|
+
success: {
|
|
1245
|
+
...commonColors.green,
|
|
1246
|
+
foreground: commonColors.black,
|
|
1247
|
+
flat: commonColors.green[500],
|
|
1248
|
+
DEFAULT: commonColors.green[400]
|
|
1249
|
+
},
|
|
1250
|
+
warning: {
|
|
1251
|
+
...commonColors.yellow,
|
|
1252
|
+
foreground: commonColors.black,
|
|
1253
|
+
flat: commonColors.yellow[500],
|
|
1254
|
+
DEFAULT: commonColors.yellow[500]
|
|
1255
|
+
},
|
|
1256
|
+
danger: {
|
|
1257
|
+
...commonColors.red,
|
|
1258
|
+
foreground: commonColors.white,
|
|
1259
|
+
flat: commonColors.red[500],
|
|
1260
|
+
DEFAULT: commonColors.red[400]
|
|
1261
|
+
}
|
|
1262
|
+
};
|
|
1263
|
+
var themeColorsDark = {
|
|
1264
|
+
...base.dark,
|
|
1265
|
+
default: {
|
|
1266
|
+
...swapColorValues(commonColors.shipgray),
|
|
1267
|
+
foreground: commonColors.white,
|
|
1268
|
+
flat: commonColors.shipgray[600],
|
|
1269
|
+
DEFAULT: commonColors.shipgray[700]
|
|
1270
|
+
},
|
|
1271
|
+
primary: {
|
|
1272
|
+
...swapColorValues(commonColors.blue),
|
|
1273
|
+
foreground: commonColors.blue[500],
|
|
1274
|
+
flat: commonColors.blue[500],
|
|
1275
|
+
DEFAULT: commonColors.blue[500]
|
|
1276
|
+
},
|
|
1277
|
+
secondary: {
|
|
1278
|
+
...swapColorValues(commonColors.purple),
|
|
1279
|
+
foreground: commonColors.white,
|
|
1280
|
+
flat: commonColors.purple[400],
|
|
1281
|
+
DEFAULT: commonColors.purple[400]
|
|
1282
|
+
},
|
|
1283
|
+
success: {
|
|
1284
|
+
...swapColorValues(commonColors.green),
|
|
1285
|
+
foreground: commonColors.black,
|
|
1286
|
+
flat: commonColors.green[500],
|
|
1287
|
+
DEFAULT: commonColors.green[500]
|
|
1288
|
+
},
|
|
1289
|
+
warning: {
|
|
1290
|
+
...swapColorValues(commonColors.yellow),
|
|
1291
|
+
foreground: commonColors.black,
|
|
1292
|
+
flat: commonColors.yellow[500],
|
|
1293
|
+
DEFAULT: commonColors.yellow[500]
|
|
1294
|
+
},
|
|
1295
|
+
danger: {
|
|
1296
|
+
...swapColorValues(commonColors.red),
|
|
1297
|
+
foreground: commonColors.white,
|
|
1298
|
+
flat: commonColors.red[500],
|
|
1299
|
+
DEFAULT: commonColors.red[500]
|
|
1300
|
+
}
|
|
1301
|
+
};
|
|
1302
|
+
var semanticColors = {
|
|
1303
|
+
light: themeColorsLight,
|
|
1304
|
+
dark: themeColorsDark
|
|
1305
|
+
};
|
|
1306
|
+
|
|
1307
|
+
// src/ui/theme/colors/index.ts
|
|
1308
|
+
var colors = {
|
|
1309
|
+
...commonColors,
|
|
1310
|
+
...semanticColors
|
|
1311
|
+
};
|
|
1312
|
+
|
|
1313
|
+
// src/ui/theme/theme.ts
|
|
1314
|
+
var theme = (0, import_theme.heroui)({
|
|
1315
|
+
layout: {
|
|
1316
|
+
dividerWeight: "0.0625rem",
|
|
1317
|
+
disabledOpacity: ".5",
|
|
1318
|
+
fontSize: {
|
|
1319
|
+
tiny: "0.75rem",
|
|
1320
|
+
small: "0.875rem",
|
|
1321
|
+
medium: "1rem",
|
|
1322
|
+
large: "1.125rem"
|
|
1323
|
+
},
|
|
1324
|
+
lineHeight: {
|
|
1325
|
+
tiny: "1rem",
|
|
1326
|
+
small: "1.25rem",
|
|
1327
|
+
medium: "1.5rem",
|
|
1328
|
+
large: "1.75rem"
|
|
1329
|
+
},
|
|
1330
|
+
radius: {
|
|
1331
|
+
small: "0.5rem",
|
|
1332
|
+
medium: "0.75rem",
|
|
1333
|
+
large: "1rem"
|
|
1334
|
+
},
|
|
1335
|
+
borderWidth: {
|
|
1336
|
+
small: "0.0625rem",
|
|
1337
|
+
medium: "0.125rem",
|
|
1338
|
+
large: "0.1875rem"
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
1341
|
+
themes: {
|
|
1342
|
+
light: {
|
|
1343
|
+
colors: semanticColors.light
|
|
1344
|
+
},
|
|
1345
|
+
dark: {
|
|
1346
|
+
colors: semanticColors.dark
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
});
|
|
886
1350
|
// Annotate the CommonJS export names for ESM import in node:
|
|
887
1351
|
0 && (module.exports = {
|
|
888
1352
|
Actions,
|
|
@@ -890,6 +1354,7 @@ var breakpoints = {
|
|
|
890
1354
|
Autocomplete,
|
|
891
1355
|
AutocompleteField,
|
|
892
1356
|
Avatar,
|
|
1357
|
+
Bento,
|
|
893
1358
|
Body,
|
|
894
1359
|
Button,
|
|
895
1360
|
Checkbox,
|
|
@@ -911,6 +1376,7 @@ var breakpoints = {
|
|
|
911
1376
|
FormatPercent,
|
|
912
1377
|
FormatPlural,
|
|
913
1378
|
FormatTime,
|
|
1379
|
+
Grid,
|
|
914
1380
|
Header,
|
|
915
1381
|
Input,
|
|
916
1382
|
InputField,
|
|
@@ -938,6 +1404,8 @@ var breakpoints = {
|
|
|
938
1404
|
Title,
|
|
939
1405
|
Tooltip,
|
|
940
1406
|
UIProvider,
|
|
1407
|
+
bento,
|
|
941
1408
|
breakpoints,
|
|
942
|
-
cn
|
|
1409
|
+
cn,
|
|
1410
|
+
theme
|
|
943
1411
|
});
|