@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
108 lines • 4 kB
JavaScript
import { DeviceBreakpointsType } from '../../../../types/breakpoints/breakpoints';
import { RADIUS } from '../../foundations/borders';
import { COLORS } from '../../foundations/colors';
import { SHADOW } from '../../foundations/shadow';
import { SPACINGS } from '../../foundations/spacings';
import { FONT_WEIGHT, TEXT_ALIGN } from '../../foundations/typography';
import { TextVariantType } from '../text/variants';
import { CardImageStateVariantType } from './variants';
export const CARD_IMAGE_STYLES = {
[CardImageStateVariantType.DEFAULT]: {
container: {
border_radius: RADIUS.radius_50,
background_color: COLORS.NEUTRAL.color_neutral_bg_100,
box_shadow: SHADOW.shadow_10,
},
imageContainer: {
min_height: '12rem',
max_height: '12rem',
height: '12rem',
border_top_left_radius: RADIUS.radius_50,
border_top_right_radius: RADIUS.radius_50,
},
content: {
height: '100%',
display: 'flex',
flex_direction: 'column',
justify_content: 'space-between',
padding: SPACINGS.spacing_150,
},
titleContainer: {
margin_bottom: SPACINGS.spacing_150,
},
title: {
font_weight: FONT_WEIGHT.font_weight_600,
color: COLORS.NEUTRAL.color_neutral_bg_100,
[DeviceBreakpointsType.DESKTOP]: {
font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXPANDED,
},
[DeviceBreakpointsType.TABLET]: {
font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXPANDED,
},
[DeviceBreakpointsType.MOBILE]: {
font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXPANDED,
},
},
descriptionContainer: {
margin_bottom: SPACINGS.spacing_150,
},
description: {
font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXPANDED,
font_weight: FONT_WEIGHT.font_weight_400,
color: COLORS.NEUTRAL.color_neutral_bg_100,
text_align: TEXT_ALIGN.left,
},
linkContainer: {
justify_content: TEXT_ALIGN.left,
},
},
[CardImageStateVariantType.ALTERNATIVE]: {
container: {
border_radius: RADIUS.radius_50,
background_color: COLORS.NEUTRAL.color_neutral_bg_100,
},
imageContainer: {
min_height: '12rem',
max_height: '12rem',
height: '12rem',
border_top_left_radius: RADIUS.radius_50,
border_top_right_radius: RADIUS.radius_50,
},
content: {
height: '100%',
display: 'flex',
flex_direction: 'column',
justify_content: 'space-between',
padding: SPACINGS.spacing_150,
},
titleContainer: {
margin_bottom: SPACINGS.spacing_150,
},
title: {
font_weight: FONT_WEIGHT.font_weight_600,
color: COLORS.NEUTRAL.color_neutral_bg_100,
[DeviceBreakpointsType.DESKTOP]: {
font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXPANDED,
},
[DeviceBreakpointsType.TABLET]: {
font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXPANDED,
},
[DeviceBreakpointsType.MOBILE]: {
font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXPANDED,
},
},
descriptionContainer: {
margin_bottom: SPACINGS.spacing_150,
},
description: {
font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXPANDED,
font_weight: FONT_WEIGHT.font_weight_400,
color: COLORS.NEUTRAL.color_neutral_bg_100,
text_align: TEXT_ALIGN.left,
},
linkContainer: {
justify_content: TEXT_ALIGN.left,
},
},
};
//# sourceMappingURL=styles.js.map