"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 config = {
    defaults: {
        view: 'default',
        focused: 'true',
        size: 'm'
    },
    variations: {
        view: {
            default: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: var(--inverse-text-primary);
                ${_emotion.buttonTokens.buttonTextColor}: var(--inverse-text-primary);
                ${_emotion.buttonTokens.buttonIconColor}: var(--inverse-text-primary);
                ${_emotion.buttonTokens.buttonValueColor}: var(--inverse-text-secondary);
                ${_emotion.buttonTokens.buttonBackgroundColor}: var(--surface-solid-default);
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonColorHover}: var(--inverse-text-primary-hover);
                ${_emotion.buttonTokens.buttonColorActive}: var(--inverse-text-primary-active);
            `,
            accent: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonTextColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonIconColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonValueColor}: var(--on-dark-text-secondary);
                ${_emotion.buttonTokens.buttonBackgroundColor}: var(--surface-accent);
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonBackgroundColorHover}: var(--surface-accent-hover);
                ${_emotion.buttonTokens.buttonBackgroundColorActive}: var(--surface-accent-active);
            `,
            secondary: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: var(--text-primary);
                ${_emotion.buttonTokens.buttonTextColor}: var(--text-primary);
                ${_emotion.buttonTokens.buttonIconColor}: var(--text-primary);
                ${_emotion.buttonTokens.buttonValueColor}: var(--text-secondary);
                ${_emotion.buttonTokens.buttonBackgroundColor}: var(--surface-transparent-secondary);
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonBackgroundColorHover}: var(--surface-transparent-secondary-hover);
                ${_emotion.buttonTokens.buttonBackgroundColorActive}: var(--surface-transparent-secondary-active);
            `,
            clear: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: var(--text-primary);
                ${_emotion.buttonTokens.buttonTextColor}: var(--text-primary);
                ${_emotion.buttonTokens.buttonIconColor}: var(--text-primary);
                ${_emotion.buttonTokens.buttonValueColor}: var(--text-secondary);
                ${_emotion.buttonTokens.buttonBackgroundColor}: var(--surface-clear);
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonBackgroundColorHover}: var(--surface-transparent-secondary-hover);
                ${_emotion.buttonTokens.buttonBackgroundColorActive}: var(--surface-transparent-secondary-active);
            `,
            success: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonTextColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonIconColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonValueColor}: var(--on-dark-text-secondary);
                ${_emotion.buttonTokens.buttonBackgroundColor}: var(--surface-positive);
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonBackgroundColorHover}: var(--surface-positive-hover);
                ${_emotion.buttonTokens.buttonBackgroundColorActive}: var(--surface-positive-active);
            `,
            warning: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonTextColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonIconColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonValueColor}: var(--on-dark-text-secondary);
                ${_emotion.buttonTokens.buttonBackgroundColor}: var(--surface-warning);
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonBackgroundColorHover}: var(--surface-warning-hover);
                ${_emotion.buttonTokens.buttonBackgroundColorActive}: var(--surface-warning-active);
            `,
            critical: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonTextColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonIconColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonValueColor}: var(--on-dark-text-secondary);
                ${_emotion.buttonTokens.buttonBackgroundColor}: var(--surface-negative);
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonBackgroundColorHover}: var(--surface-negative-hover);
                ${_emotion.buttonTokens.buttonBackgroundColorActive}: var(--surface-negative-active);
            `,
            dark: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonTextColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonIconColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonValueColor}: var(--on-dark-text-secondary);
                ${_emotion.buttonTokens.buttonBackgroundColor}: var(--on-light-surface-transparent-deep);
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonColorHover}: var(--on-dark-text-primary-hover);
                ${_emotion.buttonTokens.buttonColorActive}: var(--on-dark-text-primary-active);
            `,
            black: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonTextColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonIconColor}: var(--on-dark-text-primary);
                ${_emotion.buttonTokens.buttonValueColor}: var(--on-dark-text-secondary);
                ${_emotion.buttonTokens.buttonBackgroundColor}: var(--on-light-surface-solid-default);
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonColorHover}: var(--on-dark-text-primary-hover);
                ${_emotion.buttonTokens.buttonColorActive}: var(--on-dark-text-primary-active);
            `,
            white: (0, _emotion.css)`
                ${_emotion.buttonTokens.buttonColor}: var(--on-light-text-primary);
                ${_emotion.buttonTokens.buttonTextColor}: var(--on-light-text-primary);
                ${_emotion.buttonTokens.buttonIconColor}: var(--on-light-text-primary);
                ${_emotion.buttonTokens.buttonValueColor}: var(--on-light-text-secondary);
                ${_emotion.buttonTokens.buttonBackgroundColor}: var(--on-dark-surface-solid-default);
                ${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
                ${_emotion.buttonTokens.buttonColorHover}: var(--on-light-text-primary-hover);
                ${_emotion.buttonTokens.buttonColorActive}: var(--on-light-text-primary-active);
            `
        },
        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}: var(--plasma-typo-body-l-font-family);
                ${_emotion.buttonTokens.buttonFontSize}: var(--plasma-typo-body-l-font-size);
                ${_emotion.buttonTokens.buttonFontStyle}: var(--plasma-typo-body-l-font-style);
                ${_emotion.buttonTokens.buttonFontWeight}: var(--plasma-typo-body-l-bold-font-weight);
                ${_emotion.buttonTokens.buttonLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);
                ${_emotion.buttonTokens.buttonLineHeight}: var(--plasma-typo-body-l-line-height);

                ${_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}: var(--plasma-typo-body-l-font-family);
                ${_emotion.buttonTokens.buttonFontSize}: var(--plasma-typo-body-l-font-size);
                ${_emotion.buttonTokens.buttonFontStyle}: var(--plasma-typo-body-l-font-style);
                ${_emotion.buttonTokens.buttonFontWeight}: var(--plasma-typo-body-l-bold-font-weight);
                ${_emotion.buttonTokens.buttonLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);
                ${_emotion.buttonTokens.buttonLineHeight}: var(--plasma-typo-body-l-line-height);

                ${_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}: var(--plasma-typo-body-m-font-family);
                ${_emotion.buttonTokens.buttonFontSize}: var(--plasma-typo-body-m-font-size);
                ${_emotion.buttonTokens.buttonFontStyle}: var(--plasma-typo-body-m-font-style);
                ${_emotion.buttonTokens.buttonFontWeight}: var(--plasma-typo-body-m-bold-font-weight);
                ${_emotion.buttonTokens.buttonLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
                ${_emotion.buttonTokens.buttonLineHeight}: var(--plasma-typo-body-m-line-height);

                ${_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}: var(--plasma-typo-body-s-font-family);
                ${_emotion.buttonTokens.buttonFontSize}: var(--plasma-typo-body-s-font-size);
                ${_emotion.buttonTokens.buttonFontStyle}: var(--plasma-typo-body-s-font-style);
                ${_emotion.buttonTokens.buttonFontWeight}: var(--plasma-typo-body-s-bold-font-weight);
                ${_emotion.buttonTokens.buttonLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
                ${_emotion.buttonTokens.buttonLineHeight}: var(--plasma-typo-body-s-line-height);

                ${_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}: var(--plasma-typo-body-xs-font-family);
                ${_emotion.buttonTokens.buttonFontSize}: var(--plasma-typo-body-xs-font-size);
                ${_emotion.buttonTokens.buttonFontStyle}: var(--plasma-typo-body-xs-font-style);
                ${_emotion.buttonTokens.buttonFontWeight}: var(--plasma-typo-body-xs-bold-font-weight);
                ${_emotion.buttonTokens.buttonLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
                ${_emotion.buttonTokens.buttonLineHeight}: var(--plasma-typo-body-xs-line-height);

                ${_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}: var(--plasma-typo-body-xs-font-family);
                ${_emotion.buttonTokens.buttonFontSize}: var(--plasma-typo-body-xs-font-size);
                ${_emotion.buttonTokens.buttonFontStyle}: var(--plasma-typo-body-xs-font-style);
                ${_emotion.buttonTokens.buttonFontWeight}: var(--plasma-typo-body-xs-bold-font-weight);
                ${_emotion.buttonTokens.buttonLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
                ${_emotion.buttonTokens.buttonLineHeight}: var(--plasma-typo-body-xs-line-height);

                ${_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}: var(--surface-accent);
            `
        },
        stretching: {
            auto: (0, _emotion.css)``,
            filled: (0, _emotion.css)``,
            fixed: (0, _emotion.css)``
        }
    }
};
