@prosperitainova/mirage-ui 1.0.14 → 1.0.16

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 (160) hide show
  1. package/dist/cjs/index.js +7 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/{src/index.d.ts → index.d.ts} +1 -1
  4. package/dist/cjs/types/{src/lib → lib}/Breadcrumb/Breadcrumb.d.ts +12 -12
  5. package/dist/{esm/types/src → cjs/types}/lib/Breadcrumb/Breadcrumb.stories.d.ts +14 -14
  6. package/dist/{esm/types/src → cjs/types}/lib/Breadcrumb/index.d.ts +1 -1
  7. package/dist/cjs/types/{src/lib → lib}/Button/Button.d.ts +34 -34
  8. package/dist/cjs/types/{src/lib → lib}/Button/Button.stories.d.ts +17 -17
  9. package/dist/{esm/types/src → cjs/types}/lib/Button/index.d.ts +1 -1
  10. package/dist/{esm/types/src → cjs/types}/lib/ButtonDropdown/ButtonDropdown.d.ts +20 -20
  11. package/dist/{esm/types/src → cjs/types}/lib/ButtonDropdown/ButtonDropdown.stories.d.ts +12 -12
  12. package/dist/{esm/types/src → cjs/types}/lib/ButtonDropdown/index.d.ts +1 -1
  13. package/dist/cjs/types/{src/lib → lib}/Checkbox/Checkbox.d.ts +11 -11
  14. package/dist/cjs/types/{src/lib → lib}/Checkbox/Checkbox.stories.d.ts +9 -9
  15. package/dist/cjs/types/{src/lib → lib}/Checkbox/index.d.ts +1 -1
  16. package/dist/cjs/types/lib/CustomSelect/CustomSelect.d.ts +12 -0
  17. package/dist/cjs/types/lib/CustomSelect/CustomSelect.stories.d.ts +5 -0
  18. package/dist/cjs/types/lib/CustomSelect/index.d.ts +1 -0
  19. package/dist/cjs/types/{src/lib/Sellect → lib/CustomSelect}/style.d.ts +3 -3
  20. package/dist/cjs/types/{src/lib → lib}/Dropzone/Dropzone.d.ts +9 -8
  21. package/dist/{esm/types/src → cjs/types}/lib/Dropzone/Dropzone.stories.d.ts +9 -9
  22. package/dist/cjs/types/{src/lib → lib}/Dropzone/index.d.ts +1 -1
  23. package/dist/{esm/types/src → cjs/types}/lib/Input/Input.d.ts +13 -13
  24. package/dist/{esm/types/src → cjs/types}/lib/Input/Input.stories.d.ts +12 -11
  25. package/dist/cjs/types/{src/lib → lib}/Input/index.d.ts +1 -1
  26. package/dist/{esm/types/src → cjs/types}/lib/InteractiveModal/InteractiveModal.d.ts +12 -12
  27. package/dist/{esm/types/src → cjs/types}/lib/InteractiveModal/InteractiveModal.stories.d.ts +9 -8
  28. package/dist/cjs/types/{src/lib → lib}/InteractiveModal/TesterInteractiveModal.d.ts +3 -2
  29. package/dist/{esm/types/src → cjs/types}/lib/InteractiveModal/TesterInteractiveModal.stories.d.ts +9 -8
  30. package/dist/cjs/types/{src/lib → lib}/InteractiveModal/index.d.ts +1 -1
  31. package/dist/cjs/types/{src/lib → lib}/LateralModal/LateralModal.d.ts +11 -11
  32. package/dist/{esm/types/src → cjs/types}/lib/LateralModal/LateralModal.stories.d.ts +9 -9
  33. package/dist/cjs/types/{src/lib → lib}/LateralModal/TesterLateralModal.d.ts +3 -2
  34. package/dist/{esm/types/src → cjs/types}/lib/LateralModal/TesterLateralModal.stories.d.ts +9 -8
  35. package/dist/cjs/types/{src/lib → lib}/LateralModal/index.d.ts +1 -1
  36. package/dist/cjs/types/{src/lib → lib}/MenuDropdown/MenuDropdown.d.ts +14 -14
  37. package/dist/{esm/types/src → cjs/types}/lib/MenuDropdown/MenuDropdown.stories.d.ts +9 -9
  38. package/dist/cjs/types/{src/lib → lib}/MenuDropdown/index.d.ts +1 -1
  39. package/dist/{esm/types/src → cjs/types}/lib/NotificationsBar/NotificationsBar.d.ts +15 -14
  40. package/dist/cjs/types/{src/lib → lib}/NotificationsBar/NotificationsBar.stories.d.ts +10 -10
  41. package/dist/cjs/types/{src/lib → lib}/NotificationsBar/index.d.ts +1 -1
  42. package/dist/cjs/types/{src/lib → lib}/Radio/Radio.d.ts +11 -10
  43. package/dist/cjs/types/{src/lib → lib}/Radio/Radio.stories.d.ts +9 -9
  44. package/dist/cjs/types/{src/lib → lib}/Radio/index.d.ts +1 -1
  45. package/dist/cjs/types/{src/lib → lib}/RadioGroup/Radio.d.ts +11 -10
  46. package/dist/{esm/types/src → cjs/types}/lib/RadioGroup/RadioGroup.d.ts +11 -11
  47. package/dist/cjs/types/{src/lib → lib}/RadioGroup/RadioGroup.stories.d.ts +9 -9
  48. package/dist/cjs/types/{src/lib → lib}/RadioGroup/index.d.ts +1 -1
  49. package/dist/{esm/types/src → cjs/types}/lib/Search/Search.d.ts +12 -12
  50. package/dist/{esm/types/src → cjs/types}/lib/Search/Search.stories.d.ts +9 -9
  51. package/dist/cjs/types/{src/lib → lib}/Search/index.d.ts +1 -1
  52. package/dist/{esm/types/src → cjs/types}/lib/Sellect/Sellect.d.ts +11 -11
  53. package/dist/cjs/types/{src/lib → lib}/Sellect/Sellect.stories.d.ts +5 -5
  54. package/dist/cjs/types/{src/lib → lib}/Sellect/index.d.ts +1 -1
  55. package/dist/{esm/types/src → cjs/types}/lib/Sellect/style.d.ts +3 -3
  56. package/dist/{esm/types/src → cjs/types}/lib/SideBar/SideBar.d.ts +16 -15
  57. package/dist/{esm/types/src → cjs/types}/lib/SideBar/SideBar.stories.d.ts +8 -7
  58. package/dist/cjs/types/{src/lib → lib}/SideBar/index.d.ts +1 -1
  59. package/dist/cjs/types/{src/lib → lib}/Spacer/Spacer.d.ts +9 -9
  60. package/dist/cjs/types/{src/lib → lib}/Spacer/index.d.ts +1 -1
  61. package/dist/cjs/types/{src/lib → lib}/TabMenu/TabMenu.d.ts +13 -13
  62. package/dist/{esm/types/src → cjs/types}/lib/TabMenu/TabMenu.stories.d.ts +9 -9
  63. package/dist/cjs/types/{src/lib → lib}/TabMenu/index.d.ts +1 -1
  64. package/dist/cjs/types/{src/lib → lib}/Table/Table.d.ts +13 -13
  65. package/dist/cjs/types/{src/lib → lib}/Table/Table.stories.d.ts +9 -9
  66. package/dist/cjs/types/{src/lib → lib}/Table/index.d.ts +1 -1
  67. package/dist/cjs/types/{src/lib → lib}/Toast/TesterToast.d.ts +3 -2
  68. package/dist/{esm/types/src → cjs/types}/lib/Toast/TesterToast.stories.d.ts +9 -8
  69. package/dist/{esm/types/src → cjs/types}/lib/Toast/Toast.d.ts +12 -12
  70. package/dist/cjs/types/{src/lib → lib}/Toast/Toast.stories.d.ts +11 -11
  71. package/dist/cjs/types/{src/lib → lib}/Toast/index.d.ts +1 -1
  72. package/dist/cjs/types/{src/lib → lib}/Toggle/Toggle.d.ts +8 -8
  73. package/dist/cjs/types/{src/lib → lib}/Toggle/Toggle.stories.d.ts +10 -10
  74. package/dist/cjs/types/{src/lib → lib}/Toggle/index.d.ts +1 -1
  75. package/dist/cjs/types/{src/lib → lib}/index.d.ts +19 -19
  76. package/dist/cjs/types/{src/setupTests.d.ts → setupTests.d.ts} +1 -1
  77. package/dist/cjs/types/{src/theme → theme}/DefaultTheme.d.ts +4 -4
  78. package/dist/cjs/types/{src/theme → theme}/index.d.ts +2 -2
  79. package/dist/cjs/types/{src/theme → theme}/prosperitaTheme.d.ts +3 -3
  80. package/dist/esm/index.js +7 -2
  81. package/dist/esm/index.js.map +1 -1
  82. package/dist/esm/types/{src/index.d.ts → index.d.ts} +1 -1
  83. package/dist/esm/types/{src/lib → lib}/Breadcrumb/Breadcrumb.d.ts +12 -12
  84. package/dist/{cjs/types/src → esm/types}/lib/Breadcrumb/Breadcrumb.stories.d.ts +14 -14
  85. package/dist/{cjs/types/src → esm/types}/lib/Breadcrumb/index.d.ts +1 -1
  86. package/dist/esm/types/{src/lib → lib}/Button/Button.d.ts +34 -34
  87. package/dist/esm/types/{src/lib → lib}/Button/Button.stories.d.ts +17 -17
  88. package/dist/{cjs/types/src → esm/types}/lib/Button/index.d.ts +1 -1
  89. package/dist/{cjs/types/src → esm/types}/lib/ButtonDropdown/ButtonDropdown.d.ts +20 -20
  90. package/dist/{cjs/types/src → esm/types}/lib/ButtonDropdown/ButtonDropdown.stories.d.ts +12 -12
  91. package/dist/{cjs/types/src → esm/types}/lib/ButtonDropdown/index.d.ts +1 -1
  92. package/dist/esm/types/{src/lib → lib}/Checkbox/Checkbox.d.ts +11 -11
  93. package/dist/esm/types/{src/lib → lib}/Checkbox/Checkbox.stories.d.ts +9 -9
  94. package/dist/esm/types/{src/lib → lib}/Checkbox/index.d.ts +1 -1
  95. package/dist/esm/types/lib/CustomSelect/CustomSelect.d.ts +12 -0
  96. package/dist/esm/types/lib/CustomSelect/CustomSelect.stories.d.ts +5 -0
  97. package/dist/esm/types/lib/CustomSelect/index.d.ts +1 -0
  98. package/dist/esm/types/lib/CustomSelect/style.d.ts +3 -0
  99. package/dist/esm/types/{src/lib → lib}/Dropzone/Dropzone.d.ts +9 -8
  100. package/dist/{cjs/types/src → esm/types}/lib/Dropzone/Dropzone.stories.d.ts +9 -9
  101. package/dist/esm/types/{src/lib → lib}/Dropzone/index.d.ts +1 -1
  102. package/dist/{cjs/types/src → esm/types}/lib/Input/Input.d.ts +13 -13
  103. package/dist/{cjs/types/src → esm/types}/lib/Input/Input.stories.d.ts +12 -11
  104. package/dist/esm/types/{src/lib → lib}/Input/index.d.ts +1 -1
  105. package/dist/{cjs/types/src → esm/types}/lib/InteractiveModal/InteractiveModal.d.ts +12 -12
  106. package/dist/{cjs/types/src → esm/types}/lib/InteractiveModal/InteractiveModal.stories.d.ts +9 -8
  107. package/dist/esm/types/{src/lib → lib}/InteractiveModal/TesterInteractiveModal.d.ts +3 -2
  108. package/dist/{cjs/types/src → esm/types}/lib/InteractiveModal/TesterInteractiveModal.stories.d.ts +9 -8
  109. package/dist/esm/types/{src/lib → lib}/InteractiveModal/index.d.ts +1 -1
  110. package/dist/esm/types/{src/lib → lib}/LateralModal/LateralModal.d.ts +11 -11
  111. package/dist/{cjs/types/src → esm/types}/lib/LateralModal/LateralModal.stories.d.ts +9 -9
  112. package/dist/esm/types/{src/lib → lib}/LateralModal/TesterLateralModal.d.ts +3 -2
  113. package/dist/{cjs/types/src → esm/types}/lib/LateralModal/TesterLateralModal.stories.d.ts +9 -8
  114. package/dist/esm/types/{src/lib → lib}/LateralModal/index.d.ts +1 -1
  115. package/dist/esm/types/{src/lib → lib}/MenuDropdown/MenuDropdown.d.ts +14 -14
  116. package/dist/{cjs/types/src → esm/types}/lib/MenuDropdown/MenuDropdown.stories.d.ts +9 -9
  117. package/dist/esm/types/{src/lib → lib}/MenuDropdown/index.d.ts +1 -1
  118. package/dist/{cjs/types/src → esm/types}/lib/NotificationsBar/NotificationsBar.d.ts +15 -14
  119. package/dist/esm/types/{src/lib → lib}/NotificationsBar/NotificationsBar.stories.d.ts +10 -10
  120. package/dist/esm/types/{src/lib → lib}/NotificationsBar/index.d.ts +1 -1
  121. package/dist/esm/types/{src/lib → lib}/Radio/Radio.d.ts +11 -10
  122. package/dist/esm/types/{src/lib → lib}/Radio/Radio.stories.d.ts +9 -9
  123. package/dist/esm/types/{src/lib → lib}/Radio/index.d.ts +1 -1
  124. package/dist/esm/types/{src/lib → lib}/RadioGroup/Radio.d.ts +11 -10
  125. package/dist/{cjs/types/src → esm/types}/lib/RadioGroup/RadioGroup.d.ts +11 -11
  126. package/dist/esm/types/{src/lib → lib}/RadioGroup/RadioGroup.stories.d.ts +9 -9
  127. package/dist/esm/types/{src/lib → lib}/RadioGroup/index.d.ts +1 -1
  128. package/dist/{cjs/types/src → esm/types}/lib/Search/Search.d.ts +12 -12
  129. package/dist/{cjs/types/src → esm/types}/lib/Search/Search.stories.d.ts +9 -9
  130. package/dist/esm/types/{src/lib → lib}/Search/index.d.ts +1 -1
  131. package/dist/{cjs/types/src → esm/types}/lib/Sellect/Sellect.d.ts +11 -11
  132. package/dist/esm/types/{src/lib → lib}/Sellect/Sellect.stories.d.ts +5 -5
  133. package/dist/esm/types/{src/lib → lib}/Sellect/index.d.ts +1 -1
  134. package/dist/esm/types/lib/Sellect/style.d.ts +3 -0
  135. package/dist/{cjs/types/src → esm/types}/lib/SideBar/SideBar.d.ts +16 -15
  136. package/dist/{cjs/types/src → esm/types}/lib/SideBar/SideBar.stories.d.ts +8 -7
  137. package/dist/esm/types/{src/lib → lib}/SideBar/index.d.ts +1 -1
  138. package/dist/esm/types/{src/lib → lib}/Spacer/Spacer.d.ts +9 -9
  139. package/dist/esm/types/{src/lib → lib}/Spacer/index.d.ts +1 -1
  140. package/dist/esm/types/{src/lib → lib}/TabMenu/TabMenu.d.ts +13 -13
  141. package/dist/{cjs/types/src → esm/types}/lib/TabMenu/TabMenu.stories.d.ts +9 -9
  142. package/dist/esm/types/{src/lib → lib}/TabMenu/index.d.ts +1 -1
  143. package/dist/esm/types/{src/lib → lib}/Table/Table.d.ts +13 -13
  144. package/dist/esm/types/{src/lib → lib}/Table/Table.stories.d.ts +9 -9
  145. package/dist/esm/types/{src/lib → lib}/Table/index.d.ts +1 -1
  146. package/dist/esm/types/{src/lib → lib}/Toast/TesterToast.d.ts +3 -2
  147. package/dist/{cjs/types/src → esm/types}/lib/Toast/TesterToast.stories.d.ts +9 -8
  148. package/dist/{cjs/types/src → esm/types}/lib/Toast/Toast.d.ts +12 -12
  149. package/dist/esm/types/{src/lib → lib}/Toast/Toast.stories.d.ts +11 -11
  150. package/dist/esm/types/{src/lib → lib}/Toast/index.d.ts +1 -1
  151. package/dist/esm/types/{src/lib → lib}/Toggle/Toggle.d.ts +8 -8
  152. package/dist/esm/types/{src/lib → lib}/Toggle/Toggle.stories.d.ts +10 -10
  153. package/dist/esm/types/{src/lib → lib}/Toggle/index.d.ts +1 -1
  154. package/dist/esm/types/{src/lib → lib}/index.d.ts +19 -19
  155. package/dist/esm/types/{src/setupTests.d.ts → setupTests.d.ts} +1 -1
  156. package/dist/esm/types/{src/theme → theme}/DefaultTheme.d.ts +4 -4
  157. package/dist/esm/types/{src/theme → theme}/index.d.ts +2 -2
  158. package/dist/esm/types/{src/theme → theme}/prosperitaTheme.d.ts +3 -3
  159. package/dist/index.d.ts +177 -176
  160. package/package.json +2 -1
