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

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

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

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

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

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