"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "config", {
    enumerable: true,
    get: function() {
        return config;
    }
});
const _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
const _sdds_serv = require("@salutejs/sdds-themes/tokens/sdds_serv");
const config = {
    defaults: {
        view: 'default',
        size: 'l',
        shape: 'default'
    },
    variations: {
        view: {
            default: (0, _styledcomponents.css)`
                ${_styledcomponents.codeFieldTokens.caretColor}: ${_sdds_serv.surfaceAccent};

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

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

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

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

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

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

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

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

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

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

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

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

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