"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: 'accent',
        size: 'm',
        focused: 'true'
    },
    variations: {
        /**
         * Размер контрола.
         */ size: {
            s: (0, _emotion.css)`
                ${_emotion.radioboxTokens.margin}: 0;
                ${_emotion.radioboxTokens.triggerPadding}: 0.0625rem 0;
                ${_emotion.radioboxTokens.triggerSize}: 1rem;
                ${_emotion.radioboxTokens.triggerBorderRadius}: 1.125rem;
                ${_emotion.radioboxTokens.triggerBorderWidth}: 0.125rem;
                ${_emotion.radioboxTokens.ellipseSize}: 0.5rem;
                ${_emotion.radioboxTokens.contentTopOffset}: 0;
                ${_emotion.radioboxTokens.contentLeftOffset}: 0.5rem;
                ${_emotion.radioboxTokens.descriptionMarginTop}: 0.125rem;
                ${_emotion.radioboxTokens.labelFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_emotion.radioboxTokens.labelFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_emotion.radioboxTokens.labelFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.radioboxTokens.labelFontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_emotion.radioboxTokens.labelLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_emotion.radioboxTokens.labelLineHeight}: ${_sdds_serv.bodyS.lineHeight};
                ${_emotion.radioboxTokens.descriptionFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_emotion.radioboxTokens.descriptionFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_emotion.radioboxTokens.descriptionFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_emotion.radioboxTokens.descriptionFontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_emotion.radioboxTokens.descriptionLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_emotion.radioboxTokens.descriptionLineHeight}: ${_sdds_serv.bodyXS.lineHeight};
            `,
            m: (0, _emotion.css)`
                ${_emotion.radioboxTokens.margin}: 0;
                ${_emotion.radioboxTokens.triggerPadding}: 0.0625rem;
                ${_emotion.radioboxTokens.triggerSize}: 1.375rem;
                ${_emotion.radioboxTokens.triggerBorderRadius}: 1.125rem;
                ${_emotion.radioboxTokens.triggerBorderWidth}: 0.125rem;
                ${_emotion.radioboxTokens.ellipseSize}: 0.625rem;
                ${_emotion.radioboxTokens.contentTopOffset}: 0.125rem;
                ${_emotion.radioboxTokens.contentLeftOffset}: 0.625rem;
                ${_emotion.radioboxTokens.descriptionMarginTop}: 0.125rem;
                ${_emotion.radioboxTokens.labelFontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_emotion.radioboxTokens.labelFontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_emotion.radioboxTokens.labelFontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_emotion.radioboxTokens.labelFontWeight}: ${_sdds_serv.bodyM.fontWeight};
                ${_emotion.radioboxTokens.labelLetterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_emotion.radioboxTokens.labelLineHeight}: ${_sdds_serv.bodyM.lineHeight};
                ${_emotion.radioboxTokens.descriptionFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_emotion.radioboxTokens.descriptionFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_emotion.radioboxTokens.descriptionFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.radioboxTokens.descriptionFontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_emotion.radioboxTokens.descriptionLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_emotion.radioboxTokens.descriptionLineHeight}: ${_sdds_serv.bodyS.lineHeight};
            `,
            l: (0, _emotion.css)`
                ${_emotion.radioboxTokens.margin}: 0;
                ${_emotion.radioboxTokens.triggerPadding}: 0.0625rem;
                ${_emotion.radioboxTokens.triggerSize}: 1.375rem;
                ${_emotion.radioboxTokens.triggerBorderRadius}: 1.125rem;
                ${_emotion.radioboxTokens.triggerBorderWidth}: 0.125rem;
                ${_emotion.radioboxTokens.ellipseSize}: 0.625rem;
                ${_emotion.radioboxTokens.contentTopOffset}: 0.0625rem;
                ${_emotion.radioboxTokens.contentLeftOffset}: 0.75rem;
                ${_emotion.radioboxTokens.labelFontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_emotion.radioboxTokens.labelFontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_emotion.radioboxTokens.labelFontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_emotion.radioboxTokens.labelFontWeight}: ${_sdds_serv.bodyL.fontWeight};
                ${_emotion.radioboxTokens.labelLetterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_emotion.radioboxTokens.labelLineHeight}: ${_sdds_serv.bodyL.lineHeight};
                ${_emotion.radioboxTokens.descriptionFontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_emotion.radioboxTokens.descriptionMarginTop}: 0.125rem;
                ${_emotion.radioboxTokens.descriptionFontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_emotion.radioboxTokens.descriptionFontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_emotion.radioboxTokens.descriptionFontWeight}: ${_sdds_serv.bodyM.fontWeight};
                ${_emotion.radioboxTokens.descriptionLetterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_emotion.radioboxTokens.descriptionLineHeight}: ${_sdds_serv.bodyM.lineHeight};
            `
        },
        /**
         * Вид контрола.
         */ view: {
            accent: (0, _emotion.css)`
                ${_emotion.radioboxTokens.fillColor}: ${_sdds_serv.textAccent};
                ${_emotion.radioboxTokens.ellipseColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.radioboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.radioboxTokens.triggerBorderColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBorderCheckedColor}: transparent;
            `,
            // deprecated
            default: (0, _emotion.css)`
                ${_emotion.radioboxTokens.fillColor}: ${_sdds_serv.textPrimary};
                ${_emotion.radioboxTokens.ellipseColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.radioboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.radioboxTokens.triggerBorderColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBorderCheckedColor}: transparent;
            `,
            // deprecated
            secondary: (0, _emotion.css)`
                ${_emotion.radioboxTokens.fillColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.ellipseColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.radioboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.radioboxTokens.triggerBorderColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBorderCheckedColor}: transparent;
            `,
            // deprecated
            tertiary: (0, _emotion.css)`
                ${_emotion.radioboxTokens.fillColor}: ${_sdds_serv.textTertiary};
                ${_emotion.radioboxTokens.ellipseColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.radioboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.radioboxTokens.triggerBorderColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBorderCheckedColor}: transparent;
            `,
            // deprecated
            paragraph: (0, _emotion.css)`
                ${_emotion.radioboxTokens.fillColor}: ${_sdds_serv.textParagraph};
                ${_emotion.radioboxTokens.ellipseColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.radioboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.radioboxTokens.triggerBorderColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBorderCheckedColor}: transparent;
            `,
            // deprecated
            positive: (0, _emotion.css)`
                ${_emotion.radioboxTokens.fillColor}: ${_sdds_serv.textPositive};
                ${_emotion.radioboxTokens.ellipseColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.radioboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.radioboxTokens.triggerBorderColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBorderCheckedColor}: transparent;
            `,
            // deprecated
            warning: (0, _emotion.css)`
                ${_emotion.radioboxTokens.fillColor}: ${_sdds_serv.textWarning};
                ${_emotion.radioboxTokens.ellipseColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.radioboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.radioboxTokens.triggerBorderColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBorderCheckedColor}: transparent;
            `,
            // deprecated
            negative: (0, _emotion.css)`
                ${_emotion.radioboxTokens.fillColor}: ${_sdds_serv.textNegative};
                ${_emotion.radioboxTokens.ellipseColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.radioboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.radioboxTokens.triggerBorderColor}: ${_sdds_serv.textSecondary};
                ${_emotion.radioboxTokens.triggerBorderCheckedColor}: transparent;
            `
        },
        disabled: {
            true: (0, _emotion.css)`
                ${_emotion.radioboxTokens.disabledOpacity}: 0.4;
            `
        },
        focused: {
            true: (0, _emotion.css)`
                ${_emotion.radioboxTokens.focusColor}: ${_sdds_serv.textAccent};
            `
        }
    }
};
