@teach-in/react 1.0.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-M5G6RR4Q.mjs +39 -0
- 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 +609 -228
- package/dist/index.mjs +106 -86
- package/dist/ui/data/index.mjs +10 -10
- package/dist/ui/feedback/index.mjs +8 -8
- package/dist/ui/form/index.js +447 -106
- package/dist/ui/form/index.mjs +25 -15
- package/dist/ui/form/rhf/fields/autocomplete-field.mjs +16 -10
- package/dist/ui/form/rhf/fields/checkbox-field.mjs +16 -10
- package/dist/ui/form/rhf/fields/date-picker-field.mjs +16 -10
- package/dist/ui/form/rhf/fields/email-field.js +147 -10
- package/dist/ui/form/rhf/fields/email-field.mjs +17 -11
- 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 +25 -15
- package/dist/ui/form/rhf/fields/input-field.js +153 -6
- package/dist/ui/form/rhf/fields/input-field.mjs +17 -11
- package/dist/ui/form/rhf/fields/radio-field.mjs +16 -10
- 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 +17 -11
- package/dist/ui/form/rhf/fields/switch-field.mjs +16 -10
- package/dist/ui/form/rhf/fields/text-field.js +147 -10
- package/dist/ui/form/rhf/fields/text-field.mjs +17 -11
- package/dist/ui/form/rhf/fields/textarea-field.mjs +16 -10
- package/dist/ui/form/rhf/index.js +443 -102
- package/dist/ui/form/rhf/index.mjs +25 -15
- package/dist/ui/format/index.d.ts +1 -0
- package/dist/ui/format/index.js +41 -5
- package/dist/ui/format/index.mjs +15 -11
- package/dist/ui/format/uuid.d.ts +12 -0
- package/dist/ui/format/uuid.js +62 -0
- package/dist/ui/format/uuid.mjs +7 -0
- package/dist/ui/index.js +609 -228
- package/dist/ui/index.mjs +106 -86
- 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 +27 -15
- 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 +56 -48
- package/dist/ui/layout/container/index.mjs +56 -48
- package/dist/ui/layout/index.mjs +62 -54
- package/dist/ui/layout/page/index.mjs +4 -4
- package/dist/ui/layout/page/page-loading.mjs +4 -4
- package/dist/ui/layout/page/section-loading.mjs +4 -4
- package/dist/ui/navigation/index.mjs +8 -8
- package/dist/ui/overlays/index.mjs +5 -5
- package/dist/ui/provider/index.mjs +4 -4
- package/dist/ui/provider/ui-provider.mjs +4 -4
- package/dist/ui/theme/colors/common.mjs +5 -5
- package/dist/ui/theme/colors/index.mjs +8 -8
- package/dist/ui/theme/colors/semantic.mjs +6 -6
- package/dist/ui/theme/colors.mjs +8 -8
- 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-5IHVMMCK.mjs → chunk-5N3SIZHF.mjs} +0 -0
- 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/ui/index.mjs
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Container
|
|
4
4
|
} from "../chunk-773RYGHT.mjs";
|
|
5
|
+
import "../chunk-BGNMWHME.mjs";
|
|
6
|
+
import {
|
|
7
|
+
ScrollShadow
|
|
8
|
+
} from "../chunk-OZSO3C5Q.mjs";
|
|
9
|
+
import "../chunk-NDQAHQFL.mjs";
|
|
10
|
+
import {
|
|
11
|
+
Grid
|
|
12
|
+
} from "../chunk-W6NKLZ73.mjs";
|
|
5
13
|
import "../chunk-CRPCWBXA.mjs";
|
|
6
14
|
import {
|
|
7
15
|
Actions,
|
|
@@ -22,37 +30,21 @@ import {
|
|
|
22
30
|
import {
|
|
23
31
|
SectionLoading
|
|
24
32
|
} from "../chunk-25XG46X6.mjs";
|
|
25
|
-
import "../chunk-NDQAHQFL.mjs";
|
|
26
|
-
import {
|
|
27
|
-
Grid
|
|
28
|
-
} from "../chunk-W6NKLZ73.mjs";
|
|
29
|
-
import "../chunk-BGNMWHME.mjs";
|
|
30
|
-
import {
|
|
31
|
-
ScrollShadow
|
|
32
|
-
} from "../chunk-OZSO3C5Q.mjs";
|
|
33
33
|
import "../chunk-N7GOJBLM.mjs";
|
|
34
34
|
import {
|
|
35
35
|
Accordion,
|
|
36
36
|
AccordionItem
|
|
37
37
|
} from "../chunk-QUMDPADZ.mjs";
|
|
38
|
-
import "../chunk-NVLF7L4R.mjs";
|
|
39
|
-
import {
|
|
40
|
-
Divider
|
|
41
|
-
} from "../chunk-VWGY6KWP.mjs";
|
|
42
38
|
import "../chunk-JUIVZCH7.mjs";
|
|
43
39
|
import {
|
|
44
40
|
Flex
|
|
45
41
|
} from "../chunk-M5F723W7.mjs";
|
|
46
|
-
import "../chunk-
|
|
47
|
-
import "../chunk-25ISU6R3.mjs";
|
|
42
|
+
import "../chunk-NVLF7L4R.mjs";
|
|
48
43
|
import {
|
|
49
|
-
|
|
50
|
-
} from "../chunk-
|
|
44
|
+
Divider
|
|
45
|
+
} from "../chunk-VWGY6KWP.mjs";
|
|
46
|
+
import "../chunk-J3GK2CGQ.mjs";
|
|
51
47
|
import "../chunk-FKHR6G3R.mjs";
|
|
52
|
-
import {
|
|
53
|
-
BreadcrumbItem,
|
|
54
|
-
Breadcrumbs
|
|
55
|
-
} from "../chunk-TSD6GU35.mjs";
|
|
56
48
|
import "../chunk-AT6DX4DN.mjs";
|
|
57
49
|
import {
|
|
58
50
|
Navbar,
|
|
@@ -63,10 +55,22 @@ import {
|
|
|
63
55
|
NavbarMenuItem,
|
|
64
56
|
NavbarMenuToggle
|
|
65
57
|
} from "../chunk-SAYYLTIE.mjs";
|
|
58
|
+
import "../chunk-25ISU6R3.mjs";
|
|
59
|
+
import {
|
|
60
|
+
Link
|
|
61
|
+
} from "../chunk-7T3JFARO.mjs";
|
|
66
62
|
import "../chunk-MJTSZFLC.mjs";
|
|
67
63
|
import {
|
|
68
64
|
Tabs
|
|
69
65
|
} from "../chunk-ZSYIKEXW.mjs";
|
|
66
|
+
import {
|
|
67
|
+
BreadcrumbItem,
|
|
68
|
+
Breadcrumbs
|
|
69
|
+
} from "../chunk-TSD6GU35.mjs";
|
|
70
|
+
import "../chunk-3N5UZODS.mjs";
|
|
71
|
+
import {
|
|
72
|
+
UIProvider
|
|
73
|
+
} from "../chunk-FQUYFYMS.mjs";
|
|
70
74
|
import "../chunk-Q6XJI7Q2.mjs";
|
|
71
75
|
import {
|
|
72
76
|
cn
|
|
@@ -88,28 +92,32 @@ import {
|
|
|
88
92
|
} from "../chunk-NBFOX367.mjs";
|
|
89
93
|
import {
|
|
90
94
|
theme
|
|
91
|
-
} from "../chunk-
|
|
95
|
+
} from "../chunk-2ASQXBDD.mjs";
|
|
92
96
|
import "../chunk-JWMPI5AZ.mjs";
|
|
93
|
-
import "../chunk-
|
|
97
|
+
import "../chunk-QCLLPJMB.mjs";
|
|
98
|
+
import "../chunk-2CEZXLZR.mjs";
|
|
94
99
|
import "../chunk-EJQH6CYW.mjs";
|
|
95
|
-
import "../chunk-
|
|
96
|
-
import "../chunk-STVN4B47.mjs";
|
|
97
|
-
import "../chunk-XYQVL4EX.mjs";
|
|
98
|
-
import "../chunk-HOVAPYGJ.mjs";
|
|
100
|
+
import "../chunk-IXPMUODA.mjs";
|
|
99
101
|
import "../chunk-3LOCA2SP.mjs";
|
|
100
|
-
import "../chunk-OW6U64MG.mjs";
|
|
101
|
-
import "../chunk-LUERGYYZ.mjs";
|
|
102
102
|
import "../chunk-YBQFG6QJ.mjs";
|
|
103
103
|
import "../chunk-XKX5LFH7.mjs";
|
|
104
104
|
import "../chunk-SLB2JE3N.mjs";
|
|
105
|
+
import "../chunk-XYQVL4EX.mjs";
|
|
106
|
+
import "../chunk-HOVAPYGJ.mjs";
|
|
105
107
|
import "../chunk-2OPPNAW2.mjs";
|
|
108
|
+
import "../chunk-OW6U64MG.mjs";
|
|
109
|
+
import "../chunk-LUERGYYZ.mjs";
|
|
106
110
|
import "../chunk-VIPLRFPR.mjs";
|
|
107
111
|
import "../chunk-UON5ACST.mjs";
|
|
112
|
+
import "../chunk-ICRO6HS3.mjs";
|
|
113
|
+
import "../chunk-I5AMV7H7.mjs";
|
|
114
|
+
import {
|
|
115
|
+
Modal
|
|
116
|
+
} from "../chunk-T57H3CGO.mjs";
|
|
108
117
|
import "../chunk-UT5RUCAT.mjs";
|
|
109
118
|
import {
|
|
110
119
|
Popover
|
|
111
120
|
} from "../chunk-PSK7I7V4.mjs";
|
|
112
|
-
import "../chunk-ICRO6HS3.mjs";
|
|
113
121
|
import {
|
|
114
122
|
Dropdown,
|
|
115
123
|
DropdownItem,
|
|
@@ -117,32 +125,27 @@ import {
|
|
|
117
125
|
DropdownSection,
|
|
118
126
|
DropdownTrigger
|
|
119
127
|
} from "../chunk-YNCISHAU.mjs";
|
|
120
|
-
import "../chunk-I5AMV7H7.mjs";
|
|
121
|
-
import {
|
|
122
|
-
Modal
|
|
123
|
-
} from "../chunk-T57H3CGO.mjs";
|
|
124
|
-
import "../chunk-3N5UZODS.mjs";
|
|
125
|
-
import {
|
|
126
|
-
UIProvider
|
|
127
|
-
} from "../chunk-FQUYFYMS.mjs";
|
|
128
128
|
import "../chunk-VOG5HJID.mjs";
|
|
129
129
|
import "../chunk-FXXWSYJA.mjs";
|
|
130
|
-
import "../chunk-
|
|
130
|
+
import "../chunk-PTCNYQVY.mjs";
|
|
131
131
|
import {
|
|
132
132
|
InputField
|
|
133
|
-
} from "../chunk-
|
|
133
|
+
} from "../chunk-5FFWQB7D.mjs";
|
|
134
134
|
import {
|
|
135
135
|
RadioField
|
|
136
136
|
} from "../chunk-W2A6C27Y.mjs";
|
|
137
|
+
import {
|
|
138
|
+
SearchField
|
|
139
|
+
} from "../chunk-CUEG2BFV.mjs";
|
|
137
140
|
import {
|
|
138
141
|
SelectField
|
|
139
|
-
} from "../chunk-
|
|
142
|
+
} from "../chunk-CKJ5U5Q4.mjs";
|
|
140
143
|
import {
|
|
141
144
|
SwitchField
|
|
142
145
|
} from "../chunk-EC3NSPHR.mjs";
|
|
143
146
|
import {
|
|
144
147
|
TextField
|
|
145
|
-
} from "../chunk-
|
|
148
|
+
} from "../chunk-IU2JYI7W.mjs";
|
|
146
149
|
import {
|
|
147
150
|
TextareaField
|
|
148
151
|
} from "../chunk-V4HKGJYK.mjs";
|
|
@@ -157,12 +160,12 @@ import {
|
|
|
157
160
|
} from "../chunk-7GHK5XYK.mjs";
|
|
158
161
|
import {
|
|
159
162
|
EmailField
|
|
160
|
-
} from "../chunk-
|
|
161
|
-
import "../chunk-
|
|
163
|
+
} from "../chunk-R46SWVWL.mjs";
|
|
164
|
+
import "../chunk-UQAG7TKJ.mjs";
|
|
162
165
|
import "../chunk-DUQFM3QS.mjs";
|
|
163
166
|
import {
|
|
164
167
|
Text
|
|
165
|
-
} from "../chunk-
|
|
168
|
+
} from "../chunk-KTWHCUYV.mjs";
|
|
166
169
|
import "../chunk-LLP2PTPK.mjs";
|
|
167
170
|
import {
|
|
168
171
|
FavoriteSwitch
|
|
@@ -177,31 +180,38 @@ import {
|
|
|
177
180
|
import "../chunk-V3KKDSQP.mjs";
|
|
178
181
|
import {
|
|
179
182
|
Email
|
|
180
|
-
} from "../chunk-
|
|
181
|
-
import "../chunk-ZRHEFEFS.mjs";
|
|
182
|
-
import {
|
|
183
|
-
Input
|
|
184
|
-
} from "../chunk-V2G5QHZZ.mjs";
|
|
183
|
+
} from "../chunk-46SKVFMZ.mjs";
|
|
185
184
|
import "../chunk-AQ3ISJKU.mjs";
|
|
186
185
|
import {
|
|
187
186
|
Select
|
|
188
|
-
} from "../chunk-
|
|
187
|
+
} from "../chunk-VXYV37IM.mjs";
|
|
188
|
+
import "../chunk-2UHA3DYG.mjs";
|
|
189
|
+
import "../chunk-5RNCFTW5.mjs";
|
|
190
|
+
import {
|
|
191
|
+
Search
|
|
192
|
+
} from "../chunk-SEJXJZSK.mjs";
|
|
193
|
+
import "../chunk-C2VWADF5.mjs";
|
|
194
|
+
import "../chunk-UUKS7JYX.mjs";
|
|
195
|
+
import "../chunk-V2HNFTTX.mjs";
|
|
196
|
+
import {
|
|
197
|
+
DatePicker
|
|
198
|
+
} from "../chunk-IAJ6G633.mjs";
|
|
189
199
|
import "../chunk-RRA7GWP2.mjs";
|
|
200
|
+
import {
|
|
201
|
+
RadioGroup
|
|
202
|
+
} from "../chunk-NOXFF2KJ.mjs";
|
|
190
203
|
import {
|
|
191
204
|
Radio
|
|
192
205
|
} from "../chunk-2SNKT7I4.mjs";
|
|
206
|
+
import "../chunk-ZRHEFEFS.mjs";
|
|
193
207
|
import {
|
|
194
|
-
|
|
195
|
-
} from "../chunk-
|
|
208
|
+
Input
|
|
209
|
+
} from "../chunk-MCQGBAUS.mjs";
|
|
210
|
+
import "../chunk-NSU66J5E.mjs";
|
|
196
211
|
import "../chunk-WYJW5NNA.mjs";
|
|
197
212
|
import {
|
|
198
213
|
Autocomplete
|
|
199
214
|
} from "../chunk-C3MURCMZ.mjs";
|
|
200
|
-
import "../chunk-V2HNFTTX.mjs";
|
|
201
|
-
import {
|
|
202
|
-
DatePicker
|
|
203
|
-
} from "../chunk-IAJ6G633.mjs";
|
|
204
|
-
import "../chunk-UUKS7JYX.mjs";
|
|
205
215
|
import {
|
|
206
216
|
CheckboxGroup
|
|
207
217
|
} from "../chunk-C4PCTOGM.mjs";
|
|
@@ -209,12 +219,24 @@ import {
|
|
|
209
219
|
Checkbox
|
|
210
220
|
} from "../chunk-N3QOXWJI.mjs";
|
|
211
221
|
import {
|
|
212
|
-
|
|
213
|
-
} from "../chunk-
|
|
214
|
-
import "../chunk-
|
|
222
|
+
ClearButton
|
|
223
|
+
} from "../chunk-TUIN5YJW.mjs";
|
|
224
|
+
import "../chunk-5N3SIZHF.mjs";
|
|
225
|
+
import {
|
|
226
|
+
Percent
|
|
227
|
+
} from "../chunk-CXAZBWS4.mjs";
|
|
228
|
+
import {
|
|
229
|
+
Plural
|
|
230
|
+
} from "../chunk-UHLC7GOU.mjs";
|
|
215
231
|
import {
|
|
216
232
|
Time
|
|
217
233
|
} from "../chunk-3ZTXXJSO.mjs";
|
|
234
|
+
import {
|
|
235
|
+
Uuid
|
|
236
|
+
} from "../chunk-M5G6RR4Q.mjs";
|
|
237
|
+
import {
|
|
238
|
+
Boolean
|
|
239
|
+
} from "../chunk-26RHRVH2.mjs";
|
|
218
240
|
import {
|
|
219
241
|
Currency
|
|
220
242
|
} from "../chunk-LN7WH3OB.mjs";
|
|
@@ -230,12 +252,6 @@ import {
|
|
|
230
252
|
import {
|
|
231
253
|
Number
|
|
232
254
|
} from "../chunk-NZI5NBXF.mjs";
|
|
233
|
-
import {
|
|
234
|
-
Percent
|
|
235
|
-
} from "../chunk-CXAZBWS4.mjs";
|
|
236
|
-
import {
|
|
237
|
-
Plural
|
|
238
|
-
} from "../chunk-UHLC7GOU.mjs";
|
|
239
255
|
import "../chunk-HZ5YAOU6.mjs";
|
|
240
256
|
import "../chunk-5UKTT75Y.mjs";
|
|
241
257
|
import {
|
|
@@ -246,6 +262,16 @@ import "../chunk-KH4D2C2T.mjs";
|
|
|
246
262
|
import {
|
|
247
263
|
Pagination
|
|
248
264
|
} from "../chunk-O5T4GUJH.mjs";
|
|
265
|
+
import "../chunk-54FA62HL.mjs";
|
|
266
|
+
import {
|
|
267
|
+
Table,
|
|
268
|
+
TableBody,
|
|
269
|
+
TableCell,
|
|
270
|
+
TableColumn,
|
|
271
|
+
TableHeader,
|
|
272
|
+
TableRow,
|
|
273
|
+
getKeyValue
|
|
274
|
+
} from "../chunk-PKZZEODR.mjs";
|
|
249
275
|
import "../chunk-CTKWGSNJ.mjs";
|
|
250
276
|
import {
|
|
251
277
|
User
|
|
@@ -258,17 +284,15 @@ import "../chunk-DRZAPJZH.mjs";
|
|
|
258
284
|
import {
|
|
259
285
|
Image
|
|
260
286
|
} from "../chunk-4N3FFVKQ.mjs";
|
|
261
|
-
import "../chunk-54FA62HL.mjs";
|
|
262
|
-
import {
|
|
263
|
-
Table,
|
|
264
|
-
TableBody,
|
|
265
|
-
TableCell,
|
|
266
|
-
TableColumn,
|
|
267
|
-
TableHeader,
|
|
268
|
-
TableRow,
|
|
269
|
-
getKeyValue
|
|
270
|
-
} from "../chunk-PKZZEODR.mjs";
|
|
271
287
|
import "../chunk-AR4IYKG5.mjs";
|
|
288
|
+
import "../chunk-3BST3PYD.mjs";
|
|
289
|
+
import {
|
|
290
|
+
Tooltip
|
|
291
|
+
} from "../chunk-TJBXXTYS.mjs";
|
|
292
|
+
import "../chunk-V77JZXH7.mjs";
|
|
293
|
+
import {
|
|
294
|
+
Alert
|
|
295
|
+
} from "../chunk-TIFF5WZA.mjs";
|
|
272
296
|
import "../chunk-U4FAPNVK.mjs";
|
|
273
297
|
import {
|
|
274
298
|
CircularProgress
|
|
@@ -290,14 +314,6 @@ import {
|
|
|
290
314
|
isToastClosing,
|
|
291
315
|
useToast
|
|
292
316
|
} from "../chunk-CA2EAK5M.mjs";
|
|
293
|
-
import "../chunk-3BST3PYD.mjs";
|
|
294
|
-
import {
|
|
295
|
-
Tooltip
|
|
296
|
-
} from "../chunk-TJBXXTYS.mjs";
|
|
297
|
-
import "../chunk-V77JZXH7.mjs";
|
|
298
|
-
import {
|
|
299
|
-
Alert
|
|
300
|
-
} from "../chunk-TIFF5WZA.mjs";
|
|
301
317
|
import "../chunk-K3WTHFIG.mjs";
|
|
302
318
|
import {
|
|
303
319
|
Chip
|
|
@@ -305,8 +321,8 @@ import {
|
|
|
305
321
|
import "../chunk-Q2ILWL7L.mjs";
|
|
306
322
|
import "../chunk-7BTEKEON.mjs";
|
|
307
323
|
import {
|
|
308
|
-
|
|
309
|
-
} from "../chunk-
|
|
324
|
+
Form
|
|
325
|
+
} from "../chunk-A3AAC7PF.mjs";
|
|
310
326
|
export {
|
|
311
327
|
Accordion,
|
|
312
328
|
AccordionItem,
|
|
@@ -326,6 +342,7 @@ export {
|
|
|
326
342
|
CheckboxGroup,
|
|
327
343
|
Chip,
|
|
328
344
|
CircularProgress,
|
|
345
|
+
ClearButton,
|
|
329
346
|
Container,
|
|
330
347
|
DatePicker,
|
|
331
348
|
DatePickerField,
|
|
@@ -349,6 +366,7 @@ export {
|
|
|
349
366
|
Percent as FormatPercent,
|
|
350
367
|
Plural as FormatPlural,
|
|
351
368
|
Time as FormatTime,
|
|
369
|
+
Uuid as FormatUUID,
|
|
352
370
|
Grid,
|
|
353
371
|
Header,
|
|
354
372
|
Image,
|
|
@@ -373,6 +391,8 @@ export {
|
|
|
373
391
|
RadioGroup,
|
|
374
392
|
Root,
|
|
375
393
|
ScrollShadow,
|
|
394
|
+
Search,
|
|
395
|
+
SearchField,
|
|
376
396
|
Section,
|
|
377
397
|
SectionActions,
|
|
378
398
|
SectionHeader,
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
"use client";
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __export = (target, all) => {
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from))
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
|
+
mod
|
|
29
|
+
));
|
|
30
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
|
+
|
|
32
|
+
// src/ui/inputs/clear-button.tsx
|
|
33
|
+
var clear_button_exports = {};
|
|
34
|
+
__export(clear_button_exports, {
|
|
35
|
+
ClearButton: () => ClearButton
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(clear_button_exports);
|
|
38
|
+
var import_react = __toESM(require("react"));
|
|
39
|
+
var import_button = require("@heroui/button");
|
|
40
|
+
var import_lucide_react = require("lucide-react");
|
|
41
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
+
var ClearButton = import_react.default.forwardRef(
|
|
43
|
+
({ onClear }, ref) => {
|
|
44
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
45
|
+
import_button.Button,
|
|
46
|
+
{
|
|
47
|
+
ref,
|
|
48
|
+
isIconOnly: true,
|
|
49
|
+
"aria-label": "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",
|
|
50
|
+
as: "span",
|
|
51
|
+
className: "opacity-0 transition-opacity group-hover:opacity-100",
|
|
52
|
+
color: "default",
|
|
53
|
+
radius: "full",
|
|
54
|
+
size: "sm",
|
|
55
|
+
tabIndex: 0,
|
|
56
|
+
variant: "light",
|
|
57
|
+
onPress: onClear,
|
|
58
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.XIcon, { className: "size-4 text-default-500" })
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
ClearButton.displayName = "TeachInUI.ClearButton";
|
|
64
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
65
|
+
0 && (module.exports = {
|
|
66
|
+
ClearButton
|
|
67
|
+
});
|
|
@@ -34,21 +34,158 @@ __export(email_exports, {
|
|
|
34
34
|
Email: () => Email
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(email_exports);
|
|
37
|
-
var
|
|
37
|
+
var import_react4 = __toESM(require("react"));
|
|
38
38
|
|
|
39
39
|
// src/ui/inputs/input/input.tsx
|
|
40
|
-
var
|
|
40
|
+
var import_react3 = __toESM(require("react"));
|
|
41
41
|
var import_input = require("@heroui/input");
|
|
42
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
43
|
+
|
|
44
|
+
// src/ui/inputs/clear-button.tsx
|
|
45
|
+
var import_react = __toESM(require("react"));
|
|
46
|
+
var import_button = require("@heroui/button");
|
|
47
|
+
var import_lucide_react = require("lucide-react");
|
|
42
48
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
43
|
-
var
|
|
44
|
-
|
|
49
|
+
var ClearButton = import_react.default.forwardRef(
|
|
50
|
+
({ onClear }, ref) => {
|
|
51
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
52
|
+
import_button.Button,
|
|
53
|
+
{
|
|
54
|
+
ref,
|
|
55
|
+
isIconOnly: true,
|
|
56
|
+
"aria-label": "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",
|
|
57
|
+
as: "span",
|
|
58
|
+
className: "opacity-0 transition-opacity group-hover:opacity-100",
|
|
59
|
+
color: "default",
|
|
60
|
+
radius: "full",
|
|
61
|
+
size: "sm",
|
|
62
|
+
tabIndex: 0,
|
|
63
|
+
variant: "light",
|
|
64
|
+
onPress: onClear,
|
|
65
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.XIcon, { className: "size-4 text-default-500" })
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
ClearButton.displayName = "TeachInUI.ClearButton";
|
|
71
|
+
|
|
72
|
+
// src/ui/inputs/input/use-input.ts
|
|
73
|
+
var import_react2 = require("react");
|
|
74
|
+
function useInput({
|
|
75
|
+
value,
|
|
76
|
+
defaultValue,
|
|
77
|
+
onValueChange,
|
|
78
|
+
onClear,
|
|
79
|
+
isReadOnly,
|
|
80
|
+
isClearable = true,
|
|
81
|
+
ref
|
|
82
|
+
}) {
|
|
83
|
+
const inputRef = (0, import_react2.useRef)(null);
|
|
84
|
+
const [internalValue, setInternalValue] = (0, import_react2.useState)(defaultValue != null ? defaultValue : "");
|
|
85
|
+
const isControlled = value !== void 0;
|
|
86
|
+
const currentValue = isControlled ? value : internalValue;
|
|
87
|
+
const hasValue = String(currentValue).length > 0;
|
|
88
|
+
const handleValueChange = (0, import_react2.useCallback)(
|
|
89
|
+
(newValue) => {
|
|
90
|
+
if (!isControlled) {
|
|
91
|
+
setInternalValue(newValue);
|
|
92
|
+
}
|
|
93
|
+
onValueChange == null ? void 0 : onValueChange(newValue);
|
|
94
|
+
},
|
|
95
|
+
[isControlled, onValueChange]
|
|
96
|
+
);
|
|
97
|
+
const handleClear = (0, import_react2.useCallback)(() => {
|
|
98
|
+
var _a;
|
|
99
|
+
onClear == null ? void 0 : onClear();
|
|
100
|
+
handleValueChange("");
|
|
101
|
+
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
102
|
+
}, [onClear, handleValueChange]);
|
|
103
|
+
const mergedRef = (0, import_react2.useCallback)(
|
|
104
|
+
(node) => {
|
|
105
|
+
inputRef.current = node;
|
|
106
|
+
if (typeof ref === "function") {
|
|
107
|
+
ref(node);
|
|
108
|
+
} else if (ref) {
|
|
109
|
+
ref.current = node;
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
[ref]
|
|
113
|
+
);
|
|
114
|
+
const showClearButton = hasValue && !isReadOnly && isClearable;
|
|
115
|
+
return {
|
|
116
|
+
inputRef,
|
|
117
|
+
currentValue,
|
|
118
|
+
hasValue,
|
|
119
|
+
handleValueChange,
|
|
120
|
+
handleClear,
|
|
121
|
+
mergedRef,
|
|
122
|
+
showClearButton
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// src/ui/inputs/input/input.tsx
|
|
127
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
128
|
+
var inputWrapperVariants = (0, import_tailwind_variants.tv)({
|
|
129
|
+
variants: {
|
|
130
|
+
variant: {
|
|
131
|
+
flat: "",
|
|
132
|
+
underlined: "",
|
|
133
|
+
bordered: "border-1",
|
|
134
|
+
faded: "border-1"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
45
137
|
});
|
|
138
|
+
var Input = import_react3.default.forwardRef(
|
|
139
|
+
({
|
|
140
|
+
value,
|
|
141
|
+
defaultValue,
|
|
142
|
+
onClear,
|
|
143
|
+
onValueChange,
|
|
144
|
+
variant,
|
|
145
|
+
classNames,
|
|
146
|
+
endContent,
|
|
147
|
+
isReadOnly,
|
|
148
|
+
isClearable,
|
|
149
|
+
...props
|
|
150
|
+
}, ref) => {
|
|
151
|
+
const { currentValue, handleValueChange, handleClear, mergedRef, showClearButton } = useInput({
|
|
152
|
+
value,
|
|
153
|
+
defaultValue,
|
|
154
|
+
onValueChange,
|
|
155
|
+
onClear,
|
|
156
|
+
isReadOnly,
|
|
157
|
+
isClearable,
|
|
158
|
+
ref
|
|
159
|
+
});
|
|
160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
161
|
+
import_input.Input,
|
|
162
|
+
{
|
|
163
|
+
ref: mergedRef,
|
|
164
|
+
classNames: {
|
|
165
|
+
...classNames,
|
|
166
|
+
inputWrapper: inputWrapperVariants({ variant }),
|
|
167
|
+
innerWrapper: "group"
|
|
168
|
+
},
|
|
169
|
+
defaultValue,
|
|
170
|
+
endContent: (endContent || showClearButton) && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
171
|
+
endContent,
|
|
172
|
+
showClearButton && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ClearButton, { onClear: handleClear })
|
|
173
|
+
] }),
|
|
174
|
+
isReadOnly,
|
|
175
|
+
value: currentValue,
|
|
176
|
+
variant,
|
|
177
|
+
onValueChange: handleValueChange,
|
|
178
|
+
...props
|
|
179
|
+
}
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
);
|
|
46
183
|
Input.displayName = "TeachInUI.Input";
|
|
47
184
|
|
|
48
185
|
// src/ui/inputs/email/email.tsx
|
|
49
|
-
var
|
|
50
|
-
var Email =
|
|
51
|
-
return /* @__PURE__ */ (0,
|
|
186
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
187
|
+
var Email = import_react4.default.forwardRef(({ ...props }, ref) => {
|
|
188
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Input, { ref, autoComplete: "email", type: "email", ...props });
|
|
52
189
|
});
|
|
53
190
|
Email.displayName = "TeachInUI.Email";
|
|
54
191
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Email
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-46SKVFMZ.mjs";
|
|
5
5
|
import "../../../chunk-ZRHEFEFS.mjs";
|
|
6
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-MCQGBAUS.mjs";
|
|
7
|
+
import "../../../chunk-NSU66J5E.mjs";
|
|
8
|
+
import "../../../chunk-TUIN5YJW.mjs";
|
|
7
9
|
export {
|
|
8
10
|
Email
|
|
9
11
|
};
|