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

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

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

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

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

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

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

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