@@ -1,4 +1,4 @@
1
- import { AppTheme } from "../types";
2
- import "./fonts/ProximaNova.css";
3
- declare const defaultTheme: AppTheme;
4
- export default defaultTheme;
1
+ import { AppTheme } from "../types";
2
+ import "./fonts/ProximaNova.css";
3
+ declare const defaultTheme: AppTheme;
4
+ export default defaultTheme;
@@ -1,2 +1,2 @@
1
- declare const UITheme: import("../types").AppTheme;
2
- export default UITheme;
1
+ declare const UITheme: import("../types").AppTheme;
2
+ export default UITheme;
@@ -1,3 +1,3 @@
1
- import { AppTheme } from "../types";
2
- declare const prosperitaTheme: AppTheme;
3
- export default prosperitaTheme;
1
+ import { AppTheme } from "../types";
2
+ declare const prosperitaTheme: AppTheme;
3
+ export default prosperitaTheme;
package/dist/index.d.ts CHANGED
@@ -1,215 +1,216 @@
1
1
  /// <reference types="react" />
2
- import { ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes } from 'react';
2
+ import { ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, ChangeEvent } 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 DropdownOptions = {
33
- value: string;
34
- label: string;
35
- color?: string;
36
- onClick?: (value: string) => void;
37
- };
38
- type ButtonDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
39
- mode: "main" | "border";
40
- icon?: string;
41
- label?: string;
42
- loading?: boolean;
43
- value?: string;
44
- type?: string;
45
- double?: boolean;
46
- options: DropdownOptions[];
47
- };
32
+ type DropdownOptions = {
33
+ value: string;
34
+ label: string;
35
+ color?: string;
36
+ onClick?: (value: string) => void;
37
+ };
38
+ type ButtonDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
39
+ mode: "main" | "border";
40
+ icon?: string;
41
+ label?: string;
42
+ loading?: boolean;
43
+ value?: string;
44
+ type?: string;
45
+ double?: boolean;
46
+ options: DropdownOptions[];
47
+ };
48
48
  declare const ButtonDropdown: (props: ButtonDropdownProps) => JSX.Element;
