@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
69 lines • 2.78 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.VALIDATION_STATUS_STYLES = void 0;
// Foundations
const validationStatusTheme_1 = require("../../../../components/validationStatus/types/validationStatusTheme");
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: 'column',
width: '100%',
height: 'auto',
margin_top: spacings_1.SPACINGS.spacing_50,
gap: spacings_1.SPACINGS.spacing_300,
},
row: {
display: 'flex',
width: '100%',
align_items: 'flex-start',
gap: spacings_1.SPACINGS.spacing_100,
},
};
exports.VALIDATION_STATUS_STYLES = {
[variants_2.ValidationStatusVariants.DEFAULT]: {
...commonProps,
[validationStatusTheme_1.ValidationStatusState.DEFAULT]: {
icon: {
color: colors_1.COLORS.NEUTRAL.color_neutral_icon_50,
width: sizes_1.SIZES.size_250,
height: sizes_1.SIZES.size_250,
},
explainText: {
font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXTENDED,
color: colors_1.COLORS.NEUTRAL.color_neutral_font_50,
font_weight: typography_1.FONT_WEIGHT.font_weight_400,
},
},
[validationStatusTheme_1.ValidationStatusState.SUCCESS]: {
icon: {
color: colors_1.COLORS.FEEDBACK.color_feedback_success_icon_50,
width: sizes_1.SIZES.size_250,
height: sizes_1.SIZES.size_250,
},
explainText: {
font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXTENDED,
color: colors_1.COLORS.NEUTRAL.color_neutral_font_50,
font_weight: typography_1.FONT_WEIGHT.font_weight_400,
},
},
[validationStatusTheme_1.ValidationStatusState.ERROR]: {
icon: {
color: colors_1.COLORS.FEEDBACK.color_feedbackError_icon_100,
width: sizes_1.SIZES.size_250,
height: sizes_1.SIZES.size_250,
},
explainText: {
font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXTENDED,
color: colors_1.COLORS.FEEDBACK.color_feedbackError_font_50,
font_weight: typography_1.FONT_WEIGHT.font_weight_400,
},
},
},
};
//# sourceMappingURL=styles.js.map