@salutejs/plasma-new-hope 0.190.0-canary.1552.11794692529.0 → 0.190.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. package/cjs/components/Combobox/ComboboxNew/Combobox.css +0 -2
  2. package/cjs/components/Combobox/ComboboxNew/Combobox.js +6 -31
  3. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  4. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +0 -2
  5. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +0 -2
  6. package/cjs/components/Dropdown/Dropdown.js +6 -4
  7. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  8. package/cjs/index.css +0 -2
  9. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -32
  10. package/emotion/cjs/components/Dropdown/Dropdown.js +6 -4
  11. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  12. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +9 -0
  13. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +9 -0
  14. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +7 -33
  15. package/emotion/es/components/Dropdown/Dropdown.js +6 -4
  16. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  17. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +9 -0
  18. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +9 -0
  19. package/es/components/Combobox/ComboboxNew/Combobox.css +0 -2
  20. package/es/components/Combobox/ComboboxNew/Combobox.js +8 -33
  21. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  22. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +0 -2
  23. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +0 -2
  24. package/es/components/Dropdown/Dropdown.js +6 -4
  25. package/es/components/Dropdown/Dropdown.js.map +1 -1
  26. package/es/index.css +0 -2
  27. package/package.json +2 -2
  28. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -32
  29. package/styled-components/cjs/components/Dropdown/Dropdown.js +6 -4
  30. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  31. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +9 -0
  32. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +9 -0
  33. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +7 -33
  34. package/styled-components/es/components/Dropdown/Dropdown.js +6 -4
  35. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  36. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +9 -0
  37. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +9 -0
  38. package/types/components/Combobox/ComboboxNew/Combobox.d.ts +2 -2
  39. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  40. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +2 -24
  41. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  42. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  43. package/types/components/Dropdown/Dropdown.types.d.ts +4 -0
  44. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  45. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +120 -1080
  46. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  47. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +120 -1080
  48. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
  49. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.css +0 -1
  50. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js +0 -37
  51. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js.map +0 -1
  52. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +0 -15
  53. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js.map +0 -1
  54. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles_22v2s5.css +0 -1
  55. package/cjs/utils/syntheticEvent.js +0 -55
  56. package/cjs/utils/syntheticEvent.js.map +0 -1
  57. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js +0 -38
  58. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +0 -13
  59. package/emotion/cjs/utils/syntheticEvent.js +0 -53
  60. package/emotion/es/components/Combobox/ComboboxNew/ui/Form/Form.js +0 -29
  61. package/emotion/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +0 -6
  62. package/emotion/es/utils/syntheticEvent.js +0 -47
  63. package/es/components/Combobox/ComboboxNew/ui/Form/Form.css +0 -1
  64. package/es/components/Combobox/ComboboxNew/ui/Form/Form.js +0 -33
  65. package/es/components/Combobox/ComboboxNew/ui/Form/Form.js.map +0 -1
  66. package/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +0 -11
  67. package/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js.map +0 -1
  68. package/es/components/Combobox/ComboboxNew/ui/Form/Form.styles_22v2s5.css +0 -1
  69. package/es/utils/syntheticEvent.js +0 -50
  70. package/es/utils/syntheticEvent.js.map +0 -1
  71. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js +0 -38
  72. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +0 -12
  73. package/styled-components/cjs/utils/syntheticEvent.js +0 -53
  74. package/styled-components/es/components/Combobox/ComboboxNew/ui/Form/Form.js +0 -29
  75. package/styled-components/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +0 -5
  76. package/styled-components/es/utils/syntheticEvent.js +0 -47
  77. package/types/components/Combobox/ComboboxNew/ui/Form/Form.d.ts +0 -6
  78. package/types/components/Combobox/ComboboxNew/ui/Form/Form.d.ts.map +0 -1
  79. package/types/components/Combobox/ComboboxNew/ui/Form/Form.styles.d.ts +0 -3
  80. package/types/components/Combobox/ComboboxNew/ui/Form/Form.styles.d.ts.map +0 -1
  81. package/types/utils/syntheticEvent.d.ts +0 -4
  82. package/types/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, { ChangeEvent } 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: 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,KAAK,EAAE,EAAE,WAAW,EAAiC,MAAM,OAAO,CAAC;AAI1E,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAQrD,eAAO,MAAM,IAAI;sBAHK,YAAY,iBAAiB,CAAC,GAAG,IAAI,KAAK,IAAI;2CAuBlE,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: <T extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>(ref: RefObject<T>) => import("react").ChangeEvent<T> | 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,oIAWvB,CAAC;AAEF,eAAO,MAAM,oBAAoB,wFA4BhC,CAAC"}