@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
package/dist/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __export(index_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(index_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(index_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(index_exports);
|
|
91
95
|
|
|
@@ -96,11 +100,8 @@ var import_system = require("@heroui/system");
|
|
|
96
100
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
97
101
|
var BaseButton = (0, import_system.extendVariants)(import_button.Button, {
|
|
98
102
|
variants: {
|
|
99
|
-
color: {
|
|
100
|
-
primary: "bg-primary-400"
|
|
101
|
-
},
|
|
102
103
|
size: {
|
|
103
|
-
lg: "min-w-20 h-14 text-base gap-2
|
|
104
|
+
lg: "px-6 min-w-20 h-14 text-base gap-2 rounded-large"
|
|
104
105
|
}
|
|
105
106
|
},
|
|
106
107
|
defaultVariants: {
|
|
@@ -108,7 +109,14 @@ var BaseButton = (0, import_system.extendVariants)(import_button.Button, {
|
|
|
108
109
|
}
|
|
109
110
|
});
|
|
110
111
|
var Button = import_react.default.forwardRef((props, ref) => {
|
|
111
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
112
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
113
|
+
BaseButton,
|
|
114
|
+
{
|
|
115
|
+
ref,
|
|
116
|
+
className: props.variant === "flat" && props.color === "default" ? "bg-default-flat/25 !text-default-800" : props.className,
|
|
117
|
+
...props
|
|
118
|
+
}
|
|
119
|
+
);
|
|
112
120
|
});
|
|
113
121
|
Button.displayName = "TeachInUI.Button";
|
|
114
122
|
|
|
@@ -124,6 +132,7 @@ Avatar.displayName = "TeachInUI.Avatar";
|
|
|
124
132
|
// src/ui/data/pagination/pagination.tsx
|
|
125
133
|
var import_react3 = __toESM(require("react"));
|
|
126
134
|
var import_pagination = require("@heroui/pagination");
|
|
135
|
+
var import_pagination2 = require("@heroui/pagination");
|
|
127
136
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
128
137
|
var Pagination = import_react3.default.forwardRef(({ pages, ...props }, ref) => {
|
|
129
138
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_pagination.Pagination, { ref, isCompact: true, showControls: true, showShadow: true, total: pages, ...props });
|
|
@@ -152,11 +161,9 @@ Chip.displayName = "TeachInUI.Chip";
|
|
|
152
161
|
var import_react6 = __toESM(require("react"));
|
|
153
162
|
var import_spinner = require("@heroui/spinner");
|
|
154
163
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
155
|
-
var Spinner = import_react6.default.forwardRef(
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
);
|
|
164
|
+
var Spinner = import_react6.default.forwardRef((props, ref) => {
|
|
165
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_spinner.Spinner, { ref, ...props });
|
|
166
|
+
});
|
|
160
167
|
Spinner.displayName = "TeachInUI.Spinner";
|
|
161
168
|
|
|
162
169
|
// src/ui/feedback/tooltip/tooltip.tsx
|
|
@@ -165,7 +172,7 @@ var import_tooltip = require("@heroui/tooltip");
|
|
|
165
172
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
166
173
|
var Tooltip = import_react7.default.forwardRef(
|
|
167
174
|
({ placement = "bottom", ...props }, ref) => {
|
|
168
|
-
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 });
|
|
169
176
|
}
|
|
170
177
|
);
|
|
171
178
|
Tooltip.displayName = "TeachInUI.Tooltip";
|
|
@@ -479,11 +486,12 @@ Form.displayName = "TeachInUI.Form";
|
|
|
479
486
|
// src/ui/format/datetime.tsx
|
|
480
487
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
481
488
|
var defaultFormat = {
|
|
482
|
-
day: "
|
|
483
|
-
month: "
|
|
489
|
+
day: "numeric",
|
|
490
|
+
month: "long",
|
|
484
491
|
year: "numeric",
|
|
485
492
|
hour: "2-digit",
|
|
486
|
-
minute: "2-digit"
|
|
493
|
+
minute: "2-digit",
|
|
494
|
+
second: "2-digit"
|
|
487
495
|
};
|
|
488
496
|
function Datetime({
|
|
489
497
|
value,
|
|
@@ -502,8 +510,8 @@ Datetime.displayName = "TeachInUI.FormatDatetime";
|
|
|
502
510
|
// src/ui/format/date.tsx
|
|
503
511
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
504
512
|
var defaultFormat2 = {
|
|
505
|
-
day: "
|
|
506
|
-
month: "
|
|
513
|
+
day: "numeric",
|
|
514
|
+
month: "long",
|
|
507
515
|
year: "numeric"
|
|
508
516
|
};
|
|
509
517
|
function DateFormat({
|
|
@@ -655,15 +663,59 @@ function Boolean({
|
|
|
655
663
|
}
|
|
656
664
|
Boolean.displayName = "TeachInUI.FormatBoolean";
|
|
657
665
|
|
|
658
|
-
// src/ui/
|
|
659
|
-
var import_react_slot = require("@radix-ui/react-slot");
|
|
666
|
+
// src/ui/surface/bento/bento.tsx
|
|
660
667
|
var import_tailwind_variants = require("tailwind-variants");
|
|
661
668
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
662
|
-
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)({
|
|
663
715
|
base: "w-full mx-auto px-6",
|
|
664
716
|
variants: {
|
|
665
717
|
size: {
|
|
666
|
-
xs: "max-w-
|
|
718
|
+
xs: "max-w-xs",
|
|
667
719
|
sm: "max-w-screen-sm",
|
|
668
720
|
md: "max-w-screen-md",
|
|
669
721
|
lg: "max-w-screen-lg",
|
|
@@ -678,58 +730,58 @@ var variants = (0, import_tailwind_variants.tv)({
|
|
|
678
730
|
});
|
|
679
731
|
var Container = ({ children, asChild = false, className, size, ...props }) => {
|
|
680
732
|
const Comp = asChild ? import_react_slot.Slot : "div";
|
|
681
|
-
return /* @__PURE__ */ (0,
|
|
733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Comp, { className: cn(variants({ size }), className), ...props, children });
|
|
682
734
|
};
|
|
683
735
|
Container.displayName = "TeachInUI.Container";
|
|
684
736
|
|
|
685
737
|
// src/ui/layout/page/breadcrumbs.tsx
|
|
686
738
|
var import_breadcrumbs = require("@heroui/breadcrumbs");
|
|
687
|
-
var
|
|
688
|
-
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)) });
|
|
689
741
|
|
|
690
742
|
// src/ui/layout/page/page-content.tsx
|
|
691
|
-
var
|
|
743
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
692
744
|
var Root = ({
|
|
693
745
|
children,
|
|
694
746
|
breadcrumbs = []
|
|
695
|
-
}) => /* @__PURE__ */ (0,
|
|
696
|
-
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 }),
|
|
697
749
|
children
|
|
698
750
|
] });
|
|
699
751
|
Root.displayName = "TeachInUI.PageContent.Root";
|
|
700
|
-
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 });
|
|
701
753
|
Header.displayName = "TeachInUI.PageContent.Header";
|
|
702
754
|
var Title = ({
|
|
703
755
|
children,
|
|
704
756
|
...others
|
|
705
|
-
}) => /* @__PURE__ */ (0,
|
|
757
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h1", { className: "text-4xl leading-10 font-bold", ...others, children });
|
|
706
758
|
Title.displayName = "TeachInUI.PageContent.Title";
|
|
707
759
|
var Actions = ({
|
|
708
760
|
children,
|
|
709
761
|
...others
|
|
710
|
-
}) => /* @__PURE__ */ (0,
|
|
762
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex gap-2", role: "group", ...others, children });
|
|
711
763
|
Actions.displayName = "TeachInUI.PageContent.Actions";
|
|
712
|
-
var Body = ({ children }) => /* @__PURE__ */ (0,
|
|
764
|
+
var Body = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex flex-col gap-6", children });
|
|
713
765
|
Body.displayName = "TeachInUI.PageContent.Body";
|
|
714
766
|
var Section = ({
|
|
715
767
|
children,
|
|
716
768
|
...others
|
|
717
|
-
}) => /* @__PURE__ */ (0,
|
|
769
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("section", { className: "flex flex-col gap-4", ...others, children });
|
|
718
770
|
Section.displayName = "TeachInUI.PageContent.Section";
|
|
719
771
|
var SectionHeader = ({
|
|
720
772
|
children,
|
|
721
773
|
...others
|
|
722
|
-
}) => /* @__PURE__ */ (0,
|
|
774
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex items-center justify-between", ...others, children });
|
|
723
775
|
SectionHeader.displayName = "TeachInUI.PageContent.SectionHeader";
|
|
724
776
|
var SectionTitle = ({
|
|
725
777
|
children,
|
|
726
778
|
...others
|
|
727
|
-
}) => /* @__PURE__ */ (0,
|
|
779
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h2", { className: "text-3xl leading-9 font-bold", ...others, children });
|
|
728
780
|
SectionTitle.displayName = "TeachInUI.PageContent.SectionTitle";
|
|
729
781
|
var SectionActions = ({
|
|
730
782
|
children,
|
|
731
783
|
...others
|
|
732
|
-
}) => /* @__PURE__ */ (0,
|
|
784
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex gap-2", role: "group", ...others, children });
|
|
733
785
|
SectionActions.displayName = "TeachInUI.PageContent.SectionActions";
|
|
734
786
|
var PageContent = {
|
|
735
787
|
Root,
|
|
@@ -744,19 +796,19 @@ var PageContent = {
|
|
|
744
796
|
};
|
|
745
797
|
|
|
746
798
|
// src/ui/layout/page/page-loading.tsx
|
|
747
|
-
var
|
|
748
|
-
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, {}) });
|
|
749
801
|
PageLoading.displayName = "TeachInUI.PageLoading";
|
|
750
802
|
|
|
751
803
|
// src/ui/layout/page/section-loading.tsx
|
|
752
|
-
var
|
|
753
|
-
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, {}) });
|
|
754
806
|
SectionLoading.displayName = "TeachInUI.SectionLoading";
|
|
755
807
|
|
|
756
|
-
// src/ui/layout/flex.tsx
|
|
757
|
-
var
|
|
758
|
-
var
|
|
759
|
-
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)({
|
|
760
812
|
base: "flex",
|
|
761
813
|
variants: {
|
|
762
814
|
direction: {
|
|
@@ -803,44 +855,100 @@ var variants2 = (0, import_tailwind_variants2.tv)({
|
|
|
803
855
|
}
|
|
804
856
|
});
|
|
805
857
|
var Flex = ({ className, ...props }) => {
|
|
806
|
-
return /* @__PURE__ */ (0,
|
|
858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: variants2({ ...props, className }), ...props });
|
|
807
859
|
};
|
|
808
860
|
Flex.displayName = "TeachInUI.Flex";
|
|
809
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
|
+
|
|
810
918
|
// src/ui/navigation/link/link.tsx
|
|
811
919
|
var import_link = require("@heroui/link");
|
|
812
|
-
var
|
|
920
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
813
921
|
function Link({ children, ...props }) {
|
|
814
|
-
return /* @__PURE__ */ (0,
|
|
922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_link.Link, { ...props, children });
|
|
815
923
|
}
|
|
816
924
|
Link.displayName = "TeachInUI.Link";
|
|
817
925
|
|
|
818
926
|
// src/ui/overlays/modal/modal.tsx
|
|
819
927
|
var import_modal = require("@heroui/modal");
|
|
820
|
-
var
|
|
928
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
821
929
|
function Root2({
|
|
822
930
|
size = "md",
|
|
823
931
|
placement = "center",
|
|
824
932
|
children,
|
|
825
933
|
...props
|
|
826
934
|
}) {
|
|
827
|
-
return /* @__PURE__ */ (0,
|
|
935
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_modal.Modal, { placement, size, ...props, children });
|
|
828
936
|
}
|
|
829
937
|
Root2.displayName = "TeachInUI.Modal.Root";
|
|
830
938
|
function Content({ children, ...props }) {
|
|
831
|
-
return /* @__PURE__ */ (0,
|
|
939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_modal.ModalContent, { ...props, children: (onClose) => typeof children === "function" ? children(onClose) : children });
|
|
832
940
|
}
|
|
833
941
|
Content.displayName = "TeachInUI.Modal.Content";
|
|
834
942
|
function Header2({ children, ...props }) {
|
|
835
|
-
return /* @__PURE__ */ (0,
|
|
943
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_modal.ModalHeader, { ...props, children });
|
|
836
944
|
}
|
|
837
945
|
Header2.displayName = "TeachInUI.Modal.Header";
|
|
838
946
|
function Body2({ children, ...props }) {
|
|
839
|
-
return /* @__PURE__ */ (0,
|
|
947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_modal.ModalBody, { ...props, children });
|
|
840
948
|
}
|
|
841
949
|
Body2.displayName = "TeachInUI.Modal.Body";
|
|
842
950
|
function Footer({ children, ...props }) {
|
|
843
|
-
return /* @__PURE__ */ (0,
|
|
951
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_modal.ModalFooter, { ...props, children });
|
|
844
952
|
}
|
|
845
953
|
Footer.displayName = "TeachInUI.Modal.Footer";
|
|
846
954
|
var Modal = {
|
|
@@ -853,14 +961,14 @@ var Modal = {
|
|
|
853
961
|
|
|
854
962
|
// src/ui/provider/ui-provider.tsx
|
|
855
963
|
var import_system2 = require("@heroui/system");
|
|
856
|
-
var
|
|
964
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
857
965
|
function UIProvider({
|
|
858
966
|
children,
|
|
859
967
|
locale = "ru-RU",
|
|
860
968
|
labelPlacement = "outside",
|
|
861
969
|
navigate
|
|
862
970
|
}) {
|
|
863
|
-
return /* @__PURE__ */ (0,
|
|
971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_system2.HeroUIProvider, { labelPlacement, locale, navigate, children });
|
|
864
972
|
}
|
|
865
973
|
|
|
866
974
|
// src/ui/style/css.ts
|
|
@@ -879,6 +987,366 @@ var breakpoints = {
|
|
|
879
987
|
xl: 1280,
|
|
880
988
|
"2xl": 1536
|
|
881
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
|
+
});
|
|
882
1350
|
// Annotate the CommonJS export names for ESM import in node:
|
|
883
1351
|
0 && (module.exports = {
|
|
884
1352
|
Actions,
|
|
@@ -886,6 +1354,7 @@ var breakpoints = {
|
|
|
886
1354
|
Autocomplete,
|
|
887
1355
|
AutocompleteField,
|
|
888
1356
|
Avatar,
|
|
1357
|
+
Bento,
|
|
889
1358
|
Body,
|
|
890
1359
|
Button,
|
|
891
1360
|
Checkbox,
|
|
@@ -907,6 +1376,7 @@ var breakpoints = {
|
|
|
907
1376
|
FormatPercent,
|
|
908
1377
|
FormatPlural,
|
|
909
1378
|
FormatTime,
|
|
1379
|
+
Grid,
|
|
910
1380
|
Header,
|
|
911
1381
|
Input,
|
|
912
1382
|
InputField,
|
|
@@ -934,6 +1404,8 @@ var breakpoints = {
|
|
|
934
1404
|
Title,
|
|
935
1405
|
Tooltip,
|
|
936
1406
|
UIProvider,
|
|
1407
|
+
bento,
|
|
937
1408
|
breakpoints,
|
|
938
|
-
cn
|
|
1409
|
+
cn,
|
|
1410
|
+
theme
|
|
939
1411
|
});
|