@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
49 lines • 2.88 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTableCellStyles = void 0;
const spacings_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/spacings");
const typography_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/typography");
const variants_1 = require("./variants");
const getTableCellStyles = (COLORS) => {
return {
[variants_1.TableCellVariantType.HEADER_CELL_DEFAULT]: {
container: {
display: 'table-cell',
transition: 'box-shadow 200ms',
padding: `${spacings_1.SPACINGS.spacing_250} ${spacings_1.SPACINGS.spacing_300}`,
background_color: COLORS.SECONDARY.color_secondary_bg_150,
font_family: 'Nunito Sans',
color: COLORS.NEUTRAL.color_neutral_font_50,
font_weight: typography_1.FONT_WEIGHT.font_weight_600,
line_height: typography_1.PARAGRAPH.MEDIUM.DESKTOP.font_size,
font_size: typography_1.PARAGRAPH.MEDIUM.DESKTOP.font_size,
// When using borders and sticky positions, border are not shown properly, they are shown in the wrong position or transparent
// Fell free to improve this
// border_width: BORDERS.border_50,
// border_color: COLORS.NEUTRAL.color_neutral_border_50,
// border_style: 'solid',
box_shadow: `inset 1px 0 0 0 ${COLORS.NEUTRAL.color_neutral_border_50}, inset 0 1px 0 0 ${COLORS.NEUTRAL.color_neutral_border_50}`,
},
},
[variants_1.TableCellVariantType.BODY_CELL_DEFAULT]: {
container: {
display: 'table-cell',
transition: 'box-shadow 200ms',
padding: `${spacings_1.SPACINGS.spacing_250} ${spacings_1.SPACINGS.spacing_300}`,
background_color: COLORS.NEUTRAL.color_neutral_bg_250,
color: COLORS.NEUTRAL.color_neutral_font_50,
font_weight: typography_1.FONT_WEIGHT.font_weight_300,
line_height: typography_1.PARAGRAPH.MEDIUM.DESKTOP.font_size,
font_size: typography_1.PARAGRAPH.MEDIUM.DESKTOP.font_size,
// When using borders and sticky positions, border are not shown properly, they are shown in the wrong position or transparent
// Fell free to improve this
// border_width: BORDERS.border_50,
// border_color: COLORS.NEUTRAL.color_neutral_border_50,
// border_style: 'solid',
box_shadow: `inset 1px 0 0 0 ${COLORS.NEUTRAL.color_neutral_border_50}, inset 0 1px 0 0 ${COLORS.NEUTRAL.color_neutral_border_50}`,
},
},
};
};
exports.getTableCellStyles = getTableCellStyles;
//# sourceMappingURL=styles.js.map