@prosperitainova/mirage-ui 1.0.78 → 1.0.80

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 (209) hide show
  1. package/README.md +32 -32
  2. package/dist/cjs/index.js +2 -7
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/types/index.d.ts +1 -1
  5. package/dist/cjs/types/lib/BalanceAlert/BalanceAlert.d.ts +8 -8
  6. package/dist/cjs/types/lib/BalanceAlert/BalanceAlert.stories.d.ts +8 -8
  7. package/dist/cjs/types/lib/BalanceAlert/index.d.ts +1 -1
  8. package/dist/cjs/types/lib/Breadcrumb/Breadcrumb.d.ts +11 -11
  9. package/dist/cjs/types/lib/Breadcrumb/Breadcrumb.stories.d.ts +13 -13
  10. package/dist/cjs/types/lib/Breadcrumb/index.d.ts +1 -1
  11. package/dist/cjs/types/lib/Button/Button.d.ts +34 -34
  12. package/dist/cjs/types/lib/Button/Button.stories.d.ts +16 -16
  13. package/dist/cjs/types/lib/Button/index.d.ts +1 -1
  14. package/dist/cjs/types/lib/ButtonDropdown/ButtonDropdown.d.ts +20 -20
  15. package/dist/cjs/types/lib/ButtonDropdown/ButtonDropdown.stories.d.ts +11 -11
  16. package/dist/cjs/types/lib/ButtonDropdown/index.d.ts +1 -1
  17. package/dist/cjs/types/lib/ButtonMoreDetails/ButtonMoreDetails.d.ts +19 -19
  18. package/dist/cjs/types/lib/ButtonMoreDetails/ButtonMoreDetails.stories.d.ts +16 -16
  19. package/dist/cjs/types/lib/ButtonMoreDetails/index.d.ts +1 -1
  20. package/dist/cjs/types/lib/Checkbox/Checkbox.d.ts +13 -13
  21. package/dist/cjs/types/lib/Checkbox/Checkbox.stories.d.ts +8 -8
  22. package/dist/cjs/types/lib/Checkbox/index.d.ts +1 -1
  23. package/dist/cjs/types/lib/CustomSelect/CustomSelect.d.ts +11 -11
  24. package/dist/cjs/types/lib/CustomSelect/CustomSelect.stories.d.ts +5 -5
  25. package/dist/cjs/types/lib/CustomSelect/index.d.ts +1 -1
  26. package/dist/cjs/types/lib/CustomSelect/style.d.ts +3 -3
  27. package/dist/cjs/types/lib/Dropzone/Dropzone.d.ts +8 -8
  28. package/dist/cjs/types/lib/Dropzone/Dropzone.stories.d.ts +8 -8
  29. package/dist/cjs/types/lib/Dropzone/index.d.ts +1 -1
  30. package/dist/cjs/types/lib/Input/Input.d.ts +16 -16
  31. package/dist/cjs/types/lib/Input/Input.stories.d.ts +11 -11
  32. package/dist/cjs/types/lib/Input/index.d.ts +1 -1
  33. package/dist/cjs/types/lib/InputCurrency/InputCurrency.d.ts +22 -22
  34. package/dist/cjs/types/lib/InputCurrency/InputCurrency.stories.d.ts +8 -8
  35. package/dist/cjs/types/lib/InputCurrency/bolos.d.ts +2 -0
  36. package/dist/cjs/types/lib/InputCurrency/index.d.ts +1 -1
  37. package/dist/cjs/types/lib/InputToken/InputToken.d.ts +8 -7
  38. package/dist/cjs/types/lib/InputToken/InputToken.stories.d.ts +8 -8
  39. package/dist/cjs/types/lib/InputToken/index.d.ts +1 -1
  40. package/dist/cjs/types/lib/InteractiveModal/InteractiveModal.d.ts +12 -12
  41. package/dist/cjs/types/lib/InteractiveModal/InteractiveModal.stories.d.ts +8 -8
  42. package/dist/cjs/types/lib/InteractiveModal/TesterInteractiveModal.d.ts +2 -2
  43. package/dist/cjs/types/lib/InteractiveModal/TesterInteractiveModal.stories.d.ts +8 -8
  44. package/dist/cjs/types/lib/InteractiveModal/index.d.ts +1 -1
  45. package/dist/cjs/types/lib/LateralModal/LateralModal.d.ts +11 -11
  46. package/dist/cjs/types/lib/LateralModal/LateralModal.stories.d.ts +8 -8
  47. package/dist/cjs/types/lib/LateralModal/TesterLateralModal.d.ts +2 -2
  48. package/dist/cjs/types/lib/LateralModal/TesterLateralModal.stories.d.ts +8 -8
  49. package/dist/cjs/types/lib/LateralModal/index.d.ts +1 -1
  50. package/dist/cjs/types/lib/MenuDropdown/MenuDropdown.d.ts +16 -16
  51. package/dist/cjs/types/lib/MenuDropdown/MenuDropdown.stories.d.ts +8 -8
  52. package/dist/cjs/types/lib/MenuDropdown/index.d.ts +1 -1
  53. package/dist/cjs/types/lib/NotificationsBar/NotificationsBar.d.ts +19 -19
  54. package/dist/cjs/types/lib/NotificationsBar/NotificationsBar.stories.d.ts +9 -9
  55. package/dist/cjs/types/lib/NotificationsBar/index.d.ts +1 -1
  56. package/dist/cjs/types/lib/Pagination/Pagination.d.ts +10 -10
  57. package/dist/cjs/types/lib/Pagination/index.d.ts +1 -1
  58. package/dist/cjs/types/lib/ParcelSelector/ParcelSelector.d.ts +7 -7
  59. package/dist/cjs/types/lib/ParcelSelector/ParcelSelector.stories.d.ts +8 -8
  60. package/dist/cjs/types/lib/ParcelSelector/index.d.ts +1 -1
  61. package/dist/cjs/types/lib/ProgressBar/ProgressBar.d.ts +6 -6
  62. package/dist/cjs/types/lib/ProgressBar/ProgressBar.stories.d.ts +8 -8
  63. package/dist/cjs/types/lib/ProgressBar/index.d.ts +1 -1
  64. package/dist/cjs/types/lib/Radio/Radio.d.ts +10 -10
  65. package/dist/cjs/types/lib/Radio/Radio.stories.d.ts +8 -8
  66. package/dist/cjs/types/lib/Radio/index.d.ts +1 -1
  67. package/dist/cjs/types/lib/RadioGroup/Radio.d.ts +12 -12
  68. package/dist/cjs/types/lib/RadioGroup/RadioGroup.d.ts +20 -20
  69. package/dist/cjs/types/lib/RadioGroup/RadioGroup.stories.d.ts +8 -8
  70. package/dist/cjs/types/lib/RadioGroup/index.d.ts +1 -1
  71. package/dist/cjs/types/lib/ReturnButton/ReturnButton.d.ts +7 -7
  72. package/dist/cjs/types/lib/ReturnButton/ReturnButton.stories.d.ts +8 -8
  73. package/dist/cjs/types/lib/ReturnButton/index.d.ts +1 -1
  74. package/dist/cjs/types/lib/Search/Search.d.ts +12 -12
  75. package/dist/cjs/types/lib/Search/Search.stories.d.ts +8 -8
  76. package/dist/cjs/types/lib/Search/index.d.ts +1 -1
  77. package/dist/cjs/types/lib/SideBar/SideBar.d.ts +15 -15
  78. package/dist/cjs/types/lib/SideBar/SideBar.stories.d.ts +7 -7
  79. package/dist/cjs/types/lib/SideBar/index.d.ts +1 -1
  80. package/dist/cjs/types/lib/Spacer/Spacer.d.ts +8 -8
  81. package/dist/cjs/types/lib/Spacer/index.d.ts +1 -1
  82. package/dist/cjs/types/lib/SummaryPanel/SummaryPanel.d.ts +16 -16
  83. package/dist/cjs/types/lib/SummaryPanel/SummaryPanel.stories.d.ts +8 -8
  84. package/dist/cjs/types/lib/SummaryPanel/index.d.ts +1 -1
  85. package/dist/cjs/types/lib/TabMenu/TabMenu.d.ts +13 -13
  86. package/dist/cjs/types/lib/TabMenu/TabMenu.stories.d.ts +8 -8
  87. package/dist/cjs/types/lib/TabMenu/index.d.ts +1 -1
  88. package/dist/cjs/types/lib/Table/Table.d.ts +15 -15
  89. package/dist/cjs/types/lib/Table/Table.stories.d.ts +8 -8
  90. package/dist/cjs/types/lib/Table/index.d.ts +1 -1
  91. package/dist/cjs/types/lib/Toast/TesterToast.d.ts +2 -2
  92. package/dist/cjs/types/lib/Toast/TesterToast.stories.d.ts +8 -8
  93. package/dist/cjs/types/lib/Toast/Toast.d.ts +12 -12
  94. package/dist/cjs/types/lib/Toast/Toast.stories.d.ts +10 -10
  95. package/dist/cjs/types/lib/Toast/index.d.ts +1 -1
  96. package/dist/cjs/types/lib/Toggle/Toggle.d.ts +7 -7
  97. package/dist/cjs/types/lib/Toggle/Toggle.stories.d.ts +9 -9
  98. package/dist/cjs/types/lib/Toggle/index.d.ts +1 -1
  99. package/dist/cjs/types/lib/index.d.ts +29 -29
  100. package/dist/cjs/types/setupTests.d.ts +1 -1
  101. package/dist/cjs/types/theme/DefaultTheme.d.ts +4 -4
  102. package/dist/cjs/types/theme/index.d.ts +2 -2
  103. package/dist/cjs/types/theme/prosperitaTheme.d.ts +3 -3
  104. package/dist/cjs/types/utils.d.ts +1 -1
  105. package/dist/esm/index.js +2 -7
  106. package/dist/esm/index.js.map +1 -1
  107. package/dist/esm/types/index.d.ts +1 -1
  108. package/dist/esm/types/lib/BalanceAlert/BalanceAlert.d.ts +8 -8
  109. package/dist/esm/types/lib/BalanceAlert/BalanceAlert.stories.d.ts +8 -8
  110. package/dist/esm/types/lib/BalanceAlert/index.d.ts +1 -1
  111. package/dist/esm/types/lib/Breadcrumb/Breadcrumb.d.ts +11 -11
  112. package/dist/esm/types/lib/Breadcrumb/Breadcrumb.stories.d.ts +13 -13
  113. package/dist/esm/types/lib/Breadcrumb/index.d.ts +1 -1
  114. package/dist/esm/types/lib/Button/Button.d.ts +34 -34
  115. package/dist/esm/types/lib/Button/Button.stories.d.ts +16 -16
  116. package/dist/esm/types/lib/Button/index.d.ts +1 -1
  117. package/dist/esm/types/lib/ButtonDropdown/ButtonDropdown.d.ts +20 -20
  118. package/dist/esm/types/lib/ButtonDropdown/ButtonDropdown.stories.d.ts +11 -11
  119. package/dist/esm/types/lib/ButtonDropdown/index.d.ts +1 -1
  120. package/dist/esm/types/lib/ButtonMoreDetails/ButtonMoreDetails.d.ts +19 -19
  121. package/dist/esm/types/lib/ButtonMoreDetails/ButtonMoreDetails.stories.d.ts +16 -16
  122. package/dist/esm/types/lib/ButtonMoreDetails/index.d.ts +1 -1
  123. package/dist/esm/types/lib/Checkbox/Checkbox.d.ts +13 -13
  124. package/dist/esm/types/lib/Checkbox/Checkbox.stories.d.ts +8 -8
  125. package/dist/esm/types/lib/Checkbox/index.d.ts +1 -1
  126. package/dist/esm/types/lib/CustomSelect/CustomSelect.d.ts +11 -11
  127. package/dist/esm/types/lib/CustomSelect/CustomSelect.stories.d.ts +5 -5
  128. package/dist/esm/types/lib/CustomSelect/index.d.ts +1 -1
  129. package/dist/esm/types/lib/CustomSelect/style.d.ts +3 -3
  130. package/dist/esm/types/lib/Dropzone/Dropzone.d.ts +8 -8
  131. package/dist/esm/types/lib/Dropzone/Dropzone.stories.d.ts +8 -8
  132. package/dist/esm/types/lib/Dropzone/index.d.ts +1 -1
  133. package/dist/esm/types/lib/Input/Input.d.ts +16 -16
  134. package/dist/esm/types/lib/Input/Input.stories.d.ts +11 -11
  135. package/dist/esm/types/lib/Input/index.d.ts +1 -1
  136. package/dist/esm/types/lib/InputCurrency/InputCurrency.d.ts +22 -22
  137. package/dist/esm/types/lib/InputCurrency/InputCurrency.stories.d.ts +8 -8
  138. package/dist/esm/types/lib/InputCurrency/bolos.d.ts +2 -0
  139. package/dist/esm/types/lib/InputCurrency/index.d.ts +1 -1
  140. package/dist/esm/types/lib/InputToken/InputToken.d.ts +8 -7
  141. package/dist/esm/types/lib/InputToken/InputToken.stories.d.ts +8 -8
  142. package/dist/esm/types/lib/InputToken/index.d.ts +1 -1
  143. package/dist/esm/types/lib/InteractiveModal/InteractiveModal.d.ts +12 -12
  144. package/dist/esm/types/lib/InteractiveModal/InteractiveModal.stories.d.ts +8 -8
  145. package/dist/esm/types/lib/InteractiveModal/TesterInteractiveModal.d.ts +2 -2
  146. package/dist/esm/types/lib/InteractiveModal/TesterInteractiveModal.stories.d.ts +8 -8
  147. package/dist/esm/types/lib/InteractiveModal/index.d.ts +1 -1
  148. package/dist/esm/types/lib/LateralModal/LateralModal.d.ts +11 -11
  149. package/dist/esm/types/lib/LateralModal/LateralModal.stories.d.ts +8 -8
  150. package/dist/esm/types/lib/LateralModal/TesterLateralModal.d.ts +2 -2
  151. package/dist/esm/types/lib/LateralModal/TesterLateralModal.stories.d.ts +8 -8
  152. package/dist/esm/types/lib/LateralModal/index.d.ts +1 -1
  153. package/dist/esm/types/lib/MenuDropdown/MenuDropdown.d.ts +16 -16
  154. package/dist/esm/types/lib/MenuDropdown/MenuDropdown.stories.d.ts +8 -8
  155. package/dist/esm/types/lib/MenuDropdown/index.d.ts +1 -1
  156. package/dist/esm/types/lib/NotificationsBar/NotificationsBar.d.ts +19 -19
  157. package/dist/esm/types/lib/NotificationsBar/NotificationsBar.stories.d.ts +9 -9
  158. package/dist/esm/types/lib/NotificationsBar/index.d.ts +1 -1
  159. package/dist/esm/types/lib/Pagination/Pagination.d.ts +10 -10
  160. package/dist/esm/types/lib/Pagination/index.d.ts +1 -1
  161. package/dist/esm/types/lib/ParcelSelector/ParcelSelector.d.ts +7 -7
  162. package/dist/esm/types/lib/ParcelSelector/ParcelSelector.stories.d.ts +8 -8
  163. package/dist/esm/types/lib/ParcelSelector/index.d.ts +1 -1
  164. package/dist/esm/types/lib/ProgressBar/ProgressBar.d.ts +6 -6
  165. package/dist/esm/types/lib/ProgressBar/ProgressBar.stories.d.ts +8 -8
  166. package/dist/esm/types/lib/ProgressBar/index.d.ts +1 -1
  167. package/dist/esm/types/lib/Radio/Radio.d.ts +10 -10
  168. package/dist/esm/types/lib/Radio/Radio.stories.d.ts +8 -8
  169. package/dist/esm/types/lib/Radio/index.d.ts +1 -1
  170. package/dist/esm/types/lib/RadioGroup/Radio.d.ts +12 -12
  171. package/dist/esm/types/lib/RadioGroup/RadioGroup.d.ts +20 -20
  172. package/dist/esm/types/lib/RadioGroup/RadioGroup.stories.d.ts +8 -8
  173. package/dist/esm/types/lib/RadioGroup/index.d.ts +1 -1
  174. package/dist/esm/types/lib/ReturnButton/ReturnButton.d.ts +7 -7
  175. package/dist/esm/types/lib/ReturnButton/ReturnButton.stories.d.ts +8 -8
  176. package/dist/esm/types/lib/ReturnButton/index.d.ts +1 -1
  177. package/dist/esm/types/lib/Search/Search.d.ts +12 -12
  178. package/dist/esm/types/lib/Search/Search.stories.d.ts +8 -8
  179. package/dist/esm/types/lib/Search/index.d.ts +1 -1
  180. package/dist/esm/types/lib/SideBar/SideBar.d.ts +15 -15
  181. package/dist/esm/types/lib/SideBar/SideBar.stories.d.ts +7 -7
  182. package/dist/esm/types/lib/SideBar/index.d.ts +1 -1
  183. package/dist/esm/types/lib/Spacer/Spacer.d.ts +8 -8
  184. package/dist/esm/types/lib/Spacer/index.d.ts +1 -1
  185. package/dist/esm/types/lib/SummaryPanel/SummaryPanel.d.ts +16 -16
  186. package/dist/esm/types/lib/SummaryPanel/SummaryPanel.stories.d.ts +8 -8
  187. package/dist/esm/types/lib/SummaryPanel/index.d.ts +1 -1
  188. package/dist/esm/types/lib/TabMenu/TabMenu.d.ts +13 -13
  189. package/dist/esm/types/lib/TabMenu/TabMenu.stories.d.ts +8 -8
  190. package/dist/esm/types/lib/TabMenu/index.d.ts +1 -1
  191. package/dist/esm/types/lib/Table/Table.d.ts +15 -15
  192. package/dist/esm/types/lib/Table/Table.stories.d.ts +8 -8
  193. package/dist/esm/types/lib/Table/index.d.ts +1 -1
  194. package/dist/esm/types/lib/Toast/TesterToast.d.ts +2 -2
  195. package/dist/esm/types/lib/Toast/TesterToast.stories.d.ts +8 -8
  196. package/dist/esm/types/lib/Toast/Toast.d.ts +12 -12
  197. package/dist/esm/types/lib/Toast/Toast.stories.d.ts +10 -10
  198. package/dist/esm/types/lib/Toast/index.d.ts +1 -1
  199. package/dist/esm/types/lib/Toggle/Toggle.d.ts +7 -7
  200. package/dist/esm/types/lib/Toggle/Toggle.stories.d.ts +9 -9
  201. package/dist/esm/types/lib/Toggle/index.d.ts +1 -1
  202. package/dist/esm/types/lib/index.d.ts +29 -29
  203. package/dist/esm/types/setupTests.d.ts +1 -1
  204. package/dist/esm/types/theme/DefaultTheme.d.ts +4 -4
  205. package/dist/esm/types/theme/index.d.ts +2 -2
  206. package/dist/esm/types/theme/prosperitaTheme.d.ts +3 -3
  207. package/dist/esm/types/utils.d.ts +1 -1
  208. package/dist/index.d.ts +274 -273
  209. package/package.json +104 -104
