Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | 24x 24x 24x 252x | /**
* Lightweight jest mock for @/theme.
* Exposes a static lightTheme-equivalent object so components that call
* useTheme() can render without the real ThemeProvider / expo-secure-store.
*/
const React = require('react');
const lightTheme = {
background: '#F8FAFC',
surface: '#FFFFFF',
surfaceVariant: '#F9FAFB',
surfaceAlt: '#F3F4F6',
text: '#0F172A',
textSecondary: '#475569',
textTertiary: '#94A3B8',
textMuted: '#CBD5E1',
textOnPrimary: '#FFFFFF',
placeholder: '#94A3B8',
border: '#E2E8F0',
borderStrong: '#CBD5E1',
divider: '#F1F5F9',
primary: '#6366F1',
primaryAlt: '#4F46E5',
errorBg: '#FEF2F2',
errorBorder: '#FECACA',
errorText: '#DC2626',
errorTextStrong: '#991B1B',
successBg: '#F0FDF4',
successBorder: '#BBF7D0',
successText: '#16A34A',
warningBg: '#FFFBEB',
warningBorder: '#FDE68A',
warningText: '#D97706',
infoBg: '#EFF6FF',
infoBorder: '#BFDBFE',
infoText: '#2563EB',
tabBarBg: '#FFFFFF',
tabBarBorder: '#F1F5F9',
tabBarActive: '#6366F1',
tabBarInactive: '#94A3B8',
fabBg: '#6366F1',
fabIcon: '#FFFFFF',
notificationBadge: '#EF4444',
unreadBg: '#EFF6FF',
unreadBorder: '#BFDBFE',
unreadDot: '#3B82F6',
imagePlaceholder: '#E2E8F0',
overlay: 'rgba(0,0,0,0.5)',
overlayLight: 'rgba(0,0,0,0.5)',
badgePublicBg: '#F0FDF4',
badgePublicText: '#16A34A',
badgeProtectedBg: '#FFFBEB',
badgeProtectedText: '#D97706',
badgePrivateBg: '#FEF2F2',
badgePrivateText: '#DC2626',
badgeHostBg: '#EDE9FE',
badgeHostText: '#7C3AED',
badgeTicketBg: '#F0FDF4',
badgeTicketText: '#15803D',
badgeInvitedBg: '#EFF6FF',
badgeInvitedText: '#1D4ED8',
switchTrackTrue: '#6366F1',
switchTrackFalse: '#CBD5E1',
switchThumbTrue: '#FFFFFF',
switchThumbFalse: '#FFFFFF',
switchIosBg: '#CBD5E1',
};
module.exports = {
lightTheme,
darkTheme: lightTheme,
useTheme: jest.fn(() => ({
theme: lightTheme,
isDark: false,
preference: 'system',
setThemePreference: jest.fn(),
})),
ThemeProvider: ({ children }) => children,
};
|