@aws-amplify/ui-react-native 1.2.24 → 1.2.26

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.
@@ -111,7 +111,7 @@ export const runFieldValidation = (field, value, stateValidations) => {
111
111
  fieldErrors.push(getRequiredFieldText());
112
112
  }
113
113
  if (field.type === 'email') {
114
- if (!isValidEmail(value)) {
114
+ if (!isValidEmail(value?.trim())) {
115
115
  fieldErrors.push(getInvalidEmailText());
116
116
  }
117
117
  }
@@ -0,0 +1,15 @@
1
+ import { ImageSourcePropType } from 'react-native';
2
+ declare const icons: {
3
+ amazonLogo: ImageSourcePropType;
4
+ appleLogo: ImageSourcePropType;
5
+ checkboxFilled: ImageSourcePropType;
6
+ checkboxOutline: ImageSourcePropType;
7
+ close: ImageSourcePropType;
8
+ copy: ImageSourcePropType;
9
+ error: ImageSourcePropType;
10
+ facebookLogo: ImageSourcePropType;
11
+ googleLogo: ImageSourcePropType;
12
+ visibilityOn: ImageSourcePropType;
13
+ visibilityOff: ImageSourcePropType;
14
+ };
15
+ export default icons;
@@ -0,0 +1,14 @@
1
+ const icons = {
2
+ amazonLogo: require('./amazonLogo.png'),
3
+ appleLogo: require('./appleLogo.png'),
4
+ checkboxFilled: require('./checkboxFilled.png'),
5
+ checkboxOutline: require('./checkboxOutline.png'),
6
+ close: require('./close.png'),
7
+ copy: require('./copy.png'),
8
+ error: require('./error.png'),
9
+ facebookLogo: require('./facebookLogo.png'),
10
+ googleLogo: require('./googleLogo.png'),
11
+ visibilityOn: require('./visibilityOn.png'),
12
+ visibilityOff: require('./visibilityOff.png'),
13
+ };
14
+ export default icons;
@@ -0,0 +1,17 @@
1
+ import { ImageSourcePropType } from 'react-native';
2
+
3
+ const icons = {
4
+ amazonLogo: require('./amazonLogo.png') as ImageSourcePropType,
5
+ appleLogo: require('./appleLogo.png') as ImageSourcePropType,
6
+ checkboxFilled: require('./checkboxFilled.png') as ImageSourcePropType,
7
+ checkboxOutline: require('./checkboxOutline.png') as ImageSourcePropType,
8
+ close: require('./close.png') as ImageSourcePropType,
9
+ copy: require('./copy.png') as ImageSourcePropType,
10
+ error: require('./error.png') as ImageSourcePropType,
11
+ facebookLogo: require('./facebookLogo.png') as ImageSourcePropType,
12
+ googleLogo: require('./googleLogo.png') as ImageSourcePropType,
13
+ visibilityOn: require('./visibilityOn.png') as ImageSourcePropType,
14
+ visibilityOff: require('./visibilityOff.png') as ImageSourcePropType,
15
+ };
16
+
17
+ export default icons;
@@ -1,15 +1 @@
1
- import { ImageSourcePropType } from 'react-native';
2
- declare const icons: {
3
- amazonLogo: ImageSourcePropType;
4
- appleLogo: ImageSourcePropType;
5
- checkboxFilled: ImageSourcePropType;
6
- checkboxOutline: ImageSourcePropType;
7
- close: ImageSourcePropType;
8
- copy: ImageSourcePropType;
9
- error: ImageSourcePropType;
10
- facebookLogo: ImageSourcePropType;
11
- googleLogo: ImageSourcePropType;
12
- visibilityOn: ImageSourcePropType;
13
- visibilityOff: ImageSourcePropType;
14
- };
15
- export default icons;
1
+ export { default as icons } from './icons';
@@ -1,14 +1 @@
1
- const icons = {
2
- amazonLogo: require('./amazonLogo.png'),
3
- appleLogo: require('./appleLogo.png'),
4
- checkboxFilled: require('./checkboxFilled.png'),
5
- checkboxOutline: require('./checkboxOutline.png'),
6
- close: require('./close.png'),
7
- copy: require('./copy.png'),
8
- error: require('./error.png'),
9
- facebookLogo: require('./facebookLogo.png'),
10
- googleLogo: require('./googleLogo.png'),
11
- visibilityOn: require('./visibilityOn.png'),
12
- visibilityOff: require('./visibilityOff.png'),
13
- };
14
- export default icons;
1
+ export { default as icons } from './icons';
@@ -1,17 +1 @@
1
- import { ImageSourcePropType } from 'react-native';
2
-
3
- const icons = {
4
- amazonLogo: require('./amazonLogo.png') as ImageSourcePropType,
5
- appleLogo: require('./appleLogo.png') as ImageSourcePropType,
6
- checkboxFilled: require('./checkboxFilled.png') as ImageSourcePropType,
7
- checkboxOutline: require('./checkboxOutline.png') as ImageSourcePropType,
8
- close: require('./close.png') as ImageSourcePropType,
9
- copy: require('./copy.png') as ImageSourcePropType,
10
- error: require('./error.png') as ImageSourcePropType,
11
- facebookLogo: require('./facebookLogo.png') as ImageSourcePropType,
12
- googleLogo: require('./googleLogo.png') as ImageSourcePropType,
13
- visibilityOn: require('./visibilityOn.png') as ImageSourcePropType,
14
- visibilityOff: require('./visibilityOff.png') as ImageSourcePropType,
15
- };
16
-
17
- export default icons;
1
+ export { default as icons } from './icons';
@@ -1 +1 @@
1
- export { default as icons } from './icons';
1
+ export { icons } from './icons';
@@ -1 +1 @@
1
- export { default as icons } from './icons';
1
+ export { icons } from './icons';
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.2.24";
1
+ export declare const VERSION = "1.2.26";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.2.24';
1
+ export const VERSION = '1.2.26';
@@ -120,7 +120,7 @@ const runFieldValidation = (field, value, stateValidations) => {
120
120
  fieldErrors.push(getRequiredFieldText());
121
121
  }
122
122
  if (field.type === 'email') {
123
- if (!(0, ui_1.isValidEmail)(value)) {
123
+ if (!(0, ui_1.isValidEmail)(value?.trim())) {
124
124
  fieldErrors.push(getInvalidEmailText());
125
125
  }
126
126
  }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const icons = {
4
+ amazonLogo: require('./amazonLogo.png'),
5
+ appleLogo: require('./appleLogo.png'),
6
+ checkboxFilled: require('./checkboxFilled.png'),
7
+ checkboxOutline: require('./checkboxOutline.png'),
8
+ close: require('./close.png'),
9
+ copy: require('./copy.png'),
10
+ error: require('./error.png'),
11
+ facebookLogo: require('./facebookLogo.png'),
12
+ googleLogo: require('./googleLogo.png'),
13
+ visibilityOn: require('./visibilityOn.png'),
14
+ visibilityOff: require('./visibilityOff.png'),
15
+ };
16
+ exports.default = icons;
@@ -0,0 +1,17 @@
1
+ import { ImageSourcePropType } from 'react-native';
2
+
3
+ const icons = {
4
+ amazonLogo: require('./amazonLogo.png') as ImageSourcePropType,
5
+ appleLogo: require('./appleLogo.png') as ImageSourcePropType,
6
+ checkboxFilled: require('./checkboxFilled.png') as ImageSourcePropType,
7
+ checkboxOutline: require('./checkboxOutline.png') as ImageSourcePropType,
8
+ close: require('./close.png') as ImageSourcePropType,
9
+ copy: require('./copy.png') as ImageSourcePropType,
10
+ error: require('./error.png') as ImageSourcePropType,
11
+ facebookLogo: require('./facebookLogo.png') as ImageSourcePropType,
12
+ googleLogo: require('./googleLogo.png') as ImageSourcePropType,
13
+ visibilityOn: require('./visibilityOn.png') as ImageSourcePropType,
14
+ visibilityOff: require('./visibilityOff.png') as ImageSourcePropType,
15
+ };
16
+
17
+ export default icons;
@@ -1,16 +1,8 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const icons = {
4
- amazonLogo: require('./amazonLogo.png'),
5
- appleLogo: require('./appleLogo.png'),
6
- checkboxFilled: require('./checkboxFilled.png'),
7
- checkboxOutline: require('./checkboxOutline.png'),
8
- close: require('./close.png'),
9
- copy: require('./copy.png'),
10
- error: require('./error.png'),
11
- facebookLogo: require('./facebookLogo.png'),
12
- googleLogo: require('./googleLogo.png'),
13
- visibilityOn: require('./visibilityOn.png'),
14
- visibilityOff: require('./visibilityOff.png'),
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
4
  };
16
- exports.default = icons;
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.icons = void 0;
7
+ var icons_1 = require("./icons");
8
+ Object.defineProperty(exports, "icons", { enumerable: true, get: function () { return __importDefault(icons_1).default; } });
@@ -1,17 +1 @@
1
- import { ImageSourcePropType } from 'react-native';
2
-
3
- const icons = {
4
- amazonLogo: require('./amazonLogo.png') as ImageSourcePropType,
5
- appleLogo: require('./appleLogo.png') as ImageSourcePropType,
6
- checkboxFilled: require('./checkboxFilled.png') as ImageSourcePropType,
7
- checkboxOutline: require('./checkboxOutline.png') as ImageSourcePropType,
8
- close: require('./close.png') as ImageSourcePropType,
9
- copy: require('./copy.png') as ImageSourcePropType,
10
- error: require('./error.png') as ImageSourcePropType,
11
- facebookLogo: require('./facebookLogo.png') as ImageSourcePropType,
12
- googleLogo: require('./googleLogo.png') as ImageSourcePropType,
13
- visibilityOn: require('./visibilityOn.png') as ImageSourcePropType,
14
- visibilityOff: require('./visibilityOff.png') as ImageSourcePropType,
15
- };
16
-
17
- export default icons;
1
+ export { default as icons } from './icons';
@@ -1,8 +1,5 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.icons = void 0;
7
4
  var icons_1 = require("./icons");
8
- Object.defineProperty(exports, "icons", { enumerable: true, get: function () { return __importDefault(icons_1).default; } });
5
+ Object.defineProperty(exports, "icons", { enumerable: true, get: function () { return icons_1.icons; } });
package/lib/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.2.24';
4
+ exports.VERSION = '1.2.26';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-native",
3
- "version": "1.2.24",
3
+ "version": "1.2.26",
4
4
  "main": "lib/index.js",
5
5
  "module": "dist/index.js",
6
6
  "react-native": "src/index.ts",
@@ -40,9 +40,9 @@
40
40
  "rimraf": "^3.0.2"
41
41
  },
42
42
  "dependencies": {
43
- "@aws-amplify/ui": "5.7.0",
44
- "@aws-amplify/ui-react-core": "2.1.29",
45
- "@aws-amplify/ui-react-core-notifications": "1.0.6"
43
+ "@aws-amplify/ui": "5.7.2",
44
+ "@aws-amplify/ui-react-core": "2.1.31",
45
+ "@aws-amplify/ui-react-core-notifications": "1.0.8"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "aws-amplify": "^5.0.1",
@@ -202,7 +202,7 @@ export const runFieldValidation = (
202
202
  fieldErrors.push(getRequiredFieldText());
203
203
  }
204
204
  if (field.type === 'email') {
205
- if (!isValidEmail(value)) {
205
+ if (!isValidEmail(value?.trim())) {
206
206
  fieldErrors.push(getInvalidEmailText());
207
207
  }
208
208
  }
@@ -0,0 +1,17 @@
1
+ import { ImageSourcePropType } from 'react-native';
2
+
3
+ const icons = {
4
+ amazonLogo: require('./amazonLogo.png') as ImageSourcePropType,
5
+ appleLogo: require('./appleLogo.png') as ImageSourcePropType,
6
+ checkboxFilled: require('./checkboxFilled.png') as ImageSourcePropType,
7
+ checkboxOutline: require('./checkboxOutline.png') as ImageSourcePropType,
8
+ close: require('./close.png') as ImageSourcePropType,
9
+ copy: require('./copy.png') as ImageSourcePropType,
10
+ error: require('./error.png') as ImageSourcePropType,
11
+ facebookLogo: require('./facebookLogo.png') as ImageSourcePropType,
12
+ googleLogo: require('./googleLogo.png') as ImageSourcePropType,
13
+ visibilityOn: require('./visibilityOn.png') as ImageSourcePropType,
14
+ visibilityOff: require('./visibilityOff.png') as ImageSourcePropType,
15
+ };
16
+
17
+ export default icons;
@@ -1,17 +1 @@
1
- import { ImageSourcePropType } from 'react-native';
2
-
3
- const icons = {
4
- amazonLogo: require('./amazonLogo.png') as ImageSourcePropType,
5
- appleLogo: require('./appleLogo.png') as ImageSourcePropType,
6
- checkboxFilled: require('./checkboxFilled.png') as ImageSourcePropType,
7
- checkboxOutline: require('./checkboxOutline.png') as ImageSourcePropType,
8
- close: require('./close.png') as ImageSourcePropType,
9
- copy: require('./copy.png') as ImageSourcePropType,
10
- error: require('./error.png') as ImageSourcePropType,
11
- facebookLogo: require('./facebookLogo.png') as ImageSourcePropType,
12
- googleLogo: require('./googleLogo.png') as ImageSourcePropType,
13
- visibilityOn: require('./visibilityOn.png') as ImageSourcePropType,
14
- visibilityOff: require('./visibilityOff.png') as ImageSourcePropType,
15
- };
16
-
17
- export default icons;
1
+ export { default as icons } from './icons';
@@ -1 +1 @@
1
- export { default as icons } from './icons';
1
+ export { icons } from './icons';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.2.24';
1
+ export const VERSION = '1.2.26';