infinity-forge 5.1.4 → 5.1.5
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.
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { InputProps } from '../interfaces.js';
|
|
2
|
-
export
|
|
2
|
+
export type InputCurrencyProps = {
|
|
3
|
+
decimalLimit?: number;
|
|
3
4
|
errorMessageMax?: (value: string) => string;
|
|
4
|
-
}
|
|
5
|
+
};
|
|
6
|
+
export declare function InputCurrency(props: InputProps & InputCurrencyProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -51,7 +51,7 @@ function InputCurrency(props) {
|
|
|
51
51
|
}, 500);
|
|
52
52
|
}
|
|
53
53
|
}, []);
|
|
54
|
-
return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(components_1.CurrencyInput, __assign({}, props, { prefix: typeof (props === null || props === void 0 ? void 0 : props.prefix) !== 'string' ? 'R$ ' : props.prefix, decimalsLimit: 2, decimalSeparator: ',', groupSeparator: '.', value: value, onValueChange: handleChange, readOnly: props.readOnly, max: props.max })) })));
|
|
54
|
+
return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(components_1.CurrencyInput, __assign({}, props, { prefix: typeof (props === null || props === void 0 ? void 0 : props.prefix) !== 'string' ? 'R$ ' : props.prefix, decimalsLimit: (props === null || props === void 0 ? void 0 : props.decimalLimit) || 2, decimalSeparator: ',', groupSeparator: '.', value: value, onValueChange: handleChange, readOnly: props.readOnly, max: props.max })) })));
|
|
55
55
|
}
|
|
56
56
|
exports.InputCurrency = InputCurrency;
|
|
57
57
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-currency/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+BAAiC;AAE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C;AAtDD,sCAsDC"}
|
|
@@ -10,6 +10,7 @@ import { StylesConfig } from 'react-select';
|
|
|
10
10
|
import { InputMaskProps } from './input-mask/index.js';
|
|
11
11
|
import { InputManagerProps } from './input-manager/index.js';
|
|
12
12
|
import { IInputDatePicker } from './input-date-picker/index.js';
|
|
13
|
+
import { InputCurrencyProps } from './input-currency/index.js';
|
|
13
14
|
export type Option = {
|
|
14
15
|
label: string;
|
|
15
16
|
value?: string | number;
|
|
@@ -73,5 +74,5 @@ export interface IOptionSelect {
|
|
|
73
74
|
label: string;
|
|
74
75
|
value: string;
|
|
75
76
|
}
|
|
76
|
-
export type InputProps = JSX.IntrinsicElements['input'] & JSX.IntrinsicElements['textarea'] & Props & Partial<TranslateProps> & Partial<ISelectProps> & Partial<IInputDatePicker> & Partial<InputManagerProps> & Partial<InputMaskProps>;
|
|
77
|
+
export type InputProps = JSX.IntrinsicElements['input'] & JSX.IntrinsicElements['textarea'] & Props & Partial<TranslateProps> & Partial<ISelectProps> & Partial<IInputDatePicker> & Partial<InputManagerProps> & Partial<InputMaskProps> & Partial<InputCurrencyProps>;
|
|
77
78
|
export {};
|