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

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

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

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

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

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

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