@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
54 lines • 2.59 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFooterStyles = void 0;
const borders_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/borders");
const spacings_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/spacings");
const wireframe_1 = require("../../../../../designSystem/kubitWireframe/utils/wireframe");
const breakpoints_1 = require("../../../../../types/breakpoints/breakpoints");
const variants_1 = require("../../../../kubit/components/lineSeparator/variants");
const variants_2 = require("./variants");
const getFooterStyles = (COLORS) => {
return {
[variants_2.FooterVariants.DEFAULT]: {
rootContainer: {
background_color: COLORS.NEUTRAL.color_neutral_bg_250,
flex_direction: 'row',
border_top_left_radius: borders_1.RADIUS.radius_00,
border_top_right_radius: borders_1.RADIUS.radius_00,
border_bottom_left_radius: borders_1.RADIUS.radius_150,
border_bottom_right_radius: borders_1.RADIUS.radius_150,
padding: `${spacings_1.SPACINGS.spacing_400} ${spacings_1.SPACINGS.spacing_450}`,
...(0, wireframe_1.transformShadow)(borders_1.RADIUS.radius_150),
...(0, wireframe_1.shadowAfterStyles)(`${borders_1.RADIUS.radius_150} ${borders_1.RADIUS.radius_00} ${borders_1.RADIUS.radius_150} ${borders_1.RADIUS.radius_150}`, COLORS.BRAND.color_brand_bg_50, '2px'),
[breakpoints_1.DeviceBreakpointsType.MOBILE]: {
flex_direction: 'column',
},
},
contentContainer: {
[breakpoints_1.DeviceBreakpointsType.MOBILE]: {
width: '100%',
},
},
lineSeparator: {
variant: variants_1.LineSeparatorLineVariantType.LINE_DEFAULT,
},
},
[variants_2.FooterVariants.EMPTY]: {
rootContainer: {
background_color: 'transparent',
flex_direction: 'row',
[breakpoints_1.DeviceBreakpointsType.MOBILE]: {
flex_direction: 'column',
},
},
contentContainer: {
[breakpoints_1.DeviceBreakpointsType.MOBILE]: {
flex_direction: 'column',
width: '100%',
},
},
},
};
};
exports.getFooterStyles = getFooterStyles;
//# sourceMappingURL=styles.js.map