"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',
        size: 'm'
    },
    variations: {
        view: {
            default: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.buttonGroupTokens.buttonTextColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.buttonGroupTokens.buttonIconColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.buttonGroupTokens.buttonValueColor}: ${_sdds_serv.inverseTextSecondary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColor}: ${_sdds_serv.surfaceSolidDefault};
                ${_emotion.buttonGroupTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonGroupTokens.buttonBackgroundColor});
                ${_emotion.buttonGroupTokens.buttonColorHover}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorHover}: ${_sdds_serv.surfaceSolidDefaultHover};
                ${_emotion.buttonGroupTokens.buttonColorActive}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorActive}: ${_sdds_serv.surfaceSolidDefaultActive};
            `,
            accent: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonTextColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonIconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonValueColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColor}: ${_sdds_serv.surfaceAccent};
                ${_emotion.buttonGroupTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonGroupTokens.buttonBackgroundColor});
                ${_emotion.buttonGroupTokens.buttonColorHover}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorHover}: ${_sdds_serv.surfaceAccentHover};
                ${_emotion.buttonGroupTokens.buttonColorActive}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorActive}: ${_sdds_serv.surfaceAccentActive};
            `,
            secondary: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonColor}: ${_sdds_serv.textPrimary};
                ${_emotion.buttonGroupTokens.buttonTextColor}: ${_sdds_serv.textPrimary};
                ${_emotion.buttonGroupTokens.buttonIconColor}: ${_sdds_serv.textPrimary};
                ${_emotion.buttonGroupTokens.buttonValueColor}: ${_sdds_serv.textSecondary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColor}: ${_sdds_serv.surfaceTransparentSecondary};
                ${_emotion.buttonGroupTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonGroupTokens.buttonBackgroundColor});
                ${_emotion.buttonGroupTokens.buttonColorHover}: ${_sdds_serv.textPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorHover}: ${_sdds_serv.surfaceTransparentSecondaryHover};
                ${_emotion.buttonGroupTokens.buttonColorActive}: ${_sdds_serv.textPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorActive}: ${_sdds_serv.surfaceTransparentSecondaryActive};
            `,
            clear: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonColor}: ${_sdds_serv.textPrimary};
                ${_emotion.buttonGroupTokens.buttonTextColor}: ${_sdds_serv.textPrimary};
                ${_emotion.buttonGroupTokens.buttonIconColor}: ${_sdds_serv.textPrimary};
                ${_emotion.buttonGroupTokens.buttonValueColor}: ${_sdds_serv.textSecondary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColor}: ${_sdds_serv.surfaceClear};
                ${_emotion.buttonGroupTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonGroupTokens.buttonBackgroundColor});
                ${_emotion.buttonGroupTokens.buttonColorHover}: ${_sdds_serv.textPrimaryHover};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorHover}: ${_sdds_serv.surfaceClear};
                ${_emotion.buttonGroupTokens.buttonColorActive}: ${_sdds_serv.textPrimaryActive};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorActive}: ${_sdds_serv.surfaceClear};
            `,
            success: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonTextColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonIconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonValueColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColor}: ${_sdds_serv.surfacePositive};
                ${_emotion.buttonGroupTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonGroupTokens.buttonBackgroundColor});
                ${_emotion.buttonGroupTokens.buttonColorHover}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorHover}: ${_sdds_serv.surfacePositiveHover};
                ${_emotion.buttonGroupTokens.buttonColorActive}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorActive}: ${_sdds_serv.surfacePositiveActive};
            `,
            warning: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonTextColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonIconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonValueColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColor}: ${_sdds_serv.surfaceWarning};
                ${_emotion.buttonGroupTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonGroupTokens.buttonBackgroundColor});
                ${_emotion.buttonGroupTokens.buttonColorHover}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorHover}: ${_sdds_serv.surfaceWarningHover};
                ${_emotion.buttonGroupTokens.buttonColorActive}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorActive}: ${_sdds_serv.surfaceWarningActive};
            `,
            critical: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonTextColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonIconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonValueColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColor}: ${_sdds_serv.surfaceNegative};
                ${_emotion.buttonGroupTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonGroupTokens.buttonBackgroundColor});
                ${_emotion.buttonGroupTokens.buttonColorHover}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorHover}: ${_sdds_serv.surfaceNegativeHover};
                ${_emotion.buttonGroupTokens.buttonColorActive}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorActive}: ${_sdds_serv.surfaceNegativeActive};
            `,
            dark: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonTextColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonIconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonValueColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColor}: ${_sdds_serv.onLightSurfaceTransparentDeep};
                ${_emotion.buttonGroupTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonGroupTokens.buttonBackgroundColor});
                ${_emotion.buttonGroupTokens.buttonColorHover}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorHover}: ${_sdds_serv.onLightSurfaceTransparentDeepHover};
                ${_emotion.buttonGroupTokens.buttonColorActive}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorActive}: ${_sdds_serv.onLightSurfaceTransparentDeepActive};
            `,
            black: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonTextColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonIconColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonValueColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColor}: ${_sdds_serv.onLightSurfaceSolidDefault};
                ${_emotion.buttonGroupTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonGroupTokens.buttonBackgroundColor});
                ${_emotion.buttonGroupTokens.buttonColorHover}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorHover}: ${_sdds_serv.onLightSurfaceSolidDefaultHover};
                ${_emotion.buttonGroupTokens.buttonColorActive}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorActive}: ${_sdds_serv.onLightSurfaceSolidDefaultActive};
            `,
            white: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonColor}: ${_sdds_serv.onLightTextPrimary};
                ${_emotion.buttonGroupTokens.buttonTextColor}: ${_sdds_serv.onLightTextPrimary};
                ${_emotion.buttonGroupTokens.buttonIconColor}: ${_sdds_serv.onLightTextPrimary};
                ${_emotion.buttonGroupTokens.buttonValueColor}: ${_sdds_serv.onLightTextSecondary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColor}: ${_sdds_serv.onDarkSurfaceSolidDefault};
                ${_emotion.buttonGroupTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonGroupTokens.buttonBackgroundColor});
                ${_emotion.buttonGroupTokens.buttonColorHover}: ${_sdds_serv.onLightTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorHover}: ${_sdds_serv.onDarkSurfaceSolidDefaultHover};
                ${_emotion.buttonGroupTokens.buttonColorActive}: ${_sdds_serv.onLightTextPrimary};
                ${_emotion.buttonGroupTokens.buttonBackgroundColorActive}: ${_sdds_serv.onDarkSurfaceSolidDefaultActive};
            `
        },
        size: {
            xl: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonDefaultRadius}: 1rem;
                ${_emotion.buttonGroupTokens.buttonSegmentedRadius}: 0.5rem;
                ${_emotion.buttonGroupTokens.buttonSideRadius}: 1rem;

                ${_emotion.buttonGroupTokens.buttonHeight}: 4rem;
                ${_emotion.buttonGroupTokens.buttonPadding}: 1.75rem;
                ${_emotion.buttonGroupTokens.buttonFontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_emotion.buttonGroupTokens.buttonFontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_emotion.buttonGroupTokens.buttonFontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_emotion.buttonGroupTokens.buttonFontWeight}: ${_sdds_serv.bodyLBold.fontWeight};
                ${_emotion.buttonGroupTokens.buttonLetterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_emotion.buttonGroupTokens.buttonLineHeight}: ${_sdds_serv.bodyL.lineHeight};
            `,
            l: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonDefaultRadius}: 0.875rem;
                ${_emotion.buttonGroupTokens.buttonSegmentedRadius}: 0.375rem;
                ${_emotion.buttonGroupTokens.buttonSideRadius}: 0.875rem;

                ${_emotion.buttonGroupTokens.buttonHeight}: 3.5rem;
                ${_emotion.buttonGroupTokens.buttonPadding}: 1.5rem;
                ${_emotion.buttonGroupTokens.buttonFontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_emotion.buttonGroupTokens.buttonFontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_emotion.buttonGroupTokens.buttonFontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_emotion.buttonGroupTokens.buttonFontWeight}: ${_sdds_serv.bodyLBold.fontWeight};
                ${_emotion.buttonGroupTokens.buttonLetterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_emotion.buttonGroupTokens.buttonLineHeight}: ${_sdds_serv.bodyL.lineHeight};
            `,
            m: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonSegmentedRadius}: 0.25rem;
                ${_emotion.buttonGroupTokens.buttonDefaultRadius}: 0.75rem;
                ${_emotion.buttonGroupTokens.buttonSideRadius}: 0.75rem;

                ${_emotion.buttonGroupTokens.buttonHeight}: 3rem;
                ${_emotion.buttonGroupTokens.buttonPadding}: 1.25rem;

                ${_emotion.buttonGroupTokens.buttonFontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_emotion.buttonGroupTokens.buttonFontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_emotion.buttonGroupTokens.buttonFontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_emotion.buttonGroupTokens.buttonFontWeight}: ${_sdds_serv.bodyMBold.fontWeight};
                ${_emotion.buttonGroupTokens.buttonLetterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_emotion.buttonGroupTokens.buttonLineHeight}: ${_sdds_serv.bodyM.lineHeight};
            `,
            s: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonSegmentedRadius}: 0.25rem;
                ${_emotion.buttonGroupTokens.buttonSideRadius}: 0.625rem;
                ${_emotion.buttonGroupTokens.buttonDefaultRadius}: 0.625rem;

                ${_emotion.buttonGroupTokens.buttonHeight}: 2.5rem;
                ${_emotion.buttonGroupTokens.buttonPadding}: 1rem;
                ${_emotion.buttonGroupTokens.buttonFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_emotion.buttonGroupTokens.buttonFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_emotion.buttonGroupTokens.buttonFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.buttonGroupTokens.buttonFontWeight}: ${_sdds_serv.bodySBold.fontWeight};
                ${_emotion.buttonGroupTokens.buttonLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_emotion.buttonGroupTokens.buttonLineHeight}: ${_sdds_serv.bodyS.lineHeight};
            `,
            xs: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonSegmentedRadius}: 0.125rem;
                ${_emotion.buttonGroupTokens.buttonDefaultRadius}: 0.5rem;
                ${_emotion.buttonGroupTokens.buttonSideRadius}: 0.5rem;

                ${_emotion.buttonGroupTokens.buttonHeight}: 2rem;
                ${_emotion.buttonGroupTokens.buttonPadding}: 0.75rem;
                ${_emotion.buttonGroupTokens.buttonFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_emotion.buttonGroupTokens.buttonFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_emotion.buttonGroupTokens.buttonFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_emotion.buttonGroupTokens.buttonFontWeight}: ${_sdds_serv.bodyXSBold.fontWeight};
                ${_emotion.buttonGroupTokens.buttonLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_emotion.buttonGroupTokens.buttonLineHeight}: ${_sdds_serv.bodyXS.lineHeight};
            `,
            xxs: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonSegmentedRadius}: 0.125rem;
                ${_emotion.buttonGroupTokens.buttonDefaultRadius}: 0.375rem;
                ${_emotion.buttonGroupTokens.buttonSideRadius}: 0.375rem;

                ${_emotion.buttonGroupTokens.buttonHeight}: 1.5rem;
                ${_emotion.buttonGroupTokens.buttonPadding}: 0.625rem;
                ${_emotion.buttonGroupTokens.buttonFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_emotion.buttonGroupTokens.buttonFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_emotion.buttonGroupTokens.buttonFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_emotion.buttonGroupTokens.buttonFontWeight}: ${_sdds_serv.bodyXSBold.fontWeight};
                ${_emotion.buttonGroupTokens.buttonLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_emotion.buttonGroupTokens.buttonLineHeight}: ${_sdds_serv.bodyXS.lineHeight};
            `
        },
        orientation: {
            horizontal: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonGroupOrientation}: row;
            `,
            vertical: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonGroupOrientation}: column;
            `
        },
        gap: {
            none: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonGroupItemsGap}: 0;
            `,
            dense: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonGroupItemsGap}: 0.125rem;
            `,
            wide: (0, _emotion.css)`
                ${_emotion.buttonGroupTokens.buttonGroupItemsGap}: 0.5rem;
            `
        },
        shape: {
            segmented: (0, _emotion.css)``,
            default: (0, _emotion.css)``
        },
        stretching: {
            auto: (0, _emotion.css)``,
            filled: (0, _emotion.css)``
        }
    }
};
