@cloud-ru/ds-tree 1.0.18-preview-d90ac2be.0 → 1.0.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-ru/ds-tree",
3
- "version": "1.0.18-preview-d90ac2be.0",
3
+ "version": "1.0.18",
4
4
  "description": "Иерархический список с раскрывающимися узлами, выбором (single/multiple), кастомными иконками, контекстными действиями и асинхронной подгрузкой потомков.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,15 +35,15 @@
35
35
  "dependencies": {
36
36
  "classnames": "^2.5.1",
37
37
  "react-transition-state": "^2.4.0",
38
- "@cloud-ru/ds-button": "1.0.2",
39
- "@cloud-ru/ds-icons": "1.2.0",
40
- "@cloud-ru/ds-list": "2.2.1-preview-d90ac2be.0",
41
- "@cloud-ru/ds-loader": "1.0.1",
42
- "@cloud-ru/ds-toggles": "1.1.5-preview-d90ac2be.0",
43
- "@cloud-ru/ds-typography": "1.0.0",
44
- "@cloud-ru/ds-materials": "1.0.1",
45
- "@cloud-ru/ds-truncate-string": "1.0.6-preview-d90ac2be.0",
46
- "@cloud-ru/ds-utils": "1.1.0"
38
+ "@cloud-ru/ds-button": "^1.0.3",
39
+ "@cloud-ru/ds-list": "^2.2.1",
40
+ "@cloud-ru/ds-icons": "^1.2.1",
41
+ "@cloud-ru/ds-loader": "^1.0.2",
42
+ "@cloud-ru/ds-materials": "^2.0.0",
43
+ "@cloud-ru/ds-toggles": "^1.1.5",
44
+ "@cloud-ru/ds-truncate-string": "^1.0.6",
45
+ "@cloud-ru/ds-typography": "^1.0.0",
46
+ "@cloud-ru/ds-utils": "^1.1.0"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"
@@ -15,7 +15,7 @@ $sizes: ('s', 'm', 'l');
15
15
  // --tree-line-width на корне: trunk и L-bend должны совпасть с центром шеврона.
16
16
  @each $size in $sizes {
17
17
  &[data-size='#{$size}'] {
18
- --tree-line-width: #{base.simple-var(tree.$tree, 'anatomy', 'size', $size, 'treeItem', 'centeredWrapper', 'width')};
18
+ --tree-line-width: #{base.simple-var(tree.$tree, 'anatomy', 'size', $size, 'treeItem', 'toggleButton', 'max-width')};
19
19
  --tree-item-gap: #{base.simple-var(tree.$tree, 'anatomy', 'size', $size, 'treeItem', 'gap')};
20
20
  }
21
21
  }
@@ -1,7 +1,7 @@
1
1
  @use '@cloud-ru/ds-figma-variables/build/scss/styles/styles.module' as base;
2
2
 
3
3
  // Ширина дорожки = ширина шевронной колонки; прокидывается через --tree-line-width от [data-size].
4
- $line-width: var(--tree-line-width, #{base.$sn-density-size-icon-s});
4
+ $line-width: var(--tree-line-width, #{base.$sn-density-icon-s});
5
5
 
6
6
  .treeLine {
7
7
  pointer-events: none;
@@ -197,7 +197,7 @@ $sizes: ('s', 'm', 'l');
197
197
  left: 0;
198
198
 
199
199
  width: 100%;
200
- height: calc(50% - var(--tree-chevron-size, #{base.$sn-density-size-icon-s}) / 2);
200
+ height: calc(50% - var(--tree-chevron-size, #{base.$sn-density-icon-s}) / 2);
201
201
  }
202
202
 
203
203
  .treeNodeLink {
@@ -208,14 +208,14 @@ $sizes: ('s', 'm', 'l');
208
208
  }
209
209
 
210
210
  $icon-size-by-size: (
211
- 's': base.$sn-density-size-icon-xs,
212
- 'm': base.$sn-density-size-icon-s,
213
- 'l': base.$sn-density-size-icon-s,
211
+ 's': base.$sn-density-icon-xs,
212
+ 'm': base.$sn-density-icon-s,
213
+ 'l': base.$sn-density-icon-s,
214
214
  );
215
215
 
216
216
  @each $size in $sizes {
217
217
  .treeNode[data-size='#{$size}'] {
218
- $centered-width: base.simple-var(tree.$tree, 'anatomy', 'size', $size, 'treeItem', 'centeredWrapper', 'width');
218
+ $centered-width: base.simple-var(tree.$tree, 'anatomy', 'size', $size, 'treeItem', 'toggleButton', 'max-width');
219
219
  $centered-padding-top: base.simple-var(
220
220
  tree.$tree,
221
221
  'anatomy',