@umituz/react-native-design-system 2.6.18 → 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.18",
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",
@@ -16,8 +16,10 @@ import { PersistentDeviceIdService } from './PersistentDeviceIdService';
16
16
  /**
17
17
  * Device extras for user documents
18
18
  * Compatible with UserDocumentExtras from @umituz/react-native-auth
19
+ * Index signature added for Record<string, unknown> compatibility
19
20
  */
20
21
  export interface DeviceExtras {
22
+ [key: string]: string | undefined;
21
23
  deviceId?: string;
22
24
  platform?: string;
23
25
  deviceModel?: string;
@@ -108,19 +108,19 @@ class MaterialColorMapper implements ColorMapper {
108
108
  case 'info':
109
109
  return tokens.colors.info;
110
110
 
111
- // Legacy support (deprecated - maps to new names)
111
+ // Brand colors (can be used as text color)
112
112
  case 'primary':
113
- return tokens.colors.textPrimary;
113
+ return tokens.colors.primary;
114
114
  case 'secondary':
115
- return tokens.colors.textSecondary;
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.textSecondary;
123
+ return tokens.colors.surfaceVariant;
124
124
 
125
125
  default:
126
126
  return tokens.colors.textPrimary;