"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.buttonTokens.buttonColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.buttonTokens.buttonTextColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.buttonTokens.buttonIconColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.buttonTokens.buttonValueColor}: ${_sdds_serv.inverseTextSecondary};
                ${_emotion.buttonTokens.buttonBackgroundColor}: ${_sdds_serv.surfaceSolidDefault};
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonColorHover}: ${_sdds_serv.inverseTextPrimaryHover};
                ${_emotion.buttonTokens.buttonColorActive}: ${_sdds_serv.inverseTextPrimaryActive};
            `,
            accent: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonTextColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonIconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonValueColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.buttonTokens.buttonBackgroundColor}: ${_sdds_serv.surfaceAccent};
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonBackgroundColorHover}: ${_sdds_serv.surfaceAccentHover};
                ${_emotion.buttonTokens.buttonBackgroundColorActive}: ${_sdds_serv.surfaceAccentActive};
            `,
            secondary: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: ${_sdds_serv.textPrimary};
                ${_emotion.buttonTokens.buttonTextColor}: ${_sdds_serv.textPrimary};
                ${_emotion.buttonTokens.buttonIconColor}: ${_sdds_serv.textPrimary};
                ${_emotion.buttonTokens.buttonValueColor}: ${_sdds_serv.textSecondary};
                ${_emotion.buttonTokens.buttonBackgroundColor}: ${_sdds_serv.surfaceTransparentSecondary};
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonBackgroundColorHover}: ${_sdds_serv.surfaceTransparentSecondaryHover};
                ${_emotion.buttonTokens.buttonBackgroundColorActive}: ${_sdds_serv.surfaceTransparentSecondaryActive};
            `,
            clear: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: ${_sdds_serv.textPrimary};
                ${_emotion.buttonTokens.buttonTextColor}: ${_sdds_serv.textPrimary};
                ${_emotion.buttonTokens.buttonIconColor}: ${_sdds_serv.textPrimary};
                ${_emotion.buttonTokens.buttonValueColor}: ${_sdds_serv.textSecondary};
                ${_emotion.buttonTokens.buttonBackgroundColor}: ${_sdds_serv.surfaceClear};
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonBackgroundColorHover}: ${_sdds_serv.surfaceTransparentSecondaryHover};
                ${_emotion.buttonTokens.buttonBackgroundColorActive}: ${_sdds_serv.surfaceTransparentSecondaryActive};
            `,
            success: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonTextColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonIconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonValueColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.buttonTokens.buttonBackgroundColor}: ${_sdds_serv.surfacePositive};
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonBackgroundColorHover}: ${_sdds_serv.surfacePositiveHover};
                ${_emotion.buttonTokens.buttonBackgroundColorActive}: ${_sdds_serv.surfacePositiveActive};
            `,
            warning: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonTextColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonIconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonValueColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.buttonTokens.buttonBackgroundColor}: ${_sdds_serv.surfaceWarning};
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonBackgroundColorHover}: ${_sdds_serv.surfaceWarningHover};
                ${_emotion.buttonTokens.buttonBackgroundColorActive}: ${_sdds_serv.surfaceWarningActive};
            `,
            critical: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonTextColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonIconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonValueColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.buttonTokens.buttonBackgroundColor}: ${_sdds_serv.surfaceNegative};
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonBackgroundColorHover}: ${_sdds_serv.surfaceNegativeHover};
                ${_emotion.buttonTokens.buttonBackgroundColorActive}: ${_sdds_serv.surfaceNegativeActive};
            `,
            dark: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonTextColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonIconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonValueColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.buttonTokens.buttonBackgroundColor}: ${_sdds_serv.onLightSurfaceTransparentDeep};
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonColorHover}: ${_sdds_serv.onDarkTextPrimaryHover};
                ${_emotion.buttonTokens.buttonColorActive}: ${_sdds_serv.onDarkTextPrimaryActive};
            `,
            black: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonTextColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonIconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonTokens.buttonValueColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.buttonTokens.buttonBackgroundColor}: ${_sdds_serv.onLightSurfaceSolidDefault};
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonColorHover}: ${_sdds_serv.onDarkTextPrimaryHover};
                ${_emotion.buttonTokens.buttonColorActive}: ${_sdds_serv.onDarkTextPrimaryActive};
            `,
            white: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: ${_sdds_serv.onLightTextPrimary};
                ${_emotion.buttonTokens.buttonTextColor}: ${_sdds_serv.onLightTextPrimary};
                ${_emotion.buttonTokens.buttonIconColor}: ${_sdds_serv.onLightTextPrimary};
                ${_emotion.buttonTokens.buttonValueColor}: ${_sdds_serv.onLightTextSecondary};
                ${_emotion.buttonTokens.buttonBackgroundColor}: ${_sdds_serv.onDarkSurfaceSolidDefault};
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonColorHover}: ${_sdds_serv.onLightTextPrimaryHover};
                ${_emotion.buttonTokens.buttonColorActive}: ${_sdds_serv.onLightTextPrimaryActive};
            `
        },
        size: {
            xl: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonHeight}: 4rem;
                ${_emotion.buttonTokens.buttonWidth}: 12.5rem;
                ${_emotion.buttonTokens.buttonPadding}: 1.75rem;
                ${_emotion.buttonTokens.buttonRadius}: 1rem;
                ${_emotion.buttonTokens.buttonFontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_emotion.buttonTokens.buttonFontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_emotion.buttonTokens.buttonFontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_emotion.buttonTokens.buttonFontWeight}: ${_sdds_serv.bodyLBold.fontWeight};
                ${_emotion.buttonTokens.buttonLetterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_emotion.buttonTokens.buttonLineHeight}: ${_sdds_serv.bodyL.lineHeight};

                ${_emotion.buttonTokens.buttonSpinnerSize}: 1.5rem;
                ${_emotion.buttonTokens.buttonSpinnerColor}: inherit;

                ${_emotion.buttonTokens.buttonLeftContentMargin}: 0 0.625rem 0 -0.125rem;
                ${_emotion.buttonTokens.buttonRightContentMargin}: 0 -0.125rem 0 0.625rem;
                ${_emotion.buttonTokens.buttonValueMargin}: 0 0 0 0.25rem;
                ${_emotion.buttonTokens.buttonAdditionalContentMargin}: 0 0 0 0.5rem;
                ${_emotion.buttonTokens.buttonAdditionalContentMarginRightWidthValue}: 0.375rem;
            `,
            l: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonHeight}: 3.5rem;
                ${_emotion.buttonTokens.buttonWidth}: 12.5rem;
                ${_emotion.buttonTokens.buttonPadding}: 1.5rem;
                ${_emotion.buttonTokens.buttonRadius}: 0.875rem;
                ${_emotion.buttonTokens.buttonFontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_emotion.buttonTokens.buttonFontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_emotion.buttonTokens.buttonFontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_emotion.buttonTokens.buttonFontWeight}: ${_sdds_serv.bodyLBold.fontWeight};
                ${_emotion.buttonTokens.buttonLetterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_emotion.buttonTokens.buttonLineHeight}: ${_sdds_serv.bodyL.lineHeight};

                ${_emotion.buttonTokens.buttonSpinnerSize}: 1.375rem;
                ${_emotion.buttonTokens.buttonSpinnerColor}: inherit;

                ${_emotion.buttonTokens.buttonLeftContentMargin}: 0 0.5rem 0 -0.125rem;
                ${_emotion.buttonTokens.buttonRightContentMargin}: 0 -0.125rem 0 0.5rem;
                ${_emotion.buttonTokens.buttonValueMargin}: 0 0 0 0.25rem;
                ${_emotion.buttonTokens.buttonAdditionalContentMargin}: 0 0 0 0.5rem;
                ${_emotion.buttonTokens.buttonAdditionalContentMarginRightWidthValue}: 0.375rem;
            `,
            m: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonHeight}: 3rem;
                ${_emotion.buttonTokens.buttonWidth}: 11.25rem;
                ${_emotion.buttonTokens.buttonPadding}: 1.25rem;
                ${_emotion.buttonTokens.buttonRadius}: 0.75rem;
                ${_emotion.buttonTokens.buttonFontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_emotion.buttonTokens.buttonFontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_emotion.buttonTokens.buttonFontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_emotion.buttonTokens.buttonFontWeight}: ${_sdds_serv.bodyMBold.fontWeight};
                ${_emotion.buttonTokens.buttonLetterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_emotion.buttonTokens.buttonLineHeight}: ${_sdds_serv.bodyM.lineHeight};

                ${_emotion.buttonTokens.buttonSpinnerSize}: 1.375rem;
                ${_emotion.buttonTokens.buttonSpinnerColor}: inherit;

                ${_emotion.buttonTokens.buttonLeftContentMargin}: 0 0.375rem 0 -0.125rem;
                ${_emotion.buttonTokens.buttonRightContentMargin}: 0 -0.125rem 0 0.375rem;
                ${_emotion.buttonTokens.buttonValueMargin}: 0 0 0 0.25rem;
                ${_emotion.buttonTokens.buttonAdditionalContentMargin}: 0 0 0 0.375rem;
                ${_emotion.buttonTokens.buttonAdditionalContentMarginRightWidthValue}: 0.25rem;
            `,
            s: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonHeight}: 2.5rem;
                ${_emotion.buttonTokens.buttonWidth}: 11.25rem;
                ${_emotion.buttonTokens.buttonPadding}: 1rem;
                ${_emotion.buttonTokens.buttonRadius}: 0.625rem;
                ${_emotion.buttonTokens.buttonFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_emotion.buttonTokens.buttonFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_emotion.buttonTokens.buttonFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.buttonTokens.buttonFontWeight}: ${_sdds_serv.bodySBold.fontWeight};
                ${_emotion.buttonTokens.buttonLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_emotion.buttonTokens.buttonLineHeight}: ${_sdds_serv.bodyS.lineHeight};

                ${_emotion.buttonTokens.buttonSpinnerSize}: 1.375rem;
                ${_emotion.buttonTokens.buttonSpinnerColor}: inherit;

                ${_emotion.buttonTokens.buttonLeftContentMargin}: 0 0.25rem 0 -0.125rem;
                ${_emotion.buttonTokens.buttonRightContentMargin}: 0 -0.125rem 0 0.25rem;
                ${_emotion.buttonTokens.buttonValueMargin}: 0 0 0 0.25rem;
                ${_emotion.buttonTokens.buttonAdditionalContentMargin}: 0 0 0 0.25rem;
                ${_emotion.buttonTokens.buttonAdditionalContentMarginRightWidthValue}: 0.25rem;
            `,
            xs: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonHeight}: 2rem;
                ${_emotion.buttonTokens.buttonWidth}: 10rem;
                ${_emotion.buttonTokens.buttonPadding}: 0.75rem;
                ${_emotion.buttonTokens.buttonRadius}: 0.5rem;
                ${_emotion.buttonTokens.buttonFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_emotion.buttonTokens.buttonFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_emotion.buttonTokens.buttonFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_emotion.buttonTokens.buttonFontWeight}: ${_sdds_serv.bodyXSBold.fontWeight};
                ${_emotion.buttonTokens.buttonLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_emotion.buttonTokens.buttonLineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_emotion.buttonTokens.buttonSpinnerSize}: 1rem;
                ${_emotion.buttonTokens.buttonSpinnerColor}: inherit;

                ${_emotion.buttonTokens.buttonLeftContentMargin}: 0 0.25rem 0 -0.125rem;
                ${_emotion.buttonTokens.buttonRightContentMargin}: 0 -0.125rem 0 0.25rem;
                ${_emotion.buttonTokens.buttonValueMargin}: 0 0 0 0.25rem;
                ${_emotion.buttonTokens.buttonAdditionalContentMargin}: 0 0 0 0.25rem;
                ${_emotion.buttonTokens.buttonAdditionalContentMarginRightWidthValue}: 0.125rem;
            `,
            xxs: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonHeight}: 1.5rem;
                ${_emotion.buttonTokens.buttonWidth}: 8.75rem;
                ${_emotion.buttonTokens.buttonPadding}: 0.625rem;
                ${_emotion.buttonTokens.buttonRadius}: 0.375rem;
                ${_emotion.buttonTokens.buttonFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_emotion.buttonTokens.buttonFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_emotion.buttonTokens.buttonFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_emotion.buttonTokens.buttonFontWeight}: ${_sdds_serv.bodyXSBold.fontWeight};
                ${_emotion.buttonTokens.buttonLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_emotion.buttonTokens.buttonLineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_emotion.buttonTokens.buttonSpinnerSize}: 0.75rem;
                ${_emotion.buttonTokens.buttonSpinnerColor}: inherit;

                ${_emotion.buttonTokens.buttonLeftContentMargin}: 0 0.25rem 0 -0.125rem;
                ${_emotion.buttonTokens.buttonRightContentMargin}: 0 -0.125rem 0 0.25rem;
                ${_emotion.buttonTokens.buttonAdditionalContentMargin}: 0 0rem 0 0.25rem;
                ${_emotion.buttonTokens.buttonValueMargin}: 0 0 0 0.25rem;
                ${_emotion.buttonTokens.buttonAdditionalContentMarginRightWidthValue}: 0.125rem;
            `
        },
        disabled: {
            true: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonDisabledOpacity}: 0.4;
            `
        },
        focused: {
            true: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonFocusColor}: ${_sdds_serv.surfaceAccent};
            `
        },
        stretching: {
            auto: (0, _emotion.css)``,
            filled: (0, _emotion.css)``,
            fixed: (0, _emotion.css)``
        }
    }
};
