"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 _sdds_serv = require("@salutejs/sdds-themes/tokens/sdds_serv");
const config = {
    defaults: {
        view: 'default',
        size: 'l',
        shape: 'cornered',
        inputBackgroundType: 'fill'
    },
    variations: {
        view: {
            default: (0, _emotion.css)`
                ${_emotion.numberInputTokens.caretColor}: ${_sdds_serv.textAccent};
                ${_emotion.numberInputTokens.errorColor}: ${_sdds_serv.textNegative};
                ${_emotion.numberInputTokens.backgroundErrorColor}: ${_sdds_serv.surfaceTransparentNegative};

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

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

                ${_emotion.numberInputTokens.actionButtonDisabledOpacity}: 0.4;

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

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

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

                ${_emotion.numberInputTokens.actionButtonDisabledOpacity}: 0.4;

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

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

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

                ${_emotion.numberInputTokens.actionButtonDisabledOpacity}: 0.4;

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

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

                ${_emotion.numberInputTokens.iconButtonColor}: ${_sdds_serv.textPrimary};
                ${_emotion.numberInputTokens.iconButtonBackgroundColor}: transparent;
                ${_emotion.numberInputTokens.iconButtonColorHover}: ${_sdds_serv.textPrimaryHover};
                ${_emotion.numberInputTokens.iconButtonBackgroundColorHover}: transparent;
                ${_emotion.numberInputTokens.iconButtonColorActive}: ${_sdds_serv.textPrimaryActive};
                ${_emotion.numberInputTokens.iconButtonBackgroundColorActive}: transparent;

                ${_emotion.numberInputTokens.actionButtonDisabledOpacity}: 0.4;

                ${_emotion.numberInputTokens.loaderSpinnerColor}: inherit;
                ${_emotion.numberInputTokens.loaderSpinnerColorSolid}: inherit;
            `
        },
        size: {
            l: (0, _emotion.css)`
                ${_emotion.numberInputTokens.rootMinWidth}: 11.75rem;
                ${_emotion.numberInputTokens.iconButtonHeight}: 3.5rem;
                ${_emotion.numberInputTokens.iconButtonWidth}: 3.5rem;
                ${_emotion.numberInputTokens.iconButtonPadding}: 1.5rem;
                ${_emotion.numberInputTokens.iconButtonFontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_emotion.numberInputTokens.iconButtonFontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_emotion.numberInputTokens.iconButtonFontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_emotion.numberInputTokens.iconButtonFontWeight}: ${_sdds_serv.bodyLBold.fontWeight};
                ${_emotion.numberInputTokens.iconButtonLetterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_emotion.numberInputTokens.iconButtonLineHeight}: ${_sdds_serv.bodyL.lineHeight};

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

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

                ${_emotion.numberInputTokens.fontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_emotion.numberInputTokens.fontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_emotion.numberInputTokens.fontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_emotion.numberInputTokens.fontWeight}: ${_sdds_serv.bodyL.fontWeight};
                ${_emotion.numberInputTokens.letterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_emotion.numberInputTokens.lineHeight}: ${_sdds_serv.bodyL.lineHeight};

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

                ${_emotion.numberInputTokens.loaderSpinnerSize}: 1.375rem;
            `,
            m: (0, _emotion.css)`
                ${_emotion.numberInputTokens.rootMinWidth}: 10.25rem;
                ${_emotion.numberInputTokens.iconButtonHeight}: 3rem;
                ${_emotion.numberInputTokens.iconButtonWidth}: 3rem;
                ${_emotion.numberInputTokens.iconButtonPadding}: 1.25rem;
                ${_emotion.numberInputTokens.iconButtonFontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_emotion.numberInputTokens.iconButtonFontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_emotion.numberInputTokens.iconButtonFontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_emotion.numberInputTokens.iconButtonFontWeight}: ${_sdds_serv.bodyMBold.fontWeight};
                ${_emotion.numberInputTokens.iconButtonLetterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_emotion.numberInputTokens.iconButtonLineHeight}: ${_sdds_serv.bodyM.lineHeight};

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

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

                ${_emotion.numberInputTokens.fontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_emotion.numberInputTokens.fontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_emotion.numberInputTokens.fontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_emotion.numberInputTokens.fontWeight}: ${_sdds_serv.bodyM.fontWeight};
                ${_emotion.numberInputTokens.letterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_emotion.numberInputTokens.lineHeight}: ${_sdds_serv.bodyM.lineHeight};

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

                ${_emotion.numberInputTokens.loaderSpinnerSize}: 1.375rem;
            `,
            s: (0, _emotion.css)`
                ${_emotion.numberInputTokens.rootMinWidth}: 8.75rem;
                ${_emotion.numberInputTokens.iconButtonHeight}: 2.5rem;
                ${_emotion.numberInputTokens.iconButtonWidth}: 2.5rem;
                ${_emotion.numberInputTokens.iconButtonPadding}: 1rem;
                ${_emotion.numberInputTokens.iconButtonFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_emotion.numberInputTokens.iconButtonFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_emotion.numberInputTokens.iconButtonFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.numberInputTokens.iconButtonFontWeight}: ${_sdds_serv.bodySBold.fontWeight};
                ${_emotion.numberInputTokens.iconButtonLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_emotion.numberInputTokens.iconButtonLineHeight}: ${_sdds_serv.bodyS.lineHeight};

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

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

                ${_emotion.numberInputTokens.fontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_emotion.numberInputTokens.fontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_emotion.numberInputTokens.fontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.numberInputTokens.fontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_emotion.numberInputTokens.letterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_emotion.numberInputTokens.lineHeight}: ${_sdds_serv.bodyS.lineHeight};

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

                ${_emotion.numberInputTokens.loaderSpinnerSize}: 1.375rem;
            `,
            xs: (0, _emotion.css)`
                ${_emotion.numberInputTokens.rootMinWidth}: 6.875rem;
                ${_emotion.numberInputTokens.iconButtonHeight}: 2rem;
                ${_emotion.numberInputTokens.iconButtonWidth}: 2rem;
                ${_emotion.numberInputTokens.iconButtonPadding}: 0.75rem;
                ${_emotion.numberInputTokens.iconButtonFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_emotion.numberInputTokens.iconButtonFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_emotion.numberInputTokens.iconButtonFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_emotion.numberInputTokens.iconButtonFontWeight}: ${_sdds_serv.bodyXSBold.fontWeight};
                ${_emotion.numberInputTokens.iconButtonLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_emotion.numberInputTokens.iconButtonLineHeight}: ${_sdds_serv.bodyXS.lineHeight};

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

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

                ${_emotion.numberInputTokens.fontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_emotion.numberInputTokens.fontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_emotion.numberInputTokens.fontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_emotion.numberInputTokens.fontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_emotion.numberInputTokens.letterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_emotion.numberInputTokens.lineHeight}: ${_sdds_serv.bodyXS.lineHeight};

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

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