134 lines
3.3 KiB
TypeScript
134 lines
3.3 KiB
TypeScript
import { StyleSheet } from 'react-native';
|
|
import { typography, spacing, borderRadius, shadow } from '@theme';
|
|
|
|
export const getStyles = (colors: any) =>
|
|
StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: colors.background,
|
|
},
|
|
scrollContainer: {
|
|
paddingHorizontal: spacing.lg,
|
|
paddingBottom: spacing.xxxl,
|
|
},
|
|
headerContainer: {
|
|
marginTop: 20,
|
|
marginBottom: spacing.lg,
|
|
},
|
|
title: {
|
|
fontSize: typography.fontSize.xxl,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.text,
|
|
},
|
|
summaryCard: {
|
|
backgroundColor: colors.primary,
|
|
borderRadius: borderRadius.lg,
|
|
padding: spacing.xl,
|
|
marginBottom: spacing.lg,
|
|
...shadow.md,
|
|
},
|
|
summaryTitle: {
|
|
fontSize: typography.fontSize.xs,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.primaryLight,
|
|
textTransform: 'uppercase',
|
|
marginBottom: spacing.xs,
|
|
},
|
|
totalAmount: {
|
|
fontSize: 32,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.white,
|
|
marginBottom: spacing.lg,
|
|
},
|
|
statsRow: {
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-between',
|
|
borderTopWidth: 1,
|
|
borderTopColor: 'rgba(255,255,255,0.15)',
|
|
paddingTop: spacing.md,
|
|
},
|
|
statBox: {
|
|
flex: 1,
|
|
alignItems: 'center',
|
|
},
|
|
statVal: {
|
|
fontSize: typography.fontSize.md,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.white,
|
|
marginBottom: 2,
|
|
},
|
|
statLabel: {
|
|
fontSize: 10,
|
|
color: colors.primaryLight,
|
|
},
|
|
statDivider: {
|
|
width: 1,
|
|
height: 24,
|
|
backgroundColor: 'rgba(255,255,255,0.15)',
|
|
},
|
|
listSection: {
|
|
marginTop: spacing.md,
|
|
},
|
|
sectionTitle: {
|
|
fontSize: typography.fontSize.md,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.text,
|
|
marginBottom: spacing.md,
|
|
},
|
|
earningItem: {
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-between',
|
|
alignItems: 'center',
|
|
backgroundColor: colors.cardBg,
|
|
borderRadius: borderRadius.md,
|
|
padding: spacing.md,
|
|
marginBottom: spacing.sm,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
...shadow.sm,
|
|
},
|
|
itemLeft: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
},
|
|
iconContainer: {
|
|
width: 40,
|
|
height: 40,
|
|
borderRadius: borderRadius.full,
|
|
backgroundColor: colors.primaryLight,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
marginRight: spacing.md,
|
|
},
|
|
orderIdText: {
|
|
fontSize: typography.fontSize.sm,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.text,
|
|
marginBottom: 2,
|
|
},
|
|
timeText: {
|
|
fontSize: typography.fontSize.xs,
|
|
color: colors.textSecondary,
|
|
},
|
|
itemRight: {
|
|
alignItems: 'flex-end',
|
|
},
|
|
itemAmount: {
|
|
fontSize: typography.fontSize.md,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.primary,
|
|
marginBottom: 4,
|
|
},
|
|
paymentBadge: {
|
|
paddingHorizontal: 6,
|
|
paddingVertical: 2,
|
|
borderRadius: borderRadius.sm,
|
|
backgroundColor: colors.inputBg,
|
|
},
|
|
paymentText: {
|
|
fontSize: 9,
|
|
fontWeight: 'bold',
|
|
color: colors.textSecondary,
|
|
},
|
|
});
|