@ornikar/kitt-universal 7.7.0 → 7.7.1
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/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +7 -1
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +7 -1
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +7 -1
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +2 -3
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +7 -1
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +0 -1
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -2432,7 +2432,13 @@ const StyledTextInput = /*#__PURE__*/styled__default(reactNative.TextInput).with
|
|
|
2432
2432
|
theme,
|
|
2433
2433
|
multiline
|
|
2434
2434
|
}) => {
|
|
2435
|
-
|
|
2435
|
+
const shouldHandleSingleLineOnIOS = reactNative.Platform.OS === 'ios' && !multiline; // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
|
|
2436
|
+
// This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
|
|
2437
|
+
|
|
2438
|
+
if (shouldHandleSingleLineOnIOS) {
|
|
2439
|
+
return 0;
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2436
2442
|
const typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
2437
2443
|
return `${theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight}px`;
|
|
2438
2444
|
}, ({
|