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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. package/cjs/components/DatePicker/RangeDate/RangeDate.js +3 -1
  2. package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
  3. package/cjs/components/Range/Range.js +7 -4
  4. package/cjs/components/Range/Range.js.map +1 -1
  5. package/cjs/components/Switch/Switch.css +7 -11
  6. package/cjs/components/Switch/Switch.js +7 -16
  7. package/cjs/components/Switch/Switch.js.map +1 -1
  8. package/cjs/components/Switch/Switch.styles.js +4 -16
  9. package/cjs/components/Switch/Switch.styles.js.map +1 -1
  10. package/cjs/components/Switch/Switch.styles_1kk0qzz.css +4 -0
  11. package/cjs/components/Switch/Switch.tokens.js +0 -11
  12. package/cjs/components/Switch/Switch.tokens.js.map +1 -1
  13. package/cjs/components/Switch/_focused/base.js +1 -1
  14. package/{es/components/Switch/_focused/base_sz3n0x.css → cjs/components/Switch/_focused/base_j4murk.css} +1 -1
  15. package/cjs/components/Switch/_size/base.js +1 -1
  16. package/cjs/components/Switch/_size/base.js.map +1 -1
  17. package/cjs/components/Switch/_size/base_1rjzpi4.css +1 -0
  18. package/cjs/components/Switch/_view/base.js +1 -1
  19. package/cjs/components/Switch/_view/base.js.map +1 -1
  20. package/cjs/components/Switch/_view/base_1mtyz12.css +1 -0
  21. package/cjs/index.css +7 -11
  22. package/emotion/cjs/components/DatePicker/RangeDate/RangeDate.js +3 -1
  23. package/emotion/cjs/components/Range/Range.js +7 -4
  24. package/emotion/cjs/components/Switch/Switch.js +8 -17
  25. package/emotion/cjs/components/Switch/Switch.styles.js +5 -21
  26. package/emotion/cjs/components/Switch/Switch.template-doc.mdx +1 -37
  27. package/emotion/cjs/components/Switch/Switch.tokens.js +0 -11
  28. package/emotion/cjs/components/Switch/_size/base.js +1 -1
  29. package/emotion/cjs/components/Switch/_view/base.js +1 -1
  30. package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +4 -11
  31. package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -7
  32. package/emotion/cjs/examples/plasma_web/components/Switch/Switch.config.js +4 -11
  33. package/emotion/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -14
  34. package/emotion/es/components/DatePicker/RangeDate/RangeDate.js +3 -1
  35. package/emotion/es/components/Range/Range.js +7 -4
  36. package/emotion/es/components/Switch/Switch.js +4 -13
  37. package/emotion/es/components/Switch/Switch.styles.js +4 -20
  38. package/emotion/es/components/Switch/Switch.template-doc.mdx +1 -37
  39. package/emotion/es/components/Switch/Switch.tokens.js +0 -11
  40. package/emotion/es/components/Switch/_size/base.js +2 -2
  41. package/emotion/es/components/Switch/_view/base.js +2 -2
  42. package/emotion/es/examples/plasma_b2c/components/Switch/Switch.config.js +4 -11
  43. package/emotion/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -7
  44. package/emotion/es/examples/plasma_web/components/Switch/Switch.config.js +4 -11
  45. package/emotion/es/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -14
  46. package/es/components/DatePicker/RangeDate/RangeDate.js +3 -1
  47. package/es/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
  48. package/es/components/Range/Range.js +7 -4
  49. package/es/components/Range/Range.js.map +1 -1
  50. package/es/components/Switch/Switch.css +7 -11
  51. package/es/components/Switch/Switch.js +8 -17
  52. package/es/components/Switch/Switch.js.map +1 -1
  53. package/es/components/Switch/Switch.styles.js +5 -15
  54. package/es/components/Switch/Switch.styles.js.map +1 -1
  55. package/es/components/Switch/Switch.styles_1kk0qzz.css +4 -0
  56. package/es/components/Switch/Switch.tokens.js +0 -11
  57. package/es/components/Switch/Switch.tokens.js.map +1 -1
  58. package/es/components/Switch/_focused/base.js +1 -1
  59. package/{cjs/components/Switch/_focused/base_sz3n0x.css → es/components/Switch/_focused/base_j4murk.css} +1 -1
  60. package/es/components/Switch/_size/base.js +1 -1
  61. package/es/components/Switch/_size/base.js.map +1 -1
  62. package/es/components/Switch/_size/base_1rjzpi4.css +1 -0
  63. package/es/components/Switch/_view/base.js +1 -1
  64. package/es/components/Switch/_view/base.js.map +1 -1
  65. package/es/components/Switch/_view/base_1mtyz12.css +1 -0
  66. package/es/index.css +7 -11
  67. package/package.json +2 -2
  68. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +3 -1
  69. package/styled-components/cjs/components/Range/Range.js +7 -4
  70. package/styled-components/cjs/components/Switch/Switch.js +8 -17
  71. package/styled-components/cjs/components/Switch/Switch.styles.js +5 -11
  72. package/styled-components/cjs/components/Switch/Switch.template-doc.mdx +1 -37
  73. package/styled-components/cjs/components/Switch/Switch.tokens.js +0 -11
  74. package/styled-components/cjs/components/Switch/_size/base.js +1 -1
  75. package/styled-components/cjs/components/Switch/_view/base.js +1 -1
  76. package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +2 -9
  77. package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -7
  78. package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.config.js +2 -9
  79. package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -14
  80. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +3 -1
  81. package/styled-components/es/components/Range/Range.js +7 -4
  82. package/styled-components/es/components/Switch/Switch.js +4 -13
  83. package/styled-components/es/components/Switch/Switch.styles.js +4 -10
  84. package/styled-components/es/components/Switch/Switch.template-doc.mdx +1 -37
  85. package/styled-components/es/components/Switch/Switch.tokens.js +0 -11
  86. package/styled-components/es/components/Switch/_size/base.js +2 -2
  87. package/styled-components/es/components/Switch/_view/base.js +2 -2
  88. package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.config.js +2 -9
  89. package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -7
  90. package/styled-components/es/examples/plasma_web/components/Switch/Switch.config.js +2 -9
  91. package/styled-components/es/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -14
  92. package/types/components/DatePicker/RangeDate/RangeDate.d.ts +2 -0
  93. package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +1 -1
  94. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts +3 -0
  95. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts.map +1 -1
  96. package/types/components/Range/Range.d.ts.map +1 -1
  97. package/types/components/Range/Range.types.d.ts +4 -0
  98. package/types/components/Range/Range.types.d.ts.map +1 -1
  99. package/types/components/Switch/Switch.d.ts +0 -3
  100. package/types/components/Switch/Switch.d.ts.map +1 -1
  101. package/types/components/Switch/Switch.styles.d.ts +0 -2
  102. package/types/components/Switch/Switch.styles.d.ts.map +1 -1
  103. package/types/components/Switch/Switch.tokens.d.ts +0 -9
  104. package/types/components/Switch/Switch.tokens.d.ts.map +1 -1
  105. package/types/components/Switch/Switch.types.d.ts +2 -10
  106. package/types/components/Switch/Switch.types.d.ts.map +1 -1
  107. package/types/components/Switch/_size/base.d.ts.map +1 -1
  108. package/types/components/Switch/_view/base.d.ts.map +1 -1
  109. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +1 -0
  110. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -1
  111. package/types/examples/plasma_b2c/components/Range/Range.d.ts +3 -0
  112. package/types/examples/plasma_b2c/components/Range/Range.d.ts.map +1 -1
  113. package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts +0 -7
  114. package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts.map +1 -1
  115. package/types/examples/plasma_b2c/components/Switch/Switch.d.ts +0 -6
  116. package/types/examples/plasma_b2c/components/Switch/Switch.d.ts.map +1 -1
  117. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +1 -0
  118. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -1
  119. package/types/examples/plasma_web/components/Range/Range.d.ts +3 -0
  120. package/types/examples/plasma_web/components/Range/Range.d.ts.map +1 -1
  121. package/types/examples/plasma_web/components/Switch/Switch.config.d.ts +0 -7
  122. package/types/examples/plasma_web/components/Switch/Switch.config.d.ts.map +1 -1
  123. package/types/examples/plasma_web/components/Switch/Switch.d.ts +0 -6
  124. package/types/examples/plasma_web/components/Switch/Switch.d.ts.map +1 -1
  125. package/cjs/components/Switch/Switch.styles_bei7bh.css +0 -6
  126. package/cjs/components/Switch/_size/base_1tcl212.css +0 -1
  127. package/cjs/components/Switch/_toggleSize/base.js +0 -9
  128. package/cjs/components/Switch/_toggleSize/base.js.map +0 -1
  129. package/cjs/components/Switch/_toggleSize/base_6i0904.css +0 -1
  130. package/cjs/components/Switch/_view/base_yxkf3s.css +0 -1
  131. package/emotion/cjs/components/Switch/_toggleSize/base.js +0 -10
  132. package/emotion/es/components/Switch/_toggleSize/base.js +0 -4
  133. package/es/components/Switch/Switch.styles_bei7bh.css +0 -6
  134. package/es/components/Switch/_size/base_1tcl212.css +0 -1
  135. package/es/components/Switch/_toggleSize/base.js +0 -5
  136. package/es/components/Switch/_toggleSize/base.js.map +0 -1
  137. package/es/components/Switch/_toggleSize/base_6i0904.css +0 -1
  138. package/es/components/Switch/_view/base_yxkf3s.css +0 -1
  139. package/styled-components/cjs/components/Switch/_toggleSize/base.js +0 -10
  140. package/styled-components/es/components/Switch/_toggleSize/base.js +0 -4
  141. package/types/components/Switch/_toggleSize/base.d.ts +0 -2
  142. package/types/components/Switch/_toggleSize/base.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../src/components/Switch/_toggleSize/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../Switch.tokens';\nimport { StyledTrigger } from '../Switch.styles';\n\nexport const base = css`\n ${StyledTrigger} {\n flex: 0 0 var(${tokens.trackWidth});\n width: var(${tokens.trackWidth});\n height: var(${tokens.trackHeight});\n border-radius: var(${tokens.trackBorderRadius});\n\n &::after {\n width: var(${tokens.thumbSize});\n height: var(${tokens.thumbSize});\n border-radius: var(${tokens.thumbBorderRadius});\n margin: auto var(${tokens.thumbOffset});\n }\n }\n\n :active:not([disabled]) ${StyledTrigger}::after {\n width: calc(var(${tokens.thumbSize}) * var(${tokens.thumbPressScale}, 1));\n }\n`;\n"],"names":["base"],"mappings":"AAKO,IAAMA,IAAI,GAkBhB;;;;"}
