117 lines
2.5 KiB
TypeScript

import { StyleSheet } from 'react-native';
import { typography } from '@theme';
export const getStyles = (colors: any) => StyleSheet.create({
container: {
backgroundColor: colors.cardBg,
borderRadius: 12,
padding: 16,
marginHorizontal: 16,
marginVertical: 6,
borderWidth: 1,
borderColor: colors.border,
},
header: {
flexDirection: 'row',
alignItems: 'center',
marginBottom: 10,
},
image: {
width: 44,
height: 44,
borderRadius: 22,
backgroundColor: colors.border,
justifyContent: 'center',
alignItems: 'center',
},
imagePlaceholder: {
fontSize: 22,
},
headerInfo: {
flex: 1,
marginLeft: 12,
},
providerName: {
fontSize: typography.fontSize.md,
fontWeight: typography.fontWeight.semibold,
color: colors.text,
},
orderDate: {
fontSize: typography.fontSize.xs,
color: colors.textSecondary,
marginTop: 2,
},
statusBadge: {
alignSelf: 'flex-start',
paddingHorizontal: 10,
paddingVertical: 3,
borderRadius: 12,
backgroundColor: '#E8F5E9',
},
statusText: {
fontSize: typography.fontSize.xs,
fontWeight: typography.fontWeight.medium,
color: colors.primary,
},
itemsContainer: {
paddingVertical: 12,
borderTopWidth: 1,
borderTopColor: colors.border,
},
itemRow: {
flexDirection: 'row',
alignItems: 'flex-start',
marginBottom: 8,
},
itemQuantityBadge: {
backgroundColor: colors.surface,
borderWidth: 1,
borderColor: colors.border,
borderRadius: 4,
paddingHorizontal: 6,
paddingVertical: 2,
marginRight: 8,
marginTop: 2,
},
itemQuantityText: {
fontSize: typography.fontSize.xs,
color: colors.text,
fontWeight: typography.fontWeight.medium,
},
itemName: {
flex: 1,
fontSize: typography.fontSize.sm,
color: colors.text,
lineHeight: 20,
},
footer: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
paddingTop: 12,
borderTopWidth: 1,
borderTopColor: colors.border,
},
total: {
fontSize: typography.fontSize.md,
fontWeight: typography.fontWeight.bold,
color: colors.text,
},
actions: {
flexDirection: 'row',
gap: 8,
},
actionButton: {
paddingHorizontal: 14,
paddingVertical: 6,
borderRadius: 8,
borderWidth: 1,
borderColor: colors.primary,
},
actionButtonText: {
fontSize: typography.fontSize.sm,
color: colors.primary,
fontWeight: typography.fontWeight.medium,
},
});