@auth0/quantum-charts 1.0.2 → 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.
package/common/custom-tooltip.js
CHANGED
|
@@ -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(
|
|
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
|
|
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';
|