@auth0/quantum-charts 1.3.1 → 1.3.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/chart.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import { TooltipProps } from 'recharts';
3
3
  import { IChartCardProps } from '../chart-card';
4
4
  import { DropdownMenuListItemValue } from '@auth0/quantum-product';
5
- export type ScaleType = 'date' | 'datetime' | 'label' | 'number' | 'monthyear';
5
+ export type ScaleType = 'date' | 'datetime' | 'label' | 'number' | 'monthyear' | 'datetime24hr';
6
6
  export interface ICustomTooltipProps extends TooltipProps<number, string> {
7
7
  scaleType?: 'datetime' | 'date' | 'label' | 'monthyear';
8
8
  showTotalValue?: boolean;
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:
@@ -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:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auth0/quantum-charts",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "sideEffects": false,
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",