@careevolution/mydatahelps-ui 2.3.0 → 2.4.0
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 +9 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/container/DailyDataChart/DailyDataChart.d.ts +28 -0
- package/dist/cjs/types/components/container/DailyDataChart/DailyDataChart.stories.d.ts +80 -0
- package/dist/cjs/types/components/container/DailyDataChart/index.d.ts +1 -0
- package/dist/cjs/types/components/container/SurveyTaskList/SurveyTaskList.d.ts +2 -1
- package/dist/cjs/types/components/container/index.d.ts +3 -1
- package/dist/cjs/types/components/presentational/Button/Button.d.ts +1 -1
- package/dist/cjs/types/components/presentational/Card/Card.d.ts +1 -0
- package/dist/cjs/types/components/presentational/DateRangeCoordinator/DateRangeCoordinator.d.ts +14 -0
- package/dist/cjs/types/components/presentational/DateRangeCoordinator/DateRangeCoordinator.stories.d.ts +36 -0
- package/dist/cjs/types/components/presentational/DateRangeCoordinator/index.d.ts +1 -0
- package/dist/cjs/types/components/presentational/Layout/Layout.d.ts +2 -2
- package/dist/cjs/types/components/presentational/NavigationBar/NavigationBar.d.ts +1 -0
- package/dist/cjs/types/components/presentational/Section/Section.d.ts +1 -0
- package/dist/cjs/types/components/presentational/SingleSurveyTask/SingleSurveyTask.d.ts +0 -1
- package/dist/cjs/types/components/presentational/ViewHeader/ViewHeader.d.ts +7 -0
- package/dist/cjs/types/components/presentational/ViewHeader/ViewHeader.stories.d.ts +32 -0
- package/dist/cjs/types/components/presentational/ViewHeader/index.d.ts +1 -0
- package/dist/cjs/types/components/presentational/index.d.ts +2 -0
- package/dist/cjs/types/components/view/BlankView/BlankView.d.ts +11 -0
- package/dist/cjs/types/components/view/BlankView/BlankView.stories.d.ts +46 -0
- package/dist/cjs/types/components/view/BlankView/index.d.ts +1 -0
- package/dist/cjs/types/components/view/index.d.ts +1 -0
- package/dist/cjs/types/helpers/get-interval-start.d.ts +3 -0
- package/dist/cjs/types/helpers/language.d.ts +2 -4
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/esm/index.js +8 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/container/DailyDataChart/DailyDataChart.d.ts +28 -0
- package/dist/esm/types/components/container/DailyDataChart/DailyDataChart.stories.d.ts +80 -0
- package/dist/esm/types/components/container/DailyDataChart/index.d.ts +1 -0
- package/dist/esm/types/components/container/SurveyTaskList/SurveyTaskList.d.ts +2 -1
- package/dist/esm/types/components/container/index.d.ts +3 -1
- package/dist/esm/types/components/presentational/Button/Button.d.ts +1 -1
- package/dist/esm/types/components/presentational/Card/Card.d.ts +1 -0
- package/dist/esm/types/components/presentational/DateRangeCoordinator/DateRangeCoordinator.d.ts +14 -0
- package/dist/esm/types/components/presentational/DateRangeCoordinator/DateRangeCoordinator.stories.d.ts +36 -0
- package/dist/esm/types/components/presentational/DateRangeCoordinator/index.d.ts +1 -0
- package/dist/esm/types/components/presentational/Layout/Layout.d.ts +2 -2
- package/dist/esm/types/components/presentational/NavigationBar/NavigationBar.d.ts +1 -0
- package/dist/esm/types/components/presentational/Section/Section.d.ts +1 -0
- package/dist/esm/types/components/presentational/SingleSurveyTask/SingleSurveyTask.d.ts +0 -1
- package/dist/esm/types/components/presentational/ViewHeader/ViewHeader.d.ts +7 -0
- package/dist/esm/types/components/presentational/ViewHeader/ViewHeader.stories.d.ts +32 -0
- package/dist/esm/types/components/presentational/ViewHeader/index.d.ts +1 -0
- package/dist/esm/types/components/presentational/index.d.ts +2 -0
- package/dist/esm/types/components/view/BlankView/BlankView.d.ts +11 -0
- package/dist/esm/types/components/view/BlankView/BlankView.stories.d.ts +46 -0
- package/dist/esm/types/components/view/BlankView/index.d.ts +1 -0
- package/dist/esm/types/components/view/index.d.ts +1 -0
- package/dist/esm/types/helpers/get-interval-start.d.ts +3 -0
- package/dist/esm/types/helpers/language.d.ts +2 -4
- package/dist/esm/types/index.d.ts +2 -0
- package/dist/index.d.ts +199 -116
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DailyDataProvider } from '../../../helpers/query-daily-data';
|
|
3
|
+
import "./DailyDataChart.css";
|
|
4
|
+
import { WeekStartsOn } from '../../../helpers/get-interval-start';
|
|
5
|
+
export interface DailyDataChartProps {
|
|
6
|
+
title?: string;
|
|
7
|
+
intervalType?: "Week" | "Month";
|
|
8
|
+
weekStartsOn?: WeekStartsOn;
|
|
9
|
+
dailyDataType: string;
|
|
10
|
+
valueConverter?(value: number): number;
|
|
11
|
+
valueFormatter?(value: number): string;
|
|
12
|
+
chartType: "Line" | "Bar" | "Area";
|
|
13
|
+
options?: LineChartOptions | BarChartOptions | AreaChartOptions;
|
|
14
|
+
hideIfNoData?: boolean;
|
|
15
|
+
previewDataProvider?: DailyDataProvider;
|
|
16
|
+
}
|
|
17
|
+
export interface LineChartOptions {
|
|
18
|
+
lineColor?: string;
|
|
19
|
+
domainMin?: number | "Auto";
|
|
20
|
+
}
|
|
21
|
+
export interface BarChartOptions {
|
|
22
|
+
barColor?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface AreaChartOptions {
|
|
25
|
+
lineColor?: string;
|
|
26
|
+
areaColor?: string;
|
|
27
|
+
}
|
|
28
|
+
export default function DailyDataChart(props: DailyDataChartProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DailyDataQueryResult, DailyDataType } from "../../../helpers/query-daily-data";
|
|
3
|
+
import DailyDataChart, { DailyDataChartProps } from "./DailyDataChart";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof DailyDataChart;
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const stepsLineChart: {
|
|
13
|
+
args: {
|
|
14
|
+
title: string;
|
|
15
|
+
options: {
|
|
16
|
+
domainMin: number;
|
|
17
|
+
lineColor: string;
|
|
18
|
+
};
|
|
19
|
+
intervalType: string;
|
|
20
|
+
weekStartsOn: string;
|
|
21
|
+
dailyDataType: DailyDataType;
|
|
22
|
+
valueFormatter: (value: number) => string;
|
|
23
|
+
chartType: string;
|
|
24
|
+
previewDataProvider: (start: Date, end: Date) => Promise<DailyDataQueryResult>;
|
|
25
|
+
};
|
|
26
|
+
render: (args: DailyDataChartProps) => React.JSX.Element;
|
|
27
|
+
};
|
|
28
|
+
export declare const stepsBarChart: {
|
|
29
|
+
args: {
|
|
30
|
+
title: string;
|
|
31
|
+
options: {};
|
|
32
|
+
intervalType: string;
|
|
33
|
+
weekStartsOn: string;
|
|
34
|
+
dailyDataType: DailyDataType;
|
|
35
|
+
valueFormatter: (value: number) => string;
|
|
36
|
+
chartType: string;
|
|
37
|
+
previewDataProvider: (start: Date, end: Date) => Promise<DailyDataQueryResult>;
|
|
38
|
+
};
|
|
39
|
+
render: (args: DailyDataChartProps) => React.JSX.Element;
|
|
40
|
+
};
|
|
41
|
+
export declare const stepsAreaChart: {
|
|
42
|
+
args: {
|
|
43
|
+
title: string;
|
|
44
|
+
options: {
|
|
45
|
+
areaColor: string;
|
|
46
|
+
lineColor: string;
|
|
47
|
+
};
|
|
48
|
+
intervalType: string;
|
|
49
|
+
weekStartsOn: string;
|
|
50
|
+
dailyDataType: DailyDataType;
|
|
51
|
+
valueFormatter: (value: number) => string;
|
|
52
|
+
chartType: string;
|
|
53
|
+
previewDataProvider: (start: Date, end: Date) => Promise<DailyDataQueryResult>;
|
|
54
|
+
};
|
|
55
|
+
render: (args: DailyDataChartProps) => React.JSX.Element;
|
|
56
|
+
};
|
|
57
|
+
export declare const sleepBarChart: {
|
|
58
|
+
args: {
|
|
59
|
+
title: string;
|
|
60
|
+
intervalType: string;
|
|
61
|
+
weekStartsOn: string;
|
|
62
|
+
dailyDataType: DailyDataType;
|
|
63
|
+
valueFormatter: (value: number) => string;
|
|
64
|
+
valueConverter: (value: number) => number;
|
|
65
|
+
chartType: string;
|
|
66
|
+
previewDataProvider: (start: Date, end: Date) => Promise<DailyDataQueryResult>;
|
|
67
|
+
};
|
|
68
|
+
render: (args: DailyDataChartProps) => React.JSX.Element;
|
|
69
|
+
};
|
|
70
|
+
export declare const noData: {
|
|
71
|
+
args: {
|
|
72
|
+
title: string;
|
|
73
|
+
intervalType: string;
|
|
74
|
+
dailyDataType: DailyDataType;
|
|
75
|
+
valueFormatter: (value: number) => string;
|
|
76
|
+
chartType: string;
|
|
77
|
+
previewDataProvider: (start: Date, end: Date) => Promise<{}>;
|
|
78
|
+
};
|
|
79
|
+
render: (args: DailyDataChartProps) => React.JSX.Element;
|
|
80
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, LineChartOptions, BarChartOptions, AreaChartOptions } from "./DailyDataChart";
|
|
@@ -5,9 +5,10 @@ export interface SurveyTaskListProps {
|
|
|
5
5
|
status: SurveyTaskStatus;
|
|
6
6
|
limit?: number;
|
|
7
7
|
title?: string;
|
|
8
|
+
surveys?: string[];
|
|
8
9
|
onDetailLinkClick?: Function;
|
|
9
|
-
hideDueDate?: boolean;
|
|
10
10
|
previewState?: SurveyTaskListListPreviewState;
|
|
11
|
+
variant?: "noCard" | "singleCard" | "multiCard";
|
|
11
12
|
}
|
|
12
13
|
export declare type SurveyTaskListListPreviewState = "IncompleteTasks" | "CompleteTasks";
|
|
13
14
|
export default function (props: SurveyTaskListProps): React.JSX.Element | null;
|
|
@@ -2,6 +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, LineChartOptions, BarChartOptions, AreaChartOptions } from "./DailyDataChart";
|
|
5
6
|
export { default as DeviceDataMonthChart, DeviceDataChartLine } from "./DeviceDataMonthChart";
|
|
6
7
|
export { default as DeviceDataMonthCharts } from "./DeviceDataMonthCharts";
|
|
7
8
|
export { default as ExternalAccountList } from "./ExternalAccountList";
|
|
@@ -19,5 +20,6 @@ export { default as PlatformSpecificContent } from "./PlatformSpecificContent";
|
|
|
19
20
|
export { default as ProjectHeader } from "./ProjectHeader";
|
|
20
21
|
export { default as ProjectSupport } from "./ProjectSupport";
|
|
21
22
|
export { default as ProviderSearch } from "./ProviderSearch";
|
|
22
|
-
export { default as
|
|
23
|
+
export { default as RelativeActivityToday } from "./RelativeActivityToday";
|
|
24
|
+
export { default as RestingHeartRateCalendar } from "./RestingHeartRateCalendar";
|
|
23
25
|
export { default as SurveyTaskList } from "./SurveyTaskList";
|
package/dist/cjs/types/components/presentational/DateRangeCoordinator/DateRangeCoordinator.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { WeekStartsOn } from "../../../helpers/get-interval-start";
|
|
3
|
+
export interface DateRangeCoordinatorProps {
|
|
4
|
+
intervalType: "Week" | "Month";
|
|
5
|
+
weekStartsOn?: WeekStartsOn;
|
|
6
|
+
variant?: "default" | "rounded";
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface DateRangeContext {
|
|
10
|
+
intervalType: "Week" | "Month";
|
|
11
|
+
intervalStart: Date;
|
|
12
|
+
}
|
|
13
|
+
export declare const DateRangeContext: React.Context<DateRangeContext | null>;
|
|
14
|
+
export default function DateRangeNavigatorContext(props: DateRangeCoordinatorProps): React.JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DateRangeCoordinator, { DateRangeCoordinatorProps } from "./DateRangeCoordinator";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof DateRangeCoordinator;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const month: {
|
|
12
|
+
args: {
|
|
13
|
+
variant: string;
|
|
14
|
+
intervalType: string;
|
|
15
|
+
children: React.JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
render: (args: DateRangeCoordinatorProps) => React.JSX.Element;
|
|
18
|
+
};
|
|
19
|
+
export declare const weekStartsSunday: {
|
|
20
|
+
args: {
|
|
21
|
+
variant: string;
|
|
22
|
+
intervalType: string;
|
|
23
|
+
weekStartsOn: string;
|
|
24
|
+
children: React.JSX.Element;
|
|
25
|
+
};
|
|
26
|
+
render: (args: DateRangeCoordinatorProps) => React.JSX.Element;
|
|
27
|
+
};
|
|
28
|
+
export declare const weekStarts6DaysAgo: {
|
|
29
|
+
args: {
|
|
30
|
+
variant: string;
|
|
31
|
+
intervalType: string;
|
|
32
|
+
weekStartsOn: string;
|
|
33
|
+
children: React.JSX.Element;
|
|
34
|
+
};
|
|
35
|
+
render: (args: DateRangeCoordinatorProps) => React.JSX.Element;
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./DateRangeCoordinator";
|
|
@@ -6,7 +6,6 @@ import '@fortawesome/fontawesome-svg-core/styles.css';
|
|
|
6
6
|
export interface SingleSurveyTaskProps {
|
|
7
7
|
task: SurveyTask;
|
|
8
8
|
descriptionIcon?: IconDefinition;
|
|
9
|
-
hideDueDate?: boolean;
|
|
10
9
|
disableClick?: boolean;
|
|
11
10
|
}
|
|
12
11
|
export default function (props: SingleSurveyTaskProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import ViewHeader, { ViewHeaderProps } from "./ViewHeader";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof ViewHeader;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const titleAndSubtitle: {
|
|
12
|
+
name: string;
|
|
13
|
+
args: {
|
|
14
|
+
title: string;
|
|
15
|
+
subtitle: string;
|
|
16
|
+
};
|
|
17
|
+
render: (args: ViewHeaderProps) => React.JSX.Element;
|
|
18
|
+
};
|
|
19
|
+
export declare const titleOnly: {
|
|
20
|
+
name: string;
|
|
21
|
+
args: {
|
|
22
|
+
title: string;
|
|
23
|
+
};
|
|
24
|
+
render: (args: ViewHeaderProps) => React.JSX.Element;
|
|
25
|
+
};
|
|
26
|
+
export declare const subtitleOnly: {
|
|
27
|
+
name: string;
|
|
28
|
+
args: {
|
|
29
|
+
subtitle: string;
|
|
30
|
+
};
|
|
31
|
+
render: (args: ViewHeaderProps) => React.JSX.Element;
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ViewHeader";
|
|
@@ -4,6 +4,7 @@ export { default as Button } from "./Button";
|
|
|
4
4
|
export { default as Calendar } from "./Calendar";
|
|
5
5
|
export { default as Card } from "./Card";
|
|
6
6
|
export { default as CardTitle } from "./CardTitle";
|
|
7
|
+
export { default as DateRangeCoordinator } from "./DateRangeCoordinator";
|
|
7
8
|
export { default as DateRangeNavigator } from "./DateRangeNavigator";
|
|
8
9
|
export { default as DayTrackerSymbol } from "./DayTrackerSymbol";
|
|
9
10
|
export { default as Face } from "./Face";
|
|
@@ -23,4 +24,5 @@ export { default as StatusBarBackground } from "./StatusBarBackground";
|
|
|
23
24
|
export { default as TextBlock } from "./TextBlock";
|
|
24
25
|
export { default as TrackerItem } from "./TrackerItem";
|
|
25
26
|
export { default as UnstyledButton } from "./UnstyledButton";
|
|
27
|
+
export { default as ViewHeader } from "./ViewHeader";
|
|
26
28
|
export { default as WeekCalendar } from "./WeekCalendar";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface BlankViewProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
title?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
showCloseButton?: boolean;
|
|
7
|
+
showBackButton?: boolean;
|
|
8
|
+
colorScheme?: "auto" | "light" | "dark";
|
|
9
|
+
primaryColor?: string;
|
|
10
|
+
}
|
|
11
|
+
export default function (props: BlankViewProps): React.JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import BlankView, { BlankViewProps } from "./BlankView";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof BlankView;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const titleOnly: {
|
|
12
|
+
args: {
|
|
13
|
+
title: string;
|
|
14
|
+
};
|
|
15
|
+
render: (args: BlankViewProps) => React.JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export declare const withNavigationButtons: {
|
|
18
|
+
args: {
|
|
19
|
+
title: string;
|
|
20
|
+
subtitle: string;
|
|
21
|
+
showBackButton: boolean;
|
|
22
|
+
showCloseButton: boolean;
|
|
23
|
+
};
|
|
24
|
+
render: (args: BlankViewProps) => React.JSX.Element;
|
|
25
|
+
};
|
|
26
|
+
export declare const darkColorScheme: {
|
|
27
|
+
args: {
|
|
28
|
+
title: string;
|
|
29
|
+
subtitle: string;
|
|
30
|
+
showBackButton: boolean;
|
|
31
|
+
showCloseButton: boolean;
|
|
32
|
+
colorScheme: string;
|
|
33
|
+
};
|
|
34
|
+
render: (args: BlankViewProps) => React.JSX.Element;
|
|
35
|
+
};
|
|
36
|
+
export declare const customPrimaryColor: {
|
|
37
|
+
args: {
|
|
38
|
+
title: string;
|
|
39
|
+
subtitle: string;
|
|
40
|
+
showBackButton: boolean;
|
|
41
|
+
showCloseButton: boolean;
|
|
42
|
+
primaryColor: string;
|
|
43
|
+
children: React.JSX.Element;
|
|
44
|
+
};
|
|
45
|
+
render: (args: BlankViewProps) => React.JSX.Element;
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./BlankView";
|