@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
28 lines • 1.28 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TRStyled = void 0;
const styled_components_1 = __importDefault(require("styled-components"));
const getStyles_1 = require("../../utils/getStyles/getStyles");
exports.TRStyled = styled_components_1.default.tr `
${({ $styles }) => (0, getStyles_1.getStyles)($styles?.container)};
${({ $styles }) => (0, getStyles_1.getTypographyStyles)($styles?.container)};
/* Styles are applied over the cell and no over the row, this is because the cell background could have been set, and it should be overriden when active or hover */
&[data-hoverable='true'] {
&:hover td,
&:hover th {
${({ $styles }) => (0, getStyles_1.getStyles)($styles?.hoveredCellContainer)};
${({ $styles }) => (0, getStyles_1.getTypographyStyles)($styles?.hoveredCellContainer)};
}
}
&[data-active='true'] {
td,
th {
${({ $styles }) => (0, getStyles_1.getStyles)($styles?.activeCellContainer)};
${({ $styles }) => (0, getStyles_1.getTypographyStyles)($styles?.activeCellContainer)};
}
}
`;
//# sourceMappingURL=tableRow.styled.js.map