@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
129 lines • 4.61 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MESSAGE_STYLES = void 0;
const breakpoints_1 = require("../../../../types/breakpoints/breakpoints");
const borders_1 = require("../../foundations/borders");
const colors_1 = require("../../foundations/colors");
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 commonProps = {
container: {
display: 'flex',
flex_direction: 'row',
align_items: 'flex-start',
justify_content: 'flex-start',
position: 'relative',
border_style: 'solid',
border_radius: borders_1.RADIUS.radius_00,
border_width: borders_1.BORDERS.border_50,
padding: spacings_1.SPACINGS.spacing_300,
gap: spacings_1.SPACINGS.spacing_150,
},
headerContainer: {
display: 'flex',
flex_direction: 'column',
align_items: 'flex-start',
gap: spacings_1.SPACINGS.spacing_300,
margin_right: spacings_1.SPACINGS.spacing_450,
},
headerContainerLargeMessage: {
[breakpoints_1.DeviceBreakpointsType.MOBILE]: {
flex_direction: 'column',
},
},
title: {
font_variant: variants_1.TextVariantType.PARAGRAPH_MEDIUM_EXTENDED,
color: colors_1.COLORS.NEUTRAL.color_neutral_font_50,
font_weight: typography_1.FONT_WEIGHT.font_weight_500,
word_break: 'break-word',
},
contentContainerLargeMessage: {
[breakpoints_1.DeviceBreakpointsType.MOBILE]: {
margin_left: spacings_1.SPACINGS.spacing_0,
},
},
description: {
font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXTENDED,
color: colors_1.COLORS.NEUTRAL.color_neutral_font_150,
font_weight: typography_1.FONT_WEIGHT.font_weight_400,
word_break: 'break-word',
},
infoIcon: {
width: sizes_1.SIZES.size_250,
height: sizes_1.SIZES.size_250,
},
closeIcon: {
width: sizes_1.SIZES.size_250,
height: sizes_1.SIZES.size_250,
},
closeIconContainer: {
gap: spacings_1.SPACINGS.spacing_150,
right: spacings_1.SPACINGS.spacing_300,
position: 'absolute',
top: spacings_1.SPACINGS.spacing_300,
},
buttonSectionContainer: {
display: 'flex',
flex_direction: 'column',
width: '100%',
align_items: 'flex-start',
},
linksContainer: {
display: 'flex',
gap: spacings_1.SPACINGS.spacing_150,
},
};
exports.MESSAGE_STYLES = {
[variants_2.MessageVariantType.INFORMATIVE]: {
...commonProps,
container: {
...commonProps.container,
border_color: colors_1.COLORS.FEEDBACK.color_feedbackInfo_border_100,
background_color: colors_1.COLORS.FEEDBACK.color_feedback_info_bg_50,
},
infoIcon: {
...commonProps.infoIcon,
color: colors_1.COLORS.FEEDBACK.color_feedbackInfo_border_100,
},
},
[variants_2.MessageVariantType.WARNING]: {
...commonProps,
container: {
...commonProps.container,
border_color: colors_1.COLORS.FEEDBACK.color_feedbackWarning_border_100,
background_color: colors_1.COLORS.FEEDBACK.color_feedback_warning_bg_50,
},
infoIcon: {
...commonProps.infoIcon,
color: colors_1.COLORS.FEEDBACK.color_feedback_warning_icon_50,
},
},
[variants_2.MessageVariantType.SUCCESS]: {
...commonProps,
container: {
...commonProps.container,
border_color: colors_1.COLORS.FEEDBACK.color_feedbackSuccess_border_100,
background_color: colors_1.COLORS.FEEDBACK.color_feedback_success_bg_50,
},
infoIcon: {
...commonProps.infoIcon,
color: colors_1.COLORS.FEEDBACK.color_feedbackSuccess_icon_100,
},
},
[variants_2.MessageVariantType.ERROR]: {
...commonProps,
container: {
...commonProps.container,
border_color: colors_1.COLORS.FEEDBACK.color_feedbackError_border_100,
background_color: colors_1.COLORS.FEEDBACK.color_feedback_error_bg_50,
},
infoIcon: {
...commonProps.infoIcon,
color: colors_1.COLORS.FEEDBACK.color_feedbackError_icon_100,
},
},
};
//# sourceMappingURL=styles.js.map