@momo-kits/foundation 0.81.43-tracking.8 → 0.81.43-tracking.9
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.
- package/Button/index.tsx +1 -0
- package/IconButton/index.tsx +10 -3
- package/Input/Input.tsx +1 -0
- package/Input/InputMoney.tsx +1 -0
- package/Input/InputOTP.tsx +1 -0
- package/Input/InputSearch.tsx +1 -0
- package/package.json +1 -1
package/Button/index.tsx
CHANGED
package/IconButton/index.tsx
CHANGED
|
@@ -30,6 +30,10 @@ export interface IconButtonProps extends TouchableOpacityProps {
|
|
|
30
30
|
* Optional. Defines the size of the IconButton.
|
|
31
31
|
*/
|
|
32
32
|
size?: 'large' | 'small';
|
|
33
|
+
|
|
34
|
+
params?: any;
|
|
35
|
+
|
|
36
|
+
componentId?: string;
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
const IconButton: React.FC<IconButtonProps> = ({
|
|
@@ -37,6 +41,8 @@ const IconButton: React.FC<IconButtonProps> = ({
|
|
|
37
41
|
icon,
|
|
38
42
|
size,
|
|
39
43
|
onPress,
|
|
44
|
+
params,
|
|
45
|
+
componentId,
|
|
40
46
|
...rest
|
|
41
47
|
}) => {
|
|
42
48
|
const {theme} = useContext(ApplicationContext);
|
|
@@ -130,9 +136,10 @@ const IconButton: React.FC<IconButtonProps> = ({
|
|
|
130
136
|
value={{
|
|
131
137
|
...screenInfo,
|
|
132
138
|
componentName: 'IconButton',
|
|
133
|
-
params
|
|
134
|
-
|
|
135
|
-
|
|
139
|
+
params,
|
|
140
|
+
state: type === 'disabled' ? 'disabled' : 'enabled',
|
|
141
|
+
componentId,
|
|
142
|
+
action: 'click',
|
|
136
143
|
}}>
|
|
137
144
|
<TouchableOpacity
|
|
138
145
|
{...rest}
|
package/Input/Input.tsx
CHANGED
package/Input/InputMoney.tsx
CHANGED
package/Input/InputOTP.tsx
CHANGED
package/Input/InputSearch.tsx
CHANGED