package/dist/index.d.ts CHANGED
@@ -2,334 +2,335 @@
2
2
  import React, { ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, ChangeEvent, LiHTMLAttributes } from 'react';
3
3
  import { Props } from 'react-select';
4
4
 
5
- type ItemsProps = {
6
- label: string;
7
- href: string;
8
- img?: string;
9
- };
10
- type BreadcrumbProps = {
11
- menus: ItemsProps[];
12
- };
5
+ type ItemsProps = {
6
+ label: string;
7
+ href: string;
8
+ img?: string;
9
+ };
10
+ type BreadcrumbProps = {
11
+ menus: ItemsProps[];
12
+ };
13
13
  declare const Breadcrumb: (props: BreadcrumbProps) => JSX.Element;
14
14
 
15
- type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
16
- mode: "main" | "border" | "phantom";
17
- link?: boolean;
18
- icon?: string;
19
- iconPosition?: "left" | "right";
20
- arrow?: "left" | "right";
21
- danger?: boolean;
22
- disabled?: boolean;
23
- loading?: boolean;
24
- label?: string;
25
- value?: string;
26
- type?: string;
27
- full?: boolean;
28
- children?: JSX.Element;
29
- };
15
+ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
16
+ mode: "main" | "border" | "phantom";
17
+ link?: boolean;
18
+ icon?: string;
19
+ iconPosition?: "left" | "right";
20
+ arrow?: "left" | "right";
21
+ danger?: boolean;
22
+ disabled?: boolean;
23
+ loading?: boolean;
24
+ label?: string;
25
+ value?: string;
26
+ type?: string;
27
+ full?: boolean;
28
+ children?: JSX.Element;
29
+ };
30
30
  declare const Button: ({ onClick, ...props }: ButtonProps) => JSX.Element;
