@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
119 lines • 4.68 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BREADCRUMB_STYLES = void 0;
const state_1 = require("../../../../components/breadcrumbs/types/state");
const decoration_1 = require("../../../../components/text/types/decoration");
const breakpoints_1 = require("../../../../types/breakpoints/breakpoints");
// constants
const colors_1 = require("../../foundations/colors");
const sizes_1 = require("../../foundations/sizes");
const typography_1 = require("../../foundations/typography");
const variants_1 = require("./variants");
const commonProps = {
link: {
font_size: typography_1.PARAGRAPH.SMALL[breakpoints_1.DeviceBreakpointsType.DESKTOP].font_size,
line_height: typography_1.PARAGRAPH.SMALL[breakpoints_1.DeviceBreakpointsType.DESKTOP].line_height,
text_align: typography_1.TEXT_ALIGN.left,
font_weight: typography_1.FONT_WEIGHT.font_weight_500,
},
iconDivider: {
width: sizes_1.SIZES.size_150,
height: sizes_1.SIZES.size_150,
},
};
const commonPropsDefault = {
...commonProps,
iconDivider: {
...commonProps.iconDivider,
color: colors_1.COLORS.ACCENT.color_accent_default_icon_50,
},
};
const commonPropsAlternate = {
...commonProps,
iconDivider: {
...commonProps.iconDivider,
color: colors_1.COLORS.ACCENT.color_accent_default_icon_150,
},
};
const lastOneCrumbCommonProps = {
font_size: typography_1.PARAGRAPH.SMALL[breakpoints_1.DeviceBreakpointsType.DESKTOP].font_size,
line_height: typography_1.PARAGRAPH.SMALL[breakpoints_1.DeviceBreakpointsType.DESKTOP].line_height,
font_weight: typography_1.FONT_WEIGHT.font_weight_500,
};
exports.BREADCRUMB_STYLES = {
[variants_1.BreadcrumbsVariantType.DEFAULT]: {
[state_1.BreadcrumbsStateType.DEFAULT]: {
...commonPropsDefault,
link: {
...commonPropsDefault.link,
color: colors_1.COLORS.ACCENT.color_accent_default_font_50,
text_decoration: decoration_1.TextDecorationType.UNDERLINE,
},
lastOneCrumb: {
...lastOneCrumbCommonProps,
color: colors_1.COLORS.ACCENT.color_accent_default_font_50,
},
},
[state_1.BreadcrumbsStateType.HOVER]: {
...commonPropsDefault,
link: {
...commonPropsDefault.link,
color: colors_1.COLORS.ACCENT.color_accent_default_font_50,
},
lastOneCrumb: {
...lastOneCrumbCommonProps,
color: colors_1.COLORS.ACCENT.color_accent_default_font_50,
},
},
[state_1.BreadcrumbsStateType.ACTIVE]: {
...commonPropsDefault,
link: {
...commonPropsDefault.link,
color: colors_1.COLORS.DISABLED.color_accentDisabled_font_50,
font_weight: typography_1.FONT_WEIGHT.font_weight_400,
},
lastOneCrumb: {
...lastOneCrumbCommonProps,
color: colors_1.COLORS.ACCENT.color_accent_default_font_50,
},
},
},
[variants_1.BreadcrumbsVariantType.ALTERNATIVE]: {
[state_1.BreadcrumbsStateType.DEFAULT]: {
...commonPropsAlternate,
link: {
...commonPropsAlternate.link,
color: colors_1.COLORS.ACCENT.color_accent_default_font_150,
text_decoration: decoration_1.TextDecorationType.UNDERLINE,
},
lastOneCrumb: {
...lastOneCrumbCommonProps,
color: colors_1.COLORS.ACCENT.color_accent_default_font_150,
},
},
[state_1.BreadcrumbsStateType.HOVER]: {
...commonPropsAlternate,
link: {
...commonPropsAlternate.link,
color: colors_1.COLORS.ACCENT.color_accent_default_font_150,
},
lastOneCrumb: {
...lastOneCrumbCommonProps,
color: colors_1.COLORS.ACCENT.color_accent_default_font_150,
},
},
[state_1.BreadcrumbsStateType.ACTIVE]: {
...commonPropsAlternate,
link: {
...commonPropsAlternate.link,
color: colors_1.COLORS.ACCENT.color_accent_default_font_150,
font_weight: typography_1.FONT_WEIGHT.font_weight_400,
},
lastOneCrumb: {
...lastOneCrumbCommonProps,
color: colors_1.COLORS.ACCENT.color_accent_default_font_150,
},
},
},
};
//# sourceMappingURL=styles.js.map