@prosperitainova/mirage-ui 1.0.90 → 1.0.92

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 (94) hide show
  1. package/dist/cjs/index.js +2 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/lib/AddBalanceOutput/AddBalanceOutput.stories.d.ts +1 -0
  4. package/dist/cjs/types/lib/BottomModal/BottomModal.d.ts +11 -0
  5. package/dist/cjs/types/lib/BottomModal/BottomModal.stories.d.ts +9 -0
  6. package/dist/cjs/types/lib/BottomModal/index.d.ts +1 -0
  7. package/dist/cjs/types/lib/Breadcrumb/Breadcrumb.d.ts +1 -0
  8. package/dist/cjs/types/lib/Breadcrumb/Breadcrumb.stories.d.ts +1 -0
  9. package/dist/cjs/types/lib/Button/Button.stories.d.ts +1 -0
  10. package/dist/cjs/types/lib/ButtonDropdown/ButtonDropdown.stories.d.ts +1 -0
  11. package/dist/cjs/types/lib/Checkbox/Checkbox.stories.d.ts +1 -0
  12. package/dist/cjs/types/lib/CustomSelect/CustomSelect.d.ts +1 -0
  13. package/dist/cjs/types/lib/Dropzone/Dropzone.d.ts +1 -0
  14. package/dist/cjs/types/lib/Dropzone/Dropzone.stories.d.ts +1 -0
  15. package/dist/cjs/types/lib/Input/Input.stories.d.ts +1 -0
  16. package/dist/cjs/types/lib/InputCurrency/InputCurrency.d.ts +2 -0
  17. package/dist/cjs/types/lib/InteractiveModal/InteractiveModal.stories.d.ts +1 -0
  18. package/dist/cjs/types/lib/InteractiveModal/TesterInteractiveModal.d.ts +1 -0
  19. package/dist/cjs/types/lib/InteractiveModal/TesterInteractiveModal.stories.d.ts +1 -0
  20. package/dist/cjs/types/lib/LateralModal/LateralModal.stories.d.ts +1 -0
  21. package/dist/cjs/types/lib/LateralModal/TesterLateralModal.d.ts +1 -0
  22. package/dist/cjs/types/lib/LateralModal/TesterLateralModal.stories.d.ts +1 -0
  23. package/dist/cjs/types/lib/MenuDropdown/MenuDropdown.stories.d.ts +1 -0
  24. package/dist/cjs/types/lib/NotificationsBar/NotificationsBar.d.ts +1 -0
  25. package/dist/cjs/types/lib/NotificationsBar/NotificationsBar.stories.d.ts +1 -0
  26. package/dist/cjs/types/lib/ParcelSelector/ParcelSelector.stories.d.ts +1 -0
  27. package/dist/cjs/types/lib/ProgressBar/ProgressBar.d.ts +1 -0
  28. package/dist/cjs/types/lib/ProgressBar/ProgressBar.stories.d.ts +1 -0
  29. package/dist/cjs/types/lib/Radio/Radio.d.ts +1 -0
  30. package/dist/cjs/types/lib/Radio/Radio.stories.d.ts +1 -0
  31. package/dist/cjs/types/lib/RadioGroup/Radio.d.ts +1 -0
  32. package/dist/cjs/types/lib/RadioGroup/RadioGroup.stories.d.ts +1 -0
  33. package/dist/cjs/types/lib/ReturnButton/ReturnButton.stories.d.ts +1 -0
  34. package/dist/cjs/types/lib/Search/Search.stories.d.ts +1 -0
  35. package/dist/cjs/types/lib/SideBar/SideBar.d.ts +1 -0
  36. package/dist/cjs/types/lib/SideBar/SideBar.stories.d.ts +1 -0
  37. package/dist/cjs/types/lib/TabMenu/TabMenu.d.ts +1 -0
  38. package/dist/cjs/types/lib/TabMenu/TabMenu.stories.d.ts +1 -0
  39. package/dist/cjs/types/lib/Table/Table.stories.d.ts +1 -0
  40. package/dist/cjs/types/lib/Toast/TesterToast.d.ts +1 -0
  41. package/dist/cjs/types/lib/Toast/TesterToast.stories.d.ts +1 -0
  42. package/dist/cjs/types/lib/Toast/Toast.stories.d.ts +1 -0
  43. package/dist/cjs/types/lib/Toggle/Toggle.d.ts +1 -0
  44. package/dist/cjs/types/lib/Toggle/Toggle.stories.d.ts +1 -0
  45. package/dist/cjs/types/lib/index.d.ts +1 -0
  46. package/dist/cjs/types/utils.d.ts +1 -0
  47. package/dist/esm/index.js +2 -2
  48. package/dist/esm/index.js.map +1 -1
  49. package/dist/esm/types/lib/AddBalanceOutput/AddBalanceOutput.stories.d.ts +1 -0
  50. package/dist/esm/types/lib/BottomModal/BottomModal.d.ts +11 -0
  51. package/dist/esm/types/lib/BottomModal/BottomModal.stories.d.ts +9 -0
  52. package/dist/esm/types/lib/BottomModal/index.d.ts +1 -0
  53. package/dist/esm/types/lib/Breadcrumb/Breadcrumb.d.ts +1 -0
  54. package/dist/esm/types/lib/Breadcrumb/Breadcrumb.stories.d.ts +1 -0
  55. package/dist/esm/types/lib/Button/Button.stories.d.ts +1 -0
  56. package/dist/esm/types/lib/ButtonDropdown/ButtonDropdown.stories.d.ts +1 -0
  57. package/dist/esm/types/lib/Checkbox/Checkbox.stories.d.ts +1 -0
  58. package/dist/esm/types/lib/CustomSelect/CustomSelect.d.ts +1 -0
  59. package/dist/esm/types/lib/Dropzone/Dropzone.d.ts +1 -0
  60. package/dist/esm/types/lib/Dropzone/Dropzone.stories.d.ts +1 -0
  61. package/dist/esm/types/lib/Input/Input.stories.d.ts +1 -0
  62. package/dist/esm/types/lib/InputCurrency/InputCurrency.d.ts +2 -0
  63. package/dist/esm/types/lib/InteractiveModal/InteractiveModal.stories.d.ts +1 -0
  64. package/dist/esm/types/lib/InteractiveModal/TesterInteractiveModal.d.ts +1 -0
  65. package/dist/esm/types/lib/InteractiveModal/TesterInteractiveModal.stories.d.ts +1 -0
  66. package/dist/esm/types/lib/LateralModal/LateralModal.stories.d.ts +1 -0
  67. package/dist/esm/types/lib/LateralModal/TesterLateralModal.d.ts +1 -0
  68. package/dist/esm/types/lib/LateralModal/TesterLateralModal.stories.d.ts +1 -0
  69. package/dist/esm/types/lib/MenuDropdown/MenuDropdown.stories.d.ts +1 -0
  70. package/dist/esm/types/lib/NotificationsBar/NotificationsBar.d.ts +1 -0
  71. package/dist/esm/types/lib/NotificationsBar/NotificationsBar.stories.d.ts +1 -0
  72. package/dist/esm/types/lib/ParcelSelector/ParcelSelector.stories.d.ts +1 -0
  73. package/dist/esm/types/lib/ProgressBar/ProgressBar.d.ts +1 -0
  74. package/dist/esm/types/lib/ProgressBar/ProgressBar.stories.d.ts +1 -0
  75. package/dist/esm/types/lib/Radio/Radio.d.ts +1 -0
  76. package/dist/esm/types/lib/Radio/Radio.stories.d.ts +1 -0
  77. package/dist/esm/types/lib/RadioGroup/Radio.d.ts +1 -0
  78. package/dist/esm/types/lib/RadioGroup/RadioGroup.stories.d.ts +1 -0
  79. package/dist/esm/types/lib/ReturnButton/ReturnButton.stories.d.ts +1 -0
  80. package/dist/esm/types/lib/Search/Search.stories.d.ts +1 -0
  81. package/dist/esm/types/lib/SideBar/SideBar.d.ts +1 -0
  82. package/dist/esm/types/lib/SideBar/SideBar.stories.d.ts +1 -0
  83. package/dist/esm/types/lib/TabMenu/TabMenu.d.ts +1 -0
  84. package/dist/esm/types/lib/TabMenu/TabMenu.stories.d.ts +1 -0
  85. package/dist/esm/types/lib/Table/Table.stories.d.ts +1 -0
  86. package/dist/esm/types/lib/Toast/TesterToast.d.ts +1 -0
  87. package/dist/esm/types/lib/Toast/TesterToast.stories.d.ts +1 -0
  88. package/dist/esm/types/lib/Toast/Toast.stories.d.ts +1 -0
  89. package/dist/esm/types/lib/Toggle/Toggle.d.ts +1 -0
  90. package/dist/esm/types/lib/Toggle/Toggle.stories.d.ts +1 -0
  91. package/dist/esm/types/lib/index.d.ts +1 -0
  92. package/dist/esm/types/utils.d.ts +1 -0
  93. package/dist/index.d.ts +16 -5
  94. package/package.json +3 -2
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AddBalanceOutputProps } from "./AddBalanceOutput";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const AddBalanceOutputStories: {
@@ -0,0 +1,11 @@
1
+ import { HTMLAttributes } from "react";
2
+ import "../../../src/theme/fonts/ProximaNova.css";
3
+ export type ModalProps = HTMLAttributes<HTMLDivElement> & {
4
+ open?: boolean;
5
+ header?: boolean;
6
+ title?: string;
7
+ children?: JSX.Element;
8
+ toggleModal: () => void;
9
+ };
10
+ declare const BottomModal: (props: ModalProps) => JSX.Element;
11
+ export default BottomModal;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { Story } from "@storybook/react";
3
+ import { ModalProps } from "./BottomModal";
4
+ declare const LateraleModalStories: {
5
+ title: string;
6
+ component: (props: ModalProps) => JSX.Element;
7
+ };
8
+ export default LateraleModalStories;
9
+ export declare const Bottom: Story<ModalProps>;
@@ -0,0 +1 @@
1
+ export { default } from "./BottomModal";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "../../../src/theme/fonts/ProximaNova.css";
2
3
  type ItemsProps = {
3
4
  label: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from "@storybook/react";
2
3
  declare const BreadcrumbStories: {
3
4
  title: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ButtonProps } from "./Button";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const ButtonStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ButtonDropdownProps } from "./ButtonDropdown";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const ButtonStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CheckboxProps } from "./Checkbox";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const CheckStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Props as ReactSelectProps } from "react-select";
