@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
|
@@ -2458,7 +2458,13 @@ var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
|
|
|
2458
2458
|
}, function (_ref2) {
|
|
2459
2459
|
var theme = _ref2.theme,
|
|
2460
2460
|
multiline = _ref2.multiline;
|
|
2461
|
-
|
|
2461
|
+
var shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline; // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
|
|
2462
|
+
// This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
|
|
2463
|
+
|
|
2464
|
+
if (shouldHandleSingleLineOnIOS) {
|
|
2465
|
+
return 0;
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2462
2468
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
2463
2469
|
return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight, "px");
|
|
2464
2470
|
}, function (_ref3) {
|