@teach-in/react 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2UHA3DYG.mjs +62 -0
- package/dist/{chunk-LJIVY6GU.mjs → chunk-46SKVFMZ.mjs} +1 -1
- package/dist/{chunk-JDFRAN4S.mjs → chunk-5FFWQB7D.mjs} +12 -2
- package/dist/{chunk-544SDU73.mjs → chunk-BBUPZCY6.mjs} +1 -1
- package/dist/chunk-C2VWADF5.mjs +34 -0
- package/dist/{chunk-NLHQDWUK.mjs → chunk-CKJ5U5Q4.mjs} +1 -1
- package/dist/chunk-CUEG2BFV.mjs +34 -0
- package/dist/{chunk-CETCW7DS.mjs → chunk-IU2JYI7W.mjs} +1 -1
- package/dist/{chunk-KTUGFQWJ.mjs → chunk-KTWHCUYV.mjs} +1 -1
- package/dist/chunk-MCQGBAUS.mjs +73 -0
- package/dist/chunk-NSU66J5E.mjs +59 -0
- package/dist/{chunk-R7LDL5CU.mjs → chunk-R46SWVWL.mjs} +1 -1
- package/dist/{chunk-WFNNN6WU.mjs → chunk-RPIOTLYT.mjs} +1 -1
- package/dist/chunk-SEJXJZSK.mjs +64 -0
- package/dist/chunk-TUIN5YJW.mjs +33 -0
- package/dist/chunk-UQAG7TKJ.mjs +1 -0
- package/dist/chunk-VXYV37IM.mjs +74 -0
- package/dist/{chunk-AFVGHUW2.mjs → chunk-YZB4VBX7.mjs} +24 -2
- package/dist/index.js +599 -232
- package/dist/index.mjs +116 -100
- package/dist/ui/data/index.mjs +4 -4
- package/dist/ui/feedback/index.mjs +14 -14
- package/dist/ui/form/index.js +447 -106
- package/dist/ui/form/index.mjs +28 -18
- package/dist/ui/form/rhf/fields/autocomplete-field.mjs +17 -11
- package/dist/ui/form/rhf/fields/checkbox-field.mjs +17 -11
- package/dist/ui/form/rhf/fields/date-picker-field.mjs +17 -11
- package/dist/ui/form/rhf/fields/email-field.js +147 -10
- package/dist/ui/form/rhf/fields/email-field.mjs +18 -12
- package/dist/ui/form/rhf/fields/index.d.ts +1 -0
- package/dist/ui/form/rhf/fields/index.js +443 -102
- package/dist/ui/form/rhf/fields/index.mjs +28 -18
- package/dist/ui/form/rhf/fields/input-field.js +153 -6
- package/dist/ui/form/rhf/fields/input-field.mjs +18 -12
- package/dist/ui/form/rhf/fields/radio-field.mjs +17 -11
- package/dist/ui/form/rhf/fields/search-field.d.ts +10 -0
- package/dist/ui/form/rhf/fields/search-field.js +296 -0
- package/dist/ui/form/rhf/fields/search-field.mjs +37 -0
- package/dist/ui/form/rhf/fields/select-field.js +136 -26
- package/dist/ui/form/rhf/fields/select-field.mjs +18 -12
- package/dist/ui/form/rhf/fields/switch-field.mjs +17 -11
- package/dist/ui/form/rhf/fields/text-field.js +147 -10
- package/dist/ui/form/rhf/fields/text-field.mjs +18 -12
- package/dist/ui/form/rhf/fields/textarea-field.mjs +17 -11
- package/dist/ui/form/rhf/index.js +443 -102
- package/dist/ui/form/rhf/index.mjs +28 -18
- package/dist/ui/index.js +599 -232
- package/dist/ui/index.mjs +116 -100
- package/dist/ui/inputs/clear-button.d.ts +5 -0
- package/dist/ui/inputs/clear-button.js +67 -0
- package/dist/ui/inputs/clear-button.mjs +8 -0
- package/dist/ui/inputs/email/email.js +144 -7
- package/dist/ui/inputs/email/email.mjs +4 -2
- package/dist/ui/inputs/email/index.js +144 -7
- package/dist/ui/inputs/email/index.mjs +4 -2
- package/dist/ui/inputs/index.d.ts +2 -0
- package/dist/ui/inputs/index.js +363 -56
- package/dist/ui/inputs/index.mjs +31 -19
- package/dist/ui/inputs/input/index.js +140 -3
- package/dist/ui/inputs/input/index.mjs +3 -1
- package/dist/ui/inputs/input/input.d.ts +1 -0
- package/dist/ui/inputs/input/input.js +140 -3
- package/dist/ui/inputs/input/input.mjs +3 -1
- package/dist/ui/inputs/input/use-input.d.ts +19 -0
- package/dist/ui/inputs/input/use-input.js +82 -0
- package/dist/ui/inputs/input/use-input.mjs +7 -0
- package/dist/ui/inputs/search/index.d.ts +1 -0
- package/dist/ui/inputs/search/index.js +270 -0
- package/dist/ui/inputs/search/index.mjs +13 -0
- package/dist/ui/inputs/search/search.d.ts +7 -0
- package/dist/ui/inputs/search/search.js +268 -0
- package/dist/ui/inputs/search/search.mjs +12 -0
- package/dist/ui/inputs/search/use-search.d.ts +12 -0
- package/dist/ui/inputs/search/use-search.js +57 -0
- package/dist/ui/inputs/search/use-search.mjs +7 -0
- package/dist/ui/inputs/select/index.js +132 -22
- package/dist/ui/inputs/select/index.mjs +3 -1
- package/dist/ui/inputs/select/select.d.ts +4 -0
- package/dist/ui/inputs/select/select.js +132 -22
- package/dist/ui/inputs/select/select.mjs +3 -1
- package/dist/ui/inputs/select/use-select.d.ts +17 -0
- package/dist/ui/inputs/select/use-select.js +85 -0
- package/dist/ui/inputs/select/use-select.mjs +7 -0
- package/dist/ui/inputs/text/index.js +144 -7
- package/dist/ui/inputs/text/index.mjs +4 -2
- package/dist/ui/inputs/text/text.js +144 -7
- package/dist/ui/inputs/text/text.mjs +4 -2
- package/dist/ui/layout/container/container.mjs +64 -57
- package/dist/ui/layout/container/index.mjs +64 -57
- package/dist/ui/layout/index.mjs +69 -62
- package/dist/ui/layout/page/index.mjs +7 -7
- package/dist/ui/layout/page/page-loading.mjs +7 -7
- package/dist/ui/layout/page/section-loading.mjs +7 -7
- package/dist/ui/navigation/index.mjs +7 -7
- package/dist/ui/overlays/index.mjs +8 -8
- package/dist/ui/provider/index.mjs +7 -7
- package/dist/ui/provider/ui-provider.mjs +7 -7
- package/dist/ui/surface/index.mjs +4 -4
- package/dist/ui/theme/colors/index.js +24 -2
- package/dist/ui/theme/colors/index.mjs +2 -2
- package/dist/ui/theme/colors/semantic.js +24 -2
- package/dist/ui/theme/colors/semantic.mjs +1 -1
- package/dist/ui/theme/colors/types.d.ts +2 -0
- package/dist/ui/theme/colors.js +24 -2
- package/dist/ui/theme/colors.mjs +2 -2
- package/dist/ui/theme/index.js +24 -2
- package/dist/ui/theme/index.mjs +3 -3
- package/dist/ui/theme/theme.js +24 -2
- package/dist/ui/theme/theme.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-3YOW5DEZ.mjs +0 -45
- package/dist/chunk-V2G5QHZZ.mjs +0 -14
- /package/dist/{chunk-CZEO3U25.mjs → chunk-5RNCFTW5.mjs} +0 -0
- /package/dist/{chunk-Q6JSJOU4.mjs → chunk-PTCNYQVY.mjs} +0 -0
package/dist/ui/theme/index.js
CHANGED
|
@@ -275,7 +275,7 @@ var themeColorsLight = {
|
|
|
275
275
|
...commonColors.shipgray,
|
|
276
276
|
foreground: commonColors.black,
|
|
277
277
|
flat: commonColors.shipgray[300],
|
|
278
|
-
DEFAULT: commonColors.shipgray[
|
|
278
|
+
DEFAULT: commonColors.shipgray[200]
|
|
279
279
|
},
|
|
280
280
|
primary: {
|
|
281
281
|
...commonColors.blue,
|
|
@@ -306,15 +306,31 @@ var themeColorsLight = {
|
|
|
306
306
|
foreground: commonColors.white,
|
|
307
307
|
flat: commonColors.red[500],
|
|
308
308
|
DEFAULT: commonColors.red[400]
|
|
309
|
+
},
|
|
310
|
+
link: {
|
|
311
|
+
DEFAULT: commonColors.blue[500]
|
|
312
|
+
},
|
|
313
|
+
brand: {
|
|
314
|
+
DEFAULT: commonColors.blue[800]
|
|
309
315
|
}
|
|
310
316
|
};
|
|
311
317
|
var themeColorsDark = {
|
|
312
318
|
...base.dark,
|
|
313
319
|
default: {
|
|
314
320
|
...swapColorValues(commonColors.shipgray),
|
|
321
|
+
50: commonColors.shipgray[800],
|
|
322
|
+
100: commonColors.shipgray[700],
|
|
323
|
+
200: commonColors.shipgray[600],
|
|
324
|
+
300: commonColors.shipgray[500],
|
|
325
|
+
400: commonColors.shipgray[400],
|
|
326
|
+
500: commonColors.shipgray[300],
|
|
327
|
+
600: commonColors.shipgray[200],
|
|
328
|
+
700: commonColors.shipgray[100],
|
|
329
|
+
800: commonColors.shipgray[50],
|
|
330
|
+
900: commonColors.white,
|
|
315
331
|
foreground: commonColors.white,
|
|
316
332
|
flat: commonColors.shipgray[600],
|
|
317
|
-
DEFAULT: commonColors.shipgray[
|
|
333
|
+
DEFAULT: commonColors.shipgray[600]
|
|
318
334
|
},
|
|
319
335
|
primary: {
|
|
320
336
|
...swapColorValues(commonColors.blue),
|
|
@@ -345,6 +361,12 @@ var themeColorsDark = {
|
|
|
345
361
|
foreground: commonColors.white,
|
|
346
362
|
flat: commonColors.red[500],
|
|
347
363
|
DEFAULT: commonColors.red[500]
|
|
364
|
+
},
|
|
365
|
+
link: {
|
|
366
|
+
DEFAULT: commonColors.blue[300]
|
|
367
|
+
},
|
|
368
|
+
brand: {
|
|
369
|
+
DEFAULT: commonColors.white
|
|
348
370
|
}
|
|
349
371
|
};
|
|
350
372
|
var semanticColors = {
|
package/dist/ui/theme/index.mjs
CHANGED
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "../../chunk-NBFOX367.mjs";
|
|
7
7
|
import {
|
|
8
8
|
theme
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-RPIOTLYT.mjs";
|
|
10
10
|
import "../../chunk-JWMPI5AZ.mjs";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-BBUPZCY6.mjs";
|
|
12
12
|
import "../../chunk-EJQH6CYW.mjs";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-YZB4VBX7.mjs";
|
|
14
14
|
import "../../chunk-5WDV3PDI.mjs";
|
|
15
15
|
import "../../chunk-HOVAPYGJ.mjs";
|
|
16
16
|
import "../../chunk-3LOCA2SP.mjs";
|
package/dist/ui/theme/theme.js
CHANGED
|
@@ -262,7 +262,7 @@ var themeColorsLight = {
|
|
|
262
262
|
...commonColors.shipgray,
|
|
263
263
|
foreground: commonColors.black,
|
|
264
264
|
flat: commonColors.shipgray[300],
|
|
265
|
-
DEFAULT: commonColors.shipgray[
|
|
265
|
+
DEFAULT: commonColors.shipgray[200]
|
|
266
266
|
},
|
|
267
267
|
primary: {
|
|
268
268
|
...commonColors.blue,
|
|
@@ -293,15 +293,31 @@ var themeColorsLight = {
|
|
|
293
293
|
foreground: commonColors.white,
|
|
294
294
|
flat: commonColors.red[500],
|
|
295
295
|
DEFAULT: commonColors.red[400]
|
|
296
|
+
},
|
|
297
|
+
link: {
|
|
298
|
+
DEFAULT: commonColors.blue[500]
|
|
299
|
+
},
|
|
300
|
+
brand: {
|
|
301
|
+
DEFAULT: commonColors.blue[800]
|
|
296
302
|
}
|
|
297
303
|
};
|
|
298
304
|
var themeColorsDark = {
|
|
299
305
|
...base.dark,
|
|
300
306
|
default: {
|
|
301
307
|
...swapColorValues(commonColors.shipgray),
|
|
308
|
+
50: commonColors.shipgray[800],
|
|
309
|
+
100: commonColors.shipgray[700],
|
|
310
|
+
200: commonColors.shipgray[600],
|
|
311
|
+
300: commonColors.shipgray[500],
|
|
312
|
+
400: commonColors.shipgray[400],
|
|
313
|
+
500: commonColors.shipgray[300],
|
|
314
|
+
600: commonColors.shipgray[200],
|
|
315
|
+
700: commonColors.shipgray[100],
|
|
316
|
+
800: commonColors.shipgray[50],
|
|
317
|
+
900: commonColors.white,
|
|
302
318
|
foreground: commonColors.white,
|
|
303
319
|
flat: commonColors.shipgray[600],
|
|
304
|
-
DEFAULT: commonColors.shipgray[
|
|
320
|
+
DEFAULT: commonColors.shipgray[600]
|
|
305
321
|
},
|
|
306
322
|
primary: {
|
|
307
323
|
...swapColorValues(commonColors.blue),
|
|
@@ -332,6 +348,12 @@ var themeColorsDark = {
|
|
|
332
348
|
foreground: commonColors.white,
|
|
333
349
|
flat: commonColors.red[500],
|
|
334
350
|
DEFAULT: commonColors.red[500]
|
|
351
|
+
},
|
|
352
|
+
link: {
|
|
353
|
+
DEFAULT: commonColors.blue[300]
|
|
354
|
+
},
|
|
355
|
+
brand: {
|
|
356
|
+
DEFAULT: commonColors.white
|
|
335
357
|
}
|
|
336
358
|
};
|
|
337
359
|
var semanticColors = {
|
package/dist/ui/theme/theme.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
theme
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-RPIOTLYT.mjs";
|
|
5
5
|
import "../../chunk-JWMPI5AZ.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-BBUPZCY6.mjs";
|
|
7
7
|
import "../../chunk-EJQH6CYW.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-YZB4VBX7.mjs";
|
|
9
9
|
import "../../chunk-5WDV3PDI.mjs";
|
|
10
10
|
import "../../chunk-HOVAPYGJ.mjs";
|
|
11
11
|
import "../../chunk-3LOCA2SP.mjs";
|
package/package.json
CHANGED
package/dist/chunk-3YOW5DEZ.mjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/ui/inputs/select/select.tsx
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { Select as HeroUISelect, SelectItem as HeroUISelectItem } from "@heroui/select";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
var Select = React.forwardRef(
|
|
8
|
-
({ value, items, onChange, selectionMode, ...props }, ref) => {
|
|
9
|
-
const isMultiple = selectionMode === "multiple";
|
|
10
|
-
const selectedKeys = React.useMemo(() => {
|
|
11
|
-
if (value == null) return /* @__PURE__ */ new Set();
|
|
12
|
-
return new Set(Array.isArray(value) ? value : [value]);
|
|
13
|
-
}, [value]);
|
|
14
|
-
const handleSelectionChange = React.useCallback(
|
|
15
|
-
(keys) => {
|
|
16
|
-
var _a;
|
|
17
|
-
if (keys === "all") return;
|
|
18
|
-
const selected = Array.from(keys).filter((key) => typeof key === "string");
|
|
19
|
-
if (isMultiple) {
|
|
20
|
-
onChange == null ? void 0 : onChange(selected);
|
|
21
|
-
} else {
|
|
22
|
-
onChange == null ? void 0 : onChange((_a = selected[0]) != null ? _a : null);
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
[onChange, isMultiple]
|
|
26
|
-
);
|
|
27
|
-
return /* @__PURE__ */ jsx(
|
|
28
|
-
HeroUISelect,
|
|
29
|
-
{
|
|
30
|
-
ref,
|
|
31
|
-
items,
|
|
32
|
-
selectedKeys,
|
|
33
|
-
selectionMode,
|
|
34
|
-
onSelectionChange: handleSelectionChange,
|
|
35
|
-
...props,
|
|
36
|
-
children: (item) => /* @__PURE__ */ jsx(HeroUISelectItem, { children: item.label }, item.key)
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
Select.displayName = "TeachInUI.Select";
|
|
42
|
-
|
|
43
|
-
export {
|
|
44
|
-
Select
|
|
45
|
-
};
|
package/dist/chunk-V2G5QHZZ.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/ui/inputs/input/input.tsx
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { Input as HeroUIInput } from "@heroui/input";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
var Input = React.forwardRef(({ ...props }, ref) => {
|
|
8
|
-
return /* @__PURE__ */ jsx(HeroUIInput, { ref, ...props });
|
|
9
|
-
});
|
|
10
|
-
Input.displayName = "TeachInUI.Input";
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
Input
|
|
14
|
-
};
|
|
File without changes
|
|
File without changes
|