@auth0/quantum-charts 1.3.0 → 1.3.2
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/chart.js +2 -0
- package/common/custom-tooltip.d.ts +1 -1
- package/common/custom-tooltip.js +3 -1
- package/esm/common/chart.js +2 -0
- package/esm/common/custom-tooltip.js +1 -1
- package/esm/index.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +1 -1
package/common/chart.js
CHANGED
|
@@ -25,6 +25,8 @@ var tickFormatter = function (value, scaleType) {
|
|
|
25
25
|
return (0, date_fns_1.format)(new Date(value), 'LLL d');
|
|
26
26
|
case 'datetime':
|
|
27
27
|
return (0, date_fns_1.format)(new Date(value), 'LLL d p');
|
|
28
|
+
case 'datetime24hr':
|
|
29
|
+
return (0, date_fns_1.format)(new Date(value), 'LLL d HH:mm');
|
|
28
30
|
case 'monthyear':
|
|
29
31
|
return (0, date_fns_1.format)(new Date(value), 'LLL yyyy');
|
|
30
32
|
default:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ICustomTooltipProps } from './chart';
|
|
3
|
-
declare const CustomTooltip: (props: ICustomTooltipProps) => React.JSX.Element | null;
|
|
3
|
+
export declare const CustomTooltip: (props: ICustomTooltipProps) => React.JSX.Element | null;
|
|
4
4
|
export default CustomTooltip;
|
package/common/custom-tooltip.js
CHANGED
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CustomTooltip = void 0;
|
|
29
30
|
var React = __importStar(require("react"));
|
|
30
31
|
var quantum_product_1 = require("@auth0/quantum-product");
|
|
31
32
|
var custom_color_status_dot_1 = __importDefault(require("./custom-color-status-dot"));
|
|
@@ -76,4 +77,5 @@ var CustomTooltip = function (props) {
|
|
|
76
77
|
}
|
|
77
78
|
return null;
|
|
78
79
|
};
|
|
79
|
-
exports.
|
|
80
|
+
exports.CustomTooltip = CustomTooltip;
|
|
81
|
+
exports.default = exports.CustomTooltip;
|
package/esm/common/chart.js
CHANGED
|
@@ -22,6 +22,8 @@ export var tickFormatter = function (value, scaleType) {
|
|
|
22
22
|
return format(new Date(value), 'LLL d');
|
|
23
23
|
case 'datetime':
|
|
24
24
|
return format(new Date(value), 'LLL d p');
|
|
25
|
+
case 'datetime24hr':
|
|
26
|
+
return format(new Date(value), 'LLL d HH:mm');
|
|
25
27
|
case 'monthyear':
|
|
26
28
|
return format(new Date(value), 'LLL yyyy');
|
|
27
29
|
default:
|
|
@@ -3,7 +3,7 @@ import { Box, RowLayout, StackLayout, Text, useTheme, AlertTriangleFilledIcon, A
|
|
|
3
3
|
import StatusDot from './custom-color-status-dot';
|
|
4
4
|
import { format } from 'date-fns';
|
|
5
5
|
import { CustomTooltip as CustomTooltipStyled } from '../styles';
|
|
6
|
-
var CustomTooltip = function (props) {
|
|
6
|
+
export var CustomTooltip = function (props) {
|
|
7
7
|
var _a, _b, _c, _d;
|
|
8
8
|
var active = props.active, payload = props.payload, scaleType = props.scaleType, labelProp = props.label, tooltipProp = props.tooltipProp, showTotalValue = props.showTotalValue;
|
|
9
9
|
var theme = useTheme();
|
package/esm/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from './chart-card';
|
|
|
3
3
|
export * from './chart-summary';
|
|
4
4
|
export * from './common/chart';
|
|
5
5
|
export * from './common/custom-legend';
|
|
6
|
+
export * from './common/custom-tooltip';
|
|
6
7
|
export * from './compare-aggregate';
|
|
7
8
|
export * from './donut-chart';
|
|
8
9
|
export * from './helpers/format-number';
|
package/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './chart-card';
|
|
|
3
3
|
export * from './chart-summary';
|
|
4
4
|
export * from './common/chart';
|
|
5
5
|
export * from './common/custom-legend';
|
|
6
|
+
export * from './common/custom-tooltip';
|
|
6
7
|
export * from './compare-aggregate';
|
|
7
8
|
export * from './donut-chart';
|
|
8
9
|
export * from './helpers/format-number';
|
package/index.js
CHANGED
|
@@ -19,6 +19,7 @@ __exportStar(require("./chart-card"), exports);
|
|
|
19
19
|
__exportStar(require("./chart-summary"), exports);
|
|
20
20
|
__exportStar(require("./common/chart"), exports);
|
|
21
21
|
__exportStar(require("./common/custom-legend"), exports);
|
|
22
|
+
__exportStar(require("./common/custom-tooltip"), exports);
|
|
22
23
|
__exportStar(require("./compare-aggregate"), exports);
|
|
23
24
|
__exportStar(require("./donut-chart"), exports);
|
|
24
25
|
__exportStar(require("./helpers/format-number"), exports);
|