UNPKG

smart-react-components

Version:

React UI library, wide variety of editable ready to use Styled and React components.

26 lines (20 loc) 835 B
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var styled = require('styled-components'); var styled__default = _interopDefault(styled); require('../index-56ba89df.js'); var Tr$1 = require('../element/Tr.js'); var Tr = styled__default(Tr$1) ` ${({ theme, type }) => type && ` & > * { border-color: ${theme.src.type[type].table.border} !important; background: ${theme.src.type[type].table.background} !important; color: ${theme.src.type[type].table.font} !important; } thead > & > * { background: ${theme.src.type[type].table.stripedBackground} !important; color: ${theme.src.type[type].table.stripedFont} !important; } `} `; module.exports = Tr;