@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/theme/theme.js
CHANGED
|
@@ -21,12 +21,335 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
// src/ui/theme/theme.ts
|
|
22
22
|
var theme_exports = {};
|
|
23
23
|
__export(theme_exports, {
|
|
24
|
-
|
|
24
|
+
theme: () => theme
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(theme_exports);
|
|
27
27
|
var import_theme = require("@heroui/theme");
|
|
28
|
-
|
|
28
|
+
|
|
29
|
+
// src/ui/theme/colors/blue.ts
|
|
30
|
+
var blue = {
|
|
31
|
+
50: "#f5f7fd",
|
|
32
|
+
100: "#dfe8fb",
|
|
33
|
+
200: "#b5c8f6",
|
|
34
|
+
300: "#80a2f1",
|
|
35
|
+
400: "#2e66e8",
|
|
36
|
+
500: "#2552ba",
|
|
37
|
+
600: "#1c3d8c",
|
|
38
|
+
700: "#173274",
|
|
39
|
+
800: "#0d1f45",
|
|
40
|
+
900: "#070f22"
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// src/ui/theme/colors/green.ts
|
|
44
|
+
var green = {
|
|
45
|
+
50: "#f2fbf6",
|
|
46
|
+
100: "#d9f2e3",
|
|
47
|
+
200: "#a3e0bb",
|
|
48
|
+
300: "#66cb8e",
|
|
49
|
+
400: "#00a843",
|
|
50
|
+
500: "#008636",
|
|
51
|
+
600: "#006528",
|
|
52
|
+
700: "#005421",
|
|
53
|
+
800: "#002f13",
|
|
54
|
+
900: "#00190a"
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
// src/ui/theme/colors/pink.ts
|
|
58
|
+
var pink = {
|
|
59
|
+
50: "#fef8ff",
|
|
60
|
+
100: "#fce9ff",
|
|
61
|
+
200: "#f8c6ff",
|
|
62
|
+
300: "#f4a8ff",
|
|
63
|
+
400: "#ed6aff",
|
|
64
|
+
500: "#c759d6",
|
|
65
|
+
600: "#9844a3",
|
|
66
|
+
700: "#7b3785",
|
|
67
|
+
800: "#47204d",
|
|
68
|
+
900: "#2b132e"
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// src/ui/theme/colors/purple.ts
|
|
72
|
+
var purple = {
|
|
73
|
+
50: "#faf6fe",
|
|
74
|
+
100: "#efe5fd",
|
|
75
|
+
200: "#d6bcfa",
|
|
76
|
+
300: "#b88bf6",
|
|
77
|
+
400: "#9350f2",
|
|
78
|
+
500: "#7b43cb",
|
|
79
|
+
600: "#5e339b",
|
|
80
|
+
700: "#4c2a7e",
|
|
81
|
+
800: "#2c1849",
|
|
82
|
+
900: "#1a0e2c"
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
// src/ui/theme/colors/red.ts
|
|
86
|
+
var red = {
|
|
87
|
+
50: "#fdf4f3",
|
|
88
|
+
100: "#f8dfdb",
|
|
89
|
+
200: "#eeb2a9",
|
|
90
|
+
300: "#e37f70",
|
|
91
|
+
400: "#d02a11",
|
|
92
|
+
500: "#a6220e",
|
|
93
|
+
600: "#7d190a",
|
|
94
|
+
700: "#681509",
|
|
95
|
+
800: "#3a0c05",
|
|
96
|
+
900: "#1f0603"
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
// src/ui/theme/colors/shipgray.ts
|
|
100
|
+
var shipgray = {
|
|
101
|
+
50: "#f8f8fa",
|
|
102
|
+
100: "#f4f4f8",
|
|
103
|
+
200: "#cfcdde",
|
|
104
|
+
300: "#acaac7",
|
|
105
|
+
400: "#7571a2",
|
|
106
|
+
500: "#5e5a82",
|
|
107
|
+
600: "#464461",
|
|
108
|
+
700: "#232231",
|
|
109
|
+
800: "#1a1923",
|
|
110
|
+
900: "#121118"
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
// src/ui/theme/colors/yellow.ts
|
|
114
|
+
var yellow = {
|
|
115
|
+
50: "#fffcec",
|
|
116
|
+
100: "#fff2ab",
|
|
117
|
+
200: "#ffe66e",
|
|
118
|
+
300: "#ffd739",
|
|
119
|
+
400: "#f5c20f",
|
|
120
|
+
500: "#daa800",
|
|
121
|
+
600: "#b38700",
|
|
122
|
+
700: "#836100",
|
|
123
|
+
800: "#4c3800",
|
|
124
|
+
900: "#171200"
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
// src/ui/theme/colors/cyan.ts
|
|
128
|
+
var cyan = {
|
|
129
|
+
50: "#f4fdfe",
|
|
130
|
+
100: "#ddf9fd",
|
|
131
|
+
200: "#a9effb",
|
|
132
|
+
300: "#69e3f8",
|
|
133
|
+
400: "#1cd5f4",
|
|
134
|
+
500: "#18b3cd",
|
|
135
|
+
600: "#12889c",
|
|
136
|
+
700: "#0f6f7f",
|
|
137
|
+
800: "#084049",
|
|
138
|
+
900: "#05262c"
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
// src/ui/theme/colors/zinc.ts
|
|
142
|
+
var zinc = {
|
|
143
|
+
"50": "#fafafa",
|
|
144
|
+
"100": "#f4f4f5",
|
|
145
|
+
"200": "#e4e4e7",
|
|
146
|
+
"300": "#d4d4d8",
|
|
147
|
+
"400": "#a1a1aa",
|
|
148
|
+
"500": "#71717a",
|
|
149
|
+
"600": "#52525b",
|
|
150
|
+
"700": "#3f3f46",
|
|
151
|
+
"800": "#27272a",
|
|
152
|
+
"900": "#18181b"
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
// src/ui/theme/colors/common.ts
|
|
156
|
+
var commonColors = {
|
|
157
|
+
white: "#ffffff",
|
|
158
|
+
black: "#111016",
|
|
159
|
+
blue,
|
|
160
|
+
green,
|
|
161
|
+
pink,
|
|
162
|
+
purple,
|
|
163
|
+
red,
|
|
164
|
+
shipgray,
|
|
165
|
+
yellow,
|
|
166
|
+
cyan,
|
|
167
|
+
zinc
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
// src/ui/theme/swap-color-values.ts
|
|
171
|
+
function swapColorValues(colors2) {
|
|
172
|
+
const swappedColors = {};
|
|
173
|
+
const keys = Object.keys(colors2);
|
|
174
|
+
const length = keys.length;
|
|
175
|
+
for (let i = 0; i < length / 2; i++) {
|
|
176
|
+
const key1 = keys[i];
|
|
177
|
+
const key2 = keys[length - 1 - i];
|
|
178
|
+
swappedColors[key1] = colors2[key2];
|
|
179
|
+
swappedColors[key2] = colors2[key1];
|
|
180
|
+
}
|
|
181
|
+
if (length % 2 !== 0) {
|
|
182
|
+
const middleKey = keys[Math.floor(length / 2)];
|
|
183
|
+
swappedColors[middleKey] = colors2[middleKey];
|
|
184
|
+
}
|
|
185
|
+
return swappedColors;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// src/ui/theme/colors/semantic.ts
|
|
189
|
+
var base = {
|
|
190
|
+
light: {
|
|
191
|
+
background: {
|
|
192
|
+
DEFAULT: commonColors.white
|
|
193
|
+
},
|
|
194
|
+
foreground: {
|
|
195
|
+
...commonColors.shipgray,
|
|
196
|
+
DEFAULT: commonColors.shipgray[800]
|
|
197
|
+
},
|
|
198
|
+
divider: {
|
|
199
|
+
DEFAULT: "rgba(17, 17, 6, 0.15)"
|
|
200
|
+
},
|
|
201
|
+
focus: {
|
|
202
|
+
DEFAULT: commonColors.blue[400]
|
|
203
|
+
},
|
|
204
|
+
overlay: {
|
|
205
|
+
DEFAULT: "#1110164c"
|
|
206
|
+
},
|
|
207
|
+
content1: {
|
|
208
|
+
DEFAULT: commonColors.shipgray[50],
|
|
209
|
+
foreground: commonColors.shipgray[900]
|
|
210
|
+
},
|
|
211
|
+
content2: {
|
|
212
|
+
DEFAULT: commonColors.shipgray[100],
|
|
213
|
+
foreground: commonColors.shipgray[800]
|
|
214
|
+
},
|
|
215
|
+
content3: {
|
|
216
|
+
DEFAULT: commonColors.shipgray[200],
|
|
217
|
+
foreground: commonColors.shipgray[700]
|
|
218
|
+
},
|
|
219
|
+
content4: {
|
|
220
|
+
DEFAULT: commonColors.shipgray[300],
|
|
221
|
+
foreground: commonColors.shipgray[600]
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
dark: {
|
|
225
|
+
background: {
|
|
226
|
+
DEFAULT: commonColors.black
|
|
227
|
+
},
|
|
228
|
+
foreground: {
|
|
229
|
+
...swapColorValues(commonColors.shipgray),
|
|
230
|
+
DEFAULT: commonColors.shipgray[50]
|
|
231
|
+
},
|
|
232
|
+
focus: {
|
|
233
|
+
DEFAULT: commonColors.blue[500]
|
|
234
|
+
},
|
|
235
|
+
overlay: {
|
|
236
|
+
DEFAULT: "#1110164C"
|
|
237
|
+
},
|
|
238
|
+
divider: {
|
|
239
|
+
DEFAULT: "rgba(255, 255, 255, 0.15)"
|
|
240
|
+
},
|
|
241
|
+
content1: {
|
|
242
|
+
DEFAULT: commonColors.shipgray[800],
|
|
243
|
+
foreground: commonColors.shipgray[50]
|
|
244
|
+
},
|
|
245
|
+
content2: {
|
|
246
|
+
DEFAULT: commonColors.shipgray[700],
|
|
247
|
+
foreground: commonColors.shipgray[100]
|
|
248
|
+
},
|
|
249
|
+
content3: {
|
|
250
|
+
DEFAULT: commonColors.shipgray[600],
|
|
251
|
+
foreground: commonColors.shipgray[200]
|
|
252
|
+
},
|
|
253
|
+
content4: {
|
|
254
|
+
DEFAULT: commonColors.shipgray[500],
|
|
255
|
+
foreground: commonColors.shipgray[300]
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
var themeColorsLight = {
|
|
260
|
+
...base.light,
|
|
261
|
+
default: {
|
|
262
|
+
...commonColors.shipgray,
|
|
263
|
+
foreground: commonColors.black,
|
|
264
|
+
flat: commonColors.shipgray[300],
|
|
265
|
+
DEFAULT: commonColors.shipgray[100]
|
|
266
|
+
},
|
|
267
|
+
primary: {
|
|
268
|
+
...commonColors.blue,
|
|
269
|
+
foreground: commonColors.white,
|
|
270
|
+
flat: commonColors.blue[500],
|
|
271
|
+
DEFAULT: commonColors.blue[400]
|
|
272
|
+
},
|
|
273
|
+
secondary: {
|
|
274
|
+
...commonColors.purple,
|
|
275
|
+
foreground: commonColors.white,
|
|
276
|
+
flat: commonColors.purple[500],
|
|
277
|
+
DEFAULT: commonColors.purple[400]
|
|
278
|
+
},
|
|
279
|
+
success: {
|
|
280
|
+
...commonColors.green,
|
|
281
|
+
foreground: commonColors.black,
|
|
282
|
+
flat: commonColors.green[500],
|
|
283
|
+
DEFAULT: commonColors.green[400]
|
|
284
|
+
},
|
|
285
|
+
warning: {
|
|
286
|
+
...commonColors.yellow,
|
|
287
|
+
foreground: commonColors.black,
|
|
288
|
+
flat: commonColors.yellow[500],
|
|
289
|
+
DEFAULT: commonColors.yellow[500]
|
|
290
|
+
},
|
|
291
|
+
danger: {
|
|
292
|
+
...commonColors.red,
|
|
293
|
+
foreground: commonColors.white,
|
|
294
|
+
flat: commonColors.red[500],
|
|
295
|
+
DEFAULT: commonColors.red[400]
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
var themeColorsDark = {
|
|
299
|
+
...base.dark,
|
|
300
|
+
default: {
|
|
301
|
+
...swapColorValues(commonColors.shipgray),
|
|
302
|
+
foreground: commonColors.white,
|
|
303
|
+
flat: commonColors.shipgray[600],
|
|
304
|
+
DEFAULT: commonColors.shipgray[700]
|
|
305
|
+
},
|
|
306
|
+
primary: {
|
|
307
|
+
...swapColorValues(commonColors.blue),
|
|
308
|
+
foreground: commonColors.blue[500],
|
|
309
|
+
flat: commonColors.blue[500],
|
|
310
|
+
DEFAULT: commonColors.blue[500]
|
|
311
|
+
},
|
|
312
|
+
secondary: {
|
|
313
|
+
...swapColorValues(commonColors.purple),
|
|
314
|
+
foreground: commonColors.white,
|
|
315
|
+
flat: commonColors.purple[400],
|
|
316
|
+
DEFAULT: commonColors.purple[400]
|
|
317
|
+
},
|
|
318
|
+
success: {
|
|
319
|
+
...swapColorValues(commonColors.green),
|
|
320
|
+
foreground: commonColors.black,
|
|
321
|
+
flat: commonColors.green[500],
|
|
322
|
+
DEFAULT: commonColors.green[500]
|
|
323
|
+
},
|
|
324
|
+
warning: {
|
|
325
|
+
...swapColorValues(commonColors.yellow),
|
|
326
|
+
foreground: commonColors.black,
|
|
327
|
+
flat: commonColors.yellow[500],
|
|
328
|
+
DEFAULT: commonColors.yellow[500]
|
|
329
|
+
},
|
|
330
|
+
danger: {
|
|
331
|
+
...swapColorValues(commonColors.red),
|
|
332
|
+
foreground: commonColors.white,
|
|
333
|
+
flat: commonColors.red[500],
|
|
334
|
+
DEFAULT: commonColors.red[500]
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
var semanticColors = {
|
|
338
|
+
light: themeColorsLight,
|
|
339
|
+
dark: themeColorsDark
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
// src/ui/theme/colors/index.ts
|
|
343
|
+
var colors = {
|
|
344
|
+
...commonColors,
|
|
345
|
+
...semanticColors
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
// src/ui/theme/theme.ts
|
|
349
|
+
var theme = (0, import_theme.heroui)({
|
|
29
350
|
layout: {
|
|
351
|
+
dividerWeight: "0.0625rem",
|
|
352
|
+
disabledOpacity: ".5",
|
|
30
353
|
fontSize: {
|
|
31
354
|
tiny: "0.75rem",
|
|
32
355
|
small: "0.875rem",
|
|
@@ -48,192 +371,18 @@ var theme_default = (0, import_theme.heroui)({
|
|
|
48
371
|
small: "0.0625rem",
|
|
49
372
|
medium: "0.125rem",
|
|
50
373
|
large: "0.1875rem"
|
|
51
|
-
}
|
|
52
|
-
dividerWeight: "0.0625rem",
|
|
53
|
-
disabledOpacity: 0.5
|
|
374
|
+
}
|
|
54
375
|
},
|
|
55
376
|
themes: {
|
|
56
377
|
light: {
|
|
57
|
-
colors:
|
|
58
|
-
background: "#ffffff",
|
|
59
|
-
foreground: "#1a1923",
|
|
60
|
-
divider: "#111106",
|
|
61
|
-
focus: "#2e66e8",
|
|
62
|
-
overlay: "#111016",
|
|
63
|
-
content1: "#f8f8fa",
|
|
64
|
-
content2: "#f4f4f8",
|
|
65
|
-
content3: "#cfcdde",
|
|
66
|
-
content4: "#acaac7",
|
|
67
|
-
default: {
|
|
68
|
-
50: "#f8f8fa",
|
|
69
|
-
100: "#f4f4f8",
|
|
70
|
-
200: "#cfcdde",
|
|
71
|
-
300: "#acaac7",
|
|
72
|
-
400: "#7571a2",
|
|
73
|
-
500: "#5e5a82",
|
|
74
|
-
600: "#464461",
|
|
75
|
-
700: "#232231",
|
|
76
|
-
800: "#1a1923",
|
|
77
|
-
900: "#121118",
|
|
78
|
-
foreground: "#111016"
|
|
79
|
-
},
|
|
80
|
-
primary: {
|
|
81
|
-
50: "#f5f7fd",
|
|
82
|
-
100: "#dfe8fb",
|
|
83
|
-
200: "#b5c8f6",
|
|
84
|
-
300: "#80a2f1",
|
|
85
|
-
400: "#2e66e8",
|
|
86
|
-
500: "#2552ba",
|
|
87
|
-
600: "#1c3d8c",
|
|
88
|
-
700: "#173274",
|
|
89
|
-
800: "#0d1f45",
|
|
90
|
-
900: "#070f22",
|
|
91
|
-
foreground: "#ffffff"
|
|
92
|
-
},
|
|
93
|
-
secondary: {
|
|
94
|
-
50: "#faf6fe",
|
|
95
|
-
100: "#efe5fd",
|
|
96
|
-
200: "#d6bcfa",
|
|
97
|
-
300: "#b88bf6",
|
|
98
|
-
400: "#9350f2",
|
|
99
|
-
500: "#7b43cb",
|
|
100
|
-
600: "#5e339b",
|
|
101
|
-
700: "#4c2a7e",
|
|
102
|
-
800: "#2c1849",
|
|
103
|
-
900: "#1a0e2c",
|
|
104
|
-
foreground: "#ffffff"
|
|
105
|
-
},
|
|
106
|
-
success: {
|
|
107
|
-
50: "#f2fbf6",
|
|
108
|
-
100: "#d9f2e3",
|
|
109
|
-
200: "#a3e0bb",
|
|
110
|
-
300: "#66cb8e",
|
|
111
|
-
400: "#00a843",
|
|
112
|
-
500: "#008636",
|
|
113
|
-
600: "#006528",
|
|
114
|
-
700: "#005421",
|
|
115
|
-
800: "#002f13",
|
|
116
|
-
900: "#00190a",
|
|
117
|
-
foreground: "#111016"
|
|
118
|
-
},
|
|
119
|
-
warning: {
|
|
120
|
-
50: "#fffcec",
|
|
121
|
-
100: "#fff2ab",
|
|
122
|
-
200: "#ffe66e",
|
|
123
|
-
300: "#ffd739",
|
|
124
|
-
400: "#f5c20f",
|
|
125
|
-
500: "#daa800",
|
|
126
|
-
600: "#b38700",
|
|
127
|
-
700: "#836100",
|
|
128
|
-
800: "#4c3800",
|
|
129
|
-
900: "#171200",
|
|
130
|
-
foreground: "#111016"
|
|
131
|
-
},
|
|
132
|
-
danger: {
|
|
133
|
-
50: "#fdf4f3",
|
|
134
|
-
100: "#f8dfdb",
|
|
135
|
-
200: "#eeb2a9",
|
|
136
|
-
300: "#e37f70",
|
|
137
|
-
400: "#d02a11",
|
|
138
|
-
500: "#a6220e",
|
|
139
|
-
600: "#7d190a",
|
|
140
|
-
700: "#681509",
|
|
141
|
-
800: "#3a0c05",
|
|
142
|
-
900: "#1f0603",
|
|
143
|
-
foreground: "#ffffff"
|
|
144
|
-
}
|
|
145
|
-
}
|
|
378
|
+
colors: semanticColors.light
|
|
146
379
|
},
|
|
147
380
|
dark: {
|
|
148
|
-
colors:
|
|
149
|
-
background: "#111016",
|
|
150
|
-
foreground: "#f8f8fa",
|
|
151
|
-
divider: "#ffffff",
|
|
152
|
-
focus: "#2552ba",
|
|
153
|
-
overlay: "#111016",
|
|
154
|
-
content1: "#1a1923",
|
|
155
|
-
content2: "#232231",
|
|
156
|
-
content3: "#464461",
|
|
157
|
-
content4: "#5e5a82",
|
|
158
|
-
default: {
|
|
159
|
-
50: "#1a1923",
|
|
160
|
-
100: "#232231",
|
|
161
|
-
200: "#464461",
|
|
162
|
-
300: "#5e5a82",
|
|
163
|
-
400: "#7571a2",
|
|
164
|
-
500: "#acaac7",
|
|
165
|
-
600: "#cfcdde",
|
|
166
|
-
700: "#f4f4f8",
|
|
167
|
-
800: "#f8f8fa",
|
|
168
|
-
900: "#ffffff",
|
|
169
|
-
foreground: "#ffffff"
|
|
170
|
-
},
|
|
171
|
-
primary: {
|
|
172
|
-
50: "#070f22",
|
|
173
|
-
100: "#0d1f45",
|
|
174
|
-
200: "#173274",
|
|
175
|
-
300: "#1c3d8c",
|
|
176
|
-
400: "#2552ba",
|
|
177
|
-
500: "#2e66e8",
|
|
178
|
-
600: "#80a2f1",
|
|
179
|
-
700: "#b5c8f6",
|
|
180
|
-
800: "#dfe8fb",
|
|
181
|
-
900: "#f5f7fd",
|
|
182
|
-
foreground: "#ffffff"
|
|
183
|
-
},
|
|
184
|
-
secondary: {
|
|
185
|
-
50: "#1a0e2c",
|
|
186
|
-
100: "#2c1849",
|
|
187
|
-
200: "#4c2a7e",
|
|
188
|
-
300: "#5e339b",
|
|
189
|
-
400: "#7b43cb",
|
|
190
|
-
500: "#9350f2",
|
|
191
|
-
600: "#b88bf6",
|
|
192
|
-
700: "#d6bcfa",
|
|
193
|
-
800: "#efe5fd",
|
|
194
|
-
900: "#faf6fe",
|
|
195
|
-
foreground: "#ffffff"
|
|
196
|
-
},
|
|
197
|
-
success: {
|
|
198
|
-
50: "#00190a",
|
|
199
|
-
100: "#002f13",
|
|
200
|
-
200: "#005421",
|
|
201
|
-
300: "#006528",
|
|
202
|
-
400: "#008636",
|
|
203
|
-
500: "#00a843",
|
|
204
|
-
600: "#66cb8e",
|
|
205
|
-
700: "#a3e0bb",
|
|
206
|
-
800: "#d9f2e3",
|
|
207
|
-
900: "#f2fbf6",
|
|
208
|
-
foreground: "#111016"
|
|
209
|
-
},
|
|
210
|
-
warning: {
|
|
211
|
-
50: "#171200",
|
|
212
|
-
100: "#4c3800",
|
|
213
|
-
200: "#836100",
|
|
214
|
-
300: "#b38700",
|
|
215
|
-
400: "#daa800",
|
|
216
|
-
500: "#f5c20f",
|
|
217
|
-
600: "#ffd739",
|
|
218
|
-
700: "#ffe66e",
|
|
219
|
-
800: "#fff2ab",
|
|
220
|
-
900: "#fffcec",
|
|
221
|
-
foreground: "#111016"
|
|
222
|
-
},
|
|
223
|
-
danger: {
|
|
224
|
-
50: "#1f0603",
|
|
225
|
-
100: "#3a0c05",
|
|
226
|
-
200: "#681509",
|
|
227
|
-
300: "#7d190a",
|
|
228
|
-
400: "#a6220e",
|
|
229
|
-
500: "#d02a11",
|
|
230
|
-
600: "#e37f70",
|
|
231
|
-
700: "#eeb2a9",
|
|
232
|
-
800: "#f8dfdb",
|
|
233
|
-
900: "#fdf4f3",
|
|
234
|
-
foreground: "#ffffff"
|
|
235
|
-
}
|
|
236
|
-
}
|
|
381
|
+
colors: semanticColors.dark
|
|
237
382
|
}
|
|
238
383
|
}
|
|
239
384
|
});
|
|
385
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
386
|
+
0 && (module.exports = {
|
|
387
|
+
theme
|
|
388
|
+
});
|
package/dist/ui/theme/theme.mjs
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../chunk-
|
|
3
|
+
theme
|
|
4
|
+
} from "../../chunk-545OBZ4O.mjs";
|
|
5
|
+
import "../../chunk-JWMPI5AZ.mjs";
|
|
6
|
+
import "../../chunk-PFLROV3C.mjs";
|
|
7
|
+
import "../../chunk-X7ER4IDJ.mjs";
|
|
8
|
+
import "../../chunk-EJQH6CYW.mjs";
|
|
9
|
+
import "../../chunk-NCM6KIQH.mjs";
|
|
10
|
+
import "../../chunk-SLB2JE3N.mjs";
|
|
11
|
+
import "../../chunk-XYQVL4EX.mjs";
|
|
12
|
+
import "../../chunk-HOVAPYGJ.mjs";
|
|
13
|
+
import "../../chunk-3LOCA2SP.mjs";
|
|
14
|
+
import "../../chunk-2OPPNAW2.mjs";
|
|
15
|
+
import "../../chunk-OW6U64MG.mjs";
|
|
16
|
+
import "../../chunk-LUERGYYZ.mjs";
|
|
17
|
+
import "../../chunk-YBQFG6QJ.mjs";
|
|
18
|
+
import "../../chunk-XKX5LFH7.mjs";
|
|
19
|
+
import "../../chunk-VIPLRFPR.mjs";
|
|
5
20
|
export {
|
|
6
|
-
|
|
21
|
+
theme
|
|
7
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teach-in/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Библиотека компонентов для создания современного пользовательского интерфейса для react",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui"
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"@radix-ui/react-slot": "^1.2.4",
|
|
47
47
|
"@react-aria/i18n": "^3.12.13",
|
|
48
48
|
"clsx": "^2.1.1",
|
|
49
|
+
"color2k": "^2.0.3",
|
|
49
50
|
"react-hook-form": "^7.66.0",
|
|
50
51
|
"tailwind-merge": "^3.4.0",
|
|
51
52
|
"tailwind-variants": "^3.1.1"
|
|
@@ -66,8 +67,8 @@
|
|
|
66
67
|
"./package.json": "./package.json"
|
|
67
68
|
},
|
|
68
69
|
"scripts": {
|
|
69
|
-
"build": "tsup src && tsc -p tsconfig.build.json",
|
|
70
|
-
"build:fast": "tsup src",
|
|
70
|
+
"build": "tsup src '!src/**/*.stories.tsx' && tsc -p tsconfig.build.json",
|
|
71
|
+
"build:fast": "tsup src '!src/**/*.stories.tsx'",
|
|
71
72
|
"dev": "pnpm build:fast --watch",
|
|
72
73
|
"clean": "rimraf dist .turbo",
|
|
73
74
|
"typecheck": "tsc --noEmit"
|