@synerise/ds-autocomplete 0.4.30 → 0.4.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/Autocomplete.js +6 -1
- package/dist/Autocomplete.styles.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.4.32](https://github.com/Synerise/synerise-design/compare/@synerise/ds-autocomplete@0.4.31...@synerise/ds-autocomplete@0.4.32) (2023-02-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove ref to first object render ([7612079](https://github.com/Synerise/synerise-design/commit/7612079baa75a7b2d552c80e792075f9fbbb3d53))
|
|
12
|
+
* **autocomplete:** add getPopupContainer into select component ([39b901b](https://github.com/Synerise/synerise-design/commit/39b901ba7107e66e755f544e29dbf16d99c777d5))
|
|
13
|
+
* **autocomplete:** refactor parentNode func ([34eaa9b](https://github.com/Synerise/synerise-design/commit/34eaa9bb4a04e848c0640c01f059f9ae195815c6))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## [0.4.31](https://github.com/Synerise/synerise-design/compare/@synerise/ds-autocomplete@0.4.30...@synerise/ds-autocomplete@0.4.31) (2023-01-25)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* **autocomplete:** fix position of autocomplete autoresize when typing ([61c9fad](https://github.com/Synerise/synerise-design/commit/61c9fadf091c801ff846a19f3ec234483c6153aa))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [0.4.30](https://github.com/Synerise/synerise-design/compare/@synerise/ds-autocomplete@0.4.29...@synerise/ds-autocomplete@0.4.30) (2022-11-08)
|
|
7
31
|
|
|
8
32
|
|
package/dist/Autocomplete.js
CHANGED
|
@@ -30,6 +30,10 @@ var Autocomplete = function Autocomplete(props) {
|
|
|
30
30
|
handleInputRef && handleInputRef(inputRef);
|
|
31
31
|
}, [inputRef, handleInputRef]);
|
|
32
32
|
|
|
33
|
+
var getParentNode = function getParentNode(triggerNode) {
|
|
34
|
+
return triggerNode.parentNode;
|
|
35
|
+
};
|
|
36
|
+
|
|
33
37
|
var renderAutoCompleteComponent = function renderAutoCompleteComponent() {
|
|
34
38
|
return /*#__PURE__*/React.createElement(AntdAutoComplete // eslint-disable-next-line react/jsx-props-no-spreading
|
|
35
39
|
, _extends({}, props, {
|
|
@@ -37,7 +41,8 @@ var Autocomplete = function Autocomplete(props) {
|
|
|
37
41
|
// @ts-ignore
|
|
38
42
|
ref: inputRef,
|
|
39
43
|
dropdownClassName: "ds-autocomplete-dropdown",
|
|
40
|
-
className: !!errorText || error ? 'error' : undefined
|
|
44
|
+
className: !!errorText || error ? 'error' : undefined,
|
|
45
|
+
getPopupContainer: getParentNode
|
|
41
46
|
}));
|
|
42
47
|
};
|
|
43
48
|
|
|
@@ -50,7 +50,7 @@ function autoresizeConfObjToCss(_ref) {
|
|
|
50
50
|
export var AutocompleteWrapper = styled.div.withConfig({
|
|
51
51
|
displayName: "Autocompletestyles__AutocompleteWrapper",
|
|
52
52
|
componentId: "sc-10de6ms-4"
|
|
53
|
-
})([".ant-select-auto-complete{width:", ";", ";grid-area:1 / 1;}.ant-select-dropdown{&.ant-select{.ant-input{transition:ease-in-out all 0.3s;&:focus{", " &:hover{", "}}}}&.error{.ant-select-selector{&:hover{", "}", "}}.ant-select-selection__rendered{margin:0;}.ant-select-selection:hover .ant-select-selection__rendered{margin-right:10px;}&.ant-select .ant-input{padding:8px 12px;}.ant-select-selection__clear{font-size:15px;color:", ";width:16px;height:16px;margin-top:-7px;}&.ant-select:not(.ant-select-no-arrow) .ant-select-selection__clear{right:12px;&:hover{color:", ";}}.ant-select-selection-placeholder{padding-left:3px;}.ant-select-dropdown{padding:8px;}.ant-select-dropdown-menu-item{font-weight:normal;strong{font-weight:500;}}}.ant-select-selection-search-input{padding:0;}"], function (props) {
|
|
53
|
+
})([".ant-select-auto-complete{width:", ";", ";grid-area:1 / 1;}.ant-select > span{position:absolute;left:0;top:0;}.ant-select-dropdown{&.ant-select{.ant-input{transition:ease-in-out all 0.3s;&:focus{", " &:hover{", "}}}}&.error{.ant-select-selector{&:hover{", "}", "}}.ant-select-selection__rendered{margin:0;}.ant-select-selection:hover .ant-select-selection__rendered{margin-right:10px;}&.ant-select .ant-input{padding:8px 12px;}.ant-select-selection__clear{font-size:15px;color:", ";width:16px;height:16px;margin-top:-7px;}&.ant-select:not(.ant-select-no-arrow) .ant-select-selection__clear{right:12px;&:hover{color:", ";}}.ant-select-selection-placeholder{padding-left:3px;}.ant-select-dropdown{padding:8px;}.ant-select-dropdown-menu-item{font-weight:normal;strong{font-weight:500;}}}.ant-select-selection-search-input{padding:0;}"], function (props) {
|
|
54
54
|
return props.autoResize ? '100%' : '200px';
|
|
55
55
|
}, function (props) {
|
|
56
56
|
return autoresizeConfObjToCss(props);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-autocomplete",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.32",
|
|
4
4
|
"description": "Autocomplete UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@synerise/ds-utils": "^0.23.2"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "05f16eaafa3de3ec33cc0d9a6712864646a0617e"
|
|
45
45
|
}
|