@gravity-ui/chartkit 7.0.2 → 7.2.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.
@@ -26,6 +26,7 @@
26
26
  --highcharts-tooltip-text: var(--g-color-text-primary);
27
27
  --highcharts-tooltip-bg: var(--highcharts-floating-bg);
28
28
  --highcharts-tooltip-alternate-bg: var(--g-color-base-generic);
29
+ --highcharts-tooltip-selected-bg: var(--g-color-base-info-medium);
29
30
  --highcharts-tooltip-text-complementary: var(--g-color-text-secondary);
30
31
  --highcharts-holiday-band: var(--g-color-base-generic);
31
32
  }
@@ -26,7 +26,9 @@ export class ErrorBoundary extends React.Component {
26
26
  componentDidUpdate(prevProps) {
27
27
  if (prevProps.data !== this.props.data) {
28
28
  const { error } = this.state;
29
- if (error && 'code' in error && error.code === CHARTKIT_ERROR_CODE.NO_DATA) {
29
+ if (error &&
30
+ 'code' in error &&
31
+ [CHARTKIT_ERROR_CODE.NO_DATA, CHARTKIT_ERROR_CODE.INVALID_DATA].includes(String(error.code))) {
30
32
  this.resetError();
31
33
  }
32
34
  }
@@ -170,6 +170,10 @@
170
170
  background-color: var(--highcharts-tooltip-alternate-bg);
171
171
  }
172
172
 
173
+ ._tooltip-rows__table tbody._tooltip-list ._tooltip-selected-row {
174
+ background-color: var(--highcharts-tooltip-selected-bg);
175
+ }
176
+
173
177
  ._tooltip-rows__table tbody ._hidden-rows-sum._hidden-rows-sum-dark-bg {
174
178
  background-color: var(--highcharts-tooltip-alternate-bg);
175
179
  }
@@ -153,6 +153,10 @@
153
153
  border-bottom: 1px solid var(--g-color-line-generic);
154
154
  }
155
155
 
156
+ ._tooltip-rows__table thead._tooltip-header ._tooltip-selected-row {
157
+ background-color: var(--g-color-base-info-medium);
158
+ }
159
+
156
160
  ._tooltip-rows__table tbody {
157
161
  display: block;
158
162
  overflow: hidden auto;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/chartkit",
3
- "version": "7.0.2",
3
+ "version": "7.2.0",
4
4
  "description": "React component used to render charts based on any sources you need",
5
5
  "license": "MIT",
6
6
  "repository": "git@github.com:gravity-ui/ChartKit.git",
@@ -47,7 +47,7 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@bem-react/classname": "^1.6.0",
50
- "@gravity-ui/charts": "^1.0.1",
50
+ "@gravity-ui/charts": "^1.2.0",
51
51
  "@gravity-ui/date-utils": "^2.1.0",
52
52
  "@gravity-ui/i18n": "^1.0.0",
53
53
  "@gravity-ui/yagr": "^4.8.5",