@widergy/mobile-ui 1.19.6 → 1.19.7

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.19.7](https://github.com/widergy/mobile-ui/compare/v1.19.6...v1.19.7) (2024-08-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * input validations ([#348](https://github.com/widergy/mobile-ui/issues/348)) ([dd2cbeb](https://github.com/widergy/mobile-ui/commit/dd2cbebe026e8bdeae5535c38991290ced16f0c4))
7
+
1
8
  ## [1.19.6](https://github.com/widergy/mobile-ui/compare/v1.19.5...v1.19.6) (2024-08-27)
2
9
 
3
10
 
@@ -6,6 +6,12 @@ export const STATUSES = {
6
6
  default: 'default'
7
7
  };
8
8
 
9
+ export const ICON_STATUS_COLOR_MAPPER = {
10
+ [STATUSES.success]: 'success',
11
+ [STATUSES.error]: 'error',
12
+ [STATUSES.default]: 'light'
13
+ };
14
+
9
15
  export const STATUS_COLOR_MAPPER = {
10
16
  [STATUSES.success]: 'success',
11
17
  [STATUSES.error]: 'error',
@@ -1,17 +1,17 @@
1
- import { STATUSES, STATUS_COLOR_MAPPER } from './constants';
1
+ import { STATUSES, ICON_STATUS_COLOR_MAPPER } from './constants';
2
2
 
3
3
  const variantsColorTheme = (colorTheme, theme) => theme.Palette[colorTheme];
4
4
 
5
5
  export const retrieveStyle = ({ theme }) => ({
6
6
  icon: {
7
7
  [STATUSES.success]: {
8
- backgroundColor: variantsColorTheme(STATUS_COLOR_MAPPER[STATUSES.success], theme)['01']
8
+ backgroundColor: variantsColorTheme(ICON_STATUS_COLOR_MAPPER[STATUSES.success], theme)['01']
9
9
  },
10
10
  [STATUSES.error]: {
11
- backgroundColor: variantsColorTheme(STATUS_COLOR_MAPPER[STATUSES.error], theme)['01']
11
+ backgroundColor: variantsColorTheme(ICON_STATUS_COLOR_MAPPER[STATUSES.error], theme)['01']
12
12
  },
13
13
  [STATUSES.default]: {
14
- backgroundColor: variantsColorTheme(STATUS_COLOR_MAPPER[STATUSES.default], theme)['01']
14
+ backgroundColor: variantsColorTheme(ICON_STATUS_COLOR_MAPPER[STATUSES.default], theme)['04']
15
15
  }
16
16
  }
17
17
  });
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@widergy/mobile-ui",
3
3
  "description": "Widergy Mobile Components",
4
4
  "author": "widergy",
5
- "version": "1.19.6",
5
+ "version": "1.19.7",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [