@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.
- package/cjs/components/Badge/Badge.css +4 -4
- package/cjs/components/Badge/Badge.js +16 -4
- package/cjs/components/Badge/Badge.js.map +1 -1
- package/cjs/components/Badge/Badge.tokens.js +10 -5
- package/cjs/components/Badge/Badge.tokens.js.map +1 -1
- package/cjs/components/Badge/variations/_clear/base.js +1 -1
- package/cjs/components/Badge/variations/_clear/base.js.map +1 -1
- package/cjs/components/Badge/variations/_clear/base_wiboj8.css +1 -0
- package/cjs/components/Badge/variations/_size/base.js +1 -1
- package/cjs/components/Badge/variations/_size/base.js.map +1 -1
- package/{es/components/Badge/variations/_size/base_to0y5x.css → cjs/components/Badge/variations/_size/base_rn38n6.css} +1 -1
- package/cjs/components/Badge/variations/_transparent/base.js +1 -1
- package/cjs/components/Badge/variations/_transparent/base.js.map +1 -1
- package/cjs/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
- package/cjs/components/Badge/variations/_view/base.js +1 -1
- package/cjs/components/Badge/variations/_view/base.js.map +1 -1
- package/cjs/components/Badge/variations/_view/base_j3xzf3.css +1 -0
- package/cjs/components/TextField/TextField.js +0 -11
- package/cjs/components/TextField/TextField.js.map +1 -1
- package/cjs/index.css +4 -4
- package/emotion/cjs/components/Badge/Badge.js +21 -4
- package/emotion/cjs/components/Badge/Badge.tokens.js +10 -6
- package/emotion/cjs/components/Badge/variations/_clear/base.js +1 -1
- package/emotion/cjs/components/Badge/variations/_size/base.js +2 -1
- package/emotion/cjs/components/Badge/variations/_transparent/base.js +1 -1
- package/emotion/cjs/components/Badge/variations/_view/base.js +1 -1
- package/emotion/cjs/components/TextField/TextField.js +1 -12
- package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +14 -14
- package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
- package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -1
- package/emotion/cjs/examples/plasma_web/components/Badge/Badge.config.js +14 -14
- package/emotion/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
- package/emotion/es/components/Badge/Badge.js +23 -5
- package/emotion/es/components/Badge/Badge.tokens.js +9 -5
- package/emotion/es/components/Badge/variations/_clear/base.js +2 -2
- package/emotion/es/components/Badge/variations/_size/base.js +3 -2
- package/emotion/es/components/Badge/variations/_transparent/base.js +2 -2
- package/emotion/es/components/Badge/variations/_view/base.js +2 -2
- package/emotion/es/components/TextField/TextField.js +1 -12
- package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +14 -14
- package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
- package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -1
- package/emotion/es/examples/plasma_web/components/Badge/Badge.config.js +14 -14
- package/emotion/es/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
- package/es/components/Badge/Badge.css +4 -4
- package/es/components/Badge/Badge.js +19 -7
- package/es/components/Badge/Badge.js.map +1 -1
- package/es/components/Badge/Badge.tokens.js +10 -6
- package/es/components/Badge/Badge.tokens.js.map +1 -1
- package/es/components/Badge/variations/_clear/base.js +1 -1
- package/es/components/Badge/variations/_clear/base.js.map +1 -1
- package/es/components/Badge/variations/_clear/base_wiboj8.css +1 -0
- package/es/components/Badge/variations/_size/base.js +1 -1
- package/es/components/Badge/variations/_size/base.js.map +1 -1
- package/{cjs/components/Badge/variations/_size/base_to0y5x.css → es/components/Badge/variations/_size/base_rn38n6.css} +1 -1
- package/es/components/Badge/variations/_transparent/base.js +1 -1
- package/es/components/Badge/variations/_transparent/base.js.map +1 -1
- package/es/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
- package/es/components/Badge/variations/_view/base.js +1 -1
- package/es/components/Badge/variations/_view/base.js.map +1 -1
- package/es/components/Badge/variations/_view/base_j3xzf3.css +1 -0
- package/es/components/TextField/TextField.js +0 -11
- package/es/components/TextField/TextField.js.map +1 -1
- package/es/index.css +4 -4
- package/package.json +2 -2
- package/styled-components/cjs/components/Badge/Badge.js +21 -4
- package/styled-components/cjs/components/Badge/Badge.tokens.js +10 -6
- package/styled-components/cjs/components/Badge/variations/_clear/base.js +1 -1
- package/styled-components/cjs/components/Badge/variations/_size/base.js +2 -1
- package/styled-components/cjs/components/Badge/variations/_transparent/base.js +1 -1
- package/styled-components/cjs/components/Badge/variations/_view/base.js +1 -1
- package/styled-components/cjs/components/TextField/TextField.js +0 -11
- package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
- package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
- package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -1
- package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.config.js +5 -5
- package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
- package/styled-components/es/components/Badge/Badge.js +23 -5
- package/styled-components/es/components/Badge/Badge.tokens.js +9 -5
- package/styled-components/es/components/Badge/variations/_clear/base.js +2 -2
- package/styled-components/es/components/Badge/variations/_size/base.js +3 -2
- package/styled-components/es/components/Badge/variations/_transparent/base.js +2 -2
- package/styled-components/es/components/Badge/variations/_view/base.js +2 -2
- package/styled-components/es/components/TextField/TextField.js +0 -11
- package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
- package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
- package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -1
- package/styled-components/es/examples/plasma_web/components/Badge/Badge.config.js +5 -5
- package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
- package/types/components/Badge/Badge.d.ts.map +1 -1
- package/types/components/Badge/Badge.tokens.d.ts +8 -4
- package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
- package/types/components/Badge/Badge.types.d.ts +18 -5
- package/types/components/Badge/Badge.types.d.ts.map +1 -1
- package/types/components/Badge/variations/_clear/base.d.ts.map +1 -1
- package/types/components/Badge/variations/_size/base.d.ts.map +1 -1
- package/types/components/TextField/TextField.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +58 -4
- package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Badge/Badge.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Badge/Badge.d.ts +58 -4
- package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
- package/cjs/components/Badge/variations/_clear/base_oopyb7.css +0 -1
- package/cjs/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
- package/cjs/components/Badge/variations/_view/base_qlxank.css +0 -1
- package/cjs/utils/syntheticEvent.js +0 -56
- package/cjs/utils/syntheticEvent.js.map +0 -1
- package/emotion/cjs/utils/syntheticEvent.js +0 -54
- package/emotion/es/utils/syntheticEvent.js +0 -48
- package/es/components/Badge/variations/_clear/base_oopyb7.css +0 -1
- package/es/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
- package/es/components/Badge/variations/_view/base_qlxank.css +0 -1
- package/es/utils/syntheticEvent.js +0 -51
- package/es/utils/syntheticEvent.js.map +0 -1
- package/styled-components/cjs/utils/syntheticEvent.js +0 -54
- package/styled-components/es/utils/syntheticEvent.js +0 -48
- package/types/utils/syntheticEvent.d.ts +0 -4
- 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"}
|