@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.
Files changed (54) hide show
  1. package/dist/cjs/index.js +3 -3
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/lib/Breadcrumb/Breadcrumb.d.ts +0 -1
  4. package/dist/cjs/types/lib/Checkbox/Checkbox.d.ts +0 -1
  5. package/dist/cjs/types/lib/Checkbox/Checkbox.stories.d.ts +0 -1
  6. package/dist/cjs/types/lib/Dropzone/Dropzone.d.ts +3 -4
  7. package/dist/cjs/types/lib/InputToken/InputToken.d.ts +6 -0
  8. package/dist/cjs/types/lib/InputToken/InputToken.stories.d.ts +8 -0
  9. package/dist/cjs/types/lib/InputToken/index.d.ts +1 -0
  10. package/dist/cjs/types/lib/InteractiveModal/TesterInteractiveModal.d.ts +0 -1
  11. package/dist/cjs/types/lib/MaskInput/MaskInput.d.ts +12 -0
  12. package/dist/cjs/types/lib/MaskInput/MaskInput.stories.d.ts +8 -0
  13. package/dist/cjs/types/lib/MaskInput/index.d.ts +1 -0
  14. package/dist/cjs/types/lib/NotificationsBar/NotificationsBar.d.ts +4 -1
  15. package/dist/cjs/types/lib/NotificationsBar/NotificationsBar.stories.d.ts +0 -1
  16. package/dist/cjs/types/lib/ProgressBar/ProgressBar.d.ts +6 -0
  17. package/dist/cjs/types/lib/ProgressBar/ProgressBar.stories.d.ts +8 -0
  18. package/dist/cjs/types/lib/ProgressBar/index.d.ts +1 -0
  19. package/dist/cjs/types/lib/SideBar/SideBar.d.ts +0 -2
  20. package/dist/cjs/types/lib/SideBar/SideBar.stories.d.ts +0 -1
  21. package/dist/cjs/types/lib/Toast/TesterToast.d.ts +0 -1
  22. package/dist/cjs/types/lib/Toast/TesterToast.stories.d.ts +0 -1
  23. package/dist/cjs/types/lib/VerifyCodeInput/VerifyCodeInput.d.ts +6 -0
  24. package/dist/cjs/types/lib/VerifyCodeInput/VerifyCodeInput.stories.d.ts +8 -0
  25. package/dist/cjs/types/lib/VerifyCodeInput/index.d.ts +1 -0
  26. package/dist/cjs/types/lib/index.d.ts +3 -0
  27. package/dist/esm/index.js +3 -3
  28. package/dist/esm/index.js.map +1 -1
  29. package/dist/esm/types/lib/Breadcrumb/Breadcrumb.d.ts +0 -1
  30. package/dist/esm/types/lib/Checkbox/Checkbox.d.ts +0 -1
  31. package/dist/esm/types/lib/Checkbox/Checkbox.stories.d.ts +0 -1
  32. package/dist/esm/types/lib/Dropzone/Dropzone.d.ts +3 -4
  33. package/dist/esm/types/lib/InputToken/InputToken.d.ts +6 -0
  34. package/dist/esm/types/lib/InputToken/InputToken.stories.d.ts +8 -0
  35. package/dist/esm/types/lib/InputToken/index.d.ts +1 -0
  36. package/dist/esm/types/lib/InteractiveModal/TesterInteractiveModal.d.ts +0 -1
  37. package/dist/esm/types/lib/MaskInput/MaskInput.d.ts +12 -0
  38. package/dist/esm/types/lib/MaskInput/MaskInput.stories.d.ts +8 -0
  39. package/dist/esm/types/lib/MaskInput/index.d.ts +1 -0
  40. package/dist/esm/types/lib/NotificationsBar/NotificationsBar.d.ts +4 -1
  41. package/dist/esm/types/lib/NotificationsBar/NotificationsBar.stories.d.ts +0 -1
  42. package/dist/esm/types/lib/ProgressBar/ProgressBar.d.ts +6 -0
  43. package/dist/esm/types/lib/ProgressBar/ProgressBar.stories.d.ts +8 -0
  44. package/dist/esm/types/lib/ProgressBar/index.d.ts +1 -0
  45. package/dist/esm/types/lib/SideBar/SideBar.d.ts +0 -2
  46. package/dist/esm/types/lib/SideBar/SideBar.stories.d.ts +0 -1
  47. package/dist/esm/types/lib/Toast/TesterToast.d.ts +0 -1
  48. package/dist/esm/types/lib/Toast/TesterToast.stories.d.ts +0 -1
  49. package/dist/esm/types/lib/VerifyCodeInput/VerifyCodeInput.d.ts +6 -0
  50. package/dist/esm/types/lib/VerifyCodeInput/VerifyCodeInput.stories.d.ts +8 -0
  51. package/dist/esm/types/lib/VerifyCodeInput/index.d.ts +1 -0
  52. package/dist/esm/types/lib/index.d.ts +3 -0
  53. package/dist/index.d.ts +31 -7
  54. package/package.json +3 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "../../../src/theme/fonts/ProximaNova.css";
3
2
  type ItemsProps = {
4
3
  label: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "../../../src/theme/fonts/ProximaNova.css";
3
2
  export type CheckboxProps = {
4
3
  label?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CheckboxProps } from "./Checkbox";
3
2
  import { Story } from "@storybook/react";
4
3
  declare const CheckStories: {
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import "../../../src/theme/fonts/ProximaNova.css";
3
2
  export type DropzoneProps = {
4
- error: string;
5
- helper: string;
6
- onFilesChanged: (files: File[]) => void;
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,6 @@
1
+ /// <reference types="react" />
2
+ export type InputTokenProps = {
3
+ inputsNumber?: number;
4
+ };
5
+ declare function InputToken({ inputsNumber: numberOfInputs }: InputTokenProps): JSX.Element;
6
+ export default InputToken;
@@ -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";
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TesterInteractiveModal: () => JSX.Element;
3
2
  export default TesterInteractiveModal;
@@ -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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { NotificationsBarProps } from "./NotificationsBar";
3
2
  import { Story } from "@storybook/react";
4
3
  declare const SearchStories: {
@@ -0,0 +1,6 @@
1
+ export type ProgressBarProps = {
2
+ percent: number;
3
+ color?: string;
4
+ };
5
+ declare const ProgressBar: (props: ProgressBarProps) => JSX.Element;
6
+ export default ProgressBar;
@@ -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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Story } from "@storybook/react";
3
2
  declare const SideBarStories: {
4
3
  title: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TesterToast: () => JSX.Element;
3
2
  export default TesterToast;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Story } from "@storybook/react";
3
2
  import { ToastProps } from "./Toast";
4
3
  declare const TesterToastStories: {
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export type VerifyCodeInputProps = {
3
+ inputsNumber?: number;
4
+ };
5
+ declare function VerifyCodeInput({ inputsNumber: numberOfInputs, }: VerifyCodeInputProps): JSX.Element;
6
+ export default VerifyCodeInput;
@@ -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";