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

157 lines 5.89 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NAVIGATION_CARD_STYLES = void 0; const size_1 = require("../../../../components/iconHighlighted/types/size"); const component_1 = require("../../../../components/text/types/component"); const breakpoints_1 = require("../../../../types/breakpoints/breakpoints"); const colors_1 = require("../../foundations/colors"); const shadow_1 = require("../../foundations/shadow"); const sizes_1 = require("../../foundations/sizes"); const spacings_1 = require("../../foundations/spacings"); const typography_1 = require("../../foundations/typography"); const variants_1 = require("../text/variants"); const variants_2 = require("../variants"); const variants_3 = require("./variants"); 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_1.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: 'center', }, }; const PRIMARY_TOKENS = { ...commonTokens, containerExpandedContent: false, container: { ...commonTokens.container, padding: `${spacings_1.SPACINGS.spacing_400} ${spacings_1.SPACINGS.spacing_300}`, }, decorativeElementContainer: { ...commonTokens.decorativeElementContainer, align_self: 'flex-start', }, icon: { color: colors_1.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_1.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_1.COLORS.ACCENT.color_accent_default_font_50, }, arrowIcon: { color: colors_1.COLORS.ACCENT.color_accent_default_font_100, width: sizes_1.SIZES.size_250, height: sizes_1.SIZES.size_250, }, }; exports.NAVIGATION_CARD_STYLES = { [variants_3.NavigationCardVariantType.PRIMARY_ICON]: { ...PRIMARY_TOKENS, }, [variants_3.NavigationCardVariantType.PRIMARY_ICON_BASIC]: { ...PRIMARY_TOKENS, decorativeElementContainer: { ...PRIMARY_TOKENS.decorativeElementContainer, align_self: 'center', }, title: { ...PRIMARY_TOKENS.title, font_weight: typography_1.FONT_WEIGHT.font_weight_400, }, }, [variants_3.NavigationCardVariantType.PRIMARY_ICON_HIGHLIGHTED]: { ...commonTokens, containerExpandedContent: true, container: { ...commonTokens.container, padding: spacings_1.SPACINGS.spacing_400, }, rightContentContainer: { ...commonTokens.rightContentContainer, [breakpoints_1.DeviceBreakpointsType.MOBILE]: { ...commonTokens.rightContentContainer[breakpoints_1.DeviceBreakpointsType.MOBILE], margin_top: spacings_1.SPACINGS.spacing_300, }, }, title: { font_variant: variants_1.TextVariantType.HEADING_H3_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_600, color: colors_1.COLORS.NEUTRAL.color_neutral_font_50, component: component_1.TextComponentType.H3, }, 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_1.COLORS.ACCENT.color_accent_default_font_50, }, iconHighlighted: { variant: 'SQUARE', size: size_1.IconHighlightedSizeType.EXTRA_SMALL, color: colors_1.COLORS.NEUTRAL.color_neutral_icon_50, margin_right: spacings_1.SPACINGS.spacing_300, backgroundColor: colors_1.COLORS.SECONDARY.color_secondary_bg_100, }, tagContainer: { margin_top: spacings_1.SPACINGS.spacing_250, }, tag: { variant: variants_2.TagVariantType.SQUARE, option: variants_2.TagOptionType.INFORMATIVE, }, arrowIcon: { color: colors_1.COLORS.ACCENT.color_accent_default_icon_100, width: sizes_1.SIZES.size_200, height: sizes_1.SIZES.size_200, }, arrowIconText: { font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_400, color: colors_1.COLORS.ACCENT.color_accent_default_font_100, }, }, }; //# sourceMappingURL=styles.js.map