ydb-embedded-ui 4.25.0 → 4.27.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +39 -0
  3. package/dist/components/BasicNodeViewer/BasicNodeViewer.scss +3 -11
  4. package/dist/components/CircularProgressBar/CircularProgressBar.scss +4 -4
  5. package/dist/components/DateRange/DateRange.scss +3 -3
  6. package/dist/components/DiagnosticCard/DiagnosticCard.scss +4 -4
  7. package/dist/components/Divider/Divider.scss +1 -1
  8. package/dist/components/EmptyState/EmptyState.scss +8 -9
  9. package/dist/components/EntityStatus/EntityStatus.scss +19 -29
  10. package/dist/components/ExternalLinkWithIcon/ExternalLinkWithIcon.tsx +2 -2
  11. package/dist/components/FullNodeViewer/FullNodeViewer.scss +1 -4
  12. package/dist/components/Fullscreen/Fullscreen.scss +2 -9
  13. package/dist/components/Icon/Icon.tsx +1 -5
  14. package/dist/components/InfoViewer/InfoViewer.scss +6 -6
  15. package/dist/components/LabelWithPopover/LabelWithPopover.tsx +3 -2
  16. package/dist/components/NodeHostWrapper/NodeHostWrapper.tsx +2 -2
  17. package/dist/components/PoolBar/PoolBar.scss +6 -6
  18. package/dist/components/PoolUsage/PoolUsage.scss +15 -17
  19. package/dist/components/ProgressViewer/ProgressViewer.scss +17 -16
  20. package/dist/components/QueryExecutionStatus/QueryExecutionStatus.scss +3 -3
  21. package/dist/components/SpeedMultiMeter/SpeedMultiMeter.scss +5 -5
  22. package/dist/components/SpeedMultiMeter/SpeedMultiMeter.tsx +12 -13
  23. package/dist/components/SplitPane/SplitPane.scss +5 -5
  24. package/dist/components/TableSkeleton/TableSkeleton.scss +1 -1
  25. package/dist/components/Tablet/Tablet.scss +10 -10
  26. package/dist/components/TabletsStatistic/TabletsStatistic.scss +13 -13
  27. package/dist/components/Tag/Tag.scss +3 -3
  28. package/dist/components/TruncatedQuery/TruncatedQuery.scss +1 -1
  29. package/dist/components/UsageLabel/UsageLabel.scss +2 -2
  30. package/dist/components/UsageLabel/UsageLabel.tsx +1 -1
  31. package/dist/components/VirtualTable/VirtualTable.scss +3 -3
  32. package/dist/containers/App/App.scss +20 -24
  33. package/dist/containers/App/Content.js +5 -4
  34. package/dist/containers/AsideNavigation/AsideNavigation.scss +1 -4
  35. package/dist/containers/AsideNavigation/AsideNavigation.tsx +12 -27
  36. package/dist/containers/Authentication/Authentication.scss +4 -4
  37. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +4 -6
  38. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.tsx +1 -1
  39. package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.scss +3 -3
  40. package/dist/containers/Cluster/VersionsBar/VersionsBar.tsx +1 -1
  41. package/dist/containers/Header/Header.scss +1 -1
  42. package/dist/containers/Heatmap/Heatmap.scss +3 -5
  43. package/dist/containers/Heatmap/Histogram/Histogram.scss +6 -6
  44. package/dist/containers/Node/NodeStructure/NodeStructure.scss +10 -13
  45. package/dist/containers/Node/NodeStructure/Pdisk.tsx +1 -1
  46. package/dist/containers/ReduxTooltip/ReduxTooltip.js +1 -1
  47. package/dist/containers/ReduxTooltip/ReduxTooltip.scss +1 -18
  48. package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.scss +23 -23
  49. package/dist/containers/Storage/PDisk/PDisk.scss +4 -4
  50. package/dist/containers/Storage/PDiskPopup/PDiskPopup.tsx +1 -1
  51. package/dist/containers/Storage/Storage.scss +1 -1
  52. package/dist/containers/Storage/StorageGroups/StorageGroups.scss +1 -1
  53. package/dist/containers/Storage/UsageFilter/UsageFilter.scss +7 -6
  54. package/dist/containers/Storage/VDiskPopup/VDiskPopup.scss +1 -1
  55. package/dist/containers/Storage/VDiskPopup/VDiskPopup.tsx +1 -1
  56. package/dist/containers/Tablet/Tablet.scss +5 -5
  57. package/dist/containers/TabletsFilters/TabletsFilters.scss +2 -3
  58. package/dist/containers/Tenant/Acl/Acl.scss +1 -15
  59. package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.scss +0 -4
  60. package/dist/containers/Tenant/Diagnostics/Consumers/TopicStats/ConsumersTopicStats.scss +5 -4
  61. package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss +0 -6
  62. package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +2 -2
  63. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.scss +2 -2
  64. package/dist/containers/Tenant/Diagnostics/Network/Network.scss +8 -10
  65. package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.scss +8 -8
  66. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.scss +1 -5
  67. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.tsx +1 -4
  68. package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.tsx +0 -1
  69. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +12 -12
  70. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.scss +1 -36
  71. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.scss +3 -3
  72. package/dist/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricCard/MetricCard.scss +7 -7
  73. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +2 -2
  74. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.scss +1 -1
  75. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +4 -8
  76. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.tsx +2 -1
  77. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +3 -6
  78. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +2 -5
  79. package/dist/containers/Tenant/Query/Issues/Issues.scss +11 -14
  80. package/dist/containers/Tenant/Query/Preview/Preview.scss +3 -7
  81. package/dist/containers/Tenant/Query/QueryDuration/QueryDuration.scss +1 -1
  82. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +4 -8
  83. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.scss +3 -9
  84. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +0 -9
  85. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.tsx +11 -13
  86. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.scss +5 -5
  87. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.tsx +3 -3
  88. package/dist/containers/Tenant/Tenant.scss +1 -2
  89. package/dist/containers/Tenant/utils/schemaControls.tsx +2 -2
  90. package/dist/containers/UserSettings/Setting.tsx +5 -1
  91. package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.scss +2 -3
  92. package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.scss +1 -1
  93. package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.tsx +1 -1
  94. package/dist/index.tsx +1 -0
  95. package/dist/services/api.ts +4 -3
  96. package/dist/services/settings.ts +113 -0
  97. package/dist/store/reducers/executeQuery.ts +6 -3
  98. package/dist/store/reducers/settings/settings.ts +7 -74
  99. package/dist/store/reducers/settings/types.ts +4 -3
  100. package/dist/styles/mixins.scss +37 -35
  101. package/dist/styles/themes/dark-hc.scss +296 -0
  102. package/dist/styles/themes/dark.scss +297 -0
  103. package/dist/styles/themes/light-hc.scss +289 -0
  104. package/dist/styles/themes/light.scss +291 -0
  105. package/dist/styles/themes.scss +73 -0
  106. package/dist/types/window.d.ts +2 -2
  107. package/dist/utils/hooks/useSetting.ts +6 -7
  108. package/dist/utils/i18n/i18n.ts +2 -2
  109. package/package.json +7 -6
  110. package/dist/containers/App/TipPopup/TipPopup.js +0 -66
  111. package/dist/containers/App/TipPopup/TipPopup.scss +0 -46
  112. package/dist/utils/settings.ts +0 -13
