"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 config = {
    defaults: {
        view: 'default',
        size: 'm',
        closeIconType: 'default'
    },
    variations: {
        view: {
            default: (0, _emotion.css)`
                ${_emotion.toastTokens.color}: var(--text-primary);
                ${_emotion.toastTokens.background}: var(--surface-solid-card-brightness);

                ${_emotion.toastTokens.closeIconColor}: var(--text-secondary);
                ${_emotion.toastTokens.closeIconColorOnHover}: var(--text-secondary);
            `,
            positive: (0, _emotion.css)`
                ${_emotion.toastTokens.color}: var(--text-primary);
                ${_emotion.toastTokens.background}: var(--surface-solid-card-brightness);
                ${_emotion.toastTokens.contentLeftColor}: var(--text-positive);

                ${_emotion.toastTokens.closeIconColor}: var(--text-secondary);
                ${_emotion.toastTokens.closeIconColorOnHover}: var(--text-secondary);
            `,
            negative: (0, _emotion.css)`
                ${_emotion.toastTokens.color}: var(--text-primary);
                ${_emotion.toastTokens.background}: var(--surface-solid-card-brightness);
                ${_emotion.toastTokens.contentLeftColor}: var(--text-negative);

                ${_emotion.toastTokens.closeIconColor}: var(--text-secondary);
                ${_emotion.toastTokens.closeIconColorOnHover}: var(--text-secondary);
            `,
            /**
             * @deprecated
             * светлый и темный фон регулировать через `view` компонента `ViewContainer`
             */ dark: (0, _emotion.css)`
                ${_emotion.toastTokens.color}: var(--on-dark-text-primary);
                ${_emotion.toastTokens.background}: var(--on-dark-surface-solid-primary-brightness);

                ${_emotion.toastTokens.closeIconColor}: var(--on-dark-text-secondary);
                ${_emotion.toastTokens.closeIconColorOnHover}: var(--on-dark-text-secondary);
            `,
            /**
             * @deprecated
             * светлый и темный фон регулировать через `view` компонента `ViewContainer`
             */ light: (0, _emotion.css)`
                ${_emotion.toastTokens.color}: var(--on-light-text-primary);
                ${_emotion.toastTokens.background}: var(--on-light-surface-solid-primary-brightness);

                ${_emotion.toastTokens.closeIconColor}: var(--on-light-text-secondary);
                ${_emotion.toastTokens.closeIconColorOnHover}: var(--on-light-text-secondary);
            `
        },
        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}: var(--plasma-typo-body-xs-font-family);
                ${_emotion.toastTokens.fontSize}: var(--plasma-typo-body-xs-font-size);
                ${_emotion.toastTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);
                ${_emotion.toastTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);
                ${_emotion.toastTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
                ${_emotion.toastTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);

                ${_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;
            `
        }
    }
};
