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

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

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

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

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

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

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

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