native-base-transpiled
Version:
NativeBase ES2015 transpilation proof of concept
235 lines (162 loc) • 4.81 kB
JavaScript
Object.defineProperty(exports,"__esModule",{value:true});var _color=require('color');var _color2=_interopRequireDefault(_color);
var _reactNative=require('react-native');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
{
badgeBg:'#ED1727',
badgeColor:'#fff',
btnFontFamily:_reactNative.Platform.OS==='ios'?'HelveticaNeue':'Roboto_medium',
btnDisabledBg:'#b5b5b5',
btnDisabledClr:'#f1f1f1',
get btnPrimaryBg(){
return this.brandPrimary;
},
get btnPrimaryColor(){
return this.inverseTextColor;
},
get btnInfoBg(){
return this.brandInfo;
},
get btnInfoColor(){
return this.inverseTextColor;
},
get btnSuccessBg(){
return this.brandSuccess;
},
get btnSuccessColor(){
return this.inverseTextColor;
},
get btnDangerBg(){
return this.brandDanger;
},
get btnDangerColor(){
return this.inverseTextColor;
},
get btnWarningBg(){
return this.brandWarning;
},
get btnWarningColor(){
return this.inverseTextColor;
},
get btnTextSize(){
return _reactNative.Platform.OS==='ios'?this.fontSizeBase*1.1:
this.fontSizeBase-1;
},
get btnTextSizeLarge(){
return this.fontSizeBase*1.5;
},
get btnTextSizeSmall(){
return this.fontSizeBase*.8;
},
get borderRadiusLarge(){
return this.fontSizeBase*3.8;
},
buttonPadding:6,
get iconSizeLarge(){
return this.iconFontSize*1.5;
},
get iconSizeSmall(){
return this.iconFontSize*.6;
},
cardDefaultBg:'#fff',
checkboxBgColor:'#039BE5',
checkboxSize:23,
checkboxTickColor:'#fff',
brandPrimary:'#5067FF',
brandInfo:'#5bc0de',
brandSuccess:'#5cb85c',
brandDanger:'#d9534f',
brandWarning:'#f0ad4e',
brandSidebar:'#252932',
fontFamily:_reactNative.Platform.OS==='ios'?'HelveticaNeue':'Roboto',
fontSizeBase:15,
get fontSizeH1(){
return this.fontSizeBase*1.8;
},
get fontSizeH2(){
return this.fontSizeBase*1.6;
},
get fontSizeH3(){
return this.fontSizeBase*1.4;
},
footerHeight:55,
footerDefaultBg:_reactNative.Platform.OS==='ios'?'#F8F8F8':'#4179F7',
tabBarTextColor:_reactNative.Platform.OS==='ios'?'#6b6b6b':'#b3c7f9',
tabBarActiveTextColor:_reactNative.Platform.OS==='ios'?'#007aff':'#fff',
tabActiveBgColor:_reactNative.Platform.OS=='ios'?'#cde1f9':undefined,
tabActiveBorderRadius:_reactNative.Platform.OS=='ios'?7:undefined,
tabBarTextSize:_reactNative.Platform.OS=='ios'?12.5:10,
tabBarActiveTextSize:_reactNative.Platform.OS=='ios'?12.5:11,
tabDefaultBg:_reactNative.Platform.OS==='ios'?'#F8F8F8':'#4179F7',
topTabBarTextColor:_reactNative.Platform.OS==='ios'?'#6b6b6b':'#b3c7f9',
topTabBarActiveTextColor:_reactNative.Platform.OS==='ios'?'#007aff':'#fff',
topTabActiveBgColor:_reactNative.Platform.OS=='ios'?'#cde1f9':undefined,
topTabBarBorderColor:_reactNative.Platform.OS==='ios'?'#007aff':'#fff',
iosToolbarBtnColor:'#007aff',
toolbarDefaultBg:_reactNative.Platform.OS==='ios'?'#F8F8F8':'#4179F7',
toolbarHeight:_reactNative.Platform.OS==='ios'?64:56,
toolbarIconSize:_reactNative.Platform.OS==='ios'?20:22,
toolbarInputColor:'#CECDD2',
toolbarInverseBg:'#222',
toolbarTextColor:_reactNative.Platform.OS==='ios'?'#000':'#fff',
get statusBarColor(){
return(0,_color2.default)(this.toolbarDefaultBg).darken(0.2).hexString();
},
iconFamily:'Ionicons',
iconFontSize:_reactNative.Platform.OS==='ios'?30:28,
iconMargin:7,
inputFontSize:15,
inputBorderColor:'#D9D5DC',
inputSuccessBorderColor:'#2b8339',
inputErrorBorderColor:'#ed2f2f',
get inputColor(){
return this.textColor;
},
get inputColorPlaceholder(){
return'#575757';
},
inputGroupMarginBottom:10,
inputHeightBase:40,
inputPaddingLeft:5,
get inputPaddingLeftIcon(){
return this.inputPaddingLeft*8;
},
btnLineHeight:19,
lineHeightH1:32,
lineHeightH2:27,
lineHeightH3:22,
iconLineHeight:_reactNative.Platform.OS==='ios'?37:30,
lineHeight:_reactNative.Platform.OS==='ios'?20:24,
listBorderColor:'#ddd',
listDividerBg:'#ddd',
listItemHeight:45,
listItemPadding:_reactNative.Platform.OS==='ios'?12:16,
listNoteColor:'#808080',
listNoteSize:13,
defaultProgressColor:'#E4202D',
inverseProgressColor:'#1A191B',
radioBtnSize:_reactNative.Platform.OS==='ios'?25:23,
radioColor:'#7e7e7e',
get radioSelectedColor(){
return(0,_color2.default)(this.radioColor).darken(0.2).hexString();
},
defaultSpinnerColor:'#45D56E',
inverseSpinnerColor:'#1A191B',
tabBgColor:'#F8F8F8',
tabFontSize:15,
tabTextColor:'#222222',
textColor:'#000',
inverseTextColor:'#fff',
titleFontSize:_reactNative.Platform.OS==='ios'?17:19,
subTitleFontSize:_reactNative.Platform.OS==='ios'?12:14,
subtitleColor:'#8e8e93',
borderRadiusBase:_reactNative.Platform.OS==='ios'?5:2,
borderWidth:1,
contentPadding:10,
get darkenHeader(){
return(0,_color2.default)(this.tabBgColor).darken(0.03).hexString();
},
dropdownBg:'#000',
dropdownLinkColor:'#414142',
inputLineHeight:24,
jumbotronBg:'#C9C9CE',
jumbotronPadding:30};
//# sourceMappingURL=light.js.map