@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.
Files changed (131) hide show
  1. package/cjs/components/Switch/Switch.css +12 -0
  2. package/cjs/components/Switch/Switch.js +12 -16
  3. package/cjs/components/Switch/Switch.js.map +1 -1
  4. package/cjs/components/Switch/Switch.styles.js +6 -4
  5. package/cjs/components/Switch/Switch.styles.js.map +1 -1
  6. package/cjs/components/Switch/Switch.styles_1kk0qzz.css +4 -0
  7. package/cjs/components/Switch/Switch.tokens.js +7 -1
  8. package/cjs/components/Switch/Switch.tokens.js.map +1 -1
  9. package/cjs/components/Switch/_focused/base.js +1 -1
  10. package/{es/components/Switch/_focused/base_wl4drz.css → cjs/components/Switch/_focused/base_j4murk.css} +1 -1
  11. package/cjs/components/Switch/_size/base.js +1 -1
  12. package/cjs/components/Switch/_size/base.js.map +1 -1
  13. package/cjs/components/Switch/_size/{base_1sjw39x.css → base_1rjzpi4.css} +1 -1
  14. package/cjs/components/Switch/_view/base.js +1 -1
  15. package/cjs/components/Switch/_view/base_1mtyz12.css +1 -0
  16. package/cjs/index.css +7 -12
  17. package/cjs/index.js +0 -4
  18. package/cjs/index.js.map +1 -1
  19. package/emotion/cjs/components/Switch/Switch.js +4 -17
  20. package/emotion/cjs/components/Switch/Switch.styles.js +7 -4
  21. package/emotion/cjs/components/Switch/Switch.tokens.js +7 -2
  22. package/emotion/cjs/components/Switch/_size/base.js +1 -1
  23. package/emotion/cjs/components/Switch/index.js +0 -14
  24. package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +4 -10
  25. package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +8 -1
  26. package/emotion/cjs/examples/plasma_web/components/Switch/Switch.config.js +4 -10
  27. package/emotion/es/components/Switch/Switch.js +4 -17
  28. package/emotion/es/components/Switch/Switch.styles.js +6 -3
  29. package/emotion/es/components/Switch/Switch.tokens.js +6 -1
  30. package/emotion/es/components/Switch/_size/base.js +1 -1
  31. package/emotion/es/components/Switch/index.js +1 -6
  32. package/emotion/es/examples/plasma_b2c/components/Switch/Switch.config.js +4 -10
  33. package/emotion/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +8 -1
  34. package/emotion/es/examples/plasma_web/components/Switch/Switch.config.js +4 -10
  35. package/es/components/Switch/Switch.css +12 -0
  36. package/es/components/Switch/Switch.js +4 -8
  37. package/es/components/Switch/Switch.js.map +1 -1
  38. package/es/components/Switch/Switch.styles.js +6 -5
  39. package/es/components/Switch/Switch.styles.js.map +1 -1
  40. package/es/components/Switch/Switch.styles_1kk0qzz.css +4 -0
  41. package/es/components/Switch/Switch.tokens.js +7 -2
  42. package/es/components/Switch/Switch.tokens.js.map +1 -1
  43. package/es/components/Switch/_focused/base.js +1 -1
  44. package/{cjs/components/Switch/_focused/base_wl4drz.css → es/components/Switch/_focused/base_j4murk.css} +1 -1
  45. package/es/components/Switch/_size/base.js +1 -1
  46. package/es/components/Switch/_size/base.js.map +1 -1
  47. package/es/components/Switch/_size/{base_1sjw39x.css → base_1rjzpi4.css} +1 -1
  48. package/es/components/Switch/_view/base.js +1 -1
  49. package/es/components/Switch/_view/base_1mtyz12.css +1 -0
  50. package/es/index.css +7 -12
  51. package/es/index.js +0 -2
  52. package/es/index.js.map +1 -1
  53. package/package.json +2 -2
  54. package/styled-components/cjs/components/Switch/Switch.js +4 -8
  55. package/styled-components/cjs/components/Switch/Switch.styles.js +7 -3
  56. package/styled-components/cjs/components/Switch/Switch.tokens.js +7 -2
  57. package/styled-components/cjs/components/Switch/_size/base.js +1 -1
  58. package/styled-components/cjs/components/Switch/index.js +0 -14
  59. package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +0 -6
  60. package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +8 -1
  61. package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.config.js +0 -6
  62. package/styled-components/es/components/Switch/Switch.js +4 -8
  63. package/styled-components/es/components/Switch/Switch.styles.js +3 -0
  64. package/styled-components/es/components/Switch/Switch.tokens.js +6 -1
  65. package/styled-components/es/components/Switch/_size/base.js +1 -1
  66. package/styled-components/es/components/Switch/index.js +1 -6
  67. package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.config.js +0 -6
  68. package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +8 -1
  69. package/styled-components/es/examples/plasma_web/components/Switch/Switch.config.js +0 -6
  70. package/types/components/Switch/Switch.d.ts +0 -3
  71. package/types/components/Switch/Switch.d.ts.map +1 -1
  72. package/types/components/Switch/Switch.styles.d.ts +1 -0
  73. package/types/components/Switch/Switch.styles.d.ts.map +1 -1
  74. package/types/components/Switch/Switch.tokens.d.ts +5 -0
  75. package/types/components/Switch/Switch.tokens.d.ts.map +1 -1
  76. package/types/components/Switch/index.d.ts +0 -4
  77. package/types/components/Switch/index.d.ts.map +1 -1
  78. package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts +0 -4
  79. package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts.map +1 -1
  80. package/types/examples/plasma_b2c/components/Switch/Switch.d.ts +0 -4
  81. package/types/examples/plasma_b2c/components/Switch/Switch.d.ts.map +1 -1
  82. package/types/examples/plasma_web/components/Switch/Switch.config.d.ts +0 -4
  83. package/types/examples/plasma_web/components/Switch/Switch.config.d.ts.map +1 -1
  84. package/types/examples/plasma_web/components/Switch/Switch.d.ts +0 -4
  85. package/types/examples/plasma_web/components/Switch/Switch.d.ts.map +1 -1
  86. package/cjs/components/Switch/Switch.styles_e1uxkt.css +0 -3
  87. package/cjs/components/Switch/Switch_svqw4q.css +0 -1
  88. package/cjs/components/Switch/_label-position/after.js +0 -9
  89. package/cjs/components/Switch/_label-position/after.js.map +0 -1
  90. package/cjs/components/Switch/_label-position/after_1sk7lsj.css +0 -1
  91. package/cjs/components/Switch/_label-position/base.js +0 -10
  92. package/cjs/components/Switch/_label-position/base.js.map +0 -1
  93. package/cjs/components/Switch/_label-position/base_x642ct.css +0 -1
  94. package/cjs/components/Switch/_label-position/before.js +0 -9
  95. package/cjs/components/Switch/_label-position/before.js.map +0 -1
  96. package/cjs/components/Switch/_label-position/before_15wiyms.css +0 -1
  97. package/cjs/components/Switch/_view/base_d10e49.css +0 -1
  98. package/emotion/cjs/components/Switch/_label-position/after.js +0 -9
  99. package/emotion/cjs/components/Switch/_label-position/base.js +0 -9
  100. package/emotion/cjs/components/Switch/_label-position/before.js +0 -9
  101. package/emotion/cjs/components/Switch/_label-position/tokens.json +0 -1
  102. package/emotion/es/components/Switch/_label-position/after.js +0 -3
  103. package/emotion/es/components/Switch/_label-position/base.js +0 -4
  104. package/emotion/es/components/Switch/_label-position/before.js +0 -3
  105. package/emotion/es/components/Switch/_label-position/tokens.json +0 -1
  106. package/es/components/Switch/Switch.styles_e1uxkt.css +0 -3
  107. package/es/components/Switch/Switch_svqw4q.css +0 -1
  108. package/es/components/Switch/_label-position/after.js +0 -5
  109. package/es/components/Switch/_label-position/after.js.map +0 -1
  110. package/es/components/Switch/_label-position/after_1sk7lsj.css +0 -1
  111. package/es/components/Switch/_label-position/base.js +0 -6
  112. package/es/components/Switch/_label-position/base.js.map +0 -1
  113. package/es/components/Switch/_label-position/base_x642ct.css +0 -1
  114. package/es/components/Switch/_label-position/before.js +0 -5
  115. package/es/components/Switch/_label-position/before.js.map +0 -1
  116. package/es/components/Switch/_label-position/before_15wiyms.css +0 -1
  117. package/es/components/Switch/_view/base_d10e49.css +0 -1
  118. package/styled-components/cjs/components/Switch/_label-position/after.js +0 -9
  119. package/styled-components/cjs/components/Switch/_label-position/base.js +0 -9
  120. package/styled-components/cjs/components/Switch/_label-position/before.js +0 -9
  121. package/styled-components/cjs/components/Switch/_label-position/tokens.json +0 -1
  122. package/styled-components/es/components/Switch/_label-position/after.js +0 -3
  123. package/styled-components/es/components/Switch/_label-position/base.js +0 -4
  124. package/styled-components/es/components/Switch/_label-position/before.js +0 -3
  125. package/styled-components/es/components/Switch/_label-position/tokens.json +0 -1
  126. package/types/components/Switch/_label-position/after.d.ts +0 -2
  127. package/types/components/Switch/_label-position/after.d.ts.map +0 -1
  128. package/types/components/Switch/_label-position/base.d.ts +0 -2
  129. package/types/components/Switch/_label-position/base.d.ts.map +0 -1
  130. package/types/components/Switch/_label-position/before.d.ts +0 -2
  131. 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: argTypesFromConfig(mergeConfig(switchConfig, config), ['size', 'view', 'focused']),
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 { base as labelPositionCSS } from '../Switch/_label-position/base';
13
- import { StyledInput, StyledLabel, StyledTrigger } from './Switch.styles';
14
- 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;}"]);
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(--plasma_private-switch__label-offset,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, StyledTrigger, tokens.thumbSize, tokens.thumbPressScale);
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: argTypesFromConfig(mergeConfig(switchConfig, config), ['size', 'view', 'focused']),
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
  },
