@deepnoid/ui 0.1.20 → 0.1.22
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 +162 -172
- package/dist/{chunk-LNYMVBV5.mjs → chunk-6OMHIMIA.mjs} +8 -6
- package/dist/{chunk-3DPVPTHL.mjs → chunk-EAK5DVWA.mjs} +2 -2
- package/dist/{chunk-3BKCODIL.mjs → chunk-ICZTNO4V.mjs} +3 -3
- package/dist/{chunk-EGHTZLZJ.mjs → chunk-IVK24VIL.mjs} +1 -1
- package/dist/chunk-MSAULFDB.mjs +348 -0
- package/dist/{chunk-JOCMCOEK.mjs → chunk-P5PJTJLY.mjs} +13 -2
- package/dist/{chunk-63WXGSTV.mjs → chunk-XRC5OUYQ.mjs} +23 -13
- package/dist/components/input/index.js +13 -2
- package/dist/components/input/index.mjs +1 -1
- package/dist/components/input/input.js +13 -2
- package/dist/components/input/input.mjs +1 -1
- package/dist/components/modal/index.mjs +1 -1
- package/dist/components/modal/modal.mjs +1 -1
- package/dist/components/pagination/index.js +13 -2
- package/dist/components/pagination/index.mjs +2 -2
- package/dist/components/pagination/pagination.js +13 -2
- package/dist/components/pagination/pagination.mjs +2 -2
- package/dist/components/select/index.d.mts +1 -1
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.js +301 -286
- package/dist/components/select/index.mjs +2 -3
- package/dist/components/select/select.d.mts +190 -177
- package/dist/components/select/select.d.ts +190 -177
- package/dist/components/select/select.js +301 -286
- package/dist/components/select/select.mjs +2 -3
- package/dist/components/table/form-table.js +3 -3
- package/dist/components/table/form-table.mjs +1 -1
- package/dist/components/table/index.js +46 -23
- package/dist/components/table/index.mjs +6 -6
- package/dist/components/table/table-body.d.mts +3 -2
- package/dist/components/table/table-body.d.ts +3 -2
- package/dist/components/table/table-body.js +23 -13
- package/dist/components/table/table-body.mjs +1 -1
- package/dist/components/table/table-head.d.mts +2 -2
- package/dist/components/table/table-head.d.ts +2 -2
- package/dist/components/table/table-head.js +2 -2
- package/dist/components/table/table-head.mjs +1 -1
- package/dist/components/table/table.d.mts +2 -1
- package/dist/components/table/table.d.ts +2 -1
- package/dist/components/table/table.js +43 -20
- package/dist/components/table/table.mjs +5 -5
- package/dist/index.js +493 -497
- package/dist/index.mjs +28 -30
- package/package.json +1 -1
- package/dist/chunk-BXXAMH3R.mjs +0 -255
- package/dist/chunk-OF3X4BXG.mjs +0 -76
- package/dist/chunk-S3QS5B7F.mjs +0 -61
- package/dist/components/select/option.d.mts +0 -17
- package/dist/components/select/option.d.ts +0 -17
- package/dist/components/select/option.js +0 -4359
- package/dist/components/select/option.mjs +0 -12
- package/dist/components/select/useSelect.d.mts +0 -31
- package/dist/components/select/useSelect.d.ts +0 -31
- package/dist/components/select/useSelect.js +0 -84
- package/dist/components/select/useSelect.mjs +0 -8
|
@@ -4,285 +4,298 @@ import * as react from 'react';
|
|
|
4
4
|
import { ComponentPropsWithRef } from 'react';
|
|
5
5
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
6
6
|
|
|
7
|
+
interface SelectOption {
|
|
8
|
+
key: string | number;
|
|
9
|
+
value: string;
|
|
10
|
+
}
|
|
7
11
|
interface Props extends Omit<ComponentPropsWithRef<"input">, "onChange" | keyof SelectVariantProps> {
|
|
8
12
|
options: SelectOption[];
|
|
9
|
-
|
|
13
|
+
defaultSelectedOptions?: SelectOption[];
|
|
10
14
|
label?: string;
|
|
11
|
-
|
|
15
|
+
helperText?: string;
|
|
16
|
+
errorText?: string;
|
|
12
17
|
classNames?: SlotsToClasses<SelectSlots>;
|
|
13
|
-
onChange?: (
|
|
18
|
+
onChange?: (options: SelectOption[]) => void;
|
|
19
|
+
multiple?: boolean;
|
|
14
20
|
}
|
|
15
21
|
type SelectProps = Props & SelectVariantProps;
|
|
16
|
-
type SelectOption = {
|
|
17
|
-
key: string | number;
|
|
18
|
-
value: string;
|
|
19
|
-
};
|
|
20
22
|
declare const Select: react.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
21
23
|
|
|
22
24
|
declare const select: tailwind_variants.TVReturnType<{
|
|
23
|
-
variant: {
|
|
24
|
-
solid: {
|
|
25
|
-
selectWrapper: string;
|
|
26
|
-
};
|
|
27
|
-
normal: {
|
|
28
|
-
selectWrapper: string;
|
|
29
|
-
};
|
|
30
|
-
line: {
|
|
31
|
-
selectWrapper: string;
|
|
32
|
-
optionsWrapper: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
25
|
color: {
|
|
36
26
|
primary: {
|
|
37
|
-
selectWrapper: string;
|
|
38
|
-
|
|
39
|
-
select: string;
|
|
27
|
+
selectWrapper: string[];
|
|
28
|
+
option: string[];
|
|
40
29
|
};
|
|
41
30
|
secondary: {
|
|
42
|
-
selectWrapper: string;
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
selectWrapper: string[];
|
|
32
|
+
select: string[];
|
|
33
|
+
option: string[];
|
|
45
34
|
};
|
|
46
35
|
};
|
|
47
36
|
size: {
|
|
48
37
|
sm: {
|
|
49
|
-
base: string;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
38
|
+
base: string[];
|
|
39
|
+
label: string[];
|
|
40
|
+
wrapper: string[];
|
|
41
|
+
selectWrapper: string[];
|
|
42
|
+
select: string[];
|
|
43
|
+
option: string[];
|
|
44
|
+
helperText: string[];
|
|
45
|
+
errorText: string[];
|
|
53
46
|
};
|
|
54
47
|
md: {
|
|
55
|
-
base: string;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
48
|
+
base: string[];
|
|
49
|
+
label: string[];
|
|
50
|
+
wrapper: string[];
|
|
51
|
+
selectWrapper: string[];
|
|
52
|
+
select: string[];
|
|
53
|
+
option: string[];
|
|
54
|
+
helperText: string[];
|
|
55
|
+
errorText: string[];
|
|
59
56
|
};
|
|
60
57
|
lg: {
|
|
61
|
-
base: string;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
base: string[];
|
|
59
|
+
label: string[];
|
|
60
|
+
wrapper: string[];
|
|
61
|
+
selectWrapper: string[];
|
|
62
|
+
select: string[];
|
|
63
|
+
option: string[];
|
|
64
|
+
helperText: string[];
|
|
65
|
+
errorText: string[];
|
|
65
66
|
};
|
|
66
67
|
xl: {
|
|
67
|
-
base: string;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
base: string[];
|
|
69
|
+
label: string[];
|
|
70
|
+
wrapper: string[];
|
|
71
|
+
selectWrapper: string[];
|
|
72
|
+
select: string[];
|
|
73
|
+
option: string[];
|
|
74
|
+
helperText: string[];
|
|
75
|
+
errorText: string[];
|
|
71
76
|
};
|
|
72
77
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
selectWrapper: string;
|
|
77
|
-
optionsWrapper: string;
|
|
78
|
-
};
|
|
79
|
-
full: {
|
|
80
|
-
selectWrapper: string;
|
|
81
|
-
};
|
|
78
|
+
direction: {
|
|
79
|
+
vertical: string;
|
|
80
|
+
horizon: string;
|
|
82
81
|
};
|
|
83
|
-
|
|
82
|
+
full: {
|
|
84
83
|
true: {
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
base: string[];
|
|
85
|
+
wrapper: string[];
|
|
86
|
+
selectWrapper: string[];
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
-
|
|
89
|
+
disabled: {
|
|
90
90
|
true: {
|
|
91
|
-
base: string;
|
|
92
|
-
selectWrapper: string;
|
|
93
|
-
select: string;
|
|
94
|
-
|
|
91
|
+
base: string[];
|
|
92
|
+
selectWrapper: string[];
|
|
93
|
+
select: string[];
|
|
94
|
+
helperText: string[];
|
|
95
|
+
errorText: string[];
|
|
95
96
|
};
|
|
96
97
|
};
|
|
97
|
-
|
|
98
|
-
true:
|
|
99
|
-
|
|
100
|
-
};
|
|
98
|
+
isSelected: {
|
|
99
|
+
true: string;
|
|
100
|
+
false: string;
|
|
101
101
|
};
|
|
102
102
|
}, {
|
|
103
103
|
base: string[];
|
|
104
|
+
vertical: string[];
|
|
105
|
+
horizon: string[];
|
|
104
106
|
label: string[];
|
|
107
|
+
wrapper: string[];
|
|
105
108
|
selectWrapper: string[];
|
|
106
109
|
select: string[];
|
|
107
110
|
optionsWrapper: string[];
|
|
108
|
-
|
|
111
|
+
option: string[];
|
|
112
|
+
helperText: string[];
|
|
113
|
+
errorText: string[];
|
|
114
|
+
readonly: string[];
|
|
109
115
|
}, undefined, {
|
|
110
|
-
variant: {
|
|
111
|
-
solid: {
|
|
112
|
-
selectWrapper: string;
|
|
113
|
-
};
|
|
114
|
-
normal: {
|
|
115
|
-
selectWrapper: string;
|
|
116
|
-
};
|
|
117
|
-
line: {
|
|
118
|
-
selectWrapper: string;
|
|
119
|
-
optionsWrapper: string;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
116
|
color: {
|
|
123
117
|
primary: {
|
|
124
|
-
selectWrapper: string;
|
|
125
|
-
|
|
126
|
-
select: string;
|
|
118
|
+
selectWrapper: string[];
|
|
119
|
+
option: string[];
|
|
127
120
|
};
|
|
128
121
|
secondary: {
|
|
129
|
-
selectWrapper: string;
|
|
130
|
-
|
|
131
|
-
|
|
122
|
+
selectWrapper: string[];
|
|
123
|
+
select: string[];
|
|
124
|
+
option: string[];
|
|
132
125
|
};
|
|
133
126
|
};
|
|
134
127
|
size: {
|
|
135
128
|
sm: {
|
|
136
|
-
base: string;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
129
|
+
base: string[];
|
|
130
|
+
label: string[];
|
|
131
|
+
wrapper: string[];
|
|
132
|
+
selectWrapper: string[];
|
|
133
|
+
select: string[];
|
|
134
|
+
option: string[];
|
|
135
|
+
helperText: string[];
|
|
136
|
+
errorText: string[];
|
|
140
137
|
};
|
|
141
138
|
md: {
|
|
142
|
-
base: string;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
139
|
+
base: string[];
|
|
140
|
+
label: string[];
|
|
141
|
+
wrapper: string[];
|
|
142
|
+
selectWrapper: string[];
|
|
143
|
+
select: string[];
|
|
144
|
+
option: string[];
|
|
145
|
+
helperText: string[];
|
|
146
|
+
errorText: string[];
|
|
146
147
|
};
|
|
147
148
|
lg: {
|
|
148
|
-
base: string;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
base: string[];
|
|
150
|
+
label: string[];
|
|
151
|
+
wrapper: string[];
|
|
152
|
+
selectWrapper: string[];
|
|
153
|
+
select: string[];
|
|
154
|
+
option: string[];
|
|
155
|
+
helperText: string[];
|
|
156
|
+
errorText: string[];
|
|
152
157
|
};
|
|
153
158
|
xl: {
|
|
154
|
-
base: string;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
159
|
+
base: string[];
|
|
160
|
+
label: string[];
|
|
161
|
+
wrapper: string[];
|
|
162
|
+
selectWrapper: string[];
|
|
163
|
+
select: string[];
|
|
164
|
+
option: string[];
|
|
165
|
+
helperText: string[];
|
|
166
|
+
errorText: string[];
|
|
158
167
|
};
|
|
159
168
|
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
selectWrapper: string;
|
|
164
|
-
optionsWrapper: string;
|
|
165
|
-
};
|
|
166
|
-
full: {
|
|
167
|
-
selectWrapper: string;
|
|
168
|
-
};
|
|
169
|
+
direction: {
|
|
170
|
+
vertical: string;
|
|
171
|
+
horizon: string;
|
|
169
172
|
};
|
|
170
|
-
|
|
173
|
+
full: {
|
|
171
174
|
true: {
|
|
172
|
-
|
|
173
|
-
|
|
175
|
+
base: string[];
|
|
176
|
+
wrapper: string[];
|
|
177
|
+
selectWrapper: string[];
|
|
174
178
|
};
|
|
175
179
|
};
|
|
176
|
-
|
|
180
|
+
disabled: {
|
|
177
181
|
true: {
|
|
178
|
-
base: string;
|
|
179
|
-
selectWrapper: string;
|
|
180
|
-
select: string;
|
|
181
|
-
|
|
182
|
+
base: string[];
|
|
183
|
+
selectWrapper: string[];
|
|
184
|
+
select: string[];
|
|
185
|
+
helperText: string[];
|
|
186
|
+
errorText: string[];
|
|
182
187
|
};
|
|
183
188
|
};
|
|
184
|
-
|
|
185
|
-
true:
|
|
186
|
-
|
|
187
|
-
};
|
|
189
|
+
isSelected: {
|
|
190
|
+
true: string;
|
|
191
|
+
false: string;
|
|
188
192
|
};
|
|
189
193
|
}, {
|
|
190
194
|
base: string[];
|
|
195
|
+
vertical: string[];
|
|
196
|
+
horizon: string[];
|
|
191
197
|
label: string[];
|
|
198
|
+
wrapper: string[];
|
|
192
199
|
selectWrapper: string[];
|
|
193
200
|
select: string[];
|
|
194
201
|
optionsWrapper: string[];
|
|
195
|
-
|
|
202
|
+
option: string[];
|
|
203
|
+
helperText: string[];
|
|
204
|
+
errorText: string[];
|
|
205
|
+
readonly: string[];
|
|
196
206
|
}, tailwind_variants.TVReturnType<{
|
|
197
|
-
variant: {
|
|
198
|
-
solid: {
|
|
199
|
-
selectWrapper: string;
|
|
200
|
-
};
|
|
201
|
-
normal: {
|
|
202
|
-
selectWrapper: string;
|
|
203
|
-
};
|
|
204
|
-
line: {
|
|
205
|
-
selectWrapper: string;
|
|
206
|
-
optionsWrapper: string;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
207
|
color: {
|
|
210
208
|
primary: {
|
|
211
|
-
selectWrapper: string;
|
|
212
|
-
|
|
213
|
-
select: string;
|
|
209
|
+
selectWrapper: string[];
|
|
210
|
+
option: string[];
|
|
214
211
|
};
|
|
215
212
|
secondary: {
|
|
216
|
-
selectWrapper: string;
|
|
217
|
-
|
|
218
|
-
|
|
213
|
+
selectWrapper: string[];
|
|
214
|
+
select: string[];
|
|
215
|
+
option: string[];
|
|
219
216
|
};
|
|
220
217
|
};
|
|
221
218
|
size: {
|
|
222
219
|
sm: {
|
|
223
|
-
base: string;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
220
|
+
base: string[];
|
|
221
|
+
label: string[];
|
|
222
|
+
wrapper: string[];
|
|
223
|
+
selectWrapper: string[];
|
|
224
|
+
select: string[];
|
|
225
|
+
option: string[];
|
|
226
|
+
helperText: string[];
|
|
227
|
+
errorText: string[];
|
|
227
228
|
};
|
|
228
229
|
md: {
|
|
229
|
-
base: string;
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
230
|
+
base: string[];
|
|
231
|
+
label: string[];
|
|
232
|
+
wrapper: string[];
|
|
233
|
+
selectWrapper: string[];
|
|
234
|
+
select: string[];
|
|
235
|
+
option: string[];
|
|
236
|
+
helperText: string[];
|
|
237
|
+
errorText: string[];
|
|
233
238
|
};
|
|
234
239
|
lg: {
|
|
235
|
-
base: string;
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
240
|
+
base: string[];
|
|
241
|
+
label: string[];
|
|
242
|
+
wrapper: string[];
|
|
243
|
+
selectWrapper: string[];
|
|
244
|
+
select: string[];
|
|
245
|
+
option: string[];
|
|
246
|
+
helperText: string[];
|
|
247
|
+
errorText: string[];
|
|
239
248
|
};
|
|
240
249
|
xl: {
|
|
241
|
-
base: string;
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
250
|
+
base: string[];
|
|
251
|
+
label: string[];
|
|
252
|
+
wrapper: string[];
|
|
253
|
+
selectWrapper: string[];
|
|
254
|
+
select: string[];
|
|
255
|
+
option: string[];
|
|
256
|
+
helperText: string[];
|
|
257
|
+
errorText: string[];
|
|
245
258
|
};
|
|
246
259
|
};
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
selectWrapper: string;
|
|
251
|
-
optionsWrapper: string;
|
|
252
|
-
};
|
|
253
|
-
full: {
|
|
254
|
-
selectWrapper: string;
|
|
255
|
-
};
|
|
260
|
+
direction: {
|
|
261
|
+
vertical: string;
|
|
262
|
+
horizon: string;
|
|
256
263
|
};
|
|
257
|
-
|
|
264
|
+
full: {
|
|
258
265
|
true: {
|
|
259
|
-
|
|
260
|
-
|
|
266
|
+
base: string[];
|
|
267
|
+
wrapper: string[];
|
|
268
|
+
selectWrapper: string[];
|
|
261
269
|
};
|
|
262
270
|
};
|
|
263
|
-
|
|
271
|
+
disabled: {
|
|
264
272
|
true: {
|
|
265
|
-
base: string;
|
|
266
|
-
selectWrapper: string;
|
|
267
|
-
select: string;
|
|
268
|
-
|
|
273
|
+
base: string[];
|
|
274
|
+
selectWrapper: string[];
|
|
275
|
+
select: string[];
|
|
276
|
+
helperText: string[];
|
|
277
|
+
errorText: string[];
|
|
269
278
|
};
|
|
270
279
|
};
|
|
271
|
-
|
|
272
|
-
true:
|
|
273
|
-
|
|
274
|
-
};
|
|
280
|
+
isSelected: {
|
|
281
|
+
true: string;
|
|
282
|
+
false: string;
|
|
275
283
|
};
|
|
276
284
|
}, {
|
|
277
285
|
base: string[];
|
|
286
|
+
vertical: string[];
|
|
287
|
+
horizon: string[];
|
|
278
288
|
label: string[];
|
|
289
|
+
wrapper: string[];
|
|
279
290
|
selectWrapper: string[];
|
|
280
291
|
select: string[];
|
|
281
292
|
optionsWrapper: string[];
|
|
282
|
-
|
|
293
|
+
option: string[];
|
|
294
|
+
helperText: string[];
|
|
295
|
+
errorText: string[];
|
|
296
|
+
readonly: string[];
|
|
283
297
|
}, undefined, unknown, unknown, undefined>>;
|
|
284
298
|
type SelectVariantProps = VariantProps<typeof select>;
|
|
285
299
|
type SelectSlots = keyof ReturnType<typeof select>;
|
|
286
|
-
type SelectReturnType = ReturnType<typeof select>;
|
|
287
300
|
|
|
288
|
-
export { type
|
|
301
|
+
export { type SelectProps, type SelectVariantProps, Select as default };
|