(isXs, colWidth, colSize)
| 38 | }; |
| 39 | |
| 40 | const getColumnSizeClass = (isXs, colWidth, colSize) => { |
| 41 | if (colSize === true || colSize === '') { |
| 42 | return isXs ? 'col' : `col-${colWidth}`; |
| 43 | } |
| 44 | if (colSize === 'auto') { |
| 45 | return isXs ? 'col-auto' : `col-${colWidth}-auto`; |
| 46 | } |
| 47 | |
| 48 | return isXs ? `col-${colSize}` : `col-${colWidth}-${colSize}`; |
| 49 | }; |
| 50 | |
| 51 | export const getColumnClasses = (attributes, cssModule, widths = colWidths) => { |
| 52 | const modifiedAttributes = attributes; |
no outgoing calls
no test coverage detected
searching dependent graphs…