@prosperitainova/mirage-ui 1.0.74 → 1.0.76

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,7 +1,7 @@
1
- import { InputHTMLAttributes, TextareaHTMLAttributes } from "react";
1
+ import { ChangeEvent, InputHTMLAttributes, TextareaHTMLAttributes } from "react";
2
2
  import "../../../src/theme/fonts/ProximaNova.css";
3
3
  export type InputCurrencyProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
4
- value?: string | number;
4
+ value?: string;
5
5
  error?: string | boolean;
6
6
  success?: boolean;
7
7
  helper?: string;
@@ -13,7 +13,7 @@ export type InputCurrencyProps = InputHTMLAttributes<HTMLInputElement> & Textare
13
13
  required?: boolean;
14
14
  disabled?: boolean;
15
15
  type?: string;
16
- onChange?: (e: any) => void;
16
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
17
17
  maxLength?: number;
18
18
  fontSize?: "normal" | "large";
19
19
  name?: string;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export type InputTokenProps = {
3
3
  inputsNumber?: number;
4
+ onInputChange?: (value: string) => void;
4
5
  };
5
- declare function InputToken({ inputsNumber: numberOfInputs }: InputTokenProps): JSX.Element;
6
+ declare function InputToken({ inputsNumber: numberOfInputs, onInputChange, }: InputTokenProps): JSX.Element;
6
7
  export default InputToken;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import React, { ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, LiHTMLAttributes } from 'react';
2
+ import React, { ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, ChangeEvent, LiHTMLAttributes } from 'react';
3
3
  import { Props } from 'react-select';
4
4
 
5
5
  type ItemsProps = {
@@ -241,8 +241,9 @@ declare const ProgressBar: (props: ProgressBarProps) => JSX.Element;
241
241
 
242
242
  type InputTokenProps = {
243
243
  inputsNumber?: number;
244
+ onInputChange?: (value: string) => void;
244
245
  };
245
- declare function InputToken({ inputsNumber: numberOfInputs }: InputTokenProps): JSX.Element;
246
+ declare function InputToken({ inputsNumber: numberOfInputs, onInputChange, }: InputTokenProps): JSX.Element;
246
247
 
247
248
  type TableColumn<T = any> = {
248
249
  label: string;
@@ -258,7 +259,7 @@ type TableProps = {
258
259
  declare const Table: (props: TableProps) => JSX.Element;
259
260
 
260
261
  type InputCurrencyProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
261
- value?: string | number;
262
+ value?: string;
262
263
  error?: string | boolean;
263
264
  success?: boolean;
264
265
  helper?: string;
@@ -270,7 +271,7 @@ type InputCurrencyProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAt
270
271
  required?: boolean;
271
272
  disabled?: boolean;
272
273
  type?: string;
273
- onChange?: (e: any) => void;
274
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
274
275
  maxLength?: number;
275
276
  fontSize?: "normal" | "large";
276
277
  name?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosperitainova/mirage-ui",
3
- "version": "1.0.74",
3
+ "version": "1.0.76",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {