@auth0/quantum-charts 1.0.1 → 1.0.3

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.
@@ -27,7 +27,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  var React = __importStar(require("react"));
30
- var icon_1 = require("@auth0/quantum-product/src/icon");
31
30
  var quantum_product_1 = require("@auth0/quantum-product");
32
31
  var custom_color_status_dot_1 = __importDefault(require("./custom-color-status-dot"));
33
32
  var date_fns_1 = require("date-fns");
@@ -54,7 +53,7 @@ var CustomTooltip = function (props) {
54
53
  React.createElement(quantum_product_1.Text, { color: "text.secondary", alignItems: 'end' }, x.payload[x.dataKey || '']),
55
54
  x.payload['evaluated_metric'] === x.dataKey &&
56
55
  x.payload['breachedPoint'] !== 'none' &&
57
- (x.payload['breachedPoint'] === 'alert' ? (React.createElement(icon_1.AlertDiamondFilledIcon, { color: theme.tokens.color_fg_state_danger })) : (React.createElement(icon_1.AlertTriangleFilledIcon, { color: theme.tokens.color_fg_state_caution })))));
56
+ (x.payload['breachedPoint'] === 'alert' ? (React.createElement(quantum_product_1.AlertDiamondFilledIcon, { color: theme.tokens.color_fg_state_danger })) : (React.createElement(quantum_product_1.AlertTriangleFilledIcon, { color: theme.tokens.color_fg_state_caution })))));
58
57
  })))));
59
58
  }
60
59
  return null;
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
- import { AlertTriangleFilledIcon, AlertDiamondFilledIcon } from '@auth0/quantum-product/src/icon';
3
- import { Box, RowLayout, StackLayout, Text, useTheme } from '@auth0/quantum-product';
2
+ import { Box, RowLayout, StackLayout, Text, useTheme, AlertTriangleFilledIcon, AlertDiamondFilledIcon, } from '@auth0/quantum-product';
4
3
  import StatusDot from './custom-color-status-dot';
5
4
  import { format } from 'date-fns';
6
5
  import { CustomTooltip as CustomTooltipStyled } from '../styles';
@@ -111,6 +111,7 @@ export function LineChart(props) {
111
111
  if (thresholds) {
112
112
  menuItems = thresholds.map(function (threshold) { return ({
113
113
  title: threshold.threshold_label,
114
+ description: threshold.evaluated_metric,
114
115
  onClick: function (event) {
115
116
  setThreshold(threshold);
116
117
  if (menuProps.onClose) {
@@ -140,6 +140,7 @@ function LineChart(props) {
140
140
  if (thresholds) {
141
141
  menuItems = thresholds.map(function (threshold) { return ({
142
142
  title: threshold.threshold_label,
143
+ description: threshold.evaluated_metric,
143
144
  onClick: function (event) {
144
145
  setThreshold(threshold);
145
146
  if (menuProps.onClose) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auth0/quantum-charts",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "sideEffects": false,
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "registry": "https://registry.npmjs.org/"
17
17
  },
18
18
  "dependencies": {
19
- "@auth0/quantum-product": "^2.1.0",
19
+ "@auth0/quantum-product": "^2.1.5",
20
20
  "@formatjs/intl": "^2.5.1",
21
21
  "date-fns": "^2.29.3",
22
22
  "recharts": "^2.0.7"