99 lines
2.6 KiB
TypeScript
99 lines
2.6 KiB
TypeScript
import { StyleSheet } from 'react-native';
|
|
import { typography, spacing, borderRadius } from '@theme';
|
|
|
|
export const getStyles = (colors: any) =>
|
|
StyleSheet.create({
|
|
cardContainer: {
|
|
backgroundColor: colors.cardBg,
|
|
borderRadius: borderRadius.md,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
padding: spacing.lg,
|
|
marginBottom: spacing.xl,
|
|
// Subtle elevation
|
|
shadowColor: colors.cardShadow,
|
|
shadowOffset: { width: 0, height: 2 },
|
|
shadowOpacity: 0.1,
|
|
shadowRadius: 4,
|
|
elevation: 3,
|
|
},
|
|
headerRow: {
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-between',
|
|
alignItems: 'center',
|
|
marginBottom: spacing.md,
|
|
borderBottomWidth: 1,
|
|
borderBottomColor: colors.border,
|
|
paddingBottom: spacing.sm,
|
|
},
|
|
docNumberText: {
|
|
fontSize: typography.fontSize.sm,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.primary,
|
|
textTransform: 'uppercase',
|
|
letterSpacing: 0.5,
|
|
},
|
|
removeButton: {
|
|
paddingVertical: spacing.xs,
|
|
paddingHorizontal: spacing.sm,
|
|
},
|
|
removeButtonText: {
|
|
fontSize: typography.fontSize.xs,
|
|
color: colors.error,
|
|
fontWeight: typography.fontWeight.semibold,
|
|
},
|
|
fieldContainer: {
|
|
marginBottom: spacing.md,
|
|
},
|
|
label: {
|
|
fontSize: 11,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.textSecondary,
|
|
textTransform: 'uppercase',
|
|
marginBottom: spacing.xs,
|
|
letterSpacing: 0.3,
|
|
},
|
|
input: {
|
|
backgroundColor: colors.inputBg,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
borderRadius: borderRadius.sm,
|
|
paddingHorizontal: spacing.md,
|
|
height: 48,
|
|
color: colors.text,
|
|
fontSize: typography.fontSize.sm,
|
|
},
|
|
uploadBox: {
|
|
backgroundColor: colors.inputBg,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
borderStyle: 'dashed',
|
|
borderRadius: borderRadius.sm,
|
|
paddingHorizontal: spacing.md,
|
|
height: 48,
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-between',
|
|
alignItems: 'center',
|
|
},
|
|
uploadBoxActive: {
|
|
borderColor: colors.primary,
|
|
backgroundColor: colors.primaryLight,
|
|
},
|
|
uploadText: {
|
|
fontSize: typography.fontSize.sm,
|
|
color: colors.placeholder,
|
|
fontWeight: typography.fontWeight.medium,
|
|
},
|
|
fileNameText: {
|
|
fontSize: typography.fontSize.sm,
|
|
color: colors.primary,
|
|
fontWeight: typography.fontWeight.semibold,
|
|
},
|
|
helperText: {
|
|
fontSize: 11,
|
|
color: colors.textSecondary,
|
|
marginTop: spacing.xs,
|
|
fontStyle: 'italic',
|
|
},
|
|
});
|