49
49
 
50
- type CheckboxProps = {
51
- label?: string;
52
- disabled?: boolean;
53
- checked?: boolean;
54
- position?: "top" | "bottom" | "left" | "right";
55
- onChange?: (value: boolean) => void;
56
- };
50
+ type CheckboxProps = {
51
+ label?: string;
52
+ disabled?: boolean;
53
+ checked?: boolean;
54
+ position?: "top" | "bottom" | "left" | "right";
55
+ onChange?: (value: boolean) => void;
56
+ };
57
57
  declare const Checkbox: ({ onChange, ...props }: CheckboxProps) => JSX.Element;
58
58
 
59
- type DropzoneProps = {
60
- error: string;
61
- helper: string;
62
- onFilesChanged: (files: File[]) => void;
63
- };
59
+ type DropzoneProps = {
60
+ error: string;
61
+ helper: string;
62
+ onFilesChanged: (files: File[]) => void;
63
+ };
64
64
  declare const Dropzone: (props: DropzoneProps) => JSX.Element;
65
65
 
66
- type InputProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
67
- error?: string | boolean;
68
- success?: boolean;
69
- helper?: string;
70
- label?: string;
71
- newPassword?: boolean;
72
- newPasswordLevel?: string;
73
- filled?: boolean;
74
- };
66
+ type InputProps = InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement> & {
67
+ error?: string | boolean;
68
+ success?: boolean;
69
+ helper?: string;
70
+ label?: string;
71
+ newPassword?: boolean;
72
+ newPasswordLevel?: string;
73
+ filled?: boolean;
74
+ };
75
75
  declare const Input: (props: InputProps) => JSX.Element;
