@careevolution/mydatahelps-ui 2.2.1-VB3.6 → 2.2.1-VB3.8

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.
@@ -3,7 +3,7 @@ import { DailyDataProvider } from '../../../helpers/query-daily-data';
3
3
  import "./DailyDataChart.css";
4
4
  import { WeekStartsOn } from '../../../helpers/get-interval-start';
5
5
  export interface DailyDataChartProps {
6
- title: string;
6
+ title?: string;
7
7
  intervalType?: "Week" | "Month";
8
8
  weekStartsOn?: WeekStartsOn;
9
9
  dailyDataType: string;
@@ -11,6 +11,7 @@ export interface DailyDataChartProps {
11
11
  valueFormatter?(value: number): string;
12
12
  chartType: "Line" | "Bar" | "Area";
13
13
  options?: LineChartOptions | BarChartOptions | AreaChartOptions;
14
+ hideIfNoData?: boolean;
14
15
  previewDataProvider?: DailyDataProvider;
15
16
  }
16
17
  export interface LineChartOptions {
@@ -24,4 +25,4 @@ export interface AreaChartOptions {
24
25
  lineColor?: string;
25
26
  areaColor?: string;
26
27
  }
27
- export default function DailyDataChart(props: DailyDataChartProps): React.JSX.Element;
28
+ export default function DailyDataChart(props: DailyDataChartProps): false | React.JSX.Element;
@@ -41,7 +41,10 @@ export declare const stepsBarChart: {
41
41
  export declare const stepsAreaChart: {
42
42
  args: {
43
43
  title: string;
44
- options: {};
44
+ options: {
45
+ areaColor: string;
46
+ lineColor: string;
47
+ };
45
48
  intervalType: string;
46
49
  weekStartsOn: string;
47
50
  dailyDataType: DailyDataType;
@@ -1 +1 @@
1
- export { default } from "./DailyDataChart";
1
+ export { default, LineChartOptions, BarChartOptions, AreaChartOptions } from "./DailyDataChart";
@@ -2,7 +2,7 @@ export { default as AppDownload } from "./AppDownload";
2
2
  export { default as ConnectEhr } from "./ConnectEhr";
3
3
  export { default as ConnectFitbit } from "./ConnectFitbit";
4
4
  export { default as ConnectGarmin } from "./ConnectGarmin";
5
- export { default as DailyDataChart } from "./DailyDataChart";
5
+ export { default as DailyDataChart, LineChartOptions, BarChartOptions, AreaChartOptions } from "./DailyDataChart";
6
6
  export { default as DeviceDataMonthChart, DeviceDataChartLine } from "./DeviceDataMonthChart";
7
7
  export { default as DeviceDataMonthCharts } from "./DeviceDataMonthCharts";
8
8
  export { default as ExternalAccountList } from "./ExternalAccountList";
@@ -2,3 +2,5 @@ export * from './components';
2
2
  export * from './hooks';
3
3
  export * from './helpers/query-daily-data';
4
4
  export * from './helpers/language';
5
+ export { default as getDayKey } from './helpers/get-day-key';
6
+ export * from './helpers/get-interval-start';