@deepnoid/ui 0.1.25 → 0.1.27
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/.turbo/turbo-build.log +149 -145
- package/dist/chunk-6TIIBU7J.mjs +35 -0
- package/dist/{chunk-IVK24VIL.mjs → chunk-C7OF5HJF.mjs} +1 -1
- package/dist/{chunk-MSAULFDB.mjs → chunk-E4UUZOR4.mjs} +16 -16
- package/dist/{chunk-P5PJTJLY.mjs → chunk-GRA2LU42.mjs} +18 -18
- package/dist/{chunk-Y27H2AMV.mjs → chunk-IRAHS4WS.mjs} +2 -2
- package/dist/chunk-PX4PFLJ3.mjs +178 -0
- package/dist/{chunk-EAK5DVWA.mjs → chunk-UNH3BCGN.mjs} +8 -1
- package/dist/{chunk-6EU5GUL5.mjs → chunk-XA6PVFTW.mjs} +5 -5
- package/dist/components/breadcrumb/breadcrumb.js +2 -2
- package/dist/components/breadcrumb/breadcrumb.mjs +1 -1
- package/dist/components/breadcrumb/index.js +2 -2
- package/dist/components/breadcrumb/index.mjs +1 -1
- package/dist/components/input/index.js +18 -18
- package/dist/components/input/index.mjs +1 -1
- package/dist/components/input/input.d.mts +44 -44
- package/dist/components/input/input.d.ts +44 -44
- package/dist/components/input/input.js +18 -18
- package/dist/components/input/input.mjs +1 -1
- package/dist/components/pagination/index.js +18 -18
- package/dist/components/pagination/index.mjs +2 -2
- package/dist/components/pagination/pagination.js +18 -18
- package/dist/components/pagination/pagination.mjs +2 -2
- package/dist/components/select/index.js +16 -16
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/select/select.d.mts +38 -38
- package/dist/components/select/select.d.ts +38 -38
- package/dist/components/select/select.js +16 -16
- package/dist/components/select/select.mjs +1 -1
- package/dist/components/table/definition-table.d.mts +51 -0
- package/dist/components/table/definition-table.d.ts +51 -0
- package/dist/components/table/definition-table.js +351 -0
- package/dist/components/table/definition-table.mjs +9 -0
- package/dist/components/table/form-table.d.mts +1 -1
- package/dist/components/table/form-table.d.ts +1 -1
- package/dist/components/table/form-table.mjs +43 -3
- package/dist/components/table/index.d.mts +1 -1
- package/dist/components/table/index.d.ts +1 -1
- package/dist/components/table/index.js +40 -47
- package/dist/components/table/index.mjs +9 -9
- package/dist/components/table/table-head.js +8 -1
- package/dist/components/table/table-head.mjs +1 -1
- package/dist/components/table/table.js +26 -19
- package/dist/components/table/table.mjs +5 -5
- package/dist/components/toast/index.mjs +2 -2
- package/dist/components/toast/use-toast.mjs +2 -2
- package/dist/components/tree/index.d.mts +1 -0
- package/dist/components/tree/index.d.ts +1 -0
- package/dist/components/tree/index.js +138 -60
- package/dist/components/tree/index.mjs +1 -1
- package/dist/components/tree/tree.d.mts +17 -10
- package/dist/components/tree/tree.d.ts +17 -10
- package/dist/components/tree/tree.js +143 -60
- package/dist/components/tree/tree.mjs +3 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +196 -125
- package/dist/index.mjs +31 -31
- package/package.json +1 -1
- package/dist/chunk-ICZTNO4V.mjs +0 -49
- package/dist/chunk-K4QY2F5J.mjs +0 -99
- package/dist/{chunk-UAHTRCKG.mjs → chunk-YBDA3WQP.mjs} +3 -3
|
@@ -5,8 +5,8 @@ import { Size, SlotsToClasses } from '../../utils/types.mjs';
|
|
|
5
5
|
|
|
6
6
|
interface Props extends Omit<ComponentProps<"input">, "size"> {
|
|
7
7
|
label?: string;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
helperMessage?: string;
|
|
9
|
+
errorMessage?: string;
|
|
10
10
|
startContent?: ReactElement<{
|
|
11
11
|
className?: string;
|
|
12
12
|
size?: Size;
|
|
@@ -38,11 +38,11 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
38
38
|
color: {
|
|
39
39
|
primary: {
|
|
40
40
|
content: string[];
|
|
41
|
-
|
|
41
|
+
helperMessage: string[];
|
|
42
42
|
};
|
|
43
43
|
secondary: {
|
|
44
44
|
content: string[];
|
|
45
|
-
|
|
45
|
+
helperMessage: string[];
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
size: {
|
|
@@ -51,32 +51,32 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
51
51
|
label: string[];
|
|
52
52
|
innerWrapper: string[];
|
|
53
53
|
inputWrapper: string[];
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
helperMessage: string[];
|
|
55
|
+
errorMessage: string[];
|
|
56
56
|
};
|
|
57
57
|
md: {
|
|
58
58
|
base: string[];
|
|
59
59
|
label: string[];
|
|
60
60
|
innerWrapper: string[];
|
|
61
61
|
inputWrapper: string[];
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
helperMessage: string[];
|
|
63
|
+
errorMessage: string[];
|
|
64
64
|
};
|
|
65
65
|
lg: {
|
|
66
66
|
base: string[];
|
|
67
67
|
label: string[];
|
|
68
68
|
innerWrapper: string[];
|
|
69
69
|
inputWrapper: string[];
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
helperMessage: string[];
|
|
71
|
+
errorMessage: string[];
|
|
72
72
|
};
|
|
73
73
|
xl: {
|
|
74
74
|
base: string[];
|
|
75
75
|
label: string[];
|
|
76
76
|
innerWrapper: string[];
|
|
77
77
|
inputWrapper: string[];
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
helperMessage: string[];
|
|
79
|
+
errorMessage: string[];
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
82
|
direction: {
|
|
@@ -95,8 +95,8 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
95
95
|
inputWrapper: string[];
|
|
96
96
|
input: string[];
|
|
97
97
|
content: string[];
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
helperMessage: string[];
|
|
99
|
+
errorMessage: string[];
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
}, {
|
|
@@ -108,8 +108,8 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
108
108
|
inputWrapper: string[];
|
|
109
109
|
input: string[];
|
|
110
110
|
content: string[];
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
helperMessage: string[];
|
|
112
|
+
errorMessage: string[];
|
|
113
113
|
readonly: string[];
|
|
114
114
|
}, undefined, {
|
|
115
115
|
variant: {
|
|
@@ -129,11 +129,11 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
129
129
|
color: {
|
|
130
130
|
primary: {
|
|
131
131
|
content: string[];
|
|
132
|
-
|
|
132
|
+
helperMessage: string[];
|
|
133
133
|
};
|
|
134
134
|
secondary: {
|
|
135
135
|
content: string[];
|
|
136
|
-
|
|
136
|
+
helperMessage: string[];
|
|
137
137
|
};
|
|
138
138
|
};
|
|
139
139
|
size: {
|
|
@@ -142,32 +142,32 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
142
142
|
label: string[];
|
|
143
143
|
innerWrapper: string[];
|
|
144
144
|
inputWrapper: string[];
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
helperMessage: string[];
|
|
146
|
+
errorMessage: string[];
|
|
147
147
|
};
|
|
148
148
|
md: {
|
|
149
149
|
base: string[];
|
|
150
150
|
label: string[];
|
|
151
151
|
innerWrapper: string[];
|
|
152
152
|
inputWrapper: string[];
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
helperMessage: string[];
|
|
154
|
+
errorMessage: string[];
|
|
155
155
|
};
|
|
156
156
|
lg: {
|
|
157
157
|
base: string[];
|
|
158
158
|
label: string[];
|
|
159
159
|
innerWrapper: string[];
|
|
160
160
|
inputWrapper: string[];
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
helperMessage: string[];
|
|
162
|
+
errorMessage: string[];
|
|
163
163
|
};
|
|
164
164
|
xl: {
|
|
165
165
|
base: string[];
|
|
166
166
|
label: string[];
|
|
167
167
|
innerWrapper: string[];
|
|
168
168
|
inputWrapper: string[];
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
helperMessage: string[];
|
|
170
|
+
errorMessage: string[];
|
|
171
171
|
};
|
|
172
172
|
};
|
|
173
173
|
direction: {
|
|
@@ -186,8 +186,8 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
186
186
|
inputWrapper: string[];
|
|
187
187
|
input: string[];
|
|
188
188
|
content: string[];
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
helperMessage: string[];
|
|
190
|
+
errorMessage: string[];
|
|
191
191
|
};
|
|
192
192
|
};
|
|
193
193
|
}, {
|
|
@@ -199,8 +199,8 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
199
199
|
inputWrapper: string[];
|
|
200
200
|
input: string[];
|
|
201
201
|
content: string[];
|
|
202
|
-
|
|
203
|
-
|
|
202
|
+
helperMessage: string[];
|
|
203
|
+
errorMessage: string[];
|
|
204
204
|
readonly: string[];
|
|
205
205
|
}, tailwind_variants.TVReturnType<{
|
|
206
206
|
variant: {
|
|
@@ -220,11 +220,11 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
220
220
|
color: {
|
|
221
221
|
primary: {
|
|
222
222
|
content: string[];
|
|
223
|
-
|
|
223
|
+
helperMessage: string[];
|
|
224
224
|
};
|
|
225
225
|
secondary: {
|
|
226
226
|
content: string[];
|
|
227
|
-
|
|
227
|
+
helperMessage: string[];
|
|
228
228
|
};
|
|
229
229
|
};
|
|
230
230
|
size: {
|
|
@@ -233,32 +233,32 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
233
233
|
label: string[];
|
|
234
234
|
innerWrapper: string[];
|
|
235
235
|
inputWrapper: string[];
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
helperMessage: string[];
|
|
237
|
+
errorMessage: string[];
|
|
238
238
|
};
|
|
239
239
|
md: {
|
|
240
240
|
base: string[];
|
|
241
241
|
label: string[];
|
|
242
242
|
innerWrapper: string[];
|
|
243
243
|
inputWrapper: string[];
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
helperMessage: string[];
|
|
245
|
+
errorMessage: string[];
|
|
246
246
|
};
|
|
247
247
|
lg: {
|
|
248
248
|
base: string[];
|
|
249
249
|
label: string[];
|
|
250
250
|
innerWrapper: string[];
|
|
251
251
|
inputWrapper: string[];
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
helperMessage: string[];
|
|
253
|
+
errorMessage: string[];
|
|
254
254
|
};
|
|
255
255
|
xl: {
|
|
256
256
|
base: string[];
|
|
257
257
|
label: string[];
|
|
258
258
|
innerWrapper: string[];
|
|
259
259
|
inputWrapper: string[];
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
helperMessage: string[];
|
|
261
|
+
errorMessage: string[];
|
|
262
262
|
};
|
|
263
263
|
};
|
|
264
264
|
direction: {
|
|
@@ -277,8 +277,8 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
277
277
|
inputWrapper: string[];
|
|
278
278
|
input: string[];
|
|
279
279
|
content: string[];
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
helperMessage: string[];
|
|
281
|
+
errorMessage: string[];
|
|
282
282
|
};
|
|
283
283
|
};
|
|
284
284
|
}, {
|
|
@@ -290,8 +290,8 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
290
290
|
inputWrapper: string[];
|
|
291
291
|
input: string[];
|
|
292
292
|
content: string[];
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
helperMessage: string[];
|
|
294
|
+
errorMessage: string[];
|
|
295
295
|
readonly: string[];
|
|
296
296
|
}, undefined, unknown, unknown, undefined>>;
|
|
297
297
|
type InputVariantProps = VariantProps<typeof inputStyle>;
|
|
@@ -5,8 +5,8 @@ import { Size, SlotsToClasses } from '../../utils/types.js';
|
|
|
5
5
|
|
|
6
6
|
interface Props extends Omit<ComponentProps<"input">, "size"> {
|
|
7
7
|
label?: string;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
helperMessage?: string;
|
|
9
|
+
errorMessage?: string;
|
|
10
10
|
startContent?: ReactElement<{
|
|
11
11
|
className?: string;
|
|
12
12
|
size?: Size;
|
|
@@ -38,11 +38,11 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
38
38
|
color: {
|
|
39
39
|
primary: {
|
|
40
40
|
content: string[];
|
|
41
|
-
|
|
41
|
+
helperMessage: string[];
|
|
42
42
|
};
|
|
43
43
|
secondary: {
|
|
44
44
|
content: string[];
|
|
45
|
-
|
|
45
|
+
helperMessage: string[];
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
size: {
|
|
@@ -51,32 +51,32 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
51
51
|
label: string[];
|
|
52
52
|
innerWrapper: string[];
|
|
53
53
|
inputWrapper: string[];
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
helperMessage: string[];
|
|
55
|
+
errorMessage: string[];
|
|
56
56
|
};
|
|
57
57
|
md: {
|
|
58
58
|
base: string[];
|
|
59
59
|
label: string[];
|
|
60
60
|
innerWrapper: string[];
|
|
61
61
|
inputWrapper: string[];
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
helperMessage: string[];
|
|
63
|
+
errorMessage: string[];
|
|
64
64
|
};
|
|
65
65
|
lg: {
|
|
66
66
|
base: string[];
|
|
67
67
|
label: string[];
|
|
68
68
|
innerWrapper: string[];
|
|
69
69
|
inputWrapper: string[];
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
helperMessage: string[];
|
|
71
|
+
errorMessage: string[];
|
|
72
72
|
};
|
|
73
73
|
xl: {
|
|
74
74
|
base: string[];
|
|
75
75
|
label: string[];
|
|
76
76
|
innerWrapper: string[];
|
|
77
77
|
inputWrapper: string[];
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
helperMessage: string[];
|
|
79
|
+
errorMessage: string[];
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
82
|
direction: {
|
|
@@ -95,8 +95,8 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
95
95
|
inputWrapper: string[];
|
|
96
96
|
input: string[];
|
|
97
97
|
content: string[];
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
helperMessage: string[];
|
|
99
|
+
errorMessage: string[];
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
}, {
|
|
@@ -108,8 +108,8 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
108
108
|
inputWrapper: string[];
|
|
109
109
|
input: string[];
|
|
110
110
|
content: string[];
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
helperMessage: string[];
|
|
112
|
+
errorMessage: string[];
|
|
113
113
|
readonly: string[];
|
|
114
114
|
}, undefined, {
|
|
115
115
|
variant: {
|
|
@@ -129,11 +129,11 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
129
129
|
color: {
|
|
130
130
|
primary: {
|
|
131
131
|
content: string[];
|
|
132
|
-
|
|
132
|
+
helperMessage: string[];
|
|
133
133
|
};
|
|
134
134
|
secondary: {
|
|
135
135
|
content: string[];
|
|
136
|
-
|
|
136
|
+
helperMessage: string[];
|
|
137
137
|
};
|
|
138
138
|
};
|
|
139
139
|
size: {
|
|
@@ -142,32 +142,32 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
142
142
|
label: string[];
|
|
143
143
|
innerWrapper: string[];
|
|
144
144
|
inputWrapper: string[];
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
helperMessage: string[];
|
|
146
|
+
errorMessage: string[];
|
|
147
147
|
};
|
|
148
148
|
md: {
|
|
149
149
|
base: string[];
|
|
150
150
|
label: string[];
|
|
151
151
|
innerWrapper: string[];
|
|
152
152
|
inputWrapper: string[];
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
helperMessage: string[];
|
|
154
|
+
errorMessage: string[];
|
|
155
155
|
};
|
|
156
156
|
lg: {
|
|
157
157
|
base: string[];
|
|
158
158
|
label: string[];
|
|
159
159
|
innerWrapper: string[];
|
|
160
160
|
inputWrapper: string[];
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
helperMessage: string[];
|
|
162
|
+
errorMessage: string[];
|
|
163
163
|
};
|
|
164
164
|
xl: {
|
|
165
165
|
base: string[];
|
|
166
166
|
label: string[];
|
|
167
167
|
innerWrapper: string[];
|
|
168
168
|
inputWrapper: string[];
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
helperMessage: string[];
|
|
170
|
+
errorMessage: string[];
|
|
171
171
|
};
|
|
172
172
|
};
|
|
173
173
|
direction: {
|
|
@@ -186,8 +186,8 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
186
186
|
inputWrapper: string[];
|
|
187
187
|
input: string[];
|
|
188
188
|
content: string[];
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
helperMessage: string[];
|
|
190
|
+
errorMessage: string[];
|
|
191
191
|
};
|
|
192
192
|
};
|
|
193
193
|
}, {
|
|
@@ -199,8 +199,8 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
199
199
|
inputWrapper: string[];
|
|
200
200
|
input: string[];
|
|
201
201
|
content: string[];
|
|
202
|
-
|
|
203
|
-
|
|
202
|
+
helperMessage: string[];
|
|
203
|
+
errorMessage: string[];
|
|
204
204
|
readonly: string[];
|
|
205
205
|
}, tailwind_variants.TVReturnType<{
|
|
206
206
|
variant: {
|
|
@@ -220,11 +220,11 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
220
220
|
color: {
|
|
221
221
|
primary: {
|
|
222
222
|
content: string[];
|
|
223
|
-
|
|
223
|
+
helperMessage: string[];
|
|
224
224
|
};
|
|
225
225
|
secondary: {
|
|
226
226
|
content: string[];
|
|
227
|
-
|
|
227
|
+
helperMessage: string[];
|
|
228
228
|
};
|
|
229
229
|
};
|
|
230
230
|
size: {
|
|
@@ -233,32 +233,32 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
233
233
|
label: string[];
|
|
234
234
|
innerWrapper: string[];
|
|
235
235
|
inputWrapper: string[];
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
helperMessage: string[];
|
|
237
|
+
errorMessage: string[];
|
|
238
238
|
};
|
|
239
239
|
md: {
|
|
240
240
|
base: string[];
|
|
241
241
|
label: string[];
|
|
242
242
|
innerWrapper: string[];
|
|
243
243
|
inputWrapper: string[];
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
helperMessage: string[];
|
|
245
|
+
errorMessage: string[];
|
|
246
246
|
};
|
|
247
247
|
lg: {
|
|
248
248
|
base: string[];
|
|
249
249
|
label: string[];
|
|
250
250
|
innerWrapper: string[];
|
|
251
251
|
inputWrapper: string[];
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
helperMessage: string[];
|
|
253
|
+
errorMessage: string[];
|
|
254
254
|
};
|
|
255
255
|
xl: {
|
|
256
256
|
base: string[];
|
|
257
257
|
label: string[];
|
|
258
258
|
innerWrapper: string[];
|
|
259
259
|
inputWrapper: string[];
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
helperMessage: string[];
|
|
261
|
+
errorMessage: string[];
|
|
262
262
|
};
|
|
263
263
|
};
|
|
264
264
|
direction: {
|
|
@@ -277,8 +277,8 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
277
277
|
inputWrapper: string[];
|
|
278
278
|
input: string[];
|
|
279
279
|
content: string[];
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
helperMessage: string[];
|
|
281
|
+
errorMessage: string[];
|
|
282
282
|
};
|
|
283
283
|
};
|
|
284
284
|
}, {
|
|
@@ -290,8 +290,8 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
|
|
|
290
290
|
inputWrapper: string[];
|
|
291
291
|
input: string[];
|
|
292
292
|
content: string[];
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
helperMessage: string[];
|
|
294
|
+
errorMessage: string[];
|
|
295
295
|
readonly: string[];
|
|
296
296
|
}, undefined, unknown, unknown, undefined>>;
|
|
297
297
|
type InputVariantProps = VariantProps<typeof inputStyle>;
|
|
@@ -4359,7 +4359,7 @@ function toVal(mix) {
|
|
|
4359
4359
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
4360
4360
|
var Input = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
4361
4361
|
const [props, variantProps] = mapPropsVariants(originalProps, inputStyle.variantKeys);
|
|
4362
|
-
const { classNames, label,
|
|
4362
|
+
const { classNames, label, helperMessage, errorMessage, startContent, endContent, ...inputProps } = props;
|
|
4363
4363
|
const inputRef = (0, import_react.useRef)(null);
|
|
4364
4364
|
const slots = (0, import_react.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
|
|
4365
4365
|
const getContentProps = (0, import_react.useCallback)(
|
|
@@ -4402,7 +4402,7 @@ var Input = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
4402
4402
|
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
4403
4403
|
};
|
|
4404
4404
|
return import_react.default.cloneElement(endContent, mergedProps);
|
|
4405
|
-
} else if (
|
|
4405
|
+
} else if (errorMessage) {
|
|
4406
4406
|
const iconProps = { ...getContentProps(), className: getContentProps().className };
|
|
4407
4407
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
|
|
4408
4408
|
} else {
|
|
@@ -4456,8 +4456,8 @@ var Input = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
4456
4456
|
]
|
|
4457
4457
|
}
|
|
4458
4458
|
),
|
|
4459
|
-
|
|
4460
|
-
|
|
4459
|
+
helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: slots.helperMessage({ class: classNames == null ? void 0 : classNames.helperMessage }), children: helperMessage }),
|
|
4460
|
+
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
|
|
4461
4461
|
] })
|
|
4462
4462
|
]
|
|
4463
4463
|
}
|
|
@@ -4497,8 +4497,8 @@ var inputStyle = tv(
|
|
|
4497
4497
|
"group-has-[:hover]/input:text-neutral-dark",
|
|
4498
4498
|
"group-has-[p.error]/input:text-danger-main"
|
|
4499
4499
|
],
|
|
4500
|
-
|
|
4501
|
-
|
|
4500
|
+
helperMessage: ["text-neutral-main", "group-has-[:hover]/input:text-neutral-dark"],
|
|
4501
|
+
errorMessage: ["text-danger-main"],
|
|
4502
4502
|
readonly: ["pointer-events-none", "!text-body-foreground"]
|
|
4503
4503
|
},
|
|
4504
4504
|
variants: {
|
|
@@ -4533,7 +4533,7 @@ var inputStyle = tv(
|
|
|
4533
4533
|
"group-has-[:focus]/input:text-primary-main",
|
|
4534
4534
|
"!group-has-[p.error]:not(input:focus):hover/input:text-primary-main"
|
|
4535
4535
|
],
|
|
4536
|
-
|
|
4536
|
+
helperMessage: [
|
|
4537
4537
|
"group-has-[:focus]/input:text-primary-main",
|
|
4538
4538
|
"group-has-[:focus:hover]/input:text-primary-main",
|
|
4539
4539
|
"group-has-[:focus]/input:hover:text-primary-main"
|
|
@@ -4544,7 +4544,7 @@ var inputStyle = tv(
|
|
|
4544
4544
|
"group-has-[:focus]/input:text-secondary-main",
|
|
4545
4545
|
"!group-has-[p.error]:not(input:focus):hover/input:text-secondary-main"
|
|
4546
4546
|
],
|
|
4547
|
-
|
|
4547
|
+
helperMessage: [
|
|
4548
4548
|
"group-has-[:focus]/input:text-secondary-main",
|
|
4549
4549
|
"group-has-[:focus:hover]/input:text-secondary-main",
|
|
4550
4550
|
"group-has-[:focus]/input:hover:text-secondary-main"
|
|
@@ -4557,32 +4557,32 @@ var inputStyle = tv(
|
|
|
4557
4557
|
label: ["text-sm"],
|
|
4558
4558
|
innerWrapper: ["gap-[4px]"],
|
|
4559
4559
|
inputWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[4px]", "gap-[4px]"],
|
|
4560
|
-
|
|
4561
|
-
|
|
4560
|
+
helperMessage: ["text-sm"],
|
|
4561
|
+
errorMessage: ["text-sm"]
|
|
4562
4562
|
},
|
|
4563
4563
|
md: {
|
|
4564
4564
|
base: ["text-md", "gap-[6px]"],
|
|
4565
4565
|
label: ["text-md"],
|
|
4566
4566
|
innerWrapper: ["gap-[6px]"],
|
|
4567
4567
|
inputWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-[6px]", "gap-[6px]"],
|
|
4568
|
-
|
|
4569
|
-
|
|
4568
|
+
helperMessage: ["text-sm"],
|
|
4569
|
+
errorMessage: ["text-sm"]
|
|
4570
4570
|
},
|
|
4571
4571
|
lg: {
|
|
4572
4572
|
base: ["text-lg", "gap-[8px]"],
|
|
4573
4573
|
label: ["text-lg"],
|
|
4574
4574
|
innerWrapper: ["gap-[8px]"],
|
|
4575
4575
|
inputWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-[8px]", "gap-[8px]"],
|
|
4576
|
-
|
|
4577
|
-
|
|
4576
|
+
helperMessage: ["text-md"],
|
|
4577
|
+
errorMessage: ["text-md"]
|
|
4578
4578
|
},
|
|
4579
4579
|
xl: {
|
|
4580
4580
|
base: ["text-xl", "gap-[10px]"],
|
|
4581
4581
|
label: ["text-xl"],
|
|
4582
4582
|
innerWrapper: ["gap-[10px]"],
|
|
4583
4583
|
inputWrapper: ["w-[240px]", "h-[50px]", "rounded-lg", "px-[10px]", "gap-[10px]"],
|
|
4584
|
-
|
|
4585
|
-
|
|
4584
|
+
helperMessage: ["text-md"],
|
|
4585
|
+
errorMessage: ["text-md"]
|
|
4586
4586
|
}
|
|
4587
4587
|
},
|
|
4588
4588
|
direction: {
|
|
@@ -4606,8 +4606,8 @@ var inputStyle = tv(
|
|
|
4606
4606
|
"group-has-[p.error]/input:placeholder:text-danger-light"
|
|
4607
4607
|
],
|
|
4608
4608
|
content: ["text-neutral-light", "group-has-[p.error]/input:text-danger-light"],
|
|
4609
|
-
|
|
4610
|
-
|
|
4609
|
+
helperMessage: ["!text-neutral-light"],
|
|
4610
|
+
errorMessage: ["!text-danger-light"]
|
|
4611
4611
|
}
|
|
4612
4612
|
}
|
|
4613
4613
|
},
|