31
31
 
32
- type ReturnButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
33
- label: string;
34
- onClick?: () => void;
35
- };
32
+ type ReturnButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
33
+ label: string;
34
+ onClick?: () => void;
35
+ };
36
36
  declare const ReturnButton: (props: ReturnButtonProps) => JSX.Element;
37
37
 
38
- type DropdownOptions$1 = {
39
- value?: string;
40
- label?: string;
41
- color?: string;
42
- onClick?: () => void;
43
- };
44
- type ButtonDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
45
- mode: "main" | "border";
46
- icon?: string;
47
- label?: string;
48
- loading?: boolean;
49
- value?: string;
50
- type?: string;
51
- double?: boolean;
52
- options?: DropdownOptions$1[];
53
- };
38
+ type DropdownOptions$1 = {
39
+ value?: string;
40
+ label?: string;
41
+ color?: string;
42
+ onClick?: () => void;
43
+ };
44
+ type ButtonDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
45
+ mode: "main" | "border";
46
+ icon?: string;
47
+ label?: string;
48
+ loading?: boolean;
49
+ value?: string;
50
+ type?: string;
51
+ double?: boolean;
52
+ options?: DropdownOptions$1[];
53
+ };
54
54
  declare const ButtonDropdown: (props: ButtonDropdownProps) => JSX.Element;
