@iclips/ui 1.0.70 → 1.1.0
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/components/ui/number-input.d.ts +61 -0
- package/dist/components/ui/number-input.d.ts.map +1 -1
- package/dist/index.cjs +38 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6393 -6307
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,78 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
export interface NumberInputProps extends Omit<React.ComponentProps<"input">, "type" | "onChange" | "value"> {
|
|
3
|
+
/**
|
|
4
|
+
* Valor controlado
|
|
5
|
+
*/
|
|
3
6
|
value?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Valor padrão inicial
|
|
9
|
+
*/
|
|
4
10
|
defaultValue?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Callback quando o valor muda
|
|
13
|
+
*/
|
|
5
14
|
onChange?: (value: number) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Valor mínimo permitido
|
|
17
|
+
*/
|
|
6
18
|
min?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Valor máximo permitido
|
|
21
|
+
*/
|
|
7
22
|
max?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Incremento/decremento
|
|
25
|
+
* @default 1
|
|
26
|
+
*/
|
|
8
27
|
step?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Casas decimais para exibição
|
|
30
|
+
* @default 0
|
|
31
|
+
*/
|
|
9
32
|
precision?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Opções de formatação Intl.NumberFormat
|
|
35
|
+
*/
|
|
10
36
|
formatOptions?: Intl.NumberFormatOptions;
|
|
37
|
+
/**
|
|
38
|
+
* Locale para formatação
|
|
39
|
+
* @default "pt-BR"
|
|
40
|
+
*/
|
|
11
41
|
locale?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Permite incrementar/decrementar com scroll do mouse
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
12
46
|
allowMouseWheel?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Ajusta valor dentro dos limites ao perder foco
|
|
49
|
+
* @default true
|
|
50
|
+
*/
|
|
13
51
|
clampValueOnBlur?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Mantém valor sempre dentro do range
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
14
56
|
keepWithinRange?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Mostra os botões de incremento/decremento
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
showButtons?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Layout dos botões
|
|
64
|
+
* @default "vertical"
|
|
65
|
+
*/
|
|
66
|
+
buttonLayout?: "vertical" | "horizontal" | "stacked";
|
|
67
|
+
/**
|
|
68
|
+
* Posição dos botões (apenas para layout vertical)
|
|
69
|
+
* @default "right"
|
|
70
|
+
*/
|
|
71
|
+
buttonPosition?: "right" | "left";
|
|
72
|
+
/**
|
|
73
|
+
* Classes CSS para o container externo
|
|
74
|
+
*/
|
|
75
|
+
containerClassName?: string;
|
|
15
76
|
}
|
|
16
77
|
declare const NumberInput: React.ForwardRefExoticComponent<Omit<NumberInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
17
78
|
export { NumberInput };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../../src/components/ui/number-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC;IAC1G,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE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