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

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

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

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

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

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

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

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

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

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