2026-07-01 09:55:55 +05:30

87 lines
1.8 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,
},
footer: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
marginTop: 10,
paddingTop: 10,
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,
},
});