57 lines
1.3 KiB
TypeScript
57 lines
1.3 KiB
TypeScript
import { StyleSheet } from 'react-native';
|
|
import { typography } from '@theme';
|
|
|
|
export const getStyles = (colors: any) =>
|
|
StyleSheet.create({
|
|
container: {
|
|
marginBottom: 20,
|
|
width: '100%',
|
|
},
|
|
labelRow: {
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-between',
|
|
alignItems: 'center',
|
|
marginBottom: 8,
|
|
},
|
|
label: {
|
|
fontSize: typography.fontSize.sm,
|
|
fontWeight: typography.fontWeight.medium,
|
|
color: colors.textSecondary,
|
|
},
|
|
rightAction: {
|
|
fontSize: typography.fontSize.sm,
|
|
fontWeight: typography.fontWeight.semibold,
|
|
color: colors.primary,
|
|
},
|
|
inputContainer: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
borderRadius: 12,
|
|
backgroundColor: colors.inputBg,
|
|
paddingHorizontal: 16,
|
|
height: 56,
|
|
},
|
|
leftElementWrap: {
|
|
marginRight: 10,
|
|
paddingRight: 10,
|
|
borderRightWidth: 1,
|
|
borderRightColor: colors.border,
|
|
},
|
|
input: {
|
|
flex: 1,
|
|
height: '100%',
|
|
color: colors.text,
|
|
fontSize: typography.fontSize.md,
|
|
fontWeight: typography.fontWeight.regular,
|
|
paddingVertical: 0,
|
|
},
|
|
errorText: {
|
|
color: colors.error,
|
|
fontSize: typography.fontSize.xs,
|
|
marginTop: 4,
|
|
marginLeft: 4,
|
|
},
|
|
});
|