"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: 'l',
        shape: 'cornered',
        inputBackgroundType: 'fill'
    },
    variations: {
        view: {
            default: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.caretColor}: ${_sdds_serv.textAccent};
                ${_styledcomponents.numberInputTokens.errorColor}: ${_sdds_serv.textNegative};
                ${_styledcomponents.numberInputTokens.backgroundErrorColor}: ${_sdds_serv.surfaceTransparentNegative};

                ${_styledcomponents.numberInputTokens.color}: ${_sdds_serv.textPrimary};
                ${_styledcomponents.numberInputTokens.colorSolid}: ${_sdds_serv.inverseTextPrimary};
                ${_styledcomponents.numberInputTokens.additionalTextColor}: ${_sdds_serv.textTertiary};
                ${_styledcomponents.numberInputTokens.additionalTextColorSolid}: ${_sdds_serv.inverseTextTertiary};
                ${_styledcomponents.numberInputTokens.backgroundColorFocus}: ${_sdds_serv.surfaceTransparentSecondary};
                ${_styledcomponents.numberInputTokens.backgroundColorSolidFocus}: ${_sdds_serv.inverseSurfaceTransparentSecondary};
                ${_styledcomponents.numberInputTokens.backgroundColorSolid}: ${_sdds_serv.surfaceSolidDefault};

                ${_styledcomponents.numberInputTokens.iconButtonColor}: ${_sdds_serv.inverseTextPrimary};
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColor}: ${_sdds_serv.surfaceSolidDefault};
                ${_styledcomponents.numberInputTokens.iconButtonColorHover}: ${_sdds_serv.inverseTextPrimary};
                ${_styledcomponents.numberInputTokens.iconButtonColorSolidHover}: ${_sdds_serv.inverseTextPrimaryHover};
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColorHover}: ${_sdds_serv.surfaceSolidDefaultHover};
                ${_styledcomponents.numberInputTokens.iconButtonColorActive}: ${_sdds_serv.inverseTextPrimary};
                ${_styledcomponents.numberInputTokens.iconButtonColorSolidActive}: ${_sdds_serv.inverseTextPrimaryActive};
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColorActive}: ${_sdds_serv.surfaceSolidDefaultActive};

                ${_styledcomponents.numberInputTokens.actionButtonDisabledOpacity}: 0.4;

                ${_styledcomponents.numberInputTokens.loaderSpinnerColor}: inherit;
                ${_styledcomponents.numberInputTokens.loaderSpinnerColorSolid}: inherit;
            `,
            secondary: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.caretColor}: ${_sdds_serv.textAccent};
                ${_styledcomponents.numberInputTokens.errorColor}: ${_sdds_serv.textNegative};
                ${_styledcomponents.numberInputTokens.backgroundErrorColor}: ${_sdds_serv.surfaceTransparentNegative};

                ${_styledcomponents.numberInputTokens.color}: ${_sdds_serv.textPrimary};
                ${_styledcomponents.numberInputTokens.colorSolid}: ${_sdds_serv.textPrimary};
                ${_styledcomponents.numberInputTokens.additionalTextColor}: ${_sdds_serv.textTertiary};
                ${_styledcomponents.numberInputTokens.additionalTextColorSolid}: ${_sdds_serv.textTertiary};
                ${_styledcomponents.numberInputTokens.backgroundColorFocus}: ${_sdds_serv.surfaceTransparentSecondary};
                ${_styledcomponents.numberInputTokens.backgroundColorSolidFocus}: ${_sdds_serv.surfaceTransparentSecondary};
                ${_styledcomponents.numberInputTokens.backgroundColorSolid}: ${_sdds_serv.surfaceTransparentSecondary};

                ${_styledcomponents.numberInputTokens.iconButtonColor}: ${_sdds_serv.textPrimary};
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColor}: ${_sdds_serv.surfaceTransparentSecondary};
                ${_styledcomponents.numberInputTokens.iconButtonColorHover}: ${_sdds_serv.textPrimary};
                ${_styledcomponents.numberInputTokens.iconButtonColorSolidHover}: ${_sdds_serv.textPrimaryHover};
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColorHover}: ${_sdds_serv.surfaceTransparentSecondaryHover};
                ${_styledcomponents.numberInputTokens.iconButtonColorActive}: ${_sdds_serv.textPrimary};
                ${_styledcomponents.numberInputTokens.iconButtonColorSolidActive}: ${_sdds_serv.textPrimaryActive};
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColorActive}: ${_sdds_serv.surfaceTransparentSecondaryActive};

                ${_styledcomponents.numberInputTokens.actionButtonDisabledOpacity}: 0.4;

                ${_styledcomponents.numberInputTokens.loaderSpinnerColor}: inherit;
                ${_styledcomponents.numberInputTokens.loaderSpinnerColorSolid}: inherit;
            `,
            accent: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.caretColor}: ${_sdds_serv.textAccent};
                ${_styledcomponents.numberInputTokens.caretColorSolid}: ${_sdds_serv.inverseTextPrimary};
                ${_styledcomponents.numberInputTokens.errorColor}: ${_sdds_serv.textNegative};
                ${_styledcomponents.numberInputTokens.backgroundErrorColor}: ${_sdds_serv.surfaceTransparentNegative};

                ${_styledcomponents.numberInputTokens.color}: ${_sdds_serv.textPrimary};
                ${_styledcomponents.numberInputTokens.colorSolid}: ${_sdds_serv.onDarkTextPrimary};
                ${_styledcomponents.numberInputTokens.additionalTextColor}: ${_sdds_serv.textTertiary};
                ${_styledcomponents.numberInputTokens.additionalTextColorSolid}: ${_sdds_serv.onDarkTextTertiary};
                ${_styledcomponents.numberInputTokens.backgroundColorFocus}: ${_sdds_serv.surfaceTransparentSecondary};
                ${_styledcomponents.numberInputTokens.backgroundColorSolidFocus}: ${_sdds_serv.onDarkSurfaceTransparentSecondary};
                ${_styledcomponents.numberInputTokens.backgroundColorSolid}: ${_sdds_serv.surfaceAccent};

                ${_styledcomponents.numberInputTokens.iconButtonColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColor}: ${_sdds_serv.surfaceAccent};
                ${_styledcomponents.numberInputTokens.iconButtonColorHover}: ${_sdds_serv.inverseTextPrimary};
                ${_styledcomponents.numberInputTokens.iconButtonColorSolidHover}: ${_sdds_serv.onDarkTextPrimaryHover};
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColorHover}: ${_sdds_serv.surfaceAccentHover};
                ${_styledcomponents.numberInputTokens.iconButtonColorActive}: ${_sdds_serv.inverseTextPrimary};
                ${_styledcomponents.numberInputTokens.iconButtonColorSolidActive}: ${_sdds_serv.onDarkTextPrimaryActive};
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColorActive}: ${_sdds_serv.surfaceAccentActive};

                ${_styledcomponents.numberInputTokens.actionButtonDisabledOpacity}: 0.4;

                ${_styledcomponents.numberInputTokens.loaderSpinnerColor}: inherit;
                ${_styledcomponents.numberInputTokens.loaderSpinnerColorSolid}: inherit;
            `,
            clear: (0, _styledcomponents.css)`
                ${_styledcomponents.numberInputTokens.caretColor}: ${_sdds_serv.textAccent};
                ${_styledcomponents.numberInputTokens.caretColorSolid}: ${_sdds_serv.textAccent};
                ${_styledcomponents.numberInputTokens.errorColor}: ${_sdds_serv.textNegative};
                ${_styledcomponents.numberInputTokens.backgroundErrorColor}: ${_sdds_serv.surfaceTransparentNegative};

                ${_styledcomponents.numberInputTokens.color}: ${_sdds_serv.textPrimary};
                ${_styledcomponents.numberInputTokens.colorSolid}: ${_sdds_serv.textPrimary};
                ${_styledcomponents.numberInputTokens.iconButtonColorSolidHover}: ${_sdds_serv.textPrimaryHover};
                ${_styledcomponents.numberInputTokens.additionalTextColor}: ${_sdds_serv.textTertiary};
                ${_styledcomponents.numberInputTokens.additionalTextColorSolid}: ${_sdds_serv.textTertiary};
                ${_styledcomponents.numberInputTokens.backgroundColorFocus}: ${_sdds_serv.surfaceTransparentSecondary};
                ${_styledcomponents.numberInputTokens.backgroundColorSolidFocus}: ${_sdds_serv.surfaceTransparentSecondary};
                ${_styledcomponents.numberInputTokens.backgroundColorSolid}: transparent;

                ${_styledcomponents.numberInputTokens.iconButtonColor}: ${_sdds_serv.textPrimary};
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColor}: transparent;
                ${_styledcomponents.numberInputTokens.iconButtonColorHover}: ${_sdds_serv.textPrimaryHover};
                ${_styledcomponents.numberInputTokens.iconButtonBackgroundColorHover}: transparent;
                ${_styledcomponents.numberInputTokens.iconButtonColorActive}: ${_sdds_serv.textPrimaryActive};
                ${_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}: ${_sdds_serv.bodyL.fontFamily};
                ${_styledcomponents.numberInputTokens.iconButtonFontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_styledcomponents.numberInputTokens.iconButtonFontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_styledcomponents.numberInputTokens.iconButtonFontWeight}: ${_sdds_serv.bodyLBold.fontWeight};
                ${_styledcomponents.numberInputTokens.iconButtonLetterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_styledcomponents.numberInputTokens.iconButtonLineHeight}: ${_sdds_serv.bodyL.lineHeight};

                ${_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}: ${_sdds_serv.bodyL.fontFamily};
                ${_styledcomponents.numberInputTokens.fontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_styledcomponents.numberInputTokens.fontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_styledcomponents.numberInputTokens.fontWeight}: ${_sdds_serv.bodyL.fontWeight};
                ${_styledcomponents.numberInputTokens.letterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_styledcomponents.numberInputTokens.lineHeight}: ${_sdds_serv.bodyL.lineHeight};

                ${_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}: ${_sdds_serv.bodyM.fontFamily};
                ${_styledcomponents.numberInputTokens.iconButtonFontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_styledcomponents.numberInputTokens.iconButtonFontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_styledcomponents.numberInputTokens.iconButtonFontWeight}: ${_sdds_serv.bodyMBold.fontWeight};
                ${_styledcomponents.numberInputTokens.iconButtonLetterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_styledcomponents.numberInputTokens.iconButtonLineHeight}: ${_sdds_serv.bodyM.lineHeight};

                ${_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}: ${_sdds_serv.bodyM.fontFamily};
                ${_styledcomponents.numberInputTokens.fontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_styledcomponents.numberInputTokens.fontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_styledcomponents.numberInputTokens.fontWeight}: ${_sdds_serv.bodyM.fontWeight};
                ${_styledcomponents.numberInputTokens.letterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_styledcomponents.numberInputTokens.lineHeight}: ${_sdds_serv.bodyM.lineHeight};

                ${_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}: ${_sdds_serv.bodyS.fontFamily};
                ${_styledcomponents.numberInputTokens.iconButtonFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_styledcomponents.numberInputTokens.iconButtonFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_styledcomponents.numberInputTokens.iconButtonFontWeight}: ${_sdds_serv.bodySBold.fontWeight};
                ${_styledcomponents.numberInputTokens.iconButtonLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_styledcomponents.numberInputTokens.iconButtonLineHeight}: ${_sdds_serv.bodyS.lineHeight};

                ${_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}: ${_sdds_serv.bodyS.fontFamily};
                ${_styledcomponents.numberInputTokens.fontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_styledcomponents.numberInputTokens.fontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_styledcomponents.numberInputTokens.fontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_styledcomponents.numberInputTokens.letterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_styledcomponents.numberInputTokens.lineHeight}: ${_sdds_serv.bodyS.lineHeight};

                ${_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}: ${_sdds_serv.bodyXS.fontFamily};
                ${_styledcomponents.numberInputTokens.iconButtonFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_styledcomponents.numberInputTokens.iconButtonFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_styledcomponents.numberInputTokens.iconButtonFontWeight}: ${_sdds_serv.bodyXSBold.fontWeight};
                ${_styledcomponents.numberInputTokens.iconButtonLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_styledcomponents.numberInputTokens.iconButtonLineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_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}: ${_sdds_serv.bodyXS.fontFamily};
                ${_styledcomponents.numberInputTokens.fontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_styledcomponents.numberInputTokens.fontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_styledcomponents.numberInputTokens.fontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_styledcomponents.numberInputTokens.letterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_styledcomponents.numberInputTokens.lineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_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}: ${_sdds_serv.surfaceTransparentPrimary};
                ${_styledcomponents.numberInputTokens.backgroundColorHover}: ${_sdds_serv.surfaceTransparentPrimary};
            `,
            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;
            `
        }
    }
};
