@synerise/ds-autocomplete 1.2.42 → 1.2.44
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 +10 -0
- package/dist/Autocomplete.d.ts +1 -1
- package/dist/Autocomplete.js +3 -3
- package/dist/Autocomplete.types.d.ts +1 -2
- package/package.json +15 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
## [1.2.44](https://github.com/Synerise/synerise-design/compare/@synerise/ds-autocomplete@1.2.43...@synerise/ds-autocomplete@1.2.44) (2026-05-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-autocomplete
|
|
9
|
+
|
|
10
|
+
## [1.2.43](https://github.com/Synerise/synerise-design/compare/@synerise/ds-autocomplete@1.2.42...@synerise/ds-autocomplete@1.2.43) (2026-05-04)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- add exports field to all component packages for correct ESM detection ([6eccfde](https://github.com/Synerise/synerise-design/commit/6eccfde8f2dd73c59860793231fbd7bcd61813b4))
|
|
15
|
+
|
|
6
16
|
## [1.2.42](https://github.com/Synerise/synerise-design/compare/@synerise/ds-autocomplete@1.2.41...@synerise/ds-autocomplete@1.2.42) (2026-04-29)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @synerise/ds-autocomplete
|
package/dist/Autocomplete.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AutoComplete as AntdAutoComplete } from 'antd';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
import { AutocompleteProps } from './Autocomplete.types';
|
|
4
4
|
declare const Autocomplete: FC<AutocompleteProps> & {
|
package/dist/Autocomplete.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import { AutoComplete } from "antd";
|
|
3
3
|
import { useRef, useEffect, useCallback, useMemo } from "react";
|
|
4
4
|
import FormField from "@synerise/ds-form-field";
|
|
5
5
|
import { AutosizeWrapper } from "@synerise/ds-input";
|
|
@@ -82,11 +82,11 @@ const Autocomplete = ({
|
|
|
82
82
|
] }) });
|
|
83
83
|
}, [handleIconsClick, icon1, icon2, icon1Tooltip, icon2Tooltip]);
|
|
84
84
|
return /* @__PURE__ */ jsx(AutocompleteWrapper, { ref: elementRef, autoResize, className: `ds-autocomplete ${className || ""}`, children: /* @__PURE__ */ jsx(FormField, { label, tooltip, tooltipConfig, description, errorText, children: /* @__PURE__ */ jsx(ComponentWrapper, { readOnly, error: !!errorText || error, iconCount, children: /* @__PURE__ */ jsxs(AutosizeWrapper, { autoResize: !!autoResize, value: rest.value, placeholder: placeholderString, transformRef, ref: autosizeRef, extraWidth: AUTOSIZE_EXTRA_WIDTH + getIconsWidth(iconCount), preAutosize: handlePreAutosize, onAutosize: handleAutosize, children: [
|
|
85
|
-
/* @__PURE__ */ jsx(
|
|
85
|
+
/* @__PURE__ */ jsx(AutoComplete, { ...rest, disabled: readOnly || disabled, dropdownClassName: "ds-autocomplete-dropdown ps__child--consume", getPopupContainer: getPopupContainer || getParentNode, ref: antSelectRef, "data-testid": "autocomplete-autosize-input" }),
|
|
86
86
|
icons
|
|
87
87
|
] }) }) }) });
|
|
88
88
|
};
|
|
89
|
-
Autocomplete.Option =
|
|
89
|
+
Autocomplete.Option = AutoComplete.Option;
|
|
90
90
|
export {
|
|
91
91
|
Autocomplete as default
|
|
92
92
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AutoCompleteProps as OriginalProps } from 'antd
|
|
2
|
-
import { RefSelectProps } from 'antd/lib/select';
|
|
1
|
+
import { AutoCompleteProps as OriginalProps, RefSelectProps } from 'antd';
|
|
3
2
|
import { MutableRefObject, ReactNode } from 'react';
|
|
4
3
|
import { FormFieldCommonProps } from '@synerise/ds-form-field';
|
|
5
4
|
import { AutoResizeProp } from '@synerise/ds-input';
|
package/package.json
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-autocomplete",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.44",
|
|
4
4
|
"description": "Autocomplete UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./dist/*.js": "./dist/*.js",
|
|
15
|
+
"./dist/*": "./dist/*.js"
|
|
16
|
+
},
|
|
8
17
|
"files": [
|
|
9
18
|
"/dist",
|
|
10
19
|
"CHANGELOG.md",
|
|
@@ -32,10 +41,10 @@
|
|
|
32
41
|
],
|
|
33
42
|
"types": "dist/index.d.ts",
|
|
34
43
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-form-field": "^1.3.
|
|
36
|
-
"@synerise/ds-input": "^1.7.
|
|
37
|
-
"@synerise/ds-tooltip": "^1.4.
|
|
38
|
-
"@synerise/ds-utils": "^1.8.
|
|
44
|
+
"@synerise/ds-form-field": "^1.3.19",
|
|
45
|
+
"@synerise/ds-input": "^1.7.7",
|
|
46
|
+
"@synerise/ds-tooltip": "^1.4.19",
|
|
47
|
+
"@synerise/ds-utils": "^1.8.1"
|
|
39
48
|
},
|
|
40
49
|
"peerDependencies": {
|
|
41
50
|
"@synerise/ds-core": "*",
|
|
@@ -44,5 +53,5 @@
|
|
|
44
53
|
"styled-components": "^5.3.3",
|
|
45
54
|
"vitest": "4"
|
|
46
55
|
},
|
|
47
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "1132c21afce924c3e3b8e75e2ebd5e7b5db69bd2"
|
|
48
57
|
}
|