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

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

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

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

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

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

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

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