@umituz/react-native-design-system 2.6.19 → 2.6.20
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.20",
|
|
4
4
|
"description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive and safe area utilities",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -108,19 +108,19 @@ class MaterialColorMapper implements ColorMapper {
|
|
|
108
108
|
case 'info':
|
|
109
109
|
return tokens.colors.info;
|
|
110
110
|
|
|
111
|
-
//
|
|
111
|
+
// Brand colors (can be used as text color)
|
|
112
112
|
case 'primary':
|
|
113
|
-
return tokens.colors.
|
|
113
|
+
return tokens.colors.primary;
|
|
114
114
|
case 'secondary':
|
|
115
|
-
return tokens.colors.
|
|
115
|
+
return tokens.colors.secondary;
|
|
116
116
|
case 'tertiary':
|
|
117
|
-
return tokens.colors.textTertiary;
|
|
117
|
+
return tokens.colors.tertiary ?? tokens.colors.textTertiary;
|
|
118
118
|
case 'disabled':
|
|
119
119
|
return tokens.colors.textDisabled;
|
|
120
120
|
case 'inverse':
|
|
121
121
|
return tokens.colors.textInverse;
|
|
122
122
|
case 'surfaceVariant':
|
|
123
|
-
return tokens.colors.
|
|
123
|
+
return tokens.colors.surfaceVariant;
|
|
124
124
|
|
|
125
125
|
default:
|
|
126
126
|
return tokens.colors.textPrimary;
|