"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: 'default',
        size: 'm',
        closeIconType: 'default'
    },
    variations: {
        view: {
            default: (0, _emotion.css)`
                ${_emotion.toastTokens.color}: ${_sdds_serv.textPrimary};
                ${_emotion.toastTokens.background}: ${_sdds_serv.surfaceSolidCardBrightness};

                ${_emotion.toastTokens.closeIconColor}: ${_sdds_serv.textSecondary};
                ${_emotion.toastTokens.closeIconColorOnHover}: ${_sdds_serv.textSecondary};
            `,
            positive: (0, _emotion.css)`
                ${_emotion.toastTokens.color}: ${_sdds_serv.textPrimary};
                ${_emotion.toastTokens.background}: ${_sdds_serv.surfaceSolidCardBrightness};
                ${_emotion.toastTokens.contentLeftColor}: ${_sdds_serv.textPositive};

                ${_emotion.toastTokens.closeIconColor}: ${_sdds_serv.textSecondary};
                ${_emotion.toastTokens.closeIconColorOnHover}: ${_sdds_serv.textSecondary};
            `,
            negative: (0, _emotion.css)`
                ${_emotion.toastTokens.color}: ${_sdds_serv.textPrimary};
                ${_emotion.toastTokens.background}: ${_sdds_serv.surfaceSolidCardBrightness};
                ${_emotion.toastTokens.contentLeftColor}: ${_sdds_serv.textNegative};

                ${_emotion.toastTokens.closeIconColor}: ${_sdds_serv.textSecondary};
                ${_emotion.toastTokens.closeIconColorOnHover}: ${_sdds_serv.textSecondary};
            `,
            /**
             * @deprecated
             * светлый и темный фон регулировать через `view` компонента `ViewContainer`
             */ dark: (0, _emotion.css)`
                ${_emotion.toastTokens.color}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.toastTokens.background}: ${_sdds_serv.onDarkSurfaceSolidPrimaryBrightness};

                ${_emotion.toastTokens.closeIconColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.toastTokens.closeIconColorOnHover}: ${_sdds_serv.onDarkTextSecondary};
            `,
            /**
             * @deprecated
             * светлый и темный фон регулировать через `view` компонента `ViewContainer`
             */ light: (0, _emotion.css)`
                ${_emotion.toastTokens.color}: ${_sdds_serv.onLightTextPrimary};
                ${_emotion.toastTokens.background}: ${_sdds_serv.onLightSurfaceSolidPrimaryBrightness};

                ${_emotion.toastTokens.closeIconColor}: ${_sdds_serv.onLightTextSecondary};
                ${_emotion.toastTokens.closeIconColorOnHover}: ${_sdds_serv.onLightTextSecondary};
            `
        },
        size: {
            m: (0, _emotion.css)`
                ${_emotion.toastTokens.borderRadius}: 0.75rem;
                ${_emotion.toastTokens.maxWidth}: calc(100vw - 5rem);
                ${_emotion.toastTokens.padding}: 0.5625rem 0.75rem;
                ${_emotion.toastTokens.fontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_emotion.toastTokens.fontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_emotion.toastTokens.fontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_emotion.toastTokens.fontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_emotion.toastTokens.letterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_emotion.toastTokens.lineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_emotion.toastTokens.contentLeftMargin}: -0.0625rem 0.375rem -0.0625rem -0.125rem;
                ${_emotion.toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.5rem;
            `
        },
        closeIconType: {
            default: (0, _emotion.css)`
                ${_emotion.toastTokens.closeIconButtonSize}: 1rem;
                ${_emotion.toastTokens.closeIconSize}: 1.5rem;
            `
        },
        pilled: {
            true: (0, _emotion.css)`
                ${_emotion.toastTokens.pilledBorderRadius}: 1.5rem;

                ${_emotion.toastTokens.contentLeftMargin}: -0.0625rem 0.375rem -0.0625rem -0.25rem;
                ${_emotion.toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.375rem;
            `
        }
    }
};
