"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 config = {
    defaults: {
        view: 'default',
        size: 'l',
        shape: 'default'
    },
    variations: {
        view: {
            default: (0, _emotion.css)`
                ${_emotion.codeFieldTokens.caretColor}: var(--surface-accent);

                ${_emotion.codeFieldTokens.captionColor}: var(--text-secondary);
                ${_emotion.codeFieldTokens.captionColorError}: var(--text-negative);

                ${_emotion.codeFieldTokens.codeColor}: var(--text-primary);
                ${_emotion.codeFieldTokens.codeColorError}: var(--text-negative);
                ${_emotion.codeFieldTokens.borderColorFocus}: var(--outline-accent);

                ${_emotion.codeFieldTokens.backgroundColor}: var(--surface-transparent-primary);
                ${_emotion.codeFieldTokens.backgroundColorHover}: var(--surface-transparent-primary-hover);
                ${_emotion.codeFieldTokens.backgroundColorFocus}: var(--surface-transparent-secondary);
                ${_emotion.codeFieldTokens.backgroundErrorColor}: var(--surface-transparent-negative);
            `
        },
        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}: var(--plasma-typo-body-l-font-family);
                ${_emotion.codeFieldTokens.fontSize}: var(--plasma-typo-body-l-font-size);
                ${_emotion.codeFieldTokens.fontStyle}: var(--plasma-typo-body-l-font-style);
                ${_emotion.codeFieldTokens.fontWeight}: var(--plasma-typo-body-l-bold-font-weight);
                ${_emotion.codeFieldTokens.letterSpacing}: var(--plasma-typo-body-l-letter-spacing);
                ${_emotion.codeFieldTokens.lineHeight}: var(--plasma-typo-body-l-line-height);

                ${_emotion.codeFieldTokens.captionFontFamily}: var(--plasma-typo-body-s-font-family);
                ${_emotion.codeFieldTokens.captionFontSize}: var(--plasma-typo-body-s-font-size);
                ${_emotion.codeFieldTokens.captionFontStyle}: var(--plasma-typo-body-s-font-style);
                ${_emotion.codeFieldTokens.captionFontWeight}: var(--plasma-typo-body-s-font-weight);
                ${_emotion.codeFieldTokens.captionLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
                ${_emotion.codeFieldTokens.captionLineHeight}: var(--plasma-typo-body-s-line-height);

                ${_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}: var(--plasma-typo-body-m-font-family);
                ${_emotion.codeFieldTokens.fontSize}: var(--plasma-typo-body-m-font-size);
                ${_emotion.codeFieldTokens.fontStyle}: var(--plasma-typo-body-m-font-style);
                ${_emotion.codeFieldTokens.fontWeight}: var(--plasma-typo-body-m-bold-font-weight);
                ${_emotion.codeFieldTokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);
                ${_emotion.codeFieldTokens.lineHeight}: var(--plasma-typo-body-m-line-height);

                ${_emotion.codeFieldTokens.captionFontFamily}: var(--plasma-typo-body-xs-font-family);
                ${_emotion.codeFieldTokens.captionFontSize}: var(--plasma-typo-body-xs-font-size);
                ${_emotion.codeFieldTokens.captionFontStyle}: var(--plasma-typo-body-xs-font-style);
                ${_emotion.codeFieldTokens.captionFontWeight}: var(--plasma-typo-body-xs-font-weight);
                ${_emotion.codeFieldTokens.captionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
                ${_emotion.codeFieldTokens.captionLineHeight}: var(--plasma-typo-body-xs-line-height);

                ${_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;
            `
        }
    }
};