76
76
 
77
- type ModalProps$1 = HTMLAttributes<HTMLDivElement> & {
78
- open?: boolean;
79
- header?: boolean;
80
- title?: string;
81
- children?: JSX.Element;
82
- size: "md" | "lg";
83
- toggleModal: (event: any) => void;
84
- };
77
+ type ModalProps$1 = HTMLAttributes<HTMLDivElement> & {
78
+ open?: boolean;
79
+ header?: boolean;
80
+ title?: string;
81
+ children?: JSX.Element;
82
+ size: "md" | "lg";
83
+ toggleModal: (event: any) => void;
84
+ };
85
85
  declare const InteractiveModal: (props: ModalProps$1) => JSX.Element;
86
86
 
87
- type ModalProps = HTMLAttributes<HTMLDivElement> & {
88
- open?: boolean;
89
- header?: boolean;
90
- title?: string;
91
- children?: JSX.Element;
92
- toggleModal: () => void;
93
- };
87
+ type ModalProps = HTMLAttributes<HTMLDivElement> & {
88
+ open?: boolean;
89
+ header?: boolean;
90
+ title?: string;
91
+ children?: JSX.Element;
92
+ toggleModal: () => void;
93
+ };
94
94
  declare const lateralModal: (props: ModalProps) => JSX.Element;