@@ -25,20 +25,18 @@
25
25
  }
26
26
 
27
27
  &__title .entity-status__name {
28
- font-size: var(--yc-text-header-1-font-size);
29
- font-weight: var(--yc-text-header-font-weight);
30
- line-height: var(--yc-text-header-1-line-height);
28
+ font-weight: var(--g-text-header-font-weight);
29
+ @include header-1-typography();
31
30
  }
32
31
 
33
32
  &__title-skeleton {
34
33
  width: 20%;
35
34
  min-width: 200px;
36
- height: var(--yc-text-header-1-line-height);
35
+ height: var(--g-text-header-1-line-height);
37
36
  }
38
37
 
39
38
  &__error {
40
- font-size: var(--yc-text-body-2-font-size);
41
- line-height: var(--yc-text-body-2-line-height);
39
+ @include body-2-typography();
42
40
  }
43
41
 
44
42
  &__info {
@@ -9,7 +9,7 @@ import {Tags} from '../../../components/Tags';
9
9
  import {Tablet} from '../../../components/Tablet';
10
10
  import {ResponseError} from '../../../components/Errors/ResponseError';
11
11
  import {ExternalLinkWithIcon} from '../../../components/ExternalLinkWithIcon/ExternalLinkWithIcon';
12
- import {IconWrapper as Icon} from '../../../components/Icon/Icon';
12
+ import {Icon} from '../../../components/Icon/Icon';
13
13
  import {ContentWithPopup} from '../../../components/ContentWithPopup/ContentWithPopup';
14
14
 
15
15
  import type {IResponseError} from '../../../types/api/error';
@@ -9,10 +9,10 @@
9
9
  display: flex;
10
10
  align-items: flex-start;
11
11
 
12
- min-height: var(--yc-text-body-2-font-size);
12
+ min-height: var(--g-text-body-2-font-size);
13
13
 
14
14
  .yc-skeleton {
15
- min-height: var(--yc-text-body-2-font-size);
15
+ min-height: var(--g-text-body-2-font-size);
16
16
  }
17
17
  }
