@prosperitainova/mirage-ui 1.0.74 → 1.0.75

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;
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 = {
@@ -258,7 +258,7 @@ type TableProps = {
258
258
  declare const Table: (props: TableProps) => JSX.Element;
259
259
 
260
260
  type InputCurrencyProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
261
- value?: string | number;
261
+ value?: string;
262
262
  error?: string | boolean;
263
263
  success?: boolean;
264
264
  helper?: string;
@@ -270,7 +270,7 @@ type InputCurrencyProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAt
270
270
  required?: boolean;
271
271
  disabled?: boolean;
272
272
  type?: string;
273
- onChange?: (e: any) => void;
273
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
274
274
  maxLength?: number;
275
275
  fontSize?: "normal" | "large";
276
276
  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.75",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {