@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";
|