@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
66 lines • 2.48 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.INPUT_COUNTER_STYLES = void 0;
const inputTheme_1 = require("../../../../components/input/types/inputTheme");
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("../textCount/variants");
const variants_3 = require("./variants");
const commonProps = {
inputVariant: variants_3.InputCounterVariant.DEFAULT,
textCountVariant: variants_2.TextCountVariantType.DEFAULT,
textCountTextVariant: variants_1.TextVariantType.PARAGRAPH_CAPTION_EXTENDED,
textCountLeftWeight: typography_1.FONT_WEIGHT.font_weight_500,
textCountLeftColor: colors_1.COLORS.FEEDBACK.color_feedbackSuccess_font_50,
textCountRightWeight: typography_1.FONT_WEIGHT.font_weight_300,
textCountRightColor: colors_1.COLORS.NEUTRAL.color_neutral_font_100,
textCounterContainer: {
margin_right: spacings_1.SPACINGS.spacing_0,
},
};
const errorCommonProps = {
textCountLeftColor: colors_1.COLORS.FEEDBACK.color_feedbackError_font_50,
};
exports.INPUT_COUNTER_STYLES = {
[variants_3.InputCounterVariant.DEFAULT]: {
[inputTheme_1.InputState.EMPTY]: {
...commonProps,
inputIcon: {
color: colors_1.COLORS.ACCENT.color_accent_default_icon_100,
},
},
[inputTheme_1.InputState.ACTIVE]: {
...commonProps,
},
[inputTheme_1.InputState.FILLED]: {
...commonProps,
inputIcon: {
color: colors_1.COLORS.ACCENT.color_accent_default_icon_100,
},
},
[inputTheme_1.InputState.ERROR_EMPTY]: {
...commonProps,
...errorCommonProps,
},
[inputTheme_1.InputState.ERROR_FILLED]: {
...commonProps,
...errorCommonProps,
},
[inputTheme_1.InputState.ERROR_ACTIVE]: {
...commonProps,
...errorCommonProps,
},
[inputTheme_1.InputState.DISABLED_EMPTY]: {
...commonProps,
},
[inputTheme_1.InputState.DISABLED_FILLED]: {
...commonProps,
},
[inputTheme_1.InputState.DISABLED_FILLED_WITH_INFO]: {
...commonProps,
},
},
};
//# sourceMappingURL=styles.js.map