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

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

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

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

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

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

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

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

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

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

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

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

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

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

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