@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.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/lib/InputCurrency/InputCurrency.d.ts +3 -3
- package/dist/cjs/types/lib/InputToken/InputToken.d.ts +2 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/lib/InputCurrency/InputCurrency.d.ts +3 -3
- package/dist/esm/types/lib/InputToken/InputToken.d.ts +2 -1
- package/dist/index.d.ts +5 -4
- package/package.json +1 -1
|
@@ -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
|
|
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:
|
|
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
|
|
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:
|
|
274
|
+
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
274
275
|
maxLength?: number;
|
|
275
276
|
fontSize?: "normal" | "large";
|
|
276
277
|
name?: string;
|