@salutejs/plasma-new-hope 0.184.0-canary.1537.11683906899.0 → 0.184.0-canary.1539.11687316067.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. package/cjs/components/Switch/Switch.css +11 -7
  2. package/cjs/components/Switch/Switch.js +16 -7
  3. package/cjs/components/Switch/Switch.js.map +1 -1
  4. package/cjs/components/Switch/Switch.styles.js +16 -4
  5. package/cjs/components/Switch/Switch.styles.js.map +1 -1
  6. package/cjs/components/Switch/Switch.styles_bei7bh.css +6 -0
  7. package/cjs/components/Switch/Switch.tokens.js +11 -0
  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_j4murk.css → cjs/components/Switch/_focused/base_sz3n0x.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_1tcl212.css +1 -0
  14. package/cjs/components/Switch/_toggleSize/base.js +9 -0
  15. package/cjs/components/Switch/_toggleSize/base.js.map +1 -0
  16. package/cjs/components/Switch/_toggleSize/base_6i0904.css +1 -0
  17. package/cjs/components/Switch/_view/base.js +1 -1
  18. package/cjs/components/Switch/_view/base.js.map +1 -1
  19. package/cjs/components/Switch/_view/base_yxkf3s.css +1 -0
  20. package/cjs/index.css +11 -7
  21. package/emotion/cjs/components/Switch/Switch.js +17 -8
  22. package/emotion/cjs/components/Switch/Switch.styles.js +21 -5
  23. package/emotion/cjs/components/Switch/Switch.template-doc.mdx +37 -1
  24. package/emotion/cjs/components/Switch/Switch.tokens.js +11 -0
  25. package/emotion/cjs/components/Switch/_size/base.js +1 -1
  26. package/emotion/cjs/components/Switch/_toggleSize/base.js +10 -0
  27. package/emotion/cjs/components/Switch/_view/base.js +1 -1
  28. package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +11 -4
  29. package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +7 -1
  30. package/emotion/cjs/examples/plasma_web/components/Switch/Switch.config.js +11 -4
  31. package/emotion/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +14 -1
  32. package/emotion/es/components/Switch/Switch.js +13 -4
  33. package/emotion/es/components/Switch/Switch.styles.js +20 -4
  34. package/emotion/es/components/Switch/Switch.template-doc.mdx +37 -1
  35. package/emotion/es/components/Switch/Switch.tokens.js +11 -0
  36. package/emotion/es/components/Switch/_size/base.js +2 -2
  37. package/emotion/es/components/Switch/_toggleSize/base.js +4 -0
  38. package/emotion/es/components/Switch/_view/base.js +2 -2
  39. package/emotion/es/examples/plasma_b2c/components/Switch/Switch.config.js +11 -4
  40. package/emotion/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +7 -1
  41. package/emotion/es/examples/plasma_web/components/Switch/Switch.config.js +11 -4
  42. package/emotion/es/examples/plasma_web/components/Switch/Switch.stories.tsx +14 -1
  43. package/es/components/Switch/Switch.css +11 -7
  44. package/es/components/Switch/Switch.js +17 -8
  45. package/es/components/Switch/Switch.js.map +1 -1
  46. package/es/components/Switch/Switch.styles.js +15 -5
  47. package/es/components/Switch/Switch.styles.js.map +1 -1
  48. package/es/components/Switch/Switch.styles_bei7bh.css +6 -0
  49. package/es/components/Switch/Switch.tokens.js +11 -0
  50. package/es/components/Switch/Switch.tokens.js.map +1 -1
  51. package/es/components/Switch/_focused/base.js +1 -1
  52. package/{cjs/components/Switch/_focused/base_j4murk.css → es/components/Switch/_focused/base_sz3n0x.css} +1 -1
  53. package/es/components/Switch/_size/base.js +1 -1
  54. package/es/components/Switch/_size/base.js.map +1 -1
  55. package/es/components/Switch/_size/base_1tcl212.css +1 -0
  56. package/es/components/Switch/_toggleSize/base.js +5 -0
  57. package/es/components/Switch/_toggleSize/base.js.map +1 -0
  58. package/es/components/Switch/_toggleSize/base_6i0904.css +1 -0
  59. package/es/components/Switch/_view/base.js +1 -1
  60. package/es/components/Switch/_view/base.js.map +1 -1
  61. package/es/components/Switch/_view/base_yxkf3s.css +1 -0
  62. package/es/index.css +11 -7
  63. package/package.json +4 -4
  64. package/styled-components/cjs/components/Switch/Switch.js +17 -8
  65. package/styled-components/cjs/components/Switch/Switch.styles.js +11 -5
  66. package/styled-components/cjs/components/Switch/Switch.template-doc.mdx +37 -1
  67. package/styled-components/cjs/components/Switch/Switch.tokens.js +11 -0
  68. package/styled-components/cjs/components/Switch/_size/base.js +1 -1
  69. package/styled-components/cjs/components/Switch/_toggleSize/base.js +10 -0
  70. package/styled-components/cjs/components/Switch/_view/base.js +1 -1
  71. package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +9 -2
  72. package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +7 -1
  73. package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.config.js +9 -2
  74. package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +14 -1
  75. package/styled-components/es/components/Switch/Switch.js +13 -4
  76. package/styled-components/es/components/Switch/Switch.styles.js +10 -4
  77. package/styled-components/es/components/Switch/Switch.template-doc.mdx +37 -1
  78. package/styled-components/es/components/Switch/Switch.tokens.js +11 -0
  79. package/styled-components/es/components/Switch/_size/base.js +2 -2
  80. package/styled-components/es/components/Switch/_toggleSize/base.js +4 -0
  81. package/styled-components/es/components/Switch/_view/base.js +2 -2
  82. package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.config.js +9 -2
  83. package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +7 -1
  84. package/styled-components/es/examples/plasma_web/components/Switch/Switch.config.js +9 -2
  85. package/styled-components/es/examples/plasma_web/components/Switch/Switch.stories.tsx +14 -1
  86. package/types/components/Switch/Switch.d.ts +3 -0
  87. package/types/components/Switch/Switch.d.ts.map +1 -1
  88. package/types/components/Switch/Switch.styles.d.ts +2 -0
  89. package/types/components/Switch/Switch.styles.d.ts.map +1 -1
  90. package/types/components/Switch/Switch.tokens.d.ts +9 -0
  91. package/types/components/Switch/Switch.tokens.d.ts.map +1 -1
  92. package/types/components/Switch/Switch.types.d.ts +10 -2
  93. package/types/components/Switch/Switch.types.d.ts.map +1 -1
  94. package/types/components/Switch/_size/base.d.ts.map +1 -1
  95. package/types/components/Switch/_toggleSize/base.d.ts +2 -0
  96. package/types/components/Switch/_toggleSize/base.d.ts.map +1 -0
  97. package/types/components/Switch/_view/base.d.ts.map +1 -1
  98. package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts +7 -0
  99. package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts.map +1 -1
  100. package/types/examples/plasma_b2c/components/Switch/Switch.d.ts +6 -0
  101. package/types/examples/plasma_b2c/components/Switch/Switch.d.ts.map +1 -1
  102. package/types/examples/plasma_web/components/Switch/Switch.config.d.ts +7 -0
  103. package/types/examples/plasma_web/components/Switch/Switch.config.d.ts.map +1 -1
  104. package/types/examples/plasma_web/components/Switch/Switch.d.ts +6 -0
  105. package/types/examples/plasma_web/components/Switch/Switch.d.ts.map +1 -1
  106. package/cjs/components/Switch/Switch.styles_1kk0qzz.css +0 -4
  107. package/cjs/components/Switch/_size/base_1rjzpi4.css +0 -1
  108. package/cjs/components/Switch/_view/base_1mtyz12.css +0 -1
  109. package/es/components/Switch/Switch.styles_1kk0qzz.css +0 -4
  110. package/es/components/Switch/_size/base_1rjzpi4.css +0 -1
  111. package/es/components/Switch/_view/base_1mtyz12.css +0 -1
