"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: 'm',
        toggleSize: 'l',
        labelPosition: 'before',
        focused: 'true'
    },
    variations: {
        size: {
            s: (0, _emotion.css)`
                ${_emotion.switchTokens.fontFamily}: var(--plasma-typo-body-s-font-family);
                ${_emotion.switchTokens.fontStyle}: var(--plasma-typo-body-s-font-style);
                ${_emotion.switchTokens.fontWeight}: var(--plasma-typo-body-s-font-weight);
                ${_emotion.switchTokens.lineHeight}: var(--plasma-typo-body-s-line-height);
                ${_emotion.switchTokens.fontSize}: var(--plasma-typo-body-s-font-size);
                ${_emotion.switchTokens.letterSpacing}: var(--plasma-typo-body-s-letter-spacing);
                ${_emotion.switchTokens.descriptionFontFamily}: var(--plasma-typo-body-xs-font-family);
                ${_emotion.switchTokens.descriptionFontStyle}: var(--plasma-typo-body-xs-font-style);
                ${_emotion.switchTokens.descriptionFontWeight}: var(--plasma-typo-body-xs-font-weight);
                ${_emotion.switchTokens.descriptionLineHeight}: var(--plasma-typo-body-xs-line-height);
                ${_emotion.switchTokens.descriptionFontSize}: var(--plasma-typo-body-xs-font-size);
                ${_emotion.switchTokens.descriptionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
                ${_emotion.switchTokens.verticalGap}: 0.25rem;
                ${_emotion.switchTokens.labelOffset}: 0.75rem;
            `,
            m: (0, _emotion.css)`
                ${_emotion.switchTokens.fontFamily}: var(--plasma-typo-body-m-font-family);
                ${_emotion.switchTokens.fontStyle}: var(--plasma-typo-body-m-font-style);
                ${_emotion.switchTokens.fontWeight}: var(--plasma-typo-body-m-font-weight);
                ${_emotion.switchTokens.lineHeight}: var(--plasma-typo-body-m-line-height);
                ${_emotion.switchTokens.fontSize}: var(--plasma-typo-body-m-font-size);
                ${_emotion.switchTokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);
                ${_emotion.switchTokens.descriptionFontFamily}: var(--plasma-typo-body-s-font-family);
                ${_emotion.switchTokens.descriptionFontStyle}: var(--plasma-typo-body-s-font-style);
                ${_emotion.switchTokens.descriptionFontWeight}: var(--plasma-typo-body-s-font-weight);
                ${_emotion.switchTokens.descriptionLineHeight}: var(--plasma-typo-body-s-line-height);
                ${_emotion.switchTokens.descriptionFontSize}: var(--plasma-typo-body-s-font-size);
                ${_emotion.switchTokens.descriptionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
                ${_emotion.switchTokens.verticalGap}: 0.25rem;
                ${_emotion.switchTokens.labelOffset}: 0.75rem;
            `,
            l: (0, _emotion.css)`
                ${_emotion.switchTokens.fontFamily}: var(--plasma-typo-body-l-font-family);
                ${_emotion.switchTokens.fontStyle}: var(--plasma-typo-body-l-font-style);
                ${_emotion.switchTokens.fontWeight}: var(--plasma-typo-body-l-font-weight);
                ${_emotion.switchTokens.lineHeight}: var(--plasma-typo-body-l-line-height);
                ${_emotion.switchTokens.fontSize}: var(--plasma-typo-body-l-font-size);
                ${_emotion.switchTokens.letterSpacing}: var(--plasma-typo-body-l-letter-spacing);
                ${_emotion.switchTokens.descriptionFontFamily}: var(--plasma-typo-body-m-font-family);
                ${_emotion.switchTokens.descriptionFontStyle}: var(--plasma-typo-body-m-font-style);
                ${_emotion.switchTokens.descriptionFontWeight}: var(--plasma-typo-body-m-font-weight);
                ${_emotion.switchTokens.descriptionLineHeight}: var(--plasma-typo-body-m-line-height);
                ${_emotion.switchTokens.descriptionFontSize}: var(--plasma-typo-body-m-font-size);
                ${_emotion.switchTokens.descriptionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
                ${_emotion.switchTokens.verticalGap}: 0.25rem;
                ${_emotion.switchTokens.labelOffset}: 0.75rem;
            `
        },
        toggleSize: {
            l: (0, _emotion.css)`
                ${_emotion.switchTokens.trackWidth}: 2.75rem;
                ${_emotion.switchTokens.trackHeight}: 1.75rem;
                ${_emotion.switchTokens.trackBorderRadius}: calc(var(${_emotion.switchTokens.trackHeight}) / 2);
                ${_emotion.switchTokens.thumbSize}: 1.5rem;
                ${_emotion.switchTokens.thumbBorderRadius}: calc(var(${_emotion.switchTokens.thumbSize}) / 2);
                ${_emotion.switchTokens.thumbOffsetOn}: 0.125rem;
                ${_emotion.switchTokens.thumbOffsetOff}: 0.125rem;
                ${_emotion.switchTokens.thumbPressScale}: 1.25;
            `,
            s: (0, _emotion.css)`
                ${_emotion.switchTokens.trackWidth}: 2rem;
                ${_emotion.switchTokens.trackHeight}: 1.25rem;
                ${_emotion.switchTokens.trackBorderRadius}: calc(var(${_emotion.switchTokens.trackHeight}) / 2);
                ${_emotion.switchTokens.thumbSize}: 1rem;
                ${_emotion.switchTokens.thumbBorderRadius}: calc(var(${_emotion.switchTokens.thumbSize}) / 2);
                ${_emotion.switchTokens.thumbOffsetOn}: 0.125rem;
                ${_emotion.switchTokens.thumbOffsetOff}: 0.125rem;
                ${_emotion.switchTokens.thumbPressScale}: 1.25;
            `
        },
        view: {
            default: (0, _emotion.css)`
                ${_emotion.switchTokens.labelColor}: var(--text-primary);
                ${_emotion.switchTokens.descriptionColor}: var(--text-secondary);
                ${_emotion.switchTokens.descriptionMaxLines}: initial;
                ${_emotion.switchTokens.trackBackgroundColorOn}: var(--surface-accent);
                ${_emotion.switchTokens.trackBackgroundColorOnHover}: var(--surface-accent-hover);
                ${_emotion.switchTokens.trackBackgroundColorOff}: var(--surface-transparent-tertiary);
                ${_emotion.switchTokens.trackBackgroundColorOffHover}: var(--surface-transparent-tertiary-hover);
                ${_emotion.switchTokens.trackBorderWidthOn}: 0;
                ${_emotion.switchTokens.trackBorderWidthOff}: 0;
                ${_emotion.switchTokens.thumbBackgroundColorOn}: var(--on-dark-surface-solid-default);
                ${_emotion.switchTokens.thumbBackgroundColorOff}: var(--on-dark-surface-solid-default);
                ${_emotion.switchTokens.thumbBoxShadow}: 0 1px 1px rgba(0, 0, 0, 0.11);
            `
        },
        disabled: {
            true: (0, _emotion.css)`
                ${_emotion.switchTokens.disabledOpacity}: 0.4;
            `
        },
        focused: {
            true: (0, _emotion.css)`
                ${_emotion.switchTokens.trackFocusColor}: var(--surface-accent);
            `
        }
    }
};
