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

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

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

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

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

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