92 lines
2.2 KiB
TypeScript
92 lines
2.2 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,
|
|
},
|
|
mapPlaceholder: {
|
|
flex: 1,
|
|
backgroundColor: colors.inputBg,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
},
|
|
placeholderText: {
|
|
fontSize: typography.fontSize.sm,
|
|
color: colors.placeholder,
|
|
},
|
|
etaCard: {
|
|
position: 'absolute',
|
|
top: spacing.lg,
|
|
left: spacing.lg,
|
|
right: spacing.lg,
|
|
backgroundColor: colors.cardBg,
|
|
borderRadius: borderRadius.md,
|
|
paddingVertical: spacing.md,
|
|
paddingHorizontal: spacing.lg,
|
|
alignItems: 'center',
|
|
...shadow.md,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
zIndex: 10,
|
|
},
|
|
etaTitle: {
|
|
fontSize: typography.fontSize.sm,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.primary,
|
|
marginBottom: 2,
|
|
},
|
|
etaSub: {
|
|
fontSize: typography.fontSize.xs,
|
|
color: colors.textSecondary,
|
|
},
|
|
bottomCard: {
|
|
position: 'absolute',
|
|
bottom: spacing.xxl,
|
|
left: spacing.lg,
|
|
right: spacing.lg,
|
|
backgroundColor: colors.cardBg,
|
|
borderRadius: borderRadius.lg,
|
|
padding: spacing.xl,
|
|
...shadow.lg,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
zIndex: 10,
|
|
},
|
|
cardTitle: {
|
|
fontSize: typography.fontSize.sm,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.textSecondary,
|
|
textTransform: 'uppercase',
|
|
marginBottom: spacing.xs,
|
|
},
|
|
customerName: {
|
|
fontSize: typography.fontSize.lg,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.text,
|
|
marginBottom: spacing.sm,
|
|
},
|
|
customerAddress: {
|
|
fontSize: typography.fontSize.sm,
|
|
color: colors.textSecondary,
|
|
lineHeight: 20,
|
|
marginBottom: spacing.lg,
|
|
},
|
|
btnRow: {
|
|
flexDirection: 'row',
|
|
gap: 12,
|
|
},
|
|
contactBtn: {
|
|
flex: 1,
|
|
backgroundColor: colors.inputBg,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
},
|
|
arrivedBtn: {
|
|
flex: 2,
|
|
backgroundColor: colors.primary,
|
|
},
|
|
});
|