95
95
 
96
- type UsersProps = {
97
- img: string;
98
- name: string;
99
- label: string;
100
- };
101
- type MenuDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
102
- open?: boolean;
103
- onUserChange?: (user: UsersProps, index: number) => void;
104
- users?: UsersProps[];
105
- };
96
+ type UsersProps = {
97
+ img: string;
98
+ name: string;
99
+ label: string;
100
+ };
101
+ type MenuDropdownProps = ButtonHTMLAttributes<HTMLButtonElement> & {
102
+ open?: boolean;
103
+ onUserChange?: (user: UsersProps, index: number) => void;
104
+ users?: UsersProps[];
105
+ };
106
106
  declare const MenuDropdown: (props: MenuDropdownProps) => JSX.Element;
107
107
 
108
- type NotificationsProps = {
109
- img: string;
110
- text: string;
111
- time: string;
112
- };
113
- type NotificationsBarProps = {
114
- title: string;
115
- message?: string;
116
- notifications?: NotificationsProps[];
117
- onNotificationClick?: (notification: NotificationsProps, index: number) => void;
118
- };
108
+ type NotificationsProps = {
109
+ img: string;
110
+ text: string;
111
+ time: string;
112
+ };
113
+ type NotificationsBarProps = {
114
+ title: string;
115
+ message?: string;
116
+ notifications?: NotificationsProps[];
117
+ onNotificationClick?: (notification: NotificationsProps, index: number) => void;
118
+ };
119
119
  declare const NotificationBar: (props: NotificationsBarProps) => JSX.Element;
