@dito-uai/components 5.0.0-alpha2 → 5.0.0-alpha3
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/dist/index.cjs +52 -1503
- package/dist/index.d.ts +23 -2020
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -1465
- package/dist/ui/accordion.d.ts +8 -2
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/input.d.ts +195 -9
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/search.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ui/accordion.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
-
|
|
3
|
+
type AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
|
|
4
4
|
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
6
6
|
triggerClassName?: string;
|
|
7
7
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
8
8
|
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
|
|
9
|
+
type AccordionType = React.ForwardRefExoticComponent<AccordionProps> & {
|
|
10
|
+
Item: typeof AccordionItem;
|
|
11
|
+
Trigger: typeof AccordionTrigger;
|
|
12
|
+
Content: typeof AccordionContent;
|
|
13
|
+
};
|
|
14
|
+
declare const AccordionWithStatics: AccordionType;
|
|
15
|
+
export default AccordionWithStatics;
|
|
10
16
|
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../src/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAKhE,
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../src/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAKhE,KAAK,cAAc,GAAG,KAAK,CAAC,wBAAwB,CAClD,OAAO,kBAAkB,CAAC,IAAI,CAC/B,CAAC;AAgBF,QAAA,MAAM,aAAa,iKAYjB,CAAC;AAIH,QAAA,MAAM,gBAAgB;uBAGC,MAAM;2CAgB3B,CAAC;AAIH,QAAA,MAAM,gBAAgB,oKAWpB,CAAC;AAIH,KAAK,aAAa,GAAG,KAAK,CAAC,yBAAyB,CAAC,cAAc,CAAC,GAAG;IACrE,IAAI,EAAE,OAAO,aAAa,CAAC;IAC3B,OAAO,EAAE,OAAO,gBAAgB,CAAC;IACjC,OAAO,EAAE,OAAO,gBAAgB,CAAC;CAClC,CAAC;AAEF,QAAA,MAAM,oBAAoB,EAAgB,aAAa,CAAC;AAKxD,eAAe,oBAAoB,CAAC"}
|
package/dist/ui/input.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
|
-
import { LabelProps } from './label';
|
|
4
|
-
import { InputDescriptionProps } from './input-description';
|
|
5
|
-
import { SearchProps } from './search';
|
|
6
3
|
export declare const inputVariants: import("tailwind-variants").TVReturnType<{
|
|
7
4
|
disabled: {
|
|
8
5
|
true: {
|
|
@@ -199,11 +196,200 @@ export type InputProps = React.InputHTMLAttributes<HTMLInputElement> & VariantPr
|
|
|
199
196
|
suffixIcon?: React.ElementType;
|
|
200
197
|
invalid?: boolean;
|
|
201
198
|
};
|
|
202
|
-
declare const Input:
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
199
|
+
declare const Input: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & VariantProps<import("tailwind-variants").TVReturnType<{
|
|
200
|
+
disabled: {
|
|
201
|
+
true: {
|
|
202
|
+
input: string;
|
|
203
|
+
prefixIcon: string;
|
|
204
|
+
suffixIcon: string;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
invalid: {
|
|
208
|
+
true: {
|
|
209
|
+
input: string;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
size: {
|
|
213
|
+
medium: {
|
|
214
|
+
prefixIcon: string;
|
|
215
|
+
suffixIcon: string;
|
|
216
|
+
input: string;
|
|
217
|
+
};
|
|
218
|
+
small: {
|
|
219
|
+
prefixIcon: string;
|
|
220
|
+
suffixIcon: string;
|
|
221
|
+
input: string;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
}, {
|
|
225
|
+
prefixIcon: string;
|
|
226
|
+
input: string;
|
|
227
|
+
suffixIcon: string;
|
|
228
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
229
|
+
disabled: {
|
|
230
|
+
true: {
|
|
231
|
+
input: string;
|
|
232
|
+
prefixIcon: string;
|
|
233
|
+
suffixIcon: string;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
invalid: {
|
|
237
|
+
true: {
|
|
238
|
+
input: string;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
size: {
|
|
242
|
+
medium: {
|
|
243
|
+
prefixIcon: string;
|
|
244
|
+
suffixIcon: string;
|
|
245
|
+
input: string;
|
|
246
|
+
};
|
|
247
|
+
small: {
|
|
248
|
+
prefixIcon: string;
|
|
249
|
+
suffixIcon: string;
|
|
250
|
+
input: string;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
}, {
|
|
254
|
+
disabled: {
|
|
255
|
+
true: {
|
|
256
|
+
input: string;
|
|
257
|
+
prefixIcon: string;
|
|
258
|
+
suffixIcon: string;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
invalid: {
|
|
262
|
+
true: {
|
|
263
|
+
input: string;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
size: {
|
|
267
|
+
medium: {
|
|
268
|
+
prefixIcon: string;
|
|
269
|
+
suffixIcon: string;
|
|
270
|
+
input: string;
|
|
271
|
+
};
|
|
272
|
+
small: {
|
|
273
|
+
prefixIcon: string;
|
|
274
|
+
suffixIcon: string;
|
|
275
|
+
input: string;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
}>, {
|
|
279
|
+
disabled: {
|
|
280
|
+
true: {
|
|
281
|
+
input: string;
|
|
282
|
+
prefixIcon: string;
|
|
283
|
+
suffixIcon: string;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
invalid: {
|
|
287
|
+
true: {
|
|
288
|
+
input: string;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
size: {
|
|
292
|
+
medium: {
|
|
293
|
+
prefixIcon: string;
|
|
294
|
+
suffixIcon: string;
|
|
295
|
+
input: string;
|
|
296
|
+
};
|
|
297
|
+
small: {
|
|
298
|
+
prefixIcon: string;
|
|
299
|
+
suffixIcon: string;
|
|
300
|
+
input: string;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
}, {
|
|
304
|
+
prefixIcon: string;
|
|
305
|
+
input: string;
|
|
306
|
+
suffixIcon: string;
|
|
307
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
308
|
+
disabled: {
|
|
309
|
+
true: {
|
|
310
|
+
input: string;
|
|
311
|
+
prefixIcon: string;
|
|
312
|
+
suffixIcon: string;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
invalid: {
|
|
316
|
+
true: {
|
|
317
|
+
input: string;
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
size: {
|
|
321
|
+
medium: {
|
|
322
|
+
prefixIcon: string;
|
|
323
|
+
suffixIcon: string;
|
|
324
|
+
input: string;
|
|
325
|
+
};
|
|
326
|
+
small: {
|
|
327
|
+
prefixIcon: string;
|
|
328
|
+
suffixIcon: string;
|
|
329
|
+
input: string;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
}, {
|
|
333
|
+
prefixIcon: string;
|
|
334
|
+
input: string;
|
|
335
|
+
suffixIcon: string;
|
|
336
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
337
|
+
disabled: {
|
|
338
|
+
true: {
|
|
339
|
+
input: string;
|
|
340
|
+
prefixIcon: string;
|
|
341
|
+
suffixIcon: string;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
invalid: {
|
|
345
|
+
true: {
|
|
346
|
+
input: string;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
size: {
|
|
350
|
+
medium: {
|
|
351
|
+
prefixIcon: string;
|
|
352
|
+
suffixIcon: string;
|
|
353
|
+
input: string;
|
|
354
|
+
};
|
|
355
|
+
small: {
|
|
356
|
+
prefixIcon: string;
|
|
357
|
+
suffixIcon: string;
|
|
358
|
+
input: string;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
}, {
|
|
362
|
+
disabled: {
|
|
363
|
+
true: {
|
|
364
|
+
input: string;
|
|
365
|
+
prefixIcon: string;
|
|
366
|
+
suffixIcon: string;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
invalid: {
|
|
370
|
+
true: {
|
|
371
|
+
input: string;
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
size: {
|
|
375
|
+
medium: {
|
|
376
|
+
prefixIcon: string;
|
|
377
|
+
suffixIcon: string;
|
|
378
|
+
input: string;
|
|
379
|
+
};
|
|
380
|
+
small: {
|
|
381
|
+
prefixIcon: string;
|
|
382
|
+
suffixIcon: string;
|
|
383
|
+
input: string;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
}>, unknown, unknown, undefined>>> & {
|
|
387
|
+
id?: string;
|
|
388
|
+
value?: string;
|
|
389
|
+
defaultValue?: string;
|
|
390
|
+
prefixIcon?: React.ElementType;
|
|
391
|
+
suffixIcon?: React.ElementType;
|
|
392
|
+
invalid?: boolean;
|
|
393
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
208
394
|
export default Input;
|
|
209
395
|
//# sourceMappingURL=input.d.ts.map
|
package/dist/ui/input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGrD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAqCxB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,GAClE,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAC/B,UAAU,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEJ,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SARF,MAAM;YACH,MAAM;mBACC,MAAM;iBACR,KAAK,CAAC,WAAW;iBACjB,KAAK,CAAC,WAAW;cACpB,OAAO;0CAqCpB,CAAC;AAGF,eAAe,KAAK,CAAC"}
|
package/dist/ui/search.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/ui/search.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/ui/search.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EAAmB,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAwC7E,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,GACnE,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACnC,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAEJ,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAHA,aAAa;0CAiDxB,CAAC;AAsCF,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED