@prosperitainova/mirage-ui 1.0.21 → 1.0.23
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 +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/lib/Breadcrumb/Breadcrumb.d.ts +0 -1
- package/dist/cjs/types/lib/Checkbox/Checkbox.d.ts +0 -1
- package/dist/cjs/types/lib/Checkbox/Checkbox.stories.d.ts +0 -1
- package/dist/cjs/types/lib/Dropzone/Dropzone.d.ts +3 -4
- package/dist/cjs/types/lib/InputToken/InputToken.d.ts +6 -0
- package/dist/cjs/types/lib/InputToken/InputToken.stories.d.ts +8 -0
- package/dist/cjs/types/lib/InputToken/index.d.ts +1 -0
- package/dist/cjs/types/lib/InteractiveModal/TesterInteractiveModal.d.ts +0 -1
- package/dist/cjs/types/lib/MaskInput/MaskInput.d.ts +12 -0
- package/dist/cjs/types/lib/MaskInput/MaskInput.stories.d.ts +8 -0
- package/dist/cjs/types/lib/MaskInput/index.d.ts +1 -0
- package/dist/cjs/types/lib/NotificationsBar/NotificationsBar.d.ts +4 -1
- package/dist/cjs/types/lib/NotificationsBar/NotificationsBar.stories.d.ts +0 -1
- package/dist/cjs/types/lib/ProgressBar/ProgressBar.d.ts +6 -0
- package/dist/cjs/types/lib/ProgressBar/ProgressBar.stories.d.ts +8 -0
- package/dist/cjs/types/lib/ProgressBar/index.d.ts +1 -0
- package/dist/cjs/types/lib/SideBar/SideBar.d.ts +0 -2
- package/dist/cjs/types/lib/SideBar/SideBar.stories.d.ts +0 -1
- package/dist/cjs/types/lib/Toast/TesterToast.d.ts +0 -1
- package/dist/cjs/types/lib/Toast/TesterToast.stories.d.ts +0 -1
- package/dist/cjs/types/lib/VerifyCodeInput/VerifyCodeInput.d.ts +6 -0
- package/dist/cjs/types/lib/VerifyCodeInput/VerifyCodeInput.stories.d.ts +8 -0
- package/dist/cjs/types/lib/VerifyCodeInput/index.d.ts +1 -0
- package/dist/cjs/types/lib/index.d.ts +3 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/lib/Breadcrumb/Breadcrumb.d.ts +0 -1
- package/dist/esm/types/lib/Checkbox/Checkbox.d.ts +0 -1
- package/dist/esm/types/lib/Checkbox/Checkbox.stories.d.ts +0 -1
- package/dist/esm/types/lib/Dropzone/Dropzone.d.ts +3 -4
- package/dist/esm/types/lib/InputToken/InputToken.d.ts +6 -0
- package/dist/esm/types/lib/InputToken/InputToken.stories.d.ts +8 -0
- package/dist/esm/types/lib/InputToken/index.d.ts +1 -0
- package/dist/esm/types/lib/InteractiveModal/TesterInteractiveModal.d.ts +0 -1
- package/dist/esm/types/lib/MaskInput/MaskInput.d.ts +12 -0
- package/dist/esm/types/lib/MaskInput/MaskInput.stories.d.ts +8 -0
- package/dist/esm/types/lib/MaskInput/index.d.ts +1 -0
- package/dist/esm/types/lib/NotificationsBar/NotificationsBar.d.ts +4 -1
- package/dist/esm/types/lib/NotificationsBar/NotificationsBar.stories.d.ts +0 -1
- package/dist/esm/types/lib/ProgressBar/ProgressBar.d.ts +6 -0
- package/dist/esm/types/lib/ProgressBar/ProgressBar.stories.d.ts +8 -0
- package/dist/esm/types/lib/ProgressBar/index.d.ts +1 -0
- package/dist/esm/types/lib/SideBar/SideBar.d.ts +0 -2
- package/dist/esm/types/lib/SideBar/SideBar.stories.d.ts +0 -1
- package/dist/esm/types/lib/Toast/TesterToast.d.ts +0 -1
- package/dist/esm/types/lib/Toast/TesterToast.stories.d.ts +0 -1
- package/dist/esm/types/lib/VerifyCodeInput/VerifyCodeInput.d.ts +6 -0
- package/dist/esm/types/lib/VerifyCodeInput/VerifyCodeInput.stories.d.ts +8 -0
- package/dist/esm/types/lib/VerifyCodeInput/index.d.ts +1 -0
- package/dist/esm/types/lib/index.d.ts +3 -0
- package/dist/index.d.ts +31 -7
- package/package.json +3 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import "../../../src/theme/fonts/ProximaNova.css";
|
|
3
2
|
export type DropzoneProps = {
|
|
4
|
-
error
|
|
5
|
-
helper
|
|
6
|
-
onFilesChanged
|
|
3
|
+
error?: string;
|
|
4
|
+
helper?: string;
|
|
5
|
+
onFilesChanged?: (files: File[]) => void;
|
|
7
6
|
};
|
|
8
7
|
declare const Dropzone: (props: DropzoneProps) => JSX.Element;
|
|
9
8
|
export default Dropzone;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import InputToken, { InputTokenProps } from "./InputToken";
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
declare const InputTokenStories: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof InputToken;
|
|
6
|
+
};
|
|
7
|
+
export default InputTokenStories;
|
|
8
|
+
export declare const Primary: Story<InputTokenProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./InputToken";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from "react";
|
|
2
|
+
import "../../../src/theme/fonts/ProximaNova.css";
|
|
3
|
+
export type InputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
4
|
+
error?: string | boolean;
|
|
5
|
+
success?: boolean;
|
|
6
|
+
helper?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
cep?: boolean;
|
|
9
|
+
mask?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const MaskInput: (props: InputProps) => JSX.Element;
|
|
12
|
+
export default MaskInput;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InputProps as InputMaskProps } from "./MaskInput";
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
declare const InputStories: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: InputMaskProps) => JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export default InputStories;
|
|
8
|
+
export declare const Text: Story<InputMaskProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./MaskInput";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import "../../../src/theme/fonts/ProximaNova.css";
|
|
3
2
|
export type NotificationsProps = {
|
|
4
3
|
img: string;
|
|
@@ -10,6 +9,10 @@ export type NotificationsBarProps = {
|
|
|
10
9
|
message?: string;
|
|
11
10
|
notifications?: NotificationsProps[];
|
|
12
11
|
onNotificationClick?: (notification: NotificationsProps, index: number) => void;
|
|
12
|
+
left: number;
|
|
13
|
+
right: number;
|
|
14
|
+
top: number;
|
|
15
|
+
bottom: number;
|
|
13
16
|
};
|
|
14
17
|
declare const NotificationBar: (props: NotificationsBarProps) => JSX.Element;
|
|
15
18
|
export default NotificationBar;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Story } from "@storybook/react";
|
|
2
|
+
import { ProgressBarProps } from "./ProgressBar";
|
|
3
|
+
declare const ProgressBarStories: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: ProgressBarProps) => JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export default ProgressBarStories;
|
|
8
|
+
export declare const Primary: Story<ProgressBarProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ProgressBar";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import "../../../src/theme/fonts/ProximaNova.css";
|
|
3
2
|
export type MenuItem = {
|
|
4
3
|
icon: string;
|
|
@@ -6,7 +5,6 @@ export type MenuItem = {
|
|
|
6
5
|
onClick?: () => void;
|
|
7
6
|
};
|
|
8
7
|
export type SideBarProps = {
|
|
9
|
-
activedIndex?: number;
|
|
10
8
|
menu: MenuItem[];
|
|
11
9
|
footer?: MenuItem[];
|
|
12
10
|
logo: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import VerifyCodeInput, { VerifyCodeInputProps } from "./VerifyCodeInput";
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
declare const VerifyCodeInputStories: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof VerifyCodeInput;
|
|
6
|
+
};
|
|
7
|
+
export default VerifyCodeInputStories;
|
|
8
|
+
export declare const Primary: Story<VerifyCodeInputProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./VerifyCodeInput";
|
|
@@ -17,3 +17,6 @@ export { default as Spacer } from "./Spacer";
|
|
|
17
17
|
export { default as TabMenu } from "./TabMenu";
|
|
18
18
|
export { default as Toast } from "./Toast";
|
|
19
19
|
export { default as Toggle } from "./Toggle";
|
|
20
|
+
export { default as ProgressBar } from "./ProgressBar";
|
|
21
|
+
export { default as MaskInput } from "./MaskInput";
|
|
22
|
+
export { default as InputToken } from "./InputToken";
|
package/dist/index.d.ts
CHANGED
|
@@ -57,13 +57,13 @@ type CheckboxProps = {
|
|
|
57
57
|
declare const Checkbox: ({ onChange, ...props }: CheckboxProps) => JSX.Element;
|
|
58
58
|
|
|
59
59
|
type DropzoneProps = {
|
|
60
|
-
error
|
|
61
|
-
helper
|
|
62
|
-
onFilesChanged
|
|
60
|
+
error?: string;
|
|
61
|
+
helper?: string;
|
|
62
|
+
onFilesChanged?: (files: File[]) => void;
|
|
63
63
|
};
|
|
64
64
|
declare const Dropzone: (props: DropzoneProps) => JSX.Element;
|
|
65
65
|
|
|
66
|
-
type InputProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
66
|
+
type InputProps$1 = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
67
67
|
error?: string | boolean;
|
|
68
68
|
success?: boolean;
|
|
69
69
|
helper?: string;
|
|
@@ -72,7 +72,7 @@ type InputProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes
|
|
|
72
72
|
newPasswordLevel?: string;
|
|
73
73
|
filled?: boolean;
|
|
74
74
|
};
|
|
75
|
-
declare const Input: (props: InputProps) => JSX.Element;
|
|
75
|
+
declare const Input: (props: InputProps$1) => JSX.Element;
|
|
76
76
|
|
|
77
77
|
type ModalProps$1 = HTMLAttributes<HTMLDivElement> & {
|
|
78
78
|
open?: boolean;
|
|
@@ -115,6 +115,10 @@ type NotificationsBarProps = {
|
|
|
115
115
|
message?: string;
|
|
116
116
|
notifications?: NotificationsProps[];
|
|
117
117
|
onNotificationClick?: (notification: NotificationsProps, index: number) => void;
|
|
118
|
+
left: number;
|
|
119
|
+
right: number;
|
|
120
|
+
top: number;
|
|
121
|
+
bottom: number;
|
|
118
122
|
};
|
|
119
123
|
declare const NotificationBar: (props: NotificationsBarProps) => JSX.Element;
|
|
120
124
|
|
|
@@ -169,7 +173,6 @@ type MenuItem = {
|
|
|
169
173
|
onClick?: () => void;
|
|
170
174
|
};
|
|
171
175
|
type SideBarProps = {
|
|
172
|
-
activedIndex?: number;
|
|
173
176
|
menu: MenuItem[];
|
|
174
177
|
footer?: MenuItem[];
|
|
175
178
|
logo: string;
|
|
@@ -213,4 +216,25 @@ type ToggleProps = {
|
|
|
213
216
|
};
|
|
214
217
|
declare const Toggle: (props: ToggleProps) => JSX.Element;
|
|
215
218
|
|
|
216
|
-
|
|
219
|
+
type ProgressBarProps = {
|
|
220
|
+
percent: number;
|
|
221
|
+
color?: string;
|
|
222
|
+
};
|
|
223
|
+
declare const ProgressBar: (props: ProgressBarProps) => JSX.Element;
|
|
224
|
+
|
|
225
|
+
type InputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
226
|
+
error?: string | boolean;
|
|
227
|
+
success?: boolean;
|
|
228
|
+
helper?: string;
|
|
229
|
+
label?: string;
|
|
230
|
+
cep?: boolean;
|
|
231
|
+
mask?: string;
|
|
232
|
+
};
|
|
233
|
+
declare const MaskInput: (props: InputProps) => JSX.Element;
|
|
234
|
+
|
|
235
|
+
type InputTokenProps = {
|
|
236
|
+
inputsNumber?: number;
|
|
237
|
+
};
|
|
238
|
+
declare function InputToken({ inputsNumber: numberOfInputs }: InputTokenProps): JSX.Element;
|
|
239
|
+
|
|
240
|
+
export { Breadcrumb, Button, ButtonDropdown, Checkbox, CustomSelect, Dropzone, Input, InputToken, InteractiveModal, lateralModal as LateralModal, MaskInput, MenuDropdown as Menudropdown, NotificationBar as NotificationsBar, ProgressBar, Radio, RadioGroup, Search, SideBar, Spacer, TabMenu, Toast, Toggle };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosperitainova/mirage-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@fortawesome/free-regular-svg-icons": "^6.2.1",
|
|
11
|
+
"@types/react-input-mask": "^3.0.2",
|
|
11
12
|
"react-dropzone": "^14.2.3",
|
|
13
|
+
"react-input-mask": "^2.0.4",
|
|
12
14
|
"react-select": "^5.7.0",
|
|
13
15
|
"typescript": "^4.9.4"
|
|
14
16
|
},
|