@deepnoid/ui 0.1.20 → 0.1.21

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.
Files changed (102) hide show
  1. package/.turbo/turbo-build.log +149 -159
  2. package/dist/{chunk-JOCMCOEK.mjs → chunk-2Y7IBUAZ.mjs} +17 -6
  3. package/dist/{chunk-LNYMVBV5.mjs → chunk-7CFOD7G4.mjs} +11 -9
  4. package/dist/{chunk-YBDA3WQP.mjs → chunk-7KUFDVGL.mjs} +1 -1
  5. package/dist/{chunk-6KXBXGYR.mjs → chunk-HQLSHEK6.mjs} +1 -1
  6. package/dist/{chunk-EYVRTVRM.mjs → chunk-JHDYQCEE.mjs} +5 -5
  7. package/dist/{chunk-3DPVPTHL.mjs → chunk-MV7RSV4D.mjs} +3 -3
  8. package/dist/chunk-MW7CSRIE.mjs +348 -0
  9. package/dist/{chunk-ZUSUVPYV.mjs → chunk-OV7CZNXU.mjs} +5 -5
  10. package/dist/{chunk-OWG4RL2T.mjs → chunk-Q6BZ76DI.mjs} +2 -2
  11. package/dist/{chunk-63WXGSTV.mjs → chunk-QHWFHOW2.mjs} +24 -14
  12. package/dist/{chunk-EGHTZLZJ.mjs → chunk-UTC2D6GV.mjs} +5 -5
  13. package/dist/components/backdrop/backdrop.mjs +2 -2
  14. package/dist/components/backdrop/index.mjs +2 -2
  15. package/dist/components/breadcrumb/breadcrumb.mjs +6 -6
  16. package/dist/components/breadcrumb/index.mjs +6 -6
  17. package/dist/components/button/button.mjs +2 -2
  18. package/dist/components/button/icon-button.mjs +2 -2
  19. package/dist/components/button/index.mjs +5 -5
  20. package/dist/components/button/text-button.mjs +3 -3
  21. package/dist/components/checkbox/checkbox.mjs +3 -3
  22. package/dist/components/checkbox/index.mjs +3 -3
  23. package/dist/components/chip/chip.mjs +2 -2
  24. package/dist/components/chip/index.mjs +2 -2
  25. package/dist/components/dateTimePicker/calendar.mjs +2 -2
  26. package/dist/components/dateTimePicker/dateTimePicker.mjs +6 -6
  27. package/dist/components/dateTimePicker/index.mjs +6 -6
  28. package/dist/components/dateTimePicker/timePicker.mjs +4 -4
  29. package/dist/components/input/index.js +13 -2
  30. package/dist/components/input/index.mjs +3 -3
  31. package/dist/components/input/input.js +13 -2
  32. package/dist/components/input/input.mjs +3 -3
  33. package/dist/components/list/index.mjs +3 -3
  34. package/dist/components/list/list.mjs +2 -2
  35. package/dist/components/list/listItem.mjs +2 -2
  36. package/dist/components/modal/index.mjs +8 -8
  37. package/dist/components/modal/modal.mjs +8 -8
  38. package/dist/components/pagination/index.js +13 -2
  39. package/dist/components/pagination/index.mjs +4 -4
  40. package/dist/components/pagination/pagination.js +13 -2
  41. package/dist/components/pagination/pagination.mjs +4 -4
  42. package/dist/components/radio/index.mjs +3 -3
  43. package/dist/components/radio/radio.mjs +3 -3
  44. package/dist/components/select/index.d.mts +1 -1
  45. package/dist/components/select/index.d.ts +1 -1
  46. package/dist/components/select/index.js +301 -286
  47. package/dist/components/select/index.mjs +3 -4
  48. package/dist/components/select/select.d.mts +190 -177
  49. package/dist/components/select/select.d.ts +190 -177
  50. package/dist/components/select/select.js +301 -286
  51. package/dist/components/select/select.mjs +3 -4
  52. package/dist/components/table/index.js +43 -20
  53. package/dist/components/table/index.mjs +8 -8
  54. package/dist/components/table/table-body.d.mts +3 -2
  55. package/dist/components/table/table-body.d.ts +3 -2
  56. package/dist/components/table/table-body.js +23 -13
  57. package/dist/components/table/table-body.mjs +4 -4
  58. package/dist/components/table/table-head.d.mts +2 -2
  59. package/dist/components/table/table-head.d.ts +2 -2
  60. package/dist/components/table/table-head.js +2 -2
  61. package/dist/components/table/table-head.mjs +4 -4
  62. package/dist/components/table/table.d.mts +2 -1
  63. package/dist/components/table/table.d.ts +2 -1
  64. package/dist/components/table/table.js +43 -20
  65. package/dist/components/table/table.mjs +8 -8
  66. package/dist/components/tabs/index.mjs +2 -2
  67. package/dist/components/tabs/tabs.mjs +2 -2
  68. package/dist/components/toast/index.mjs +4 -4
  69. package/dist/components/toast/toast.mjs +3 -3
  70. package/dist/components/toast/use-toast.mjs +4 -4
  71. package/dist/components/tooltip/index.mjs +2 -2
  72. package/dist/components/tooltip/tooltip.mjs +2 -2
  73. package/dist/components/tree/index.mjs +3 -3
  74. package/dist/components/tree/tree.mjs +3 -3
  75. package/dist/index.js +490 -494
  76. package/dist/index.mjs +50 -52
  77. package/package.json +1 -1
  78. package/dist/chunk-BXXAMH3R.mjs +0 -255
  79. package/dist/chunk-OF3X4BXG.mjs +0 -76
  80. package/dist/chunk-S3QS5B7F.mjs +0 -61
  81. package/dist/components/select/option.d.mts +0 -17
  82. package/dist/components/select/option.d.ts +0 -17
  83. package/dist/components/select/option.js +0 -4359
  84. package/dist/components/select/option.mjs +0 -12
  85. package/dist/components/select/useSelect.d.mts +0 -31
  86. package/dist/components/select/useSelect.d.ts +0 -31
  87. package/dist/components/select/useSelect.js +0 -84
  88. package/dist/components/select/useSelect.mjs +0 -8
  89. package/dist/{chunk-OUAKGMDW.mjs → chunk-2DLKV6TT.mjs} +4 -4
  90. package/dist/{chunk-D6QI3DJG.mjs → chunk-7H5XPHY6.mjs} +4 -4
  91. package/dist/{chunk-Q72LZAPG.mjs → chunk-DUPQBPI2.mjs} +3 -3
  92. package/dist/{chunk-VQROXH43.mjs → chunk-EWZAHXN7.mjs} +3 -3
  93. package/dist/{chunk-6HX3PPL6.mjs → chunk-FBAR75U4.mjs} +3 -3
  94. package/dist/{chunk-Z2537DF6.mjs → chunk-IL5ENWCR.mjs} +3 -3
  95. package/dist/{chunk-WFMFC7R6.mjs → chunk-KCOHU7X7.mjs} +4 -4
  96. package/dist/{chunk-PNRS23HE.mjs → chunk-MQI5SZWO.mjs} +3 -3
  97. package/dist/{chunk-LL6F3WDX.mjs → chunk-P5QCU457.mjs} +3 -3
  98. package/dist/{chunk-PZIVMTKX.mjs → chunk-SDHQUYFI.mjs} +3 -3
  99. package/dist/{chunk-2YMAKIZ6.mjs → chunk-SSMMWMQC.mjs} +3 -3
  100. package/dist/{chunk-HIVPDIEP.mjs → chunk-UFVQPPPW.mjs} +3 -3
  101. package/dist/{chunk-BPVRXFIC.mjs → chunk-XGYQ6D3S.mjs} +3 -3
  102. package/dist/{chunk-QIRL6HY6.mjs → chunk-YIIFWADW.mjs} +4 -4