@@ -1 +0,0 @@
1
- .b1wld3h3 .s2cs3kf{-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);}.b1wld3h3 .s2cs3kf::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);}.b1wld3h3:active:not([disabled]) .s2cs3kf::after{width:calc(var(--plasma-switch__thumb-size) * var(--plasma-switch__thumb-scale,1));}
@@ -1 +0,0 @@
1
- .b1g0jmh3 .s2cs3kf{background-color:var(--plasma-switch__track_checked_false-bg-color);}.b1g0jmh3 .ssthlx1:not([disabled]) ~ .s2cs3kf:hover{background-color:var(--plasma-switch__track_checked_false_hovered_true-bg-color,var(--plasma-switch__track_checked_false-bg-color));}.b1g0jmh3 .ssthlx1:checked ~ .s2cs3kf{background-color:var(--plasma-switch__track_checked_true-bg-color);}.b1g0jmh3 .ssthlx1:checked:not([disabled]) ~ .s2cs3kf:hover{background-color:var(--plasma-switch__track_checked_true_hovered_true-bg-color,var(--plasma-switch__track_checked_true-bg-color));}.b1g0jmh3 .s2cs3kf::after{background-color:var(--plasma-switch__thumb-bg-color);box-shadow:var(--plasma-switch__thumb-box-shadow);}.b1g0jmh3 .ssthlx1:checked ~ .s2cs3kf::after{box-shadow:var(--plasma-switch__thumb-box-shadow_checked_true,var(--plasma-switch__thumb-box-shadow));}.b1g0jmh3 .s1ilr5eq{color:var(--plasma-switch__label-color);}.b1g0jmh3 .sdjnckq{color:var(--plasma-switch__description-color);}
@@ -1,10 +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
- var _Switch = /*#__PURE__*/require("../Switch.tokens");
9
- var _Switch2 = /*#__PURE__*/require("../Switch.styles");
10
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["", "{flex:0 0 var(", ");width:var(", ");height:var(", ");border-radius:var(", ");&::after{width:var(", ");height:var(", ");border-radius:var(", ");margin:auto var(", ");}}:active:not([disabled]) ", "::after{width:calc(var(", ") * var(", ",1));}"], _Switch2.StyledTrigger, _Switch.tokens.trackWidth, _Switch.tokens.trackWidth, _Switch.tokens.trackHeight, _Switch.tokens.trackBorderRadius, _Switch.tokens.thumbSize, _Switch.tokens.thumbSize, _Switch.tokens.thumbBorderRadius, _Switch.tokens.thumbOffset, _Switch2.StyledTrigger, _Switch.tokens.thumbSize, _Switch.tokens.thumbPressScale);
@@ -1,4 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { tokens } from '../Switch.tokens';
3
- import { StyledTrigger } from '../Switch.styles';
4
- export var base = /*#__PURE__*/css(["", "{flex:0 0 var(", ");width:var(", ");height:var(", ");border-radius:var(", ");&::after{width:var(", ");height:var(", ");border-radius:var(", ");margin:auto var(", ");}}:active:not([disabled]) ", "::after{width:calc(var(", ") * var(", ",1));}"], StyledTrigger, tokens.trackWidth, tokens.trackWidth, tokens.trackHeight, tokens.trackBorderRadius, tokens.thumbSize, tokens.thumbSize, tokens.thumbBorderRadius, tokens.thumbOffset, StyledTrigger, tokens.thumbSize, tokens.thumbPressScale);
@@ -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/_toggleSize/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CAkBhB,CAAC"}