@snack-uikit/list 0.21.4-preview-532f4f48.0 → 0.21.4
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
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.21.4 (2024-11-12)
|
|
7
|
+
|
|
8
|
+
### Only dependencies have been changed
|
|
9
|
+
* [@snack-uikit/button@0.19.2](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/button/CHANGELOG.md)
|
|
10
|
+
* [@snack-uikit/info-block@0.6.2](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/info-block/CHANGELOG.md)
|
|
11
|
+
* [@snack-uikit/loaders@0.8.0](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/loaders/CHANGELOG.md)
|
|
12
|
+
* [@snack-uikit/search-private@0.4.2](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/search-private/CHANGELOG.md)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## 0.21.3 (2024-11-08)
|
|
7
19
|
|
|
8
20
|
|
|
@@ -100,9 +100,7 @@ exports.ListPrivate = (0, react_1.forwardRef)((_a, ref) => {
|
|
|
100
100
|
const onScrollInitialized = () => {
|
|
101
101
|
var _a, _b;
|
|
102
102
|
if (scrollToSelectedItem) {
|
|
103
|
-
(_b = (_a = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.itemRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.scrollIntoView(
|
|
104
|
-
block: 'center'
|
|
105
|
-
});
|
|
103
|
+
(_b = (_a = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.itemRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.scrollIntoView();
|
|
106
104
|
}
|
|
107
105
|
};
|
|
108
106
|
const listJSX = (0, jsx_runtime_1.jsxs)("ul", Object.assign({
|
|
@@ -35,7 +35,7 @@ export const ListPrivate = forwardRef((_a, ref) => {
|
|
|
35
35
|
const onScrollInitialized = () => {
|
|
36
36
|
var _a, _b;
|
|
37
37
|
if (scrollToSelectedItem) {
|
|
38
|
-
(_b = (_a = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.itemRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.scrollIntoView(
|
|
38
|
+
(_b = (_a = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.itemRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.scrollIntoView();
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
const listJSX = (_jsxs("ul", Object.assign({ className: cn(commonStyles.listContainer, className), ref: ref, onKeyDown: onKeyDown, tabIndex: tabIndex, onFocus: onFocus, onBlur: onBlur, "data-active": active || undefined, role: 'menu' }, extractSupportProps(props), { children: [(Number(pinTop === null || pinTop === void 0 ? void 0 : pinTop.length) > 0 || search) && (_jsxs(PinTopGroupItem, { children: [search && _jsx(SearchItem, Object.assign({ search: search }, searchItem)), Number(pinTop === null || pinTop === void 0 ? void 0 : pinTop.length) > 0 && itemsPinTopJSX] })), scroll ? (_jsxs(Scroll, { className: cn({
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "List",
|
|
7
|
-
"version": "0.21.4
|
|
7
|
+
"version": "0.21.4",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"license": "Apache-2.0",
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@snack-uikit/button": "0.19.
|
|
39
|
+
"@snack-uikit/button": "0.19.2",
|
|
40
40
|
"@snack-uikit/divider": "3.2.0",
|
|
41
41
|
"@snack-uikit/dropdown": "0.4.0",
|
|
42
42
|
"@snack-uikit/icons": "0.24.0",
|
|
43
|
-
"@snack-uikit/info-block": "0.6.
|
|
44
|
-
"@snack-uikit/loaders": "0.
|
|
43
|
+
"@snack-uikit/info-block": "0.6.2",
|
|
44
|
+
"@snack-uikit/loaders": "0.8.0",
|
|
45
45
|
"@snack-uikit/scroll": "0.9.0",
|
|
46
|
-
"@snack-uikit/search-private": "0.4.
|
|
46
|
+
"@snack-uikit/search-private": "0.4.2",
|
|
47
47
|
"@snack-uikit/toggles": "0.13.0",
|
|
48
48
|
"@snack-uikit/truncate-string": "0.6.0",
|
|
49
49
|
"@snack-uikit/utils": "3.5.0",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@snack-uikit/locale": "*"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "5b03de23f7a23a7459a9bfbfa55fc216fe0809ef"
|
|
57
57
|
}
|
|
@@ -93,7 +93,7 @@ export const ListPrivate = forwardRef(
|
|
|
93
93
|
|
|
94
94
|
const onScrollInitialized = () => {
|
|
95
95
|
if (scrollToSelectedItem) {
|
|
96
|
-
(selectedItem as FlattenBaseItem)?.itemRef?.current?.scrollIntoView(
|
|
96
|
+
(selectedItem as FlattenBaseItem)?.itemRef?.current?.scrollIntoView();
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
|