@snack-uikit/breadcrumbs 0.8.9 → 0.8.11-preview-993a9cfb.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 +11 -0
- package/dist/components/Collapse/styles.module.css +3 -3
- package/dist/components/Crumb/styles.module.css +10 -10
- package/dist/components/HiddenChain/hooks.js +2 -1
- package/dist/components/Separator/styles.module.css +1 -1
- package/package.json +3 -3
- package/src/components/Crumb/styles.module.scss +7 -7
- package/src/components/HiddenChain/hooks.tsx +2 -1
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.8.10 (2024-02-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **FF-0000:** empty label value ([053a8c8](https://github.com/cloud-ru-tech/snack-uikit/commit/053a8c80241b37a69edc2dae9424b1f960abdd56))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 0.8.9 (2024-02-13)
|
|
7
18
|
|
|
8
19
|
### Only dependencies have been changed
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
.collapse{
|
|
2
|
-
color:var(--sys-neutral-text-light, #
|
|
2
|
+
color:var(--sys-neutral-text-light, #868892);
|
|
3
3
|
background:none;
|
|
4
4
|
border:none;
|
|
5
5
|
}
|
|
6
6
|
.collapse:focus-visible, .collapse:hover{
|
|
7
|
-
color:var(--sys-neutral-text-support, #
|
|
7
|
+
color:var(--sys-neutral-text-support, #656771);
|
|
8
8
|
}
|
|
9
9
|
.collapse:focus-visible{
|
|
10
10
|
outline-width:var(--border-state-focus-s-border-width, 2px);
|
|
11
11
|
outline-style:var(--border-state-focus-s-border-style, solid);
|
|
12
12
|
outline-color:var(--border-state-focus-s-border-color, );
|
|
13
|
-
outline-color:var(--sys-available-complementary, #
|
|
13
|
+
outline-color:var(--sys-available-complementary, #141415);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.collapsedRow{
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
width:100%;
|
|
13
13
|
margin:0;
|
|
14
14
|
padding:0;
|
|
15
|
-
color:var(--sys-neutral-text-light, #
|
|
15
|
+
color:var(--sys-neutral-text-light, #868892);
|
|
16
16
|
text-decoration:none;
|
|
17
17
|
background:none;
|
|
18
18
|
border:none;
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
cursor:pointer;
|
|
22
22
|
}
|
|
23
23
|
.crumb[data-clickable]:focus-visible, .crumb[data-clickable]:hover, a.crumb[data-clickable]:focus-visible, a.crumb[data-clickable]:hover{
|
|
24
|
-
color:var(--sys-neutral-text-support, #
|
|
24
|
+
color:var(--sys-neutral-text-support, #656771);
|
|
25
25
|
}
|
|
26
26
|
.crumb[data-current=true], a.crumb[data-current=true]{
|
|
27
|
-
color:var(--sys-neutral-text-support, #
|
|
27
|
+
color:var(--sys-neutral-text-support, #656771);
|
|
28
28
|
}
|
|
29
29
|
.crumb:focus-visible, a.crumb:focus-visible{
|
|
30
30
|
outline-width:var(--border-state-focus-s-border-width, 2px);
|
|
31
31
|
outline-style:var(--border-state-focus-s-border-style, solid);
|
|
32
32
|
outline-color:var(--border-state-focus-s-border-color, );
|
|
33
|
-
outline-color:var(--sys-available-complementary, #
|
|
33
|
+
outline-color:var(--sys-available-complementary, #141415);
|
|
34
34
|
}
|
|
35
35
|
.crumb[data-size=xs], a.crumb[data-size=xs]{
|
|
36
36
|
height:var(--size-breadcrumbs-xs, 16px);
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
height:var(--size-breadcrumbs-s, 24px);
|
|
41
41
|
gap:var(--space-breadcrumbs-crumb-s-gap, 2px);
|
|
42
42
|
}
|
|
43
|
+
.crumb .label, a.crumb .label{
|
|
44
|
+
overflow:hidden;
|
|
45
|
+
width:100%;
|
|
46
|
+
text-overflow:ellipsis;
|
|
47
|
+
white-space:nowrap;
|
|
48
|
+
}
|
|
43
49
|
.crumb .icon, a.crumb .icon{
|
|
44
50
|
display:flex;
|
|
45
51
|
flex-shrink:0;
|
|
46
52
|
align-items:center;
|
|
47
53
|
width:-moz-fit-content;
|
|
48
54
|
width:fit-content;
|
|
49
|
-
}
|
|
50
|
-
.crumb .label, a.crumb .label{
|
|
51
|
-
overflow:hidden;
|
|
52
|
-
width:100%;
|
|
53
|
-
text-overflow:ellipsis;
|
|
54
|
-
white-space:nowrap;
|
|
55
55
|
}
|
|
@@ -19,7 +19,8 @@ const getItemModesRenderer = (firstItemIconOnly) => (item, index) => {
|
|
|
19
19
|
const modes = isIconOnlyMode ? ICON_ONLY_MODES : NORMAL_MODES;
|
|
20
20
|
return modes.map(([mode, labelProp]) => {
|
|
21
21
|
const label = item[labelProp];
|
|
22
|
-
|
|
22
|
+
// full mode не может отсутствовать, даже если там нет значения
|
|
23
|
+
if (!label && mode !== ITEM_RENDER_MODE.Full) {
|
|
23
24
|
return null;
|
|
24
25
|
}
|
|
25
26
|
return _jsx(Crumb, { useIconOnly: isIconOnlyMode, renderMode: mode, item: item }, item.id + mode);
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Breadcrumbs",
|
|
7
|
-
"version": "0.8.
|
|
7
|
+
"version": "0.8.11-preview-993a9cfb.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"scripts": {},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@snack-uikit/list": "0.3.
|
|
35
|
+
"@snack-uikit/list": "0.3.4-preview-993a9cfb.0",
|
|
36
36
|
"@snack-uikit/typography": "0.6.1",
|
|
37
37
|
"@snack-uikit/utils": "3.2.0",
|
|
38
38
|
"classnames": "2.3.2",
|
|
39
39
|
"lodash.debounce": "4.0.8"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "a421965dc78af63a8c292e595b3f0a8ff1be86f9"
|
|
42
42
|
}
|
|
@@ -50,17 +50,17 @@ $sizes: 'xs', 's';
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.icon {
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-shrink: 0;
|
|
56
|
-
align-items: center;
|
|
57
|
-
width: fit-content;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
53
|
.label {
|
|
61
54
|
overflow: hidden;
|
|
62
55
|
width: 100%;
|
|
63
56
|
text-overflow: ellipsis;
|
|
64
57
|
white-space: nowrap;
|
|
65
58
|
}
|
|
59
|
+
|
|
60
|
+
.icon {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-shrink: 0;
|
|
63
|
+
align-items: center;
|
|
64
|
+
width: fit-content;
|
|
65
|
+
}
|
|
66
66
|
}
|
|
@@ -29,7 +29,8 @@ const getItemModesRenderer = (firstItemIconOnly: boolean) => (item: Item, index:
|
|
|
29
29
|
return modes.map(([mode, labelProp]) => {
|
|
30
30
|
const label = item[labelProp];
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
// full mode не может отсутствовать, даже если там нет значения
|
|
33
|
+
if (!label && mode !== ITEM_RENDER_MODE.Full) {
|
|
33
34
|
return null;
|
|
34
35
|
}
|
|
35
36
|
|