55
55
 
56
- type CheckboxProps = InputHTMLAttributes<HTMLInputElement> & {
57
- label?: string;
58
- disabled?: boolean;
59
- checked?: boolean;
60
- position?: "top" | "bottom" | "left" | "right";
61
- name?: string;
62
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
63
- onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
64
- };
56
+ type CheckboxProps = InputHTMLAttributes<HTMLInputElement> & {
57
+ label?: string;
58
+ disabled?: boolean;
59
+ checked?: boolean;
60
+ position?: "top" | "bottom" | "left" | "right";
61
+ name?: string;
62
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
63
+ onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
64
+ };
65
65
  declare const Checkbox: ({ onChange, ...props }: CheckboxProps) => JSX.Element;
66
66
 
67
- type DropzoneProps = {
68
- error?: string;
69
- helper?: string;
70
- onFilesChanged?: (files: File[]) => void;
71
- };
67
+ type DropzoneProps = {
68
+ error?: string;
69
+ helper?: string;
70
+ onFilesChanged?: (files: File[]) => void;
71
+ };
72
72
  declare const Dropzone: (props: DropzoneProps) => JSX.Element;
73
73
 
74
- type InputProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
75
- value?: string | number | boolean | readonly string[] | undefined;
76
- error?: string | boolean;
77
- success?: boolean;
78
- helper?: string;
79
- label?: string;
80
- newPassword?: boolean;
81
- newPasswordLevel?: string;
82
- search?: boolean;
83
- mask?: string;
84
- maskChar?: string | null;
85
- };
74
+ type InputProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
75
+ value?: string | number | boolean | readonly string[] | undefined;
76
+ error?: string | boolean;
77
+ success?: boolean;
78
+ helper?: string;
79
+ label?: string;
80
+ newPassword?: boolean;
81
+ newPasswordLevel?: string;
82
+ search?: boolean;
83
+ mask?: string;
84
+ maskChar?: string | null;
85
+ };
86
86
  declare const Input: (props: InputProps) => JSX.Element;
