ydb-embedded-ui 1.5.2 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/components/AsideNavigation/Settings/Settings.scss +4 -4
  3. package/dist/components/Breadcrumbs/Breadcrumbs.scss +1 -1
  4. package/dist/components/Collapse/Collapse.scss +8 -8
  5. package/dist/components/EmptyState/EmptyState.scss +6 -6
  6. package/dist/components/EntityStatus/EntityStatus.scss +6 -6
  7. package/dist/components/FullNodeViewer/FullNodeViewer.scss +7 -7
  8. package/dist/components/GroupViewer/GroupViewer.scss +1 -1
  9. package/dist/components/InfoViewer/InfoViewer.scss +4 -4
  10. package/dist/components/PDiskViewer/PDiskViewer.scss +1 -1
  11. package/dist/components/PoolUsage/PoolUsage.scss +5 -5
  12. package/dist/components/ProgressViewer/ProgressViewer.scss +9 -9
  13. package/dist/components/TableSkeleton/TableSkeleton.scss +1 -1
  14. package/dist/components/TabletsViewer/TabletsViewer.scss +2 -2
  15. package/dist/containers/App/App.js +2 -1
  16. package/dist/containers/App/App.scss +6 -0
  17. package/dist/containers/App/TipPopup/TipPopup.js +1 -1
  18. package/dist/containers/AsideNavigation/AsideNavigation.scss +1 -1
  19. package/dist/containers/Authentication/Authentication.scss +2 -2
  20. package/dist/containers/Header/Header.scss +2 -2
  21. package/dist/containers/Header/Host/Host.scss +6 -6
  22. package/dist/containers/Heatmap/Heatmap.js +1 -2
  23. package/dist/containers/Heatmap/Heatmap.scss +2 -2
  24. package/dist/containers/Node/Node.scss +0 -1
  25. package/dist/containers/Node/Node.tsx +1 -0
  26. package/dist/containers/Node/NodeStructure/NodeStructure.scss +3 -3
  27. package/dist/containers/Node/NodeStructure/Pdisk.tsx +6 -6
  28. package/dist/containers/Pdisk/Pdisk.scss +2 -2
  29. package/dist/containers/Pool/Pool.scss +3 -3
  30. package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.scss +2 -2
  31. package/dist/containers/Storage/Storage.scss +3 -3
  32. package/dist/containers/Storage/StorageGroups/StorageGroups.tsx +4 -4
  33. package/dist/containers/Storage/StorageNodes/StorageNodes.tsx +4 -4
  34. package/dist/containers/Tablet/Tablet.scss +4 -4
  35. package/dist/containers/Tablets/Tablets.js +1 -2
  36. package/dist/containers/TabletsFilters/TabletsFilters.js +1 -2
  37. package/dist/containers/TabletsFilters/TabletsFilters.scss +2 -2
  38. package/dist/containers/Tenant/Acl/Acl.scss +2 -2
  39. package/dist/containers/Tenant/Diagnostics/Diagnostics.tsx +1 -0
  40. package/dist/containers/Tenant/Diagnostics/Network/Network.scss +6 -6
  41. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +4 -4
  42. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.scss +2 -2
  43. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.scss +7 -8
  44. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.tsx +2 -12
  45. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.tsx +3 -2
  46. package/dist/containers/Tenant/QueryEditor/SaveQuery/SaveQuery.scss +1 -1
  47. package/dist/containers/Tenant/Tenant.scss +2 -2
  48. package/dist/containers/Vdisk/Vdisk.scss +2 -2
  49. package/dist/containers/VdiskPdiskNode/VdiskPdiskNode.scss +2 -2
  50. package/dist/styles/mixins.scss +13 -13
  51. package/dist/utils/getNodesColumns.js +2 -3
  52. package/package.json +5 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ### [1.5.3](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.5.2...v1.5.3) (2022-05-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * explicitly set lang for ydb-ui-components i18n ([5684524](https://github.com/ydb-platform/ydb-embedded-ui/commit/5684524267e2cbf19a44de75b0e0b2bf98b617fd))
