@teach-in/react 1.1.0 → 1.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/LICENSE +21 -21
- package/README.md +9 -9
- package/dist/{chunk-AMNORHD6.mjs → chunk-2ASQXBDD.mjs} +1 -1
- package/dist/{chunk-3VAZY2QK.mjs → chunk-2CEZXLZR.mjs} +1 -1
- 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-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-CFG5V7VB.mjs → chunk-QCLLPJMB.mjs} +2 -2
- package/dist/{chunk-R7LDL5CU.mjs → chunk-R46SWVWL.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/index.js +575 -230
- package/dist/index.mjs +163 -147
- package/dist/ui/data/index.mjs +4 -4
- package/dist/ui/feedback/index.mjs +5 -5
- package/dist/ui/form/index.js +447 -106
- package/dist/ui/form/index.mjs +31 -21
- package/dist/ui/form/rhf/fields/autocomplete-field.mjs +20 -14
- package/dist/ui/form/rhf/fields/checkbox-field.mjs +20 -14
- package/dist/ui/form/rhf/fields/date-picker-field.mjs +20 -14
- package/dist/ui/form/rhf/fields/email-field.js +147 -10
- package/dist/ui/form/rhf/fields/email-field.mjs +21 -15
- 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 +31 -21
- package/dist/ui/form/rhf/fields/input-field.js +153 -6
- package/dist/ui/form/rhf/fields/input-field.mjs +21 -15
- package/dist/ui/form/rhf/fields/radio-field.mjs +20 -14
- 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 +21 -15
- package/dist/ui/form/rhf/fields/switch-field.mjs +20 -14
- package/dist/ui/form/rhf/fields/text-field.js +147 -10
- package/dist/ui/form/rhf/fields/text-field.mjs +21 -15
- package/dist/ui/form/rhf/fields/textarea-field.mjs +20 -14
- package/dist/ui/form/rhf/index.js +443 -102
- package/dist/ui/form/rhf/index.mjs +31 -21
- package/dist/ui/format/index.mjs +15 -15
- package/dist/ui/index.js +575 -230
- package/dist/ui/index.mjs +161 -145
- package/dist/ui/inputs/checkbox/index.mjs +3 -3
- 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 +35 -23
- package/dist/ui/inputs/input/index.js +140 -3
- package/dist/ui/inputs/input/index.mjs +3 -1
- package/dist/ui/inputs/input/input.d.ts +1 -0
- package/dist/ui/inputs/input/input.js +140 -3
- package/dist/ui/inputs/input/input.mjs +3 -1
- package/dist/ui/inputs/input/use-input.d.ts +19 -0
- package/dist/ui/inputs/input/use-input.js +82 -0
- package/dist/ui/inputs/input/use-input.mjs +7 -0
- package/dist/ui/inputs/radio/index.mjs +3 -3
- package/dist/ui/inputs/search/index.d.ts +1 -0
- package/dist/ui/inputs/search/index.js +270 -0
- package/dist/ui/inputs/search/index.mjs +13 -0
- package/dist/ui/inputs/search/search.d.ts +7 -0
- package/dist/ui/inputs/search/search.js +268 -0
- package/dist/ui/inputs/search/search.mjs +12 -0
- package/dist/ui/inputs/search/use-search.d.ts +12 -0
- package/dist/ui/inputs/search/use-search.js +57 -0
- package/dist/ui/inputs/search/use-search.mjs +7 -0
- package/dist/ui/inputs/select/index.js +132 -22
- package/dist/ui/inputs/select/index.mjs +3 -1
- package/dist/ui/inputs/select/select.d.ts +4 -0
- package/dist/ui/inputs/select/select.js +132 -22
- package/dist/ui/inputs/select/select.mjs +3 -1
- package/dist/ui/inputs/select/use-select.d.ts +17 -0
- package/dist/ui/inputs/select/use-select.js +85 -0
- package/dist/ui/inputs/select/use-select.mjs +7 -0
- package/dist/ui/inputs/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 +81 -74
- package/dist/ui/layout/container/index.mjs +81 -74
- package/dist/ui/layout/index.mjs +84 -77
- package/dist/ui/layout/page/index.mjs +4 -4
- package/dist/ui/layout/page/page-loading.mjs +3 -3
- package/dist/ui/layout/page/section-loading.mjs +3 -3
- package/dist/ui/navigation/index.mjs +11 -11
- package/dist/ui/overlays/index.mjs +5 -5
- package/dist/ui/provider/index.mjs +3 -3
- package/dist/ui/provider/ui-provider.mjs +3 -3
- package/dist/ui/surface/index.mjs +3 -3
- package/dist/ui/theme/colors/common.mjs +5 -5
- package/dist/ui/theme/colors/index.mjs +7 -7
- package/dist/ui/theme/colors/semantic.mjs +6 -6
- package/dist/ui/theme/colors.mjs +7 -7
- package/dist/ui/theme/index.mjs +8 -8
- package/dist/ui/theme/theme.mjs +8 -8
- 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-STVN4B47.mjs → chunk-IXPMUODA.mjs} +12 -12
- /package/dist/{chunk-Q6JSJOU4.mjs → chunk-PTCNYQVY.mjs} +0 -0
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
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
shipgray
|
|
4
|
-
} from "./chunk-XYQVL4EX.mjs";
|
|
5
|
-
import {
|
|
6
|
-
yellow
|
|
7
|
-
} from "./chunk-HOVAPYGJ.mjs";
|
|
8
2
|
import {
|
|
9
3
|
zinc
|
|
10
4
|
} from "./chunk-3LOCA2SP.mjs";
|
|
11
|
-
import {
|
|
12
|
-
cyan
|
|
13
|
-
} from "./chunk-OW6U64MG.mjs";
|
|
14
|
-
import {
|
|
15
|
-
green
|
|
16
|
-
} from "./chunk-LUERGYYZ.mjs";
|
|
17
5
|
import {
|
|
18
6
|
pink
|
|
19
7
|
} from "./chunk-YBQFG6QJ.mjs";
|
|
@@ -23,9 +11,21 @@ import {
|
|
|
23
11
|
import {
|
|
24
12
|
red
|
|
25
13
|
} from "./chunk-SLB2JE3N.mjs";
|
|
14
|
+
import {
|
|
15
|
+
shipgray
|
|
16
|
+
} from "./chunk-XYQVL4EX.mjs";
|
|
17
|
+
import {
|
|
18
|
+
yellow
|
|
19
|
+
} from "./chunk-HOVAPYGJ.mjs";
|
|
26
20
|
import {
|
|
27
21
|
blue
|
|
28
22
|
} from "./chunk-2OPPNAW2.mjs";
|
|
23
|
+
import {
|
|
24
|
+
cyan
|
|
25
|
+
} from "./chunk-OW6U64MG.mjs";
|
|
26
|
+
import {
|
|
27
|
+
green
|
|
28
|
+
} from "./chunk-LUERGYYZ.mjs";
|
|
29
29
|
|
|
30
30
|
// src/ui/theme/colors/common.ts
|
|
31
31
|
var commonColors = {
|
|
File without changes
|