120
120
 
121
- type RadioProps$1 = {
122
- label?: string;
123
- disabled?: boolean;
124
- checked?: boolean;
125
- position?: "top" | "bottom" | "left" | "right";
126
- onChange?: (value: boolean) => void;
127
- };
121
+ type RadioProps$1 = {
122
+ label?: string;
123
+ disabled?: boolean;
124
+ checked?: boolean;
125
+ position?: "top" | "bottom" | "left" | "right";
126
+ onChange?: (value: boolean) => void;
127
+ };
128
128
  declare const Radio: ({ onChange, ...props }: RadioProps$1) => JSX.Element;
129
129
 
130
- type RadioProps = {
131
- label: string;
132
- disabled?: boolean;
133
- checked?: boolean;
134
- position?: "top" | "bottom" | "left" | "right";
135
- value: string;
136
- onClick?: (value: string) => void;
137
- };
138
-
139
- type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
140
- display: "row" | "column";
141
- options: RadioProps[];
142
- value: string;
143
- onChange?: (value: string) => void;
144
- };
130
+ type RadioProps = {
131
+ label: string;
132
+ disabled?: boolean;
133
+ checked?: boolean;
134
+ position?: "top" | "bottom" | "left" | "right";
135
+ value: string;
136
+ onClick?: (value: string) => void;
137
+ };
138
+
139
+ type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
140
+ display: "row" | "column";
141
+ options: RadioProps[];
142
+ value: string;
143
+ onChange?: (value: string) => void;
144
+ };
145
145
  declare const RadioGroup: ({ options, value, onChange, ...props }: RadioGroupProps) => JSX.Element;
