131 lines
3.0 KiB
TypeScript
131 lines
3.0 KiB
TypeScript
import { StyleSheet } from 'react-native';
|
|
import { typography } from '@theme';
|
|
|
|
export const getStyles = (colors: any) =>
|
|
StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: colors.background,
|
|
},
|
|
content: {
|
|
padding: 16,
|
|
paddingBottom: 24,
|
|
},
|
|
sectionTitle: {
|
|
fontSize: typography.fontSize.md,
|
|
fontWeight: typography.fontWeight.semibold,
|
|
color: colors.text,
|
|
marginBottom: 12,
|
|
},
|
|
emptyState: {
|
|
padding: 24,
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
},
|
|
emptyStateText: {
|
|
fontSize: typography.fontSize.sm,
|
|
color: colors.textSecondary,
|
|
},
|
|
addressCard: {
|
|
backgroundColor: colors.cardBg,
|
|
borderRadius: 12,
|
|
padding: 16,
|
|
borderWidth: 1.5,
|
|
borderColor: colors.border,
|
|
marginBottom: 12,
|
|
},
|
|
addressCardSelected: {
|
|
borderColor: colors.primary,
|
|
backgroundColor: '#E8F5E9',
|
|
},
|
|
addressCardHeader: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
marginBottom: 8,
|
|
},
|
|
labelBadge: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
backgroundColor: colors.background,
|
|
borderRadius: 20,
|
|
paddingVertical: 4,
|
|
paddingHorizontal: 10,
|
|
marginRight: 8,
|
|
},
|
|
labelBadgeIcon: {
|
|
fontSize: 12,
|
|
marginRight: 4,
|
|
},
|
|
labelBadgeText: {
|
|
fontSize: typography.fontSize.xs,
|
|
fontWeight: typography.fontWeight.semibold,
|
|
color: colors.text,
|
|
},
|
|
defaultBadge: {
|
|
backgroundColor: colors.primary,
|
|
borderRadius: 20,
|
|
paddingVertical: 3,
|
|
paddingHorizontal: 8,
|
|
},
|
|
defaultBadgeText: {
|
|
fontSize: 10,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: '#fff',
|
|
letterSpacing: 0.5,
|
|
},
|
|
radio: {
|
|
width: 22,
|
|
height: 22,
|
|
borderRadius: 11,
|
|
borderWidth: 2,
|
|
borderColor: colors.border,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
marginLeft: 'auto',
|
|
},
|
|
radioSelected: {
|
|
borderColor: colors.primary,
|
|
},
|
|
radioInner: {
|
|
width: 12,
|
|
height: 12,
|
|
borderRadius: 6,
|
|
backgroundColor: colors.primary,
|
|
},
|
|
addressText: {
|
|
fontSize: typography.fontSize.md,
|
|
fontWeight: typography.fontWeight.medium,
|
|
color: colors.text,
|
|
marginBottom: 4,
|
|
},
|
|
addressSubtext: {
|
|
fontSize: typography.fontSize.sm,
|
|
color: colors.textSecondary,
|
|
marginBottom: 2,
|
|
},
|
|
addressPhone: {
|
|
fontSize: typography.fontSize.sm,
|
|
color: colors.textSecondary,
|
|
marginTop: 4,
|
|
},
|
|
addAddressButton: {
|
|
borderWidth: 1.5,
|
|
borderColor: colors.primary,
|
|
borderStyle: 'dashed',
|
|
borderRadius: 12,
|
|
paddingVertical: 14,
|
|
alignItems: 'center',
|
|
marginTop: 4,
|
|
},
|
|
addAddressButtonText: {
|
|
fontSize: typography.fontSize.md,
|
|
fontWeight: typography.fontWeight.semibold,
|
|
color: colors.primary,
|
|
},
|
|
footer: {
|
|
padding: 16,
|
|
borderTopWidth: 1,
|
|
borderTopColor: colors.border,
|
|
},
|
|
});
|