112 lines
2.4 KiB
TypeScript
112 lines
2.4 KiB
TypeScript
import { StyleSheet } from 'react-native';
|
|
import { ThemeColors } from '../../theme';
|
|
|
|
export const getStyles = (colors: ThemeColors) =>
|
|
StyleSheet.create({
|
|
customerCard: {
|
|
backgroundColor: colors.card,
|
|
borderRadius: 14,
|
|
padding: 16,
|
|
marginBottom: 12,
|
|
shadowColor: '#0F172A',
|
|
shadowOffset: { width: 0, height: 2 },
|
|
shadowOpacity: 0.05,
|
|
shadowRadius: 4,
|
|
elevation: 2,
|
|
},
|
|
cardHeader: {
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-between',
|
|
alignItems: 'flex-start',
|
|
borderBottomWidth: 1,
|
|
borderBottomColor: colors.border,
|
|
paddingBottom: 12,
|
|
marginBottom: 12,
|
|
},
|
|
cardHeaderRight: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
gap: 10,
|
|
},
|
|
cardHeaderLeft: {
|
|
flexDirection: 'row',
|
|
alignItems: 'flex-start',
|
|
flex: 1,
|
|
marginRight: 10,
|
|
},
|
|
avatarCircle: {
|
|
width: 42,
|
|
height: 42,
|
|
borderRadius: 21,
|
|
backgroundColor: colors.icon,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
marginRight: 10,
|
|
},
|
|
avatarInitial: {
|
|
color: '#FFFFFF',
|
|
fontSize: 16,
|
|
fontWeight: '700',
|
|
},
|
|
cardInfo: {
|
|
flex: 1,
|
|
},
|
|
customerName: {
|
|
fontSize: 15,
|
|
fontWeight: '700',
|
|
color: colors.text,
|
|
},
|
|
contactPerson: {
|
|
fontSize: 12,
|
|
color: colors.textSecondary,
|
|
marginTop: 2,
|
|
},
|
|
location: {
|
|
fontSize: 12,
|
|
color: colors.textMuted,
|
|
marginTop: 3,
|
|
},
|
|
badge: {
|
|
paddingHorizontal: 10,
|
|
paddingVertical: 4,
|
|
borderRadius: 20,
|
|
backgroundColor: `${colors.icon}15`,
|
|
},
|
|
badgeText: {
|
|
fontSize: 11,
|
|
fontWeight: '700',
|
|
color: colors.icon,
|
|
},
|
|
cardFooter: {
|
|
flexDirection: 'row',
|
|
gap: 10,
|
|
},
|
|
actionButton: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
paddingVertical: 10,
|
|
borderRadius: 10,
|
|
flex: 1,
|
|
gap: 6,
|
|
},
|
|
callButton: {
|
|
backgroundColor: `${colors.icon}10`,
|
|
},
|
|
emailButton: {
|
|
backgroundColor: colors.background,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
},
|
|
callButtonText: {
|
|
fontSize: 13,
|
|
fontWeight: '600',
|
|
color: colors.icon,
|
|
},
|
|
emailButtonText: {
|
|
fontSize: 13,
|
|
fontWeight: '600',
|
|
color: colors.textSecondary,
|
|
},
|
|
});
|