@@ -21,9 +21,6 @@ export declare const switchConfig: {
21
21
  focused: {
22
22
  css: import("@linaria/core").LinariaClassName;
23
23
  };
24
- labelPosition: {
25
- css: import("@linaria/core").LinariaClassName;
26
- };
27
24
  };
28
25
  defaults: {
29
26
  size: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAe7C,eAAO,MAAM,UAAU,SAAU,UAAU,gBAAgB,EAAE,WAAW,CAAC,yFAoDnE,CAAC;AAEP,eAAO,MAAM,YAAY;;;;mBAtDQ,UAAU,gBAAgB,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;CAiFxE,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":";AAIA,eAAO,MAAM,WAAW,8KASvB,CAAC;AAEF,eAAO,MAAM,WAAW,uKAKvB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAmBzB,CAAC"}
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;;;;;;;;;;;;;;;;;CAuBhE,CAAC"}
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,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,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;AAGlD,OAAO,EAAE,oBAAoB,IAAI,2BAA2B,EAAE,CAAC;AAC/D,OAAO,EAAE,mBAAmB,IAAI,0BAA0B,EAAE,CAAC"}
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":"AAMA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CAoDlB,CAAC"}
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;;;;;;;;;;;;;;;;;2GAA0B,CAAC"}
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":"AAMA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CAoDlB,CAAC"}
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;;;;;;;;;;;;;;;;;2GAA0B,CAAC"}
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,9 +0,0 @@
1
- import './after_1sk7lsj.css';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var labelPosition_After = "l1u83q10";
7
-
8
- exports.labelPosition_After = labelPosition_After;
9
- //# sourceMappingURL=after.js.map
@@ -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,10 +0,0 @@
1
- import './base_x642ct.css';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- // TODO: REMOVE IT
7
- var base = "b1d4ghfc";
8
-
9
- exports.base = base;
10
- //# sourceMappingURL=base.js.map
@@ -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,9 +0,0 @@
1
- import './before_15wiyms.css';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var labelPosition_Before = "l1k91d31";
7
-
8
- exports.labelPosition_Before = labelPosition_Before;
9
- //# sourceMappingURL=before.js.map
@@ -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,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,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,5 +0,0 @@
1
- import './after_1sk7lsj.css';
2
- var labelPosition_After = "l1u83q10";
3
-
4
- export { labelPosition_After };
5
- //# sourceMappingURL=after.js.map
@@ -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,6 +0,0 @@
1
- import './base_x642ct.css';
2
- // TODO: REMOVE IT
3
- var base = "b1d4ghfc";
4
-
5
- export { base };
6
- //# sourceMappingURL=base.js.map
@@ -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,5 +0,0 @@
1
- import './before_15wiyms.css';
2
- var labelPosition_Before = "l1k91d31";
3
-
4
- export { labelPosition_Before };
5
- //# sourceMappingURL=before.js.map
@@ -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,3 +0,0 @@
1
- import { css } from 'styled-components';
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);
@@ -1,4 +0,0 @@
1
- import { css } from 'styled-components';
2
-
3
- // TODO: REMOVE IT
4
- export var base = /*#__PURE__*/css([""]);
@@ -1,3 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { tokens } from '../Switch.tokens';
3
- export var labelPosition_Before = /*#__PURE__*/css(["justify-content:space-between;--plasma_private-switch__label-offset:0 var(", ") 0 0;"], tokens.labelOffset);
@@ -1,2 +0,0 @@
1
- export declare const labelPosition_After: import("@linaria/core").LinariaClassName;
2
- //# sourceMappingURL=after.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare const base: import("@linaria/core").LinariaClassName;
2
- //# sourceMappingURL=base.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare const labelPosition_Before: import("@linaria/core").LinariaClassName;
2
- //# sourceMappingURL=before.d.ts.map
@@ -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"}