(props, context)
| 5 | import findBorder from "../../style-functions/findBorder"; |
| 6 | |
| 7 | const computeTextStyle = (props, context) => { |
| 8 | const { |
| 9 | d, |
| 10 | pos, |
| 11 | top, |
| 12 | bottom, |
| 13 | left, |
| 14 | right, |
| 15 | h, |
| 16 | maxH, |
| 17 | minH, |
| 18 | justify, |
| 19 | align, |
| 20 | flexDir, |
| 21 | flexGrow, |
| 22 | flexWrap, |
| 23 | order, |
| 24 | rounded, |
| 25 | border, |
| 26 | borderColor, |
| 27 | m, |
| 28 | p, |
| 29 | bg, |
| 30 | textColor, |
| 31 | textWeight, |
| 32 | textAlign, |
| 33 | textTransform, |
| 34 | textDecor, |
| 35 | textSize, |
| 36 | transition, |
| 37 | w, |
| 38 | maxW, |
| 39 | minW, |
| 40 | fontFamily, |
| 41 | opacity, |
| 42 | hoverBg, |
| 43 | hoverBorderColor, |
| 44 | hoverTextColor, |
| 45 | tag, |
| 46 | theme, |
| 47 | cursor, |
| 48 | transform, |
| 49 | transformOrigin, |
| 50 | shadow, |
| 51 | zIndex, |
| 52 | overflow, |
| 53 | hoverShadow, |
| 54 | ...rest |
| 55 | } = props; |
| 56 | |
| 57 | const style = [ |
| 58 | findRoundedDirection(rounded, context.rounded), |
| 59 | findDirection(m, "margin"), |
| 60 | findDirection(p, "padding"), |
| 61 | makeResponsive(d, "display"), |
| 62 | makeResponsive(pos, "position"), |
| 63 | makeResponsive(top, "top"), |
| 64 | makeResponsive(bottom, "bottom"), |
no test coverage detected