@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.
- package/Input/InputDropDown.tsx +0 -1
- package/Input/common.tsx +4 -2
- package/Input/styles.ts +2 -1
- package/package.json +1 -1
package/Input/InputDropDown.tsx
CHANGED
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.
|
|
208
|
+
marginVertical: Spacing.S,
|
|
208
209
|
marginRight: Spacing.S,
|
|
209
210
|
justifyContent: 'center',
|
|
210
211
|
},
|