@sellgar/kit 0.0.162 → 0.0.163

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sellgar/kit",
3
3
  "type": "module",
4
- "version": "0.0.162",
4
+ "version": "0.0.163",
5
5
  "description": "Sellgar kit",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -1,13 +1,15 @@
1
1
  import { default as React } from 'react';
2
2
  import { format, unformat } from '@react-input/number-format';
3
3
  import { IProps as IInputProps } from '../input/input.tsx';
4
- export interface IProps extends Omit<IInputProps, 'onChange'> {
5
- onChange: (event: React.ChangeEvent<HTMLInputElement>, unformatValue: string) => void;
4
+ export interface IProps extends Omit<IInputProps, 'onChange' | 'value' | 'defaultValue'> {
5
+ value?: string;
6
+ defaultValue?: string;
7
+ onChange: (value: string | undefined) => void;
6
8
  }
7
- export declare const InputNumeralComponent: React.FC<IProps>;
8
- type TInputNumeral = typeof InputNumeralComponent & {
9
+ export declare const InputAmountComponent: React.FC<IProps>;
10
+ type TInputAmount = typeof InputAmountComponent & {
9
11
  format: typeof format;
10
12
  unFormat: typeof unformat;
11
13
  };
12
- export declare const InputAmount: TInputNumeral;
14
+ export declare const InputAmount: TInputAmount;
13
15
  export {};