87
87
 
88
- type ModalProps$1 = HTMLAttributes<HTMLDivElement> & {
89
- open?: boolean;
90
- header?: boolean;
91
- title?: string;
92
- children?: JSX.Element;
93
- size: "md" | "lg";
94
- toggleModal: (event: any) => void;
95
- };
88
+ type ModalProps$1 = HTMLAttributes<HTMLDivElement> & {
89
+ open?: boolean;
90
+ header?: boolean;
91
+ title?: string;
92
+ children?: JSX.Element;
93
+ size: "md" | "lg";
94
+ toggleModal: (event: any) => void;
95
+ };
96
96
  declare const InteractiveModal: (props: ModalProps$1) => JSX.Element;
97
97
 
98
- type ModalProps = HTMLAttributes<HTMLDivElement> & {
99
- open?: boolean;
100
- header?: boolean;
101
- title?: string;
102
- children?: JSX.Element;
103
- toggleModal: () => void;
104
- };
98
+ type ModalProps = HTMLAttributes<HTMLDivElement> & {
99
+ open?: boolean;
100
+ header?: boolean;
101
+ title?: string;
102
+ children?: JSX.Element;
103
+ toggleModal: () => void;
104
+ };
105
105
  declare const lateralModal: (props: ModalProps) => JSX.Element;
