"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',
        shape: 'default'
    },
    variations: {
        view: {
            default: (0, _emotion.css)`
                ${_emotion.codeFieldTokens.caretColor}: ${_sdds_serv.surfaceAccent};

                ${_emotion.codeFieldTokens.captionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.codeFieldTokens.captionColorError}: ${_sdds_serv.textNegative};

                ${_emotion.codeFieldTokens.codeColor}: ${_sdds_serv.textPrimary};
                ${_emotion.codeFieldTokens.codeColorError}: ${_sdds_serv.textNegative};
                ${_emotion.codeFieldTokens.borderColorFocus}: ${_sdds_serv.outlineAccent};

                ${_emotion.codeFieldTokens.backgroundColor}: ${_sdds_serv.surfaceTransparentPrimary};
                ${_emotion.codeFieldTokens.backgroundColorHover}: ${_sdds_serv.surfaceTransparentPrimaryHover};
                ${_emotion.codeFieldTokens.backgroundColorFocus}: ${_sdds_serv.surfaceTransparentSecondary};
                ${_emotion.codeFieldTokens.backgroundErrorColor}: ${_sdds_serv.surfaceTransparentNegative};
            `
        },
        size: {
            l: (0, _emotion.css)`
                ${_emotion.codeFieldTokens.captionGap}: 0.875rem;
                ${_emotion.codeFieldTokens.codeItemsGap}: 0.125rem;

                ${_emotion.codeFieldTokens.separatorWidth}: 0.25rem;

                ${_emotion.codeFieldTokens.codeItemWidth}: 2.75rem;
                ${_emotion.codeFieldTokens.codeItemHeight}: 3.5rem;

                ${_emotion.codeFieldTokens.fontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_emotion.codeFieldTokens.fontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_emotion.codeFieldTokens.fontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_emotion.codeFieldTokens.fontWeight}: ${_sdds_serv.bodyLBold.fontWeight};
                ${_emotion.codeFieldTokens.letterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_emotion.codeFieldTokens.lineHeight}: ${_sdds_serv.bodyL.lineHeight};

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

                ${_emotion.codeFieldTokens.borderRadius}: 0.875rem;
                ${_emotion.codeFieldTokens.borderRadiusSegmented}: 0.375rem;
                ${_emotion.codeFieldTokens.segmentedSideBorderRadius}: 0.875rem;
            `,
            m: (0, _emotion.css)`
                ${_emotion.codeFieldTokens.captionGap}: 0.75rem;
                ${_emotion.codeFieldTokens.codeItemsGap}: 0.125rem;

                ${_emotion.codeFieldTokens.separatorWidth}: 0.25rem;

                ${_emotion.codeFieldTokens.codeItemWidth}: 2.375rem;
                ${_emotion.codeFieldTokens.codeItemHeight}: 3rem;

                ${_emotion.codeFieldTokens.fontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_emotion.codeFieldTokens.fontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_emotion.codeFieldTokens.fontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_emotion.codeFieldTokens.fontWeight}: ${_sdds_serv.bodyMBold.fontWeight};
                ${_emotion.codeFieldTokens.letterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_emotion.codeFieldTokens.lineHeight}: ${_sdds_serv.bodyM.lineHeight};

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

                ${_emotion.codeFieldTokens.borderRadius}: 0.75rem;
                ${_emotion.codeFieldTokens.borderRadiusSegmented}: 0.25rem;
                ${_emotion.codeFieldTokens.segmentedSideBorderRadius}: 0.75rem;
            `
        },
        shape: {
            default: (0, _emotion.css)``,
            segmented: (0, _emotion.css)``
        },
        disabled: {
            true: (0, _emotion.css)`
                ${_emotion.codeFieldTokens.disabledOpacity}: 0.4;
            `
        }
    }
};
