@@ -344,24 +344,50 @@ export const applyTheme = (
344344 theme . customCard ?. borderColor ||
345345 theme . colors ?. borderColor ||
346346 DefaultTheme [ mode ] . customCard . borderColor ,
347- padding : `0 ${ customStyle . tabs ?. tabPadding || DefaultStyle . tabs . tabPadding } px`
347+ padding : `0 ${ customStyle . tabs ?. tabPadding || DefaultStyle . tabs . tabPadding } px` ,
348+ gap : customStyle . tabs ?. headingGap || DefaultStyle . tabs . headingGap
348349
349350 } ,
350351 activeTabStyle :{
351352 backgroundColor : theme . tabs ?. activeTabBackgroundColor || DefaultTheme [ mode ] . tabs . activeTabBackgroundColor ,
352353 color : theme . tabs ?. activeTabTextColor || DefaultTheme [ mode ] . tabs . activeTabTextColor ,
353354 fontSize : customStyle . tabs ?. activeTabTextSize || DefaultStyle . tabs . activeTabTextSize ,
354355 fontWeight : customStyle . tabs ?. activeTabTextWeight || DefaultStyle . tabs . activeTabTextWeight ,
356+ border : `${
357+ customStyle . tabs ?. borderWidth ||
358+ DefaultStyle . tabs . borderWidth
359+ } px solid`,
360+ borderColor :
361+ theme . tabs ?. borderColor ||
362+ theme . colors ?. borderColor ||
363+ DefaultTheme [ mode ] . tabs ?. borderColor ,
364+ borderRadius : customStyle . tabs ?. borderRadius ||
365+ DefaultStyle . tabs . borderRadius ,
366+ padding : `${ customStyle . tabs ?. paddingY || DefaultStyle . tabs . paddingY } px
367+ ${ customStyle . tabs ?. paddingX || DefaultStyle . tabs . paddingX } px` ,
355368 } ,
356369 inactiveTabStyle :{
357- backgroundColor : 'transparent' ,
370+ backgroundColor : theme . tabs ?. inactiveTabBackgroundColor || DefaultTheme [ mode ] . tabs . inactiveTabBackgroundColor ,
358371 color : theme . tabs ?. inactiveTabTextColor || DefaultTheme [ mode ] . tabs . inactiveTabTextColor ,
359372 fontSize : customStyle . tabs ?. inactiveTabTextSize || DefaultStyle . tabs . inactiveTabTextSize ,
360373 fontWeight : customStyle . tabs ?. inactiveTabTextWeight || DefaultStyle . tabs . inactiveTabTextWeight ,
374+ border : `${
375+ customStyle . tabs ?. borderWidth ||
376+ DefaultStyle . tabs . borderWidth
377+ } px solid`,
378+ borderColor :
379+ theme . tabs ?. borderColor ||
380+ theme . colors ?. borderColor ||
381+ DefaultTheme [ mode ] . tabs ?. borderColor ,
382+ borderRadius : customStyle . tabs ?. borderRadius ||
383+ DefaultStyle . tabs . borderRadius ,
384+ padding : `${ customStyle . tabs ?. paddingY || DefaultStyle . tabs . paddingY } px
385+ ${ customStyle . tabs ?. paddingX || DefaultStyle . tabs . paddingX } px` ,
361386 } ,
362387 activeTabIndicator :{
363388 backgroundColor : theme . tabs ?. indicatorColor || DefaultTheme [ mode ] . tabs . indicatorColor ,
364- height : customStyle . tabs ?. indicatorHeight || DefaultStyle . tabs . indicatorHeight ,
389+ height : ( customStyle . tabs ?. indicatorHeight === undefined || customStyle . tabs ?. indicatorHeight === null ) ?
390+ DefaultStyle . tabs . indicatorHeight : customStyle . tabs ?. indicatorHeight ,
365391 }
366392 } ;
367393} ;
0 commit comments