@momo-kits/foundation 0.154.1-beta.2 → 0.154.1-beta.4

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.
@@ -79,7 +79,6 @@ const InputDropDown = ({
79
79
  style={[
80
80
  styles.leadingIconContainerDropDown,
81
81
  {
82
- marginTop: Spacing.M,
83
82
  marginRight: Spacing.S,
84
83
  },
85
84
  ]}
package/Input/common.tsx CHANGED
@@ -62,6 +62,8 @@ export const getSizeStyle = (
62
62
  size?: 'small' | 'large',
63
63
  multiline: boolean = false,
64
64
  ) => {
65
+ const scaleInputHeight = useScaleSize(size === 'small' ? 48 : 56, 1.1);
66
+
65
67
  if (multiline)
66
68
  return [
67
69
  styles.multilineContainer,
@@ -71,9 +73,9 @@ export const getSizeStyle = (
71
73
  ];
72
74
 
73
75
  if (size === 'small') {
74
- return styles.smallContainer;
76
+ return [styles.smallContainer, { height: scaleInputHeight }];
75
77
  }
76
- return styles.container;
78
+ return [styles.container, { height: scaleInputHeight }];
77
79
  };
78
80
  export const ErrorView: FC<{
79
81
  errorMessage?: string;
package/Input/styles.ts CHANGED
@@ -196,6 +196,7 @@ export default StyleSheet.create({
196
196
  inputDropDownView: {
197
197
  flex: 1,
198
198
  flexDirection: 'row',
199
+ alignItems: 'center',
199
200
  paddingLeft: Spacing.M,
200
201
  },
201
202
  iconViewDropDown: {
@@ -204,7 +205,7 @@ export default StyleSheet.create({
204
205
  },
205
206
  textViewDropDown: {
206
207
  flex: 1,
207
- marginVertical: Spacing.M,
208
+ marginVertical: Spacing.S,
208
209
  marginRight: Spacing.S,
209
210
  justifyContent: 'center',
210
211
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.154.1-beta.2",
3
+ "version": "0.154.1-beta.4",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},