@synerise/ds-search 1.3.11 → 1.3.13
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 +11 -91
- package/dist/Search.js +9 -9
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,186 +3,106 @@
|
|
|
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.3.
|
|
7
|
-
|
|
6
|
+
## [1.3.13](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.3.12...@synerise/ds-search@1.3.13) (2026-01-07)
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-search
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
* **search:** refactor search component from class to function ([16e3c0c](https://github.com/Synerise/synerise-design/commit/16e3c0c2b04082e811cdd625f564321faf8811ed))
|
|
10
|
+
## [1.3.12](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.3.11...@synerise/ds-search@1.3.12) (2025-12-15)
|
|
13
11
|
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-search
|
|
14
13
|
|
|
14
|
+
## [1.3.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.3.10...@synerise/ds-search@1.3.11) (2025-11-28)
|
|
15
15
|
|
|
16
|
+
### Bug Fixes
|
|
16
17
|
|
|
18
|
+
- **search:** fix types ([44042fa](https://github.com/Synerise/synerise-design/commit/44042fa0e22f04800969f5a25ea6335b4552f4ab))
|
|
19
|
+
- **search:** refactor search component from class to function ([16e3c0c](https://github.com/Synerise/synerise-design/commit/16e3c0c2b04082e811cdd625f564321faf8811ed))
|
|
17
20
|
|
|
18
21
|
## [1.3.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.3.9...@synerise/ds-search@1.3.10) (2025-11-06)
|
|
19
22
|
|
|
20
23
|
**Note:** Version bump only for package @synerise/ds-search
|
|
21
24
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
25
|
## [1.3.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.3.8...@synerise/ds-search@1.3.9) (2025-10-22)
|
|
27
26
|
|
|
28
27
|
**Note:** Version bump only for package @synerise/ds-search
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
29
|
## [1.3.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.3.7...@synerise/ds-search@1.3.8) (2025-10-16)
|
|
35
30
|
|
|
36
31
|
**Note:** Version bump only for package @synerise/ds-search
|
|
37
32
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
33
|
## [1.3.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.3.6...@synerise/ds-search@1.3.7) (2025-10-10)
|
|
43
34
|
|
|
44
35
|
**Note:** Version bump only for package @synerise/ds-search
|
|
45
36
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
37
|
## [1.3.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.3.5...@synerise/ds-search@1.3.6) (2025-10-08)
|
|
51
38
|
|
|
52
39
|
**Note:** Version bump only for package @synerise/ds-search
|
|
53
40
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
41
|
## [1.3.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.3.4...@synerise/ds-search@1.3.5) (2025-09-30)
|
|
59
42
|
|
|
60
43
|
**Note:** Version bump only for package @synerise/ds-search
|
|
61
44
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
45
|
## [1.3.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.3.3...@synerise/ds-search@1.3.4) (2025-09-30)
|
|
67
46
|
|
|
68
47
|
**Note:** Version bump only for package @synerise/ds-search
|
|
69
48
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
49
|
## [1.3.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.3.2...@synerise/ds-search@1.3.3) (2025-09-25)
|
|
75
50
|
|
|
76
51
|
**Note:** Version bump only for package @synerise/ds-search
|
|
77
52
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
53
|
## [1.3.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.3.1...@synerise/ds-search@1.3.2) (2025-09-19)
|
|
83
54
|
|
|
84
55
|
**Note:** Version bump only for package @synerise/ds-search
|
|
85
56
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
57
|
## [1.3.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.3.0...@synerise/ds-search@1.3.1) (2025-09-16)
|
|
91
58
|
|
|
92
59
|
**Note:** Version bump only for package @synerise/ds-search
|
|
93
60
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
61
|
# [1.3.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.2.8...@synerise/ds-search@1.3.0) (2025-08-28)
|
|
99
62
|
|
|
100
|
-
|
|
101
63
|
### Features
|
|
102
64
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
65
|
+
- **search:** allow custom dropdown width ([0555d9d](https://github.com/Synerise/synerise-design/commit/0555d9d39abc49868a490e5b559184c720e4d8d3))
|
|
108
66
|
|
|
109
67
|
## [1.2.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.2.7...@synerise/ds-search@1.2.8) (2025-08-20)
|
|
110
68
|
|
|
111
69
|
**Note:** Version bump only for package @synerise/ds-search
|
|
112
70
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
71
|
## [1.2.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.2.6...@synerise/ds-search@1.2.7) (2025-08-14)
|
|
118
72
|
|
|
119
73
|
**Note:** Version bump only for package @synerise/ds-search
|
|
120
74
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
75
|
## [1.2.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.2.5...@synerise/ds-search@1.2.6) (2025-07-24)
|
|
126
76
|
|
|
127
77
|
**Note:** Version bump only for package @synerise/ds-search
|
|
128
78
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
79
|
## [1.2.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.2.4...@synerise/ds-search@1.2.5) (2025-07-17)
|
|
134
80
|
|
|
135
81
|
**Note:** Version bump only for package @synerise/ds-search
|
|
136
82
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
83
|
## [1.2.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.2.3...@synerise/ds-search@1.2.4) (2025-07-15)
|
|
142
84
|
|
|
143
85
|
**Note:** Version bump only for package @synerise/ds-search
|
|
144
86
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
87
|
## [1.2.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.2.2...@synerise/ds-search@1.2.3) (2025-07-08)
|
|
150
88
|
|
|
151
89
|
**Note:** Version bump only for package @synerise/ds-search
|
|
152
90
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
91
|
## [1.2.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.2.1...@synerise/ds-search@1.2.2) (2025-07-01)
|
|
158
92
|
|
|
159
|
-
|
|
160
93
|
### Bug Fixes
|
|
161
94
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
95
|
+
- **search:** fix list virtualisation ([29ce3e2](https://github.com/Synerise/synerise-design/commit/29ce3e21adf61ece235d4eca87251df77ceaf6bb))
|
|
167
96
|
|
|
168
97
|
## [1.2.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.2.0...@synerise/ds-search@1.2.1) (2025-06-26)
|
|
169
98
|
|
|
170
99
|
**Note:** Version bump only for package @synerise/ds-search
|
|
171
100
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
101
|
# [1.2.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.1.8...@synerise/ds-search@1.2.0) (2025-06-24)
|
|
177
102
|
|
|
178
|
-
|
|
179
103
|
### Features
|
|
180
104
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
105
|
+
- **factors:** array factor type ([195d328](https://github.com/Synerise/synerise-design/commit/195d3286e98b5f07fc9c1e56001e6ae844b7a080))
|
|
186
106
|
|
|
187
107
|
## [1.1.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-search@1.1.7...@synerise/ds-search@1.1.8) (2025-06-05)
|
|
188
108
|
|
package/dist/Search.js
CHANGED
|
@@ -74,12 +74,12 @@ export function Search(_ref) {
|
|
|
74
74
|
var _useState9 = useState(0),
|
|
75
75
|
scrollbarScrollTop = _useState9[0],
|
|
76
76
|
setScrollbarScrollTop = _useState9[1];
|
|
77
|
-
var
|
|
78
|
-
moveCursorToEnd =
|
|
79
|
-
setMoveCursorToEnd =
|
|
80
|
-
var
|
|
81
|
-
itemsListWidth =
|
|
82
|
-
setItemsListWidth =
|
|
77
|
+
var _useState0 = useState(true),
|
|
78
|
+
moveCursorToEnd = _useState0[0],
|
|
79
|
+
setMoveCursorToEnd = _useState0[1];
|
|
80
|
+
var _useState1 = useState(width || searchWidth ? (width || searchWidth) - MENU_WIDTH_OFFSET : 0),
|
|
81
|
+
itemsListWidth = _useState1[0],
|
|
82
|
+
setItemsListWidth = _useState1[1];
|
|
83
83
|
useEffect(function () {
|
|
84
84
|
if (parameterValue) {
|
|
85
85
|
var _ref3;
|
|
@@ -157,9 +157,9 @@ export function Search(_ref) {
|
|
|
157
157
|
}
|
|
158
158
|
return 0;
|
|
159
159
|
};
|
|
160
|
-
var
|
|
161
|
-
isOpen =
|
|
162
|
-
setIsOpen =
|
|
160
|
+
var _useState10 = useState(false),
|
|
161
|
+
isOpen = _useState10[0],
|
|
162
|
+
setIsOpen = _useState10[1];
|
|
163
163
|
useOnClickOutside(wrapperRef, function () {
|
|
164
164
|
if (isOpen && !value && !label && !alwaysExpanded) {
|
|
165
165
|
setToggleInputTrigger(function (prev) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-search",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.13",
|
|
4
4
|
"description": "Search UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
|
|
22
22
|
"build:watch": "npm run build:js -- --watch",
|
|
23
23
|
"defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
|
|
24
|
-
"pack:ci": "
|
|
24
|
+
"pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
|
|
25
25
|
"prepublish": "npm run build",
|
|
26
26
|
"test": "jest",
|
|
27
27
|
"test:watch": "npm run test -- --watchAll",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-button": "^1.5.
|
|
39
|
-
"@synerise/ds-icon": "^1.9.
|
|
40
|
-
"@synerise/ds-menu": "^1.2.
|
|
41
|
-
"@synerise/ds-scrollbar": "^1.2.
|
|
42
|
-
"@synerise/ds-tooltip": "^1.3.
|
|
43
|
-
"@synerise/ds-utils": "^1.5.
|
|
38
|
+
"@synerise/ds-button": "^1.5.3",
|
|
39
|
+
"@synerise/ds-icon": "^1.9.2",
|
|
40
|
+
"@synerise/ds-menu": "^1.2.3",
|
|
41
|
+
"@synerise/ds-scrollbar": "^1.2.3",
|
|
42
|
+
"@synerise/ds-tooltip": "^1.3.3",
|
|
43
|
+
"@synerise/ds-utils": "^1.5.2",
|
|
44
44
|
"react-onclickoutside": "^6.9.0",
|
|
45
45
|
"react-window": "^1.8.11"
|
|
46
46
|
},
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"react": ">=16.9.0 <= 18.3.1",
|
|
51
51
|
"styled-components": "^5.3.3"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "f38e4b2dca1d43c39af0b189c93808de62c11e9b"
|
|
54
54
|
}
|