117 lines
2.8 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.xxl,
},
orderHeader: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
marginTop: 20,
marginBottom: spacing.md,
},
orderIdText: {
fontSize: typography.fontSize.lg,
fontWeight: typography.fontWeight.bold,
color: colors.text,
},
paymentTag: {
backgroundColor: colors.primaryLight,
paddingHorizontal: 8,
paddingVertical: 4,
borderRadius: borderRadius.sm,
},
paymentTagText: {
fontSize: 10,
fontWeight: 'bold',
color: colors.primary,
},
merchantInfoCard: {
backgroundColor: colors.inputBg,
borderRadius: borderRadius.md,
padding: spacing.md,
marginBottom: spacing.lg,
borderWidth: 1,
borderColor: colors.border,
},
merchantLabel: {
fontSize: 10,
color: colors.textSecondary,
fontWeight: 'bold',
textTransform: 'uppercase',
marginBottom: 4,
},
merchantName: {
fontSize: typography.fontSize.md,
fontWeight: typography.fontWeight.bold,
color: colors.text,
},
section: {
marginBottom: spacing.xl,
},
sectionTitle: {
fontSize: typography.fontSize.md,
fontWeight: typography.fontWeight.bold,
color: colors.text,
marginBottom: spacing.md,
},
itemRow: {
flexDirection: 'row',
alignItems: 'center',
paddingVertical: spacing.sm,
borderBottomWidth: 1,
borderBottomColor: colors.border,
},
checkbox: {
width: 20,
height: 20,
borderRadius: 4,
borderWidth: 2,
borderColor: colors.primary,
justifyContent: 'center',
alignItems: 'center',
marginRight: spacing.md,
},
checkboxChecked: {
backgroundColor: colors.primary,
},
checkSign: {
color: colors.white,
fontSize: 10,
fontWeight: 'bold',
},
itemNameText: {
fontSize: typography.fontSize.md,
color: colors.text,
flex: 1,
},
itemQtyText: {
fontSize: typography.fontSize.md,
fontWeight: typography.fontWeight.bold,
color: colors.text,
},
btnRow: {
flexDirection: 'row',
gap: 12,
marginTop: spacing.md,
},
issueBtn: {
flex: 1,
backgroundColor: colors.errorLight,
borderColor: colors.error,
borderWidth: 1,
},
pickedUpBtn: {
flex: 2,
backgroundColor: colors.primary,
},
});