@salutejs/plasma-new-hope 0.186.0-canary.1541.11711445984.0 → 0.186.0-canary.1546.11723696357.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. package/cjs/components/Badge/Badge.css +4 -4
  2. package/cjs/components/Badge/Badge.js +16 -4
  3. package/cjs/components/Badge/Badge.js.map +1 -1
  4. package/cjs/components/Badge/Badge.tokens.js +10 -5
  5. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  6. package/cjs/components/Badge/variations/_clear/base.js +1 -1
  7. package/cjs/components/Badge/variations/_clear/base.js.map +1 -1
  8. package/cjs/components/Badge/variations/_clear/base_wiboj8.css +1 -0
  9. package/cjs/components/Badge/variations/_size/base.js +1 -1
  10. package/cjs/components/Badge/variations/_size/base.js.map +1 -1
  11. package/{es/components/Badge/variations/_size/base_to0y5x.css → cjs/components/Badge/variations/_size/base_rn38n6.css} +1 -1
  12. package/cjs/components/Badge/variations/_transparent/base.js +1 -1
  13. package/cjs/components/Badge/variations/_transparent/base.js.map +1 -1
  14. package/cjs/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
  15. package/cjs/components/Badge/variations/_view/base.js +1 -1
  16. package/cjs/components/Badge/variations/_view/base.js.map +1 -1
  17. package/cjs/components/Badge/variations/_view/base_j3xzf3.css +1 -0
  18. package/cjs/components/TextField/TextField.js +0 -11
  19. package/cjs/components/TextField/TextField.js.map +1 -1
  20. package/cjs/index.css +4 -4
  21. package/emotion/cjs/components/Badge/Badge.js +21 -4
  22. package/emotion/cjs/components/Badge/Badge.tokens.js +10 -6
  23. package/emotion/cjs/components/Badge/variations/_clear/base.js +1 -1
  24. package/emotion/cjs/components/Badge/variations/_size/base.js +2 -1
  25. package/emotion/cjs/components/Badge/variations/_transparent/base.js +1 -1
  26. package/emotion/cjs/components/Badge/variations/_view/base.js +1 -1
  27. package/emotion/cjs/components/TextField/TextField.js +1 -12
  28. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +14 -14
  29. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
  30. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -1
  31. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  32. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
  33. package/emotion/es/components/Badge/Badge.js +23 -5
  34. package/emotion/es/components/Badge/Badge.tokens.js +9 -5
  35. package/emotion/es/components/Badge/variations/_clear/base.js +2 -2
  36. package/emotion/es/components/Badge/variations/_size/base.js +3 -2
  37. package/emotion/es/components/Badge/variations/_transparent/base.js +2 -2
  38. package/emotion/es/components/Badge/variations/_view/base.js +2 -2
  39. package/emotion/es/components/TextField/TextField.js +1 -12
  40. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +14 -14
  41. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
  42. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -1
  43. package/emotion/es/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  44. package/emotion/es/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
  45. package/es/components/Badge/Badge.css +4 -4
  46. package/es/components/Badge/Badge.js +19 -7
  47. package/es/components/Badge/Badge.js.map +1 -1
  48. package/es/components/Badge/Badge.tokens.js +10 -6
  49. package/es/components/Badge/Badge.tokens.js.map +1 -1
  50. package/es/components/Badge/variations/_clear/base.js +1 -1
  51. package/es/components/Badge/variations/_clear/base.js.map +1 -1
  52. package/es/components/Badge/variations/_clear/base_wiboj8.css +1 -0
  53. package/es/components/Badge/variations/_size/base.js +1 -1
  54. package/es/components/Badge/variations/_size/base.js.map +1 -1
  55. package/{cjs/components/Badge/variations/_size/base_to0y5x.css → es/components/Badge/variations/_size/base_rn38n6.css} +1 -1
  56. package/es/components/Badge/variations/_transparent/base.js +1 -1
  57. package/es/components/Badge/variations/_transparent/base.js.map +1 -1
  58. package/es/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
  59. package/es/components/Badge/variations/_view/base.js +1 -1
  60. package/es/components/Badge/variations/_view/base.js.map +1 -1
  61. package/es/components/Badge/variations/_view/base_j3xzf3.css +1 -0
  62. package/es/components/TextField/TextField.js +0 -11
  63. package/es/components/TextField/TextField.js.map +1 -1
  64. package/es/index.css +4 -4
  65. package/package.json +2 -2
  66. package/styled-components/cjs/components/Badge/Badge.js +21 -4
  67. package/styled-components/cjs/components/Badge/Badge.tokens.js +10 -6
  68. package/styled-components/cjs/components/Badge/variations/_clear/base.js +1 -1
  69. package/styled-components/cjs/components/Badge/variations/_size/base.js +2 -1
  70. package/styled-components/cjs/components/Badge/variations/_transparent/base.js +1 -1
  71. package/styled-components/cjs/components/Badge/variations/_view/base.js +1 -1
  72. package/styled-components/cjs/components/TextField/TextField.js +0 -11
  73. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  74. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
  75. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -1
  76. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  77. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
  78. package/styled-components/es/components/Badge/Badge.js +23 -5
  79. package/styled-components/es/components/Badge/Badge.tokens.js +9 -5
  80. package/styled-components/es/components/Badge/variations/_clear/base.js +2 -2
  81. package/styled-components/es/components/Badge/variations/_size/base.js +3 -2
  82. package/styled-components/es/components/Badge/variations/_transparent/base.js +2 -2
  83. package/styled-components/es/components/Badge/variations/_view/base.js +2 -2
  84. package/styled-components/es/components/TextField/TextField.js +0 -11
  85. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  86. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
  87. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -1
  88. package/styled-components/es/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  89. package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
  90. package/types/components/Badge/Badge.d.ts.map +1 -1
  91. package/types/components/Badge/Badge.tokens.d.ts +8 -4
  92. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  93. package/types/components/Badge/Badge.types.d.ts +18 -5
  94. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  95. package/types/components/Badge/variations/_clear/base.d.ts.map +1 -1
  96. package/types/components/Badge/variations/_size/base.d.ts.map +1 -1
  97. package/types/components/TextField/TextField.d.ts.map +1 -1
  98. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  99. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +58 -4
  100. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  101. package/types/examples/plasma_web/components/Badge/Badge.config.d.ts.map +1 -1
  102. package/types/examples/plasma_web/components/Badge/Badge.d.ts +58 -4
  103. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  104. package/cjs/components/Badge/variations/_clear/base_oopyb7.css +0 -1
  105. package/cjs/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
  106. package/cjs/components/Badge/variations/_view/base_qlxank.css +0 -1
  107. package/cjs/utils/syntheticEvent.js +0 -56
  108. package/cjs/utils/syntheticEvent.js.map +0 -1
  109. package/emotion/cjs/utils/syntheticEvent.js +0 -54
  110. package/emotion/es/utils/syntheticEvent.js +0 -48
  111. package/es/components/Badge/variations/_clear/base_oopyb7.css +0 -1
  112. package/es/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
  113. package/es/components/Badge/variations/_view/base_qlxank.css +0 -1
  114. package/es/utils/syntheticEvent.js +0 -51
  115. package/es/utils/syntheticEvent.js.map +0 -1
  116. package/styled-components/cjs/utils/syntheticEvent.js +0 -54
  117. package/styled-components/es/utils/syntheticEvent.js +0 -48
  118. package/types/utils/syntheticEvent.d.ts +0 -4
  119. package/types/utils/syntheticEvent.d.ts.map +0 -1