106
106
 
107
- type UsersProps = {
108
- img?: string;
109
- text: string;
110
- label: string;
111
- changeUser?: (index?: number) => void;
112
- };
113
- type MenuDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
114
- open?: boolean;
115
- description?: string;
116
- onUserChange?: (user: UsersProps, index: number) => void;
117
- users?: UsersProps[];
118
- };
107
+ type UsersProps = {
108
+ img?: string;
109
+ text: string;
110
+ label: string;
111
+ changeUser?: (index?: number) => void;
112
+ };
113
+ type MenuDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
114
+ open?: boolean;
115
+ description?: string;
116
+ onUserChange?: (user: UsersProps, index: number) => void;
117
+ users?: UsersProps[];
118
+ };
119
119
  declare const MenuDropdown: (props: MenuDropdownProps) => JSX.Element;
120
120
 
121
- type NotificationsProps = {
122
- img: string;
123
- text: string;
124
- time: string;
125
- };
126
- type NotificationsBarProps = {
127
- title: string;
128
- message?: string;
129
- notifications?: NotificationsProps[];
130
- onNotificationClick?: (notification: NotificationsProps, index: number) => void;
131
- left?: number;
132
- right?: number;
133
- top?: number;
134
- bottom?: number;
135
- open?: boolean;
136
- };
121
+ type NotificationsProps = {
122
+ img: string;
123
+ text: string;
124
+ time: string;
125
+ };
126
+ type NotificationsBarProps = {
127
+ title: string;
128
+ message?: string;
129
+ notifications?: NotificationsProps[];
130
+ onNotificationClick?: (notification: NotificationsProps, index: number) => void;
131
+ left?: number;
132
+ right?: number;
133
+ top?: number;
134
+ bottom?: number;
135
+ open?: boolean;
136
+ };
137
137
  declare const NotificationBar: (props: NotificationsBarProps) => JSX.Element;
138
138
 
139
- type RadioProps = {
140
- label?: string;
141
- disabled?: boolean;
142
- checked?: boolean;
143
- position?: "top" | "bottom" | "left" | "right";
144
- onChange?: (value: boolean) => void;
145
- };
139
+ type RadioProps = {
140
+ label?: string;
141
+ disabled?: boolean;
142
+ checked?: boolean;
143
+ position?: "top" | "bottom" | "left" | "right";
144
+ onChange?: (value: boolean) => void;
145
+ };
146
146
  declare const Radio: ({ onChange, ...props }: RadioProps) => JSX.Element;
147
147
 
148
- type OptionsProps = {
149
- title: string;
150
- description: string;
151
- value: string;
152
- setIndex?: (event: React.MouseEvent<HTMLDivElement>) => void;
153
- };
154
- type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
155
- display: "row" | "column";
156
- options: OptionsProps[];
157
- value?: string;
158
- onChange?: (value: string, index: number) => void;
159
- wrap?: boolean;
160
- title?: string;
161
- description?: string;
162
- active?: boolean;
163
- };
148
+ type OptionsProps = {
149
+ title: string;
150
+ description: string;
151
+ value: string;
152
+ setIndex?: (event: React.MouseEvent<HTMLDivElement>) => void;
153
+ };
154
+ type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
155
+ display: "row" | "column";
156
+ options: OptionsProps[];
157
+ value?: string;
158
+ onChange?: (value: string, index: number) => void;
159
+ wrap?: boolean;
160
+ title?: string;
161
+ description?: string;
162
+ active?: boolean;
163
+ };
164
164
  declare const RadioGroup: (props: RadioGroupProps) => JSX.Element;
165
165
 
166
- type ResultsProps = {
167
- value: string;
168
- label: string;
169
- };
170
- type SearchProps = InputHTMLAttributes<HTMLInputElement> & {
171
- showResults?: ResultsProps[];
172
- loading?: boolean;
173
- };
166
+ type ResultsProps = {
167
+ value: string;
168
+ label: string;
169
+ };
170
+ type SearchProps = InputHTMLAttributes<HTMLInputElement> & {
171
+ showResults?: ResultsProps[];
172
+ loading?: boolean;
173
+ };
174
174
  declare const Search: (props: SearchProps) => JSX.Element;
