1 |
|
2 | export declare const NumberInputActionTypes: {
|
3 | readonly clamp: "numberInput:clamp";
|
4 | readonly inputChange: "numberInput:inputChange";
|
5 | readonly increment: "numberInput:increment";
|
6 | readonly decrement: "numberInput:decrement";
|
7 | readonly decrementToMin: "numberInput:decrementToMin";
|
8 | readonly incrementToMax: "numberInput:incrementToMax";
|
9 | readonly resetInputValue: "numberInput:resetInputValue";
|
10 | };
|
11 | interface NumberInputClampAction {
|
12 | type: typeof NumberInputActionTypes.clamp;
|
13 | event: React.FocusEvent<HTMLInputElement>;
|
14 | inputValue: string;
|
15 | }
|
16 | interface NumberInputInputChangeAction {
|
17 | type: typeof NumberInputActionTypes.inputChange;
|
18 | event: React.ChangeEvent<HTMLInputElement>;
|
19 | inputValue: string;
|
20 | }
|
21 | interface NumberInputIncrementAction {
|
22 | type: typeof NumberInputActionTypes.increment;
|
23 | event: React.PointerEvent | React.KeyboardEvent;
|
24 | applyMultiplier: boolean;
|
25 | }
|
26 | interface NumberInputDecrementAction {
|
27 | type: typeof NumberInputActionTypes.decrement;
|
28 | event: React.PointerEvent | React.KeyboardEvent;
|
29 | applyMultiplier: boolean;
|
30 | }
|
31 | interface NumberInputIncrementToMaxAction {
|
32 | type: typeof NumberInputActionTypes.incrementToMax;
|
33 | event: React.KeyboardEvent;
|
34 | }
|
35 | interface NumberInputDecrementToMinAction {
|
36 | type: typeof NumberInputActionTypes.decrementToMin;
|
37 | event: React.KeyboardEvent;
|
38 | }
|
39 | interface NumberInputResetInputValueAction {
|
40 | type: typeof NumberInputActionTypes.resetInputValue;
|
41 | }
|
42 | export type NumberInputAction = NumberInputClampAction | NumberInputInputChangeAction | NumberInputIncrementAction | NumberInputDecrementAction | NumberInputIncrementToMaxAction | NumberInputDecrementToMinAction | NumberInputResetInputValueAction;
|
43 | export {};
|