123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- // @flow
- import variable from './../variables/platform';
- export default (variables /* : * */ = variable) => {
- const inputGroupTheme = {
- 'NativeBase.Icon': {
- fontSize: 24,
- color: variables.sTabBarActiveTextColor,
- paddingHorizontal: 5
- },
- 'NativeBase.IconNB': {
- fontSize: 24,
- color: variables.sTabBarActiveTextColor,
- paddingHorizontal: 5
- },
- 'NativeBase.Input': {
- height: variables.inputHeightBase,
- color: variables.inputColor,
- paddingLeft: 5,
- paddingRight: 5,
- flex: 1,
- fontSize: variables.inputFontSize,
- lineHeight: variables.inputLineHeight
- },
- '.underline': {
- '.success': {
- borderColor: variables.inputSuccessBorderColor
- },
- '.error': {
- borderColor: variables.inputErrorBorderColor
- },
- paddingLeft: 5,
- borderWidth: variables.borderWidth,
- borderTopWidth: 0,
- borderRightWidth: 0,
- borderLeftWidth: 0,
- borderColor: variables.inputBorderColor
- },
- '.regular': {
- '.success': {
- borderColor: variables.inputSuccessBorderColor
- },
- '.error': {
- borderColor: variables.inputErrorBorderColor
- },
- paddingLeft: 5,
- borderWidth: variables.borderWidth,
- borderColor: variables.inputBorderColor
- },
- '.rounded': {
- '.success': {
- borderColor: variables.inputSuccessBorderColor
- },
- '.error': {
- borderColor: variables.inputErrorBorderColor
- },
- paddingLeft: 5,
- borderWidth: variables.borderWidth,
- borderRadius: variables.inputGroupRoundedBorderRadius,
- borderColor: variables.inputBorderColor
- },
- '.success': {
- 'NativeBase.Icon': {
- color: variables.inputSuccessBorderColor
- },
- 'NativeBase.IconNB': {
- color: variables.inputSuccessBorderColor
- },
- '.rounded': {
- borderRadius: 30,
- borderColor: variables.inputSuccessBorderColor
- },
- '.regular': {
- borderColor: variables.inputSuccessBorderColor
- },
- '.underline': {
- borderWidth: variables.borderWidth,
- borderTopWidth: 0,
- borderRightWidth: 0,
- borderLeftWidth: 0,
- borderColor: variables.inputSuccessBorderColor
- },
- borderColor: variables.inputSuccessBorderColor
- },
- '.error': {
- 'NativeBase.Icon': {
- color: variables.inputErrorBorderColor
- },
- 'NativeBase.IconNB': {
- color: variables.inputErrorBorderColor
- },
- '.rounded': {
- borderRadius: 30,
- borderColor: variables.inputErrorBorderColor
- },
- '.regular': {
- borderColor: variables.inputErrorBorderColor
- },
- '.underline': {
- borderWidth: variables.borderWidth,
- borderTopWidth: 0,
- borderRightWidth: 0,
- borderLeftWidth: 0,
- borderColor: variables.inputErrorBorderColor
- },
- borderColor: variables.inputErrorBorderColor
- },
- '.disabled': {
- 'NativeBase.Icon': {
- color: '#384850'
- },
- 'NativeBase.IconNB': {
- color: '#384850'
- }
- },
- paddingLeft: 5,
- borderWidth: variables.borderWidth,
- borderTopWidth: 0,
- borderRightWidth: 0,
- borderLeftWidth: 0,
- borderColor: variables.inputBorderColor,
- backgroundColor: 'transparent',
- flexDirection: 'row',
- alignItems: 'center'
- };
- return inputGroupTheme;
- };
|