146
146
 
147
- type ResultsProps = {
148
- value: string;
149
- label: string;
150
- };
151
- type SearchProps = InputHTMLAttributes<HTMLInputElement> & {
152
- showResults?: ResultsProps[];
153
- loading?: boolean;
154
- };
147
+ type ResultsProps = {
148
+ value: string;
149
+ label: string;
150
+ };
151
+ type SearchProps = InputHTMLAttributes<HTMLInputElement> & {
152
+ showResults?: ResultsProps[];
153
+ loading?: boolean;
154
+ };
155
155
  declare const Search: (props: SearchProps) => JSX.Element;
156
156
 
157
- type SelectProps = Props & {
158
- error?: string;
159
- success?: boolean;
160
- helper?: string;
161
- label?: string;
162
- };
163
- declare const AppSelect: (props: SelectProps) => JSX.Element;
164
-
165
- type MenuItem = {
166
- icon: string;
167
- text: string;
168
- onClick?: () => void;
169
- };
170
- type SideBarProps = {
171
- activedIndex?: number;
172
- menu: MenuItem[];
173
- footer?: MenuItem[];
174
- logo: string;
175
- active?: boolean;
176
- };
157
+ type SelectProps = Props & {
158
+ onChange: ChangeEvent<HTMLSelectElement>;
159
+ error?: string;
160
+ success?: boolean;
161
+ helper?: string;
162
+ label?: string;
163
+ };
164
+ declare const CustomSelect: (props: SelectProps) => JSX.Element;
165
+
166
+ type MenuItem = {
167
+ icon: string;
168
+ text: string;
169
+ onClick?: () => void;
170
+ };
171
+ type SideBarProps = {
172
+ activedIndex?: number;
173
+ menu: MenuItem[];
174
+ footer?: MenuItem[];
175
+ logo: string;
176
+ active?: boolean;
177
+ };
177
178
  declare const SideBar: (props: SideBarProps) => JSX.Element;
