@salutejs/plasma-new-hope 0.188.0-canary.1552.11776095169.0 → 0.188.0-canary.1553.11776288397.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Combobox/ComboboxNew/Combobox.css +0 -2
- package/cjs/components/Combobox/ComboboxNew/Combobox.js +6 -31
- package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +0 -2
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +0 -2
- package/cjs/index.css +0 -2
- package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -32
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +2 -5
- package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +7 -33
- package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +2 -5
- package/es/components/Combobox/ComboboxNew/Combobox.css +0 -2
- package/es/components/Combobox/ComboboxNew/Combobox.js +8 -33
- package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +0 -2
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +0 -2
- package/es/index.css +0 -2
- package/package.json +4 -4
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -32
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +2 -5
- package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +7 -33
- package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +2 -5
- package/types/components/Combobox/ComboboxNew/Combobox.d.ts +2 -2
- package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +2 -40
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +120 -1080
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +120 -1080
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.css +0 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js +0 -37
- package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js.map +0 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +0 -15
- package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js.map +0 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles_22v2s5.css +0 -1
- package/cjs/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -55
- package/cjs/components/Combobox/ComboboxNew/utils/syntheticEvent.js.map +0 -1
- package/emotion/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js +0 -38
- package/emotion/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +0 -13
- package/emotion/cjs/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -53
- package/emotion/es/components/Combobox/ComboboxNew/ui/Form/Form.js +0 -29
- package/emotion/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +0 -6
- package/emotion/es/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -47
- package/es/components/Combobox/ComboboxNew/ui/Form/Form.css +0 -1
- package/es/components/Combobox/ComboboxNew/ui/Form/Form.js +0 -33
- package/es/components/Combobox/ComboboxNew/ui/Form/Form.js.map +0 -1
- package/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +0 -11
- package/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js.map +0 -1
- package/es/components/Combobox/ComboboxNew/ui/Form/Form.styles_22v2s5.css +0 -1
- package/es/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -50
- package/es/components/Combobox/ComboboxNew/utils/syntheticEvent.js.map +0 -1
- package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js +0 -38
- package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +0 -12
- package/styled-components/cjs/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -53
- package/styled-components/es/components/Combobox/ComboboxNew/ui/Form/Form.js +0 -29
- package/styled-components/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +0 -5
- package/styled-components/es/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -47
- package/types/components/Combobox/ComboboxNew/ui/Form/Form.d.ts +0 -6
- package/types/components/Combobox/ComboboxNew/ui/Form/Form.d.ts.map +0 -1
- package/types/components/Combobox/ComboboxNew/ui/Form/Form.styles.d.ts +0 -3
- package/types/components/Combobox/ComboboxNew/ui/Form/Form.styles.d.ts.map +0 -1
- package/types/components/Combobox/ComboboxNew/utils/syntheticEvent.d.ts +0 -4
- package/types/components/Combobox/ComboboxNew/utils/syntheticEvent.d.ts.map +0 -1
@@ -1,47 +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
|
-
return syntheticEvent;
|
12
|
-
}
|
13
|
-
return null;
|
14
|
-
};
|
15
|
-
export var createSyntheticEvent = function createSyntheticEvent(event) {
|
16
|
-
var _isDefaultPrevented = false;
|
17
|
-
var _isPropagationStopped = false;
|
18
|
-
var preventDefault = function preventDefault() {
|
19
|
-
_isDefaultPrevented = true;
|
20
|
-
event.preventDefault();
|
21
|
-
};
|
22
|
-
var stopPropagation = function stopPropagation() {
|
23
|
-
_isPropagationStopped = true;
|
24
|
-
event.stopPropagation();
|
25
|
-
};
|
26
|
-
return {
|
27
|
-
nativeEvent: event,
|
28
|
-
currentTarget: event.currentTarget,
|
29
|
-
target: event.target,
|
30
|
-
bubbles: event.bubbles,
|
31
|
-
cancelable: event.cancelable,
|
32
|
-
defaultPrevented: event.defaultPrevented,
|
33
|
-
eventPhase: event.eventPhase,
|
34
|
-
isTrusted: event.isTrusted,
|
35
|
-
preventDefault: preventDefault,
|
36
|
-
isDefaultPrevented: function isDefaultPrevented() {
|
37
|
-
return _isDefaultPrevented;
|
38
|
-
},
|
39
|
-
stopPropagation: stopPropagation,
|
40
|
-
isPropagationStopped: function isPropagationStopped() {
|
41
|
-
return _isPropagationStopped;
|
42
|
-
},
|
43
|
-
persist: function persist() {},
|
44
|
-
timeStamp: event.timeStamp,
|
45
|
-
type: event.type
|
46
|
-
};
|
47
|
-
};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { ComboboxProps } from '../../Combobox.types';
|
3
|
-
export declare const Form: React.ForwardRefExoticComponent<Pick<ComboboxProps<import("../..").ItemOption>, "name" | "value" | "multiple"> & {
|
4
|
-
onChange: (value: React.ChangeEvent<HTMLSelectElement> | null) => void;
|
5
|
-
} & React.RefAttributes<HTMLSelectElement>>;
|
6
|
-
//# sourceMappingURL=Form.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Combobox/ComboboxNew/ui/Form/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAI7D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAQrD,eAAO,MAAM,IAAI;sBAHK,MAAM,WAAW,CAAC,iBAAiB,CAAC,GAAG,IAAI,KAAK,IAAI;2CAuBxE,CAAC"}
|
@@ -1,3 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const SelectHidden: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSelectElement> & import("react").SelectHTMLAttributes<HTMLSelectElement> & Record<never, unknown>>;
|
3
|
-
//# sourceMappingURL=Form.styles.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Form.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Combobox/ComboboxNew/ui/Form/Form.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,YAAY,iLAExB,CAAC"}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { RefObject } from 'react';
|
2
|
-
export declare const createEvent: (ref: RefObject<HTMLSelectElement>) => import("react").ChangeEvent<HTMLSelectElement> | 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/components/Combobox/ComboboxNew/utils/syntheticEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,eAAO,MAAM,WAAW,QAAS,UAAU,iBAAiB,CAAC,0DAS5D,CAAC;AAEF,eAAO,MAAM,oBAAoB,wFA4BhC,CAAC"}
|