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

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

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

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

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

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

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

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

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

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

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

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

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