110 lines
2.4 KiB
TypeScript
110 lines
2.4 KiB
TypeScript
import { StyleSheet } from 'react-native';
|
|
import { typography } from '@theme';
|
|
|
|
export const getStyles = (colors: any) => StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: colors.background,
|
|
},
|
|
list: {
|
|
paddingBottom: 100,
|
|
},
|
|
cartItem: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
justifyContent: 'space-between',
|
|
paddingVertical: 14,
|
|
paddingHorizontal: 16,
|
|
borderBottomWidth: 1,
|
|
borderBottomColor: colors.border,
|
|
},
|
|
itemInfo: {
|
|
flex: 1,
|
|
},
|
|
itemTitle: {
|
|
fontSize: typography.fontSize.md,
|
|
fontWeight: typography.fontWeight.medium,
|
|
color: colors.text,
|
|
marginBottom: 4,
|
|
},
|
|
itemPrice: {
|
|
fontSize: typography.fontSize.md,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.text,
|
|
},
|
|
footer: {
|
|
padding: 16,
|
|
},
|
|
couponRow: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
marginBottom: 20,
|
|
},
|
|
couponInput: {
|
|
flex: 1,
|
|
height: 48,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
borderRadius: 12,
|
|
paddingHorizontal: 16,
|
|
fontSize: typography.fontSize.md,
|
|
color: colors.text,
|
|
backgroundColor: colors.inputBg,
|
|
marginRight: 8,
|
|
},
|
|
applyButton: {
|
|
paddingHorizontal: 20,
|
|
paddingVertical: 14,
|
|
borderRadius: 12,
|
|
backgroundColor: colors.primary,
|
|
},
|
|
applyButtonText: {
|
|
color: '#FFFFFF',
|
|
fontWeight: typography.fontWeight.semibold,
|
|
fontSize: typography.fontSize.sm,
|
|
},
|
|
feeRow: {
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-between',
|
|
marginBottom: 8,
|
|
},
|
|
feeLabel: {
|
|
fontSize: typography.fontSize.sm,
|
|
color: colors.textSecondary,
|
|
},
|
|
feeValue: {
|
|
fontSize: typography.fontSize.sm,
|
|
fontWeight: typography.fontWeight.medium,
|
|
color: colors.text,
|
|
},
|
|
totalRow: {
|
|
borderTopWidth: 1,
|
|
borderTopColor: colors.border,
|
|
paddingTop: 12,
|
|
marginTop: 4,
|
|
},
|
|
totalLabel: {
|
|
fontSize: typography.fontSize.md,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.text,
|
|
},
|
|
totalValue: {
|
|
fontSize: typography.fontSize.md,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.text,
|
|
},
|
|
bottomPanel: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
padding: 16,
|
|
borderTopWidth: 1,
|
|
borderTopColor: colors.border,
|
|
backgroundColor: colors.background,
|
|
},
|
|
bottomTotal: {
|
|
fontSize: typography.fontSize.lg,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.text,
|
|
},
|
|
});
|