"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.iconButtonTokens.iconButtonColor}: var(--inverse-text-primary);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: var(--surface-solid-default);
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonColorHover}: var(--inverse-text-primary-hover);
                ${_emotion.iconButtonTokens.iconButtonColorActive}: var(--inverse-text-primary-active);
            `,
            accent: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: var(--on-dark-text-primary);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: var(--surface-accent);
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: var(--surface-accent-hover);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: var(--surface-accent-active);
            `,
            secondary: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: var(--text-primary);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: var(--surface-transparent-secondary);
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: var(--surface-transparent-secondary-hover);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: var(--surface-transparent-secondary-active);
            `,
            clear: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: var(--text-primary);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: var(--surface-clear);
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: var(--surface-transparent-secondary-hover);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: var(--surface-transparent-secondary-active);
            `,
            success: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: var(--on-dark-text-primary);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: var(--surface-positive);
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: var(--surface-positive-hover);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: var(--surface-positive-active);
            `,
            warning: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: var(--on-dark-text-primary);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: var(--surface-warning);
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: var(--surface-warning-hover);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: var(--surface-warning-active);
            `,
            critical: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: var(--on-dark-text-primary);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: var(--surface-negative);
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: var(--surface-negative-hover);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: var(--surface-negative-active);
            `,
            dark: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: var(--on-dark-text-primary);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: var(--on-light-surface-transparent-deep);
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonColorHover}: var(--on-dark-text-primary-hover);
                ${_emotion.iconButtonTokens.iconButtonColorActive}: var(--on-dark-text-primary-active);
            `,
            black: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: var(--on-dark-text-primary);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: var(--on-light-surface-solid-default);
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonColorHover}: var(--on-dark-text-primary-hover);
                ${_emotion.iconButtonTokens.iconButtonColorActive}: var(--on-dark-text-primary-active);
            `,
            white: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: var(--on-light-text-primary);
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: var(--on-dark-surface-solid-default);
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonColorHover}: var(--on-light-text-primary-hover);
                ${_emotion.iconButtonTokens.iconButtonColorActive}: var(--on-light-text-primary-active);
            `
        },
        size: {
            xl: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonHeight}: 4rem;
                ${_emotion.iconButtonTokens.iconButtonWidth}: 4rem;
                ${_emotion.iconButtonTokens.iconButtonPadding}: 1.75rem;
                ${_emotion.iconButtonTokens.iconButtonRadius}: 1rem;
                ${_emotion.iconButtonTokens.iconButtonFontFamily}: var(--plasma-typo-body-l-font-family);
                ${_emotion.iconButtonTokens.iconButtonFontSize}: var(--plasma-typo-body-l-font-size);
                ${_emotion.iconButtonTokens.iconButtonFontStyle}: var(--plasma-typo-body-l-font-style);
                ${_emotion.iconButtonTokens.iconButtonFontWeight}: var(--plasma-typo-body-l-bold-font-weight);
                ${_emotion.iconButtonTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);
                ${_emotion.iconButtonTokens.iconButtonLineHeight}: var(--plasma-typo-body-l-line-height);

                ${_emotion.iconButtonTokens.iconButtonSpinnerSize}: 1.5rem;
                ${_emotion.iconButtonTokens.iconButtonSpinnerColor}: inherit;
            `,
            l: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonHeight}: 3.5rem;
                ${_emotion.iconButtonTokens.iconButtonWidth}: 3.5rem;
                ${_emotion.iconButtonTokens.iconButtonPadding}: 1.5rem;
                ${_emotion.iconButtonTokens.iconButtonRadius}: 0.875rem;
                ${_emotion.iconButtonTokens.iconButtonFontFamily}: var(--plasma-typo-body-l-font-family);
                ${_emotion.iconButtonTokens.iconButtonFontSize}: var(--plasma-typo-body-l-font-size);
                ${_emotion.iconButtonTokens.iconButtonFontStyle}: var(--plasma-typo-body-l-font-style);
                ${_emotion.iconButtonTokens.iconButtonFontWeight}: var(--plasma-typo-body-l-bold-font-weight);
                ${_emotion.iconButtonTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);
                ${_emotion.iconButtonTokens.iconButtonLineHeight}: var(--plasma-typo-body-l-line-height);

                ${_emotion.iconButtonTokens.iconButtonSpinnerSize}: 1.375rem;
                ${_emotion.iconButtonTokens.iconButtonSpinnerColor}: inherit;
            `,
            m: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonHeight}: 3rem;
                ${_emotion.iconButtonTokens.iconButtonWidth}: 3rem;
                ${_emotion.iconButtonTokens.iconButtonPadding}: 1.25rem;
                ${_emotion.iconButtonTokens.iconButtonRadius}: 0.75rem;
                ${_emotion.iconButtonTokens.iconButtonFontFamily}: var(--plasma-typo-body-m-font-family);
                ${_emotion.iconButtonTokens.iconButtonFontSize}: var(--plasma-typo-body-m-font-size);
                ${_emotion.iconButtonTokens.iconButtonFontStyle}: var(--plasma-typo-body-m-font-style);
                ${_emotion.iconButtonTokens.iconButtonFontWeight}: var(--plasma-typo-body-m-bold-font-weight);
                ${_emotion.iconButtonTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
                ${_emotion.iconButtonTokens.iconButtonLineHeight}: var(--plasma-typo-body-m-line-height);

                ${_emotion.iconButtonTokens.iconButtonSpinnerSize}: 1.375rem;
                ${_emotion.iconButtonTokens.iconButtonSpinnerColor}: inherit;
            `,
            s: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonHeight}: 2.5rem;
                ${_emotion.iconButtonTokens.iconButtonWidth}: 2.5rem;
                ${_emotion.iconButtonTokens.iconButtonPadding}: 1rem;
                ${_emotion.iconButtonTokens.iconButtonRadius}: 0.625rem;
                ${_emotion.iconButtonTokens.iconButtonFontFamily}: var(--plasma-typo-body-s-font-family);
                ${_emotion.iconButtonTokens.iconButtonFontSize}: var(--plasma-typo-body-s-font-size);
                ${_emotion.iconButtonTokens.iconButtonFontStyle}: var(--plasma-typo-body-s-font-style);
                ${_emotion.iconButtonTokens.iconButtonFontWeight}: var(--plasma-typo-body-s-bold-font-weight);
                ${_emotion.iconButtonTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
                ${_emotion.iconButtonTokens.iconButtonLineHeight}: var(--plasma-typo-body-s-line-height);

                ${_emotion.iconButtonTokens.iconButtonSpinnerSize}: 1.375rem;
                ${_emotion.iconButtonTokens.iconButtonSpinnerColor}: inherit;
            `,
            xs: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonHeight}: 2rem;
                ${_emotion.iconButtonTokens.iconButtonWidth}: 2rem;
                ${_emotion.iconButtonTokens.iconButtonPadding}: 0.75rem;
                ${_emotion.iconButtonTokens.iconButtonRadius}: 0.5rem;
                ${_emotion.iconButtonTokens.iconButtonFontFamily}: var(--plasma-typo-body-xs-font-family);
                ${_emotion.iconButtonTokens.iconButtonFontSize}: var(--plasma-typo-body-xs-font-size);
                ${_emotion.iconButtonTokens.iconButtonFontStyle}: var(--plasma-typo-body-xs-font-style);
                ${_emotion.iconButtonTokens.iconButtonFontWeight}: var(--plasma-typo-body-xs-bold-font-weight);
                ${_emotion.iconButtonTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
                ${_emotion.iconButtonTokens.iconButtonLineHeight}: var(--plasma-typo-body-xs-line-height);

                ${_emotion.iconButtonTokens.iconButtonSpinnerSize}: 1rem;
                ${_emotion.iconButtonTokens.iconButtonSpinnerColor}: inherit;
            `
        },
        disabled: {
            true: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonDisabledOpacity}: 0.4;
            `
        },
        focused: {
            true: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonFocusColor}: var(--surface-accent);
            `
        }
    }
};
