numeric-input-react 1.0.21 → 1.0.23

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.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './numeric-input';
2
+ export * from './numeric-input.types';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA"}
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './numeric-input';
2
+ export * from './numeric-input.types';
2
3
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA"}
@@ -1,18 +1,4 @@
1
- import { type ComponentProps } from 'react';
2
- type NumericInputValue = {
3
- value: number;
4
- formattedValue: string;
5
- };
6
- type NumericInputProps = ComponentProps<'input'> & {
7
- onValueChange: (valueObject: NumericInputValue) => void;
8
- separator?: string;
9
- allowDecimal?: boolean;
10
- allowNegative?: boolean;
11
- minValue?: number;
12
- maxValue?: number;
13
- maxDecimalPlaces?: number;
14
- };
15
- declare function NumericInput({ value, className, separator, onValueChange, onCompositionStart, onCompositionEnd, onBlur, maxLength, allowDecimal, allowNegative, minValue, maxValue, maxDecimalPlaces, ...props }: NumericInputProps): import("react/jsx-runtime").JSX.Element;
1
+ import type { NumericInputProps } from './numeric-input.types';
2
+ declare const NumericInput: ({ value, maxValue, minValue, separator, maxLength, className, maxDecimalPlaces, allowDecimal, allowNegative, onBlur, onValueChange, onCompositionEnd, onCompositionStart, ...props }: NumericInputProps) => import("react/jsx-runtime").JSX.Element;
16
3
  export { NumericInput };
17
- export type { NumericInputValue, NumericInputProps };
18
4
  //# sourceMappingURL=numeric-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"numeric-input.d.ts","sourceRoot":"","sources":["../src/numeric-input.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,cAAc,EAQpB,MAAM,OAAO,CAAA;AAEd,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,KAAK,iBAAiB,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG;IACjD,aAAa,EAAE,CAAC,WAAW,EAAE,iBAAiB,KAAK,IAAI,CAAA;IACvD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA;AAsHD,iBAAS,YAAY,CAAC,EACpB,KAAK,EACL,SAAS,EACT,SAAS,EACT,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,YAAoB,EACpB,aAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,iBAAiB,2CA2oBnB;AAED,OAAO,EAAE,YAAY,EAAE,CAAA;AAEvB,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAA"}
1
+ {"version":3,"file":"numeric-input.d.ts","sourceRoot":"","sources":["../src/numeric-input.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAE9D,QAAA,MAAM,YAAY,GAAI,sLAenB,iBAAiB,4CA8CnB,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}