@@ -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
- defaultOption?: SelectOption;
13
+ defaultSelectedOptions?: SelectOption[];
10
14
  label?: string;
11
- errorMessage?: string;
15
+ helperText?: string;
16
+ errorText?: string;
12
17
  classNames?: SlotsToClasses<SelectSlots>;
13
- onChange?: (option: SelectOption) => void;
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
- optionsWrapper: string;
39
- select: string;
27
+ selectWrapper: string[];
28
+ option: string[];
40
29
  };
41
30
  secondary: {
42
- selectWrapper: string;
43
- optionsWrapper: string;
44
- select: string;
31
+ selectWrapper: string[];
32
+ select: string[];
33
+ option: string[];
45
34
  };
46
35
  };
47
36
  size: {
48
37
  sm: {
49
- base: string;
50
- selectWrapper: string;
51
- optionsWrapper: string;
52
- errorMessage: string;
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
- selectWrapper: string;
57
- optionsWrapper: string;
58
- errorMessage: string;
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
- selectWrapper: string;
63
- optionsWrapper: string;
64
- errorMessage: string;
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
- selectWrapper: string;
69
- optionsWrapper: string;
70
- errorMessage: string;
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
- radius: {
74
- default: string;
75
- none: {
76
- selectWrapper: string;
77
- optionsWrapper: string;
78
- };
79
- full: {
80
- selectWrapper: string;
81
- };
78
+ direction: {
79
+ vertical: string;
80
+ horizon: string;
82
81
  };
83
- fullWidth: {
82
+ full: {
84
83
  true: {
85
- selectWrapper: string;
86
- optionsWrapper: string;
84
+ base: string[];
85
+ wrapper: string[];
86
+ selectWrapper: string[];
87
87
  };
88
88
  };
89
- isDisabled: {
89
+ disabled: {
90
90
  true: {
91
- base: string;
92
- selectWrapper: string;
93
- select: string;
94
- label: string;
91
+ base: string[];
92
+ selectWrapper: string[];
93
+ select: string[];
94
+ helperText: string[];
95
+ errorText: string[];
95
96
  };
96
97
  };
97
- isRequired: {
98
- true: {
99
- label: string;
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
- errorMessage: string[];
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
- optionsWrapper: string;
126
- select: string;
118
+ selectWrapper: string[];
119
+ option: string[];
127
120
  };
128
121
  secondary: {
129
- selectWrapper: string;
130
- optionsWrapper: string;
131
- select: string;
122
+ selectWrapper: string[];
123
+ select: string[];
124
+ option: string[];
132
125
  };
133
126
  };
134
127
  size: {
135
128
  sm: {
136
- base: string;
137
- selectWrapper: string;
138
- optionsWrapper: string;
139
- errorMessage: string;
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
- selectWrapper: string;
144
- optionsWrapper: string;
145
- errorMessage: string;
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
- selectWrapper: string;
150
- optionsWrapper: string;
151
- errorMessage: string;
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
- selectWrapper: string;
156
- optionsWrapper: string;
157
- errorMessage: string;
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
- radius: {
161
- default: string;
162
- none: {
163
- selectWrapper: string;
164
- optionsWrapper: string;
165
- };
166
- full: {
167
- selectWrapper: string;
168
- };
169
+ direction: {
170
+ vertical: string;
171
+ horizon: string;
169
172
  };
170
- fullWidth: {
173
+ full: {
171
174
  true: {
172
- selectWrapper: string;
173
- optionsWrapper: string;
175
+ base: string[];
176
+ wrapper: string[];
177
+ selectWrapper: string[];
174
178
  };
175
179
  };
176
- isDisabled: {
180
+ disabled: {
177
181
  true: {
178
- base: string;
179
- selectWrapper: string;
180
- select: string;
181
- label: string;
182
+ base: string[];
183
+ selectWrapper: string[];
184
+ select: string[];
185
+ helperText: string[];
186
+ errorText: string[];
182
187
  };
183
188
  };
184
- isRequired: {
185
- true: {
186
- label: string;
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
- errorMessage: string[];
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
- optionsWrapper: string;
213
- select: string;
209
+ selectWrapper: string[];
210
+ option: string[];
214
211
  };
215
212
  secondary: {
216
- selectWrapper: string;
217
- optionsWrapper: string;
218
- select: string;
213
+ selectWrapper: string[];
214
+ select: string[];
215
+ option: string[];
219
216
  };
220
217
  };
221
218
  size: {
222
219
  sm: {
223
- base: string;
224
- selectWrapper: string;
225
- optionsWrapper: string;
226
- errorMessage: string;
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
- selectWrapper: string;
231
- optionsWrapper: string;
232
- errorMessage: string;
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
- selectWrapper: string;
237
- optionsWrapper: string;
238
- errorMessage: string;
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
- selectWrapper: string;
243
- optionsWrapper: string;
244
- errorMessage: string;
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
- radius: {
248
- default: string;
249
- none: {
250
- selectWrapper: string;
251
- optionsWrapper: string;
252
- };
253
- full: {
254
- selectWrapper: string;
255
- };
260
+ direction: {
261
+ vertical: string;
262
+ horizon: string;
256
263
  };
257
- fullWidth: {
264
+ full: {
258
265
  true: {
259
- selectWrapper: string;
260
- optionsWrapper: string;
266
+ base: string[];
267
+ wrapper: string[];
268
+ selectWrapper: string[];
261
269
  };
262
270
  };
263
- isDisabled: {
271
+ disabled: {
264
272
  true: {
265
- base: string;
266
- selectWrapper: string;
267
- select: string;
268
- label: string;
273
+ base: string[];
274
+ selectWrapper: string[];
275
+ select: string[];
276
+ helperText: string[];
277
+ errorText: string[];
269
278
  };
270
279
  };
271
- isRequired: {
272
- true: {
273
- label: string;
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
- errorMessage: string[];
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 SelectOption, type SelectProps, type SelectReturnType, type SelectSlots, type SelectVariantProps, Select as default };
301
+ export { type SelectProps, type SelectVariantProps, Select as default };