@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 CHANGED
@@ -309,6 +309,7 @@ const Button: FC<ButtonProps> = ({
309
309
  params,
310
310
  state: type === 'disabled' ? 'disabled' : 'enabled',
311
311
  componentId,
312
+ action: 'click',
312
313
  }}>
313
314
  <TouchableOpacity
314
315
  {...rest}
@@ -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
- icon,
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
@@ -174,6 +174,7 @@ const Input = forwardRef(
174
174
  params,
175
175
  state: disabled ? 'disabled' : 'enabled',
176
176
  componentId,
177
+ action: 'focus',
177
178
  }}>
178
179
  <View
179
180
  style={[style, styles.wrapper]}
@@ -168,6 +168,7 @@ const InputMoney = forwardRef(
168
168
  params,
169
169
  state: 'enable',
170
170
  componentId,
171
+ action: 'focus',
171
172
  }}>
172
173
  <View
173
174
  style={[style, styles.wrapper]}
@@ -237,6 +237,7 @@ const InputOTP = forwardRef(
237
237
  params,
238
238
  state: 'enable',
239
239
  componentId,
240
+ action: 'focus',
240
241
  }}>
241
242
  <TouchableOpacity
242
243
  activeOpacity={1}
@@ -133,6 +133,7 @@ const InputSearch = forwardRef(
133
133
  params,
134
134
  state: 'enabled',
135
135
  componentId,
136
+ action: 'focus',
136
137
  }}>
137
138
  <View
138
139
  style={[style, styles.searchInputContainer]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.81.43-tracking.8",
3
+ "version": "0.81.43-tracking.9",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {