@oc-digital/react-component-library 5.2.0-beta.1 → 5.2.0-beta.11
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.
|
@@ -3,3 +3,19 @@ export declare const Input: import("@emotion/styled").StyledComponent<{
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
6
|
+
export declare const NumericFormatInput: import("@emotion/styled").StyledComponent<import("react-number-format/types/types").InternalNumberFormatBase & {
|
|
7
|
+
thousandSeparator?: string | boolean | undefined;
|
|
8
|
+
decimalSeparator?: string | undefined;
|
|
9
|
+
allowedDecimalSeparators?: string[] | undefined;
|
|
10
|
+
thousandsGroupStyle?: "none" | "thousand" | "lakh" | "wan" | undefined;
|
|
11
|
+
decimalScale?: number | undefined;
|
|
12
|
+
fixedDecimalScale?: boolean | undefined;
|
|
13
|
+
allowNegative?: boolean | undefined;
|
|
14
|
+
allowLeadingZeros?: boolean | undefined;
|
|
15
|
+
suffix?: string | undefined;
|
|
16
|
+
prefix?: string | undefined;
|
|
17
|
+
} & Omit<import("react-number-format").InputAttributes, never> & Omit<unknown, "defaultValue" | "value" | "type" | "onChange" | "prefix" | "inputMode" | "onFocus" | "onBlur" | "onKeyDown" | "onMouseUp" | "ref" | "displayType" | "renderText" | "getInputRef" | "valueIsNumericString" | "onValueChange" | "isAllowed" | "isCharacterSame" | "thousandSeparator" | "decimalSeparator" | "allowedDecimalSeparators" | "thousandsGroupStyle" | "decimalScale" | "fixedDecimalScale" | "allowNegative" | "allowLeadingZeros" | "suffix"> & {
|
|
18
|
+
customInput?: import("react").ComponentType<unknown> | undefined;
|
|
19
|
+
} & {
|
|
20
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
+
}, {}, {}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { NumericFormatProps } from "react-number-format";
|
|
3
3
|
import { ITextFieldProps } from "./TextField.types";
|
|
4
4
|
declare const TextField: React.FC<ITextFieldProps>;
|
|
5
5
|
export default TextField;
|
|
6
|
-
interface INumberFormatProps extends Omit<
|
|
6
|
+
interface INumberFormatProps extends Omit<NumericFormatProps, "onChange"> {
|
|
7
7
|
onChange: (event: {
|
|
8
8
|
target: {
|
|
9
9
|
name: string;
|