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

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

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

                ${_emotion.numberInputTokens.actionButtonDisabledOpacity}: 0.4;

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

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

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

                ${_emotion.numberInputTokens.actionButtonDisabledOpacity}: 0.4;

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

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

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

                ${_emotion.numberInputTokens.actionButtonDisabledOpacity}: 0.4;

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

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

                ${_emotion.numberInputTokens.iconButtonColor}: var(--text-primary);
                ${_emotion.numberInputTokens.iconButtonBackgroundColor}: transparent;
                ${_emotion.numberInputTokens.iconButtonColorHover}: var(--text-primary-hover);
                ${_emotion.numberInputTokens.iconButtonBackgroundColorHover}: transparent;
                ${_emotion.numberInputTokens.iconButtonColorActive}: var(--text-primary-active);
                ${_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}: var(--plasma-typo-body-l-font-family);
                ${_emotion.numberInputTokens.iconButtonFontSize}: var(--plasma-typo-body-l-font-size);
                ${_emotion.numberInputTokens.iconButtonFontStyle}: var(--plasma-typo-body-l-font-style);
                ${_emotion.numberInputTokens.iconButtonFontWeight}: var(--plasma-typo-body-l-bold-font-weight);
                ${_emotion.numberInputTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);
                ${_emotion.numberInputTokens.iconButtonLineHeight}: var(--plasma-typo-body-l-line-height);

                ${_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}: var(--plasma-typo-body-l-font-family);
                ${_emotion.numberInputTokens.fontSize}: var(--plasma-typo-body-l-font-size);
                ${_emotion.numberInputTokens.fontStyle}: var(--plasma-typo-body-l-font-style);
                ${_emotion.numberInputTokens.fontWeight}: var(--plasma-typo-body-l-font-weight);
                ${_emotion.numberInputTokens.letterSpacing}: var(--plasma-typo-body-l-letter-spacing);
                ${_emotion.numberInputTokens.lineHeight}: var(--plasma-typo-body-l-line-height);

                ${_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}: var(--plasma-typo-body-m-font-family);
                ${_emotion.numberInputTokens.iconButtonFontSize}: var(--plasma-typo-body-m-font-size);
                ${_emotion.numberInputTokens.iconButtonFontStyle}: var(--plasma-typo-body-m-font-style);
                ${_emotion.numberInputTokens.iconButtonFontWeight}: var(--plasma-typo-body-m-bold-font-weight);
                ${_emotion.numberInputTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
                ${_emotion.numberInputTokens.iconButtonLineHeight}: var(--plasma-typo-body-m-line-height);

                ${_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}: var(--plasma-typo-body-m-font-family);
                ${_emotion.numberInputTokens.fontSize}: var(--plasma-typo-body-m-font-size);
                ${_emotion.numberInputTokens.fontStyle}: var(--plasma-typo-body-m-font-style);
                ${_emotion.numberInputTokens.fontWeight}: var(--plasma-typo-body-m-font-weight);
                ${_emotion.numberInputTokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);
                ${_emotion.numberInputTokens.lineHeight}: var(--plasma-typo-body-m-line-height);

                ${_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}: var(--plasma-typo-body-s-font-family);
                ${_emotion.numberInputTokens.iconButtonFontSize}: var(--plasma-typo-body-s-font-size);
                ${_emotion.numberInputTokens.iconButtonFontStyle}: var(--plasma-typo-body-s-font-style);
                ${_emotion.numberInputTokens.iconButtonFontWeight}: var(--plasma-typo-body-s-bold-font-weight);
                ${_emotion.numberInputTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
                ${_emotion.numberInputTokens.iconButtonLineHeight}: var(--plasma-typo-body-s-line-height);

                ${_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}: var(--plasma-typo-body-s-font-family);
                ${_emotion.numberInputTokens.fontSize}: var(--plasma-typo-body-s-font-size);
                ${_emotion.numberInputTokens.fontStyle}: var(--plasma-typo-body-s-font-style);
                ${_emotion.numberInputTokens.fontWeight}: var(--plasma-typo-body-s-font-weight);
                ${_emotion.numberInputTokens.letterSpacing}: var(--plasma-typo-body-s-letter-spacing);
                ${_emotion.numberInputTokens.lineHeight}: var(--plasma-typo-body-s-line-height);

                ${_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}: var(--plasma-typo-body-xs-font-family);
                ${_emotion.numberInputTokens.iconButtonFontSize}: var(--plasma-typo-body-xs-font-size);
                ${_emotion.numberInputTokens.iconButtonFontStyle}: var(--plasma-typo-body-xs-font-style);
                ${_emotion.numberInputTokens.iconButtonFontWeight}: var(--plasma-typo-body-xs-bold-font-weight);
                ${_emotion.numberInputTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
                ${_emotion.numberInputTokens.iconButtonLineHeight}: var(--plasma-typo-body-xs-line-height);

                ${_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}: var(--plasma-typo-body-xs-font-family);
                ${_emotion.numberInputTokens.fontSize}: var(--plasma-typo-body-xs-font-size);
                ${_emotion.numberInputTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);
                ${_emotion.numberInputTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);
                ${_emotion.numberInputTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
                ${_emotion.numberInputTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);

                ${_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}: var(--surface-transparent-primary);
                ${_emotion.numberInputTokens.backgroundColorHover}: var(--surface-transparent-primary);
            `,
            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;
            `
        }
    }
};