18
18
 
@@ -31,7 +31,7 @@
31
31
  width: 100px;
32
32
  margin: 0 2px;
33
33
 
34
- border-bottom: 1px dotted var(--yc-color-text-secondary);
34
+ border-bottom: 1px dotted var(--g-color-text-secondary);
35
35
  }
36
36
  }
37
37
 
@@ -15,7 +15,7 @@ interface VersionsBarProps {
15
15
  export const VersionsBar = ({versionsValues = []}: VersionsBarProps) => {
16
16
  return (
17
17
  <div className={b()}>
18
- <Progress value={100} stack={versionsValues} view="thin" />
18
+ <Progress value={100} stack={versionsValues} size="s" />
19
19
  <div className={b('versions')}>
20
20
  {versionsValues.map((item, index) => (
21
21
  <div
@@ -8,7 +8,7 @@
8
8
 
9
9
  padding: 0 20px 0 12px;
10
10
 
11
- border-bottom: 1px solid var(--yc-color-line-generic);
11
+ border-bottom: 1px solid var(--g-color-line-generic);
12
12
 
13
13
  &__breadcrumb {
14
14
  display: flex;
@@ -20,9 +20,7 @@
20
20
  &__limits-title {
21
21
  margin-right: 5px;
22
22
 
23
- color: var(--yc-color-text-secondary);
24
- }
25
- &__limits-value {
23
+ color: var(--g-color-text-secondary);
26
24
  }
27
25
 
28
26
  &__row {
@@ -42,11 +40,11 @@
42
40
  &__label {
43
41
  margin-right: 16px;
44
42
 
45
- font-size: var(--yc-text-body-2-font-size);
46
43
  font-weight: 500;
47
- line-height: var(--yc-text-body-2-line-height);
48
44
  text-transform: uppercase;
49
45
 
46
+ @include body-2-typography();
47
+
50
48
  &_overall {
51
49
  margin-right: 15px;
52
50
  }
@@ -13,22 +13,22 @@
13
13
  margin-top: 30px;
14
14
  margin-left: 50px;
15
15
 
16
- border-bottom: 1px solid var(--yc-color-base-generic);
17
- border-left: 1px solid var(--yc-color-base-generic);
16
+ border-bottom: 1px solid var(--g-color-base-generic);
17
+ border-left: 1px solid var(--g-color-base-generic);
18
18
  }
19
19
  &__x-min {
20
20
  position: absolute;
21
21
  bottom: -25px;
22
22
  left: -3px;
23
23
 
24
- color: var(--yc-color-text-secondary);
24
+ color: var(--g-color-text-secondary);
25
25
  }
26
26
  &__x-max {
27
27
  position: absolute;
28
28
  right: 0;
29
29
  bottom: -25px;
30
30
 
31
- color: var(--yc-color-text-secondary);
31
+ color: var(--g-color-text-secondary);
32
32
  }
33
33
  &__y-min {
34
34
  position: absolute;
@@ -39,7 +39,7 @@
39
39
 
40
40
  text-align: right;
41
41
 
42
- color: var(--yc-color-text-secondary);
42
+ color: var(--g-color-text-secondary);
43
43
  }
44
44
  &__y-max {
45
45
  position: absolute;
@@ -50,7 +50,7 @@
50
50
 
51
51
  text-align: right;
52
52
 
53
- color: var(--yc-color-text-secondary);
53
+ color: var(--g-color-text-secondary);
54
54
  }
55
55
  &__item {
56
56
  width: 1.5%;
@@ -8,7 +8,7 @@
8
8
  flex-direction: column;
9
9
  flex-shrink: 0;
10
10
  @include flex-container();
11
- @include body2-typography();
11
+ @include body-2-typography();
12
12
 
13
13
  &__pdisk {
14
14
  display: flex;
@@ -18,7 +18,7 @@
18
18
  margin-bottom: 8px;
19
19
  padding: 0 10px 0 20px;
20
20
 
21
- border: 1px solid var(--yc-color-line-generic);
21
+ border: 1px solid var(--g-color-line-generic);
22
22
  border-radius: 5px;
23
23
  }
24
24
 
@@ -54,7 +54,7 @@
54
54
  &-label {
55
55
  font-weight: 400;
56
56
 
57
- color: var(--yc-color-text-secondary);
57
+ color: var(--g-color-text-secondary);
58
58
  }
59
59
  }
60
60
 
@@ -79,7 +79,7 @@
79
79
  &__link {
80
80
  text-decoration: none;
81
81
 
82
- color: var(--yc-color-base-special);
82
+ color: var(--g-color-base-brand);
83
83
  }
84
84
 
85
85
  &__vdisks-header {
@@ -94,6 +94,7 @@
94
94
  overflow: auto;
95
95
 
96
96
  min-width: 200px;
97
+ max-width: unset;
97
98
  max-height: 90vh;
98
99
 
99
100
  .vdisk-pdisk-node__column {
@@ -109,13 +110,13 @@
109
110
  align-items: center;
110
111
 
111
112
  &_selected {
112
- color: var(--yc-color-text-info);
113
+ color: var(--g-color-text-info);
113
114
  }
114
115
  }
115
116
 
116
117
  &__vdisk-details-button {
117
118
  &_selected {
118
- color: var(--yc-color-text-info);
119
+ color: var(--g-color-text-info);
119
120
  }
120
121
  }
121
122
 
@@ -127,10 +128,6 @@
127
128
 
128
129
  transform: translateY(-1px);
129
130
 
130
- .yc-button__text {
131
- margin: 0 4px;
132
- }
133
-
134
131
  &_hidden {
135
132
  visibility: hidden;
136
133
  }
@@ -160,15 +157,15 @@
160
157
  &__title {
161
158
  margin-right: 16px;
162
159
 
163
- font-size: var(--yc-text-body-2-font-size);
164
160
  font-weight: 500;
165
- line-height: var(--yc-text-body-2-line-height);
166
161
  text-transform: uppercase;
162
+
163
+ @include body-2-typography();
167
164
  }
168
165
  }
169
166
 
170
167
  @keyframes onSelectedVdiskAnimation {
171
168
  0% {
172
- background-color: var(--yc-color-base-info-hover);
169
+ background-color: var(--g-color-base-info-light-hover);
173
170
  }
174
171
  }
@@ -143,7 +143,7 @@ function getColumns({
143
143
  <Popover
144
144
  placement={['right']}
145
145
  content={<Vdisk {...row} />}
146
- contentClassName={b('vdisk-details')}
146
+ tooltipContentClassName={b('vdisk-details')}
147
147
  >
148
148
  <Button
149
149
  view="flat-secondary"
@@ -43,7 +43,7 @@ function ReduxTooltip(props) {
43
43
  <Popup
44
44
  open={visible}
45
45
  placement={['top', 'bottom', 'left', 'right']}
46
- className={popupClassName}
46
+ contentClassName={popupClassName}
47
47
  anchorRef={fakeAnchor}
48
48
  onOutsideClick={hideTooltip}
49
49
  >
@@ -6,8 +6,6 @@
6
6
  animation: none !important;
7
7
  }
8
8
 
9
- .pool-tooltip,
10
- .tablet-tooltip,
11
9
  .node-tootltip,
12
10
  .tabletsOverall-tooltip,
13
11
  .histogram-tooltip {
@@ -16,7 +14,7 @@
16
14
  &__label {
17
15
  padding-right: 15px;
18
16
 
19
- color: var(--yc-color-text-secondary);
17
+ color: var(--g-color-text-secondary);
20
18
  }
21
19
  }
22
20
 
@@ -54,18 +52,3 @@
54
52
 
55
53
  word-break: break-word;
56
54
  }
57
-
58
- .tablet-tooltip {
59
- padding: 10px;
60
- &__label {
61
- padding-right: 15px;
62
-
63
- color: var(--yc-color-text-secondary);
64
- }
65
-
66
- &__value {
67
- &_blue {
68
- color: var(--yc-color-base-special);
69
- }
70
- }
71
- }
@@ -10,14 +10,14 @@
10
10
  display: block;
11
11
 
12
12
  min-width: 50px;
13
- height: var(--yc-text-body-3-line-height);
13
+ height: var(--g-text-body-3-line-height);
14
14
 
15
15
  text-align: center;
16
16
 
17
- color: var(--yc-color-text-primary);
18
- border: $border-width solid var(--yc-color-infographics-misc-heavy);
17
+ color: var(--g-color-text-primary);
18
+ border: $border-width solid var(--g-color-base-misc-heavy);
19
19
  border-radius: $outer-border-radius;
20
- background-color: var(--yc-color-infographics-misc-light);
20
+ background-color: var(--g-color-base-misc-light);
21
21
 
22
22
  &_compact {
23
23
  min-width: 0;
@@ -31,16 +31,16 @@
31
31
  }
32
32
 
33
33
  #{$block}__filled {
34
- background-color: var(--yc-color-infographics-misc-medium);
34
+ background-color: var(--g-color-base-misc-medium);
35
35
  }
36
36
 
37
37
  &_green {
38
- border-color: var(--yc-color-infographics-positive-heavy);
39
- background-color: var(--yc-color-infographics-positive-light);
38
+ border-color: var(--g-color-base-positive-heavy);
39
+ background-color: var(--g-color-base-positive-light);
40
40
  #{$block}__filled {
41
- background-color: var(--yc-color-infographics-positive-medium);
41
+ background-color: var(--g-color-base-positive-medium);
42
42
 
43
- .yc-root_theme_dark & {
43
+ .g-root_theme_dark & {
44
44
  // the common medium green is too bright for this case
45
45
  background-color: rgb(124, 227, 121, 0.4);
46
46
  }
@@ -48,33 +48,33 @@
48
48
  }
49
49
 
50
50
  &_blue {
51
- border-color: var(--yc-color-infographics-info-heavy);
52
- background-color: var(--yc-color-infographics-info-light);
51
+ border-color: var(--g-color-base-info-heavy);
52
+ background-color: var(--g-color-base-info-light);
53
53
  #{$block}__filled {
54
- background-color: var(--yc-color-infographics-info-medium);
54
+ background-color: var(--g-color-base-info-medium);
55
55
  }
56
56
  }
57
57
 
58
58
  &_yellow {
59
- border-color: var(--yc-color-infographics-warning-heavy);
60
- background-color: var(--yc-color-infographics-yellow-light);
59
+ border-color: var(--g-color-base-warning-heavy);
60
+ background-color: var(--g-color-base-yellow-light);
61
61
  #{$block}__filled {
62
- background-color: var(--yc-color-infographics-yellow-medium);
62
+ background-color: var(--g-color-base-yellow-medium);
63
63
  }
64
64
  }
65
65
 
66
66
  &_orange {
67
- border-color: var(--yc-color-base-warning-orange);
68
- background-color: var(--yc-color-infographics-warning-light);
67
+ border-color: var(--ydb-color-status-orange);
68
+ background-color: var(--g-color-base-warning-light);
69
69
  #{$block}__filled {
70
- background-color: var(--yc-color-infographics-warning-medium);
70
+ background-color: var(--g-color-base-warning-medium);
71
71
  }
72
72
  }
73
73
  &_red {
74
- border-color: var(--yc-color-infographics-danger-heavy);
75
- background-color: var(--yc-color-infographics-danger-light);
74
+ border-color: var(--g-color-base-danger-heavy);
75
+ background-color: var(--g-color-base-danger-light);
76
76
  #{$block}__filled {
77
- background-color: var(--yc-color-infographics-danger-medium);
77
+ background-color: var(--g-color-base-danger-medium);
78
78
  }
79
79
  }
80
80
 
@@ -98,9 +98,9 @@
98
98
  position: relative;
99
99
  z-index: 2;
100
100
 
101
- font-size: var(--yc-text-body-1-font-size);
101
+ font-size: var(--g-text-body-1-font-size);
102
102
  // bar height minus borders
103
- line-height: calc(var(--yc-text-body-3-line-height) - #{$border-width * 2});
103
+ line-height: calc(var(--g-text-body-3-line-height) - #{$border-width * 2});
104
104
 
105
105
  color: inherit;
106
106
  }
@@ -25,7 +25,7 @@
25
25
  flex-shrink: 0;
26
26
 
27
27
  .stack__layer {
28
- background: var(--yc-color-base-background);
28
+ background: var(--g-color-base-background);
29
29
 
30
30
  .data-table__row:hover & {
31
31
  background: var(--ydb-data-table-color-hover);
@@ -45,9 +45,9 @@
45
45
  top: 0;
46
46
  right: 4px;
47
47
 
48
- font-size: var(--yc-text-body-1-font-size);
49
- line-height: var(--yc-text-body-3-line-height);
48
+ font-size: var(--g-text-body-1-font-size);
49
+ line-height: var(--g-text-body-3-line-height);
50
50
 
51
- color: var(--yc-color-text-secondary);
51
+ color: var(--g-color-text-secondary);
52
52
  }
53
53
  }
@@ -66,7 +66,7 @@ export const PDiskPopup = ({data, nodes, ...props}: PDiskPopupProps) => {
66
66
 
67
67
  return (
68
68
  <Popup
69
- className={b()}
69
+ contentClassName={b()}
70
70
  placement={['top', 'bottom']}
71
71
  // bigger offset for easier switching to neighbour nodes
72
72
  // matches the default offset for popup with arrow out of a sense of beauty
@@ -8,7 +8,7 @@
8
8
  &__table {
9
9
  .yc-tooltip {
10
10
  // stylelint-disable-next-line declaration-no-important
11
- height: var(--yc-text-body-2-line-height) !important;
11
+ height: var(--g-text-body-2-line-height) !important;
12
12
  }
13
13
 
14
14
  table {
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  .stack__layer {
23
- background: var(--yc-color-base-background);
23
+ background: var(--g-color-base-background);
24
24
 
25
25
  .data-table__row:hover & {
26
26
  background: var(--ydb-data-table-color-hover);
@@ -1,3 +1,5 @@
1
+ @import '../../../styles/mixins.scss';
2
+
1
3
  .usage-filter {
2
4
  min-width: 100px;
3
5
 
@@ -5,10 +7,9 @@
5
7
  flex-grow: 1;
6
8
 
7
9
  &-title {
8
- height: var(--yc-text-body-1-line-height);
10
+ height: var(--g-text-body-1-line-height);
9
11
 
10
- font-size: var(--yc-text-body-1-font-size);
11
- line-height: var(--yc-text-body-1-line-height);
12
+ @include body-1-typography();
12
13
  }
13
14
 
14
15
  &-meta {
@@ -17,8 +18,8 @@
17
18
 
18
19
  padding: 0 5px;
19
20
 
20
- font-size: var(--yc-text-caption-2-font-size);
21
- line-height: var(--yc-text-caption-2-line-height);
21
+ font-size: var(--g-text-caption-2-font-size);
22
+ line-height: var(--g-text-caption-2-line-height);
22
23
 
23
24
  border-radius: 3px;
24
25
  }
@@ -31,7 +32,7 @@
31
32
  left: 0;
32
33
 
33
34
  border-radius: 3px;
34
- background-color: var(--yc-color-infographics-info-medium);
35
+ background-color: var(--g-color-base-info-medium);
35
36
  }
36
37
  }
37
38
  }
@@ -5,7 +5,7 @@
5
5
  margin-top: 8px;
6
6
  padding-top: 8px;
7
7
 
8
- border-top: 1px solid var(--yc-color-line-generic);
8
+ border-top: 1px solid var(--g-color-line-generic);
9
9
  }
10
10
 
11
11
  &__donor-label {
@@ -147,7 +147,7 @@ export const VDiskPopup = ({data, nodes, ...props}: VDiskPopupProps) => {
147
147
 
148
148
  return (
149
149
  <Popup
150
- className={b()}
150
+ contentClassName={b()}
151
151
  placement={['top', 'bottom']}
152
152
  // bigger offset for easier switching to neighbour nodes
153
153
  // matches the default offset for popup with arrow out of a sense of beauty
@@ -20,7 +20,7 @@
20
20
  }
21
21
  &__history-title {
22
22
  margin-bottom: 15px;
23
- @include body2-typography();
23
+ @include body-2-typography();
24
24
  }
25
25
 
26
26
  &__placeholder {
@@ -46,10 +46,10 @@
46
46
  &__title {
47
47
  margin-right: 16px;
48
48
 
49
- font-size: var(--yc-text-body-2-font-size);
50
49
  font-weight: 500;
51
- line-height: var(--yc-text-body-2-line-height);
52
50
  text-transform: uppercase;
51
+
52
+ @include body-2-typography();
53
53
  }
54
54
 
55
55
  &__loader {
@@ -88,10 +88,10 @@
88
88
  &__top-label {
89
89
  margin-right: 16px;
90
90
 
91
- font-size: var(--yc-text-body-2-font-size);
92
91
  font-weight: 500;
93
- line-height: var(--yc-text-body-2-line-height);
94
92
  text-transform: uppercase;
93
+
94
+ @include body-2-typography();
95
95
  }
96
96
 
97
97
  &__host {
@@ -8,8 +8,7 @@
8
8
  &__node {
9
9
  overflow: hidden;
10
10
 
11
- font-size: var(--yc-text-body-1-font-size);
12
- line-height: var(--yc-text-body-1-line-height);
11
+ @include body-1-typography();
13
12
  }
14
13
 
15
14
  &__node-meta {
@@ -18,7 +17,7 @@
18
17
  white-space: nowrap;
19
18
  text-overflow: ellipsis;
20
19
 
21
- color: var(--yc-color-text-secondary);
20
+ color: var(--g-color-text-secondary);
22
21
  }
23
22
 
24
23
  &__items {
@@ -23,20 +23,6 @@
23
23
 
24
24
  padding-bottom: 16px;
25
25
 
26
- background-color: var(--yc-color-base-background);
27
- .yc-staff-card {
28
- display: inline-block;
29
- }
30
- }
31
-
32
- &__text {
33
- font-size: var(--yc-text-body-1-font-size);
34
- line-height: var(--yc-text-body-1-line-height);
35
-
36
- color: var(--yc-color-text-primary);
37
-
38
- &::first-letter {
39
- color: var(--yc-color-text-danger);
40
- }
26
+ background-color: var(--g-color-base-background);
41
27
  }
42
28
  }
@@ -16,10 +16,6 @@
16
16
  @include search();
17
17
  }
18
18
 
19
- &__table-settings .yc-icon {
20
- width: 20px;
21
- }
22
-
23
19
  &__table-wrapper {
24
20
  overflow: auto;
25
21
  @include flex-container();
@@ -1,6 +1,7 @@
1
+ @import '../../../../../styles/mixins.scss';
2
+
1
3
  .ydb-diagnostics-consumers-topic-stats {
2
- font-size: var(--yc-text-body-2-font-size);
3
- line-height: var(--yc-text-body-2-line-height);
4
+ @include body-2-typography();
4
5
 
5
6
  &__wrapper {
6
7
  display: flex;
@@ -8,7 +9,7 @@
8
9
 
9
10
  padding-left: 16px;
10
11
 
11
- border-left: 1px solid var(--yc-color-line-generic);
12
+ border-left: 1px solid var(--g-color-line-generic);
12
13
  }
13
14
 
14
15
  &__item {
@@ -20,7 +21,7 @@
20
21
  &__label {
21
22
  margin-bottom: 4px;
22
23
 
23
- color: var(--yc-color-text-secondary);
24
+ color: var(--g-color-text-secondary);
24
25
  }
25
26
  &__value {
26
27
  display: flex;
@@ -23,11 +23,5 @@
23
23
  position: absolute;
24
24
  top: 23px;
25
25
  right: 13px;
26
-
27
- & .yc-button__text {
28
- display: flex;
29
-
30
- margin: 0 4px;
31
- }
32
26
  }
33
27
  }
@@ -8,7 +8,7 @@
8
8
  &__header-wrapper {
9
9
  padding: 13px 20px 16px;
10
10
 
11
- background-color: var(--yc-color-base-background);
11
+ background-color: var(--g-color-base-background);
12
12
  }
13
13
 
14
14
  &__tabs {
@@ -16,7 +16,7 @@
16
16
  justify-content: space-between;
17
17
  align-items: center;
18
18
 
19
- box-shadow: inset 0 -1px 0 0 var(--yc-color-line-generic);
19
+ box-shadow: inset 0 -1px 0 0 var(--g-color-line-generic);
20
20
  & .yc-tabs_direction_horizontal {
21
21
  box-shadow: unset;
22
22
  }
@@ -9,7 +9,7 @@
9
9
 
10
10
  max-height: 100%;
11
11
 
12
- background-color: var(--yc-color-base-background);
12
+ background-color: var(--g-color-base-background);
13
13
 
14
14
  &__table-content {
15
15
  overflow: auto;
@@ -28,7 +28,7 @@
28
28
  width: 100%;
29
29
  padding: 10px 0;
30
30
 
31
- background-color: var(--yc-color-base-background);
31
+ background-color: var(--g-color-base-background);
32
32
  }
33
33
  &__loader {
34
34
  display: flex;