"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: 'clear',
        size: 'xs'
    },
    variations: {
        view: {
            clear: (0, _emotion.css)`
                ${_emotion.segmentTokens.itemColor}: ${_sdds_serv.textSecondary};
                ${_emotion.segmentTokens.itemBackgroundColor}: transparent;
                ${_emotion.segmentTokens.itemColorHover}: ${_sdds_serv.textPrimaryHover};
                ${_emotion.segmentTokens.itemBackgroundColorHover}: transparent;
                ${_emotion.segmentTokens.itemAdditionalColor}: ${_sdds_serv.textTertiary};
                ${_emotion.segmentTokens.itemAdditionalColorHover}: ${_sdds_serv.textSecondary};
                ${_emotion.segmentTokens.itemSelectedColor}: ${_sdds_serv.textPrimaryHover};
                ${_emotion.segmentTokens.itemSelectedBackgroundColor}: transparent;
                ${_emotion.segmentTokens.itemSelectedColorHover}: ${_sdds_serv.textPrimary};
                ${_emotion.segmentTokens.itemSelectedBackgroundColorHover}: transparent;
                ${_emotion.segmentTokens.itemSelectedAdditionalColor}: ${_sdds_serv.textSecondary};
                ${_emotion.segmentTokens.itemSelectedAdditionalColorHover}: ${_sdds_serv.textSecondary};

                ${_emotion.segmentTokens.outlineFocusColor}: ${_sdds_serv.textAccent};
            `,
            secondary: (0, _emotion.css)`
                ${_emotion.segmentTokens.itemColor}: ${_sdds_serv.textPrimary};
                ${_emotion.segmentTokens.itemBackgroundColor}: transparent;
                ${_emotion.segmentTokens.itemColorHover}: ${_sdds_serv.textPrimaryHover};
                ${_emotion.segmentTokens.itemBackgroundColorHover}: transparent;
                ${_emotion.segmentTokens.itemAdditionalColor}: ${_sdds_serv.textSecondary};
                ${_emotion.segmentTokens.itemAdditionalColorHover}: ${_sdds_serv.textSecondary};
                ${_emotion.segmentTokens.itemSelectedColor}: ${_sdds_serv.textPrimary};
                ${_emotion.segmentTokens.itemSelectedBackgroundColor}: ${_sdds_serv.surfaceTransparentCard};
                ${_emotion.segmentTokens.itemSelectedColorHover}: ${_sdds_serv.textPrimaryHover};
                ${_emotion.segmentTokens.itemSelectedBackgroundColorHover}: ${_sdds_serv.surfaceTransparentCard};
                ${_emotion.segmentTokens.itemSelectedAdditionalColor}: ${_sdds_serv.textSecondary};
                ${_emotion.segmentTokens.itemSelectedAdditionalColorHover}: ${_sdds_serv.textSecondary};

                ${_emotion.segmentTokens.outlineFocusColor}: ${_sdds_serv.textAccent};
            `,
            default: (0, _emotion.css)`
                ${_emotion.segmentTokens.itemColor}: ${_sdds_serv.textPrimary};
                ${_emotion.segmentTokens.itemBackgroundColor}: transparent;
                ${_emotion.segmentTokens.itemColorHover}: ${_sdds_serv.textPrimaryHover};
                ${_emotion.segmentTokens.itemBackgroundColorHover}: transparent;
                ${_emotion.segmentTokens.itemAdditionalColor}: ${_sdds_serv.textSecondary};
                ${_emotion.segmentTokens.itemAdditionalColorHover}: ${_sdds_serv.textSecondary};
                ${_emotion.segmentTokens.itemSelectedColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.segmentTokens.itemSelectedBackgroundColor}: ${_sdds_serv.surfaceSolidDefault};
                ${_emotion.segmentTokens.itemSelectedColorHover}: ${_sdds_serv.inverseTextPrimaryHover};
                ${_emotion.segmentTokens.itemSelectedBackgroundColorHover}: ${_sdds_serv.surfaceSolidDefault};
                ${_emotion.segmentTokens.itemSelectedAdditionalColor}: ${_sdds_serv.inverseTextSecondary};
                ${_emotion.segmentTokens.itemSelectedAdditionalColorHover}: ${_sdds_serv.inverseTextSecondary};

                ${_emotion.segmentTokens.outlineFocusColor}: ${_sdds_serv.textAccent};
            `,
            accent: (0, _emotion.css)`
                ${_emotion.segmentTokens.itemColor}: ${_sdds_serv.textPrimary};
                ${_emotion.segmentTokens.itemBackgroundColor}: transparent;
                ${_emotion.segmentTokens.itemColorHover}: ${_sdds_serv.textPrimaryHover};
                ${_emotion.segmentTokens.itemBackgroundColorHover}: transparent;
                ${_emotion.segmentTokens.itemAdditionalColor}: ${_sdds_serv.textSecondary};
                ${_emotion.segmentTokens.itemAdditionalColorHover}: ${_sdds_serv.textSecondary};
                ${_emotion.segmentTokens.itemSelectedColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.segmentTokens.itemSelectedBackgroundColor}: ${_sdds_serv.surfaceAccent};
                ${_emotion.segmentTokens.itemSelectedColorHover}: ${_sdds_serv.onDarkTextPrimaryHover};
                ${_emotion.segmentTokens.itemSelectedBackgroundColorHover}: ${_sdds_serv.surfaceAccent};
                ${_emotion.segmentTokens.itemSelectedAdditionalColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.segmentTokens.itemSelectedAdditionalColorHover}: ${_sdds_serv.onDarkTextSecondary};

                ${_emotion.segmentTokens.outlineFocusColor}: ${_sdds_serv.textAccent};
            `
        },
        size: {
            xs: (0, _emotion.css)`
                ${_emotion.segmentTokens.itemBorderRadius}: 0.5rem;
                ${_emotion.segmentTokens.itemWidth}: auto;
                ${_emotion.segmentTokens.itemHeight}: 2rem;
                ${_emotion.segmentTokens.itemPadding}: 0.5rem 0.75rem;
                ${_emotion.segmentTokens.itemPilledPadding}: 0.5rem 0.5rem;
                ${_emotion.segmentTokens.itemContentPadding}: 0.0625rem 0.125rem;
                ${_emotion.segmentTokens.itemIconMargin}: 0.125rem;
                ${_emotion.segmentTokens.itemMarginLeft}: 0;

                ${_emotion.segmentTokens.fontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_emotion.segmentTokens.fontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_emotion.segmentTokens.fontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_emotion.segmentTokens.fontWeight}: ${_sdds_serv.bodyXSBold.fontWeight};
                ${_emotion.segmentTokens.letterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_emotion.segmentTokens.lineHeight}: ${_sdds_serv.bodyXS.lineHeight};
            `,
            s: (0, _emotion.css)`
                ${_emotion.segmentTokens.itemBorderRadius}: 0.625rem;
                ${_emotion.segmentTokens.itemWidth}: auto;
                ${_emotion.segmentTokens.itemHeight}: 2.5rem;
                ${_emotion.segmentTokens.itemPadding}: 0.5rem 1rem;
                ${_emotion.segmentTokens.itemPilledPadding}: 0.5rem 0.5rem;
                ${_emotion.segmentTokens.itemContentPadding}: 0.1875rem 0.125rem;
                ${_emotion.segmentTokens.itemIconMargin}: 0.125rem;
                ${_emotion.segmentTokens.itemMarginLeft}: 0rem;

                ${_emotion.segmentTokens.fontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_emotion.segmentTokens.fontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_emotion.segmentTokens.fontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.segmentTokens.fontWeight}: ${_sdds_serv.bodySBold.fontWeight};
                ${_emotion.segmentTokens.letterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_emotion.segmentTokens.lineHeight}: ${_sdds_serv.bodyS.lineHeight};
            `,
            m: (0, _emotion.css)`
                ${_emotion.segmentTokens.itemBorderRadius}: 0.75rem;
                ${_emotion.segmentTokens.itemWidth}: auto;
                ${_emotion.segmentTokens.itemHeight}: 3rem;
                ${_emotion.segmentTokens.itemPadding}: 0.75rem 1.25rem;
                ${_emotion.segmentTokens.itemPilledPadding}: 0.75rem 0.75rem;
                ${_emotion.segmentTokens.itemContentPadding}: 0.125rem;
                ${_emotion.segmentTokens.itemIconMargin}: 0.25rem;
                ${_emotion.segmentTokens.itemMarginLeft}: 0rem;

                ${_emotion.segmentTokens.fontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_emotion.segmentTokens.fontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_emotion.segmentTokens.fontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_emotion.segmentTokens.fontWeight}: ${_sdds_serv.bodyMBold.fontWeight};
                ${_emotion.segmentTokens.letterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_emotion.segmentTokens.lineHeight}: ${_sdds_serv.bodyM.lineHeight};
            `,
            l: (0, _emotion.css)`
                ${_emotion.segmentTokens.itemBorderRadius}: 0.875rem;
                ${_emotion.segmentTokens.itemWidth}: auto;
                ${_emotion.segmentTokens.itemHeight}: 3.5rem;
                ${_emotion.segmentTokens.itemPadding}: 1rem 1.5rem; /* 1.625 */
                ${_emotion.segmentTokens.itemPilledPadding}: 1rem 1rem;
                ${_emotion.segmentTokens.itemContentPadding}: 0.0625rem 0.125rem;
                ${_emotion.segmentTokens.itemIconMargin}: 0.375rem;
                ${_emotion.segmentTokens.itemMarginLeft}: 0;

                ${_emotion.segmentTokens.fontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_emotion.segmentTokens.fontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_emotion.segmentTokens.fontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_emotion.segmentTokens.fontWeight}: ${_sdds_serv.bodyLBold.fontWeight};
                ${_emotion.segmentTokens.letterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_emotion.segmentTokens.lineHeight}: ${_sdds_serv.bodyL.lineHeight};
            `,
            xl: (0, _emotion.css)`
                ${_emotion.segmentTokens.itemBorderRadius}: 1rem;
                ${_emotion.segmentTokens.itemWidth}: auto;
                ${_emotion.segmentTokens.itemHeight}: 4rem;
                ${_emotion.segmentTokens.itemPadding}: 1.25rem 1.75rem;
                ${_emotion.segmentTokens.itemPilledPadding}: 1.25rem;
                ${_emotion.segmentTokens.itemContentPadding}: 0.0625rem 0.125rem;
                ${_emotion.segmentTokens.itemIconMargin}: 0.375rem;
                ${_emotion.segmentTokens.itemMarginLeft}: 0;

                ${_emotion.segmentTokens.fontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_emotion.segmentTokens.fontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_emotion.segmentTokens.fontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_emotion.segmentTokens.fontWeight}: ${_sdds_serv.bodyLBold.fontWeight};
                ${_emotion.segmentTokens.letterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_emotion.segmentTokens.lineHeight}: ${_sdds_serv.bodyL.lineHeight};
            `
        },
        disabled: {
            true: (0, _emotion.css)`
                ${_emotion.segmentTokens.disabledOpacity}: 0.4;
            `
        },
        pilled: {
            true: (0, _emotion.css)`
                // NOTE: change on token when added
                ${_emotion.segmentTokens.itemPilledBorderRadius}: 1000px;
            `
        }
    }
};