2
3
  import "../../../src/theme/fonts/ProximaNova.css";
3
4
  export type SelectProps = Omit<ReactSelectProps, "onChange"> & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "../../../src/theme/fonts/ProximaNova.css";
2
3
  export type DropzoneProps = {
3
4
  error?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DropzoneProps } from "./Dropzone";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const DropzoneStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from "./Input";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const InputStories: {
@@ -17,6 +17,8 @@ export type InputCurrencyProps = InputHTMLAttributes<HTMLInputElement> & Textare
17
17
  maxLength?: number;
18
18
  fontSize?: "normal" | "large";
19
19
  name?: string;
20
+ inputSize?: "normal" | "large";
21
+ isPercentage: boolean;
20
22
  };
21
23
  declare const InputCurrency: (props: InputCurrencyProps) => JSX.Element;
22
24
  export default InputCurrency;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from "@storybook/react";
2
3
  import { ModalProps } from "./InteractiveModal";
3
4
  declare const InteractiveModalStories: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const TesterInteractiveModal: () => JSX.Element;
2
3
  export default TesterInteractiveModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from "@storybook/react";
2
3
  import { ModalProps } from "./InteractiveModal";
3
4
  declare const TesterInteractiveModalStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from "@storybook/react";
2
3
  import { ModalProps } from "./LateralModal";
