@teach-in/react 0.2.0 → 0.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-2SNKT7I4.mjs +9 -0
- package/dist/chunk-3YOW5DEZ.mjs +45 -0
- package/dist/chunk-4N3FFVKQ.mjs +14 -0
- package/dist/{chunk-PFLROV3C.mjs → chunk-544SDU73.mjs} +2 -2
- package/dist/chunk-7BTEKEON.mjs +11 -0
- package/dist/{chunk-X7ER4IDJ.mjs → chunk-AFVGHUW2.mjs} +2 -2
- package/dist/chunk-C4PCTOGM.mjs +12 -0
- package/dist/chunk-CA2EAK5M.mjs +40 -0
- package/dist/chunk-E5QSNLSR.mjs +38 -0
- package/dist/chunk-EEGPGLDC.mjs +26 -0
- package/dist/chunk-FKHR6G3R.mjs +1 -0
- package/dist/chunk-FQUYFYMS.mjs +24 -0
- package/dist/chunk-ICRO6HS3.mjs +1 -0
- package/dist/chunk-J3GK2CGQ.mjs +1 -0
- package/dist/chunk-JTPBZJ4S.mjs +14 -0
- package/dist/chunk-L6XIUULU.mjs +14 -0
- package/dist/chunk-LLP2PTPK.mjs +1 -0
- package/dist/{chunk-6UIBJVXP.mjs → chunk-MCZBJUTN.mjs} +1 -1
- package/dist/chunk-MJTSZFLC.mjs +1 -0
- package/dist/{chunk-WTXPB253.mjs → chunk-N3QOXWJI.mjs} +1 -1
- package/dist/chunk-N7GOJBLM.mjs +1 -0
- package/dist/{chunk-GEJLG5RP.mjs → chunk-NLHQDWUK.mjs} +3 -2
- package/dist/chunk-NOXFF2KJ.mjs +16 -0
- package/dist/chunk-NVLF7L4R.mjs +1 -0
- package/dist/chunk-OZSO3C5Q.mjs +14 -0
- package/dist/chunk-PKZZEODR.mjs +29 -0
- package/dist/chunk-PSK7I7V4.mjs +30 -0
- package/dist/chunk-Q2ILWL7L.mjs +1 -0
- package/dist/chunk-Q6JSJOU4.mjs +1 -0
- package/dist/chunk-QUMDPADZ.mjs +14 -0
- package/dist/chunk-RRA7GWP2.mjs +1 -0
- package/dist/chunk-SAYYLTIE.mjs +52 -0
- package/dist/chunk-TSD6GU35.mjs +16 -0
- package/dist/chunk-U4FAPNVK.mjs +1 -0
- package/dist/chunk-UFYLYN5Z.mjs +37 -0
- package/dist/chunk-UNBE67YJ.mjs +1 -0
- package/dist/chunk-UON5ACST.mjs +1 -0
- package/dist/chunk-UT5RUCAT.mjs +1 -0
- package/dist/chunk-UUKS7JYX.mjs +1 -0
- package/dist/chunk-VWGY6KWP.mjs +15 -0
- package/dist/chunk-W2A6C27Y.mjs +35 -0
- package/dist/{chunk-545OBZ4O.mjs → chunk-WFNNN6WU.mjs} +1 -1
- package/dist/chunk-XHCXM5MU.mjs +14 -0
- package/dist/chunk-YNCISHAU.mjs +27 -0
- package/dist/chunk-ZSYIKEXW.mjs +21 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +606 -193
- package/dist/index.mjs +261 -112
- package/dist/ui/data/image/image.d.ts +6 -0
- package/dist/ui/data/image/image.js +47 -0
- package/dist/ui/data/image/image.mjs +7 -0
- package/dist/ui/data/image/index.d.ts +1 -0
- package/dist/ui/data/image/index.js +49 -0
- package/dist/ui/data/image/index.mjs +8 -0
- package/dist/ui/data/index.d.ts +3 -0
- package/dist/ui/data/index.js +48 -2
- package/dist/ui/data/index.mjs +32 -5
- package/dist/ui/data/table/index.d.ts +1 -0
- package/dist/ui/data/table/index.js +52 -0
- package/dist/ui/data/table/index.mjs +20 -0
- package/dist/ui/data/table/table.d.ts +23 -0
- package/dist/ui/data/table/table.js +50 -0
- package/dist/ui/data/table/table.mjs +19 -0
- package/dist/ui/data/user/index.d.ts +1 -0
- package/dist/ui/data/user/index.js +49 -0
- package/dist/ui/data/user/index.mjs +8 -0
- package/dist/ui/data/user/user.d.ts +6 -0
- package/dist/ui/data/user/user.js +47 -0
- package/dist/ui/data/user/user.mjs +7 -0
- package/dist/ui/feedback/chip/chip.js +18 -1
- package/dist/ui/feedback/chip/chip.mjs +3 -1
- package/dist/ui/feedback/chip/index.js +18 -1
- package/dist/ui/feedback/chip/index.mjs +3 -1
- package/dist/ui/feedback/index.d.ts +2 -0
- package/dist/ui/feedback/index.js +85 -11
- package/dist/ui/feedback/index.mjs +32 -3
- package/dist/ui/feedback/progress/circular-progress.d.ts +9 -0
- package/dist/ui/feedback/progress/circular-progress.js +47 -0
- package/dist/ui/feedback/progress/circular-progress.mjs +7 -0
- package/dist/ui/feedback/progress/index.d.ts +2 -0
- package/dist/ui/feedback/progress/index.js +60 -0
- package/dist/ui/feedback/progress/index.mjs +12 -0
- package/dist/ui/feedback/progress/progress.d.ts +9 -0
- package/dist/ui/feedback/progress/progress.js +47 -0
- package/dist/ui/feedback/progress/progress.mjs +7 -0
- package/dist/ui/feedback/toast/index.d.ts +1 -0
- package/dist/ui/feedback/toast/index.js +73 -0
- package/dist/ui/feedback/toast/index.mjs +21 -0
- package/dist/ui/feedback/toast/toast.d.ts +17 -0
- package/dist/ui/feedback/toast/toast.js +71 -0
- package/dist/ui/feedback/toast/toast.mjs +21 -0
- package/dist/ui/form/index.js +106 -53
- package/dist/ui/form/index.mjs +30 -21
- package/dist/ui/form/rhf/fields/autocomplete-field.mjs +13 -8
- package/dist/ui/form/rhf/fields/checkbox-field.js +1 -1
- package/dist/ui/form/rhf/fields/checkbox-field.mjs +14 -9
- package/dist/ui/form/rhf/fields/date-picker-field.mjs +13 -8
- package/dist/ui/form/rhf/fields/email-field.mjs +13 -8
- package/dist/ui/form/rhf/fields/index.d.ts +1 -0
- package/dist/ui/form/rhf/fields/index.js +102 -49
- package/dist/ui/form/rhf/fields/index.mjs +28 -19
- package/dist/ui/form/rhf/fields/input-field.mjs +13 -8
- package/dist/ui/form/rhf/fields/radio-field.d.ts +10 -0
- package/dist/ui/form/rhf/fields/radio-field.js +78 -0
- package/dist/ui/form/rhf/fields/radio-field.mjs +31 -0
- package/dist/ui/form/rhf/fields/select-field.d.ts +8 -3
- package/dist/ui/form/rhf/fields/select-field.js +23 -10
- package/dist/ui/form/rhf/fields/select-field.mjs +14 -9
- package/dist/ui/form/rhf/fields/switch-field.mjs +13 -8
- package/dist/ui/form/rhf/fields/text-field.mjs +13 -8
- package/dist/ui/form/rhf/fields/textarea-field.mjs +13 -8
- package/dist/ui/form/rhf/index.js +102 -49
- package/dist/ui/form/rhf/index.mjs +28 -19
- package/dist/ui/format/index.mjs +9 -9
- package/dist/ui/index.js +604 -193
- package/dist/ui/index.mjs +258 -112
- package/dist/ui/inputs/checkbox/checkbox-group.d.ts +9 -0
- package/dist/ui/inputs/checkbox/checkbox-group.js +45 -0
- package/dist/ui/inputs/checkbox/checkbox-group.mjs +7 -0
- package/dist/ui/inputs/checkbox/checkbox.js +1 -1
- package/dist/ui/inputs/checkbox/checkbox.mjs +1 -1
- package/dist/ui/inputs/checkbox/index.d.ts +1 -0
- package/dist/ui/inputs/checkbox/index.js +12 -3
- package/dist/ui/inputs/checkbox/index.mjs +7 -3
- package/dist/ui/inputs/index.d.ts +1 -0
- package/dist/ui/inputs/index.js +114 -39
- package/dist/ui/inputs/index.mjs +28 -11
- package/dist/ui/inputs/radio/index.d.ts +2 -0
- package/dist/ui/inputs/radio/index.js +57 -0
- package/dist/ui/inputs/radio/index.mjs +12 -0
- package/dist/ui/inputs/radio/radio-group.d.ts +9 -0
- package/dist/ui/inputs/radio/radio-group.js +49 -0
- package/dist/ui/inputs/radio/radio-group.mjs +7 -0
- package/dist/ui/inputs/radio/radio.d.ts +6 -0
- package/dist/ui/inputs/radio/radio.js +32 -0
- package/dist/ui/inputs/radio/radio.mjs +7 -0
- package/dist/ui/inputs/select/index.js +21 -9
- package/dist/ui/inputs/select/index.mjs +1 -1
- package/dist/ui/inputs/select/select.d.ts +18 -5
- package/dist/ui/inputs/select/select.js +21 -9
- package/dist/ui/inputs/select/select.mjs +1 -1
- package/dist/ui/inputs/switch/favorite-switch.d.ts +6 -0
- package/dist/ui/inputs/switch/favorite-switch.js +62 -0
- package/dist/ui/inputs/switch/favorite-switch.mjs +8 -0
- package/dist/ui/inputs/switch/index.d.ts +1 -0
- package/dist/ui/inputs/switch/index.js +35 -0
- package/dist/ui/inputs/switch/index.mjs +5 -1
- package/dist/ui/layout/accordion/accordion.d.ts +10 -0
- package/dist/ui/layout/accordion/accordion.js +35 -0
- package/dist/ui/layout/accordion/accordion.mjs +9 -0
- package/dist/ui/layout/accordion/index.d.ts +1 -0
- package/dist/ui/layout/accordion/index.js +37 -0
- package/dist/ui/layout/accordion/index.mjs +10 -0
- package/dist/ui/layout/container/container.mjs +99 -63
- package/dist/ui/layout/container/index.mjs +99 -63
- package/dist/ui/layout/divider/divider.d.ts +6 -0
- package/dist/ui/layout/divider/divider.js +48 -0
- package/dist/ui/layout/divider/divider.mjs +7 -0
- package/dist/ui/layout/divider/index.d.ts +1 -0
- package/dist/ui/layout/divider/index.js +50 -0
- package/dist/ui/layout/divider/index.mjs +8 -0
- package/dist/ui/layout/index.d.ts +3 -0
- package/dist/ui/layout/index.js +32 -0
- package/dist/ui/layout/index.mjs +113 -66
- package/dist/ui/layout/page/index.mjs +11 -5
- package/dist/ui/layout/page/page-loading.mjs +8 -2
- package/dist/ui/layout/page/section-loading.mjs +8 -2
- package/dist/ui/layout/scroll-shadow/index.d.ts +1 -0
- package/dist/ui/layout/scroll-shadow/index.js +49 -0
- package/dist/ui/layout/scroll-shadow/index.mjs +8 -0
- package/dist/ui/layout/scroll-shadow/scroll-shadow.d.ts +9 -0
- package/dist/ui/layout/scroll-shadow/scroll-shadow.js +47 -0
- package/dist/ui/layout/scroll-shadow/scroll-shadow.mjs +7 -0
- package/dist/ui/navigation/breadcrumbs/breadcrumbs.d.ts +10 -0
- package/dist/ui/navigation/breadcrumbs/breadcrumbs.js +37 -0
- package/dist/ui/navigation/breadcrumbs/breadcrumbs.mjs +9 -0
- package/dist/ui/navigation/breadcrumbs/index.d.ts +1 -0
- package/dist/ui/navigation/breadcrumbs/index.js +39 -0
- package/dist/ui/navigation/breadcrumbs/index.mjs +10 -0
- package/dist/ui/navigation/index.d.ts +3 -0
- package/dist/ui/navigation/index.js +88 -2
- package/dist/ui/navigation/index.mjs +31 -2
- package/dist/ui/navigation/navbar/index.d.ts +1 -0
- package/dist/ui/navigation/navbar/index.js +85 -0
- package/dist/ui/navigation/navbar/index.mjs +20 -0
- package/dist/ui/navigation/navbar/navbar.d.ts +26 -0
- package/dist/ui/navigation/navbar/navbar.js +83 -0
- package/dist/ui/navigation/navbar/navbar.mjs +19 -0
- package/dist/ui/navigation/tabs/index.d.ts +1 -0
- package/dist/ui/navigation/tabs/index.js +56 -0
- package/dist/ui/navigation/tabs/index.mjs +8 -0
- package/dist/ui/navigation/tabs/tabs.d.ts +7 -0
- package/dist/ui/navigation/tabs/tabs.js +54 -0
- package/dist/ui/navigation/tabs/tabs.mjs +7 -0
- package/dist/ui/overlays/dropdown/dropdown.d.ts +28 -0
- package/dist/ui/overlays/dropdown/dropdown.js +48 -0
- package/dist/ui/overlays/dropdown/dropdown.mjs +15 -0
- package/dist/ui/overlays/dropdown/index.d.ts +1 -0
- package/dist/ui/overlays/dropdown/index.js +50 -0
- package/dist/ui/overlays/dropdown/index.mjs +16 -0
- package/dist/ui/overlays/index.d.ts +2 -0
- package/dist/ui/overlays/index.js +47 -2
- package/dist/ui/overlays/index.mjs +20 -2
- package/dist/ui/overlays/popover/index.d.ts +1 -0
- package/dist/ui/overlays/popover/index.js +51 -0
- package/dist/ui/overlays/popover/index.mjs +8 -0
- package/dist/ui/overlays/popover/popover.d.ts +10 -0
- package/dist/ui/overlays/popover/popover.js +49 -0
- package/dist/ui/overlays/popover/popover.mjs +7 -0
- package/dist/ui/provider/index.js +31 -2
- package/dist/ui/provider/index.mjs +16 -1
- package/dist/ui/provider/ui-provider.d.ts +3 -1
- package/dist/ui/provider/ui-provider.js +31 -2
- package/dist/ui/provider/ui-provider.mjs +16 -1
- package/dist/ui/surface/card/card.d.ts +36 -0
- package/dist/ui/surface/card/card.js +65 -0
- package/dist/ui/surface/card/card.mjs +7 -0
- package/dist/ui/surface/card/index.d.ts +1 -0
- package/dist/ui/surface/card/index.js +67 -0
- package/dist/ui/surface/card/index.mjs +8 -0
- package/dist/ui/surface/index.d.ts +1 -0
- package/dist/ui/surface/index.js +39 -0
- package/dist/ui/surface/index.mjs +6 -1
- package/dist/ui/theme/colors/common.mjs +5 -5
- package/dist/ui/theme/colors/index.js +1 -1
- package/dist/ui/theme/colors/index.mjs +7 -7
- package/dist/ui/theme/colors/semantic.js +1 -1
- package/dist/ui/theme/colors/semantic.mjs +6 -6
- package/dist/ui/theme/colors.js +1 -1
- package/dist/ui/theme/colors.mjs +7 -7
- package/dist/ui/theme/index.js +1 -1
- package/dist/ui/theme/index.mjs +8 -8
- package/dist/ui/theme/theme.js +1 -1
- package/dist/ui/theme/theme.mjs +8 -8
- package/dist/utils/extend-variants.d.ts +41 -0
- package/dist/utils/extend-variants.js +34 -0
- package/dist/utils/extend-variants.mjs +7 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +36 -0
- package/dist/utils/index.mjs +8 -0
- package/package.json +18 -3
- package/dist/chunk-6WK4W5LL.mjs +0 -17
- package/dist/chunk-GQ3LBZ2Q.mjs +0 -33
- package/dist/chunk-ONQIPN3G.mjs +0 -14
- package/dist/{chunk-54ZSBA6H.mjs → chunk-3C4DPNCD.mjs} +0 -0
- package/dist/{chunk-5EWHMXCP.mjs → chunk-54FA62HL.mjs} +0 -0
- package/dist/{chunk-5HUR2CNH.mjs → chunk-57JRJHSH.mjs} +0 -0
- package/dist/{chunk-NCM6KIQH.mjs → chunk-5WDV3PDI.mjs} +12 -12
- /package/dist/{chunk-IZ5KKF6P.mjs → chunk-773RYGHT.mjs} +0 -0
- /package/dist/{chunk-5YMUHF45.mjs → chunk-AR4IYKG5.mjs} +0 -0
- /package/dist/{chunk-CAJWTQDB.mjs → chunk-AT6DX4DN.mjs} +0 -0
- /package/dist/{chunk-JJHHWDZT.mjs → chunk-BGNMWHME.mjs} +0 -0
- /package/dist/{chunk-OEHJDT6R.mjs → chunk-CTKWGSNJ.mjs} +0 -0
- /package/dist/{chunk-UURZJWWV.mjs → chunk-CZEO3U25.mjs} +0 -0
- /package/dist/{chunk-WJXIRSSW.mjs → chunk-DRZAPJZH.mjs} +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/data/image/image.tsx
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Image as HeroUIImage } from "@heroui/image";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
var Image = React.forwardRef(({ ...props }, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(HeroUIImage, { ref, ...props });
|
|
9
|
+
});
|
|
10
|
+
Image.displayName = "TeachInUI.Image";
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
Image
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/utils/extend-variants.ts
|
|
4
|
+
import { extendVariants as heroUIExtendVariants } from "@heroui/system";
|
|
5
|
+
var extendVariants = (component, config) => {
|
|
6
|
+
return heroUIExtendVariants(component, config);
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
extendVariants
|
|
11
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
commonColors
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5WDV3PDI.mjs";
|
|
5
5
|
import {
|
|
6
6
|
swapColorValues
|
|
7
7
|
} from "./chunk-VIPLRFPR.mjs";
|
|
@@ -126,7 +126,7 @@ var themeColorsDark = {
|
|
|
126
126
|
},
|
|
127
127
|
primary: {
|
|
128
128
|
...swapColorValues(commonColors.blue),
|
|
129
|
-
foreground: commonColors.
|
|
129
|
+
foreground: commonColors.white,
|
|
130
130
|
flat: commonColors.blue[500],
|
|
131
131
|
DEFAULT: commonColors.blue[500]
|
|
132
132
|
},
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/inputs/checkbox/checkbox-group.tsx
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { CheckboxGroup as HeroUICheckboxGroup } from "@heroui/checkbox";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
var CheckboxGroup = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(HeroUICheckboxGroup, { ref, ...props }));
|
|
8
|
+
CheckboxGroup.displayName = "TeachInUI.CheckboxGroup";
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
CheckboxGroup
|
|
12
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/feedback/toast/toast.tsx
|
|
4
|
+
import React from "react";
|
|
5
|
+
import {
|
|
6
|
+
Toast as HeroToast,
|
|
7
|
+
ToastProvider as HeroToastProvider,
|
|
8
|
+
addToast as heroAddToast,
|
|
9
|
+
closeAll as heroCloseAll,
|
|
10
|
+
closeToast as heroCloseToast,
|
|
11
|
+
getToastQueue as heroGetToastQueue,
|
|
12
|
+
isToastClosing as heroIsToastClosing,
|
|
13
|
+
useToast as useHeroToast
|
|
14
|
+
} from "@heroui/toast";
|
|
15
|
+
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
var Toast = React.forwardRef((props, ref) => {
|
|
17
|
+
return /* @__PURE__ */ jsx(HeroToast, { ref, ...props });
|
|
18
|
+
});
|
|
19
|
+
Toast.displayName = "TeachInUI.Toast";
|
|
20
|
+
var ToastProvider = (props) => {
|
|
21
|
+
return /* @__PURE__ */ jsx(HeroToastProvider, { ...props });
|
|
22
|
+
};
|
|
23
|
+
ToastProvider.displayName = "TeachInUI.ToastProvider";
|
|
24
|
+
var useToast = (...args) => useHeroToast(...args);
|
|
25
|
+
var addToast = (...args) => heroAddToast(...args);
|
|
26
|
+
var closeToast = (...args) => heroCloseToast(...args);
|
|
27
|
+
var closeAll = (...args) => heroCloseAll(...args);
|
|
28
|
+
var getToastQueue = (...args) => heroGetToastQueue(...args);
|
|
29
|
+
var isToastClosing = (...args) => heroIsToastClosing(...args);
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
Toast,
|
|
33
|
+
ToastProvider,
|
|
34
|
+
useToast,
|
|
35
|
+
addToast,
|
|
36
|
+
closeToast,
|
|
37
|
+
closeAll,
|
|
38
|
+
getToastQueue,
|
|
39
|
+
isToastClosing
|
|
40
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/inputs/switch/favorite-switch.tsx
|
|
4
|
+
import { useSwitch } from "@heroui/switch";
|
|
5
|
+
import { Bookmark } from "lucide-react";
|
|
6
|
+
import { tv } from "tailwind-variants";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
var bookmarkVariants = tv({
|
|
9
|
+
base: "size-6 stroke-default-400 group-hover:fill-primary-100 group-hover:stroke-default-400",
|
|
10
|
+
variants: {
|
|
11
|
+
isSelected: {
|
|
12
|
+
true: "stroke-primary fill-primary-100"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
function FavoriteSwitch({ isSelected, onValueChange }) {
|
|
17
|
+
const { Component, slots, getBaseProps, getInputProps, getWrapperProps } = useSwitch({
|
|
18
|
+
isSelected,
|
|
19
|
+
onValueChange
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ jsxs(Component, { ...getBaseProps(), children: [
|
|
22
|
+
/* @__PURE__ */ jsx("div", { className: "sr-only", children: /* @__PURE__ */ jsx("input", { ...getInputProps() }) }),
|
|
23
|
+
/* @__PURE__ */ jsx(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
...getWrapperProps(),
|
|
27
|
+
className: slots.wrapper({
|
|
28
|
+
class: "flex h-8 w-8 cursor-pointer items-center justify-center rounded-sm !bg-transparent"
|
|
29
|
+
}),
|
|
30
|
+
children: /* @__PURE__ */ jsx(Bookmark, { className: bookmarkVariants({ isSelected }) })
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
] });
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
FavoriteSwitch
|
|
38
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
extendVariants
|
|
4
|
+
} from "./chunk-7BTEKEON.mjs";
|
|
5
|
+
|
|
6
|
+
// src/ui/feedback/chip/chip.tsx
|
|
7
|
+
import React from "react";
|
|
8
|
+
import { Chip as HeroUIChip } from "@heroui/chip";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
var ChipCustom = extendVariants(HeroUIChip, {
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
bordered: { base: "border-1" },
|
|
14
|
+
faded: { base: "border-1" },
|
|
15
|
+
dot: { base: "border-1" }
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
var Chip = React.forwardRef(({ variant = "flat", ...props }, ref) => {
|
|
20
|
+
return /* @__PURE__ */ jsx(ChipCustom, { ref, variant, ...props });
|
|
21
|
+
});
|
|
22
|
+
Chip.displayName = "TeachInUI.Chip";
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
Chip
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
ToastProvider
|
|
4
|
+
} from "./chunk-CA2EAK5M.mjs";
|
|
5
|
+
|
|
6
|
+
// src/ui/provider/ui-provider.tsx
|
|
7
|
+
import { HeroUIProvider } from "@heroui/system";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
function UIProvider({
|
|
10
|
+
children,
|
|
11
|
+
locale = "ru-RU",
|
|
12
|
+
labelPlacement = "outside",
|
|
13
|
+
navigate,
|
|
14
|
+
toastProviderProps
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ jsxs(HeroUIProvider, { labelPlacement, locale, navigate, children: [
|
|
17
|
+
children,
|
|
18
|
+
/* @__PURE__ */ jsx(ToastProvider, { ...toastProviderProps })
|
|
19
|
+
] });
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
UIProvider
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/feedback/progress/progress.tsx
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Progress as HeroUIProgress } from "@heroui/progress";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
var Progress = React.forwardRef((props, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(HeroUIProgress, { ref, ...props });
|
|
9
|
+
});
|
|
10
|
+
Progress.displayName = "TeachInUI.Progress";
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
Progress
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/feedback/progress/circular-progress.tsx
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { CircularProgress as HeroUICircularProgress } from "@heroui/progress";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
var CircularProgress = React.forwardRef((props, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(HeroUICircularProgress, { ref, ...props });
|
|
9
|
+
});
|
|
10
|
+
CircularProgress.displayName = "TeachInUI.CircularProgress";
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
CircularProgress
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -6,7 +6,7 @@ import React from "react";
|
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
var Checkbox = React.forwardRef(
|
|
8
8
|
({ label, ...props }, ref) => {
|
|
9
|
-
return /* @__PURE__ */ jsx(HeroUICheckbox, { ref,
|
|
9
|
+
return /* @__PURE__ */ jsx(HeroUICheckbox, { ref, ...props, children: label });
|
|
10
10
|
}
|
|
11
11
|
);
|
|
12
12
|
Checkbox.displayName = "TeachInUI.Checkbox";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Select
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3YOW5DEZ.mjs";
|
|
5
5
|
|
|
6
6
|
// src/ui/form/rhf/fields/select-field.tsx
|
|
7
7
|
import { Controller, useFormContext } from "react-hook-form";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
function SelectField({ name, ...props }) {
|
|
9
|
+
function SelectField({ name, selectionMode, ...props }) {
|
|
10
10
|
const { control } = useFormContext();
|
|
11
11
|
return /* @__PURE__ */ jsx(
|
|
12
12
|
Controller,
|
|
@@ -16,6 +16,7 @@ function SelectField({ name, ...props }) {
|
|
|
16
16
|
render: ({ field, fieldState: { error } }) => /* @__PURE__ */ jsx(
|
|
17
17
|
Select,
|
|
18
18
|
{
|
|
19
|
+
selectionMode,
|
|
19
20
|
value: field.value,
|
|
20
21
|
onChange: (value) => field.onChange(value),
|
|
21
22
|
...props,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/inputs/radio/radio-group.tsx
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { RadioGroup as HeroUIRadioGroup } from "@heroui/radio";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
var RadioGroup = React.forwardRef(
|
|
8
|
+
(props, ref) => {
|
|
9
|
+
return /* @__PURE__ */ jsx(HeroUIRadioGroup, { ref, ...props });
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
RadioGroup.displayName = "TeachInUI.RadioGroup";
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
RadioGroup
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/layout/scroll-shadow/scroll-shadow.tsx
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { ScrollShadow as HeroUIScrollShadow } from "@heroui/scroll-shadow";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
var ScrollShadow = React.forwardRef((props, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(HeroUIScrollShadow, { ref, ...props });
|
|
9
|
+
});
|
|
10
|
+
ScrollShadow.displayName = "TeachInUI.ScrollShadow";
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
ScrollShadow
|
|
14
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/data/table/table.tsx
|
|
4
|
+
import {
|
|
5
|
+
Table as HeroUITable,
|
|
6
|
+
TableHeader as HeroUITableHeader,
|
|
7
|
+
TableColumn as HeroUITableColumn,
|
|
8
|
+
TableBody as HeroUITableBody,
|
|
9
|
+
TableRow as HeroUITableRow,
|
|
10
|
+
TableCell as HeroUITableCell,
|
|
11
|
+
getKeyValue as heroGetKeyValue
|
|
12
|
+
} from "@heroui/table";
|
|
13
|
+
var Table = Object.assign(HeroUITable, { displayName: "TeachInUI.Table" });
|
|
14
|
+
var TableHeader = Object.assign(HeroUITableHeader, { displayName: "TeachInUI.TableHeader" });
|
|
15
|
+
var TableColumn = Object.assign(HeroUITableColumn, { displayName: "TeachInUI.TableColumn" });
|
|
16
|
+
var TableBody = Object.assign(HeroUITableBody, { displayName: "TeachInUI.TableBody" });
|
|
17
|
+
var TableRow = Object.assign(HeroUITableRow, { displayName: "TeachInUI.TableRow" });
|
|
18
|
+
var TableCell = Object.assign(HeroUITableCell, { displayName: "TeachInUI.TableCell" });
|
|
19
|
+
var getKeyValue = heroGetKeyValue;
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
Table,
|
|
23
|
+
TableHeader,
|
|
24
|
+
TableColumn,
|
|
25
|
+
TableBody,
|
|
26
|
+
TableRow,
|
|
27
|
+
TableCell,
|
|
28
|
+
getKeyValue
|
|
29
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/overlays/popover/popover.tsx
|
|
4
|
+
import {
|
|
5
|
+
Popover as HeroUIPopover,
|
|
6
|
+
PopoverTrigger as HeroUIPopoverTrigger,
|
|
7
|
+
PopoverContent as HeroUIPopoverContent
|
|
8
|
+
} from "@heroui/popover";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
var Root = ({ children, ...props }) => {
|
|
11
|
+
return /* @__PURE__ */ jsx(HeroUIPopover, { ...props, children });
|
|
12
|
+
};
|
|
13
|
+
Root.displayName = "TeachInUI.Popover.Root";
|
|
14
|
+
var Trigger = ({ children, ...props }) => {
|
|
15
|
+
return /* @__PURE__ */ jsx(HeroUIPopoverTrigger, { ...props, children });
|
|
16
|
+
};
|
|
17
|
+
Trigger.displayName = "TeachInUI.Popover.Trigger";
|
|
18
|
+
var Content = ({ children, ...props }) => {
|
|
19
|
+
return /* @__PURE__ */ jsx(HeroUIPopoverContent, { ...props, children });
|
|
20
|
+
};
|
|
21
|
+
Content.displayName = "TeachInUI.Popover.Content";
|
|
22
|
+
var Popover = {
|
|
23
|
+
Root,
|
|
24
|
+
Trigger,
|
|
25
|
+
Content
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
Popover
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/layout/accordion/accordion.tsx
|
|
4
|
+
import {
|
|
5
|
+
Accordion as HeroUIAccordion,
|
|
6
|
+
AccordionItem as HeroUIAccordionItem
|
|
7
|
+
} from "@heroui/accordion";
|
|
8
|
+
var Accordion = Object.assign(HeroUIAccordion, { displayName: "TeachInUI.Accordion" });
|
|
9
|
+
var AccordionItem = Object.assign(HeroUIAccordionItem, { displayName: "TeachInUI.AccordionItem" });
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
Accordion,
|
|
13
|
+
AccordionItem
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/navigation/navbar/navbar.tsx
|
|
4
|
+
import React from "react";
|
|
5
|
+
import {
|
|
6
|
+
Navbar as HeroUINavbar,
|
|
7
|
+
NavbarBrand as HeroUINavbarBrand,
|
|
8
|
+
NavbarContent as HeroUINavbarContent,
|
|
9
|
+
NavbarItem as HeroUINavbarItem,
|
|
10
|
+
NavbarMenu as HeroUINavbarMenu,
|
|
11
|
+
NavbarMenuItem as HeroUINavbarMenuItem,
|
|
12
|
+
NavbarMenuToggle as HeroUINavbarMenuToggle
|
|
13
|
+
} from "@heroui/navbar";
|
|
14
|
+
import { jsx } from "react/jsx-runtime";
|
|
15
|
+
var Navbar = React.forwardRef((props, ref) => {
|
|
16
|
+
return /* @__PURE__ */ jsx(HeroUINavbar, { ref, ...props });
|
|
17
|
+
});
|
|
18
|
+
Navbar.displayName = "TeachInUI.Navbar";
|
|
19
|
+
var NavbarBrand = React.forwardRef((props, ref) => {
|
|
20
|
+
return /* @__PURE__ */ jsx(HeroUINavbarBrand, { ref, ...props });
|
|
21
|
+
});
|
|
22
|
+
NavbarBrand.displayName = "TeachInUI.NavbarBrand";
|
|
23
|
+
var NavbarContent = React.forwardRef((props, ref) => {
|
|
24
|
+
return /* @__PURE__ */ jsx(HeroUINavbarContent, { ref, ...props });
|
|
25
|
+
});
|
|
26
|
+
NavbarContent.displayName = "TeachInUI.NavbarContent";
|
|
27
|
+
var NavbarItem = React.forwardRef((props, ref) => {
|
|
28
|
+
return /* @__PURE__ */ jsx(HeroUINavbarItem, { ref, ...props });
|
|
29
|
+
});
|
|
30
|
+
NavbarItem.displayName = "TeachInUI.NavbarItem";
|
|
31
|
+
var NavbarMenu = React.forwardRef((props, ref) => {
|
|
32
|
+
return /* @__PURE__ */ jsx(HeroUINavbarMenu, { ref, ...props });
|
|
33
|
+
});
|
|
34
|
+
NavbarMenu.displayName = "TeachInUI.NavbarMenu";
|
|
35
|
+
var NavbarMenuItem = React.forwardRef((props, ref) => {
|
|
36
|
+
return /* @__PURE__ */ jsx(HeroUINavbarMenuItem, { ref, ...props });
|
|
37
|
+
});
|
|
38
|
+
NavbarMenuItem.displayName = "TeachInUI.NavbarMenuItem";
|
|
39
|
+
var NavbarMenuToggle = React.forwardRef((props, ref) => {
|
|
40
|
+
return /* @__PURE__ */ jsx(HeroUINavbarMenuToggle, { ref, ...props });
|
|
41
|
+
});
|
|
42
|
+
NavbarMenuToggle.displayName = "TeachInUI.NavbarMenuToggle";
|
|
43
|
+
|
|
44
|
+
export {
|
|
45
|
+
Navbar,
|
|
46
|
+
NavbarBrand,
|
|
47
|
+
NavbarContent,
|
|
48
|
+
NavbarItem,
|
|
49
|
+
NavbarMenu,
|
|
50
|
+
NavbarMenuItem,
|
|
51
|
+
NavbarMenuToggle
|
|
52
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/navigation/breadcrumbs/breadcrumbs.tsx
|
|
4
|
+
import {
|
|
5
|
+
Breadcrumbs as HeroUIBreadcrumbs,
|
|
6
|
+
BreadcrumbItem as HeroUIBreadcrumbItem
|
|
7
|
+
} from "@heroui/breadcrumbs";
|
|
8
|
+
var Breadcrumbs = Object.assign(HeroUIBreadcrumbs, { displayName: "TeachInUI.Breadcrumbs" });
|
|
9
|
+
var BreadcrumbItem = Object.assign(HeroUIBreadcrumbItem, {
|
|
10
|
+
displayName: "TeachInUI.BreadcrumbItem"
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
Breadcrumbs,
|
|
15
|
+
BreadcrumbItem
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/surface/card/card.tsx
|
|
4
|
+
import React from "react";
|
|
5
|
+
import {
|
|
6
|
+
Card as HeroUICard,
|
|
7
|
+
CardHeader as HeroUICardHeader,
|
|
8
|
+
CardBody as HeroUICardBody,
|
|
9
|
+
CardFooter as HeroUICardFooter
|
|
10
|
+
} from "@heroui/card";
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
12
|
+
var Root = React.forwardRef(({ children, ...props }, ref) => {
|
|
13
|
+
return /* @__PURE__ */ jsx(HeroUICard, { ref, ...props, children });
|
|
14
|
+
});
|
|
15
|
+
Root.displayName = "TeachInUI.Card.Root";
|
|
16
|
+
var Header = React.forwardRef(({ children, ...props }, ref) => {
|
|
17
|
+
return /* @__PURE__ */ jsx(HeroUICardHeader, { ref, ...props, children });
|
|
18
|
+
});
|
|
19
|
+
Header.displayName = "TeachInUI.Card.Header";
|
|
20
|
+
var Body = React.forwardRef(({ children, ...props }, ref) => {
|
|
21
|
+
return /* @__PURE__ */ jsx(HeroUICardBody, { ref, ...props, children });
|
|
22
|
+
});
|
|
23
|
+
Body.displayName = "TeachInUI.Card.Body";
|
|
24
|
+
var Footer = React.forwardRef(({ children, ...props }, ref) => {
|
|
25
|
+
return /* @__PURE__ */ jsx(HeroUICardFooter, { ref, ...props, children });
|
|
26
|
+
});
|
|
27
|
+
Footer.displayName = "TeachInUI.Card.Footer";
|
|
28
|
+
var Card = {
|
|
29
|
+
Root,
|
|
30
|
+
Header,
|
|
31
|
+
Body,
|
|
32
|
+
Footer
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
Card
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/layout/divider/divider.tsx
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Divider as HeroUIDivider } from "@heroui/divider";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
var Divider = React.forwardRef((props, ref) => {
|
|
8
|
+
const { ...restProps } = props;
|
|
9
|
+
return /* @__PURE__ */ jsx(HeroUIDivider, { ref, ...restProps });
|
|
10
|
+
});
|
|
11
|
+
Divider.displayName = "TeachInUI.Divider";
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
Divider
|
|
15
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
RadioGroup
|
|
4
|
+
} from "./chunk-NOXFF2KJ.mjs";
|
|
5
|
+
|
|
6
|
+
// src/ui/form/rhf/fields/radio-field.tsx
|
|
7
|
+
import { Controller, useFormContext } from "react-hook-form";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
function RadioField({ name, ...props }) {
|
|
10
|
+
const { control } = useFormContext();
|
|
11
|
+
return /* @__PURE__ */ jsx(
|
|
12
|
+
Controller,
|
|
13
|
+
{
|
|
14
|
+
control,
|
|
15
|
+
name,
|
|
16
|
+
render: ({ field: { ref, value, onChange, ...field }, fieldState: { error } }) => /* @__PURE__ */ jsx(
|
|
17
|
+
RadioGroup,
|
|
18
|
+
{
|
|
19
|
+
...props,
|
|
20
|
+
...field,
|
|
21
|
+
ref,
|
|
22
|
+
errorMessage: error == null ? void 0 : error.message,
|
|
23
|
+
isInvalid: !!error,
|
|
24
|
+
value,
|
|
25
|
+
onValueChange: onChange
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
RadioField.displayName = "TeachInUI.RadioField";
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
RadioField
|
|
35
|
+
};
|