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

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

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

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

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

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

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