9
+ * proper icon size in uikit/Select ([a665d6d](https://github.com/ydb-platform/ydb-embedded-ui/commit/a665d6d829dae61ccf25566dd7b8cd1e46a743bb))
10
+ * update code for @yandex-cloud/uikit@^2.0.0 ([49d67a1](https://github.com/ydb-platform/ydb-embedded-ui/commit/49d67a1bddcba6fa138b5ebaeb280f16366b3329))
11
+
12
+
13
+ ### chore
14
+
15
+ * update @yandex-cloud/uikit to 2.4.0 ([d2eb2e5](https://github.com/ydb-platform/ydb-embedded-ui/commit/d2eb2e5db147604ae346aea295ae22759712eaa4))
16
+ * add @yandex-cloud/uikit to peer deps ([9c9f599](https://github.com/ydb-platform/ydb-embedded-ui/commit/9c9f5997dcca1be5868d013da311a28e495e7faa))
17
+ * update ydb-ui-components to v2.0.1 ([3d6a8d3](https://github.com/ydb-platform/ydb-embedded-ui/commit/3d6a8d30ab2ab47203eb956904e891ae106c0bc7))
18
+
3
19
  ### [1.5.2](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.5.1...v1.5.2) (2022-05-26)
4
20
 
5
21
 
@@ -29,9 +29,9 @@
29
29
  &__heading {
30
30
  margin: 20px 20px 0;
31
31
 
32
- font-size: var(--yc-text-body2-font-size);
32
+ font-size: var(--yc-text-body-2-font-size);
33
33
  font-weight: 500;
34
- line-height: var(--yc-text-body2-line-height);
34
+ line-height: var(--yc-text-body-2-line-height);
35
35
  }
36
36
 
37
37
  &__search {
@@ -48,9 +48,9 @@
48
48
  &-heading {
49
49
  margin: 0;
50
50
 
51
- font-size: var(--yc-text-body2-font-size);
51
+ font-size: var(--yc-text-body-2-font-size);
52
52
  font-weight: 500;
53
- line-height: var(--yc-text-body2-line-height);
53
+ line-height: var(--yc-text-body-2-line-height);
54
54
 
55
55
  &_badge {
56
56
  position: relative;
@@ -1,5 +1,5 @@
1
1
  .kv-breadcrumbs {
2
2
  padding: 20px 0;
3
3
 
4
- font-size: var(--yc-text-body2-font-size);
4
+ font-size: var(--yc-text-body-2-font-size);
5
5
  }
@@ -20,18 +20,18 @@
20
20
 
21
21
  &__title_size {
22
22
  &_s {
23
- font-size: var(--yc-text-body-font-size);
24
- line-height: var(--yc-text-body-line-height);
23
+ font-size: var(--yc-text-body-1-font-size);
24
+ line-height: var(--yc-text-body-1-line-height);
25
25
  }
26
26
 
27
27
  &_m {
28
- font-size: var(--yc-text-body2-font-size);
29
- line-height: var(--yc-text-body2-line-height);
28
+ font-size: var(--yc-text-body-2-font-size);
29
+ line-height: var(--yc-text-body-2-line-height);
30
30
  }
31
31
 
32
32
  &_l {
33
- font-size: var(--yc-text-body3-font-size);
34
- line-height: var(--yc-text-body3-line-height);
33
+ font-size: var(--yc-text-body-3-font-size);
34
+ line-height: var(--yc-text-body-3-line-height);
35
35
  }
36
36
  }
37
37
 
@@ -55,9 +55,9 @@
55
55
  }
56
56
 
57
57
  &__empty-state-title {
58
- font-size: var(--yc-text-body-font-size);
58
+ font-size: var(--yc-text-body-1-font-size);
59
59
  font-weight: normal;
60
- line-height: var(--yc-text-body-line-height);
60
+ line-height: var(--yc-text-body-1-line-height);
61
61
 
62
62
  opacity: 0.5;
63
63
  }
@@ -47,21 +47,21 @@
47
47
  font-weight: 500;
48
48
 
49
49
  &_size_s {
50
- font-size: var(--yc-text-lead-font-size);
51
- line-height: var(--yc-text-lead-line-height);
50
+ font-size: var(--yc-text-subheader-3-font-size);
51
+ line-height: var(--yc-text-subheader-3-line-height);
52
52
  }
53
53
 
54
54
  &_size_m {
55
- font-size: var(--yc-text-title-font-size);
56
- line-height: var(--yc-text-title-line-height);
55
+ font-size: var(--yc-text-header-2-font-size);
56
+ line-height: var(--yc-text-header-2-line-height);
57
57
  }
58
58
  }
59
59
 
60
60
  &__description {
61
61
  grid-area: description;
62
62
 
63
- font-size: var(--yc-text-body2-font-size);
64
- line-height: var(--yc-text-body2-line-height);
63
+ font-size: var(--yc-text-body-2-font-size);
64
+ line-height: var(--yc-text-body-2-line-height);
65
65
  }
66
66
 
67
67
  &__actions {
@@ -5,8 +5,8 @@
5
5
  max-width: 100%;
6
6
  height: 100%;
7
7
 
8
- font-size: var(--yc-text-body2-font-size);
9
- line-height: var(--yc-text-body2-line-height);
8
+ font-size: var(--yc-text-body-2-font-size);
9
+ line-height: var(--yc-text-body-2-line-height);
10
10
 
11
11
  &__clipboard-button {
12
12
  display: none;
@@ -42,8 +42,8 @@
42
42
  &__label {
43
43
  margin-right: 2px;
44
44
 
45
- font-size: var(--yc-text-body2-font-size);
46
- line-height: var(--yc-text-body2-line-height);
45
+ font-size: var(--yc-text-body-2-font-size);
46
+ line-height: var(--yc-text-body-2-line-height);
47
47
 
48
48
  color: var(--yc-color-text-complementary);
49
49
  }
@@ -96,7 +96,7 @@
96
96
  }
97
97
 
98
98
  &_size_m {
99
- font-size: var(--yc-text-body2-font-size);
100
- line-height: var(--yc-text-body2-line-height);
99
+ font-size: var(--yc-text-body-2-font-size);
100
+ line-height: var(--yc-text-body-2-line-height);
101
101
  }
102
102
  }
@@ -1,15 +1,15 @@
1
1
  @import '../../styles/mixins.scss';
2
2
 
3
3
  .full-node-viewer {
4
- font-size: var(--yc-text-body2-font-size);
5
- line-height: var(--yc-text-body2-line-height);
4
+ font-size: var(--yc-text-body-2-font-size);
5
+ line-height: var(--yc-text-body-2-line-height);
6
6
 
7
7
  &__title {
8
8
  margin: 0 20px 0 0;
9
9
 
10
- font-size: var(--yc-text-body2-font-size);
10
+ font-size: var(--yc-text-body-2-font-size);
11
11
  font-weight: 600;
12
- line-height: var(--yc-text-body2-line-height);
12
+ line-height: var(--yc-text-body-2-line-height);
13
13
  text-transform: uppercase;
14
14
  }
15
15
 
@@ -50,7 +50,7 @@
50
50
  min-width: 100px;
51
51
  margin-right: 25px;
52
52
 
53
- font-size: var(--yc-text-body2-font-size);
53
+ font-size: var(--yc-text-body-2-font-size);
54
54
  line-height: 18px;
55
55
  white-space: nowrap;
56
56
 
@@ -69,9 +69,9 @@
69
69
  &__section-title {
70
70
  margin: 15px 0 10px;
71
71
 
72
- font-size: var(--yc-text-body2-font-size);
72
+ font-size: var(--yc-text-body-2-font-size);
73
73
  font-weight: 600;
74
- line-height: var(--yc-text-body2-line-height);
74
+ line-height: var(--yc-text-body-2-line-height);
75
75
  }
76
76
 
77
77
  &__link {
@@ -8,7 +8,7 @@
8
8
  &__label {
9
9
  margin-right: 20px;
10
10
 
11
- font-size: var(--yc-text-body-font-size);
11
+ font-size: var(--yc-text-body-1-font-size);
12
12
 
13
13
  color: var(--yc-color-text-complementary);
14
14
  }
@@ -1,12 +1,12 @@
1
1
  .info-viewer {
2
- font-size: var(--yc-text-body2-font-size);
3
- line-height: var(--yc-text-body2-line-height);
2
+ font-size: var(--yc-text-body-2-font-size);
3
+ line-height: var(--yc-text-body-2-line-height);
4
4
  &__title {
5
5
  margin: 15px 0 10px;
6
6
 
7
- font-size: var(--yc-text-body2-font-size);
7
+ font-size: var(--yc-text-body-2-font-size);
8
8
  font-weight: 600;
9
- line-height: var(--yc-text-body2-line-height);
9
+ line-height: var(--yc-text-body-2-line-height);
10
10
  }
11
11
 
12
12
  &__items {
@@ -6,7 +6,7 @@
6
6
  &__size {
7
7
  margin-right: 24px;
8
8
 
9
- font-size: var(--yc-text-body2-font-size);
9
+ font-size: var(--yc-text-body-2-font-size);
10
10
  line-height: 0;
11
11
 
12
12
  color: var(--yc-color-text-complementary);
@@ -1,6 +1,6 @@
1
1
  .pool-usage {
2
- font-size: var(--yc-text-body2-font-size);
3
- line-height: var(--yc-text-body2-line-height);
2
+ font-size: var(--yc-text-body-2-font-size);
3
+ line-height: var(--yc-text-body-2-line-height);
4
4
  &__info {
5
5
  display: flex;
6
6
  justify-content: space-between;
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  &__threads {
20
- font-size: var(--yc-text-body-font-size);
20
+ font-size: var(--yc-text-body-1-font-size);
21
21
 
22
22
  color: var(--yc-color-text-hint);
23
23
 
@@ -29,7 +29,7 @@
29
29
  &__percents {
30
30
  margin-right: 2px;
31
31
 
32
- font-size: var(--yc-text-body-font-size);
32
+ font-size: var(--yc-text-body-1-font-size);
33
33
 
34
34
  color: var(--yc-color-text-primary);
35
35
  }
@@ -44,7 +44,7 @@
44
44
 
45
45
  height: 6px;
46
46
 
47
- font-size: var(--yc-text-body2-font-size);
47
+ font-size: var(--yc-text-body-2-font-size);
48
48
 
49
49
  border-radius: 4px;
50
50
  background-color: var(--yc-color-base-generic-accent);
@@ -10,7 +10,7 @@
10
10
  height: 23px;
11
11
  padding: 0 4px;
12
12
 
13
- font-size: var(--yc-text-body2-font-size);
13
+ font-size: var(--yc-text-body-2-font-size);
14
14
  white-space: nowrap;
15
15
 
16
16
  color: var(--yc-color-text-light-primary);
@@ -49,20 +49,20 @@
49
49
  &_size_xs {
50
50
  height: 20px;
51
51
 
52
- font-size: var(--yc-text-body2-font-size);
53
- line-height: var(--yc-text-body2-line-height);
52
+ font-size: var(--yc-text-body-2-font-size);
53
+ line-height: var(--yc-text-body-2-line-height);
54
54
  }
55
55
 
56
56
  &_size_s {
57
57
  height: 28px;
58
58
 
59
- font-size: var(--yc-text-body-font-size);
59
+ font-size: var(--yc-text-body-1-font-size);
60
60
  line-height: 28px;
61
61
  }
62
62
  &_size_m {
63
63
  height: 32px;
64
64
 
65
- font-size: var(--yc-text-body2-font-size);
65
+ font-size: var(--yc-text-body-2-font-size);
66
66
  line-height: 32px;
67
67
  }
68
68
 
@@ -70,25 +70,25 @@
70
70
  height: 24px;
71
71
 
72
72
  font-size: 13px;
73
- line-height: var(--yc-text-lead-line-height);
73
+ line-height: var(--yc-text-subheader-3-line-height);
74
74
  }
75
75
 
76
76
  &_size_n {
77
77
  height: 36px;
78
78
 
79
- font-size: var(--yc-text-body-font-size);
79
+ font-size: var(--yc-text-body-1-font-size);
80
80
  line-height: 36px;
81
81
  }
82
82
 
83
83
  &_size_l {
84
84
  height: 38px;
85
85
 
86
- font-size: var(--yc-text-lead-font-size);
86
+ font-size: var(--yc-text-subheader-3-font-size);
87
87
  line-height: 38px;
88
88
  }
89
89
 
90
90
  &_size_head {
91
- font-size: var(--yc-text-body-font-size);
91
+ font-size: var(--yc-text-body-1-font-size);
92
92
  line-height: 36px;
93
93
  }
94
94
  }
@@ -8,7 +8,7 @@
8
8
  height: var(--data-table-row-height);
9
9
 
10
10
  .yc-skeleton {
11
- height: var(--yc-text-body2-line-height);
11
+ height: var(--yc-text-body-2-line-height);
12
12
  }
13
13
  }
14
14
 
@@ -17,7 +17,7 @@
17
17
  min-width: 60px;
18
18
  margin-right: 20px;
19
19
 
20
- font-size: var(--yc-text-body-font-size);
20
+ font-size: var(--yc-text-body-1-font-size);
21
21
  line-height: 18px;
22
22
  white-space: nowrap;
23
23
  text-transform: capitalize;
@@ -33,7 +33,7 @@
33
33
  margin: 0;
34
34
  margin-bottom: 16px;
35
35
 
36
- font-size: var(--yc-text-body2-font-size);
36
+ font-size: var(--yc-text-body-2-font-size);
37
37
  font-weight: bold;
38
38
  line-height: 20px;
39
39
  }
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import {connect} from 'react-redux';
3
3
  import PropTypes from 'prop-types';
4
4
 
5
+ import {i18n as YDBComponentsI18N} from 'ydb-ui-components/build/components/i18n';
5
6
  import {I18N, i18n} from '../../utils/i18n';
6
7
 
7
8
  import ContentWrapper, {Content} from './Content';
@@ -25,7 +26,7 @@ class App extends React.Component {
25
26
  constructor(props) {
26
27
  super(props);
27
28
  i18n.setLang(I18N.LANGS.en);
28
- I18N.setDefaultLang(I18N.LANGS.en); // for the peer dependency ydb-ui-components, should match the language above
29
+ YDBComponentsI18N.setLang(I18N.LANGS.en);
29
30
  }
30
31
 
31
32
  componentDidMount() {
@@ -3,9 +3,15 @@
3
3
  @import './NodesTable';
4
4
 
5
5
  * {
6
+ // FIXME: this is an overkill, potentially could break external components, needs refactoring
6
7
  box-sizing: border-box;
7
8
  }
8
9
 
10
+ .yc-select-popup__tick-icon {
11
+ // this is a local fix, remove after the refactoring
12
+ box-sizing: content-box;
13
+ }
14
+
9
15
  html,
10
16
  body,
11
17
  #root {
@@ -54,7 +54,7 @@ function TipPopup({dbChangePopupVisibility, dataAttribute, initialIsPopupVisible
54
54
  <div className={b('title')}>{tipData.title}</div>
55
55
  <div className={b('content')}>{tipData.description}</div>
56
56
  <div className={b('cross-icon-wrapper')}>
57
- <Button view="clear" onClick={onClosePopupClick}>
57
+ <Button view="flat-secondary" onClick={onClosePopupClick}>
58
58
  <Icon data={closeIcon} size={10} className={b('cross-icon')} />
59
59
  </Button>
60
60
  </div>
@@ -6,7 +6,7 @@
6
6
 
7
7
  margin-left: 16px;
8
8
 
9
- line-height: var(--yc-text-body2-line-height);
9
+ line-height: var(--yc-text-body-2-line-height);
10
10
  }
11
11
  &__user-info-wrapper {
12
12
  display: flex;
@@ -28,8 +28,8 @@
28
28
 
29
29
  width: 100%;
30
30
 
31
- font-size: var(--yc-text-body-font-size);
32
- line-height: var(--yc-text-header-line-height);
31
+ font-size: var(--yc-text-body-1-font-size);
32
+ line-height: var(--yc-text-header-1-line-height);
33
33
  }
34
34
 
35
35
  &__logo {
@@ -15,14 +15,14 @@
15
15
  @include body2-typography;
16
16
 
17
17
  &__cluster-info-title {
18
- font-size: var(--yc-text-body-font-size);
18
+ font-size: var(--yc-text-body-1-font-size);
19
19
  text-transform: uppercase;
20
20
 
21
21
  color: var(--yc-color-text-secondary);
22
22
  }
23
23
 
24
24
  &__cluster-info-name {
25
- font-size: var(--yc-text-body2-font-size);
25
+ font-size: var(--yc-text-body-2-font-size);
26
26
  font-weight: 500;
27
27
  }
28
28
 
@@ -13,8 +13,8 @@
13
13
 
14
14
  margin-right: 15px;
15
15
 
16
- font-size: var(--yc-text-body2-font-size);
17
- line-height: var(--yc-text-body2-line-height);
16
+ font-size: var(--yc-text-body-2-font-size);
17
+ line-height: var(--yc-text-body-2-line-height);
18
18
  }
19
19
  &__info {
20
20
  display: flex;
@@ -32,8 +32,8 @@
32
32
  &__label {
33
33
  margin-right: 10px;
34
34
 
35
- font-size: var(--yc-text-body-font-size);
36
- line-height: var(--yc-text-body-line-height);
35
+ font-size: var(--yc-text-body-1-font-size);
36
+ line-height: var(--yc-text-body-1-line-height);
37
37
 
38
38
  color: var(--yc-color-text-hint);
39
39
 
@@ -42,8 +42,8 @@
42
42
  }
43
43
  }
44
44
  &__value {
45
- font-size: var(--yc-text-body-font-size);
46
- line-height: var(--yc-text-body-line-height);
45
+ font-size: var(--yc-text-body-1-font-size);
46
+ line-height: var(--yc-text-body-1-line-height);
47
47
 
48
48
  color: var(--yc-color-text-primary);
49
49
  }
@@ -8,8 +8,7 @@ import {showTooltip, hideTooltip} from '../../store/reducers/tooltip';
8
8
  import {COLORS_RANGE_SIZE, getColorRange, getColorIndex, getCurrentMetricLimits} from './util';
9
9
  import {formatNumber} from '../../utils';
10
10
 
11
- import {Loader, Checkbox} from '@yandex-cloud/uikit';
12
- import {Select} from '@yandex-cloud/uikit/build/esm/components/unstable/Select';
11
+ import {Loader, Checkbox, Select} from '@yandex-cloud/uikit';
13
12
  import {HeatmapCanvas} from './HeatmapCanvas/HeatmapCanvas';
14
13
  import {Histogram} from './Histogram/Histogram';
15
14
  import {AutoFetcher} from '../../utils/autofetcher';
@@ -49,9 +49,9 @@
49
49
  &__label {
50
50
  margin-right: 16px;
51
51
 
52
- font-size: var(--yc-text-body2-font-size);
52
+ font-size: var(--yc-text-body-2-font-size);
53
53
  font-weight: 500;
54
- line-height: var(--yc-text-body2-line-height);
54
+ line-height: var(--yc-text-body-2-line-height);
55
55
  text-transform: uppercase;
56
56
 
57
57
  &_overall {
@@ -20,7 +20,6 @@
20
20
 
21
21
  &__tabs {
22
22
  padding: 16px 20px 0;
23
- @include body2-typography();
24
23
  }
25
24
 
26
25
  &__tab {
@@ -98,6 +98,7 @@ function Node(props: NodeProps) {
98
98
  return (
99
99
  <div className={b('tabs')}>
100
100
  <Tabs
101
+ size="l"
101
102
  items={nodeTabs}
102
103
  activeTab={activeTabVerified}
103
104
  wrapTo={({id}, node) => (
@@ -22,7 +22,7 @@
22
22
 
23
23
  width: 573px;
24
24
  margin-bottom: 8px;
25
- padding-left: 20px;
25
+ padding: 0 10px 0 20px;
26
26
 
27
27
  border: 1px solid var(--yc-color-line-generic);
28
28
  border-radius: 5px;
@@ -137,9 +137,9 @@
137
137
  &__title {
138
138
  margin-right: 16px;
139
139
 
140
- font-size: var(--yc-text-body2-font-size);
140
+ font-size: var(--yc-text-body-2-font-size);
141
141
  font-weight: 500;
142
- line-height: var(--yc-text-body2-line-height);
142
+ line-height: var(--yc-text-body-2-line-height);
143
143
  text-transform: uppercase;
144
144
  }
145
145
  }
@@ -2,7 +2,7 @@ import {useState} from 'react';
2
2
  import cn from 'bem-cn-lite';
3
3
  import _ from 'lodash';
4
4
 
5
- import {ArrowToggle, Button, Tooltip} from '@yandex-cloud/uikit';
5
+ import {ArrowToggle, Button, Popover} from '@yandex-cloud/uikit';
6
6
 
7
7
  import DataTable, {Column, Settings} from '@yandex-cloud/react-data-table';
8
8
 
@@ -126,20 +126,20 @@ function getColumns({
126
126
  width: 70,
127
127
  render: ({row}) => {
128
128
  return (
129
- <Tooltip
129
+ <Popover
130
130
  placement={['right']}
131
131
  content={<Vdisk {...row} />}
132
132
  contentClassName={b('vdisk-details')}
133
133
  >
134
134
  <Button
135
- view="clear"
135
+ view="flat-secondary"
136
136
  className={b('vdisk-details-button', {
137
137
  selected: row.id === selectedVdiskId,
138
138
  })}
139
139
  >
140
140
  <Icon name="information" viewBox="0 0 512 512" height={16} width={16} />
141
141
  </Button>
142
- </Tooltip>
142
+ </Popover>
143
143
  );
144
144
  },
145
145
  sortable: false,
@@ -213,7 +213,7 @@ export function PDisk(props: PDiskProps) {
213
213
  className={b('external-button')}
214
214
  href={pDiskInternalViewerLink}
215
215
  target="_blank"
216
- view="clear"
216
+ view="flat-secondary"
217
217
  >
218
218
  <Icon name="external" />
219
219
  </Button>
@@ -289,7 +289,7 @@ export function PDisk(props: PDiskProps) {
289
289
  <span>{data.Path}</span>
290
290
  <EntityStatus status={data.Device} name={`${data.NodeId}-${data.PDiskId}`} />
291
291
  </div>
292
- <Button onClick={unfolded ? onClosePDiskDetails : onOpenPDiskDetails} view="clear">
292
+ <Button onClick={unfolded ? onClosePDiskDetails : onOpenPDiskDetails} view="flat-secondary">
293
293
  <ArrowToggle direction={unfolded ? 'top' : 'bottom'} />
294
294
  </Button>
295
295
  </div>
@@ -20,9 +20,9 @@
20
20
  &__title {
21
21
  margin-right: 16px;
22
22
 
23
- font-size: var(--yc-text-body2-font-size);
23
+ font-size: var(--yc-text-body-2-font-size);
24
24
  font-weight: 500;
25
- line-height: var(--yc-text-body2-line-height);
25
+ line-height: var(--yc-text-body-2-line-height);
26
26
  text-transform: uppercase;
27
27
  }
28
28
 
@@ -10,9 +10,9 @@
10
10
  &__title {
11
11
  margin-right: 16px;
12
12
 
13
- font-size: var(--yc-text-body2-font-size);
13
+ font-size: var(--yc-text-body-2-font-size);
14
14
  font-weight: 500;
15
- line-height: var(--yc-text-body2-line-height);
15
+ line-height: var(--yc-text-body-2-line-height);
16
16
  text-transform: uppercase;
17
17
 
18
18
  &_groups {
@@ -30,6 +30,6 @@
30
30
  &__breadcrumbs {
31
31
  padding: 20px 0;
32
32
 
33
- font-size: var(--yc-text-body2-font-size);
33
+ font-size: var(--yc-text-body-2-font-size);
34
34
  }
35
35
  }
@@ -5,7 +5,7 @@
5
5
  display: inline-block;
6
6
 
7
7
  width: 100%;
8
- height: var(--yc-text-body2-line-height);
8
+ height: var(--yc-text-body-2-line-height);
9
9
 
10
10
  border: 1px solid var(--yc-color-infographics-misc-medium);
11
11
  border-radius: 2px;
@@ -67,7 +67,7 @@
67
67
  position: absolute;
68
68
  z-index: 2;
69
69
 
70
- font-size: var(--yc-text-body-font-size);
70
+ font-size: var(--yc-text-body-1-font-size);
71
71
  line-height: inherit;
72
72
 
73
73
  color: inherit;
@@ -16,12 +16,12 @@
16
16
  overflow: auto;
17
17
  flex-grow: 1;
18
18
 
19
- font-size: var(--yc-text-body2-font-size);
20
- line-height: var(--yc-text-body2-line-height);
19
+ font-size: var(--yc-text-body-2-font-size);
20
+ line-height: var(--yc-text-body-2-line-height);
21
21
 
22
22
  .yc-tooltip {
23
23
  // stylelint-disable-next-line declaration-no-important
24
- height: var(--yc-text-body2-line-height) !important;
24
+ height: var(--yc-text-body-2-line-height) !important;
25
25
  }
26
26
 
27
27
  table {
@@ -1,7 +1,7 @@
1
1
  import _ from 'lodash';
2
2
  import cn from 'bem-cn-lite';
3
3
  import DataTable, {Column, Settings, SortOrder} from '@yandex-cloud/react-data-table';
4
- import {Tooltip, TooltipBehavior} from '@yandex-cloud/uikit';
4
+ import {Popover, PopoverBehavior} from '@yandex-cloud/uikit';
5
5
 
6
6
  import Vdisk from '../Vdisk/Vdisk';
7
7
  //@ts-ignore
@@ -90,15 +90,15 @@ function StorageGroups({data, tableSettings, visibleEntities, nodes}: StorageGro
90
90
  return (
91
91
  <div className={b('pool-name-wrapper')}>
92
92
  {splitted && (
93
- <Tooltip
93
+ <Popover
94
94
  content={<span className={b('tooltip')}>{value as string}</span>}
95
95
  placement={['right']}
96
- behavior={TooltipBehavior.Immediate}
96
+ behavior={PopoverBehavior.Immediate}
97
97
  >
98
98
  <span className={b('pool-name')}>
99
99
  {splitted[splitted.length - 1]}
100
100
  </span>
101
- </Tooltip>
101
+ </Popover>
102
102
  )}
103
103
  </div>
104
104
  );
@@ -1,7 +1,7 @@
1
1
  import _ from 'lodash';
2
2
  import cn from 'bem-cn-lite';
3
3
  import DataTable, {Column, Settings, SortOrder} from '@yandex-cloud/react-data-table';
4
- import {Tooltip, TooltipBehavior} from '@yandex-cloud/uikit';
4
+ import {Popover, PopoverBehavior} from '@yandex-cloud/uikit';
5
5
  //@ts-ignore
6
6
  import {VisibleEntities} from '../../../store/reducers/storage';
7
7
  import Pdisk from '../Pdisk/Pdisk';
@@ -71,13 +71,13 @@ function StorageNodes({data, tableSettings, visibleEntities}: StorageGroupsProps
71
71
  render: ({value}) => {
72
72
  return (
73
73
  <div className={b('tooltip-wrapper')}>
74
- <Tooltip
74
+ <Popover
75
75
  content={<span className={b('tooltip')}>{value as string}</span>}
76
76
  placement={['right']}
77
- behavior={TooltipBehavior.Immediate}
77
+ behavior={PopoverBehavior.Immediate}
78
78
  >
79
79
  <span className={b('pool-name')}>{value as string}</span>
80
- </Tooltip>
80
+ </Popover>
81
81
  </div>
82
82
  );
83
83
  },
@@ -46,9 +46,9 @@
46
46
  &__title {
47
47
  margin-right: 16px;
48
48
 
49
- font-size: var(--yc-text-body2-font-size);
49
+ font-size: var(--yc-text-body-2-font-size);
50
50
  font-weight: 500;
51
- line-height: var(--yc-text-body2-line-height);
51
+ line-height: var(--yc-text-body-2-line-height);
52
52
  text-transform: uppercase;
53
53
  }
54
54
 
@@ -84,9 +84,9 @@
84
84
  &__top-label {
85
85
  margin-right: 16px;
86
86
 
87
- font-size: var(--yc-text-body2-font-size);
87
+ font-size: var(--yc-text-body-2-font-size);
88
88
  font-weight: 500;
89
- line-height: var(--yc-text-body2-line-height);
89
+ line-height: var(--yc-text-body-2-line-height);
90
90
  text-transform: uppercase;
91
91
  }
92
92
  }
@@ -12,8 +12,7 @@ import {
12
12
  import {showTooltip, hideTooltip} from '../../store/reducers/tooltip';
13
13
 
14
14
  import Tablet from '../../components/Tablet/Tablet';
15
- import {Loader} from '@yandex-cloud/uikit';
16
- import {Select} from '@yandex-cloud/uikit/build/esm/components/unstable/Select';
15
+ import {Loader, Select} from '@yandex-cloud/uikit';
17
16
  import ReactList from 'react-list';
18
17
  import {AutoFetcher} from '../../utils/autofetcher';
19
18
 
@@ -5,8 +5,7 @@ import cn from 'bem-cn-lite';
5
5
  import qs from 'qs';
6
6
  import _ from 'lodash';
7
7
 
8
- import {Loader} from '@yandex-cloud/uikit';
9
- import {Select} from '@yandex-cloud/uikit/build/esm/components/unstable/Select';
8
+ import {Loader, Select} from '@yandex-cloud/uikit';
10
9
  import ReactList from 'react-list';
11
10
 
12
11
  import Tablet from '../../components/Tablet/Tablet';
@@ -10,8 +10,8 @@
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
 
13
- font-size: var(--yc-text-body-font-size);
14
- line-height: var(--yc-text-body-line-height);
13
+ font-size: var(--yc-text-body-1-font-size);
14
+ line-height: var(--yc-text-body-1-line-height);
15
15
  }
16
16
 
17
17
  &__node-meta {
@@ -38,8 +38,8 @@
38
38
  }
39
39
 
40
40
  &__text {
41
- font-size: var(--yc-text-body-font-size);
42
- line-height: var(--yc-text-body-line-height);
41
+ font-size: var(--yc-text-body-1-font-size);
42
+ line-height: var(--yc-text-body-1-line-height);
43
43
 
44
44
  color: var(--yc-color-text-primary);
45
45
 
@@ -164,6 +164,7 @@ function Diagnostics(props: DiagnosticsProps) {
164
164
  <div className={b('header-wrapper')}>
165
165
  <div className={b('tabs')}>
166
166
  <Tabs
167
+ size="l"
167
168
  items={pages}
168
169
  activeTab={activeTab as string}
169
170
  wrapTo={({id}, node) => {
@@ -9,8 +9,8 @@
9
9
  max-width: 1305px;
10
10
  height: 100%;
11
11
 
12
- font-size: var(--yc-text-body2-font-size);
13
- line-height: var(--yc-text-body2-line-height);
12
+ font-size: var(--yc-text-body-2-font-size);
13
+ line-height: var(--yc-text-body-2-line-height);
14
14
 
15
15
  &__nodes-row {
16
16
  display: flex;
@@ -74,8 +74,8 @@
74
74
  &__nodes-title {
75
75
  margin: 0 0 15px;
76
76
 
77
- font-size: var(--yc-text-body2-font-size);
78
- line-height: var(--yc-text-body2-line-height);
77
+ font-size: var(--yc-text-body-2-font-size);
78
+ line-height: var(--yc-text-body-2-line-height);
79
79
 
80
80
  color: var(--yc-color-text-secondary);
81
81
  border-bottom: 1px solid var(--yc-color-base-generic-accent);
@@ -90,9 +90,9 @@
90
90
  &__title {
91
91
  margin: 20px 0;
92
92
 
93
- font-size: var(--yc-text-body-font-size);
93
+ font-size: var(--yc-text-body-1-font-size);
94
94
  font-weight: 500;
95
- line-height: var(--yc-text-body-line-height);
95
+ line-height: var(--yc-text-body-1-line-height);
96
96
  }
97
97
 
98
98
  &__checkbox-wrapper {
@@ -46,9 +46,9 @@
46
46
  }
47
47
 
48
48
  &__collapse-title {
49
- font-size: var(--yc-text-body2-font-size);
49
+ font-size: var(--yc-text-body-2-font-size);
50
50
  font-weight: 500;
51
- line-height: var(--yc-text-body2-line-height);
51
+ line-height: var(--yc-text-body-2-line-height);
52
52
  //text-transform: uppercase;
53
53
  }
54
54
 
@@ -75,8 +75,8 @@
75
75
  &__section-title {
76
76
  margin-bottom: 20px;
77
77
 
78
- font-size: var(--yc-text-body2-font-size);
78
+ font-size: var(--yc-text-body-2-font-size);
79
79
  font-weight: 500;
80
- line-height: var(--yc-text-body2-line-height);
80
+ line-height: var(--yc-text-body-2-line-height);
81
81
  }
82
82
  }
@@ -22,8 +22,8 @@
22
22
  }
23
23
 
24
24
  &__text {
25
- font-size: var(--yc-text-body-font-size);
26
- line-height: var(--yc-text-body-line-height);
25
+ font-size: var(--yc-text-body-1-font-size);
26
+ line-height: var(--yc-text-body-1-line-height);
27
27
 
28
28
  color: var(--yc-color-text-primary);
29
29
 
@@ -16,23 +16,22 @@
16
16
  padding: 13px 20px 0;
17
17
 
18
18
  box-shadow: inset 0 -1px 0 0 var(--yc-color-line-generic);
19
- @include body3-typography();
20
19
  .yc-tabs {
21
20
  box-shadow: unset;
22
21
  }
23
22
  }
24
23
  &__tab {
25
24
  text-decoration: none;
26
- }
27
25
 
28
- &__loader {
29
- display: flex;
26
+ // fix for bug in uikit, gap is set for yc-tabs__item:not(:last-child),
27
+ // it doesn't work for wrapped items
28
+ // feel free to remove if the bug is fixed
29
+ &:not(:last-child) {
30
+ margin-right: var(--yc-tabs-gap);
31
+ }
30
32
  }
31
33
 
32
- &__tab-label {
34
+ &__loader {
33
35
  display: flex;
34
- gap: 5px;
35
-
36
- align-items: center;
37
36
  }
38
37
  }
@@ -38,21 +38,11 @@ function ObjectGeneral(props: ObjectGeneralProps) {
38
38
  const {name: tenantName, general: generalTab} = queryParams;
39
39
 
40
40
  const renderTabs = () => {
41
- const pages = TENANT_GENERAL_TABS.map((page) => {
42
- return {
43
- ...page,
44
- title: (
45
- <div className={b('tab-label')}>
46
- {page.icon}
47
- {page.title}
48
- </div>
49
- ),
50
- };
51
- });
52
41
  return (
53
42
  <div className={b('tabs')}>
54
43
  <Tabs
55
- items={pages}
44
+ size="xl"
45
+ items={TENANT_GENERAL_TABS}
56
46
  activeTab={generalTab as string}
57
47
  wrapTo={({id}, node) => {
58
48
  const path = createHref(routes.tenant, undefined, {
@@ -6,7 +6,7 @@ import {useHistory, useLocation} from 'react-router';
6
6
  import qs from 'qs';
7
7
  import _ from 'lodash';
8
8
 
9
- import {Button, HelpTooltip, Loader, Tabs} from '@yandex-cloud/uikit';
9
+ import {Button, HelpPopover, Loader, Tabs} from '@yandex-cloud/uikit';
10
10
 
11
11
  import SplitPane from '../../../components/SplitPane';
12
12
  import {SchemaTree} from '../Schema/SchemaTree/SchemaTree';
@@ -127,6 +127,7 @@ function ObjectSummary(props: ObjectSummaryProps) {
127
127
  return (
128
128
  <div className={b('tabs')}>
129
129
  <Tabs
130
+ size="l"
130
131
  items={tabsItems}
131
132
  activeTab={infoTab as string}
132
133
  wrapTo={({id}, node) => {
@@ -260,7 +261,7 @@ function ObjectSummary(props: ObjectSummaryProps) {
260
261
  <div className={b('entity-type')}>{type}</div>
261
262
  ) : (
262
263
  <div className={b('entity-type', {error: true})}>
263
- <HelpTooltip content={message} offset={{left: 0}} />
264
+ <HelpPopover content={message} offset={{left: 0}} />
264
265
  </div>
265
266
  );
266
267
  };
@@ -4,7 +4,7 @@
4
4
  align-items: flex-start;
5
5
 
6
6
  & + & {
7
- margin-top: var(--yc-text-body-line-height);
7
+ margin-top: var(--yc-text-body-1-line-height);
8
8
  }
9
9
  }
10
10
  &__field-title {
@@ -3,8 +3,8 @@
3
3
  .tenant-page {
4
4
  overflow: hidden;
5
5
 
6
- font-size: var(--yc-text-body2-font-size);
7
- line-height: var(--yc-text-body2-line-height);
6
+ font-size: var(--yc-text-body-2-font-size);
7
+ line-height: var(--yc-text-body-2-line-height);
8
8
  @include flex-container();
9
9
 
10
10
  .yc-tabs {
@@ -20,9 +20,9 @@
20
20
  &__title {
21
21
  margin-right: 16px;
22
22
 
23
- font-size: var(--yc-text-body2-font-size);
23
+ font-size: var(--yc-text-body-2-font-size);
24
24
  font-weight: 500;
25
- line-height: var(--yc-text-body2-line-height);
25
+ line-height: var(--yc-text-body-2-line-height);
26
26
  text-transform: uppercase;
27
27
  }
28
28
 
@@ -27,9 +27,9 @@
27
27
  &__title {
28
28
  margin-right: 16px;
29
29
 
30
- font-size: var(--yc-text-body2-font-size);
30
+ font-size: var(--yc-text-body-2-font-size);
31
31
  font-weight: 500;
32
- line-height: var(--yc-text-body2-line-height);
32
+ line-height: var(--yc-text-body-2-line-height);
33
33
  text-transform: uppercase;
34
34
  }
35
35
 
@@ -16,25 +16,25 @@
16
16
  }
17
17
 
18
18
  @mixin body-typography() {
19
- font-size: var(--yc-text-body-font-size);
20
- line-height: var(--yc-text-body-line-height);
19
+ font-size: var(--yc-text-body-1-font-size);
20
+ line-height: var(--yc-text-body-1-line-height);
21
21
  }
22
22
  @mixin body2-typography() {
23
- font-size: var(--yc-text-body2-font-size);
24
- line-height: var(--yc-text-body2-line-height);
23
+ font-size: var(--yc-text-body-2-font-size);
24
+ line-height: var(--yc-text-body-2-line-height);
25
25
  }
26
26
  @mixin body3-typography() {
27
- font-size: var(--yc-text-body3-font-size);
28
- line-height: var(--yc-text-body3-line-height);
27
+ font-size: var(--yc-text-body-3-font-size);
28
+ line-height: var(--yc-text-body-3-line-height);
29
29
  }
30
30
  @mixin lead-typography() {
31
- font-size: var(--yc-text-lead-font-size);
32
- line-height: var(--yc-text-lead-line-height);
31
+ font-size: var(--yc-text-subheader-3-font-size);
32
+ line-height: var(--yc-text-subheader-3-line-height);
33
33
  }
34
34
 
35
35
  @mixin title-typography() {
36
- font-size: var(--yc-text-title-font-size);
37
- line-height: var(--yc-text-title-line-height);
36
+ font-size: var(--yc-text-header-2-font-size);
37
+ line-height: var(--yc-text-header-2-line-height);
38
38
  }
39
39
 
40
40
  @mixin sticky-top {
@@ -188,8 +188,8 @@
188
188
  @mixin json-tree-styles {
189
189
  // stylelint-disable
190
190
  font-family: var(--yc-font-family-monospace) !important;
191
- font-size: var(--yc-text-code-font-size) !important;
192
- line-height: var(--yc-text-code-line-height) !important;
191
+ font-size: var(--yc-text-code-1-font-size) !important;
192
+ line-height: var(--yc-text-code-1-line-height) !important;
193
193
  // stylelint-enable
194
194
 
195
195
  .json-inspector__leaf_composite:before {
@@ -239,7 +239,7 @@
239
239
  margin: 0;
240
240
  padding: 0;
241
241
 
242
- font-family: var(--yc-font-family);
242
+ font-family: var(--yc-text-body-font-family);
243
243
  font-size: 13px;
244
244
  vertical-align: top;
245
245
 
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import cn from 'bem-cn-lite';
3
2
  import DataTable from '@yandex-cloud/react-data-table';
4
- import {Button, Tooltip} from '@yandex-cloud/uikit';
3
+ import {Button, Popover} from '@yandex-cloud/uikit';
5
4
 
6
5
  import Icon from '../components/Icon/Icon';
7
6
  import EntityStatus from '../components/EntityStatus/EntityStatus';
@@ -62,7 +61,7 @@ export function getNodesColumns({showTooltip, hideTooltip, tabletsPath, getNodeR
62
61
  width: '200px',
63
62
  align: DataTable.LEFT,
64
63
  render: ({value}) => {
65
- return <Tooltip content={value}>{value}</Tooltip>;
64
+ return <Popover content={value}>{value}</Popover>;
66
65
  },
67
66
  },
68
67
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -40,7 +40,7 @@
40
40
  "reselect": "4.0.0",
41
41
  "sass": "1.32.8",
42
42
  "web-vitals": "1.1.2",
43
- "ydb-ui-components": "1.2.3"
43
+ "ydb-ui-components": "2.0.1"
44
44
  },
45
45
  "scripts": {
46
46
  "start": "react-app-rewired start",
@@ -93,7 +93,7 @@
93
93
  "@yandex-cloud/prettier-config": "^1.0.0",
94
94
  "@yandex-cloud/stylelint-config": "^1.1.0",
95
95
  "@yandex-cloud/tsconfig": "^1.0.0",
96
- "@yandex-cloud/uikit": "^1.7.0",
96
+ "@yandex-cloud/uikit": "^2.4.0",
97
97
  "copyfiles": "^2.4.1",
98
98
  "eslint-config-prettier": "^8.3.0",
99
99
  "husky": "^7.0.4",
@@ -107,6 +107,7 @@
107
107
  "typescript": "^4.5.5"
108
108
  },
109
109
  "peerDependencies": {
110
- "@yandex-cloud/browserslist-config": "^1.0.1"
110
+ "@yandex-cloud/browserslist-config": "^1.0.1",
111
+ "@yandex-cloud/uikit": "^2.4.0"
111
112
  }
112
113
  }