@teach-in/react 0.1.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 -0
- package/README.md +9 -0
- package/dist/chunk-25ISU6R3.mjs +1 -0
- package/dist/chunk-26RHRVH2.mjs +18 -0
- package/dist/chunk-2W4N27WQ.mjs +28 -0
- package/dist/chunk-3BST3PYD.mjs +1 -0
- package/dist/chunk-3N5UZODS.mjs +1 -0
- package/dist/chunk-3ZTXXJSO.mjs +25 -0
- package/dist/chunk-4QSIBIUI.mjs +32 -0
- package/dist/chunk-54ZSBA6H.mjs +1 -0
- package/dist/chunk-5EWHMXCP.mjs +1 -0
- package/dist/chunk-5HK7HRTR.mjs +1 -0
- package/dist/chunk-5HUR2CNH.mjs +1 -0
- package/dist/chunk-5IHVMMCK.mjs +1 -0
- package/dist/chunk-5UKTT75Y.mjs +1 -0
- package/dist/chunk-5YMUHF45.mjs +1 -0
- package/dist/chunk-6UIBJVXP.mjs +27 -0
- package/dist/chunk-6WK4W5LL.mjs +17 -0
- package/dist/chunk-7GHK5XYK.mjs +33 -0
- package/dist/chunk-7T3JFARO.mjs +13 -0
- package/dist/chunk-A3AAC7PF.mjs +14 -0
- package/dist/chunk-AQ3ISJKU.mjs +1 -0
- package/dist/chunk-AS4T5M6E.mjs +14 -0
- package/dist/chunk-C3MURCMZ.mjs +19 -0
- package/dist/chunk-CETCW7DS.mjs +24 -0
- package/dist/chunk-CLDAITOP.mjs +26 -0
- package/dist/chunk-CRPCWBXA.mjs +1 -0
- package/dist/chunk-CUVF3U67.mjs +59 -0
- package/dist/chunk-CXAZBWS4.mjs +23 -0
- package/dist/chunk-DBQTFBA3.mjs +10 -0
- package/dist/chunk-DUQFM3QS.mjs +1 -0
- package/dist/chunk-EC3NSPHR.mjs +27 -0
- package/dist/chunk-EVQFKHCM.mjs +1 -0
- package/dist/chunk-FELJP42D.mjs +220 -0
- package/dist/chunk-FXXWSYJA.mjs +1 -0
- package/dist/chunk-GEJLG5RP.mjs +33 -0
- package/dist/chunk-GQ3LBZ2Q.mjs +33 -0
- package/dist/chunk-GRWFJ4FP.mjs +16 -0
- package/dist/chunk-HH7MLUOF.mjs +13 -0
- package/dist/chunk-HJUZTISD.mjs +16 -0
- package/dist/chunk-HZ5YAOU6.mjs +1 -0
- package/dist/chunk-I5AMV7H7.mjs +1 -0
- package/dist/chunk-IAJ6G633.mjs +17 -0
- package/dist/chunk-IZEJE6V2.mjs +14 -0
- package/dist/chunk-JDFRAN4S.mjs +24 -0
- package/dist/chunk-JJHHWDZT.mjs +1 -0
- package/dist/chunk-K3WTHFIG.mjs +1 -0
- package/dist/chunk-KH4D2C2T.mjs +1 -0
- package/dist/chunk-KTUGFQWJ.mjs +16 -0
- package/dist/chunk-LJIVY6GU.mjs +16 -0
- package/dist/chunk-LN7WH3OB.mjs +25 -0
- package/dist/chunk-LOMRTWX5.mjs +12 -0
- package/dist/chunk-LR4R7GFR.mjs +16 -0
- package/dist/chunk-N3EAW6UO.mjs +14 -0
- package/dist/chunk-NBFOX367.mjs +15 -0
- package/dist/chunk-NZI5NBXF.mjs +16 -0
- package/dist/chunk-OEHJDT6R.mjs +1 -0
- package/dist/chunk-ONQIPN3G.mjs +14 -0
- package/dist/chunk-PEB5ZH76.mjs +13 -0
- package/dist/chunk-Q4TQYK6N.mjs +73 -0
- package/dist/chunk-Q6XJI7Q2.mjs +1 -0
- package/dist/chunk-QU35SWES.mjs +28 -0
- package/dist/chunk-R7LDL5CU.mjs +24 -0
- package/dist/chunk-S2TB4GD2.mjs +35 -0
- package/dist/chunk-S3ET5HKP.mjs +33 -0
- package/dist/chunk-T57H3CGO.mjs +47 -0
- package/dist/chunk-TIFF5WZA.mjs +14 -0
- package/dist/chunk-UHLC7GOU.mjs +31 -0
- package/dist/chunk-UTZUYZZL.mjs +1 -0
- package/dist/chunk-UURZJWWV.mjs +1 -0
- package/dist/chunk-V2G5QHZZ.mjs +14 -0
- package/dist/chunk-V2HNFTTX.mjs +1 -0
- package/dist/chunk-V3KKDSQP.mjs +1 -0
- package/dist/chunk-V4HKGJYK.mjs +33 -0
- package/dist/chunk-V77JZXH7.mjs +1 -0
- package/dist/chunk-VOG5HJID.mjs +1 -0
- package/dist/chunk-WJXIRSSW.mjs +1 -0
- package/dist/chunk-WTXPB253.mjs +16 -0
- package/dist/chunk-WYJW5NNA.mjs +1 -0
- package/dist/chunk-WZDFBWUL.mjs +1 -0
- package/dist/chunk-XAW35UDV.mjs +1 -0
- package/dist/chunk-ZRHEFEFS.mjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +939 -0
- package/dist/index.mjs +237 -0
- package/dist/ui/actions/button/button.d.ts +25 -0
- package/dist/ui/actions/button/button.js +62 -0
- package/dist/ui/actions/button/button.mjs +8 -0
- package/dist/ui/actions/button/index.d.ts +1 -0
- package/dist/ui/actions/button/index.js +63 -0
- package/dist/ui/actions/button/index.mjs +8 -0
- package/dist/ui/actions/index.d.ts +1 -0
- package/dist/ui/actions/index.js +63 -0
- package/dist/ui/actions/index.mjs +9 -0
- package/dist/ui/data/avatar/avatar.d.ts +6 -0
- package/dist/ui/data/avatar/avatar.js +47 -0
- package/dist/ui/data/avatar/avatar.mjs +7 -0
- package/dist/ui/data/avatar/index.d.ts +1 -0
- package/dist/ui/data/avatar/index.js +49 -0
- package/dist/ui/data/avatar/index.mjs +8 -0
- package/dist/ui/data/index.d.ts +2 -0
- package/dist/ui/data/index.js +60 -0
- package/dist/ui/data/index.mjs +14 -0
- package/dist/ui/data/pagination/index.d.ts +1 -0
- package/dist/ui/data/pagination/index.js +49 -0
- package/dist/ui/data/pagination/index.mjs +8 -0
- package/dist/ui/data/pagination/pagination.d.ts +7 -0
- package/dist/ui/data/pagination/pagination.js +47 -0
- package/dist/ui/data/pagination/pagination.mjs +7 -0
- package/dist/ui/feedback/alert/alert.d.ts +8 -0
- package/dist/ui/feedback/alert/alert.js +48 -0
- package/dist/ui/feedback/alert/alert.mjs +8 -0
- package/dist/ui/feedback/alert/index.d.ts +1 -0
- package/dist/ui/feedback/alert/index.js +49 -0
- package/dist/ui/feedback/alert/index.mjs +8 -0
- package/dist/ui/feedback/chip/chip.d.ts +6 -0
- package/dist/ui/feedback/chip/chip.js +48 -0
- package/dist/ui/feedback/chip/chip.mjs +8 -0
- package/dist/ui/feedback/chip/index.d.ts +1 -0
- package/dist/ui/feedback/chip/index.js +49 -0
- package/dist/ui/feedback/chip/index.mjs +8 -0
- package/dist/ui/feedback/index.d.ts +4 -0
- package/dist/ui/feedback/index.js +86 -0
- package/dist/ui/feedback/index.mjs +24 -0
- package/dist/ui/feedback/spinner/index.d.ts +1 -0
- package/dist/ui/feedback/spinner/index.js +51 -0
- package/dist/ui/feedback/spinner/index.mjs +8 -0
- package/dist/ui/feedback/spinner/spinner.d.ts +6 -0
- package/dist/ui/feedback/spinner/spinner.js +50 -0
- package/dist/ui/feedback/spinner/spinner.mjs +8 -0
- package/dist/ui/feedback/tooltip/index.d.ts +1 -0
- package/dist/ui/feedback/tooltip/index.js +51 -0
- package/dist/ui/feedback/tooltip/index.mjs +8 -0
- package/dist/ui/feedback/tooltip/tooltip.d.ts +6 -0
- package/dist/ui/feedback/tooltip/tooltip.js +50 -0
- package/dist/ui/feedback/tooltip/tooltip.mjs +8 -0
- package/dist/ui/form/form.d.ts +6 -0
- package/dist/ui/form/form.js +47 -0
- package/dist/ui/form/form.mjs +7 -0
- package/dist/ui/form/index.d.ts +2 -0
- package/dist/ui/form/index.js +364 -0
- package/dist/ui/form/index.mjs +65 -0
- package/dist/ui/form/rhf/fields/autocomplete-field.d.ts +10 -0
- package/dist/ui/form/rhf/fields/autocomplete-field.js +77 -0
- package/dist/ui/form/rhf/fields/autocomplete-field.mjs +27 -0
- package/dist/ui/form/rhf/fields/checkbox-field.d.ts +10 -0
- package/dist/ui/form/rhf/fields/checkbox-field.js +71 -0
- package/dist/ui/form/rhf/fields/checkbox-field.mjs +27 -0
- package/dist/ui/form/rhf/fields/date-picker-field.d.ts +10 -0
- package/dist/ui/form/rhf/fields/date-picker-field.js +78 -0
- package/dist/ui/form/rhf/fields/date-picker-field.mjs +27 -0
- package/dist/ui/form/rhf/fields/email-field.d.ts +10 -0
- package/dist/ui/form/rhf/fields/email-field.js +76 -0
- package/dist/ui/form/rhf/fields/email-field.mjs +27 -0
- package/dist/ui/form/rhf/fields/index.d.ts +9 -0
- package/dist/ui/form/rhf/fields/index.js +353 -0
- package/dist/ui/form/rhf/fields/index.mjs +59 -0
- package/dist/ui/form/rhf/fields/input-field.d.ts +10 -0
- package/dist/ui/form/rhf/fields/input-field.js +66 -0
- package/dist/ui/form/rhf/fields/input-field.mjs +27 -0
- package/dist/ui/form/rhf/fields/select-field.d.ts +10 -0
- package/dist/ui/form/rhf/fields/select-field.js +94 -0
- package/dist/ui/form/rhf/fields/select-field.mjs +27 -0
- package/dist/ui/form/rhf/fields/switch-field.d.ts +10 -0
- package/dist/ui/form/rhf/fields/switch-field.js +69 -0
- package/dist/ui/form/rhf/fields/switch-field.mjs +27 -0
- package/dist/ui/form/rhf/fields/text-field.d.ts +10 -0
- package/dist/ui/form/rhf/fields/text-field.js +74 -0
- package/dist/ui/form/rhf/fields/text-field.mjs +27 -0
- package/dist/ui/form/rhf/fields/textarea-field.d.ts +10 -0
- package/dist/ui/form/rhf/fields/textarea-field.js +77 -0
- package/dist/ui/form/rhf/fields/textarea-field.mjs +27 -0
- package/dist/ui/form/rhf/index.d.ts +1 -0
- package/dist/ui/form/rhf/index.js +353 -0
- package/dist/ui/form/rhf/index.mjs +60 -0
- package/dist/ui/format/boolean.d.ts +12 -0
- package/dist/ui/format/boolean.js +42 -0
- package/dist/ui/format/boolean.mjs +8 -0
- package/dist/ui/format/currency.d.ts +12 -0
- package/dist/ui/format/currency.js +49 -0
- package/dist/ui/format/currency.mjs +8 -0
- package/dist/ui/format/date.d.ts +12 -0
- package/dist/ui/format/date.js +50 -0
- package/dist/ui/format/date.mjs +8 -0
- package/dist/ui/format/datetime.d.ts +12 -0
- package/dist/ui/format/datetime.js +52 -0
- package/dist/ui/format/datetime.mjs +8 -0
- package/dist/ui/format/duration.d.ts +13 -0
- package/dist/ui/format/duration.js +56 -0
- package/dist/ui/format/duration.mjs +8 -0
- package/dist/ui/format/index.d.ts +9 -0
- package/dist/ui/format/index.js +225 -0
- package/dist/ui/format/index.mjs +40 -0
- package/dist/ui/format/number.d.ts +11 -0
- package/dist/ui/format/number.js +40 -0
- package/dist/ui/format/number.mjs +8 -0
- package/dist/ui/format/percent.d.ts +12 -0
- package/dist/ui/format/percent.js +47 -0
- package/dist/ui/format/percent.mjs +8 -0
- package/dist/ui/format/plural.d.ts +14 -0
- package/dist/ui/format/plural.js +55 -0
- package/dist/ui/format/plural.mjs +8 -0
- package/dist/ui/format/time.d.ts +12 -0
- package/dist/ui/format/time.js +49 -0
- package/dist/ui/format/time.mjs +8 -0
- package/dist/ui/index.d.ts +12 -0
- package/dist/ui/index.js +939 -0
- package/dist/ui/index.mjs +237 -0
- package/dist/ui/inputs/autocomplete/autocomplete.d.ts +11 -0
- package/dist/ui/inputs/autocomplete/autocomplete.js +49 -0
- package/dist/ui/inputs/autocomplete/autocomplete.mjs +7 -0
- package/dist/ui/inputs/autocomplete/index.d.ts +1 -0
- package/dist/ui/inputs/autocomplete/index.js +51 -0
- package/dist/ui/inputs/autocomplete/index.mjs +8 -0
- package/dist/ui/inputs/checkbox/checkbox.d.ts +6 -0
- package/dist/ui/inputs/checkbox/checkbox.js +49 -0
- package/dist/ui/inputs/checkbox/checkbox.mjs +7 -0
- package/dist/ui/inputs/checkbox/index.d.ts +1 -0
- package/dist/ui/inputs/checkbox/index.js +51 -0
- package/dist/ui/inputs/checkbox/index.mjs +8 -0
- package/dist/ui/inputs/date-picker/date-picker.d.ts +6 -0
- package/dist/ui/inputs/date-picker/date-picker.js +50 -0
- package/dist/ui/inputs/date-picker/date-picker.mjs +7 -0
- package/dist/ui/inputs/date-picker/index.d.ts +1 -0
- package/dist/ui/inputs/date-picker/index.js +52 -0
- package/dist/ui/inputs/date-picker/index.mjs +8 -0
- package/dist/ui/inputs/email/email.d.ts +5 -0
- package/dist/ui/inputs/email/email.js +57 -0
- package/dist/ui/inputs/email/email.mjs +9 -0
- package/dist/ui/inputs/email/index.d.ts +1 -0
- package/dist/ui/inputs/email/index.js +59 -0
- package/dist/ui/inputs/email/index.mjs +10 -0
- package/dist/ui/inputs/index.d.ts +9 -0
- package/dist/ui/inputs/index.js +165 -0
- package/dist/ui/inputs/index.mjs +49 -0
- package/dist/ui/inputs/input/index.d.ts +1 -0
- package/dist/ui/inputs/input/index.js +49 -0
- package/dist/ui/inputs/input/index.mjs +8 -0
- package/dist/ui/inputs/input/input.d.ts +5 -0
- package/dist/ui/inputs/input/input.js +47 -0
- package/dist/ui/inputs/input/input.mjs +7 -0
- package/dist/ui/inputs/select/index.d.ts +1 -0
- package/dist/ui/inputs/select/index.js +68 -0
- package/dist/ui/inputs/select/index.mjs +8 -0
- package/dist/ui/inputs/select/select.d.ts +13 -0
- package/dist/ui/inputs/select/select.js +66 -0
- package/dist/ui/inputs/select/select.mjs +7 -0
- package/dist/ui/inputs/switch/index.d.ts +1 -0
- package/dist/ui/inputs/switch/index.js +49 -0
- package/dist/ui/inputs/switch/index.mjs +8 -0
- package/dist/ui/inputs/switch/switch.d.ts +5 -0
- package/dist/ui/inputs/switch/switch.js +48 -0
- package/dist/ui/inputs/switch/switch.mjs +8 -0
- package/dist/ui/inputs/text/index.d.ts +1 -0
- package/dist/ui/inputs/text/index.js +59 -0
- package/dist/ui/inputs/text/index.mjs +10 -0
- package/dist/ui/inputs/text/text.d.ts +5 -0
- package/dist/ui/inputs/text/text.js +57 -0
- package/dist/ui/inputs/text/text.mjs +9 -0
- package/dist/ui/inputs/textarea/index.d.ts +1 -0
- package/dist/ui/inputs/textarea/index.js +51 -0
- package/dist/ui/inputs/textarea/index.mjs +8 -0
- package/dist/ui/inputs/textarea/textarea.d.ts +5 -0
- package/dist/ui/inputs/textarea/textarea.js +49 -0
- package/dist/ui/inputs/textarea/textarea.mjs +7 -0
- package/dist/ui/layout/container.d.ts +12 -0
- package/dist/ui/layout/container.js +65 -0
- package/dist/ui/layout/container.mjs +87 -0
- package/dist/ui/layout/flex.d.ts +112 -0
- package/dist/ui/layout/flex.js +83 -0
- package/dist/ui/layout/flex.mjs +8 -0
- package/dist/ui/layout/index.d.ts +3 -0
- package/dist/ui/layout/index.js +238 -0
- package/dist/ui/layout/index.mjs +116 -0
- package/dist/ui/layout/page/breadcrumbs.d.ts +8 -0
- package/dist/ui/layout/page/breadcrumbs.js +34 -0
- package/dist/ui/layout/page/breadcrumbs.mjs +8 -0
- package/dist/ui/layout/page/index.d.ts +3 -0
- package/dist/ui/layout/page/index.js +144 -0
- package/dist/ui/layout/page/index.mjs +44 -0
- package/dist/ui/layout/page/page-content.d.ts +64 -0
- package/dist/ui/layout/page/page-content.js +109 -0
- package/dist/ui/layout/page/page-content.mjs +26 -0
- package/dist/ui/layout/page/page-loading.d.ts +2 -0
- package/dist/ui/layout/page/page-loading.js +56 -0
- package/dist/ui/layout/page/page-loading.mjs +16 -0
- package/dist/ui/layout/page/section-loading.d.ts +2 -0
- package/dist/ui/layout/page/section-loading.js +56 -0
- package/dist/ui/layout/page/section-loading.mjs +16 -0
- package/dist/ui/navigation/index.d.ts +1 -0
- package/dist/ui/navigation/index.js +38 -0
- package/dist/ui/navigation/index.mjs +9 -0
- package/dist/ui/navigation/link/index.d.ts +1 -0
- package/dist/ui/navigation/link/index.js +38 -0
- package/dist/ui/navigation/link/index.mjs +8 -0
- package/dist/ui/navigation/link/link.d.ts +8 -0
- package/dist/ui/navigation/link/link.js +36 -0
- package/dist/ui/navigation/link/link.mjs +7 -0
- package/dist/ui/overlays/index.d.ts +1 -0
- package/dist/ui/overlays/index.js +66 -0
- package/dist/ui/overlays/index.mjs +9 -0
- package/dist/ui/overlays/modal/index.d.ts +1 -0
- package/dist/ui/overlays/modal/index.js +66 -0
- package/dist/ui/overlays/modal/index.mjs +8 -0
- package/dist/ui/overlays/modal/modal.d.ts +40 -0
- package/dist/ui/overlays/modal/modal.js +65 -0
- package/dist/ui/overlays/modal/modal.mjs +8 -0
- package/dist/ui/provider/index.d.ts +2 -0
- package/dist/ui/provider/index.js +44 -0
- package/dist/ui/provider/index.mjs +9 -0
- package/dist/ui/provider/ui-provider.d.ts +5 -0
- package/dist/ui/provider/ui-provider.js +40 -0
- package/dist/ui/provider/ui-provider.mjs +7 -0
- package/dist/ui/style/css.d.ts +2 -0
- package/dist/ui/style/css.js +35 -0
- package/dist/ui/style/css.mjs +7 -0
- package/dist/ui/style/index.d.ts +1 -0
- package/dist/ui/style/index.js +37 -0
- package/dist/ui/style/index.mjs +8 -0
- package/dist/ui/theme/index.d.ts +2 -0
- package/dist/ui/theme/index.js +40 -0
- package/dist/ui/theme/index.mjs +10 -0
- package/dist/ui/theme/theme.css +2 -0
- package/dist/ui/theme/theme.d.ts +2 -0
- package/dist/ui/theme/theme.js +239 -0
- package/dist/ui/theme/theme.mjs +7 -0
- package/dist/ui/theme/tokens/breakpoints.d.ts +9 -0
- package/dist/ui/theme/tokens/breakpoints.js +38 -0
- package/dist/ui/theme/tokens/breakpoints.mjs +7 -0
- package/dist/ui/theme/tokens/index.d.ts +1 -0
- package/dist/ui/theme/tokens/index.js +40 -0
- package/dist/ui/theme/tokens/index.mjs +8 -0
- package/package.json +75 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/ui/inputs/email/email.tsx
|
|
32
|
+
var email_exports = {};
|
|
33
|
+
__export(email_exports, {
|
|
34
|
+
Email: () => Email
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(email_exports);
|
|
37
|
+
var import_react2 = __toESM(require("react"));
|
|
38
|
+
|
|
39
|
+
// src/ui/inputs/input/input.tsx
|
|
40
|
+
var import_react = __toESM(require("react"));
|
|
41
|
+
var import_input = require("@heroui/input");
|
|
42
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
43
|
+
var Input = import_react.default.forwardRef(({ ...props }, ref) => {
|
|
44
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { ref, ...props });
|
|
45
|
+
});
|
|
46
|
+
Input.displayName = "TeachInUI.Input";
|
|
47
|
+
|
|
48
|
+
// src/ui/inputs/email/email.tsx
|
|
49
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
50
|
+
var Email = import_react2.default.forwardRef(({ ...props }, ref) => {
|
|
51
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Input, { ref, autoComplete: "email", type: "email", ...props });
|
|
52
|
+
});
|
|
53
|
+
Email.displayName = "TeachInUI.Email";
|
|
54
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
+
0 && (module.exports = {
|
|
56
|
+
Email
|
|
57
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Email, type EmailProps } from "./email";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/ui/inputs/email/index.ts
|
|
32
|
+
var email_exports = {};
|
|
33
|
+
__export(email_exports, {
|
|
34
|
+
Email: () => Email
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(email_exports);
|
|
37
|
+
|
|
38
|
+
// src/ui/inputs/email/email.tsx
|
|
39
|
+
var import_react2 = __toESM(require("react"));
|
|
40
|
+
|
|
41
|
+
// src/ui/inputs/input/input.tsx
|
|
42
|
+
var import_react = __toESM(require("react"));
|
|
43
|
+
var import_input = require("@heroui/input");
|
|
44
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
+
var Input = import_react.default.forwardRef(({ ...props }, ref) => {
|
|
46
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { ref, ...props });
|
|
47
|
+
});
|
|
48
|
+
Input.displayName = "TeachInUI.Input";
|
|
49
|
+
|
|
50
|
+
// src/ui/inputs/email/email.tsx
|
|
51
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
52
|
+
var Email = import_react2.default.forwardRef(({ ...props }, ref) => {
|
|
53
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Input, { ref, autoComplete: "email", type: "email", ...props });
|
|
54
|
+
});
|
|
55
|
+
Email.displayName = "TeachInUI.Email";
|
|
56
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
+
0 && (module.exports = {
|
|
58
|
+
Email
|
|
59
|
+
});
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/ui/inputs/index.ts
|
|
32
|
+
var inputs_exports = {};
|
|
33
|
+
__export(inputs_exports, {
|
|
34
|
+
Autocomplete: () => Autocomplete,
|
|
35
|
+
Checkbox: () => Checkbox,
|
|
36
|
+
DatePicker: () => DatePicker,
|
|
37
|
+
Email: () => Email,
|
|
38
|
+
Input: () => Input,
|
|
39
|
+
Select: () => Select,
|
|
40
|
+
Switch: () => Switch,
|
|
41
|
+
Text: () => Text,
|
|
42
|
+
Textarea: () => Textarea
|
|
43
|
+
});
|
|
44
|
+
module.exports = __toCommonJS(inputs_exports);
|
|
45
|
+
|
|
46
|
+
// src/ui/inputs/autocomplete/autocomplete.tsx
|
|
47
|
+
var import_react = __toESM(require("react"));
|
|
48
|
+
var import_autocomplete = require("@heroui/autocomplete");
|
|
49
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
|
+
var Autocomplete = import_react.default.forwardRef(
|
|
51
|
+
({ items, ...props }, ref) => {
|
|
52
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_autocomplete.Autocomplete, { ref, items, ...props, children: (item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_autocomplete.AutocompleteItem, { children: item.label }, item.key) });
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
Autocomplete.displayName = "TeachInUI.Autocomplete";
|
|
56
|
+
|
|
57
|
+
// src/ui/inputs/checkbox/checkbox.tsx
|
|
58
|
+
var import_checkbox = require("@heroui/checkbox");
|
|
59
|
+
var import_react2 = __toESM(require("react"));
|
|
60
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
61
|
+
var Checkbox = import_react2.default.forwardRef(
|
|
62
|
+
({ label, ...props }, ref) => {
|
|
63
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_checkbox.Checkbox, { ref, label, ...props, children: label });
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
Checkbox.displayName = "TeachInUI.Checkbox";
|
|
67
|
+
|
|
68
|
+
// src/ui/inputs/date-picker/date-picker.tsx
|
|
69
|
+
var import_react3 = __toESM(require("react"));
|
|
70
|
+
var import_date_picker = require("@heroui/date-picker");
|
|
71
|
+
var import_i18n = require("@react-aria/i18n");
|
|
72
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
73
|
+
var DatePicker = import_react3.default.forwardRef(
|
|
74
|
+
({ locale, ...props }, ref) => {
|
|
75
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_i18n.I18nProvider, { locale, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_date_picker.DatePicker, { ref, ...props }) });
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
DatePicker.displayName = "TeachInUI.DatePicker";
|
|
79
|
+
|
|
80
|
+
// src/ui/inputs/email/email.tsx
|
|
81
|
+
var import_react5 = __toESM(require("react"));
|
|
82
|
+
|
|
83
|
+
// src/ui/inputs/input/input.tsx
|
|
84
|
+
var import_react4 = __toESM(require("react"));
|
|
85
|
+
var import_input = require("@heroui/input");
|
|
86
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
87
|
+
var Input = import_react4.default.forwardRef(({ ...props }, ref) => {
|
|
88
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_input.Input, { ref, ...props });
|
|
89
|
+
});
|
|
90
|
+
Input.displayName = "TeachInUI.Input";
|
|
91
|
+
|
|
92
|
+
// src/ui/inputs/email/email.tsx
|
|
93
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
94
|
+
var Email = import_react5.default.forwardRef(({ ...props }, ref) => {
|
|
95
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Input, { ref, autoComplete: "email", type: "email", ...props });
|
|
96
|
+
});
|
|
97
|
+
Email.displayName = "TeachInUI.Email";
|
|
98
|
+
|
|
99
|
+
// src/ui/inputs/select/select.tsx
|
|
100
|
+
var import_react6 = __toESM(require("react"));
|
|
101
|
+
var import_select = require("@heroui/select");
|
|
102
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
103
|
+
var Select = import_react6.default.forwardRef(
|
|
104
|
+
({ value, items, onChange, ...props }, ref) => {
|
|
105
|
+
const selectedKeys = value != null ? /* @__PURE__ */ new Set([value]) : void 0;
|
|
106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
107
|
+
import_select.Select,
|
|
108
|
+
{
|
|
109
|
+
ref,
|
|
110
|
+
items,
|
|
111
|
+
placeholder: " ",
|
|
112
|
+
selectedKeys,
|
|
113
|
+
onSelectionChange: (keys) => {
|
|
114
|
+
const selected = Array.from(keys)[0];
|
|
115
|
+
if (typeof selected === "string") {
|
|
116
|
+
onChange == null ? void 0 : onChange(selected);
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
...props,
|
|
120
|
+
children: (item) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_select.SelectItem, { children: item.label }, item.key)
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
Select.displayName = "TeachInUI.Select";
|
|
126
|
+
|
|
127
|
+
// src/ui/inputs/switch/switch.tsx
|
|
128
|
+
var import_react7 = __toESM(require("react"));
|
|
129
|
+
var import_switch = require("@heroui/switch");
|
|
130
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
131
|
+
var Switch = import_react7.default.forwardRef(({ ...props }, ref) => {
|
|
132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_switch.Switch, { ref, ...props });
|
|
133
|
+
});
|
|
134
|
+
Switch.displayName = "TeachInUI.Switch";
|
|
135
|
+
|
|
136
|
+
// src/ui/inputs/text/text.tsx
|
|
137
|
+
var import_react8 = __toESM(require("react"));
|
|
138
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
139
|
+
var Text = import_react8.default.forwardRef(({ ...props }, ref) => {
|
|
140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Input, { ref, type: "text", ...props });
|
|
141
|
+
});
|
|
142
|
+
Text.displayName = "TeachInUI.Text";
|
|
143
|
+
|
|
144
|
+
// src/ui/inputs/textarea/textarea.tsx
|
|
145
|
+
var import_input5 = require("@heroui/input");
|
|
146
|
+
var import_react9 = __toESM(require("react"));
|
|
147
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
148
|
+
var Textarea = import_react9.default.forwardRef(
|
|
149
|
+
({ minRows = 4, ...props }, ref) => {
|
|
150
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_input5.Textarea, { ref, minRows, ...props });
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
Textarea.displayName = "TeachInUI.Textarea";
|
|
154
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
155
|
+
0 && (module.exports = {
|
|
156
|
+
Autocomplete,
|
|
157
|
+
Checkbox,
|
|
158
|
+
DatePicker,
|
|
159
|
+
Email,
|
|
160
|
+
Input,
|
|
161
|
+
Select,
|
|
162
|
+
Switch,
|
|
163
|
+
Text,
|
|
164
|
+
Textarea
|
|
165
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-5YMUHF45.mjs";
|
|
3
|
+
import "../../chunk-DUQFM3QS.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Text
|
|
6
|
+
} from "../../chunk-KTUGFQWJ.mjs";
|
|
7
|
+
import "../../chunk-5EWHMXCP.mjs";
|
|
8
|
+
import {
|
|
9
|
+
Switch
|
|
10
|
+
} from "../../chunk-N3EAW6UO.mjs";
|
|
11
|
+
import "../../chunk-5HK7HRTR.mjs";
|
|
12
|
+
import {
|
|
13
|
+
Textarea
|
|
14
|
+
} from "../../chunk-HJUZTISD.mjs";
|
|
15
|
+
import "../../chunk-V3KKDSQP.mjs";
|
|
16
|
+
import {
|
|
17
|
+
Email
|
|
18
|
+
} from "../../chunk-LJIVY6GU.mjs";
|
|
19
|
+
import "../../chunk-V2HNFTTX.mjs";
|
|
20
|
+
import {
|
|
21
|
+
DatePicker
|
|
22
|
+
} from "../../chunk-IAJ6G633.mjs";
|
|
23
|
+
import "../../chunk-ZRHEFEFS.mjs";
|
|
24
|
+
import {
|
|
25
|
+
Input
|
|
26
|
+
} from "../../chunk-V2G5QHZZ.mjs";
|
|
27
|
+
import "../../chunk-AQ3ISJKU.mjs";
|
|
28
|
+
import {
|
|
29
|
+
Select
|
|
30
|
+
} from "../../chunk-GQ3LBZ2Q.mjs";
|
|
31
|
+
import "../../chunk-WYJW5NNA.mjs";
|
|
32
|
+
import {
|
|
33
|
+
Autocomplete
|
|
34
|
+
} from "../../chunk-C3MURCMZ.mjs";
|
|
35
|
+
import "../../chunk-WJXIRSSW.mjs";
|
|
36
|
+
import {
|
|
37
|
+
Checkbox
|
|
38
|
+
} from "../../chunk-WTXPB253.mjs";
|
|
39
|
+
export {
|
|
40
|
+
Autocomplete,
|
|
41
|
+
Checkbox,
|
|
42
|
+
DatePicker,
|
|
43
|
+
Email,
|
|
44
|
+
Input,
|
|
45
|
+
Select,
|
|
46
|
+
Switch,
|
|
47
|
+
Text,
|
|
48
|
+
Textarea
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Input, type InputProps } from "./input";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/ui/inputs/input/index.ts
|
|
32
|
+
var input_exports = {};
|
|
33
|
+
__export(input_exports, {
|
|
34
|
+
Input: () => Input
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(input_exports);
|
|
37
|
+
|
|
38
|
+
// src/ui/inputs/input/input.tsx
|
|
39
|
+
var import_react = __toESM(require("react"));
|
|
40
|
+
var import_input = require("@heroui/input");
|
|
41
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
+
var Input = import_react.default.forwardRef(({ ...props }, ref) => {
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { ref, ...props });
|
|
44
|
+
});
|
|
45
|
+
Input.displayName = "TeachInUI.Input";
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
Input
|
|
49
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InputProps as HeroUIInputProps } from "@heroui/input";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface InputProps extends HeroUIInputProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/ui/inputs/input/input.tsx
|
|
32
|
+
var input_exports = {};
|
|
33
|
+
__export(input_exports, {
|
|
34
|
+
Input: () => Input
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(input_exports);
|
|
37
|
+
var import_react = __toESM(require("react"));
|
|
38
|
+
var import_input = require("@heroui/input");
|
|
39
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
40
|
+
var Input = import_react.default.forwardRef(({ ...props }, ref) => {
|
|
41
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { ref, ...props });
|
|
42
|
+
});
|
|
43
|
+
Input.displayName = "TeachInUI.Input";
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
Input
|
|
47
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Select, type SelectProps } from "./select";
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/ui/inputs/select/index.ts
|
|
32
|
+
var select_exports = {};
|
|
33
|
+
__export(select_exports, {
|
|
34
|
+
Select: () => Select
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(select_exports);
|
|
37
|
+
|
|
38
|
+
// src/ui/inputs/select/select.tsx
|
|
39
|
+
var import_react = __toESM(require("react"));
|
|
40
|
+
var import_select = require("@heroui/select");
|
|
41
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
+
var Select = import_react.default.forwardRef(
|
|
43
|
+
({ value, items, onChange, ...props }, ref) => {
|
|
44
|
+
const selectedKeys = value != null ? /* @__PURE__ */ new Set([value]) : void 0;
|
|
45
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
46
|
+
import_select.Select,
|
|
47
|
+
{
|
|
48
|
+
ref,
|
|
49
|
+
items,
|
|
50
|
+
placeholder: " ",
|
|
51
|
+
selectedKeys,
|
|
52
|
+
onSelectionChange: (keys) => {
|
|
53
|
+
const selected = Array.from(keys)[0];
|
|
54
|
+
if (typeof selected === "string") {
|
|
55
|
+
onChange == null ? void 0 : onChange(selected);
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
...props,
|
|
59
|
+
children: (item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectItem, { children: item.label }, item.key)
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
Select.displayName = "TeachInUI.Select";
|
|
65
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
66
|
+
0 && (module.exports = {
|
|
67
|
+
Select
|
|
68
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SelectProps as HeroUISelectProps } from "@heroui/select";
|
|
2
|
+
import React from "react";
|
|
3
|
+
interface Item {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SelectProps extends Omit<HeroUISelectProps<Item>, "value" | "items" | "onSelectionChange" | "onChange" | "children"> {
|
|
8
|
+
value?: string;
|
|
9
|
+
items?: Item[];
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/ui/inputs/select/select.tsx
|
|
32
|
+
var select_exports = {};
|
|
33
|
+
__export(select_exports, {
|
|
34
|
+
Select: () => Select
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(select_exports);
|
|
37
|
+
var import_react = __toESM(require("react"));
|
|
38
|
+
var import_select = require("@heroui/select");
|
|
39
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
40
|
+
var Select = import_react.default.forwardRef(
|
|
41
|
+
({ value, items, onChange, ...props }, ref) => {
|
|
42
|
+
const selectedKeys = value != null ? /* @__PURE__ */ new Set([value]) : void 0;
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
44
|
+
import_select.Select,
|
|
45
|
+
{
|
|
46
|
+
ref,
|
|
47
|
+
items,
|
|
48
|
+
placeholder: " ",
|
|
49
|
+
selectedKeys,
|
|
50
|
+
onSelectionChange: (keys) => {
|
|
51
|
+
const selected = Array.from(keys)[0];
|
|
52
|
+
if (typeof selected === "string") {
|
|
53
|
+
onChange == null ? void 0 : onChange(selected);
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
...props,
|
|
57
|
+
children: (item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectItem, { children: item.label }, item.key)
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
Select.displayName = "TeachInUI.Select";
|
|
63
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
64
|
+
0 && (module.exports = {
|
|
65
|
+
Select
|
|
66
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Switch, type SwitchProps } from "./switch";
|