@salutejs/plasma-new-hope 0.152.0-dev.0 → 0.153.0-canary.1447.11031873624.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Switch/Switch.css +12 -0
- package/cjs/components/Switch/Switch.js +12 -16
- package/cjs/components/Switch/Switch.js.map +1 -1
- package/cjs/components/Switch/Switch.styles.js +6 -4
- package/cjs/components/Switch/Switch.styles.js.map +1 -1
- package/cjs/components/Switch/Switch.styles_1kk0qzz.css +4 -0
- package/cjs/components/Switch/Switch.tokens.js +7 -1
- package/cjs/components/Switch/Switch.tokens.js.map +1 -1
- package/cjs/components/Switch/_focused/base.js +1 -1
- package/{es/components/Switch/_focused/base_wl4drz.css → cjs/components/Switch/_focused/base_j4murk.css} +1 -1
- package/cjs/components/Switch/_size/base.js +1 -1
- package/cjs/components/Switch/_size/base.js.map +1 -1
- package/cjs/components/Switch/_size/{base_1sjw39x.css → base_1rjzpi4.css} +1 -1
- package/cjs/components/Switch/_view/base.js +1 -1
- package/cjs/components/Switch/_view/base_1mtyz12.css +1 -0
- package/cjs/index.css +7 -12
- package/cjs/index.js +0 -4
- package/cjs/index.js.map +1 -1
- package/emotion/cjs/components/Switch/Switch.js +4 -17
- package/emotion/cjs/components/Switch/Switch.styles.js +7 -4
- package/emotion/cjs/components/Switch/Switch.tokens.js +7 -2
- package/emotion/cjs/components/Switch/_size/base.js +1 -1
- package/emotion/cjs/components/Switch/index.js +0 -14
- package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +4 -10
- package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +8 -1
- package/emotion/cjs/examples/plasma_web/components/Switch/Switch.config.js +4 -10
- package/emotion/es/components/Switch/Switch.js +4 -17
- package/emotion/es/components/Switch/Switch.styles.js +6 -3
- package/emotion/es/components/Switch/Switch.tokens.js +6 -1
- package/emotion/es/components/Switch/_size/base.js +1 -1
- package/emotion/es/components/Switch/index.js +1 -6
- package/emotion/es/examples/plasma_b2c/components/Switch/Switch.config.js +4 -10
- package/emotion/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +8 -1
- package/emotion/es/examples/plasma_web/components/Switch/Switch.config.js +4 -10
- package/es/components/Switch/Switch.css +12 -0
- package/es/components/Switch/Switch.js +4 -8
- package/es/components/Switch/Switch.js.map +1 -1
- package/es/components/Switch/Switch.styles.js +6 -5
- package/es/components/Switch/Switch.styles.js.map +1 -1
- package/es/components/Switch/Switch.styles_1kk0qzz.css +4 -0
- package/es/components/Switch/Switch.tokens.js +7 -2
- package/es/components/Switch/Switch.tokens.js.map +1 -1
- package/es/components/Switch/_focused/base.js +1 -1
- package/{cjs/components/Switch/_focused/base_wl4drz.css → es/components/Switch/_focused/base_j4murk.css} +1 -1
- package/es/components/Switch/_size/base.js +1 -1
- package/es/components/Switch/_size/base.js.map +1 -1
- package/es/components/Switch/_size/{base_1sjw39x.css → base_1rjzpi4.css} +1 -1
- package/es/components/Switch/_view/base.js +1 -1
- package/es/components/Switch/_view/base_1mtyz12.css +1 -0
- package/es/index.css +7 -12
- package/es/index.js +0 -2
- package/es/index.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Switch/Switch.js +4 -8
- package/styled-components/cjs/components/Switch/Switch.styles.js +7 -3
- package/styled-components/cjs/components/Switch/Switch.tokens.js +7 -2
- package/styled-components/cjs/components/Switch/_size/base.js +1 -1
- package/styled-components/cjs/components/Switch/index.js +0 -14
- package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +0 -6
- package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +8 -1
- package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.config.js +0 -6
- package/styled-components/es/components/Switch/Switch.js +4 -8
- package/styled-components/es/components/Switch/Switch.styles.js +3 -0
- package/styled-components/es/components/Switch/Switch.tokens.js +6 -1
- package/styled-components/es/components/Switch/_size/base.js +1 -1
- package/styled-components/es/components/Switch/index.js +1 -6
- package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.config.js +0 -6
- package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +8 -1
- package/styled-components/es/examples/plasma_web/components/Switch/Switch.config.js +0 -6
- package/types/components/Switch/Switch.d.ts +0 -3
- package/types/components/Switch/Switch.d.ts.map +1 -1
- package/types/components/Switch/Switch.styles.d.ts +1 -0
- package/types/components/Switch/Switch.styles.d.ts.map +1 -1
- package/types/components/Switch/Switch.tokens.d.ts +5 -0
- package/types/components/Switch/Switch.tokens.d.ts.map +1 -1
- package/types/components/Switch/index.d.ts +0 -4
- package/types/components/Switch/index.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts +0 -4
- package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Switch/Switch.d.ts +0 -4
- package/types/examples/plasma_b2c/components/Switch/Switch.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Switch/Switch.config.d.ts +0 -4
- package/types/examples/plasma_web/components/Switch/Switch.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Switch/Switch.d.ts +0 -4
- package/types/examples/plasma_web/components/Switch/Switch.d.ts.map +1 -1
- package/cjs/components/Switch/Switch.styles_e1uxkt.css +0 -3
- package/cjs/components/Switch/Switch_svqw4q.css +0 -1
- package/cjs/components/Switch/_label-position/after.js +0 -9
- package/cjs/components/Switch/_label-position/after.js.map +0 -1
- package/cjs/components/Switch/_label-position/after_1sk7lsj.css +0 -1
- package/cjs/components/Switch/_label-position/base.js +0 -10
- package/cjs/components/Switch/_label-position/base.js.map +0 -1
- package/cjs/components/Switch/_label-position/base_x642ct.css +0 -1
- package/cjs/components/Switch/_label-position/before.js +0 -9
- package/cjs/components/Switch/_label-position/before.js.map +0 -1
- package/cjs/components/Switch/_label-position/before_15wiyms.css +0 -1
- package/cjs/components/Switch/_view/base_d10e49.css +0 -1
- package/emotion/cjs/components/Switch/_label-position/after.js +0 -9
- package/emotion/cjs/components/Switch/_label-position/base.js +0 -9
- package/emotion/cjs/components/Switch/_label-position/before.js +0 -9
- package/emotion/cjs/components/Switch/_label-position/tokens.json +0 -1
- package/emotion/es/components/Switch/_label-position/after.js +0 -3
- package/emotion/es/components/Switch/_label-position/base.js +0 -4
- package/emotion/es/components/Switch/_label-position/before.js +0 -3
- package/emotion/es/components/Switch/_label-position/tokens.json +0 -1
- package/es/components/Switch/Switch.styles_e1uxkt.css +0 -3
- package/es/components/Switch/Switch_svqw4q.css +0 -1
- package/es/components/Switch/_label-position/after.js +0 -5
- package/es/components/Switch/_label-position/after.js.map +0 -1
- package/es/components/Switch/_label-position/after_1sk7lsj.css +0 -1
- package/es/components/Switch/_label-position/base.js +0 -6
- package/es/components/Switch/_label-position/base.js.map +0 -1
- package/es/components/Switch/_label-position/base_x642ct.css +0 -1
- package/es/components/Switch/_label-position/before.js +0 -5
- package/es/components/Switch/_label-position/before.js.map +0 -1
- package/es/components/Switch/_label-position/before_15wiyms.css +0 -1
- package/es/components/Switch/_view/base_d10e49.css +0 -1
- package/styled-components/cjs/components/Switch/_label-position/after.js +0 -9
- package/styled-components/cjs/components/Switch/_label-position/base.js +0 -9
- package/styled-components/cjs/components/Switch/_label-position/before.js +0 -9
- package/styled-components/cjs/components/Switch/_label-position/tokens.json +0 -1
- package/styled-components/es/components/Switch/_label-position/after.js +0 -3
- package/styled-components/es/components/Switch/_label-position/base.js +0 -4
- package/styled-components/es/components/Switch/_label-position/before.js +0 -3
- package/styled-components/es/components/Switch/_label-position/tokens.json +0 -1
- package/types/components/Switch/_label-position/after.d.ts +0 -2
- package/types/components/Switch/_label-position/after.d.ts.map +0 -1
- package/types/components/Switch/_label-position/base.d.ts +0 -2
- package/types/components/Switch/_label-position/base.d.ts.map +0 -1
- package/types/components/Switch/_label-position/before.d.ts +0 -2
- package/types/components/Switch/_label-position/before.d.ts.map +0 -1
@@ -17,9 +17,16 @@ const meta: Meta<SwitchProps> = {
|
|
17
17
|
title: 'plasma_b2c/Switch',
|
18
18
|
decorators: [WithTheme],
|
19
19
|
component: Switch,
|
20
|
-
argTypes:
|
20
|
+
argTypes: {
|
21
|
+
...argTypesFromConfig(mergeConfig(switchConfig, config), ['size', 'view', 'focused']),
|
22
|
+
labelPosition: {
|
23
|
+
options: ['before', 'after'],
|
24
|
+
control: { type: 'select' },
|
25
|
+
},
|
26
|
+
},
|
21
27
|
args: {
|
22
28
|
label: 'Label',
|
29
|
+
labelPosition: 'before',
|
23
30
|
},
|
24
31
|
};
|
25
32
|
|
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.config = void 0;
|
7
7
|
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
8
|
var _Switch = /*#__PURE__*/require("../../../../components/Switch");
|
9
|
-
var _before = /*#__PURE__*/require("../../../../components/Switch/_label-position/before");
|
10
|
-
var _after = /*#__PURE__*/require("../../../../components/Switch/_label-position/after");
|
11
9
|
var config = exports.config = {
|
12
10
|
defaults: {
|
13
11
|
view: 'default',
|
@@ -22,10 +20,6 @@ var config = exports.config = {
|
|
22
20
|
view: {
|
23
21
|
"default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-transparent-tertiary);", ":var(--surface-transparent-tertiary-hover);", ":var(--on-dark-surface-solid-default);", ":0 1px 1px rgba(0,0,0,0.11);"], _Switch.switchTokens.trackBackgroundColorOn, _Switch.switchTokens.trackBackgroundColorOnHover, _Switch.switchTokens.trackBackgroundColorOff, _Switch.switchTokens.trackBackgroundColorOffHover, _Switch.switchTokens.thumbBackgroundColor, _Switch.switchTokens.thumbBoxShadow)
|
24
22
|
},
|
25
|
-
labelPosition: {
|
26
|
-
before: _before.labelPosition_Before,
|
27
|
-
after: _after.labelPosition_After
|
28
|
-
},
|
29
23
|
disabled: {
|
30
24
|
"true": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.4;"], _Switch.switchTokens.disabledOpacity)
|
31
25
|
},
|
@@ -4,14 +4,13 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
4
4
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
6
6
|
import React, { forwardRef } from 'react';
|
7
|
-
import { css } from 'styled-components';
|
8
7
|
import { base as sizeCSS } from '../Switch/_size/base';
|
9
8
|
import { base as viewCSS } from '../Switch/_view/base';
|
10
9
|
import { base as focusedCSS } from '../Switch/_focused/base';
|
11
10
|
import { base as disabledCSS } from '../Switch/_disabled/base';
|
12
|
-
import {
|
13
|
-
import { StyledInput, StyledLabel, StyledTrigger } from './Switch.styles';
|
14
|
-
|
11
|
+
import { cx } from '../../utils';
|
12
|
+
import { StyledInput, StyledLabel, StyledTrigger, base } from './Switch.styles';
|
13
|
+
import { classes } from './Switch.tokens';
|
15
14
|
export var switchRoot = function switchRoot(Root) {
|
16
15
|
return /*#__PURE__*/forwardRef(function (props, ref) {
|
17
16
|
var size = props.size,
|
@@ -37,7 +36,7 @@ export var switchRoot = function switchRoot(Root) {
|
|
37
36
|
labelPosition: labelPosition,
|
38
37
|
id: id,
|
39
38
|
style: style,
|
40
|
-
className: className
|
39
|
+
className: cx(className, classes["".concat(labelPosition, "SwitchLabelPosition")])
|
41
40
|
}, /*#__PURE__*/React.createElement(StyledInput, _extends({}, rest, {
|
42
41
|
ref: ref,
|
43
42
|
role: "switch",
|
@@ -71,9 +70,6 @@ export var switchConfig = {
|
|
71
70
|
},
|
72
71
|
focused: {
|
73
72
|
css: focusedCSS
|
74
|
-
},
|
75
|
-
labelPosition: {
|
76
|
-
css: labelPositionCSS
|
77
73
|
}
|
78
74
|
},
|
79
75
|
defaults: {
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
|
+
import { css } from 'styled-components';
|
2
3
|
import { applyEllipsis } from '../../mixins';
|
4
|
+
import { classes, tokens } from './Switch.tokens';
|
5
|
+
export var base = /*#__PURE__*/css(["position:relative;display:flex;align-items:center;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);&:focus{outline:0 none;}&.", "{justify-content:space-between;", ":0 var(", ") 0 0;}&.", "{justify-content:start;flex-direction:row-reverse;", ":0 0 0 var(", ");}"], classes.beforeSwitchLabelPosition, tokens.labelOffsetPrivate, tokens.labelOffset, classes.afterSwitchLabelPosition, tokens.labelOffsetPrivate, tokens.labelOffset);
|
3
6
|
export var StyledInput = /*#__PURE__*/styled.input.withConfig({
|
4
7
|
componentId: "plasma-new-hope__sc-i4fgom-0"
|
5
8
|
})(["position:absolute;right:0;margin:0;opacity:0;&:focus{outline:0 none;}"]);
|
@@ -25,5 +25,10 @@ export var tokens = {
|
|
25
25
|
thumbPressScale: '--plasma-switch__thumb-scale',
|
26
26
|
thumbBackgroundColor: '--plasma-switch__thumb-bg-color',
|
27
27
|
thumbBoxShadow: '--plasma-switch__thumb-box-shadow',
|
28
|
-
thumbBoxShadowOn: '--plasma-switch__thumb-box-shadow_checked_true'
|
28
|
+
thumbBoxShadowOn: '--plasma-switch__thumb-box-shadow_checked_true',
|
29
|
+
labelOffsetPrivate: '--plasma_private-switch__label-offset'
|
30
|
+
};
|
31
|
+
export var classes = {
|
32
|
+
beforeSwitchLabelPosition: 'switch-label-position-before',
|
33
|
+
afterSwitchLabelPosition: 'switch-label-position-after'
|
29
34
|
};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { css } from 'styled-components';
|
2
2
|
import { tokens } from '../Switch.tokens';
|
3
3
|
import { StyledLabel, StyledTrigger } from '../Switch.styles';
|
4
|
-
export var base = /*#__PURE__*/css(["font-family:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");font-size:var(", ");", "{flex:0 0 var(", ");width:var(", ");height:var(", ");border-radius:var(", ");&::after{width:var(", ");height:var(", ");border-radius:var(", ");margin:auto var(", ");}}", "{margin:var(
|
4
|
+
export var base = /*#__PURE__*/css(["font-family:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");font-size:var(", ");", "{flex:0 0 var(", ");width:var(", ");height:var(", ");border-radius:var(", ");&::after{width:var(", ");height:var(", ");border-radius:var(", ");margin:auto var(", ");}}", "{margin:var(", ",0);}:active:not([disabled]) ", "::after{width:calc(var(", ") * var(", ",1));}"], tokens.fontFamily, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.fontSize, StyledTrigger, tokens.trackWidth, tokens.trackWidth, tokens.trackHeight, tokens.trackBorderRadius, tokens.thumbSize, tokens.thumbSize, tokens.thumbBorderRadius, tokens.thumbOffset, StyledLabel, tokens.labelOffsetPrivate, StyledTrigger, tokens.thumbSize, tokens.thumbPressScale);
|
@@ -1,7 +1,2 @@
|
|
1
|
-
import { labelPosition_After } from './_label-position/after';
|
2
|
-
import { labelPosition_Before } from './_label-position/before';
|
3
1
|
export { switchRoot, switchConfig } from './Switch';
|
4
|
-
export { tokens as switchTokens } from './Switch.tokens';
|
5
|
-
// TODO: Think how we could name such things
|
6
|
-
export { labelPosition_Before as Switch_LabelPosition_Before };
|
7
|
-
export { labelPosition_After as Switch_LabelPosition_After };
|
2
|
+
export { tokens as switchTokens } from './Switch.tokens';
|
@@ -1,7 +1,5 @@
|
|
1
1
|
import { css } from 'styled-components';
|
2
2
|
import { switchTokens } from '../../../../components/Switch';
|
3
|
-
import { labelPosition_Before } from '../../../../components/Switch/_label-position/before';
|
4
|
-
import { labelPosition_After } from '../../../../components/Switch/_label-position/after';
|
5
3
|
export var config = {
|
6
4
|
defaults: {
|
7
5
|
view: 'default',
|
@@ -16,10 +14,6 @@ export var config = {
|
|
16
14
|
view: {
|
17
15
|
"default": /*#__PURE__*/css(["", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-transparent-tertiary);", ":var(--surface-transparent-tertiary-hover);", ":var(--on-dark-surface-solid-default);", ":0 1px 1px rgba(0,0,0,0.11);"], switchTokens.trackBackgroundColorOn, switchTokens.trackBackgroundColorOnHover, switchTokens.trackBackgroundColorOff, switchTokens.trackBackgroundColorOffHover, switchTokens.thumbBackgroundColor, switchTokens.thumbBoxShadow)
|
18
16
|
},
|
19
|
-
labelPosition: {
|
20
|
-
before: labelPosition_Before,
|
21
|
-
after: labelPosition_After
|
22
|
-
},
|
23
17
|
disabled: {
|
24
18
|
"true": /*#__PURE__*/css(["", ":0.4;"], switchTokens.disabledOpacity)
|
25
19
|
},
|
@@ -17,9 +17,16 @@ const meta: Meta<SwitchProps> = {
|
|
17
17
|
title: 'plasma_b2c/Switch',
|
18
18
|
decorators: [WithTheme],
|
19
19
|
component: Switch,
|
20
|
-
argTypes:
|
20
|
+
argTypes: {
|
21
|
+
...argTypesFromConfig(mergeConfig(switchConfig, config), ['size', 'view', 'focused']),
|
22
|
+
labelPosition: {
|
23
|
+
options: ['before', 'after'],
|
24
|
+
control: { type: 'select' },
|
25
|
+
},
|
26
|
+
},
|
21
27
|
args: {
|
22
28
|
label: 'Label',
|
29
|
+
labelPosition: 'before',
|
23
30
|
},
|
24
31
|
};
|
25
32
|
|
@@ -1,7 +1,5 @@
|
|
1
1
|
import { css } from 'styled-components';
|
2
2
|
import { switchTokens } from '../../../../components/Switch';
|
3
|
-
import { labelPosition_Before } from '../../../../components/Switch/_label-position/before';
|
4
|
-
import { labelPosition_After } from '../../../../components/Switch/_label-position/after';
|
5
3
|
export var config = {
|
6
4
|
defaults: {
|
7
5
|
view: 'default',
|
@@ -16,10 +14,6 @@ export var config = {
|
|
16
14
|
view: {
|
17
15
|
"default": /*#__PURE__*/css(["", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-transparent-tertiary);", ":var(--surface-transparent-tertiary-hover);", ":var(--on-dark-surface-solid-default);", ":0 1px 1px rgba(0,0,0,0.11);"], switchTokens.trackBackgroundColorOn, switchTokens.trackBackgroundColorOnHover, switchTokens.trackBackgroundColorOff, switchTokens.trackBackgroundColorOffHover, switchTokens.thumbBackgroundColor, switchTokens.thumbBoxShadow)
|
18
16
|
},
|
19
|
-
labelPosition: {
|
20
|
-
before: labelPosition_Before,
|
21
|
-
after: labelPosition_After
|
22
|
-
},
|
23
17
|
disabled: {
|
24
18
|
"true": /*#__PURE__*/css(["", ":0.4;"], switchTokens.disabledOpacity)
|
25
19
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,eAAO,MAAM,UAAU,SAAU,UAAU,gBAAgB,EAAE,WAAW,CAAC,yFAoDnE,CAAC;AAEP,eAAO,MAAM,YAAY;;;;mBAtDQ,UAAU,gBAAgB,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;CA8ExE,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
export declare const base: import("@linaria/core").LinariaClassName;
|
2
3
|
export declare const StyledInput: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Record<never, unknown>>;
|
3
4
|
export declare const StyledLabel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
4
5
|
export declare const StyledTrigger: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.styles.ts"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.styles.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,IAAI,0CAwBhB,CAAC;AAEF,eAAO,MAAM,WAAW,8KASvB,CAAC;AAEF,eAAO,MAAM,WAAW,uKAKvB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAmBzB,CAAC"}
|
@@ -24,5 +24,10 @@ export declare const tokens: {
|
|
24
24
|
thumbBackgroundColor: string;
|
25
25
|
thumbBoxShadow: string;
|
26
26
|
thumbBoxShadowOn: string;
|
27
|
+
labelOffsetPrivate: string;
|
28
|
+
};
|
29
|
+
export declare const classes: {
|
30
|
+
beforeSwitchLabelPosition: string;
|
31
|
+
afterSwitchLabelPosition: string;
|
27
32
|
};
|
28
33
|
//# sourceMappingURL=Switch.tokens.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;IAYf,6DAA6D
|
1
|
+
{"version":3,"file":"Switch.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;IAYf,6DAA6D;;;;;;;;;;;;;;;;;;CAyBhE,CAAC;AAEF,eAAO,MAAM,OAAO;;;CAGnB,CAAC"}
|
@@ -1,8 +1,4 @@
|
|
1
|
-
import { labelPosition_After } from './_label-position/after';
|
2
|
-
import { labelPosition_Before } from './_label-position/before';
|
3
1
|
export { switchRoot, switchConfig } from './Switch';
|
4
2
|
export { tokens as switchTokens } from './Switch.tokens';
|
5
3
|
export type { SwitchProps } from './Switch.types';
|
6
|
-
export { labelPosition_Before as Switch_LabelPosition_Before };
|
7
|
-
export { labelPosition_After as Switch_LabelPosition_After };
|
8
4
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACzD,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
@@ -12,10 +12,6 @@ export declare const config: {
|
|
12
12
|
view: {
|
13
13
|
default: import("@linaria/core").LinariaClassName;
|
14
14
|
};
|
15
|
-
labelPosition: {
|
16
|
-
before: import("@linaria/core").LinariaClassName;
|
17
|
-
after: import("@linaria/core").LinariaClassName;
|
18
|
-
};
|
19
15
|
disabled: {
|
20
16
|
true: import("@linaria/core").LinariaClassName;
|
21
17
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Switch/Switch.config.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Switch.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Switch/Switch.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;CAgDlB,CAAC"}
|
@@ -6,10 +6,6 @@ export declare const Switch: import("react").FunctionComponent<import("../../../
|
|
6
6
|
view: {
|
7
7
|
default: import("@linaria/core").LinariaClassName;
|
8
8
|
};
|
9
|
-
labelPosition: {
|
10
|
-
before: import("@linaria/core").LinariaClassName;
|
11
|
-
after: import("@linaria/core").LinariaClassName;
|
12
|
-
};
|
13
9
|
disabled: {
|
14
10
|
true: import("@linaria/core").LinariaClassName;
|
15
11
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Switch/Switch.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,MAAM
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Switch/Switch.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,MAAM;;;;;;;;;;;;;2GAA0B,CAAC"}
|
@@ -12,10 +12,6 @@ export declare const config: {
|
|
12
12
|
view: {
|
13
13
|
default: import("@linaria/core").LinariaClassName;
|
14
14
|
};
|
15
|
-
labelPosition: {
|
16
|
-
before: import("@linaria/core").LinariaClassName;
|
17
|
-
after: import("@linaria/core").LinariaClassName;
|
18
|
-
};
|
19
15
|
disabled: {
|
20
16
|
true: import("@linaria/core").LinariaClassName;
|
21
17
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Switch/Switch.config.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Switch.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Switch/Switch.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;CAgDlB,CAAC"}
|
@@ -6,10 +6,6 @@ export declare const Switch: import("react").FunctionComponent<import("../../../
|
|
6
6
|
view: {
|
7
7
|
default: import("@linaria/core").LinariaClassName;
|
8
8
|
};
|
9
|
-
labelPosition: {
|
10
|
-
before: import("@linaria/core").LinariaClassName;
|
11
|
-
after: import("@linaria/core").LinariaClassName;
|
12
|
-
};
|
13
9
|
disabled: {
|
14
10
|
true: import("@linaria/core").LinariaClassName;
|
15
11
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Switch/Switch.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,MAAM
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Switch/Switch.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,MAAM;;;;;;;;;;;;;2GAA0B,CAAC"}
|
@@ -1,3 +0,0 @@
|
|
1
|
-
.s1fcyfkl{position:absolute;right:0;margin:0;opacity:0;}.s1fcyfkl:focus{outline:0 none;}
|
2
|
-
.s10fscgc{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
3
|
-
.sdjnckq{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:background-color 0.15s ease-in-out 0.1s;transition:background-color 0.15s ease-in-out 0.1s;}.sdjnckq::after{content:'';position:absolute;right:auto;left:0;-webkit-transition:width 0.15s ease-in-out 0s,left 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s;transition:width 0.15s ease-in-out 0s,left 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s;}.s1fcyfkl:checked ~ .sdjnckq::after{right:0;left:auto;}
|
@@ -1 +0,0 @@
|
|
1
|
-
.bagv7wj{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);}.bagv7wj:focus{outline:0 none;}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"after.js","sources":["../../../../src/components/Switch/_label-position/after.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../Switch.tokens';\n\nexport const labelPosition_After = css`\n justify-content: start;\n flex-direction: row-reverse;\n\n --plasma_private-switch__label-offset: 0 0 0 var(${tokens.labelOffset});\n`;\n"],"names":["labelPosition_After"],"mappings":";;;;AAIO,IAAMA,mBAAmB,GAK/B;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
.l1u83q10{-webkit-box-pack:start;-webkit-justify-content:start;-ms-flex-pack:start;justify-content:start;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;--plasma_private-switch__label-offset:0 0 0 var(--plasma-switch__label-offset);}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"base.js","sources":["../../../../src/components/Switch/_label-position/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\n// TODO: REMOVE IT\nexport const base = css``;\n"],"names":["base"],"mappings":";;;;AAEA;AACO,IAAMA,IAAI,GAAQ;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"before.js","sources":["../../../../src/components/Switch/_label-position/before.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../Switch.tokens';\n\nexport const labelPosition_Before = css`\n // NOTE: it's looks like bug\n justify-content: space-between;\n --plasma_private-switch__label-offset: 0 var(${tokens.labelOffset}) 0 0;\n`;\n"],"names":["labelPosition_Before"],"mappings":";;;;AAIO,IAAMA,oBAAoB,GAIhC;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
.l1k91d31{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;--plasma_private-switch__label-offset:0 var(--plasma-switch__label-offset) 0 0;}
|
@@ -1 +0,0 @@
|
|
1
|
-
.b1g0jmh3 .sdjnckq{background-color:var(--plasma-switch__track_checked_false-bg-color);}.b1g0jmh3 .s1fcyfkl:not([disabled]) ~ .sdjnckq:hover{background-color:var(--plasma-switch__track_checked_false_hovered_true-bg-color,var(--plasma-switch__track_checked_false-bg-color));}.b1g0jmh3 .s1fcyfkl:checked ~ .sdjnckq{background-color:var(--plasma-switch__track_checked_true-bg-color);}.b1g0jmh3 .s1fcyfkl:checked:not([disabled]) ~ .sdjnckq:hover{background-color:var(--plasma-switch__track_checked_true_hovered_true-bg-color,var(--plasma-switch__track_checked_true-bg-color));}.b1g0jmh3 .sdjnckq::after{background-color:var(--plasma-switch__thumb-bg-color);box-shadow:var(--plasma-switch__thumb-box-shadow);}.b1g0jmh3 .s1fcyfkl:checked ~ .sdjnckq::after{box-shadow:var(--plasma-switch__thumb-box-shadow_checked_true,var(--plasma-switch__thumb-box-shadow));}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.labelPosition_After = void 0;
|
7
|
-
var _react = /*#__PURE__*/require("@emotion/react");
|
8
|
-
var _Switch = /*#__PURE__*/require("../Switch.tokens");
|
9
|
-
var labelPosition_After = exports.labelPosition_After = /*#__PURE__*/(0, _react.css)("justify-content:start;flex-direction:row-reverse;--plasma_private-switch__label-offset:0 0 0 var(", _Switch.tokens.labelOffset, ");;label:plasma-new-hope__labelPosition_After;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL19sYWJlbC1wb3NpdGlvbi9hZnRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJc0MiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Td2l0Y2gvX2xhYmVsLXBvc2l0aW9uL2FmdGVyLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyB0b2tlbnMgfSBmcm9tICcuLi9Td2l0Y2gudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGxhYmVsUG9zaXRpb25fQWZ0ZXIgPSBjc3NgXG4gICAganVzdGlmeS1jb250ZW50OiBzdGFydDtcbiAgICBmbGV4LWRpcmVjdGlvbjogcm93LXJldmVyc2U7XG5cbiAgICAtLXBsYXNtYV9wcml2YXRlLXN3aXRjaF9fbGFiZWwtb2Zmc2V0OiAwIDAgMCB2YXIoJHt0b2tlbnMubGFiZWxPZmZzZXR9KTtcbmA7XG4iXX0= */"));
|
@@ -1,9 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.base = void 0;
|
7
|
-
var _react = /*#__PURE__*/require("@emotion/react");
|
8
|
-
// TODO: REMOVE IT
|
9
|
-
var base = exports.base = /*#__PURE__*/(0, _react.css)(";label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL19sYWJlbC1wb3NpdGlvbi9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUd1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1N3aXRjaC9fbGFiZWwtcG9zaXRpb24vYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gVE9ETzogUkVNT1ZFIElUXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BgO1xuIl19 */"));
|
@@ -1,9 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.labelPosition_Before = void 0;
|
7
|
-
var _react = /*#__PURE__*/require("@emotion/react");
|
8
|
-
var _Switch = /*#__PURE__*/require("../Switch.tokens");
|
9
|
-
var labelPosition_Before = exports.labelPosition_Before = /*#__PURE__*/(0, _react.css)("justify-content:space-between;--plasma_private-switch__label-offset:0 var(", _Switch.tokens.labelOffset, ") 0 0;;label:plasma-new-hope__labelPosition_Before;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL19sYWJlbC1wb3NpdGlvbi9iZWZvcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSXVDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL19sYWJlbC1wb3NpdGlvbi9iZWZvcmUudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uL1N3aXRjaC50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgbGFiZWxQb3NpdGlvbl9CZWZvcmUgPSBjc3NgXG4gICAgLy8gTk9URTogaXQncyBsb29rcyBsaWtlIGJ1Z1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgICAtLXBsYXNtYV9wcml2YXRlLXN3aXRjaF9fbGFiZWwtb2Zmc2V0OiAwIHZhcigke3Rva2Vucy5sYWJlbE9mZnNldH0pIDAgMDtcbmA7XG4iXX0= */"));
|
@@ -1 +0,0 @@
|
|
1
|
-
[]
|
@@ -1,3 +0,0 @@
|
|
1
|
-
import { css } from '@emotion/react';
|
2
|
-
import { tokens } from '../Switch.tokens';
|
3
|
-
export var labelPosition_After = /*#__PURE__*/css("justify-content:start;flex-direction:row-reverse;--plasma_private-switch__label-offset:0 0 0 var(", tokens.labelOffset, ");;label:plasma-new-hope__labelPosition_After;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL19sYWJlbC1wb3NpdGlvbi9hZnRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJc0MiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Td2l0Y2gvX2xhYmVsLXBvc2l0aW9uL2FmdGVyLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyB0b2tlbnMgfSBmcm9tICcuLi9Td2l0Y2gudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGxhYmVsUG9zaXRpb25fQWZ0ZXIgPSBjc3NgXG4gICAganVzdGlmeS1jb250ZW50OiBzdGFydDtcbiAgICBmbGV4LWRpcmVjdGlvbjogcm93LXJldmVyc2U7XG5cbiAgICAtLXBsYXNtYV9wcml2YXRlLXN3aXRjaF9fbGFiZWwtb2Zmc2V0OiAwIDAgMCB2YXIoJHt0b2tlbnMubGFiZWxPZmZzZXR9KTtcbmA7XG4iXX0= */"));
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { css } from '@emotion/react';
|
2
|
-
|
3
|
-
// TODO: REMOVE IT
|
4
|
-
export var base = /*#__PURE__*/css(";label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL19sYWJlbC1wb3NpdGlvbi9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUd1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1N3aXRjaC9fbGFiZWwtcG9zaXRpb24vYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gVE9ETzogUkVNT1ZFIElUXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BgO1xuIl19 */"));
|
@@ -1,3 +0,0 @@
|
|
1
|
-
import { css } from '@emotion/react';
|
2
|
-
import { tokens } from '../Switch.tokens';
|
3
|
-
export var labelPosition_Before = /*#__PURE__*/css("justify-content:space-between;--plasma_private-switch__label-offset:0 var(", tokens.labelOffset, ") 0 0;;label:plasma-new-hope__labelPosition_Before;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL19sYWJlbC1wb3NpdGlvbi9iZWZvcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSXVDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL19sYWJlbC1wb3NpdGlvbi9iZWZvcmUudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uL1N3aXRjaC50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgbGFiZWxQb3NpdGlvbl9CZWZvcmUgPSBjc3NgXG4gICAgLy8gTk9URTogaXQncyBsb29rcyBsaWtlIGJ1Z1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgICAtLXBsYXNtYV9wcml2YXRlLXN3aXRjaF9fbGFiZWwtb2Zmc2V0OiAwIHZhcigke3Rva2Vucy5sYWJlbE9mZnNldH0pIDAgMDtcbmA7XG4iXX0= */"));
|
@@ -1 +0,0 @@
|
|
1
|
-
[]
|
@@ -1,3 +0,0 @@
|
|
1
|
-
.s1fcyfkl{position:absolute;right:0;margin:0;opacity:0;}.s1fcyfkl:focus{outline:0 none;}
|
2
|
-
.s10fscgc{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
3
|
-
.sdjnckq{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:background-color 0.15s ease-in-out 0.1s;transition:background-color 0.15s ease-in-out 0.1s;}.sdjnckq::after{content:'';position:absolute;right:auto;left:0;-webkit-transition:width 0.15s ease-in-out 0s,left 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s;transition:width 0.15s ease-in-out 0s,left 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s;}.s1fcyfkl:checked ~ .sdjnckq::after{right:0;left:auto;}
|
@@ -1 +0,0 @@
|
|
1
|
-
.bagv7wj{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);}.bagv7wj:focus{outline:0 none;}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"after.js","sources":["../../../../src/components/Switch/_label-position/after.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../Switch.tokens';\n\nexport const labelPosition_After = css`\n justify-content: start;\n flex-direction: row-reverse;\n\n --plasma_private-switch__label-offset: 0 0 0 var(${tokens.labelOffset});\n`;\n"],"names":["labelPosition_After"],"mappings":"AAIO,IAAMA,mBAAmB,GAK/B;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
.l1u83q10{-webkit-box-pack:start;-webkit-justify-content:start;-ms-flex-pack:start;justify-content:start;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;--plasma_private-switch__label-offset:0 0 0 var(--plasma-switch__label-offset);}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"base.js","sources":["../../../../src/components/Switch/_label-position/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\n// TODO: REMOVE IT\nexport const base = css``;\n"],"names":["base"],"mappings":"AAEA;AACO,IAAMA,IAAI,GAAQ;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"before.js","sources":["../../../../src/components/Switch/_label-position/before.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../Switch.tokens';\n\nexport const labelPosition_Before = css`\n // NOTE: it's looks like bug\n justify-content: space-between;\n --plasma_private-switch__label-offset: 0 var(${tokens.labelOffset}) 0 0;\n`;\n"],"names":["labelPosition_Before"],"mappings":"AAIO,IAAMA,oBAAoB,GAIhC;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
.l1k91d31{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;--plasma_private-switch__label-offset:0 var(--plasma-switch__label-offset) 0 0;}
|
@@ -1 +0,0 @@
|
|
1
|
-
.b1g0jmh3 .sdjnckq{background-color:var(--plasma-switch__track_checked_false-bg-color);}.b1g0jmh3 .s1fcyfkl:not([disabled]) ~ .sdjnckq:hover{background-color:var(--plasma-switch__track_checked_false_hovered_true-bg-color,var(--plasma-switch__track_checked_false-bg-color));}.b1g0jmh3 .s1fcyfkl:checked ~ .sdjnckq{background-color:var(--plasma-switch__track_checked_true-bg-color);}.b1g0jmh3 .s1fcyfkl:checked:not([disabled]) ~ .sdjnckq:hover{background-color:var(--plasma-switch__track_checked_true_hovered_true-bg-color,var(--plasma-switch__track_checked_true-bg-color));}.b1g0jmh3 .sdjnckq::after{background-color:var(--plasma-switch__thumb-bg-color);box-shadow:var(--plasma-switch__thumb-box-shadow);}.b1g0jmh3 .s1fcyfkl:checked ~ .sdjnckq::after{box-shadow:var(--plasma-switch__thumb-box-shadow_checked_true,var(--plasma-switch__thumb-box-shadow));}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.labelPosition_After = void 0;
|
7
|
-
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
|
-
var _Switch = /*#__PURE__*/require("../Switch.tokens");
|
9
|
-
var labelPosition_After = exports.labelPosition_After = /*#__PURE__*/(0, _styledComponents.css)(["justify-content:start;flex-direction:row-reverse;--plasma_private-switch__label-offset:0 0 0 var(", ");"], _Switch.tokens.labelOffset);
|
@@ -1,9 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.base = void 0;
|
7
|
-
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
|
-
// TODO: REMOVE IT
|
9
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)([""]);
|
@@ -1,9 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.labelPosition_Before = void 0;
|
7
|
-
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
|
-
var _Switch = /*#__PURE__*/require("../Switch.tokens");
|
9
|
-
var labelPosition_Before = exports.labelPosition_Before = /*#__PURE__*/(0, _styledComponents.css)(["justify-content:space-between;--plasma_private-switch__label-offset:0 var(", ") 0 0;"], _Switch.tokens.labelOffset);
|
@@ -1 +0,0 @@
|
|
1
|
-
[]
|
@@ -1 +0,0 @@
|
|
1
|
-
[]
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"after.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/_label-position/after.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,0CAK/B,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/_label-position/base.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,0CAAQ,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"before.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/_label-position/before.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,0CAIhC,CAAC"}
|