@prosperitainova/mirage-ui 1.0.22 → 1.0.24

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 (40) 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/InputToken/InputToken.d.ts +6 -0
  7. package/dist/cjs/types/lib/InputToken/InputToken.stories.d.ts +8 -0
  8. package/dist/cjs/types/lib/InputToken/index.d.ts +1 -0
  9. package/dist/cjs/types/lib/MaskInput/MaskInput.d.ts +12 -0
  10. package/dist/cjs/types/lib/MaskInput/MaskInput.stories.d.ts +9 -0
  11. package/dist/cjs/types/lib/MaskInput/index.d.ts +1 -0
  12. package/dist/cjs/types/lib/NotificationsBar/NotificationsBar.d.ts +4 -1
  13. package/dist/cjs/types/lib/NotificationsBar/NotificationsBar.stories.d.ts +0 -1
  14. package/dist/cjs/types/lib/ProgressBar/ProgressBar.d.ts +1 -0
  15. package/dist/cjs/types/lib/SideBar/SideBar.d.ts +0 -2
  16. package/dist/cjs/types/lib/SideBar/SideBar.stories.d.ts +0 -1
  17. package/dist/cjs/types/lib/Toast/TesterToast.d.ts +0 -1
  18. package/dist/cjs/types/lib/Toast/TesterToast.stories.d.ts +0 -1
  19. package/dist/cjs/types/lib/index.d.ts +2 -1
  20. package/dist/esm/index.js +3 -3
  21. package/dist/esm/index.js.map +1 -1
  22. package/dist/esm/types/lib/Breadcrumb/Breadcrumb.d.ts +0 -1
  23. package/dist/esm/types/lib/Checkbox/Checkbox.d.ts +0 -1
  24. package/dist/esm/types/lib/Checkbox/Checkbox.stories.d.ts +0 -1
  25. package/dist/esm/types/lib/InputToken/InputToken.d.ts +6 -0
  26. package/dist/esm/types/lib/InputToken/InputToken.stories.d.ts +8 -0
  27. package/dist/esm/types/lib/InputToken/index.d.ts +1 -0
  28. package/dist/esm/types/lib/MaskInput/MaskInput.d.ts +12 -0
  29. package/dist/esm/types/lib/MaskInput/MaskInput.stories.d.ts +9 -0
  30. package/dist/esm/types/lib/MaskInput/index.d.ts +1 -0
  31. package/dist/esm/types/lib/NotificationsBar/NotificationsBar.d.ts +4 -1
  32. package/dist/esm/types/lib/NotificationsBar/NotificationsBar.stories.d.ts +0 -1
  33. package/dist/esm/types/lib/ProgressBar/ProgressBar.d.ts +1 -0
  34. package/dist/esm/types/lib/SideBar/SideBar.d.ts +0 -2
  35. package/dist/esm/types/lib/SideBar/SideBar.stories.d.ts +0 -1
  36. package/dist/esm/types/lib/Toast/TesterToast.d.ts +0 -1
  37. package/dist/esm/types/lib/Toast/TesterToast.stories.d.ts +0 -1
  38. package/dist/esm/types/lib/index.d.ts +2 -1
  39. package/dist/index.d.ts +23 -9
  40. package/package.json +5 -3
@@ -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: {
@@ -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";
@@ -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,9 @@
1
+ /// <reference types="react" />
2
+ import { InputProps as InputMaskProps } from "./MaskInput";
3
+ import { Story } from "@storybook/react";
4
+ declare const InputStories: {
5
+ title: string;
6
+ component: (props: InputMaskProps) => JSX.Element;
7
+ };
8
+ export default InputStories;
9
+ 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: {
@@ -1,5 +1,6 @@
1
1
  export type ProgressBarProps = {
2
2
  percent: number;
3
+ color?: string;
3
4
  };
4
5
  declare const ProgressBar: (props: ProgressBarProps) => JSX.Element;
5
6
  export default 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: {
@@ -17,5 +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 VerifyCodeInput } from "./VerifyCodeInput";
21
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
@@ -63,7 +63,7 @@ type DropzoneProps = {
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,14 +216,25 @@ type ToggleProps = {
213
216
  };
214
217
  declare const Toggle: (props: ToggleProps) => JSX.Element;
215
218
 
216
- type VerifyCodeInputProps = {
217
- inputsNumber?: number;
218
- };
219
- declare function VerifyCodeInput({ inputsNumber: numberOfInputs, }: VerifyCodeInputProps): JSX.Element;
220
-
221
219
  type ProgressBarProps = {
222
220
  percent: number;
221
+ color?: string;
223
222
  };
224
223
  declare const ProgressBar: (props: ProgressBarProps) => JSX.Element;
225
224
 
226
- export { Breadcrumb, Button, ButtonDropdown, Checkbox, CustomSelect, Dropzone, Input, InteractiveModal, lateralModal as LateralModal, MenuDropdown as Menudropdown, NotificationBar as NotificationsBar, ProgressBar, Radio, RadioGroup, Search, SideBar, Spacer, TabMenu, Toast, Toggle, VerifyCodeInput };
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.22",
3
+ "version": "1.0.24",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -8,9 +8,10 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@fortawesome/free-regular-svg-icons": "^6.2.1",
11
+ "typescript": "^4.9.4",
11
12
  "react-dropzone": "^14.2.3",
12
- "react-select": "^5.7.0",
13
- "typescript": "^4.9.4"
13
+ "react-input-mask": "^2.0.4",
14
+ "react-select": "^5.7.0"
14
15
  },
15
16
  "scripts": {
16
17
  "start": "react-scripts start",
@@ -73,6 +74,7 @@
73
74
  "@types/node": "^16.18.8",
74
75
  "@types/react": "^18.0.26",
75
76
  "@types/styled-components": "^5.1.26",
77
+ "@types/react-input-mask": "^3.0.2",
76
78
  "babel-plugin-named-exports-order": "^0.0.2",
77
79
  "postcss": "^8.4.21",
78
80
  "postcss-assets": "^6.0.0",