"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 _sdds_serv = require("@salutejs/sdds-themes/tokens/sdds_serv");
const config = {
    defaults: {
        view: 'default',
        focused: 'true',
        size: 'm'
    },
    variations: {
        view: {
            default: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: ${_sdds_serv.surfaceSolidDefault};
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonColorHover}: ${_sdds_serv.inverseTextPrimaryHover};
                ${_emotion.iconButtonTokens.iconButtonColorActive}: ${_sdds_serv.inverseTextPrimaryActive};
            `,
            accent: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: ${_sdds_serv.surfaceAccent};
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: ${_sdds_serv.surfaceAccentHover};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: ${_sdds_serv.surfaceAccentActive};
            `,
            secondary: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: ${_sdds_serv.textPrimary};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: ${_sdds_serv.surfaceTransparentSecondary};
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: ${_sdds_serv.surfaceTransparentSecondaryHover};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: ${_sdds_serv.surfaceTransparentSecondaryActive};
            `,
            clear: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: ${_sdds_serv.textPrimary};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: ${_sdds_serv.surfaceClear};
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: ${_sdds_serv.surfaceTransparentSecondaryHover};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: ${_sdds_serv.surfaceTransparentSecondaryActive};
            `,
            success: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: ${_sdds_serv.surfacePositive};
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: ${_sdds_serv.surfacePositiveHover};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: ${_sdds_serv.surfacePositiveActive};
            `,
            warning: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: ${_sdds_serv.surfaceWarning};
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: ${_sdds_serv.surfaceWarningHover};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: ${_sdds_serv.surfaceWarningActive};
            `,
            critical: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: ${_sdds_serv.surfaceNegative};
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: ${_sdds_serv.surfaceNegativeHover};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: ${_sdds_serv.surfaceNegativeActive};
            `,
            dark: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: ${_sdds_serv.onLightSurfaceTransparentDeep};
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonColorHover}: ${_sdds_serv.onDarkTextPrimaryHover};
                ${_emotion.iconButtonTokens.iconButtonColorActive}: ${_sdds_serv.onDarkTextPrimaryActive};
            `,
            black: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: ${_sdds_serv.onLightSurfaceSolidDefault};
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonColorHover}: ${_sdds_serv.onDarkTextPrimaryHover};
                ${_emotion.iconButtonTokens.iconButtonColorActive}: ${_sdds_serv.onDarkTextPrimaryActive};
            `,
            white: (0, _emotion.css)`
                ${_emotion.iconButtonTokens.iconButtonColor}: ${_sdds_serv.onLightTextPrimary};
                ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: ${_sdds_serv.onDarkSurfaceSolidDefault};
                ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
                ${_emotion.iconButtonTokens.iconButtonColorHover}: ${_sdds_serv.onLightTextPrimaryHover};
                ${_emotion.iconButtonTokens.iconButtonColorActive}: ${_sdds_serv.onLightTextPrimaryActive};
            `
        },
        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}: ${_sdds_serv.bodyL.fontFamily};
                ${_emotion.iconButtonTokens.iconButtonFontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_emotion.iconButtonTokens.iconButtonFontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_emotion.iconButtonTokens.iconButtonFontWeight}: ${_sdds_serv.bodyLBold.fontWeight};
                ${_emotion.iconButtonTokens.iconButtonLetterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_emotion.iconButtonTokens.iconButtonLineHeight}: ${_sdds_serv.bodyL.lineHeight};

                ${_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}: ${_sdds_serv.bodyL.fontFamily};
                ${_emotion.iconButtonTokens.iconButtonFontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_emotion.iconButtonTokens.iconButtonFontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_emotion.iconButtonTokens.iconButtonFontWeight}: ${_sdds_serv.bodyLBold.fontWeight};
                ${_emotion.iconButtonTokens.iconButtonLetterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_emotion.iconButtonTokens.iconButtonLineHeight}: ${_sdds_serv.bodyL.lineHeight};

                ${_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}: ${_sdds_serv.bodyM.fontFamily};
                ${_emotion.iconButtonTokens.iconButtonFontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_emotion.iconButtonTokens.iconButtonFontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_emotion.iconButtonTokens.iconButtonFontWeight}: ${_sdds_serv.bodyMBold.fontWeight};
                ${_emotion.iconButtonTokens.iconButtonLetterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_emotion.iconButtonTokens.iconButtonLineHeight}: ${_sdds_serv.bodyM.lineHeight};

                ${_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}: ${_sdds_serv.bodyS.fontFamily};
                ${_emotion.iconButtonTokens.iconButtonFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_emotion.iconButtonTokens.iconButtonFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.iconButtonTokens.iconButtonFontWeight}: ${_sdds_serv.bodySBold.fontWeight};
                ${_emotion.iconButtonTokens.iconButtonLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_emotion.iconButtonTokens.iconButtonLineHeight}: ${_sdds_serv.bodyS.lineHeight};

                ${_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}: ${_sdds_serv.bodyXS.fontFamily};
                ${_emotion.iconButtonTokens.iconButtonFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_emotion.iconButtonTokens.iconButtonFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_emotion.iconButtonTokens.iconButtonFontWeight}: ${_sdds_serv.bodyXSBold.fontWeight};
                ${_emotion.iconButtonTokens.iconButtonLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_emotion.iconButtonTokens.iconButtonLineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_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}: ${_sdds_serv.surfaceAccent};
            `
        }
    }
};
