@sigep/react 1.1.0 → 1.1.1

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.d.mts CHANGED
@@ -1,9 +1,102 @@
1
1
  import * as react from 'react';
2
- import { ComponentProps, InputHTMLAttributes, ReactNode, TextareaHTMLAttributes } from 'react';
2
+ import { ComponentProps, ReactNode, InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
3
3
  import * as tailwind_variants from 'tailwind-variants';
4
4
  import { VariantProps } from 'tailwind-variants';
5
5
  import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
6
6
 
7
+ declare const avatar: tailwind_variants.TVReturnType<{
8
+ size: {
9
+ sm: string;
10
+ md: string;
11
+ lg: string;
12
+ xl: string;
13
+ };
14
+ variant: {
15
+ primary: string;
16
+ secondary: string;
17
+ outline: string;
18
+ };
19
+ }, undefined, "inline-flex items-center justify-center rounded-full font-medium select-none overflow-hidden", tailwind_variants_dist_config_js.TVConfig<{
20
+ size: {
21
+ sm: string;
22
+ md: string;
23
+ lg: string;
24
+ xl: string;
25
+ };
26
+ variant: {
27
+ primary: string;
28
+ secondary: string;
29
+ outline: string;
30
+ };
31
+ }, {
32
+ size: {
33
+ sm: string;
34
+ md: string;
35
+ lg: string;
36
+ xl: string;
37
+ };
38
+ variant: {
39
+ primary: string;
40
+ secondary: string;
41
+ outline: string;
42
+ };
43
+ }>, {
44
+ size: {
45
+ sm: string;
46
+ md: string;
47
+ lg: string;
48
+ xl: string;
49
+ };
50
+ variant: {
51
+ primary: string;
52
+ secondary: string;
53
+ outline: string;
54
+ };
55
+ }, undefined, tailwind_variants.TVReturnType<{
56
+ size: {
57
+ sm: string;
58
+ md: string;
59
+ lg: string;
60
+ xl: string;
61
+ };
62
+ variant: {
63
+ primary: string;
64
+ secondary: string;
65
+ outline: string;
66
+ };
67
+ }, undefined, "inline-flex items-center justify-center rounded-full font-medium select-none overflow-hidden", tailwind_variants_dist_config_js.TVConfig<{
68
+ size: {
69
+ sm: string;
70
+ md: string;
71
+ lg: string;
72
+ xl: string;
73
+ };
74
+ variant: {
75
+ primary: string;
76
+ secondary: string;
77
+ outline: string;
78
+ };
79
+ }, {
80
+ size: {
81
+ sm: string;
82
+ md: string;
83
+ lg: string;
84
+ xl: string;
85
+ };
86
+ variant: {
87
+ primary: string;
88
+ secondary: string;
89
+ outline: string;
90
+ };
91
+ }>, unknown, unknown, undefined>>;
92
+ type AvatarVariants = VariantProps<typeof avatar>;
93
+ interface AvatarProps extends ComponentProps<"div">, AvatarVariants {
94
+ name?: string;
95
+ src?: string;
96
+ alt?: string;
97
+ }
98
+ declare const Avatar: react.ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
99
+
7
100
  declare const button: tailwind_variants.TVReturnType<{
8
101
  variant: {
9
102
  primary: string;
@@ -94,6 +187,205 @@ interface ButtonProps extends ComponentProps<"button">, ButtonVariants {
94
187
  }
95
188
  declare const Button: react.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
96
189
 
190
+ declare const card: tailwind_variants.TVReturnType<{
191
+ variant: {
192
+ elevated: string;
193
+ outlined: string;
194
+ filled: string;
195
+ };
196
+ padding: {
197
+ none: string;
198
+ sm: string;
199
+ md: string;
200
+ lg: string;
201
+ };
202
+ }, undefined, "rounded-lg bg-white text-gray-900 overflow-hidden", tailwind_variants_dist_config_js.TVConfig<{
203
+ variant: {
204
+ elevated: string;
205
+ outlined: string;
206
+ filled: string;
207
+ };
208
+ padding: {
209
+ none: string;
210
+ sm: string;
211
+ md: string;
212
+ lg: string;
213
+ };
214
+ }, {
215
+ variant: {
216
+ elevated: string;
217
+ outlined: string;
218
+ filled: string;
219
+ };
220
+ padding: {
221
+ none: string;
222
+ sm: string;
223
+ md: string;
224
+ lg: string;
225
+ };
226
+ }>, {
227
+ variant: {
228
+ elevated: string;
229
+ outlined: string;
230
+ filled: string;
231
+ };
232
+ padding: {
233
+ none: string;
234
+ sm: string;
235
+ md: string;
236
+ lg: string;
237
+ };
238
+ }, undefined, tailwind_variants.TVReturnType<{
239
+ variant: {
240
+ elevated: string;
241
+ outlined: string;
242
+ filled: string;
243
+ };
244
+ padding: {
245
+ none: string;
246
+ sm: string;
247
+ md: string;
248
+ lg: string;
249
+ };
250
+ }, undefined, "rounded-lg bg-white text-gray-900 overflow-hidden", tailwind_variants_dist_config_js.TVConfig<{
251
+ variant: {
252
+ elevated: string;
253
+ outlined: string;
254
+ filled: string;
255
+ };
256
+ padding: {
257
+ none: string;
258
+ sm: string;
259
+ md: string;
260
+ lg: string;
261
+ };
262
+ }, {
263
+ variant: {
264
+ elevated: string;
265
+ outlined: string;
266
+ filled: string;
267
+ };
268
+ padding: {
269
+ none: string;
270
+ sm: string;
271
+ md: string;
272
+ lg: string;
273
+ };
274
+ }>, unknown, unknown, undefined>>;
275
+ type CardVariants = VariantProps<typeof card>;
276
+ interface CardProps extends ComponentProps<"div">, CardVariants {
277
+ header?: ReactNode;
278
+ footer?: ReactNode;
279
+ }
280
+ declare const Card: react.ForwardRefExoticComponent<Omit<CardProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
281
+
282
+ declare const modal: tailwind_variants.TVReturnType<{
283
+ size: {
284
+ sm: string;
285
+ md: string;
286
+ lg: string;
287
+ full: string;
288
+ };
289
+ }, undefined, "relative flex flex-col rounded-lg bg-white text-gray-900 shadow-xl overflow-hidden", tailwind_variants_dist_config_js.TVConfig<{
290
+ size: {
291
+ sm: string;
292
+ md: string;
293
+ lg: string;
294
+ full: string;
295
+ };
296
+ }, {
297
+ size: {
298
+ sm: string;
299
+ md: string;
300
+ lg: string;
301
+ full: string;
302
+ };
303
+ }>, {
304
+ size: {
305
+ sm: string;
306
+ md: string;
307
+ lg: string;
308
+ full: string;
309
+ };
310
+ }, undefined, tailwind_variants.TVReturnType<{
311
+ size: {
312
+ sm: string;
313
+ md: string;
314
+ lg: string;
315
+ full: string;
316
+ };
317
+ }, undefined, "relative flex flex-col rounded-lg bg-white text-gray-900 shadow-xl overflow-hidden", tailwind_variants_dist_config_js.TVConfig<{
318
+ size: {
319
+ sm: string;
320
+ md: string;
321
+ lg: string;
322
+ full: string;
323
+ };
324
+ }, {
325
+ size: {
326
+ sm: string;
327
+ md: string;
328
+ lg: string;
329
+ full: string;
330
+ };
331
+ }>, unknown, unknown, undefined>>;
332
+ type ModalVariants = VariantProps<typeof modal>;
333
+ interface ModalProps extends Omit<ComponentProps<"div">, "title">, ModalVariants {
334
+ isOpen: boolean;
335
+ onClose: () => void;
336
+ title?: ReactNode;
337
+ footer?: ReactNode;
338
+ }
339
+ declare const Modal: react.ForwardRefExoticComponent<Omit<ModalProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
340
+
341
+ type Placement = "top" | "bottom" | "left" | "right";
342
+ declare const tooltip: tailwind_variants.TVReturnType<{
343
+ variant: {
344
+ dark: string;
345
+ light: string;
346
+ };
347
+ }, undefined, "fixed z-[999999] pointer-events-none", tailwind_variants_dist_config_js.TVConfig<{
348
+ variant: {
349
+ dark: string;
350
+ light: string;
351
+ };
352
+ }, {
353
+ variant: {
354
+ dark: string;
355
+ light: string;
356
+ };
357
+ }>, {
358
+ variant: {
359
+ dark: string;
360
+ light: string;
361
+ };
362
+ }, undefined, tailwind_variants.TVReturnType<{
363
+ variant: {
364
+ dark: string;
365
+ light: string;
366
+ };
367
+ }, undefined, "fixed z-[999999] pointer-events-none", tailwind_variants_dist_config_js.TVConfig<{
368
+ variant: {
369
+ dark: string;
370
+ light: string;
371
+ };
372
+ }, {
373
+ variant: {
374
+ dark: string;
375
+ light: string;
376
+ };
377
+ }>, unknown, unknown, undefined>>;
378
+ type TooltipVariants = VariantProps<typeof tooltip>;
379
+ interface TooltipProps extends Omit<ComponentProps<"span">, "content">, TooltipVariants {
380
+ content: ReactNode;
381
+ placement?: Placement;
382
+ offset?: number;
383
+ disabled?: boolean;
384
+ delayShow?: number;
385
+ delayHide?: number;
386
+ }
387
+ declare const Tooltip: react.ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & react.RefAttributes<HTMLSpanElement>>;
388
+
97
389
  interface InputBaseProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> {
98
390
  label?: string;
99
391
  error?: boolean;
@@ -234,4 +526,4 @@ declare function unmask(value: string): string;
234
526
  declare function maskCurrency(value: number, prefix?: string, decimalScale?: number): string;
235
527
  declare function unmaskCurrency(value: string): number;
236
528
 
237
- export { Button, type ButtonProps, type InputBaseProps, InputCNPJ, type InputCNPJProps, InputCPF, type InputCPFProps, InputCep, type InputCepProps, InputCheckbox, type InputCheckboxProps, InputCurrency, type InputCurrencyProps, InputEmail, type InputEmailProps, InputNumber, type InputNumberProps, InputPassword, type InputPasswordProps, InputPhone, type InputPhoneProps, InputRadio, type InputRadioOption, type InputRadioProps, InputString, type InputStringProps, InputWrapper, Textarea, type TextareaProps, button, maskCEP, maskCNPJ, maskCPF, maskCurrency, maskPhone, unmask, unmaskCurrency };
529
+ export { Avatar, type AvatarProps, Button, type ButtonProps, Card, type CardProps, type InputBaseProps, InputCNPJ, type InputCNPJProps, InputCPF, type InputCPFProps, InputCep, type InputCepProps, InputCheckbox, type InputCheckboxProps, InputCurrency, type InputCurrencyProps, InputEmail, type InputEmailProps, InputNumber, type InputNumberProps, InputPassword, type InputPasswordProps, InputPhone, type InputPhoneProps, InputRadio, type InputRadioOption, type InputRadioProps, InputString, type InputStringProps, InputWrapper, Modal, type ModalProps, Textarea, type TextareaProps, Tooltip, type TooltipProps as TooltipComponentProps, avatar, button, card, maskCEP, maskCNPJ, maskCPF, maskCurrency, maskPhone, modal, tooltip, unmask, unmaskCurrency };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,102 @@
1
1
  import * as react from 'react';
2
- import { ComponentProps, InputHTMLAttributes, ReactNode, TextareaHTMLAttributes } from 'react';
2
+ import { ComponentProps, ReactNode, InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
3
3
  import * as tailwind_variants from 'tailwind-variants';
4
4
  import { VariantProps } from 'tailwind-variants';
5
5
  import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
6
6
 
7
+ declare const avatar: tailwind_variants.TVReturnType<{
8
+ size: {
9
+ sm: string;
10
+ md: string;
11
+ lg: string;
12
+ xl: string;
13
+ };
14
+ variant: {
15
+ primary: string;
16
+ secondary: string;
17
+ outline: string;
18
+ };
19
+ }, undefined, "inline-flex items-center justify-center rounded-full font-medium select-none overflow-hidden", tailwind_variants_dist_config_js.TVConfig<{
20
+ size: {
21
+ sm: string;
22
+ md: string;
23
+ lg: string;
24
+ xl: string;
25
+ };
26
+ variant: {
27
+ primary: string;
28
+ secondary: string;
29
+ outline: string;
30
+ };
31
+ }, {
32
+ size: {
33
+ sm: string;
34
+ md: string;
35
+ lg: string;
36
+ xl: string;
37
+ };
38
+ variant: {
39
+ primary: string;
40
+ secondary: string;
41
+ outline: string;
42
+ };
43
+ }>, {
44
+ size: {
45
+ sm: string;
46
+ md: string;
47
+ lg: string;
48
+ xl: string;
49
+ };
50
+ variant: {
51
+ primary: string;
52
+ secondary: string;
53
+ outline: string;
54
+ };
55
+ }, undefined, tailwind_variants.TVReturnType<{
56
+ size: {
57
+ sm: string;
58
+ md: string;
59
+ lg: string;
60
+ xl: string;
61
+ };
62
+ variant: {
63
+ primary: string;
64
+ secondary: string;
65
+ outline: string;
66
+ };
67
+ }, undefined, "inline-flex items-center justify-center rounded-full font-medium select-none overflow-hidden", tailwind_variants_dist_config_js.TVConfig<{
68
+ size: {
69
+ sm: string;
70
+ md: string;
71
+ lg: string;
72
+ xl: string;
73
+ };
74
+ variant: {
75
+ primary: string;
76
+ secondary: string;
77
+ outline: string;
78
+ };
79
+ }, {
80
+ size: {
81
+ sm: string;
82
+ md: string;
83
+ lg: string;
84
+ xl: string;
85
+ };
86
+ variant: {
87
+ primary: string;
88
+ secondary: string;
89
+ outline: string;
90
+ };
91
+ }>, unknown, unknown, undefined>>;
92
+ type AvatarVariants = VariantProps<typeof avatar>;
93
+ interface AvatarProps extends ComponentProps<"div">, AvatarVariants {
94
+ name?: string;
95
+ src?: string;
96
+ alt?: string;
97
+ }
98
+ declare const Avatar: react.ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
99
+
7
100
  declare const button: tailwind_variants.TVReturnType<{
8
101
  variant: {
9
102
  primary: string;
@@ -94,6 +187,205 @@ interface ButtonProps extends ComponentProps<"button">, ButtonVariants {
94
187
  }
95
188
  declare const Button: react.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
96
189
 
190
+ declare const card: tailwind_variants.TVReturnType<{
191
+ variant: {
192
+ elevated: string;
193
+ outlined: string;
194
+ filled: string;
195
+ };
196
+ padding: {
197
+ none: string;
198
+ sm: string;
199
+ md: string;
200
+ lg: string;
201
+ };
202
+ }, undefined, "rounded-lg bg-white text-gray-900 overflow-hidden", tailwind_variants_dist_config_js.TVConfig<{
203
+ variant: {
204
+ elevated: string;
205
+ outlined: string;
206
+ filled: string;
207
+ };
208
+ padding: {
209
+ none: string;
210
+ sm: string;
211
+ md: string;
212
+ lg: string;
213
+ };
214
+ }, {
215
+ variant: {
216
+ elevated: string;
217
+ outlined: string;
218
+ filled: string;
219
+ };
220
+ padding: {
221
+ none: string;
222
+ sm: string;
223
+ md: string;
224
+ lg: string;
225
+ };
226
+ }>, {
227
+ variant: {
228
+ elevated: string;
229
+ outlined: string;
230
+ filled: string;
231
+ };
232
+ padding: {
233
+ none: string;
234
+ sm: string;
235
+ md: string;
236
+ lg: string;
237
+ };
238
+ }, undefined, tailwind_variants.TVReturnType<{
239
+ variant: {
240
+ elevated: string;
241
+ outlined: string;
242
+ filled: string;
243
+ };
244
+ padding: {
245
+ none: string;
246
+ sm: string;
247
+ md: string;
248
+ lg: string;
249
+ };
250
+ }, undefined, "rounded-lg bg-white text-gray-900 overflow-hidden", tailwind_variants_dist_config_js.TVConfig<{
251
+ variant: {
252
+ elevated: string;
253
+ outlined: string;
254
+ filled: string;
255
+ };
256
+ padding: {
257
+ none: string;
258
+ sm: string;
259
+ md: string;
260
+ lg: string;
261
+ };
262
+ }, {
263
+ variant: {
264
+ elevated: string;
265
+ outlined: string;
266
+ filled: string;
267
+ };
268
+ padding: {
269
+ none: string;
270
+ sm: string;
271
+ md: string;
272
+ lg: string;
273
+ };
274
+ }>, unknown, unknown, undefined>>;
275
+ type CardVariants = VariantProps<typeof card>;
276
+ interface CardProps extends ComponentProps<"div">, CardVariants {
277
+ header?: ReactNode;
278
+ footer?: ReactNode;
279
+ }
280
+ declare const Card: react.ForwardRefExoticComponent<Omit<CardProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
281
+
282
+ declare const modal: tailwind_variants.TVReturnType<{
283
+ size: {
284
+ sm: string;
285
+ md: string;
286
+ lg: string;
287
+ full: string;
288
+ };
289
+ }, undefined, "relative flex flex-col rounded-lg bg-white text-gray-900 shadow-xl overflow-hidden", tailwind_variants_dist_config_js.TVConfig<{
290
+ size: {
291
+ sm: string;
292
+ md: string;
293
+ lg: string;
294
+ full: string;
295
+ };
296
+ }, {
297
+ size: {
298
+ sm: string;
299
+ md: string;
300
+ lg: string;
301
+ full: string;
302
+ };
303
+ }>, {
304
+ size: {
305
+ sm: string;
306
+ md: string;
307
+ lg: string;
308
+ full: string;
309
+ };
310
+ }, undefined, tailwind_variants.TVReturnType<{
311
+ size: {
312
+ sm: string;
313
+ md: string;
314
+ lg: string;
315
+ full: string;
316
+ };
317
+ }, undefined, "relative flex flex-col rounded-lg bg-white text-gray-900 shadow-xl overflow-hidden", tailwind_variants_dist_config_js.TVConfig<{
318
+ size: {
319
+ sm: string;
320
+ md: string;
321
+ lg: string;
322
+ full: string;
323
+ };
324
+ }, {
325
+ size: {
326
+ sm: string;
327
+ md: string;
328
+ lg: string;
329
+ full: string;
330
+ };
331
+ }>, unknown, unknown, undefined>>;
332
+ type ModalVariants = VariantProps<typeof modal>;
333
+ interface ModalProps extends Omit<ComponentProps<"div">, "title">, ModalVariants {
334
+ isOpen: boolean;
335
+ onClose: () => void;
336
+ title?: ReactNode;
337
+ footer?: ReactNode;
338
+ }
339
+ declare const Modal: react.ForwardRefExoticComponent<Omit<ModalProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
340
+
341
+ type Placement = "top" | "bottom" | "left" | "right";
342
+ declare const tooltip: tailwind_variants.TVReturnType<{
343
+ variant: {
344
+ dark: string;
345
+ light: string;
346
+ };
347
+ }, undefined, "fixed z-[999999] pointer-events-none", tailwind_variants_dist_config_js.TVConfig<{
348
+ variant: {
349
+ dark: string;
350
+ light: string;
351
+ };
352
+ }, {
353
+ variant: {
354
+ dark: string;
355
+ light: string;
356
+ };
357
+ }>, {
358
+ variant: {
359
+ dark: string;
360
+ light: string;
361
+ };
362
+ }, undefined, tailwind_variants.TVReturnType<{
363
+ variant: {
364
+ dark: string;
365
+ light: string;
366
+ };
367
+ }, undefined, "fixed z-[999999] pointer-events-none", tailwind_variants_dist_config_js.TVConfig<{
368
+ variant: {
369
+ dark: string;
370
+ light: string;
371
+ };
372
+ }, {
373
+ variant: {
374
+ dark: string;
375
+ light: string;
376
+ };
377
+ }>, unknown, unknown, undefined>>;
378
+ type TooltipVariants = VariantProps<typeof tooltip>;
379
+ interface TooltipProps extends Omit<ComponentProps<"span">, "content">, TooltipVariants {
380
+ content: ReactNode;
381
+ placement?: Placement;
382
+ offset?: number;
383
+ disabled?: boolean;
384
+ delayShow?: number;
385
+ delayHide?: number;
386
+ }
387
+ declare const Tooltip: react.ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & react.RefAttributes<HTMLSpanElement>>;
388
+
97
389
  interface InputBaseProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> {
98
390
  label?: string;
99
391
  error?: boolean;
@@ -234,4 +526,4 @@ declare function unmask(value: string): string;
234
526
  declare function maskCurrency(value: number, prefix?: string, decimalScale?: number): string;
235
527
  declare function unmaskCurrency(value: string): number;
236
528
 
237
- export { Button, type ButtonProps, type InputBaseProps, InputCNPJ, type InputCNPJProps, InputCPF, type InputCPFProps, InputCep, type InputCepProps, InputCheckbox, type InputCheckboxProps, InputCurrency, type InputCurrencyProps, InputEmail, type InputEmailProps, InputNumber, type InputNumberProps, InputPassword, type InputPasswordProps, InputPhone, type InputPhoneProps, InputRadio, type InputRadioOption, type InputRadioProps, InputString, type InputStringProps, InputWrapper, Textarea, type TextareaProps, button, maskCEP, maskCNPJ, maskCPF, maskCurrency, maskPhone, unmask, unmaskCurrency };
529
+ export { Avatar, type AvatarProps, Button, type ButtonProps, Card, type CardProps, type InputBaseProps, InputCNPJ, type InputCNPJProps, InputCPF, type InputCPFProps, InputCep, type InputCepProps, InputCheckbox, type InputCheckboxProps, InputCurrency, type InputCurrencyProps, InputEmail, type InputEmailProps, InputNumber, type InputNumberProps, InputPassword, type InputPasswordProps, InputPhone, type InputPhoneProps, InputRadio, type InputRadioOption, type InputRadioProps, InputString, type InputStringProps, InputWrapper, Modal, type ModalProps, Textarea, type TextareaProps, Tooltip, type TooltipProps as TooltipComponentProps, avatar, button, card, maskCEP, maskCNPJ, maskCPF, maskCurrency, maskPhone, modal, tooltip, unmask, unmaskCurrency };