@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
113 lines • 4.83 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.INPUT_DIGIT_SEQUENCE_STYLES = void 0;
const state_1 = require("../../../../components/inputDigitSequence/types/state");
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("../button/variants");
const variants_2 = require("../text/variants");
const variants_3 = require("./variants");
const commonProps = {
rootContainer: {
row_gap: spacings_1.SPACINGS.spacing_150,
},
titleTooltipContainer: {
display: 'flex',
flex_direction: 'row',
align_items: 'center',
gap: spacings_1.SPACINGS.spacing_100,
},
title: {
font_variant: variants_2.TextVariantType.PARAGRAPH_MEDIUM_EXPANDED,
font_weight: typography_1.FONT_WEIGHT.font_weight_600,
color: colors_1.COLORS.NEUTRAL.color_neutral_font_50,
},
inputDigitsContainer: {
column_gap: spacings_1.SPACINGS.spacing_150,
},
inputDigitContainer: {
opacity: '1',
background_color: colors_1.COLORS.NEUTRAL.color_neutral_bg_250,
padding: `${spacings_1.SPACINGS.spacing_150} ${spacings_1.SPACINGS.spacing_0}`,
width: spacings_1.SPACINGS.spacing_100_percent,
max_width: spacings_1.SPACINGS.spacing_100_percent,
min_width: spacings_1.SPACINGS.spacing_100_percent,
height: spacings_1.SPACINGS.spacing_500,
border_width: borders_1.BORDERS.border_50,
border_color: colors_1.COLORS.NEUTRAL.color_neutral_border_50,
},
inputDigitContainerError: {
border_color: colors_1.COLORS.FEEDBACK.color_feedbackError_border_100,
},
inputDigitContainerfocus: {
border_width: borders_1.BORDERS.border_100,
},
inputDigitAndNumberContainer: {
width: spacings_1.SPACINGS.spacing_100_percent,
row_gap: spacings_1.SPACINGS.spacing_150,
},
inputDigitText: {
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_400,
color: colors_1.COLORS.NEUTRAL.color_neutral_font_50,
},
inputNumber: {
font_variant: variants_2.TextVariantType.PARAGRAPH_CAPTION_EXPANDED,
font_weight: typography_1.FONT_WEIGHT.font_weight_400,
color: colors_1.COLORS.NEUTRAL.color_neutral_font_100,
},
inputDigitTextTypePassword: {
font_family: typography_1.FONT_FAMILY.font_family_digit_password_small_square,
},
errorContainer: {
gap: spacings_1.SPACINGS.spacing_100,
},
errorText: {
font_variant: variants_2.TextVariantType.PARAGRAPH_CAPTION_EXPANDED,
font_weight: typography_1.FONT_WEIGHT.font_weight_400,
color: colors_1.COLORS.FEEDBACK.color_feedbackError_font_50,
},
errorIcon: {
width: sizes_1.SIZES.size_150,
height: sizes_1.SIZES.size_150,
color: colors_1.COLORS.FEEDBACK.color_feedbackError_icon_100,
},
helpText: {
font_variant: variants_2.TextVariantType.PARAGRAPH_CAPTION_EXPANDED,
font_weight: typography_1.FONT_WEIGHT.font_weight_300,
color: colors_1.COLORS.NEUTRAL.color_neutral_font_100,
},
actionButtonSize: variants_1.ButtonSizeType.SMALL,
};
exports.INPUT_DIGIT_SEQUENCE_STYLES = {
[variants_3.InputDigitSequenceVariant.DEFAULT]: {
[state_1.InputDigitSequenceStateType.DEFAULT]: {
...commonProps,
},
[state_1.InputDigitSequenceStateType.DISABLED]: {
...commonProps,
inputDigitContainer: {
...commonProps.inputDigitContainer,
background_color: colors_1.COLORS.DISABLED.color_accentDisabled_bg_150,
border_color: colors_1.COLORS.DISABLED.color_accentDisabled_border_50,
},
},
[state_1.InputDigitSequenceStateType.BLOCKED_BY_SYSTEM]: {
...commonProps,
inputDigitContainer: {
...commonProps.inputDigitContainer,
background_color: colors_1.COLORS.DISABLED.color_accentDisabled_bg_150,
border_color: colors_1.COLORS.DISABLED.color_accentDisabled_border_50,
},
inputDigitTextTypePassword: {
font_family: typography_1.FONT_FAMILY.font_family_digit_password_large_square,
},
},
},
};
//# sourceMappingURL=styles.js.map