(props: PaddingProps)
| 72 | }; |
| 73 | |
| 74 | export const calculatePadding = (props: PaddingProps): number => { |
| 75 | const { height, multiline = false } = props; |
| 76 | |
| 77 | let result = 0; |
| 78 | |
| 79 | if (multiline) { |
| 80 | if (height && multiline) { |
| 81 | result = calculateTextAreaPadding(props); |
| 82 | } else { |
| 83 | result = calculateInputPadding(props); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | return Math.max(0, result); |
| 88 | }; |
| 89 | |
| 90 | const calculateTextAreaPadding = (props: PaddingProps) => { |
| 91 | const { dense } = props; |
no test coverage detected
searching dependent graphs…