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