@prosperitainova/mirage-ui 1.0.49 → 1.0.51
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 +12 -6
- package/dist/cjs/types/lib/InputCurrency/InputCurrency.stories.d.ts +3 -4
- package/dist/cjs/types/lib/RadioGroup/RadioGroup.d.ts +8 -3
- package/dist/cjs/types/lib/ReturnButton/ReturnButton.stories.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/lib/InputCurrency/InputCurrency.d.ts +12 -6
- package/dist/esm/types/lib/InputCurrency/InputCurrency.stories.d.ts +3 -4
- package/dist/esm/types/lib/RadioGroup/RadioGroup.d.ts +8 -3
- package/dist/esm/types/lib/ReturnButton/ReturnButton.stories.d.ts +1 -0
- package/dist/index.d.ts +22 -22
- package/package.json +3 -2
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { InputHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
2
|
+
import "../../../src/theme/fonts/ProximaNova.css";
|
|
3
|
+
export type InputCurrencyProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
3
4
|
value?: string | number | boolean | readonly string[] | undefined;
|
|
4
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
name?: string;
|
|
7
5
|
error?: string | boolean;
|
|
8
6
|
success?: boolean;
|
|
9
7
|
helper?: string;
|
|
10
8
|
label?: string;
|
|
11
|
-
|
|
9
|
+
newPassword?: boolean;
|
|
10
|
+
newPasswordLevel?: string;
|
|
11
|
+
search?: boolean;
|
|
12
|
+
mask?: string;
|
|
12
13
|
required?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
13
15
|
type?: string;
|
|
16
|
+
onChange?: (e: any) => void;
|
|
17
|
+
maxLength?: number;
|
|
18
|
+
fontSize?: "normal" | "large";
|
|
19
|
+
prefix?: string;
|
|
14
20
|
};
|
|
15
21
|
declare const InputCurrency: (props: InputCurrencyProps) => JSX.Element;
|
|
16
22
|
export default InputCurrency;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { InputCurrencyProps } from "./InputCurrency";
|
|
3
2
|
import { Story } from "@storybook/react";
|
|
4
|
-
declare const
|
|
3
|
+
declare const InputNumberStories: {
|
|
5
4
|
title: string;
|
|
6
5
|
component: (props: InputCurrencyProps) => JSX.Element;
|
|
7
6
|
};
|
|
8
|
-
export default
|
|
9
|
-
export declare const
|
|
7
|
+
export default InputNumberStories;
|
|
8
|
+
export declare const Number: Story<InputCurrencyProps>;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
import { RadioProps } from "../RadioGroup/Radio";
|
|
1
|
+
import React, { HTMLAttributes } from "react";
|
|
3
2
|
import "../../../src/theme/fonts/ProximaNova.css";
|
|
4
3
|
import "bootstrap/dist/css/bootstrap.min.css";
|
|
4
|
+
export type OptionsProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
value: string;
|
|
8
|
+
setIndex?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
9
|
+
};
|
|
5
10
|
export type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
|
|
6
11
|
display: "row" | "column";
|
|
7
|
-
options:
|
|
12
|
+
options: OptionsProps[];
|
|
8
13
|
value?: string;
|
|
9
14
|
onChange?: (value: string, index: number) => void;
|
|
10
15
|
wrap?: boolean;
|