@@ -1 +1 @@
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"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGlB,CAAC"}
@@ -1,7 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Switch: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
3
3
  size: {
4
+ s: import("@linaria/core").LinariaClassName;
4
5
  m: import("@linaria/core").LinariaClassName;
6
+ l: import("@linaria/core").LinariaClassName;
7
+ };
8
+ toggleSize: {
9
+ l: import("@linaria/core").LinariaClassName;
10
+ s: import("@linaria/core").LinariaClassName;
5
11
  };
6
12
  view: {
7
13
  default: import("@linaria/core").LinariaClassName;
@@ -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"}
@@ -2,12 +2,19 @@ export declare const config: {
2
2
  defaults: {
3
3
  view: string;
4
4
  size: string;
5
+ toggleSize: string;
5
6
  labelPosition: string;
6
7
  focused: string;
7
8
  };
8
9
  variations: {
9
10
  size: {
11
+ s: import("@linaria/core").LinariaClassName;
10
12
  m: import("@linaria/core").LinariaClassName;
13
+ l: import("@linaria/core").LinariaClassName;
14
+ };
15
+ toggleSize: {
16
+ l: import("@linaria/core").LinariaClassName;
17
+ s: import("@linaria/core").LinariaClassName;
11
18
  };
12
19
  view: {
13
20
  default: import("@linaria/core").LinariaClassName;
@@ -1 +1 @@
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"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGlB,CAAC"}
@@ -1,7 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Switch: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
3
3
  size: {
4
+ s: import("@linaria/core").LinariaClassName;
4
5
  m: import("@linaria/core").LinariaClassName;
6
+ l: import("@linaria/core").LinariaClassName;
7
+ };
8
+ toggleSize: {
9
+ l: import("@linaria/core").LinariaClassName;
10
+ s: import("@linaria/core").LinariaClassName;
5
11
  };
6
12
  view: {
7
13
  default: import("@linaria/core").LinariaClassName;
@@ -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,4 +0,0 @@
1
- .b1fcyfkl{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);}.b1fcyfkl:focus{outline:0 none;}.b1fcyfkl.switch-label-position-before{-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;}.b1fcyfkl.switch-label-position-after{-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);}
2
- .s10fscgc{position:absolute;right:0;margin:0;opacity:0;}.s10fscgc:focus{outline:0 none;}
3
- .sdjnckq{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
4
- .ssthlx1{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;}.ssthlx1::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;}.s10fscgc:checked ~ .ssthlx1::after{right:0;left:auto;}
@@ -1 +0,0 @@
1
- .bm1v11h{font-family:var(--plasma-switch-font-family);font-style:var(--plasma-switch-font-style);font-weight:var(--plasma-switch-font-weight);-webkit-letter-spacing:var(--plasma-switch-letter-spacing);-moz-letter-spacing:var(--plasma-switch-letter-spacing);-ms-letter-spacing:var(--plasma-switch-letter-spacing);letter-spacing:var(--plasma-switch-letter-spacing);line-height:var(--plasma-switch-line-height);font-size:var(--plasma-switch-font-size);}.bm1v11h .ssthlx1{-webkit-flex:0 0 var(--plasma-switch__track-width);-ms-flex:0 0 var(--plasma-switch__track-width);flex:0 0 var(--plasma-switch__track-width);width:var(--plasma-switch__track-width);height:var(--plasma-switch__track-height);border-radius:var(--plasma-switch__track-border-radius);}.bm1v11h .ssthlx1::after{width:var(--plasma-switch__thumb-size);height:var(--plasma-switch__thumb-size);border-radius:var(--plasma-switch__thumb-border-radius);margin:auto var(--plasma-switch__thumb-offset);}.bm1v11h .sdjnckq{margin:var(--plasma_private-switch__label-offset,0);}.bm1v11h:active:not([disabled]) .ssthlx1::after{width:calc(var(--plasma-switch__thumb-size) * var(--plasma-switch__thumb-scale,1));}
@@ -1 +0,0 @@
1
- .b1g0jmh3 .ssthlx1{background-color:var(--plasma-switch__track_checked_false-bg-color);}.b1g0jmh3 .s10fscgc:not([disabled]) ~ .ssthlx1:hover{background-color:var(--plasma-switch__track_checked_false_hovered_true-bg-color,var(--plasma-switch__track_checked_false-bg-color));}.b1g0jmh3 .s10fscgc:checked ~ .ssthlx1{background-color:var(--plasma-switch__track_checked_true-bg-color);}.b1g0jmh3 .s10fscgc:checked:not([disabled]) ~ .ssthlx1:hover{background-color:var(--plasma-switch__track_checked_true_hovered_true-bg-color,var(--plasma-switch__track_checked_true-bg-color));}.b1g0jmh3 .ssthlx1::after{background-color:var(--plasma-switch__thumb-bg-color);box-shadow:var(--plasma-switch__thumb-box-shadow);}.b1g0jmh3 .s10fscgc:checked ~ .ssthlx1::after{box-shadow:var(--plasma-switch__thumb-box-shadow_checked_true,var(--plasma-switch__thumb-box-shadow));}
@@ -1,4 +0,0 @@
1
- .b1fcyfkl{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);}.b1fcyfkl:focus{outline:0 none;}.b1fcyfkl.switch-label-position-before{-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;}.b1fcyfkl.switch-label-position-after{-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);}
2
- .s10fscgc{position:absolute;right:0;margin:0;opacity:0;}.s10fscgc:focus{outline:0 none;}
3
- .sdjnckq{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
4
- .ssthlx1{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;}.ssthlx1::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;}.s10fscgc:checked ~ .ssthlx1::after{right:0;left:auto;}
@@ -1 +0,0 @@
1
- .bm1v11h{font-family:var(--plasma-switch-font-family);font-style:var(--plasma-switch-font-style);font-weight:var(--plasma-switch-font-weight);-webkit-letter-spacing:var(--plasma-switch-letter-spacing);-moz-letter-spacing:var(--plasma-switch-letter-spacing);-ms-letter-spacing:var(--plasma-switch-letter-spacing);letter-spacing:var(--plasma-switch-letter-spacing);line-height:var(--plasma-switch-line-height);font-size:var(--plasma-switch-font-size);}.bm1v11h .ssthlx1{-webkit-flex:0 0 var(--plasma-switch__track-width);-ms-flex:0 0 var(--plasma-switch__track-width);flex:0 0 var(--plasma-switch__track-width);width:var(--plasma-switch__track-width);height:var(--plasma-switch__track-height);border-radius:var(--plasma-switch__track-border-radius);}.bm1v11h .ssthlx1::after{width:var(--plasma-switch__thumb-size);height:var(--plasma-switch__thumb-size);border-radius:var(--plasma-switch__thumb-border-radius);margin:auto var(--plasma-switch__thumb-offset);}.bm1v11h .sdjnckq{margin:var(--plasma_private-switch__label-offset,0);}.bm1v11h:active:not([disabled]) .ssthlx1::after{width:calc(var(--plasma-switch__thumb-size) * var(--plasma-switch__thumb-scale,1));}
@@ -1 +0,0 @@
1
- .b1g0jmh3 .ssthlx1{background-color:var(--plasma-switch__track_checked_false-bg-color);}.b1g0jmh3 .s10fscgc:not([disabled]) ~ .ssthlx1:hover{background-color:var(--plasma-switch__track_checked_false_hovered_true-bg-color,var(--plasma-switch__track_checked_false-bg-color));}.b1g0jmh3 .s10fscgc:checked ~ .ssthlx1{background-color:var(--plasma-switch__track_checked_true-bg-color);}.b1g0jmh3 .s10fscgc:checked:not([disabled]) ~ .ssthlx1:hover{background-color:var(--plasma-switch__track_checked_true_hovered_true-bg-color,var(--plasma-switch__track_checked_true-bg-color));}.b1g0jmh3 .ssthlx1::after{background-color:var(--plasma-switch__thumb-bg-color);box-shadow:var(--plasma-switch__thumb-box-shadow);}.b1g0jmh3 .s10fscgc:checked ~ .ssthlx1::after{box-shadow:var(--plasma-switch__thumb-box-shadow_checked_true,var(--plasma-switch__thumb-box-shadow));}