@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
77 lines • 2.87 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CONFIRMATION_MESSAGE_STYLES = void 0;
const colors_1 = require("../../foundations/colors");
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 commonProps = {
titleContainer: {
margin_bottom: spacings_1.SPACINGS.spacing_150,
gap: spacings_1.SPACINGS.spacing_400,
},
title: {
font_variant: variants_1.TextVariantType.HEADING_H2_EXTENDED,
font_weight: typography_1.FONT_WEIGHT.font_weight_500,
text_align: typography_1.TEXT_ALIGN.center,
color: colors_1.COLORS.NEUTRAL.color_neutral_font_50,
},
descriptionContainer: {
gap: spacings_1.SPACINGS.spacing_150,
},
description: {
font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXTENDED,
font_weight: typography_1.FONT_WEIGHT.font_weight_400,
text_align: typography_1.TEXT_ALIGN.center,
color: colors_1.COLORS.NEUTRAL.color_neutral_font_50,
},
secondaryDescription: {
font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXTENDED,
font_weight: typography_1.FONT_WEIGHT.font_weight_400,
text_align: typography_1.TEXT_ALIGN.center,
color: colors_1.COLORS.NEUTRAL.color_neutral_font_50,
},
content: {
margin: `${spacings_1.SPACINGS.spacing_400} ${spacings_1.SPACINGS.spacing_0}`,
},
};
exports.CONFIRMATION_MESSAGE_STYLES = {
[variants_3.ConfirmationMessageVariantType.DEFAULT]: {
[variants_3.ConfirmationMessageStateType.SUCCESS]: {
...commonProps,
icon: {
width: '4rem',
height: '4rem',
color: colors_1.COLORS.FEEDBACK.color_feedbackSuccess_icon_100,
},
footer: {
variant: variants_2.FooterVariants.DEFAULT,
},
},
[variants_3.ConfirmationMessageStateType.ERROR]: {
...commonProps,
icon: {
width: '4rem',
height: '4rem',
color: colors_1.COLORS.FEEDBACK.color_feedbackError_icon_100,
},
footer: {
variant: variants_2.FooterVariants.DEFAULT,
},
},
[variants_3.ConfirmationMessageStateType.WARNING]: {
...commonProps,
icon: {
width: '4rem',
height: '4rem',
color: colors_1.COLORS.FEEDBACK.color_feedback_warning_icon_50,
},
footer: {
variant: variants_2.FooterVariants.DEFAULT,
},
},
},
};
//# sourceMappingURL=styles.js.map