@@ -1,54 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.createSyntheticEvent = exports.createEvent = void 0;
7
- var createEvent = exports.createEvent = function createEvent(ref) {
8
- if (ref.current) {
9
- var event = new Event('change', {
10
- bubbles: true
11
- });
12
- Object.defineProperty(event, 'target', {
13
- writable: false,
14
- value: ref.current
15
- });
16
- var syntheticEvent = createSyntheticEvent(event);
17
- console.log(syntheticEvent);
18
- return syntheticEvent;
19
- }
20
- return null;
21
- };
22
- var createSyntheticEvent = exports.createSyntheticEvent = function createSyntheticEvent(event) {
23
- var _isDefaultPrevented = false;
24
- var _isPropagationStopped = false;
25
- var preventDefault = function preventDefault() {
26
- _isDefaultPrevented = true;
27
- event.preventDefault();
28
- };
29
- var stopPropagation = function stopPropagation() {
30
- _isPropagationStopped = true;
31
- event.stopPropagation();
32
- };
33
- return {
34
- nativeEvent: event,
35
- currentTarget: event.currentTarget,
36
- target: event.target,
37
- bubbles: event.bubbles,
38
- cancelable: event.cancelable,
39
- defaultPrevented: event.defaultPrevented,
40
- eventPhase: event.eventPhase,
41
- isTrusted: event.isTrusted,
42
- preventDefault: preventDefault,
43
- isDefaultPrevented: function isDefaultPrevented() {
44
- return _isDefaultPrevented;
45
- },
46
- stopPropagation: stopPropagation,
47
- isPropagationStopped: function isPropagationStopped() {
48
- return _isPropagationStopped;
49
- },
50
- persist: function persist() {},
51
- timeStamp: event.timeStamp,
52
- type: event.type
53
- };
54
- };
@@ -1,48 +0,0 @@
1
- export var createEvent = function createEvent(ref) {
2
- if (ref.current) {
3
- var event = new Event('change', {
4
- bubbles: true
5
- });
6
- Object.defineProperty(event, 'target', {
7
- writable: false,
8
- value: ref.current
9
- });
10
- var syntheticEvent = createSyntheticEvent(event);
11
- console.log(syntheticEvent);
12
- return syntheticEvent;
13
- }
14
- return null;
15
- };
16
- export var createSyntheticEvent = function createSyntheticEvent(event) {
17
- var _isDefaultPrevented = false;
18
- var _isPropagationStopped = false;
19
- var preventDefault = function preventDefault() {
20
- _isDefaultPrevented = true;
21
- event.preventDefault();
22
- };
23
- var stopPropagation = function stopPropagation() {
24
- _isPropagationStopped = true;
25
- event.stopPropagation();
26
- };
27
- return {
28
- nativeEvent: event,
29
- currentTarget: event.currentTarget,
30
- target: event.target,
31
- bubbles: event.bubbles,
32
- cancelable: event.cancelable,
33
- defaultPrevented: event.defaultPrevented,
34
- eventPhase: event.eventPhase,
35
- isTrusted: event.isTrusted,
36
- preventDefault: preventDefault,
37
- isDefaultPrevented: function isDefaultPrevented() {
38
- return _isDefaultPrevented;
39
- },
40
- stopPropagation: stopPropagation,
41
- isPropagationStopped: function isPropagationStopped() {
42
- return _isPropagationStopped;
43
- },
44
- persist: function persist() {},
45
- timeStamp: event.timeStamp,
46
- type: event.type
47
- };
48
- };
@@ -1,4 +0,0 @@
1
- import { RefObject } from 'react';
2
- export declare const createEvent: (ref: RefObject<HTMLInputElement>) => import("react").ChangeEvent<HTMLInputElement> | null;
3
- export declare const createSyntheticEvent: <T extends Element, E extends Event>(event: E) => import("react").SyntheticEvent<T, E>;
4
- //# sourceMappingURL=syntheticEvent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"syntheticEvent.d.ts","sourceRoot":"","sources":["../../src/utils/syntheticEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,eAAO,MAAM,WAAW,QAAS,UAAU,gBAAgB,CAAC,yDAU3D,CAAC;AAEF,eAAO,MAAM,oBAAoB,wFA4BhC,CAAC"}