175
175
 
176
- type SelectProps = Omit<Props, "onChange"> & {
177
- onChange?: (event: any) => void;
178
- error?: string | boolean;
179
- success?: boolean;
180
- helper?: string;
181
- label?: string;
182
- };
176
+ type SelectProps = Omit<Props, "onChange"> & {
177
+ onChange?: (event: any) => void;
178
+ error?: string | boolean;
179
+ success?: boolean;
180
+ helper?: string;
181
+ label?: string;
182
+ };
183
183
  declare const CustomSelect: (props: SelectProps) => JSX.Element;
184
184
 
185
- type MenuItem = {
186
- icon: string;
187
- text: string;
188
- onMenuClick?: (index: number) => void;
189
- };
190
- type SideBarProps = {
191
- menu: MenuItem[];
192
- footer?: MenuItem[];
193
- logo: string;
194
- active?: boolean;
195
- menuActiveIndex?: number;
196
- };
185
+ type MenuItem = {
186
+ icon: string;
187
+ text: string;
188
+ onMenuClick?: (index: number) => void;
189
+ };
190
+ type SideBarProps = {
191
+ menu: MenuItem[];
192
+ footer?: MenuItem[];
193
+ logo: string;
194
+ active?: boolean;
195
+ menuActiveIndex?: number;
196
+ };
197
197
  declare const SideBar: (props: SideBarProps) => JSX.Element;
198
198
 
199
- type SpacerProps = {
200
- top?: number;
201
- bottom?: number;
202
- left?: number;
203
- right?: number;
204
- };
199
+ type SpacerProps = {
200
+ top?: number;
201
+ bottom?: number;
202
+ left?: number;
203
+ right?: number;
204
+ };
205
205
  declare const Spacer: (props: SpacerProps) => JSX.Element;
206
206
 
207
- type MenusProps = {
208
- label: string;
209
- value: string;
210
- disabled?: boolean;
211
- onClick?: () => void;
212
- };
213
- type TabMenuProps = {
214
- menus: MenusProps[];
215
- onChangeTab?: (index: number) => void;
216
- };
207
+ type MenusProps = {
208
+ label: string;
209
+ value: string;
210
+ disabled?: boolean;
211
+ onClick?: () => void;
212
+ };
213
+ type TabMenuProps = {
214
+ menus: MenusProps[];
215
+ onChangeTab?: (index: number) => void;
216
+ };
217
217
  declare const TabMenu: (props: TabMenuProps) => JSX.Element;
218
218
 
219
- type ToastProps = HTMLAttributes<HTMLDivElement> & {
220
- active?: boolean;
221
- mode: "warning" | "success" | "error";
222
- title: string;
223
- text: string;
224
- position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
225
- toggleToast?: (event: any) => void;
226
- };
219
+ type ToastProps = HTMLAttributes<HTMLDivElement> & {
220
+ active?: boolean;
221
+ mode: "warning" | "success" | "error";
222
+ title: string;
223
+ text: string;
224
+ position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
225
+ toggleToast?: (event: any) => void;
226
+ };
227
227
  declare const Toast: (props: ToastProps) => JSX.Element;
228
228
 
229
- type ToggleProps = {
230
- mode: "small" | "large";
231
- actived?: boolean;
232
- checked?: boolean;
233
- };
229
+ type ToggleProps = {
230
+ mode: "small" | "large";
231
+ actived?: boolean;
232
+ checked?: boolean;
233
+ };
234
234
  declare const Toggle: (props: ToggleProps) => JSX.Element;
235
235
 
236
- type ProgressBarProps = {
237
- percent: number;
238
- color?: string;
239
- };
236
+ type ProgressBarProps = {
237
+ percent: number;
238
+ color?: string;
239
+ };
240
240
  declare const ProgressBar: (props: ProgressBarProps) => JSX.Element;
241
241
 
242
- type InputTokenProps = {
243
- inputsNumber?: number;
244
- onInputChange?: (value: string) => void;
245
- };
246
- declare function InputToken({ inputsNumber: numberOfInputs, onInputChange, }: InputTokenProps): JSX.Element;
242
+ type InputTokenProps = {
243
+ inputsNumber?: number;
244
+ onInputChange?: (value: string) => void;
245
+ clearAll?: boolean;
246
+ };
247
+ declare function InputToken({ inputsNumber: numberOfInputs, onInputChange, clearAll, }: InputTokenProps): JSX.Element;
247
248
 
248
- type TableColumn<T = any> = {
249
- label: string;
250
- key: string;
251
- renderColumn?: (data: T, index: number) => JSX.Element;
252
- renderData?: (data: T, index: number) => JSX.Element;
253
- };
254
- type TableProps = {
255
- columns: TableColumn<any>[];
256
- data: any[];
257
- dataSpacer?: number;
258
- };
249
+ type TableColumn<T = any> = {
250
+ label: string;
251
+ key: string;
252
+ renderColumn?: (data: T, index: number) => JSX.Element;
253
+ renderData?: (data: T, index: number) => JSX.Element;
254
+ };
255
+ type TableProps = {
256
+ columns: TableColumn<any>[];
257
+ data: any[];
258
+ dataSpacer?: number;
259
+ };
259
260
  declare const Table: (props: TableProps) => JSX.Element;