3
4
  declare const LateraleModalStories: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const TesterLateralModal: () => JSX.Element;
2
3
  export default TesterLateralModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from "@storybook/react";
2
3
  import { ModalProps } from "./LateralModal";
3
4
  declare const TesterLateralModalStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MenuDropdownProps } from "./MenuDropdown";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const MenuDropdownStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "../../../src/theme/fonts/ProximaNova.css";
2
3
  export type NotificationsProps = {
3
4
  img: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { NotificationsBarProps } from "./NotificationsBar";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const SearchStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from "@storybook/react";
2
3
  import { ParcelSelectorProps } from "./ParcelSelector";
3
4
  declare const ParcelSelectorStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type ProgressBarProps = {
2
3
  percent: number;
3
4
  color?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from "@storybook/react";
2
3
  import { ProgressBarProps } from "./ProgressBar";
3
4
  declare const ProgressBarStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "../../../src/theme/fonts/ProximaNova.css";
2
3
  export type RadioProps = {
3
4
  label?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RadioProps } from "./Radio";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const RadioStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type RadioProps = {
2
3
  label?: string;
3
4
  title?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from "@storybook/react";
2
3
  import { RadioGroupProps } from "./RadioGroup";
3
4
  declare const RadioGroupStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ReturnButtonProps } from "./ReturnButton";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const ButtonStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SearchProps } from "./Search";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const SearchStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "../../../src/theme/fonts/ProximaNova.css";
2
3
  export type MenuItem = {
3
4
  icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from "@storybook/react";
2
3
  declare const SideBarStories: {
3
4
  title: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "../../../src/theme/fonts/ProximaNova.css";
2
3
  export type MenusProps = {
3
4
  label: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from "@storybook/react";
2
3
  import { TabMenuProps } from "./TabMenu";
3
4
  declare const TabMenuStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableProps } from "./Table";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const TableStories: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const TesterToast: () => JSX.Element;
2
3
  export default TesterToast;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from "@storybook/react";
2
3
  import { ToastProps } from "./Toast";
3
4
  declare const TesterToastStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from "@storybook/react";
2
3
  import { ToastProps } from "./Toast";
3
4
  declare const ToastStories: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type ToggleProps = {
2
3
  mode: "small" | "large";
3
4
  actived?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ToggleProps } from "./Toggle";
2
3
  import { Story } from "@storybook/react";
3
4
  declare const ButtonStories: {
@@ -30,3 +30,4 @@ export { default as ButtonMoreDetails } from "./ButtonMoreDetails";
30
30
  export { default as AddBalanceOutput } from "./AddBalanceOutput";
31
31
  export { default as IconWithTooltip } from "./IconWithTooltip";
32
32
  export { default as Tooltip } from "./TooltTip";
33
+ export { default as BottomModal } from "./BottomModal";
@@ -1 +1,2 @@
1
1
  export declare const handleCurrencyInput: (string: string, noLeadingZeros?: boolean, thousandSeparator?: string, decimalSeparator?: string) => string;
2
+ export declare const handlePercentageInput: (string: string, maxValue?: number, decimalSeparator?: string) => string;
package/dist/index.d.ts CHANGED
@@ -85,7 +85,7 @@ type InputProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes
85
85
  };
86
86
  declare const Input: (props: InputProps) => JSX.Element;
87
87
 
88
- type ModalProps$1 = HTMLAttributes<HTMLDivElement> & {
88
+ type ModalProps$2 = HTMLAttributes<HTMLDivElement> & {
89
89
  open?: boolean;
90
90
  header?: boolean;
91
91
  title?: string;
@@ -93,16 +93,16 @@ type ModalProps$1 = HTMLAttributes<HTMLDivElement> & {
93
93
  size: "md" | "lg";
94
94
  toggleModal: (event: any) => void;
95
95
  };
96
- declare const InteractiveModal: (props: ModalProps$1) => JSX.Element;
96
+ declare const InteractiveModal: (props: ModalProps$2) => JSX.Element;
97
97
 
98
- type ModalProps = HTMLAttributes<HTMLDivElement> & {
98
+ type ModalProps$1 = HTMLAttributes<HTMLDivElement> & {
99
99
  open?: boolean;
100
100
  header?: boolean;
101
101
  title?: string;
102
102
  children?: JSX.Element;
103
103
  toggleModal: () => void;
104
104
  };
105
- declare const lateralModal: (props: ModalProps) => JSX.Element;
105
+ declare const lateralModal: (props: ModalProps$1) => JSX.Element;
106
106
 
107
107
  type UsersProps = {
108
108
  img?: string;
@@ -279,6 +279,8 @@ type InputCurrencyProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAt
279
279
  maxLength?: number;
280
280
  fontSize?: "normal" | "large";
281
281
  name?: string;
282
+ inputSize?: "normal" | "large";
283
+ isPercentage: boolean;
282
284
  };
283
285
  declare const InputCurrency: (props: InputCurrencyProps) => JSX.Element;
284
286
 
@@ -372,5 +374,14 @@ type IconProps = {
372
374
  };
373
375
  declare const Tooltip: (props: IconProps) => JSX.Element;
374
376
 
375
- export { AddBalanceOutput, BalanceAlert, Breadcrumb, Button, ButtonDropdown, ButtonMoreDetails, Checkbox, CustomSelect, Dropzone, IconWithTooltip, Input, InputCurrency, InputToken, InteractiveModal, lateralModal as LateralModal, MenuDropdown as Menudropdown, NotificationBar as NotificationsBar, Pagination, ParcelSelector, ProgressBar, Radio, RadioGroup, ReturnButton, Search, SideBar, Spacer, SummaryPanel, TabMenu, Table, Toast, Toggle, Tooltip };
377
+ type ModalProps = HTMLAttributes<HTMLDivElement> & {
378
+ open?: boolean;
379
+ header?: boolean;
380
+ title?: string;
381
+ children?: JSX.Element;
382
+ toggleModal: () => void;
383
+ };
384
+ declare const BottomModal: (props: ModalProps) => JSX.Element;
385
+
386
+ export { AddBalanceOutput, BalanceAlert, BottomModal, Breadcrumb, Button, ButtonDropdown, ButtonMoreDetails, Checkbox, CustomSelect, Dropzone, IconWithTooltip, Input, InputCurrency, InputToken, InteractiveModal, lateralModal as LateralModal, MenuDropdown as Menudropdown, NotificationBar as NotificationsBar, Pagination, ParcelSelector, ProgressBar, Radio, RadioGroup, ReturnButton, Search, SideBar, Spacer, SummaryPanel, TabMenu, Table, Toast, Toggle, Tooltip };
376
387
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosperitainova/mirage-ui",
3
- "version": "1.0.90",
3
+ "version": "1.0.92",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -9,6 +9,7 @@
9
9
  "dependencies": {
10
10
  "@fortawesome/free-regular-svg-icons": "^6.2.1",
11
11
  "bootstrap": "^5.2.3",
12
+ "formik": "^2.4.3",
12
13
  "react-currency-input": "^1.3.6",
13
14
  "react-currency-input-field": "^3.6.11",
14
15
  "react-dropzone": "^14.2.3",
@@ -102,4 +103,4 @@
102
103
  "dist"
103
104
  ],
104
105
  "types": "dist/index.d.ts"
105
- }
106
+ }