@umituz/react-native-design-system 1.5.0 → 1.5.2

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.
Files changed (209) hide show
  1. package/lib/index.d.ts +4 -4
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js +13 -11
  4. package/lib/index.js.map +1 -1
  5. package/lib/presentation/atoms/AtomicAvatar.js +1 -1
  6. package/lib/presentation/atoms/AtomicAvatar.js.map +1 -1
  7. package/lib/presentation/atoms/AtomicAvatarGroup.js +1 -1
  8. package/lib/presentation/atoms/AtomicAvatarGroup.js.map +1 -1
  9. package/lib/presentation/atoms/AtomicBadge.js +1 -1
  10. package/lib/presentation/atoms/AtomicBadge.js.map +1 -1
  11. package/lib/presentation/atoms/AtomicButton.d.ts +1 -1
  12. package/lib/presentation/atoms/AtomicButton.d.ts.map +1 -1
  13. package/lib/presentation/atoms/AtomicButton.js +2 -2
  14. package/lib/presentation/atoms/AtomicButton.js.map +1 -1
  15. package/lib/presentation/atoms/AtomicCard.js +1 -1
  16. package/lib/presentation/atoms/AtomicCard.js.map +1 -1
  17. package/lib/presentation/atoms/AtomicChip.js +1 -1
  18. package/lib/presentation/atoms/AtomicChip.js.map +1 -1
  19. package/lib/presentation/atoms/AtomicDatePicker.js +1 -1
  20. package/lib/presentation/atoms/AtomicDatePicker.js.map +1 -1
  21. package/lib/presentation/atoms/AtomicDivider.js +1 -1
  22. package/lib/presentation/atoms/AtomicDivider.js.map +1 -1
  23. package/lib/presentation/atoms/AtomicFab.js +1 -1
  24. package/lib/presentation/atoms/AtomicFab.js.map +1 -1
  25. package/lib/presentation/atoms/AtomicFilter.js +1 -1
  26. package/lib/presentation/atoms/AtomicFilter.js.map +1 -1
  27. package/lib/presentation/atoms/AtomicFormError.js +2 -2
  28. package/lib/presentation/atoms/AtomicFormError.js.map +1 -1
  29. package/lib/presentation/atoms/AtomicIcon.d.ts +2 -3
  30. package/lib/presentation/atoms/AtomicIcon.d.ts.map +1 -1
  31. package/lib/presentation/atoms/AtomicIcon.js +1 -1
  32. package/lib/presentation/atoms/AtomicIcon.js.map +1 -1
  33. package/lib/presentation/atoms/AtomicImage.js +1 -1
  34. package/lib/presentation/atoms/AtomicImage.js.map +1 -1
  35. package/lib/presentation/atoms/AtomicInput.js +1 -1
  36. package/lib/presentation/atoms/AtomicInput.js.map +1 -1
  37. package/lib/presentation/atoms/AtomicPicker.js +1 -1
  38. package/lib/presentation/atoms/AtomicPicker.js.map +1 -1
  39. package/lib/presentation/atoms/AtomicProgress.js +1 -1
  40. package/lib/presentation/atoms/AtomicProgress.js.map +1 -1
  41. package/lib/presentation/atoms/AtomicSearchBar.js +1 -1
  42. package/lib/presentation/atoms/AtomicSearchBar.js.map +1 -1
  43. package/lib/presentation/atoms/AtomicSort.js +1 -1
  44. package/lib/presentation/atoms/AtomicSort.js.map +1 -1
  45. package/lib/presentation/atoms/AtomicSwitch.js +1 -1
  46. package/lib/presentation/atoms/AtomicSwitch.js.map +1 -1
  47. package/lib/presentation/atoms/AtomicText.d.ts +21 -1
  48. package/lib/presentation/atoms/AtomicText.d.ts.map +1 -1
  49. package/lib/presentation/atoms/AtomicText.js +33 -10
  50. package/lib/presentation/atoms/AtomicText.js.map +1 -1
  51. package/lib/presentation/atoms/AtomicTextArea.js +1 -1
  52. package/lib/presentation/atoms/AtomicTextArea.js.map +1 -1
  53. package/lib/presentation/atoms/AtomicTouchable.js +1 -1
  54. package/lib/presentation/atoms/AtomicTouchable.js.map +1 -1
  55. package/lib/presentation/atoms/fab/styles/fabStyles.d.ts +1 -1
  56. package/lib/presentation/atoms/fab/styles/fabStyles.d.ts.map +1 -1
  57. package/lib/presentation/atoms/index.d.ts +1 -1
  58. package/lib/presentation/atoms/input/styles/inputStyles.d.ts +1 -1
  59. package/lib/presentation/atoms/input/styles/inputStyles.d.ts.map +1 -1
  60. package/lib/presentation/atoms/picker/styles/pickerStyles.d.ts +12 -23
  61. package/lib/presentation/atoms/picker/styles/pickerStyles.d.ts.map +1 -1
  62. package/lib/presentation/atoms/picker/styles/pickerStyles.js.map +1 -1
  63. package/lib/presentation/molecules/AtomicConfirmationModal.js +1 -1
  64. package/lib/presentation/molecules/AtomicConfirmationModal.js.map +1 -1
  65. package/lib/presentation/molecules/EmptyState.js +1 -1
  66. package/lib/presentation/molecules/EmptyState.js.map +1 -1
  67. package/lib/presentation/molecules/FormField.js +1 -1
  68. package/lib/presentation/molecules/FormField.js.map +1 -1
  69. package/lib/presentation/molecules/IconContainer.js +1 -1
  70. package/lib/presentation/molecules/IconContainer.js.map +1 -1
  71. package/lib/presentation/molecules/ListItem.js +1 -1
  72. package/lib/presentation/molecules/ListItem.js.map +1 -1
  73. package/lib/presentation/molecules/ScreenHeader.js +1 -1
  74. package/lib/presentation/molecules/ScreenHeader.js.map +1 -1
  75. package/lib/presentation/molecules/SearchBar.js +1 -1
  76. package/lib/presentation/molecules/SearchBar.js.map +1 -1
  77. package/lib/presentation/molecules/SectionCard.js +1 -1
  78. package/lib/presentation/molecules/SectionCard.js.map +1 -1
  79. package/lib/presentation/molecules/SectionContainer.js +1 -1
  80. package/lib/presentation/molecules/SectionContainer.js.map +1 -1
  81. package/lib/presentation/molecules/SectionHeader.js +1 -1
  82. package/lib/presentation/molecules/SectionHeader.js.map +1 -1
  83. package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.d.ts +1 -1
  84. package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.d.ts.map +1 -1
  85. package/lib/presentation/molecules/listitem/styles/listItemStyles.d.ts +1 -1
  86. package/lib/presentation/molecules/listitem/styles/listItemStyles.d.ts.map +1 -1
  87. package/lib/presentation/organisms/AppHeader.d.ts +3 -2
  88. package/lib/presentation/organisms/AppHeader.d.ts.map +1 -1
  89. package/lib/presentation/organisms/AppHeader.js +1 -1
  90. package/lib/presentation/organisms/AppHeader.js.map +1 -1
  91. package/lib/presentation/organisms/FormContainer.js +1 -1
  92. package/lib/presentation/organisms/FormContainer.js.map +1 -1
  93. package/lib/presentation/organisms/ScreenLayout.js +1 -1
  94. package/lib/presentation/organisms/ScreenLayout.js.map +1 -1
  95. package/lib/presentation/tokens/commonStyles.js +1 -1
  96. package/lib/presentation/tokens/commonStyles.js.map +1 -1
  97. package/package.json +1 -1
  98. package/src/index.ts +16 -16
  99. package/src/presentation/atoms/AtomicAvatar.tsx +1 -1
  100. package/src/presentation/atoms/AtomicAvatarGroup.tsx +1 -1
  101. package/src/presentation/atoms/AtomicBadge.tsx +2 -2
  102. package/src/presentation/atoms/AtomicButton.tsx +3 -3
  103. package/src/presentation/atoms/AtomicCard.tsx +1 -1
  104. package/src/presentation/atoms/AtomicChip.tsx +1 -1
  105. package/src/presentation/atoms/AtomicDatePicker.tsx +1 -1
  106. package/src/presentation/atoms/AtomicDivider.tsx +1 -1
  107. package/src/presentation/atoms/AtomicFab.tsx +1 -1
  108. package/src/presentation/atoms/AtomicFilter.tsx +1 -1
  109. package/src/presentation/atoms/AtomicFormError.tsx +2 -2
  110. package/src/presentation/atoms/AtomicIcon.tsx +3 -4
  111. package/src/presentation/atoms/AtomicImage.tsx +1 -1
  112. package/src/presentation/atoms/AtomicInput.tsx +1 -1
  113. package/src/presentation/atoms/AtomicPicker.tsx +1 -1
  114. package/src/presentation/atoms/AtomicProgress.tsx +1 -1
  115. package/src/presentation/atoms/AtomicSearchBar.tsx +1 -1
  116. package/src/presentation/atoms/AtomicSort.tsx +1 -1
  117. package/src/presentation/atoms/AtomicSwitch.tsx +1 -1
  118. package/src/presentation/atoms/AtomicText.tsx +83 -13
  119. package/src/presentation/atoms/AtomicTextArea.tsx +1 -1
  120. package/src/presentation/atoms/AtomicTouchable.tsx +1 -1
  121. package/src/presentation/atoms/fab/styles/fabStyles.ts +1 -1
  122. package/src/presentation/atoms/input/styles/inputStyles.ts +1 -1
  123. package/src/presentation/atoms/picker/styles/pickerStyles.ts +13 -6
  124. package/src/presentation/molecules/AtomicConfirmationModal.tsx +1 -1
  125. package/src/presentation/molecules/EmptyState.tsx +1 -1
  126. package/src/presentation/molecules/FormField.tsx +1 -1
  127. package/src/presentation/molecules/IconContainer.tsx +1 -1
  128. package/src/presentation/molecules/ListItem.tsx +1 -1
  129. package/src/presentation/molecules/ScreenHeader.tsx +1 -1
  130. package/src/presentation/molecules/SearchBar.tsx +1 -1
  131. package/src/presentation/molecules/SectionCard.tsx +1 -1
  132. package/src/presentation/molecules/SectionContainer.tsx +1 -1
  133. package/src/presentation/molecules/SectionHeader.tsx +1 -1
  134. package/src/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.ts +1 -1
  135. package/src/presentation/molecules/listitem/styles/listItemStyles.ts +1 -1
  136. package/src/presentation/organisms/AppHeader.tsx +4 -3
  137. package/src/presentation/organisms/FormContainer.tsx +1 -1
  138. package/src/presentation/organisms/ScreenLayout.tsx +1 -1
  139. package/src/presentation/tokens/commonStyles.ts +1 -1
  140. package/lib/domains/icons/domain/config/IconLibraryConfig.d.ts +0 -91
  141. package/lib/domains/icons/domain/config/IconLibraryConfig.d.ts.map +0 -1
  142. package/lib/domains/icons/domain/config/IconLibraryConfig.js +0 -85
  143. package/lib/domains/icons/domain/config/IconLibraryConfig.js.map +0 -1
  144. package/lib/domains/icons/domain/entities/Icon.d.ts +0 -111
  145. package/lib/domains/icons/domain/entities/Icon.d.ts.map +0 -1
  146. package/lib/domains/icons/domain/entities/Icon.js +0 -87
  147. package/lib/domains/icons/domain/entities/Icon.js.map +0 -1
  148. package/lib/domains/icons/domain/interfaces/IIconAdapter.d.ts +0 -114
  149. package/lib/domains/icons/domain/interfaces/IIconAdapter.d.ts.map +0 -1
  150. package/lib/domains/icons/domain/interfaces/IIconAdapter.js +0 -17
  151. package/lib/domains/icons/domain/interfaces/IIconAdapter.js.map +0 -1
  152. package/lib/domains/icons/index.d.ts +0 -84
  153. package/lib/domains/icons/index.d.ts.map +0 -1
  154. package/lib/domains/icons/index.js +0 -89
  155. package/lib/domains/icons/index.js.map +0 -1
  156. package/lib/domains/icons/infrastructure/adapters/LucideAdapter.d.ts +0 -24
  157. package/lib/domains/icons/infrastructure/adapters/LucideAdapter.d.ts.map +0 -1
  158. package/lib/domains/icons/infrastructure/adapters/LucideAdapter.js +0 -85
  159. package/lib/domains/icons/infrastructure/adapters/LucideAdapter.js.map +0 -1
  160. package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.d.ts +0 -23
  161. package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.d.ts.map +0 -1
  162. package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.js +0 -178
  163. package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.js.map +0 -1
  164. package/lib/domains/icons/presentation/components/Icon.d.ts +0 -42
  165. package/lib/domains/icons/presentation/components/Icon.d.ts.map +0 -1
  166. package/lib/domains/icons/presentation/components/Icon.js +0 -86
  167. package/lib/domains/icons/presentation/components/Icon.js.map +0 -1
  168. package/lib/domains/icons/presentation/hooks/useIconLibrary.d.ts +0 -38
  169. package/lib/domains/icons/presentation/hooks/useIconLibrary.d.ts.map +0 -1
  170. package/lib/domains/icons/presentation/hooks/useIconLibrary.js +0 -114
  171. package/lib/domains/icons/presentation/hooks/useIconLibrary.js.map +0 -1
  172. package/lib/infrastructure/theme/globalThemeStore.d.ts +0 -42
  173. package/lib/infrastructure/theme/globalThemeStore.d.ts.map +0 -1
  174. package/lib/infrastructure/theme/globalThemeStore.js +0 -38
  175. package/lib/infrastructure/theme/globalThemeStore.js.map +0 -1
  176. package/lib/presentation/hooks/useAppDesignTokens.d.ts +0 -34
  177. package/lib/presentation/hooks/useAppDesignTokens.d.ts.map +0 -1
  178. package/lib/presentation/hooks/useAppDesignTokens.js +0 -39
  179. package/lib/presentation/hooks/useAppDesignTokens.js.map +0 -1
  180. package/lib/presentation/tokens/AppDesignTokens.d.ts +0 -14
  181. package/lib/presentation/tokens/AppDesignTokens.d.ts.map +0 -1
  182. package/lib/presentation/tokens/AppDesignTokens.js +0 -23
  183. package/lib/presentation/tokens/AppDesignTokens.js.map +0 -1
  184. package/lib/presentation/tokens/core/BaseTokens.d.ts +0 -312
  185. package/lib/presentation/tokens/core/BaseTokens.d.ts.map +0 -1
  186. package/lib/presentation/tokens/core/BaseTokens.js +0 -304
  187. package/lib/presentation/tokens/core/BaseTokens.js.map +0 -1
  188. package/lib/presentation/tokens/core/ColorPalette.d.ts +0 -216
  189. package/lib/presentation/tokens/core/ColorPalette.d.ts.map +0 -1
  190. package/lib/presentation/tokens/core/ColorPalette.js +0 -330
  191. package/lib/presentation/tokens/core/ColorPalette.js.map +0 -1
  192. package/lib/presentation/tokens/core/TokenFactory.d.ts +0 -216
  193. package/lib/presentation/tokens/core/TokenFactory.d.ts.map +0 -1
  194. package/lib/presentation/tokens/core/TokenFactory.js +0 -86
  195. package/lib/presentation/tokens/core/TokenFactory.js.map +0 -1
  196. package/src/domains/icons/domain/config/IconLibraryConfig.ts +0 -93
  197. package/src/domains/icons/domain/entities/Icon.ts +0 -143
  198. package/src/domains/icons/domain/interfaces/IIconAdapter.ts +0 -147
  199. package/src/domains/icons/index.ts +0 -109
  200. package/src/domains/icons/infrastructure/adapters/LucideAdapter.ts +0 -100
  201. package/src/domains/icons/infrastructure/registries/ExpoIconRegistry.ts +0 -191
  202. package/src/domains/icons/presentation/components/Icon.tsx +0 -132
  203. package/src/domains/icons/presentation/hooks/useIconLibrary.ts +0 -141
  204. package/src/infrastructure/theme/globalThemeStore.ts +0 -51
  205. package/src/presentation/hooks/useAppDesignTokens.ts +0 -40
  206. package/src/presentation/tokens/AppDesignTokens.ts +0 -55
  207. package/src/presentation/tokens/core/BaseTokens.ts +0 -372
  208. package/src/presentation/tokens/core/ColorPalette.ts +0 -400
  209. package/src/presentation/tokens/core/TokenFactory.ts +0 -118
