UNPKG

@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

92 lines 4.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getNavigationCardStyles = void 0; const component_1 = require("../../../../../components/text/types/component"); const borders_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/borders"); const shadow_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/shadow"); const sizes_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/sizes"); const spacings_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/spacings"); const typography_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/typography"); const wireframe_1 = require("../../../../../designSystem/kubitWireframe/utils/wireframe"); const breakpoints_1 = require("../../../../../types/breakpoints/breakpoints"); const variants_1 = require("../../../../kubit/components/text/variants"); const variants_2 = require("./variants"); const getNavigationCardStyles = (COLORS) => { const commonTokens = { container: { width: '100%', position: 'relative', height: 'auto', display: 'flex', flex_direction: 'row', align_items: 'center', justify_content: 'space-between', cursor: 'pointer', background_color: COLORS.NEUTRAL.color_neutral_bg_250, box_shadow: shadow_1.SHADOW.shadow_10, }, contentContainer: { display: 'flex', flex_direction: 'column', width: 'auto', }, rightContentContainer: { display: 'flex', align_items: 'center', justify_content: 'center', width: 'auto', [breakpoints_1.DeviceBreakpointsType.MOBILE]: { justify_content: 'flex-start', }, }, decorativeElementContainer: { height: 'auto', width: 'auto', display: 'flex', align_items: 'center', justify_content: 'center', align_self: 'flex-start', }, }; return { [variants_2.NavigationCardVariantType.PRIMARY]: { ...commonTokens, containerExpandedContent: false, container: { ...commonTokens.container, padding: `${spacings_1.SPACINGS.spacing_400} ${spacings_1.SPACINGS.spacing_300}`, border: `${borders_1.BORDERS.border_50} solid ${COLORS.NEUTRAL.color_neutral_border_50}`, border_radius: borders_1.RADIUS.radius_150, ...(0, wireframe_1.transformShadow)(borders_1.RADIUS.radius_150), ...(0, wireframe_1.shadowAfterStyles)(borders_1.RADIUS.radius_150, COLORS.BRAND.color_brand_bg_50, '3px'), }, icon: { color: COLORS.NEUTRAL.color_neutral_icon_50, width: sizes_1.SIZES.size_250, height: sizes_1.SIZES.size_250, margin_right: spacings_1.SPACINGS.spacing_150, }, title: { font_variant: variants_1.TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_600, color: COLORS.ACCENT.color_accent_default_font_50, component: component_1.TextComponentType.SPAN, }, descriptionContainer: { margin_top: spacings_1.SPACINGS.spacing_250, }, description: { font_variant: variants_1.TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_400, color: COLORS.ACCENT.color_accent_default_font_50, }, arrowIcon: { color: COLORS.NEUTRAL.color_neutral_icon_50, width: sizes_1.SIZES.size_250, height: sizes_1.SIZES.size_250, }, }, }; }; exports.getNavigationCardStyles = getNavigationCardStyles; //# sourceMappingURL=styles.js.map