"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.checkboxTokens.margin}: 0;
                ${_emotion.checkboxTokens.triggerPadding}: 0.0625rem;
                ${_emotion.checkboxTokens.triggerSize}: 0.875rem;
                ${_emotion.checkboxTokens.triggerBorderRadius}: 0.25rem;
                ${_emotion.checkboxTokens.triggerBorderWidth}: 0.125rem;
                ${_emotion.checkboxTokens.contentTopOffset}: 0;
                ${_emotion.checkboxTokens.contentLeftOffset}: 0.5rem;
                ${_emotion.checkboxTokens.descriptionMarginTop}: 0.125rem;
                ${_emotion.checkboxTokens.labelFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_emotion.checkboxTokens.labelFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_emotion.checkboxTokens.labelFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.checkboxTokens.labelFontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_emotion.checkboxTokens.labelLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_emotion.checkboxTokens.labelLineHeight}: ${_sdds_serv.bodyS.lineHeight};
                ${_emotion.checkboxTokens.descriptionFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_emotion.checkboxTokens.descriptionFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_emotion.checkboxTokens.descriptionFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_emotion.checkboxTokens.descriptionFontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_emotion.checkboxTokens.descriptionLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_emotion.checkboxTokens.descriptionLineHeight}: ${_sdds_serv.bodyXS.lineHeight};
            `,
            m: (0, _emotion.css)`
                ${_emotion.checkboxTokens.margin}: 0;
                ${_emotion.checkboxTokens.triggerPadding}: 0.125rem;
                ${_emotion.checkboxTokens.triggerSize}: 1.25rem;
                ${_emotion.checkboxTokens.triggerBorderRadius}: 0.375rem;
                ${_emotion.checkboxTokens.triggerBorderWidth}: 0.125rem;
                ${_emotion.checkboxTokens.contentTopOffset}: 0.125rem;
                ${_emotion.checkboxTokens.contentLeftOffset}: 0.75rem;
                ${_emotion.checkboxTokens.descriptionMarginTop}: 0.125rem;
                ${_emotion.checkboxTokens.labelFontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_emotion.checkboxTokens.labelFontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_emotion.checkboxTokens.labelFontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_emotion.checkboxTokens.labelFontWeight}: ${_sdds_serv.bodyM.fontWeight};
                ${_emotion.checkboxTokens.labelLetterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_emotion.checkboxTokens.labelLineHeight}: ${_sdds_serv.bodyM.lineHeight};
                ${_emotion.checkboxTokens.descriptionFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_emotion.checkboxTokens.descriptionFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_emotion.checkboxTokens.descriptionFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.checkboxTokens.descriptionFontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_emotion.checkboxTokens.descriptionLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_emotion.checkboxTokens.descriptionLineHeight}: ${_sdds_serv.bodyS.lineHeight};
            `,
            l: (0, _emotion.css)`
                ${_emotion.checkboxTokens.margin}: 0;
                ${_emotion.checkboxTokens.triggerPadding}: 0.125rem;
                ${_emotion.checkboxTokens.triggerSize}: 1.25rem;
                ${_emotion.checkboxTokens.triggerBorderRadius}: 0.375rem;
                ${_emotion.checkboxTokens.triggerBorderWidth}: 0.125rem;
                ${_emotion.checkboxTokens.contentTopOffset}: 0.0625rem;
                ${_emotion.checkboxTokens.contentLeftOffset}: 0.75rem;
                ${_emotion.checkboxTokens.labelFontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_emotion.checkboxTokens.labelFontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_emotion.checkboxTokens.labelFontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_emotion.checkboxTokens.labelFontWeight}: ${_sdds_serv.bodyL.fontWeight};
                ${_emotion.checkboxTokens.labelLetterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_emotion.checkboxTokens.labelLineHeight}: ${_sdds_serv.bodyL.lineHeight};
                ${_emotion.checkboxTokens.descriptionMarginTop}: 0.125rem;
                ${_emotion.checkboxTokens.descriptionFontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_emotion.checkboxTokens.descriptionFontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_emotion.checkboxTokens.descriptionFontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_emotion.checkboxTokens.descriptionFontWeight}: ${_sdds_serv.bodyM.fontWeight};
                ${_emotion.checkboxTokens.descriptionLetterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_emotion.checkboxTokens.descriptionLineHeight}: ${_sdds_serv.bodyM.lineHeight};
            `
        },
        view: {
            accent: (0, _emotion.css)`
                ${_emotion.checkboxTokens.fillColor}: ${_sdds_serv.textAccent};
                ${_emotion.checkboxTokens.iconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.checkboxTokens.labelColor}: ${_sdds_serv.textPrimary};
                ${_emotion.checkboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.checkboxTokens.triggerBorderColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.triggerBorderCheckedColor}: transparent;
            `,
            // deprecated
            default: (0, _emotion.css)`
                ${_emotion.checkboxTokens.fillColor}: ${_sdds_serv.textPrimary};
                ${_emotion.checkboxTokens.iconColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.checkboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.checkboxTokens.triggerBorderColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.triggerBorderCheckedColor}: transparent;
            `,
            // deprecated
            secondary: (0, _emotion.css)`
                ${_emotion.checkboxTokens.fillColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.iconColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.checkboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.checkboxTokens.triggerBorderColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.triggerBorderCheckedColor}: transparent;
            `,
            // deprecated
            tertiary: (0, _emotion.css)`
                ${_emotion.checkboxTokens.fillColor}: ${_sdds_serv.textTertiary};
                ${_emotion.checkboxTokens.iconColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.checkboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.checkboxTokens.triggerBorderColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.triggerBorderCheckedColor}: transparent;
            `,
            // deprecated
            paragraph: (0, _emotion.css)`
                ${_emotion.checkboxTokens.fillColor}: ${_sdds_serv.textParagraph};
                ${_emotion.checkboxTokens.iconColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.checkboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.checkboxTokens.triggerBorderColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.triggerBorderCheckedColor}: transparent;
            `,
            // deprecated
            positive: (0, _emotion.css)`
                ${_emotion.checkboxTokens.fillColor}: ${_sdds_serv.textPositive};
                ${_emotion.checkboxTokens.iconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.checkboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.checkboxTokens.triggerBorderColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.triggerBorderCheckedColor}: transparent;
            `,
            // deprecated
            warning: (0, _emotion.css)`
                ${_emotion.checkboxTokens.fillColor}: ${_sdds_serv.textWarning};
                ${_emotion.checkboxTokens.iconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.checkboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.checkboxTokens.triggerBorderColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.triggerBorderCheckedColor}: transparent;
            `,
            negative: (0, _emotion.css)`
                ${_emotion.checkboxTokens.fillColor}: ${_sdds_serv.textNegative};
                ${_emotion.checkboxTokens.iconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.checkboxTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.checkboxTokens.triggerBackgroundColor}: transparent;
                ${_emotion.checkboxTokens.triggerBorderColor}: ${_sdds_serv.textNegative};
                ${_emotion.checkboxTokens.triggerBorderCheckedColor}: transparent;
            `
        },
        disabled: {
            true: (0, _emotion.css)`
                ${_emotion.checkboxTokens.disabledOpacity}: 0.4;
            `
        },
        focused: {
            true: (0, _emotion.css)`
                ${_emotion.checkboxTokens.focusColor}: ${_sdds_serv.textAccent};
            `
        }
    }
};