178
179
 
179
- type SpacerProps = {
180
- top?: number;
181
- bottom?: number;
182
- left?: number;
183
- right?: number;
184
- };
180
+ type SpacerProps = {
181
+ top?: number;
182
+ bottom?: number;
183
+ left?: number;
184
+ right?: number;
185
+ };
185
186
  declare const Spacer: (props: SpacerProps) => JSX.Element;
186
187
 
187
- type MenusProps = {
188
- label: string;
189
- value: string;
190
- disabled?: boolean;
191
- };
192
- type TabMenuProps = {
193
- menus: MenusProps[];
194
- onChangeTab?: (index: number) => void;
195
- };
188
+ type MenusProps = {
189
+ label: string;
190
+ value: string;
191
+ disabled?: boolean;
192
+ };
193
+ type TabMenuProps = {
194
+ menus: MenusProps[];
195
+ onChangeTab?: (index: number) => void;
196
+ };
196
197
  declare const TabMenu: (props: TabMenuProps) => JSX.Element;
197
198
 
198
- type ToastProps = HTMLAttributes<HTMLDivElement> & {
199
- active?: boolean;
200
- mode: "warning" | "success" | "error";
201
- title: string;
202
- text: string;
203
- position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
204
- toggleToast?: (event: any) => void;
205
- };
199
+ type ToastProps = HTMLAttributes<HTMLDivElement> & {
200
+ active?: boolean;
201
+ mode: "warning" | "success" | "error";
202
+ title: string;
203
+ text: string;
204
+ position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
205
+ toggleToast?: (event: any) => void;
206
+ };
206
207
  declare const Toast: (props: ToastProps) => JSX.Element;
207
208
 
208
- type ToggleProps = {
209
- mode: "small" | "large";
210
- actived?: boolean;
211
- checked?: boolean;
212
- };
209
+ type ToggleProps = {
210
+ mode: "small" | "large";
211
+ actived?: boolean;
212
+ checked?: boolean;
213
+ };
213
214
  declare const Toggle: (props: ToggleProps) => JSX.Element;
214
215
 
215
- export { Breadcrumb, Button, ButtonDropdown, Checkbox, Dropzone, Input, InteractiveModal, lateralModal as LateralModal, MenuDropdown as Menudropdown, NotificationBar as NotificationsBar, Radio, RadioGroup, Search, AppSelect as Sellect, SideBar, Spacer, TabMenu as Table, Toast, Toggle };
216
+ export { Breadcrumb, Button, ButtonDropdown, Checkbox, CustomSelect, Dropzone, Input, InteractiveModal, lateralModal as LateralModal, MenuDropdown as Menudropdown, NotificationBar as NotificationsBar, 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.14",
3
+ "version": "1.0.16",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -86,6 +86,7 @@
86
86
  "rollup-plugin-postcss": "^4.0.2",
87
87
  "rollup-plugin-terser": "^7.0.2",
88
88
  "storybook-addon-styled-component-theme": "^2.0.0",
89
+ "styled-components": "^5.3.6",
89
90
  "webpack": "^5.75.0"
90
91
  },
91
92
  "main": "dist/cjs/index.js",