"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "config", {
    enumerable: true,
    get: function() {
        return config;
    }
});
const _emotion = require("@salutejs/plasma-new-hope/emotion");
const _sdds_serv = require("@salutejs/sdds-themes/tokens/sdds_serv");
const config = {
    defaults: {
        view: 'default',
        size: 'l'
    },
    variations: {
        view: {
            default: (0, _emotion.css)`
                ${_emotion.codeInputTokens.captionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.codeInputTokens.captionColorError}: ${_sdds_serv.textNegative};

                ${_emotion.codeInputTokens.codeColor}: ${_sdds_serv.textPrimary};
                ${_emotion.codeInputTokens.codeColorError}: ${_sdds_serv.textNegative};
                ${_emotion.codeInputTokens.borderColorFocus}: ${_sdds_serv.outlineAccent};
            `
        },
        size: {
            l: (0, _emotion.css)`
                ${_emotion.codeInputTokens.captionGap}: 2.5rem;
                ${_emotion.codeInputTokens.codeItemsGap}: 0.75rem;

                ${_emotion.codeInputTokens.separatorWidth}: 0.75rem;

                ${_emotion.codeInputTokens.fontFamily}: ${_sdds_serv.dsplL.fontFamily};
                ${_emotion.codeInputTokens.fontStyle}: ${_sdds_serv.dsplL.fontStyle};
                ${_emotion.codeInputTokens.fontWeight}: ${_sdds_serv.dsplLBold.fontWeight};
                ${_emotion.codeInputTokens.letterSpacing}: ${_sdds_serv.dsplL.letterSpacing};

                ${_emotion.codeInputTokens.largeFontSize}: 8rem;
                ${_emotion.codeInputTokens.largeLineHeight}: 8rem;

                ${_emotion.codeInputTokens.mediumFontSize}: 7rem;
                ${_emotion.codeInputTokens.mediumLineHeight}: 7rem;

                ${_emotion.codeInputTokens.smallFontSize}: 5.5rem;
                ${_emotion.codeInputTokens.smallLineHeight}: 5.75rem;

                ${_emotion.codeInputTokens.captionFontFamily}: ${_sdds_serv.h3.fontFamily};
                ${_emotion.codeInputTokens.captionFontSize}: ${_sdds_serv.h3.fontSize};
                ${_emotion.codeInputTokens.captionFontStyle}: ${_sdds_serv.h3.fontStyle};
                ${_emotion.codeInputTokens.captionFontWeight}: ${_sdds_serv.h3.fontWeight};
                ${_emotion.codeInputTokens.captionLetterSpacing}: ${_sdds_serv.h3.letterSpacing};
                ${_emotion.codeInputTokens.captionLineHeight}: ${_sdds_serv.h3.lineHeight};

                ${_emotion.codeInputTokens.largeCodeItemWidth}: 5rem;
                ${_emotion.codeInputTokens.largeCodeItemHeight}: 8rem;

                ${_emotion.codeInputTokens.mediumCodeItemWidth}: 4.5rem;
                ${_emotion.codeInputTokens.mediumCodeItemHeight}: 7rem;

                ${_emotion.codeInputTokens.smallCodeItemWidth}: 3.5rem;
                ${_emotion.codeInputTokens.smallCodeItemHeight}: 5.75rem;

                ${_emotion.codeInputTokens.codeItemCircleBorderWidth}: 0.125rem;
                ${_emotion.codeInputTokens.codeItemCircleSize}: 1.5rem;
            `,
            m: (0, _emotion.css)`
                ${_emotion.codeInputTokens.captionGap}: 1.75rem;
                ${_emotion.codeInputTokens.codeItemsGap}: 0.5rem;

                ${_emotion.codeInputTokens.separatorWidth}: 0.75rem;

                ${_emotion.codeInputTokens.fontFamily}: ${_sdds_serv.dsplM.fontFamily};
                ${_emotion.codeInputTokens.fontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_emotion.codeInputTokens.fontWeight}: ${_sdds_serv.bodyMBold.fontWeight};
                ${_emotion.codeInputTokens.letterSpacing}: ${_sdds_serv.bodyM.letterSpacing};

                ${_emotion.codeInputTokens.largeFontSize}: 5.5rem;
                ${_emotion.codeInputTokens.largeLineHeight}: 5.75rem;

                ${_emotion.codeInputTokens.mediumFontSize}: 4.5rem;
                ${_emotion.codeInputTokens.mediumLineHeight}: 4.75rem;

                ${_emotion.codeInputTokens.smallFontSize}: 3.5rem;
                ${_emotion.codeInputTokens.smallLineHeight}: 3.75rem;

                ${_emotion.codeInputTokens.captionFontFamily}: ${_sdds_serv.h4.fontFamily};
                ${_emotion.codeInputTokens.captionFontSize}: ${_sdds_serv.h4.fontSize};
                ${_emotion.codeInputTokens.captionFontStyle}: ${_sdds_serv.h4.fontStyle};
                ${_emotion.codeInputTokens.captionFontWeight}: ${_sdds_serv.h4.fontWeight};
                ${_emotion.codeInputTokens.captionLetterSpacing}: ${_sdds_serv.h4.letterSpacing};
                ${_emotion.codeInputTokens.captionLineHeight}: ${_sdds_serv.h4.lineHeight};

                ${_emotion.codeInputTokens.largeCodeItemWidth}: 3.5rem;
                ${_emotion.codeInputTokens.largeCodeItemHeight}: 5.75rem;

                ${_emotion.codeInputTokens.mediumCodeItemWidth}: 3rem;
                ${_emotion.codeInputTokens.mediumCodeItemHeight}: 4.75rem;

                ${_emotion.codeInputTokens.smallCodeItemWidth}: 2.25rem;
                ${_emotion.codeInputTokens.smallCodeItemHeight}: 3.75rem;

                ${_emotion.codeInputTokens.codeItemCircleBorderWidth}: 0.094rem;
                ${_emotion.codeInputTokens.codeItemCircleSize}: 1rem;
            `,
            s: (0, _emotion.css)`
                ${_emotion.codeInputTokens.captionGap}: 1.5rem;
                ${_emotion.codeInputTokens.codeItemsGap}: 0.25rem;

                ${_emotion.codeInputTokens.separatorWidth}: 0.5rem;

                ${_emotion.codeInputTokens.fontFamily}: ${_sdds_serv.dsplS.fontFamily};
                ${_emotion.codeInputTokens.fontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.codeInputTokens.fontWeight}: ${_sdds_serv.bodySBold.fontWeight};
                ${_emotion.codeInputTokens.letterSpacing}: ${_sdds_serv.bodyS.letterSpacing};

                ${_emotion.codeInputTokens.largeFontSize}: 4rem;
                ${_emotion.codeInputTokens.largeLineHeight}: 4.25rem;

                ${_emotion.codeInputTokens.mediumFontSize}: 3rem;
                ${_emotion.codeInputTokens.mediumLineHeight}: 3.25rem;

                ${_emotion.codeInputTokens.smallFontSize}: 2.5rem;
                ${_emotion.codeInputTokens.smallLineHeight}: 2.75rem;

                ${_emotion.codeInputTokens.captionFontFamily}: ${_sdds_serv.h5.fontFamily};
                ${_emotion.codeInputTokens.captionFontSize}: ${_sdds_serv.h5.fontSize};
                ${_emotion.codeInputTokens.captionFontStyle}: ${_sdds_serv.h5.fontStyle};
                ${_emotion.codeInputTokens.captionFontWeight}: ${_sdds_serv.h5.fontWeight};
                ${_emotion.codeInputTokens.captionLetterSpacing}: ${_sdds_serv.h5.letterSpacing};
                ${_emotion.codeInputTokens.captionLineHeight}: ${_sdds_serv.h5.lineHeight};

                ${_emotion.codeInputTokens.largeCodeItemWidth}: 2.5rem;
                ${_emotion.codeInputTokens.largeCodeItemHeight}: 4.25rem;

                ${_emotion.codeInputTokens.mediumCodeItemWidth}: 2rem;
                ${_emotion.codeInputTokens.mediumCodeItemHeight}: 3.25rem;

                ${_emotion.codeInputTokens.smallCodeItemWidth}: 1.625rem;
                ${_emotion.codeInputTokens.smallCodeItemHeight}: 2.75rem;

                ${_emotion.codeInputTokens.codeItemCircleBorderWidth}: 0.063rem;
                ${_emotion.codeInputTokens.codeItemCircleSize}: 0.75rem;
            `
        },
        disabled: {
            true: (0, _emotion.css)`
                ${_emotion.codeInputTokens.disabledOpacity}: 0.4;
            `
        }
    }
};
