@snack-uikit/list 0.16.1-preview-963c3343.0 → 0.16.2-preview-94780dcd.0
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,17 @@
|
|
|
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.16.1 (2024-09-06)
|
|
7
|
+
|
|
8
|
+
### Only dependencies have been changed
|
|
9
|
+
* [@snack-uikit/dropdown@0.2.5](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/dropdown/CHANGELOG.md)
|
|
10
|
+
* [@snack-uikit/info-block@0.4.7](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/info-block/CHANGELOG.md)
|
|
11
|
+
* [@snack-uikit/truncate-string@0.4.21](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/truncate-string/CHANGELOG.md)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# 0.16.0 (2024-08-21)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -13,7 +13,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
import cn from 'classnames';
|
|
14
14
|
import mergeRefs from 'merge-refs';
|
|
15
15
|
import { forwardRef, useCallback, useMemo, useRef } from 'react';
|
|
16
|
-
import { useValueControl } from '@snack-uikit/utils';
|
|
16
|
+
import { isBrowser, useValueControl } from '@snack-uikit/utils';
|
|
17
17
|
import { HiddenTabButton } from '../../../helperComponents';
|
|
18
18
|
import { extractActiveItems, kindFlattenItems, useCreateBaseItems } from '../../Items';
|
|
19
19
|
import { CollapseContext, FocusListContext, NewListContextProvider, SelectionProvider } from '../contexts';
|
|
@@ -74,7 +74,7 @@ export const List = forwardRef((_a, ref) => {
|
|
|
74
74
|
focusFlattenItems,
|
|
75
75
|
});
|
|
76
76
|
const handleListKeyDown = useCallback((e) => handleListKeyDownFactory(ids, expandedIds)(e), [handleListKeyDownFactory, ids, expandedIds]);
|
|
77
|
-
const isActive = listRef.current === document.activeElement && activeItemId === undefined;
|
|
77
|
+
const isActive = isBrowser() && listRef.current === document.activeElement && activeItemId === undefined;
|
|
78
78
|
const mergedHandlerKeyDown = (e) => {
|
|
79
79
|
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
|
|
80
80
|
handleListKeyDown === null || handleListKeyDown === void 0 ? void 0 : handleListKeyDown(e);
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
outline-style:var(--border-state-focus-s-border-style, solid);
|
|
30
30
|
outline-color:var(--border-state-focus-s-border-color, );
|
|
31
31
|
outline-offset:calc(var(--border-state-focus-s-border-width, 2px) * -1);
|
|
32
|
-
outline-color:var(--sys-available-complementary, #
|
|
32
|
+
outline-color:var(--sys-available-complementary, #1c1c24);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.scrollStub{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
outline-style:var(--border-state-focus-s-border-style, solid);
|
|
15
15
|
outline-color:var(--border-state-focus-s-border-color, );
|
|
16
16
|
outline-offset:calc(var(--border-state-focus-s-border-width, 2px) * -1);
|
|
17
|
-
outline-color:var(--sys-available-complementary, #
|
|
17
|
+
outline-color:var(--sys-available-complementary, #1c1c24);
|
|
18
18
|
}
|
|
19
19
|
.listContainer:focus-visible[data-active] *{
|
|
20
20
|
cursor:inherit;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
outline-style:var(--border-state-focus-s-border-style, solid);
|
|
37
37
|
outline-color:var(--border-state-focus-s-border-color, );
|
|
38
38
|
outline-offset:calc(var(--border-state-focus-s-border-width, 2px) * -1);
|
|
39
|
-
outline-color:var(--sys-available-complementary, #
|
|
39
|
+
outline-color:var(--sys-available-complementary, #1c1c24);
|
|
40
40
|
}
|
|
41
41
|
.wrapper li,
|
|
42
42
|
.wrapper ul{
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "List",
|
|
7
|
-
"version": "0.16.
|
|
7
|
+
"version": "0.16.2-preview-94780dcd.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -32,22 +32,22 @@
|
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"scripts": {},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@snack-uikit/button": "0.17.
|
|
36
|
-
"@snack-uikit/divider": "3.0.
|
|
37
|
-
"@snack-uikit/dropdown": "0.2.
|
|
38
|
-
"@snack-uikit/icons": "0.22.0",
|
|
39
|
-
"@snack-uikit/info-block": "0.4.
|
|
40
|
-
"@snack-uikit/loaders": "0.5.
|
|
41
|
-
"@snack-uikit/scroll": "0.6.0",
|
|
42
|
-
"@snack-uikit/search-private": "0.2.
|
|
43
|
-
"@snack-uikit/toggles": "0.10.
|
|
44
|
-
"@snack-uikit/truncate-string": "0.4.
|
|
45
|
-
"@snack-uikit/utils": "3.3.0",
|
|
35
|
+
"@snack-uikit/button": "0.17.5-preview-94780dcd.0",
|
|
36
|
+
"@snack-uikit/divider": "3.0.4-preview-94780dcd.0",
|
|
37
|
+
"@snack-uikit/dropdown": "0.2.6-preview-94780dcd.0",
|
|
38
|
+
"@snack-uikit/icons": "0.22.1-preview-94780dcd.0",
|
|
39
|
+
"@snack-uikit/info-block": "0.4.8-preview-94780dcd.0",
|
|
40
|
+
"@snack-uikit/loaders": "0.5.3-preview-94780dcd.0",
|
|
41
|
+
"@snack-uikit/scroll": "0.6.1-preview-94780dcd.0",
|
|
42
|
+
"@snack-uikit/search-private": "0.2.4-preview-94780dcd.0",
|
|
43
|
+
"@snack-uikit/toggles": "0.10.4-preview-94780dcd.0",
|
|
44
|
+
"@snack-uikit/truncate-string": "0.4.22-preview-94780dcd.0",
|
|
45
|
+
"@snack-uikit/utils": "3.3.1-preview-94780dcd.0",
|
|
46
46
|
"classnames": "2.5.1",
|
|
47
47
|
"merge-refs": "1.2.2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@snack-uikit/locale": "*"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "0b67805c876ec8ccc1567d110a3b37b04d2f0fb6"
|
|
53
53
|
}
|
|
@@ -2,7 +2,7 @@ import cn from 'classnames';
|
|
|
2
2
|
import mergeRefs from 'merge-refs';
|
|
3
3
|
import { ForwardedRef, forwardRef, KeyboardEvent, useCallback, useMemo, useRef } from 'react';
|
|
4
4
|
|
|
5
|
-
import { useValueControl } from '@snack-uikit/utils';
|
|
5
|
+
import { isBrowser, useValueControl } from '@snack-uikit/utils';
|
|
6
6
|
|
|
7
7
|
import { HiddenTabButton } from '../../../helperComponents';
|
|
8
8
|
import { extractActiveItems, ItemId, kindFlattenItems, useCreateBaseItems } from '../../Items';
|
|
@@ -115,7 +115,7 @@ export const List = forwardRef(
|
|
|
115
115
|
[handleListKeyDownFactory, ids, expandedIds],
|
|
116
116
|
);
|
|
117
117
|
|
|
118
|
-
const isActive = listRef.current === document.activeElement && activeItemId === undefined;
|
|
118
|
+
const isActive = isBrowser() && listRef.current === document.activeElement && activeItemId === undefined;
|
|
119
119
|
|
|
120
120
|
const mergedHandlerKeyDown = (e: KeyboardEvent<HTMLElement>) => {
|
|
121
121
|
onKeyDown?.(e);
|