"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 _Badgeconfigcommon = require("./Badge.config.common");
const config = {
    defaults: {
        view: 'default',
        size: 'm'
    },
    variations: {
        view: {
            default: (0, _emotion.css)`
                ${_emotion.badgeTokens.color}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.badgeTokens.background}: ${_sdds_serv.surfaceSolidDefault};

                ${_emotion.badgeTokens.colorTransparent}: ${_sdds_serv.textPrimary};
                ${_emotion.badgeTokens.backgroundTransparent}: ${_sdds_serv.surfaceTransparentSecondary};

                ${_emotion.badgeTokens.colorClear}: ${_sdds_serv.textPrimary};
            `,
            accent: (0, _emotion.css)`
                ${_emotion.badgeTokens.color}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.badgeTokens.background}: ${_sdds_serv.surfaceAccent};

                ${_emotion.badgeTokens.colorTransparent}: ${_sdds_serv.textAccent};
                ${_emotion.badgeTokens.backgroundTransparent}: ${_sdds_serv.surfaceTransparentAccent};

                ${_emotion.badgeTokens.colorClear}: ${_sdds_serv.textAccent};
            `,
            positive: (0, _emotion.css)`
                ${_emotion.badgeTokens.color}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.badgeTokens.background}: ${_sdds_serv.surfacePositive};

                ${_emotion.badgeTokens.colorTransparent}: ${_sdds_serv.textPositive};
                ${_emotion.badgeTokens.backgroundTransparent}: ${_sdds_serv.surfaceTransparentPositive};

                ${_emotion.badgeTokens.colorClear}: ${_sdds_serv.textPositive};
            `,
            warning: (0, _emotion.css)`
                ${_emotion.badgeTokens.color}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.badgeTokens.background}: ${_sdds_serv.surfaceWarning};

                ${_emotion.badgeTokens.colorTransparent}: ${_sdds_serv.textWarning};
                ${_emotion.badgeTokens.backgroundTransparent}: ${_sdds_serv.surfaceTransparentWarning};

                ${_emotion.badgeTokens.colorClear}: ${_sdds_serv.textWarning};
            `,
            negative: (0, _emotion.css)`
                ${_emotion.badgeTokens.color}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.badgeTokens.background}: ${_sdds_serv.surfaceNegative};

                ${_emotion.badgeTokens.colorTransparent}: ${_sdds_serv.textNegative};
                ${_emotion.badgeTokens.backgroundTransparent}: ${_sdds_serv.surfaceTransparentNegative};

                ${_emotion.badgeTokens.colorClear}: ${_sdds_serv.textNegative};
            `,
            dark: (0, _emotion.css)`
                ${_emotion.badgeTokens.color}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.badgeTokens.background}: ${_sdds_serv.onLightSurfaceSolidDefault};

                ${_emotion.badgeTokens.colorTransparent}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.badgeTokens.backgroundTransparent}: ${_sdds_serv.onLightSurfaceTransparentDeep};

                ${_emotion.badgeTokens.colorClear}: ${_sdds_serv.onLightTextPrimary};
            `,
            light: (0, _emotion.css)`
                ${_emotion.badgeTokens.color}: ${_sdds_serv.onLightTextPrimary};
                ${_emotion.badgeTokens.background}: ${_sdds_serv.onDarkSurfaceSolidDefault};

                ${_emotion.badgeTokens.colorTransparent}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.badgeTokens.backgroundTransparent}: ${_sdds_serv.onDarkSurfaceTransparentCard};

                ${_emotion.badgeTokens.colorClear}: ${_sdds_serv.onDarkTextPrimary};
            `
        },
        size: {
            l: (0, _emotion.css)`
                ${_Badgeconfigcommon.sizeL}
            `,
            m: (0, _emotion.css)`
                ${_Badgeconfigcommon.sizeM}
            `,
            s: (0, _emotion.css)`
                ${_Badgeconfigcommon.sizeS}
            `,
            xs: (0, _emotion.css)`
                ${_Badgeconfigcommon.sizeXS}
            `
        },
        pilled: {
            true: (0, _emotion.css)`
                ${_Badgeconfigcommon.pilled}
            `
        },
        transparent: {
            true: (0, _emotion.css)``
        },
        clear: {
            true: (0, _emotion.css)`
                ${_emotion.badgeTokens.backgroundClear}: ${_sdds_serv.surfaceClear};
            `
        }
    }
};
