@dropi/react-native-design-system 0.2.30 → 0.2.32

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.
@@ -55,9 +55,10 @@ const EmailInput = ({
55
55
  helper: helper,
56
56
  tooltip: tooltip,
57
57
  onChangeText: text => {
58
- onChange(text);
58
+ const lowercaseText = text.toLowerCase();
59
+ onChange(lowercaseText);
59
60
  if (wasVisited) {
60
- if (validateEmail(value)) {
61
+ if (validateEmail(lowercaseText)) {
61
62
  setIncorrectEmail(false);
62
63
  } else {
63
64
  setIncorrectEmail(true);
@@ -6,13 +6,18 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.InputLabel = void 0;
7
7
  var _atoms = require("../../../atoms");
8
8
  var _constants = require("../../../constants");
9
+ var _reactNative = require("react-native");
9
10
  var _jsxRuntime = require("react/jsx-runtime");
10
11
  const InputLabel = ({
11
12
  text
12
13
  }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_atoms.Body, {
13
14
  type: "m-regular",
14
15
  style: {
15
- color: _constants.colors["Gray-600"].light
16
+ color: _constants.colors["Gray-600"].light,
17
+ marginBottom: _constants.spacing["size-1"],
18
+ ...(_reactNative.Platform.OS === 'android' && {
19
+ includeFontPadding: false
20
+ })
16
21
  },
17
22
  children: text
18
23
  });
@@ -9,7 +9,6 @@ declare const _default: {
9
9
  borderWidth: number;
10
10
  justifyContent: "space-between";
11
11
  flexDirection: "row";
12
- marginTop: number;
13
12
  height: number;
14
13
  paddingHorizontal: number;
15
14
  paddingVertical: number;
@@ -17,7 +17,6 @@ var _default = exports.default = _reactNative.StyleSheet.create({
17
17
  borderWidth: 1,
18
18
  justifyContent: "space-between",
19
19
  flexDirection: "row",
20
- marginTop: _constants.spacing["size-2"],
21
20
  height: 48,
22
21
  paddingHorizontal: _constants.spacing["size-3"],
23
22
  paddingVertical: _constants.spacing["size-2"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dropi/react-native-design-system",
3
- "version": "0.2.30",
3
+ "version": "0.2.32",
4
4
  "description": "A React Native package built from scratch",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",