@@ -1,330 +0,0 @@
1
- /**
2
- * COLOR PALETTE - THEME-SPECIFIC COLORS
3
- *
4
- * ✅ Light and Dark theme color definitions
5
- * ✅ Semantic color naming for clarity
6
- * ✅ Template placeholders for factory generation
7
- * ✅ Type-safe color definitions
8
- *
9
- * @module ColorPalette
10
- */
11
- // =============================================================================
12
- // COLOR UTILITIES
13
- // =============================================================================
14
- /**
15
- * Add alpha transparency to hex color
16
- * @param hexColor - Hex color string (#RRGGBB or #RGB)
17
- * @param alpha - Alpha value 0-1
18
- * @returns Hex color with alpha (#RRGGBBAA)
19
- */
20
- export const withAlpha = (hexColor, alpha) => {
21
- if (!hexColor.startsWith('#') || (hexColor.length !== 7 && hexColor.length !== 4)) {
22
- return hexColor;
23
- }
24
- if (alpha < 0 || alpha > 1) {
25
- return hexColor;
26
- }
27
- const alphaHex = Math.round(alpha * 255)
28
- .toString(16)
29
- .padStart(2, '0');
30
- return hexColor + alphaHex;
31
- };
32
- // =============================================================================
33
- // LIGHT THEME COLORS
34
- // =============================================================================
35
- export const lightColors = {
36
- // =============================================================================
37
- // PRIMARY BRAND COLORS
38
- // =============================================================================
39
- primary: '#3B82F6',
40
- primaryLight: '#60A5FA',
41
- primaryDark: '#2563EB',
42
- secondary: '#8B5CF6',
43
- secondaryLight: '#A78BFA',
44
- secondaryDark: '#7C3AED',
45
- accent: '#F59E0B',
46
- accentLight: '#FBBF24',
47
- accentDark: '#D97706',
48
- // =============================================================================
49
- // MATERIAL DESIGN 3 - ON COLORS (Text on colored backgrounds)
50
- // =============================================================================
51
- onPrimary: '#FFFFFF', // Text on primary background
52
- onSecondary: '#FFFFFF', // Text on secondary background
53
- onSuccess: '#FFFFFF', // Text on success background
54
- onError: '#FFFFFF', // Text on error background
55
- onWarning: '#000000', // Text on warning background
56
- onInfo: '#FFFFFF', // Text on info background
57
- onSurface: '#1E293B', // Text on surface
58
- onBackground: '#1E293B', // Text on background
59
- onSurfaceDisabled: '#CBD5E1', // Disabled text color
60
- // =============================================================================
61
- // MATERIAL DESIGN 3 - CONTAINER COLORS (Lighter versions for containers)
62
- // =============================================================================
63
- primaryContainer: '#DBEAFE', // Light container using primary
64
- onPrimaryContainer: '#1E40AF', // Text on primary container
65
- secondaryContainer: '#E0E7FF', // Light container using secondary
66
- onSecondaryContainer: '#3730A3', // Text on secondary container
67
- errorContainer: '#FEE2E2', // Light container using error
68
- onErrorContainer: '#991B1B', // Text on error container
69
- // =============================================================================
70
- // MATERIAL DESIGN 3 - OUTLINE
71
- // =============================================================================
72
- outline: '#CBD5E1', // Default outline color
73
- outlineVariant: '#E2E8F0', // Lighter outline variant
74
- outlineDisabled: '#E2E8F0', // Disabled outline color
75
- // =============================================================================
76
- // SEMANTIC UI COLORS
77
- // =============================================================================
78
- success: '#10B981',
79
- successLight: '#34D399',
80
- successDark: '#059669',
81
- error: '#EF4444',
82
- errorLight: '#F87171',
83
- errorDark: '#DC2626',
84
- warning: '#F59E0B',
85
- warningLight: '#FBBF24',
86
- warningDark: '#D97706',
87
- info: '#3B82F6',
88
- infoLight: '#60A5FA',
89
- infoDark: '#2563EB',
90
- // =============================================================================
91
- // SEMANTIC CONTAINER COLORS (Light mode)
92
- // =============================================================================
93
- successContainer: '#D1FAE5', // Light container for success states
94
- onSuccessContainer: '#065F46', // Text on success container
95
- warningContainer: '#FEF3C7', // Light container for warning states
96
- onWarningContainer: '#92400E', // Text on warning container
97
- infoContainer: '#DBEAFE', // Light container for info states
98
- onInfoContainer: '#1E40AF', // Text on info container
99
- // =============================================================================
100
- // GRAYSCALE PALETTE
101
- // =============================================================================
102
- gray50: '#FAFAFA',
103
- gray100: '#F4F4F5',
104
- gray200: '#E4E4E7',
105
- gray300: '#D4D4D8',
106
- gray400: '#A1A1AA',
107
- gray500: '#71717A',
108
- gray600: '#52525B',
109
- gray700: '#3F3F46',
110
- gray800: '#27272A',
111
- gray900: '#18181B',
112
- // =============================================================================
113
- // BACKGROUND COLORS
114
- // =============================================================================
115
- backgroundPrimary: '#FFFFFF',
116
- backgroundSecondary: '#F8FAFC',
117
- surface: '#FFFFFF',
118
- surfaceVariant: '#F1F5F9',
119
- surfaceSecondary: '#F1F5F9', // Alias
120
- surfaceDisabled: '#F4F4F5', // Disabled surface color
121
- // =============================================================================
122
- // TEXT COLORS
123
- // =============================================================================
124
- textPrimary: '#1E293B',
125
- textSecondary: '#64748B',
126
- textTertiary: '#94A3B8',
127
- textDisabled: '#CBD5E1',
128
- textInverse: '#FFFFFF',
129
- // =============================================================================
130
- // BORDER COLORS
131
- // =============================================================================
132
- border: '#E2E8F0',
133
- borderLight: '#F1F5F9',
134
- borderMedium: '#CBD5E1',
135
- borderFocus: '#3B82F6',
136
- borderDisabled: '#F1F5F9',
137
- // =============================================================================
138
- // COMPONENT-SPECIFIC COLORS
139
- // =============================================================================
140
- buttonPrimary: '#3B82F6',
141
- buttonSecondary: '#8B5CF6',
142
- inputBackground: '#FFFFFF',
143
- inputBorder: '#E2E8F0',
144
- cardBackground: '#FFFFFF',
145
- // =============================================================================
146
- // SPECIAL COLORS
147
- // =============================================================================
148
- transparent: 'transparent',
149
- black: '#000000',
150
- white: '#FFFFFF',
151
- // =============================================================================
152
- // RGBA OVERLAY COLORS (for modals, cards, etc.)
153
- // =============================================================================
154
- modalOverlay: 'rgba(0, 0, 0, 0.5)',
155
- overlaySubtle: 'rgba(0, 0, 0, 0.05)',
156
- overlayLight: 'rgba(0, 0, 0, 0.1)',
157
- overlayMedium: 'rgba(0, 0, 0, 0.3)',
158
- overlayBackground: 'rgba(0, 0, 0, 0.05)',
159
- whiteOverlay: 'rgba(255, 255, 255, 0.2)',
160
- whiteOverlayStrong: 'rgba(255, 255, 255, 0.95)',
161
- whiteOverlayBorder: 'rgba(255, 255, 255, 0.5)',
162
- textWhiteOpacity: 'rgba(255, 255, 255, 0.8)',
163
- errorBackground: 'rgba(239, 68, 68, 0.1)',
164
- primaryBackground: 'rgba(99, 102, 241, 0.1)',
165
- cardOverlay: 'rgba(0, 0, 0, 0.15)',
166
- inputBackground_RGBA: 'rgba(248, 250, 252, 0.9)',
167
- // =============================================================================
168
- // SHADOW COLORS - REMOVED (React Native Web incompatibility)
169
- // NOTE: Use borders and background colors for depth instead
170
- // =============================================================================
171
- // =============================================================================
172
- // GRADIENTS
173
- // =============================================================================
174
- gradient: ['#3B82F6', '#8B5CF6'],
175
- };
176
- // =============================================================================
177
- // DARK THEME COLORS
178
- // =============================================================================
179
- export const darkColors = {
180
- // =============================================================================
181
- // PRIMARY BRAND COLORS (darker versions for dark mode)
182
- // =============================================================================
183
- primary: '#60A5FA', // Lighter blue for dark backgrounds
184
- primaryLight: '#93C5FD',
185
- primaryDark: '#3B82F6',
186
- secondary: '#A78BFA', // Lighter purple for dark backgrounds
187
- secondaryLight: '#C4B5FD',
188
- secondaryDark: '#8B5CF6',
189
- accent: '#FBBF24', // Lighter amber for dark backgrounds
190
- accentLight: '#FCD34D',
191
- accentDark: '#F59E0B',
192
- // =============================================================================
193
- // MATERIAL DESIGN 3 - ON COLORS (Dark mode text colors)
194
- // =============================================================================
195
- onPrimary: '#000000', // Dark text on light primary
196
- onSecondary: '#000000', // Dark text on light secondary
197
- onSuccess: '#000000', // Dark text on light success
198
- onError: '#FFFFFF', // Light text on dark error
199
- onWarning: '#000000', // Dark text on light warning
200
- onInfo: '#000000', // Dark text on light info
201
- onSurface: '#E2E8F0', // Light text on dark surface
202
- onBackground: '#F1F5F9', // Light text on dark background
203
- onSurfaceDisabled: '#64748B', // Disabled dark mode text
204
- // =============================================================================
205
- // MATERIAL DESIGN 3 - CONTAINER COLORS (Dark mode containers)
206
- // =============================================================================
207
- primaryContainer: '#1E3A8A', // Dark blue container
208
- onPrimaryContainer: '#DBEAFE', // Light text on dark primary container
209
- secondaryContainer: '#4C1D95', // Dark purple container
210
- onSecondaryContainer: '#E0E7FF', // Light text on dark secondary container
211
- errorContainer: '#7F1D1D', // Dark red container
212
- onErrorContainer: '#FEE2E2', // Light text on dark error container
213
- // =============================================================================
214
- // MATERIAL DESIGN 3 - OUTLINE (Dark mode outlines)
215
- // =============================================================================
216
- outline: '#475569', // Medium gray outline for dark mode
217
- outlineVariant: '#334155', // Darker outline variant
218
- outlineDisabled: '#334155', // Disabled outline
219
- // =============================================================================
220
- // SEMANTIC UI COLORS (slightly lighter for dark backgrounds)
221
- // =============================================================================
222
- success: '#34D399', // Lighter green for dark mode
223
- successLight: '#34D399',
224
- successDark: '#059669',
225
- error: '#EF4444',
226
- errorLight: '#F87171',
227
- errorDark: '#DC2626',
228
- warning: '#F59E0B',
229
- warningLight: '#FBBF24',
230
- warningDark: '#D97706',
231
- info: '#3B82F6',
232
- infoLight: '#60A5FA',
233
- infoDark: '#2563EB',
234
- // =============================================================================
235
- // SEMANTIC CONTAINER COLORS (Same as light mode for type consistency)
236
- // =============================================================================
237
- successContainer: '#D1FAE5', // Same as light mode for type consistency
238
- onSuccessContainer: '#065F46', // Same as light mode for type consistency
239
- warningContainer: '#FEF3C7', // Same as light mode for type consistency
240
- onWarningContainer: '#92400E', // Same as light mode for type consistency
241
- infoContainer: '#DBEAFE', // Same as light mode for type consistency
242
- onInfoContainer: '#1E40AF', // Same as light mode for type consistency
243
- // =============================================================================
244
- // GRAYSCALE PALETTE (Same as light mode for type consistency)
245
- // =============================================================================
246
- gray50: '#FAFAFA',
247
- gray100: '#F4F4F5',
248
- gray200: '#E4E4E7',
249
- gray300: '#D4D4D8',
250
- gray400: '#A1A1AA',
251
- gray500: '#71717A',
252
- gray600: '#52525B',
253
- gray700: '#3F3F46',
254
- gray800: '#27272A',
255
- gray900: '#18181B',
256
- // =============================================================================
257
- // BACKGROUND COLORS (dark mode - true dark backgrounds)
258
- // =============================================================================
259
- backgroundPrimary: '#0F172A', // Slate 900 - Deep dark background
260
- backgroundSecondary: '#1E293B', // Slate 800 - Slightly lighter
261
- surface: '#1E293B', // Slate 800 - Card/surface backgrounds
262
- surfaceVariant: '#334155', // Slate 700 - Variant surfaces
263
- surfaceSecondary: '#334155', // Alias for surfaceVariant
264
- surfaceDisabled: '#475569', // Slate 600 - Disabled surfaces
265
- // =============================================================================
266
- // TEXT COLORS (dark mode - light text on dark backgrounds)
267
- // =============================================================================
268
- textPrimary: '#F1F5F9', // Slate 100 - Primary text (very light)
269
- textSecondary: '#CBD5E1', // Slate 300 - Secondary text
270
- textTertiary: '#94A3B8', // Slate 400 - Tertiary text
271
- textDisabled: '#64748B', // Slate 500 - Disabled text
272
- textInverse: '#0F172A', // Dark text for light backgrounds
273
- // =============================================================================
274
- // BORDER COLORS (dark mode - subtle borders)
275
- // =============================================================================
276
- border: '#334155', // Slate 700 - Default border
277
- borderLight: '#475569', // Slate 600 - Light border
278
- borderMedium: '#64748B', // Slate 500 - Medium border
279
- borderFocus: '#60A5FA', // Blue 400 - Focus border (lighter)
280
- borderDisabled: '#475569', // Slate 600 - Disabled border
281
- // =============================================================================
282
- // COMPONENT-SPECIFIC COLORS (dark mode specific)
283
- // =============================================================================
284
- buttonPrimary: '#60A5FA', // Lighter blue for dark mode
285
- buttonSecondary: '#A78BFA', // Lighter purple for dark mode
286
- inputBackground: '#1E293B', // Dark input background
287
- inputBorder: '#475569', // Subtle input border
288
- cardBackground: '#1E293B', // Dark card background
289
- // =============================================================================
290
- // SPECIAL COLORS
291
- // =============================================================================
292
- transparent: 'transparent',
293
- black: '#000000',
294
- white: '#FFFFFF',
295
- // =============================================================================
296
- // RGBA OVERLAY COLORS (Same as light mode for type consistency)
297
- // =============================================================================
298
- modalOverlay: 'rgba(0, 0, 0, 0.5)',
299
- overlaySubtle: 'rgba(0, 0, 0, 0.05)',
300
- overlayLight: 'rgba(0, 0, 0, 0.1)',
301
- overlayMedium: 'rgba(0, 0, 0, 0.3)',
302
- overlayBackground: 'rgba(0, 0, 0, 0.05)',
303
- whiteOverlay: 'rgba(255, 255, 255, 0.2)',
304
- whiteOverlayStrong: 'rgba(255, 255, 255, 0.95)',
305
- whiteOverlayBorder: 'rgba(255, 255, 255, 0.5)',
306
- textWhiteOpacity: 'rgba(255, 255, 255, 0.8)',
307
- errorBackground: 'rgba(239, 68, 68, 0.1)',
308
- primaryBackground: 'rgba(99, 102, 241, 0.1)',
309
- cardOverlay: 'rgba(0, 0, 0, 0.15)',
310
- inputBackground_RGBA: 'rgba(248, 250, 252, 0.9)',
311
- // =============================================================================
312
- // SHADOW COLORS (Same as light mode for type consistency)
313
- // =============================================================================
314
- // SHADOW COLORS - REMOVED (React Native Web incompatibility)
315
- // NOTE: Use borders and background colors for depth instead
316
- // =============================================================================
317
- // =============================================================================
318
- // GRADIENTS (Same as light mode for type consistency)
319
- // =============================================================================
320
- gradient: ['#3B82F6', '#8B5CF6'],
321
- };
322
- /**
323
- * Get color palette for specific theme mode
324
- * @param mode - 'light' or 'dark'
325
- * @returns Color palette object
326
- */
327
- export const getColorPalette = (mode) => {
328
- return mode === 'dark' ? darkColors : lightColors;
329
- };
330
- //# sourceMappingURL=ColorPalette.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColorPalette.js","sourceRoot":"","sources":["../../../../src/presentation/tokens/core/ColorPalette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,gFAAgF;AAChF,kBAAkB;AAClB,gFAAgF;AAEhF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAAgB,EAAE,KAAa,EAAU,EAAE;IACnE,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC;QAClF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;QAC3B,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC;SACrC,QAAQ,CAAC,EAAE,CAAC;SACZ,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAEpB,OAAO,QAAQ,GAAG,QAAQ,CAAC;AAC7B,CAAC,CAAC;AAEF,gFAAgF;AAChF,qBAAqB;AACrB,gFAAgF;AAEhF,MAAM,CAAC,MAAM,WAAW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,IAAe,EAAgB,EAAE;IAC/D,OAAO,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC;AACpD,CAAC,CAAC"}
@@ -1,216 +0,0 @@
1
- /**
2
- * TOKEN FACTORY - THEME INJECTION LOGIC
3
- *
4
- * ✅ Factory Pattern for creating complete design tokens
5
- * ✅ Combines static tokens (BaseTokens) + dynamic colors (ColorPalette)
6
- * ✅ Type-safe token generation
7
- * ✅ Zero duplication - SINGLE SOURCE OF TRUTH
8
- *
9
- * @module TokenFactory
10
- */
11
- import { BASE_TOKENS } from './BaseTokens';
12
- import { withAlpha, type ThemeMode, type ColorPalette } from './ColorPalette';
13
- /**
14
- * Complete design tokens shape
15
- * Combines static tokens (spacing, typography, borders) + dynamic colors
16
- */
17
- export type DesignTokens = {
18
- colors: ColorPalette;
19
- spacing: typeof BASE_TOKENS.spacing;
20
- typography: typeof BASE_TOKENS.typography;
21
- iconSizes: typeof BASE_TOKENS.iconSizes;
22
- opacity: typeof BASE_TOKENS.opacity;
23
- avatarSizes: typeof BASE_TOKENS.avatarSizes;
24
- borders: typeof BASE_TOKENS.borders & {
25
- card: typeof BASE_TOKENS.borders.card & {
26
- borderColor: string;
27
- };
28
- input: typeof BASE_TOKENS.borders.input & {
29
- borderColor: string;
30
- };
31
- };
32
- };
33
- /**
34
- * Create complete design tokens for a specific theme mode
35
- *
36
- * @param mode - Theme mode ('light' or 'dark')
37
- * @returns Complete design tokens object
38
- *
39
- * @example
40
- * ```typescript
41
- * const lightTokens = createDesignTokens('light');
42
- * const darkTokens = createDesignTokens('dark');
43
- *
44
- * // Use in components
45
- * <View style={{ backgroundColor: lightTokens.colors.primary }}>
46
- * <Text style={lightTokens.typography.bodyLarge}>Hello!</Text>
47
- * </View>
48
- * ```
49
- */
50
- export declare const createDesignTokens: (mode: ThemeMode) => DesignTokens;
51
- /**
52
- * STATIC DESIGN TOKENS - LIGHT THEME ONLY
53
- *
54
- * ⚠️ WARNING: These are STATIC and use light theme colors only!
55
- * ⚠️ DO NOT USE in React components - use useAppDesignTokens() hook instead
56
- *
57
- * Only use these in:
58
- * - Utility functions
59
- * - Constants files
60
- * - Non-React JavaScript code
61
- *
62
- * @deprecated Use useAppDesignTokens() hook in React components
63
- */
64
- export declare const STATIC_DESIGN_TOKENS: DesignTokens;
65
- /**
66
- * STATIC TOKENS (spacing, typography, borders)
67
- * These DON'T change with theme - safe to use anywhere
68
- */
69
- export declare const STATIC_TOKENS: {
70
- readonly spacing: {
71
- readonly xs: 4;
72
- readonly sm: 8;
73
- readonly md: 16;
74
- readonly lg: 24;
75
- readonly xl: 32;
76
- readonly xxl: 48;
77
- readonly xxxl: 64;
78
- readonly screenPadding: 20;
79
- readonly cardPadding: 16;
80
- readonly buttonPadding: 16;
81
- readonly inputPadding: 8;
82
- readonly sectionSpacing: 24;
83
- readonly iconSizeSmall: 16;
84
- readonly iconSizeMedium: 20;
85
- readonly iconSizeLarge: 24;
86
- readonly iconSizeXLarge: 32;
87
- readonly iconSizeHero: 64;
88
- readonly buttonHeight: 48;
89
- readonly inputHeight: 48;
90
- readonly appBarHeight: 56;
91
- readonly tabBarHeight: 60;
92
- };
93
- readonly typography: {
94
- readonly fontPrimary: "System";
95
- readonly fontSecondary: "System";
96
- readonly fontMono: "Courier New";
97
- readonly xs: 12;
98
- readonly sm: 14;
99
- readonly md: 16;
100
- readonly lg: 18;
101
- readonly xl: 20;
102
- readonly xxl: 24;
103
- readonly xxxl: 32;
104
- readonly light: "300";
105
- readonly regular: "400";
106
- readonly medium: "500";
107
- readonly semibold: "600";
108
- readonly bold: "700";
109
- readonly lineHeightTight: 1.2;
110
- readonly lineHeightNormal: 1.5;
111
- readonly lineHeightRelaxed: 1.7;
112
- readonly displayLarge: import("react-native").TextStyle;
113
- readonly displayMedium: import("react-native").TextStyle;
114
- readonly displaySmall: import("react-native").TextStyle;
115
- readonly headlineLarge: import("react-native").TextStyle;
116
- readonly headlineMedium: import("react-native").TextStyle;
117
- readonly headlineSmall: import("react-native").TextStyle;
118
- readonly titleLarge: import("react-native").TextStyle;
119
- readonly titleMedium: import("react-native").TextStyle;
120
- readonly titleSmall: import("react-native").TextStyle;
121
- readonly bodyLarge: import("react-native").TextStyle;
122
- readonly bodyMedium: import("react-native").TextStyle;
123
- readonly bodySmall: import("react-native").TextStyle;
124
- readonly labelLarge: import("react-native").TextStyle;
125
- readonly labelMedium: import("react-native").TextStyle;
126
- readonly labelSmall: import("react-native").TextStyle;
127
- readonly headingLarge: import("react-native").TextStyle;
128
- readonly headingMedium: import("react-native").TextStyle;
129
- readonly headingSmall: import("react-native").TextStyle;
130
- readonly button: import("react-native").TextStyle;
131
- readonly caption: import("react-native").TextStyle;
132
- readonly overline: import("react-native").TextStyle;
133
- };
134
- readonly opacity: {
135
- readonly disabled: 0.6;
136
- readonly subtle: 0.8;
137
- readonly medium: 0.5;
138
- readonly light: 0.3;
139
- readonly veryLight: 0.1;
140
- };
141
- readonly borders: {
142
- readonly radius: {
143
- readonly none: 0;
144
- readonly xs: 2;
145
- readonly sm: 4;
146
- readonly md: 8;
147
- readonly lg: 12;
148
- readonly xl: 16;
149
- readonly xxl: 24;
150
- readonly full: 9999;
151
- };
152
- readonly width: {
153
- readonly none: 0;
154
- readonly thin: 1;
155
- readonly medium: 2;
156
- readonly thick: 4;
157
- };
158
- readonly button: {
159
- readonly borderRadius: 8;
160
- readonly borderWidth: 0;
161
- };
162
- readonly card: {
163
- readonly borderRadius: 12;
164
- readonly borderWidth: 1;
165
- };
166
- readonly input: {
167
- readonly borderRadius: 8;
168
- readonly borderWidth: 1;
169
- };
170
- readonly pill: {
171
- readonly borderRadius: 9999;
172
- readonly borderWidth: 0;
173
- };
174
- };
175
- readonly sizes: {
176
- readonly touchTarget: 44;
177
- readonly touchTargetSmall: 36;
178
- readonly touchTargetLarge: 56;
179
- readonly buttonHeight: {
180
- readonly sm: 40;
181
- readonly md: 48;
182
- readonly lg: 56;
183
- readonly xl: 64;
184
- };
185
- readonly dot: {
186
- readonly inactive: 8;
187
- readonly active: 24;
188
- };
189
- readonly progressBar: {
190
- readonly thin: 2;
191
- readonly normal: 4;
192
- readonly thick: 6;
193
- };
194
- readonly divider: 1;
195
- readonly separator: 2;
196
- };
197
- readonly iconSizes: {
198
- readonly xs: 12;
199
- readonly sm: 16;
200
- readonly md: 20;
201
- readonly lg: 24;
202
- readonly xl: 32;
203
- readonly xxl: 40;
204
- };
205
- readonly avatarSizes: {
206
- readonly xs: 24;
207
- readonly sm: 32;
208
- readonly md: 40;
209
- readonly lg: 48;
210
- readonly xl: 64;
211
- readonly xxl: 80;
212
- };
213
- };
214
- export { withAlpha };
215
- export type { ThemeMode, ColorPalette };
216
- //# sourceMappingURL=TokenFactory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TokenFactory.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tokens/core/TokenFactory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAmB,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM/F;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,OAAO,WAAW,CAAC,OAAO,CAAC;IACpC,UAAU,EAAE,OAAO,WAAW,CAAC,UAAU,CAAC;IAC1C,SAAS,EAAE,OAAO,WAAW,CAAC,SAAS,CAAC;IACxC,OAAO,EAAE,OAAO,WAAW,CAAC,OAAO,CAAC;IACpC,WAAW,EAAE,OAAO,WAAW,CAAC,WAAW,CAAC;IAC5C,OAAO,EAAE,OAAO,WAAW,CAAC,OAAO,GAAG;QACpC,IAAI,EAAE,OAAO,WAAW,CAAC,OAAO,CAAC,IAAI,GAAG;YAAE,WAAW,EAAE,MAAM,CAAA;SAAE,CAAC;QAChE,KAAK,EAAE,OAAO,WAAW,CAAC,OAAO,CAAC,KAAK,GAAG;YAAE,WAAW,EAAE,MAAM,CAAA;SAAE,CAAC;KACnE,CAAC;CACH,CAAC;AAMF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,SAAS,KAAG,YA6BpD,CAAC;AAMF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB,cAA8B,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAC;AAMzC,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC"}
@@ -1,86 +0,0 @@
1
- /**
2
- * TOKEN FACTORY - THEME INJECTION LOGIC
3
- *
4
- * ✅ Factory Pattern for creating complete design tokens
5
- * ✅ Combines static tokens (BaseTokens) + dynamic colors (ColorPalette)
6
- * ✅ Type-safe token generation
7
- * ✅ Zero duplication - SINGLE SOURCE OF TRUTH
8
- *
9
- * @module TokenFactory
10
- */
11
- import { BASE_TOKENS } from './BaseTokens';
12
- import { getColorPalette, withAlpha } from './ColorPalette';
13
- // =============================================================================
14
- // TOKEN FACTORY FUNCTION
15
- // =============================================================================
16
- /**
17
- * Create complete design tokens for a specific theme mode
18
- *
19
- * @param mode - Theme mode ('light' or 'dark')
20
- * @returns Complete design tokens object
21
- *
22
- * @example
23
- * ```typescript
24
- * const lightTokens = createDesignTokens('light');
25
- * const darkTokens = createDesignTokens('dark');
26
- *
27
- * // Use in components
28
- * <View style={{ backgroundColor: lightTokens.colors.primary }}>
29
- * <Text style={lightTokens.typography.bodyLarge}>Hello!</Text>
30
- * </View>
31
- * ```
32
- */
33
- export const createDesignTokens = (mode) => {
34
- // Get color palette for theme mode
35
- const colors = getColorPalette(mode);
36
- // Combine static tokens + dynamic colors
37
- return {
38
- // ✅ DYNAMIC: Colors from theme mode
39
- colors,
40
- // ✅ STATIC: These don't change with theme
41
- spacing: BASE_TOKENS.spacing,
42
- typography: BASE_TOKENS.typography,
43
- iconSizes: BASE_TOKENS.iconSizes,
44
- opacity: BASE_TOKENS.opacity,
45
- avatarSizes: BASE_TOKENS.avatarSizes,
46
- // ✅ BORDERS: Static + injected border colors from theme
47
- borders: {
48
- ...BASE_TOKENS.borders,
49
- card: {
50
- ...BASE_TOKENS.borders.card,
51
- borderColor: colors.border,
52
- },
53
- input: {
54
- ...BASE_TOKENS.borders.input,
55
- borderColor: colors.border,
56
- },
57
- },
58
- };
59
- };
60
- // =============================================================================
61
- // STATIC TOKEN INSTANCES (for non-React contexts)
62
- // =============================================================================
63
- /**
64
- * STATIC DESIGN TOKENS - LIGHT THEME ONLY
65
- *
66
- * ⚠️ WARNING: These are STATIC and use light theme colors only!
67
- * ⚠️ DO NOT USE in React components - use useAppDesignTokens() hook instead
68
- *
69
- * Only use these in:
70
- * - Utility functions
71
- * - Constants files
72
- * - Non-React JavaScript code
73
- *
74
- * @deprecated Use useAppDesignTokens() hook in React components
75
- */
76
- export const STATIC_DESIGN_TOKENS = createDesignTokens('light');
77
- /**
78
- * STATIC TOKENS (spacing, typography, borders)
79
- * These DON'T change with theme - safe to use anywhere
80
- */
81
- export const STATIC_TOKENS = BASE_TOKENS;
82
- // =============================================================================
83
- // UTILITY EXPORTS
84
- // =============================================================================
85
- export { withAlpha };
86
- //# sourceMappingURL=TokenFactory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TokenFactory.js","sourceRoot":"","sources":["../../../../src/presentation/tokens/core/TokenFactory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,SAAS,EAAqC,MAAM,gBAAg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