@snack-uikit/tree 0.8.18 → 0.8.20-preview-913f1101.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,21 @@
|
|
|
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.19 (2025-01-23)
|
|
7
|
+
|
|
8
|
+
### Only dependencies have been changed
|
|
9
|
+
* [@snack-uikit/button@0.19.6](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/button/CHANGELOG.md)
|
|
10
|
+
* [@snack-uikit/icons@0.24.2](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/icons/CHANGELOG.md)
|
|
11
|
+
* [@snack-uikit/list@0.23.1](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/list/CHANGELOG.md)
|
|
12
|
+
* [@snack-uikit/toggles@0.13.5](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/toggles/CHANGELOG.md)
|
|
13
|
+
* [@snack-uikit/truncate-string@0.6.6](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/truncate-string/CHANGELOG.md)
|
|
14
|
+
* [@snack-uikit/typography@0.8.4](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/typography/CHANGELOG.md)
|
|
15
|
+
* [@snack-uikit/utils@3.7.0](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/utils/CHANGELOG.md)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
6
21
|
## 0.8.18 (2025-01-22)
|
|
7
22
|
|
|
8
23
|
### Only dependencies have been changed
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Tree",
|
|
7
|
-
"version": "0.8.
|
|
7
|
+
"version": "0.8.20-preview-913f1101.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"license": "Apache-2.0",
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@snack-uikit/button": "0.19.
|
|
40
|
-
"@snack-uikit/icons": "0.24.
|
|
41
|
-
"@snack-uikit/list": "0.23.0",
|
|
42
|
-
"@snack-uikit/toggles": "0.13.
|
|
43
|
-
"@snack-uikit/truncate-string": "0.6.
|
|
44
|
-
"@snack-uikit/typography": "0.8.
|
|
45
|
-
"@snack-uikit/utils": "3.
|
|
39
|
+
"@snack-uikit/button": "0.19.6",
|
|
40
|
+
"@snack-uikit/icons": "0.24.3-preview-913f1101.0",
|
|
41
|
+
"@snack-uikit/list": "0.23.2-preview-913f1101.0",
|
|
42
|
+
"@snack-uikit/toggles": "0.13.6-preview-913f1101.0",
|
|
43
|
+
"@snack-uikit/truncate-string": "0.6.7-preview-913f1101.0",
|
|
44
|
+
"@snack-uikit/typography": "0.8.4",
|
|
45
|
+
"@snack-uikit/utils": "3.7.0",
|
|
46
46
|
"classnames": "2.5.1",
|
|
47
47
|
"react-transition-state": "2.1.1",
|
|
48
48
|
"uncontrollable": "8.0.4"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "81bb5a94ada1d8222e6d7bd5b89ef3a7f71fb229"
|
|
51
51
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-tree';
|
|
2
|
-
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element';
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-tree' as tree;
|
|
2
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element' as element;
|
|
3
3
|
|
|
4
4
|
.treeNode {
|
|
5
5
|
display: flex;
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
|
|
17
17
|
box-sizing: border-box;
|
|
18
18
|
|
|
19
|
-
color:
|
|
19
|
+
color: tree.$sys-neutral-text-support;
|
|
20
20
|
|
|
21
21
|
svg {
|
|
22
|
-
width:
|
|
23
|
-
height:
|
|
22
|
+
width: element.$icon-s !important; /* stylelint-disable-line declaration-no-important */
|
|
23
|
+
height: element.$icon-s !important; /* stylelint-disable-line declaration-no-important */
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.treeNodeTitle {
|
|
28
28
|
flex-grow: 1;
|
|
29
29
|
box-sizing: border-box;
|
|
30
|
-
min-width:
|
|
31
|
-
color:
|
|
30
|
+
min-width: tree.$size-tree-item-checkbox-wrap;
|
|
31
|
+
color: tree.$sys-neutral-text-main;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.treeNodeActions {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.treeNodeContent {
|
|
44
|
-
@include
|
|
44
|
+
@include tree.composite-var(tree.$tree-item-content-layout);
|
|
45
45
|
|
|
46
46
|
cursor: pointer;
|
|
47
47
|
|
|
@@ -52,6 +52,8 @@
|
|
|
52
52
|
|
|
53
53
|
box-sizing: border-box;
|
|
54
54
|
width: 100%;
|
|
55
|
+
height: auto;
|
|
56
|
+
min-height: tree.simple-var(tree.$tree-item-content-layout, 'height');
|
|
55
57
|
|
|
56
58
|
&::before {
|
|
57
59
|
pointer-events: none;
|
|
@@ -66,13 +68,13 @@
|
|
|
66
68
|
height: 100%;
|
|
67
69
|
|
|
68
70
|
opacity: 0;
|
|
69
|
-
background-color:
|
|
71
|
+
background-color: tree.$sys-neutral-accent-default;
|
|
70
72
|
border-radius: inherit;
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
&:hover, &:focus-visible, &[data-droplist-active] {
|
|
74
76
|
&::before {
|
|
75
|
-
opacity:
|
|
77
|
+
opacity: tree.$opacity-a008;
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
.treeNodeActions {
|
|
@@ -81,9 +83,9 @@
|
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
&:focus-visible {
|
|
84
|
-
@include
|
|
86
|
+
@include tree.outline-inside-var(element.$container-focused-s);
|
|
85
87
|
|
|
86
|
-
outline-color:
|
|
88
|
+
outline-color: tree.$sys-available-complementary;
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
&[data-multiselect] {
|
|
@@ -98,26 +100,26 @@
|
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
.treeNodeTitle, .treeNodeIcon {
|
|
101
|
-
color:
|
|
103
|
+
color: tree.$sys-neutral-text-disabled;
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
&[aria-selected='true']:not([data-multiselect]) {
|
|
106
108
|
&::before {
|
|
107
|
-
opacity:
|
|
108
|
-
background-color:
|
|
109
|
+
opacity: tree.$opacity-a008;
|
|
110
|
+
background-color: tree.$sys-primary-accent-default;
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
&:hover {
|
|
112
114
|
&::before {
|
|
113
|
-
opacity:
|
|
115
|
+
opacity: tree.$opacity-a016;
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
118
|
}
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
.treeNodeCheckboxWrap {
|
|
120
|
-
@include
|
|
122
|
+
@include tree.composite-var(tree.$tree-item-checkbox-wrap);
|
|
121
123
|
|
|
122
124
|
display: flex;
|
|
123
125
|
flex-shrink: 0;
|