"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',
        focused: 'true',
        size: 'm'
    },
    variations: {
        view: {
            default: (0, _emotion.css)`
                ${_emotion.chipTokens.color}: var(--inverse-text-primary);
                ${_emotion.chipTokens.background}: var(--surface-solid-default);
                ${_emotion.chipTokens.colorHover}: var(--inverse-text-primary);
                ${_emotion.chipTokens.backgroundHover}: var(--surface-solid-default-hover);
                ${_emotion.chipTokens.colorActive}: var(--inverse-text-primary);
                ${_emotion.chipTokens.backgroundActive}: var(--surface-solid-default-active);
                ${_emotion.chipTokens.backgroundReadOnly}: var(--surface-solid-default);
                ${_emotion.chipTokens.colorReadOnly}: var(--inverse-text-primary);
                ${_emotion.chipTokens.backgroundReadOnlyHover}: var(--surface-solid-default);
                ${_emotion.chipTokens.colorReadOnlyHover}: var(--inverse-text-primary);
                ${_emotion.chipTokens.closeIconColor}: var(--inverse-text-secondary);
                ${_emotion.chipTokens.closeIconColorHover}: var(--inverse-text-secondary-hover);
                ${_emotion.chipTokens.leftContentColor}: var(--inverse-text-primary);
            `,
            secondary: (0, _emotion.css)`
                ${_emotion.chipTokens.color}: var(--text-primary);
                ${_emotion.chipTokens.background}: var(--surface-transparent-secondary);
                ${_emotion.chipTokens.colorHover}: var(--text-primary);
                ${_emotion.chipTokens.backgroundHover}: var(--surface-transparent-secondary-hover);
                ${_emotion.chipTokens.colorActive}: var(--text-primary);
                ${_emotion.chipTokens.backgroundActive}: var(--surface-transparent-secondary-active);
                ${_emotion.chipTokens.backgroundReadOnly}: var(--surface-transparent-secondary);
                ${_emotion.chipTokens.colorReadOnly}: var(--text-primary);
                ${_emotion.chipTokens.backgroundReadOnlyHover}: var(--surface-transparent-secondary);
                ${_emotion.chipTokens.colorReadOnlyHover}: var(--text-primary);
                ${_emotion.chipTokens.closeIconColor}: var(--text-secondary);
                ${_emotion.chipTokens.closeIconColorHover}: var(--text-secondary-hover);
                ${_emotion.chipTokens.leftContentColor}: var(--text-primary);
            `,
            accent: (0, _emotion.css)`
                ${_emotion.chipTokens.color}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.background}: var(--surface-accent);
                ${_emotion.chipTokens.colorHover}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.backgroundHover}: var(--surface-accent-hover);
                ${_emotion.chipTokens.colorActive}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.backgroundActive}: var(--surface-accent-active);
                ${_emotion.chipTokens.backgroundReadOnly}: var(--surface-accent);
                ${_emotion.chipTokens.colorReadOnly}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.backgroundReadOnlyHover}: var(--surface-accent);
                ${_emotion.chipTokens.colorReadOnlyHover}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.closeIconColor}: var(--on-dark-text-secondary);
                ${_emotion.chipTokens.closeIconColorHover}: var(--on-dark-text-secondary-hover);
                ${_emotion.chipTokens.leftContentColor}: var(--on-dark-text-primary);
            `,
            positive: (0, _emotion.css)`
                ${_emotion.chipTokens.color}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.background}: var(--surface-positive);
                ${_emotion.chipTokens.colorHover}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.backgroundHover}: var(--surface-positive-hover);
                ${_emotion.chipTokens.colorActive}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.backgroundActive}: var(--surface-positive-active);
                ${_emotion.chipTokens.backgroundReadOnly}: var(--surface-positive);
                ${_emotion.chipTokens.colorReadOnly}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.backgroundReadOnlyHover}: var(--surface-positive);
                ${_emotion.chipTokens.colorReadOnlyHover}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.closeIconColor}: var(--on-dark-text-secondary);
                ${_emotion.chipTokens.closeIconColorHover}: var(--on-dark-text-secondary-hover);
                ${_emotion.chipTokens.leftContentColor}: var(--on-dark-text-primary);
            `,
            warning: (0, _emotion.css)`
                ${_emotion.chipTokens.color}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.background}: var(--surface-warning);
                ${_emotion.chipTokens.colorHover}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.backgroundHover}: var(--surface-warning-hover);
                ${_emotion.chipTokens.colorActive}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.backgroundActive}: var(--surface-warning-active);
                ${_emotion.chipTokens.backgroundReadOnly}: var(--surface-warning);
                ${_emotion.chipTokens.colorReadOnly}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.backgroundReadOnlyHover}: var(--surface-warning);
                ${_emotion.chipTokens.colorReadOnlyHover}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.closeIconColor}: var(--on-dark-text-secondary);
                ${_emotion.chipTokens.closeIconColorHover}: var(--on-dark-text-secondary-hover);
                ${_emotion.chipTokens.leftContentColor}: var(--on-dark-text-primary);
            `,
            negative: (0, _emotion.css)`
                ${_emotion.chipTokens.color}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.background}: var(--surface-negative);
                ${_emotion.chipTokens.colorHover}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.backgroundHover}: var(--surface-negative-hover);
                ${_emotion.chipTokens.colorActive}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.backgroundActive}: var(--surface-negative-active);
                ${_emotion.chipTokens.backgroundReadOnly}: var(--surface-negative);
                ${_emotion.chipTokens.colorReadOnly}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.backgroundReadOnlyHover}: var(--surface-negative);
                ${_emotion.chipTokens.colorReadOnlyHover}: var(--on-dark-text-primary);
                ${_emotion.chipTokens.closeIconColor}: var(--on-dark-text-secondary);
                ${_emotion.chipTokens.closeIconColorHover}: var(--on-dark-text-secondary-hover);
                ${_emotion.chipTokens.leftContentColor}: var(--on-dark-text-primary);
            `
        },
        size: {
            l: (0, _emotion.css)`
                ${_emotion.chipTokens.borderRadius}: 0.75rem;
                ${_emotion.chipTokens.pilledBorderRadius}: 1.5rem;
                ${_emotion.chipTokens.width}: auto;
                ${_emotion.chipTokens.height}: 3rem;
                ${_emotion.chipTokens.padding}: 0 1rem;

                ${_emotion.chipTokens.fontFamily}: var(--plasma-typo-body-l-font-family);
                ${_emotion.chipTokens.fontSize}: var(--plasma-typo-body-l-font-size);
                ${_emotion.chipTokens.fontStyle}: var(--plasma-typo-body-l-font-style);
                ${_emotion.chipTokens.fontWeight}: var(--plasma-typo-body-l-font-weight);
                ${_emotion.chipTokens.letterSpacing}: var(--plasma-typo-body-l-letter-spacing);
                ${_emotion.chipTokens.lineHeight}: var(--plasma-typo-body-l-line-height);

                ${_emotion.chipTokens.leftContentMarginLeft}: -0.125rem;
                ${_emotion.chipTokens.leftContentMarginRight}: 0.5rem;
                ${_emotion.chipTokens.rightContentMarginLeft}: 0.5rem;
                ${_emotion.chipTokens.rightContentMarginRight}: -0.125rem;
                ${_emotion.chipTokens.clearContentMarginLeft}: 0.625rem;
                ${_emotion.chipTokens.clearContentMarginRight}: -0.25rem;
                ${_emotion.chipTokens.closeIconSize}: 1.5rem;
            `,
            m: (0, _emotion.css)`
                ${_emotion.chipTokens.borderRadius}: 0.625rem;
                ${_emotion.chipTokens.pilledBorderRadius}: 1.25rem;
                ${_emotion.chipTokens.width}: auto;
                ${_emotion.chipTokens.height}: 2.5rem;
                ${_emotion.chipTokens.padding}: 0 0.875rem;

                ${_emotion.chipTokens.fontFamily}: var(--plasma-typo-body-m-font-family);
                ${_emotion.chipTokens.fontSize}: var(--plasma-typo-body-m-font-size);
                ${_emotion.chipTokens.fontStyle}: var(--plasma-typo-body-m-font-style);
                ${_emotion.chipTokens.fontWeight}: var(--plasma-typo-body-m-font-weight);
                ${_emotion.chipTokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);
                ${_emotion.chipTokens.lineHeight}: var(--plasma-typo-body-m-line-height);

                ${_emotion.chipTokens.leftContentMarginLeft}: -0.125rem;
                ${_emotion.chipTokens.leftContentMarginRight}: 0.375rem;
                ${_emotion.chipTokens.rightContentMarginLeft}: 0.375rem;
                ${_emotion.chipTokens.rightContentMarginRight}: -0.125rem;
                ${_emotion.chipTokens.clearContentMarginLeft}: 0.5rem;
                ${_emotion.chipTokens.clearContentMarginRight}: -0.25rem;
                ${_emotion.chipTokens.closeIconSize}: 1.25rem;
            `,
            s: (0, _emotion.css)`
                ${_emotion.chipTokens.borderRadius}: 0.5rem;
                ${_emotion.chipTokens.pilledBorderRadius}: 1rem;
                ${_emotion.chipTokens.width}: auto;
                ${_emotion.chipTokens.height}: 2rem;
                ${_emotion.chipTokens.padding}: 0 0.875rem;

                ${_emotion.chipTokens.fontFamily}: var(--plasma-typo-body-s-font-family);
                ${_emotion.chipTokens.fontSize}: var(--plasma-typo-body-s-font-size);
                ${_emotion.chipTokens.fontStyle}: var(--plasma-typo-body-s-font-style);
                ${_emotion.chipTokens.fontWeight}: var(--plasma-typo-body-s-font-weight);
                ${_emotion.chipTokens.letterSpacing}: var(--plasma-typo-body-s-letter-spacing);
                ${_emotion.chipTokens.lineHeight}: var(--plasma-typo-body-s-line-height);

                ${_emotion.chipTokens.leftContentMarginLeft}: -0.125rem;
                ${_emotion.chipTokens.leftContentMarginRight}: 0.25rem;
                ${_emotion.chipTokens.rightContentMarginLeft}: 0.25rem;
                ${_emotion.chipTokens.rightContentMarginRight}: -0.125rem;
                ${_emotion.chipTokens.clearContentMarginLeft}: 0.375rem;
                ${_emotion.chipTokens.clearContentMarginRight}: -0.25rem;
                ${_emotion.chipTokens.closeIconSize}: 1rem;
            `,
            xs: (0, _emotion.css)`
                ${_emotion.chipTokens.borderRadius}: 0.375rem;
                ${_emotion.chipTokens.pilledBorderRadius}: 0.75rem;
                ${_emotion.chipTokens.width}: auto;
                ${_emotion.chipTokens.height}: 1.5rem;
                ${_emotion.chipTokens.padding}: 0 0.625rem;

                ${_emotion.chipTokens.fontFamily}: var(--plasma-typo-body-xs-font-family);
                ${_emotion.chipTokens.fontSize}: var(--plasma-typo-body-xs-font-size);
                ${_emotion.chipTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);
                ${_emotion.chipTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);
                ${_emotion.chipTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
                ${_emotion.chipTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);

                ${_emotion.chipTokens.leftContentMarginLeft}: -0.125rem;
                ${_emotion.chipTokens.leftContentMarginRight}: 0.25rem;
                ${_emotion.chipTokens.rightContentMarginLeft}: 0.25rem;
                ${_emotion.chipTokens.rightContentMarginRight}: -0.125rem;
                ${_emotion.chipTokens.clearContentMarginLeft}: 0.25rem;
                ${_emotion.chipTokens.clearContentMarginRight}: -0.25rem;
                ${_emotion.chipTokens.closeIconSize}: 0.75rem;
            `,
            xxs: (0, _emotion.css)`
                ${_emotion.chipTokens.borderRadius}: 0.375rem;
                ${_emotion.chipTokens.pilledBorderRadius}: 0.625rem;
                ${_emotion.chipTokens.width}: auto;
                ${_emotion.chipTokens.height}: 1.25rem;
                ${_emotion.chipTokens.padding}: 0 0.5rem;

                ${_emotion.chipTokens.fontFamily}: var(--plasma-typo-body-xxs-font-family);
                ${_emotion.chipTokens.fontSize}: var(--plasma-typo-body-xxs-font-size);
                ${_emotion.chipTokens.fontStyle}: var(--plasma-typo-body-xxs-font-style);
                ${_emotion.chipTokens.fontWeight}: var(--plasma-typo-body-xxs-font-weight);
                ${_emotion.chipTokens.letterSpacing}: var(--plasma-typo-body-xxs-letter-spacing);
                ${_emotion.chipTokens.lineHeight}: var(--plasma-typo-body-xxs-line-height);

                ${_emotion.chipTokens.leftContentMarginLeft}: -0.125rem;
                ${_emotion.chipTokens.leftContentMarginRight}: 0.125rem;
                ${_emotion.chipTokens.rightContentMarginLeft}: 0.125rem;
                ${_emotion.chipTokens.rightContentMarginRight}: -0.125rem;
                ${_emotion.chipTokens.clearContentMarginLeft}: 0.25rem;
                ${_emotion.chipTokens.clearContentMarginRight}: -0.25rem;
                ${_emotion.chipTokens.closeIconSize}: 0.75rem;
            `
        },
        disabled: {
            true: (0, _emotion.css)`
                ${_emotion.chipTokens.disabledOpacity}: 0.4;
            `
        },
        focused: {
            true: (0, _emotion.css)`
                ${_emotion.chipTokens.focusColor}: var(--text-accent);
            `
        },
        pilled: {
            true: (0, _emotion.css)``
        }
    }
};
