"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',
        size: 'l',
        shape: 'cornered',
        inputBackgroundType: 'fill'
    },
    variations: {
        view: {
            default: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.caretColor}: var(--text-accent);
                ${_styledcomponents.numberInputTokens.errorColor}: var(--text-negative);
                ${_styledcomponents.numberInputTokens.backgroundErrorColor}: var(--surface-transparent-negative);

                ${_styledcomponents.numberInputTokens.color}: var(--text-primary);
                ${_styledcomponents.numberInputTokens.colorSolid}: var(--inverse-text-primary);
                ${_styledcomponents.numberInputTokens.additionalTextColor}: var(--text-tertiary);
                ${_styledcomponents.numberInputTokens.additionalTextColorSolid}: var(--inverse-text-tertiary);
                ${_styledcomponents.numberInputTokens.backgroundColorFocus}: var(--surface-transparent-secondary);
                ${_styledcomponents.numberInputTokens.backgroundColorSolidFocus}: var(--inverse-surface-transparent-secondary);
                ${_styledcomponents.numberInputTokens.backgroundColorSolid}: var(--surface-solid-default);

                ${_styledcomponents.numberInputTokens.iconButtonColor}: var(--inverse-text-primary);
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColor}: var(--surface-solid-default);
                ${_styledcomponents.numberInputTokens.iconButtonColorHover}: var(--inverse-text-primary);
                ${_styledcomponents.numberInputTokens.iconButtonColorSolidHover}: var(--inverse-text-primary-hover);
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColorHover}: var(--surface-solid-default-hover);
                ${_styledcomponents.numberInputTokens.iconButtonColorActive}: var(--inverse-text-primary);
                ${_styledcomponents.numberInputTokens.iconButtonColorSolidActive}: var(--inverse-text-primary-active);
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColorActive}: var(--surface-solid-default-active);

                ${_styledcomponents.numberInputTokens.actionButtonDisabledOpacity}: 0.4;

                ${_styledcomponents.numberInputTokens.loaderSpinnerColor}: inherit;
                ${_styledcomponents.numberInputTokens.loaderSpinnerColorSolid}: inherit;
            `,
            secondary: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.caretColor}: var(--text-accent);
                ${_styledcomponents.numberInputTokens.errorColor}: var(--text-negative);
                ${_styledcomponents.numberInputTokens.backgroundErrorColor}: var(--surface-transparent-negative);

                ${_styledcomponents.numberInputTokens.color}: var(--text-primary);
                ${_styledcomponents.numberInputTokens.colorSolid}: var(--text-primary);
                ${_styledcomponents.numberInputTokens.additionalTextColor}: var(--text-tertiary);
                ${_styledcomponents.numberInputTokens.additionalTextColorSolid}: var(--text-tertiary);
                ${_styledcomponents.numberInputTokens.backgroundColorFocus}: var(--surface-transparent-secondary);
                ${_styledcomponents.numberInputTokens.backgroundColorSolidFocus}: var(--surface-transparent-secondary);
                ${_styledcomponents.numberInputTokens.backgroundColorSolid}: var(--surface-transparent-secondary);

                ${_styledcomponents.numberInputTokens.iconButtonColor}: var(--text-primary);
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColor}: var(--surface-transparent-secondary);
                ${_styledcomponents.numberInputTokens.iconButtonColorHover}: var(--text-primary);
                ${_styledcomponents.numberInputTokens.iconButtonColorSolidHover}: var(--text-primary-hover);
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColorHover}: var(--surface-transparent-secondary-hover);
                ${_styledcomponents.numberInputTokens.iconButtonColorActive}: var(--text-primary);
                ${_styledcomponents.numberInputTokens.iconButtonColorSolidActive}: var(--text-primary-active);
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColorActive}: var(--surface-transparent-secondary-active);

                ${_styledcomponents.numberInputTokens.actionButtonDisabledOpacity}: 0.4;

                ${_styledcomponents.numberInputTokens.loaderSpinnerColor}: inherit;
                ${_styledcomponents.numberInputTokens.loaderSpinnerColorSolid}: inherit;
            `,
            accent: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.caretColor}: var(--text-accent);
                ${_styledcomponents.numberInputTokens.caretColorSolid}: var(--inverse-text-primary);
                ${_styledcomponents.numberInputTokens.errorColor}: var(--text-negative);
                ${_styledcomponents.numberInputTokens.backgroundErrorColor}: var(--surface-transparent-negative);

                ${_styledcomponents.numberInputTokens.color}: var(--text-primary);
                ${_styledcomponents.numberInputTokens.colorSolid}: var(--on-dark-text-primary);
                ${_styledcomponents.numberInputTokens.additionalTextColor}: var(--text-tertiary);
                ${_styledcomponents.numberInputTokens.additionalTextColorSolid}: var(--on-dark-text-tertiary);
                ${_styledcomponents.numberInputTokens.backgroundColorFocus}: var(--surface-transparent-secondary);
                ${_styledcomponents.numberInputTokens.backgroundColorSolidFocus}: var(--on-dark-surface-transparent-secondary);
                ${_styledcomponents.numberInputTokens.backgroundColorSolid}: var(--surface-accent);

                ${_styledcomponents.numberInputTokens.iconButtonColor}: var(--on-dark-text-primary);
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColor}: var(--surface-accent);
                ${_styledcomponents.numberInputTokens.iconButtonColorHover}: var(--inverse-text-primary);
                ${_styledcomponents.numberInputTokens.iconButtonColorSolidHover}: var(--on-dark-text-primary-hover);
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColorHover}: var(--surface-accent-hover);
                ${_styledcomponents.numberInputTokens.iconButtonColorActive}: var(--inverse-text-primary);
                ${_styledcomponents.numberInputTokens.iconButtonColorSolidActive}: var(--on-dark-text-primary-active);
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColorActive}: var(--surface-accent-active);

                ${_styledcomponents.numberInputTokens.actionButtonDisabledOpacity}: 0.4;

                ${_styledcomponents.numberInputTokens.loaderSpinnerColor}: inherit;
                ${_styledcomponents.numberInputTokens.loaderSpinnerColorSolid}: inherit;
            `,
            clear: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.caretColor}: var(--text-accent);
                ${_styledcomponents.numberInputTokens.caretColorSolid}: var(--text-accent);
                ${_styledcomponents.numberInputTokens.errorColor}: var(--text-negative);
                ${_styledcomponents.numberInputTokens.backgroundErrorColor}: var(--surface-transparent-negative);

                ${_styledcomponents.numberInputTokens.color}: var(--text-primary);
                ${_styledcomponents.numberInputTokens.colorSolid}: var(--text-primary);
                ${_styledcomponents.numberInputTokens.iconButtonColorSolidHover}: var(--text-primary-hover);
                ${_styledcomponents.numberInputTokens.additionalTextColor}: var(--text-tertiary);
                ${_styledcomponents.numberInputTokens.additionalTextColorSolid}: var(--text-tertiary);
                ${_styledcomponents.numberInputTokens.backgroundColorFocus}: var(--surface-transparent-secondary);
                ${_styledcomponents.numberInputTokens.backgroundColorSolidFocus}: var(--surface-transparent-secondary);
                ${_styledcomponents.numberInputTokens.backgroundColorSolid}: transparent;

                ${_styledcomponents.numberInputTokens.iconButtonColor}: var(--text-primary);
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColor}: transparent;
                ${_styledcomponents.numberInputTokens.iconButtonColorHover}: var(--text-primary-hover);
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColorHover}: transparent;
                ${_styledcomponents.numberInputTokens.iconButtonColorActive}: var(--text-primary-active);
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColorActive}: transparent;

                ${_styledcomponents.numberInputTokens.actionButtonDisabledOpacity}: 0.4;

                ${_styledcomponents.numberInputTokens.loaderSpinnerColor}: inherit;
                ${_styledcomponents.numberInputTokens.loaderSpinnerColorSolid}: inherit;
            `
        },
        size: {
            l: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.rootMinWidth}: 11.75rem;
                ${_styledcomponents.numberInputTokens.iconButtonHeight}: 3.5rem;
                ${_styledcomponents.numberInputTokens.iconButtonWidth}: 3.5rem;
                ${_styledcomponents.numberInputTokens.iconButtonPadding}: 1.5rem;
                ${_styledcomponents.numberInputTokens.iconButtonFontFamily}: var(--plasma-typo-body-l-font-family);
                ${_styledcomponents.numberInputTokens.iconButtonFontSize}: var(--plasma-typo-body-l-font-size);
                ${_styledcomponents.numberInputTokens.iconButtonFontStyle}: var(--plasma-typo-body-l-font-style);
                ${_styledcomponents.numberInputTokens.iconButtonFontWeight}: var(--plasma-typo-body-l-bold-font-weight);
                ${_styledcomponents.numberInputTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);
                ${_styledcomponents.numberInputTokens.iconButtonLineHeight}: var(--plasma-typo-body-l-line-height);

                ${_styledcomponents.numberInputTokens.iconButtonRadius}: 0.875rem;
                ${_styledcomponents.numberInputTokens.iconButtonSegmentationRadius}: 0.375rem;

                ${_styledcomponents.numberInputTokens.inputWrapperMargin}: 0 0.125rem;
                ${_styledcomponents.numberInputTokens.inputWrapperBorderRadius}: 0.875rem;
                ${_styledcomponents.numberInputTokens.textWrapperHeight}: 3.5rem;
                ${_styledcomponents.numberInputTokens.textWrapperPadding}: 1.063rem 1.125rem;

                ${_styledcomponents.numberInputTokens.fontFamily}: var(--plasma-typo-body-l-font-family);
                ${_styledcomponents.numberInputTokens.fontSize}: var(--plasma-typo-body-l-font-size);
                ${_styledcomponents.numberInputTokens.fontStyle}: var(--plasma-typo-body-l-font-style);
                ${_styledcomponents.numberInputTokens.fontWeight}: var(--plasma-typo-body-l-font-weight);
                ${_styledcomponents.numberInputTokens.letterSpacing}: var(--plasma-typo-body-l-letter-spacing);
                ${_styledcomponents.numberInputTokens.lineHeight}: var(--plasma-typo-body-l-line-height);

                ${_styledcomponents.numberInputTokens.textBeforeMarginRight}: 0.25rem;
                ${_styledcomponents.numberInputTokens.textAfterMarginLeft}: 0.25rem;

                ${_styledcomponents.numberInputTokens.loaderSpinnerSize}: 1.375rem;
            `,
            m: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.rootMinWidth}: 10.25rem;
                ${_styledcomponents.numberInputTokens.iconButtonHeight}: 3rem;
                ${_styledcomponents.numberInputTokens.iconButtonWidth}: 3rem;
                ${_styledcomponents.numberInputTokens.iconButtonPadding}: 1.25rem;
                ${_styledcomponents.numberInputTokens.iconButtonFontFamily}: var(--plasma-typo-body-m-font-family);
                ${_styledcomponents.numberInputTokens.iconButtonFontSize}: var(--plasma-typo-body-m-font-size);
                ${_styledcomponents.numberInputTokens.iconButtonFontStyle}: var(--plasma-typo-body-m-font-style);
                ${_styledcomponents.numberInputTokens.iconButtonFontWeight}: var(--plasma-typo-body-m-bold-font-weight);
                ${_styledcomponents.numberInputTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
                ${_styledcomponents.numberInputTokens.iconButtonLineHeight}: var(--plasma-typo-body-m-line-height);

                ${_styledcomponents.numberInputTokens.iconButtonRadius}: 0.75rem;
                ${_styledcomponents.numberInputTokens.iconButtonSegmentationRadius}: 0.25rem;

                ${_styledcomponents.numberInputTokens.inputWrapperMargin}: 0 0.125rem;
                ${_styledcomponents.numberInputTokens.inputWrapperBorderRadius}: 0.75rem;
                ${_styledcomponents.numberInputTokens.textWrapperHeight}: 3rem;
                ${_styledcomponents.numberInputTokens.textWrapperPadding}: 0.875rem 1rem;

                ${_styledcomponents.numberInputTokens.fontFamily}: var(--plasma-typo-body-m-font-family);
                ${_styledcomponents.numberInputTokens.fontSize}: var(--plasma-typo-body-m-font-size);
                ${_styledcomponents.numberInputTokens.fontStyle}: var(--plasma-typo-body-m-font-style);
                ${_styledcomponents.numberInputTokens.fontWeight}: var(--plasma-typo-body-m-font-weight);
                ${_styledcomponents.numberInputTokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);
                ${_styledcomponents.numberInputTokens.lineHeight}: var(--plasma-typo-body-m-line-height);

                ${_styledcomponents.numberInputTokens.textBeforeMarginRight}: 0.25rem;
                ${_styledcomponents.numberInputTokens.textAfterMarginLeft}: 0.25rem;

                ${_styledcomponents.numberInputTokens.loaderSpinnerSize}: 1.375rem;
            `,
            s: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.rootMinWidth}: 8.75rem;
                ${_styledcomponents.numberInputTokens.iconButtonHeight}: 2.5rem;
                ${_styledcomponents.numberInputTokens.iconButtonWidth}: 2.5rem;
                ${_styledcomponents.numberInputTokens.iconButtonPadding}: 1rem;
                ${_styledcomponents.numberInputTokens.iconButtonFontFamily}: var(--plasma-typo-body-s-font-family);
                ${_styledcomponents.numberInputTokens.iconButtonFontSize}: var(--plasma-typo-body-s-font-size);
                ${_styledcomponents.numberInputTokens.iconButtonFontStyle}: var(--plasma-typo-body-s-font-style);
                ${_styledcomponents.numberInputTokens.iconButtonFontWeight}: var(--plasma-typo-body-s-bold-font-weight);
                ${_styledcomponents.numberInputTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
                ${_styledcomponents.numberInputTokens.iconButtonLineHeight}: var(--plasma-typo-body-s-line-height);

                ${_styledcomponents.numberInputTokens.iconButtonRadius}: 0.625rem;
                ${_styledcomponents.numberInputTokens.iconButtonSegmentationRadius}: 0.25rem;

                ${_styledcomponents.numberInputTokens.inputWrapperMargin}: 0 0.125rem;
                ${_styledcomponents.numberInputTokens.inputWrapperBorderRadius}: 0.625rem;
                ${_styledcomponents.numberInputTokens.textWrapperHeight}: 2.5rem;
                ${_styledcomponents.numberInputTokens.textWrapperPadding}: 0.688rem 0.875rem;

                ${_styledcomponents.numberInputTokens.fontFamily}: var(--plasma-typo-body-s-font-family);
                ${_styledcomponents.numberInputTokens.fontSize}: var(--plasma-typo-body-s-font-size);
                ${_styledcomponents.numberInputTokens.fontStyle}: var(--plasma-typo-body-s-font-style);
                ${_styledcomponents.numberInputTokens.fontWeight}: var(--plasma-typo-body-s-font-weight);
                ${_styledcomponents.numberInputTokens.letterSpacing}: var(--plasma-typo-body-s-letter-spacing);
                ${_styledcomponents.numberInputTokens.lineHeight}: var(--plasma-typo-body-s-line-height);

                ${_styledcomponents.numberInputTokens.textBeforeMarginRight}: 0.25rem;
                ${_styledcomponents.numberInputTokens.textAfterMarginLeft}: 0.25rem;

                ${_styledcomponents.numberInputTokens.loaderSpinnerSize}: 1.375rem;
            `,
            xs: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.rootMinWidth}: 6.875rem;
                ${_styledcomponents.numberInputTokens.iconButtonHeight}: 2rem;
                ${_styledcomponents.numberInputTokens.iconButtonWidth}: 2rem;
                ${_styledcomponents.numberInputTokens.iconButtonPadding}: 0.75rem;
                ${_styledcomponents.numberInputTokens.iconButtonFontFamily}: var(--plasma-typo-body-xs-font-family);
                ${_styledcomponents.numberInputTokens.iconButtonFontSize}: var(--plasma-typo-body-xs-font-size);
                ${_styledcomponents.numberInputTokens.iconButtonFontStyle}: var(--plasma-typo-body-xs-font-style);
                ${_styledcomponents.numberInputTokens.iconButtonFontWeight}: var(--plasma-typo-body-xs-bold-font-weight);
                ${_styledcomponents.numberInputTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
                ${_styledcomponents.numberInputTokens.iconButtonLineHeight}: var(--plasma-typo-body-xs-line-height);

                ${_styledcomponents.numberInputTokens.iconButtonRadius}: 0.5rem;
                ${_styledcomponents.numberInputTokens.iconButtonSegmentationRadius}: 0.125rem;

                ${_styledcomponents.numberInputTokens.inputWrapperMargin}: 0 0.125rem;
                ${_styledcomponents.numberInputTokens.inputWrapperBorderRadius}: 0.5rem;
                ${_styledcomponents.numberInputTokens.textWrapperHeight}: 2rem;
                ${_styledcomponents.numberInputTokens.textWrapperPadding}: 0.563rem 0.625rem;

                ${_styledcomponents.numberInputTokens.fontFamily}: var(--plasma-typo-body-xs-font-family);
                ${_styledcomponents.numberInputTokens.fontSize}: var(--plasma-typo-body-xs-font-size);
                ${_styledcomponents.numberInputTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);
                ${_styledcomponents.numberInputTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);
                ${_styledcomponents.numberInputTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
                ${_styledcomponents.numberInputTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);

                ${_styledcomponents.numberInputTokens.textBeforeMarginRight}: 0.25rem;
                ${_styledcomponents.numberInputTokens.textAfterMarginLeft}: 0.25rem;

                ${_styledcomponents.numberInputTokens.loaderSpinnerSize}: 1rem;
            `
        },
        shape: {
            cornered: (0, _styledcomponents.css)``,
            pilled: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.iconButtonRadius}: 50%;
            `
        },
        inputBackgroundType: {
            fill: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.backgroundColor}: var(--surface-transparent-primary);
                ${_styledcomponents.numberInputTokens.backgroundColorHover}: var(--surface-transparent-primary);
            `,
            clear: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.backgroundColor}: transparent;
                ${_styledcomponents.numberInputTokens.backgroundColorHover}: transparent;
            `
        },
        segmentation: {
            default: (0, _styledcomponents.css)``,
            segmented: (0, _styledcomponents.css)``,
            solid: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.iconButtonSegmentationRadius}: 0;
            `
        },
        disabled: {
            true: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.disabledOpacity}: 0.4;
            `
        }
    }
};
