@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.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/container/DailyDataChart/DailyDataChart.d.ts +3 -2
- package/dist/cjs/types/components/container/DailyDataChart/DailyDataChart.stories.d.ts +4 -1
- package/dist/cjs/types/components/container/DailyDataChart/index.d.ts +1 -1
- package/dist/cjs/types/components/container/index.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/container/DailyDataChart/DailyDataChart.d.ts +3 -2
- package/dist/esm/types/components/container/DailyDataChart/DailyDataChart.stories.d.ts +4 -1
- package/dist/esm/types/components/container/DailyDataChart/index.d.ts +1 -1
- package/dist/esm/types/components/container/index.d.ts +1 -1
- package/dist/esm/types/index.d.ts +2 -0
- package/dist/index.d.ts +8 -3
- package/package.json +1 -1
|
@@ -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
|
|
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";
|
package/dist/index.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ interface CardTitleProps {
|
|
|
69
69
|
declare function export_default$12(props: CardTitleProps): React.JSX.Element;
|
|
70
70
|
|
|
71
71
|
declare type WeekStartsOn = "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "6DaysAgo" | "7DaysAgo";
|
|
72
|
+
declare function getWeekStart(weekStartsOn?: WeekStartsOn): Date;
|
|
73
|
+
declare function getMonthStart(): Date;
|
|
72
74
|
|
|
73
75
|
interface DateRangeCoordinatorProps {
|
|
74
76
|
intervalType: "Week" | "Month";
|
|
@@ -361,7 +363,7 @@ declare enum DailyDataType {
|
|
|
361
363
|
}
|
|
362
364
|
|
|
363
365
|
interface DailyDataChartProps {
|
|
364
|
-
title
|
|
366
|
+
title?: string;
|
|
365
367
|
intervalType?: "Week" | "Month";
|
|
366
368
|
weekStartsOn?: WeekStartsOn;
|
|
367
369
|
dailyDataType: string;
|
|
@@ -369,6 +371,7 @@ interface DailyDataChartProps {
|
|
|
369
371
|
valueFormatter?(value: number): string;
|
|
370
372
|
chartType: "Line" | "Bar" | "Area";
|
|
371
373
|
options?: LineChartOptions | BarChartOptions | AreaChartOptions;
|
|
374
|
+
hideIfNoData?: boolean;
|
|
372
375
|
previewDataProvider?: DailyDataProvider;
|
|
373
376
|
}
|
|
374
377
|
interface LineChartOptions {
|
|
@@ -382,7 +385,7 @@ interface AreaChartOptions {
|
|
|
382
385
|
lineColor?: string;
|
|
383
386
|
areaColor?: string;
|
|
384
387
|
}
|
|
385
|
-
declare function DailyDataChart(props: DailyDataChartProps): React.JSX.Element;
|
|
388
|
+
declare function DailyDataChart(props: DailyDataChartProps): false | React.JSX.Element;
|
|
386
389
|
|
|
387
390
|
interface DeviceDataMonthChartProps {
|
|
388
391
|
lines: DeviceDataChartLine[];
|
|
@@ -733,4 +736,6 @@ declare function export_default(callback: Function, delay: number | null): void;
|
|
|
733
736
|
|
|
734
737
|
declare function language(key: string): string;
|
|
735
738
|
|
|
736
|
-
|
|
739
|
+
declare function getDayKey(date: Date): string;
|
|
740
|
+
|
|
741
|
+
export { export_default$17 as Action, export_default$16 as ActivityMeter, export_default$K as AppDownload, AreaChartOptions, BarChartOptions, export_default$m as BlankView, export_default$15 as Button, export_default$14 as Calendar, export_default$13 as Card, export_default$12 as CardTitle, export_default$2 as CelebrationStep, export_default$1 as CelebrationStepContainer, export_default$J as ConnectEhr, export_default$l as ConnectEhrView, export_default$I as ConnectFitbit, export_default$H as ConnectGarmin, DailyDataAvailabilityCheck, DailyDataChart, DailyDataProvider, DailyDataQueryResult, DailyDataType, DateRangeNavigatorContext as DateRangeCoordinator, export_default$11 as DateRangeNavigator, export_default$10 as DayTrackerSymbol, DeviceDataChartLine, export_default$G as DeviceDataMonthChart, export_default$F as DeviceDataMonthCharts, export_default$k as DeviceDataView, export_default$E as ExternalAccountList, export_default$D as ExternalAccountsLoadingIndicator, export_default$C as ExternalAccountsPreview, export_default$j as ExternalAccountsView, export_default$$ as Face, export_default$B as FitbitDevices, export_default$A as FitbitMonthCharts, export_default$i as FitbitView, export_default$z as GarminDevices, export_default$y as GarminMonthCharts, export_default$h as GarminView, export_default$f as HealthAndWellnessView, export_default$x as HealthPreviewSection, export_default$_ as Histogram, export_default$g as HomeView, export_default$w as LabResultsSummary, export_default$Z as Layout, LayoutContext, LineChartOptions, LoadingIndicator, export_default$v as MostRecentNotification, export_default$Y as NavigationBar, export_default$u as NotificationList, export_default$e as NotificationsView, export_default$t as PlatformSpecificContent, export_default$s as ProjectHeader, export_default$r as ProjectSupport, export_default$q as ProviderSearch, export_default$p as RelativeActivityToday, export_default$o as RestingHeartRateCalendar, export_default$X as Section, export_default$W as SegmentedControl, export_default$V as ShinyOverlay, export_default$U as SingleExternalAccount, export_default$T as SingleNotification, export_default$S as SingleSurveyTask, export_default$R as SparkBarChart, SparkBarChartBar, StatusBarBackgroundProps as StatusBarBackground, export_default$8 as StepDetailText, export_default$6 as StepImage, export_default$5 as StepImageIcon, export_default$b as StepLayout, export_default$c as StepMarkdown, export_default$7 as StepNextButton, export_default$9 as StepText, export_default$a as StepTitle, export_default$n as SurveyTaskList, export_default$d as SurveyTasksView, export_default$Q as Switch, export_default$P as TextBlock, export_default$O as TrackerItem, export_default$N as UnstyledButton, export_default$M as ViewHeader, export_default$L as WeekCalendar, WeekStartsOn, export_default$4 as YouTubeStep, export_default$3 as YouTubeStepContainer, checkDailyDataAvailability, getDayKey, getMonthStart, getWeekStart, language, queryDailyData, registerDailyDataProvider, export_default as useInterval };
|