260
261
 
261
- type InputCurrencyProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
262
- value?: string;
263
- error?: string | boolean;
264
- success?: boolean;
265
- helper?: string;
266
- label?: string;
267
- newPassword?: boolean;
268
- newPasswordLevel?: string;
269
- search?: boolean;
270
- mask?: string;
271
- required?: boolean;
272
- disabled?: boolean;
273
- type?: string;
274
- onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
275
- maxLength?: number;
276
- fontSize?: "normal" | "large";
277
- name?: string;
278
- };
262
+ type InputCurrencyProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
263
+ value?: string;
264
+ error?: string | boolean;
265
+ success?: boolean;
266
+ helper?: string;
267
+ label?: string;
268
+ newPassword?: boolean;
269
+ newPasswordLevel?: string;
270
+ search?: boolean;
271
+ mask?: string;
272
+ required?: boolean;
273
+ disabled?: boolean;
274
+ type?: string;
275
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
276
+ maxLength?: number;
277
+ fontSize?: "normal" | "large";
278
+ name?: string;
279
+ };
279
280
  declare const InputCurrency: (props: InputCurrencyProps) => JSX.Element;
280
281
 
281
- type panelProps = {
282
- label?: string;
283
- balance?: string;
284
- currency?: string;
285
- value?: string;
286
- toggleBalance?: boolean;
287
- render?: () => JSX.Element;
288
- secondaryRender?: () => JSX.Element;
289
- };
290
- type SummaryPanelProps = {
291
- panel: panelProps[];
292
- };
282
+ type panelProps = {
283
+ label?: string;
284
+ balance?: string;
285
+ currency?: string;
286
+ value?: string;
287
+ toggleBalance?: boolean;
288
+ render?: () => JSX.Element;
289
+ secondaryRender?: () => JSX.Element;
290
+ };
291
+ type SummaryPanelProps = {
292
+ panel: panelProps[];
293
+ };
293
294
  declare const SummaryPanel: (props: SummaryPanelProps) => JSX.Element;
294
295
 
295
- type PaginationProps = LiHTMLAttributes<HTMLLIElement> & {
296
- total: number;
297
- limit: number;
298
- offset?: number;
299
- changePage?: (page: number) => void;
300
- setOffset?: (offset: number) => void;
301
- };
296
+ type PaginationProps = LiHTMLAttributes<HTMLLIElement> & {
297
+ total: number;
298
+ limit: number;
299
+ offset?: number;
300
+ changePage?: (page: number) => void;
301
+ setOffset?: (offset: number) => void;
302
+ };
302
303
  declare const Pagination: (props: PaginationProps) => JSX.Element;
303
304
 
304
- type BalanceAlertProps = {
305
- title: string;
306
- message: string;
307
- show?: boolean;
308
- };
305
+ type BalanceAlertProps = {
306
+ title: string;
307
+ message: string;
308
+ show?: boolean;
309
+ };
309
310
  declare const BalanceAlert: (props: BalanceAlertProps) => JSX.Element;
310
311
 
311
- type ParcelSelectorProps = {
312
- value: number;
313
- onChange: (value: number) => void;
314
- };
312
+ type ParcelSelectorProps = {
313
+ value: number;
314
+ onChange: (value: number) => void;
315
+ };
315
316
  declare const ParcelSelector: React.FC<ParcelSelectorProps>;
316
317
 
317
- type DropContainerProps = {
318
- open?: boolean;
319
- };
320
- type DropdownOptions = {
321
- value: string;
322
- label: string;
323
- color?: string;
324
- icon?: string;
325
- onClick?: (value: string) => void;
326
- };
327
- type ButtonMoreDetailsProps = ButtonHTMLAttributes<HTMLButtonElement> & {
328
- icon?: string;
329
- value?: string;
330
- options?: DropdownOptions[];
331
- open?: boolean;
332
- };
318
+ type DropContainerProps = {
319
+ open?: boolean;
320
+ };
321
+ type DropdownOptions = {
322
+ value: string;
323
+ label: string;
324
+ color?: string;
325
+ icon?: string;
326
+ onClick?: (value: string) => void;
327
+ };
328
+ type ButtonMoreDetailsProps = ButtonHTMLAttributes<HTMLButtonElement> & {
329
+ icon?: string;
330
+ value?: string;
331
+ options?: DropdownOptions[];
332
+ open?: boolean;
333
+ };
333
334
  declare const ButtonMoreDetails: (props: ButtonMoreDetailsProps & DropContainerProps) => JSX.Element;
334
335
 
335
336
  export { BalanceAlert, Breadcrumb, Button, ButtonDropdown, ButtonMoreDetails, Checkbox, CustomSelect, Dropzone, 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 };