@careevolution/mydatahelps-ui 2.3.0 → 2.4.1-Points.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/NewPoints/NewPoints.d.ts +17 -0
- package/dist/cjs/types/components/container/NewPoints/NewPoints.stories.d.ts +100 -0
- package/dist/cjs/types/components/container/NewPoints/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 +4 -1
- package/dist/cjs/types/components/presentational/AnimatedRing/AnimatedRing.d.ts +8 -0
- package/dist/cjs/types/components/presentational/AnimatedRing/AnimatedRing.stories.d.ts +24 -0
- package/dist/cjs/types/components/presentational/AnimatedRing/index.d.ts +1 -0
- 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 +3 -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/NewPointsView/NewPointsView.d.ts +8 -0
- package/dist/cjs/types/components/view/NewPointsView/NewPointsView.stories.d.ts +41 -0
- package/dist/cjs/types/components/view/NewPointsView/index.d.ts +1 -0
- package/dist/cjs/types/components/view/index.d.ts +2 -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/helpers/new-points.d.ts +5 -0
- package/dist/cjs/types/index.d.ts +3 -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/NewPoints/NewPoints.d.ts +17 -0
- package/dist/esm/types/components/container/NewPoints/NewPoints.stories.d.ts +100 -0
- package/dist/esm/types/components/container/NewPoints/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 +4 -1
- package/dist/esm/types/components/presentational/AnimatedRing/AnimatedRing.d.ts +8 -0
- package/dist/esm/types/components/presentational/AnimatedRing/AnimatedRing.stories.d.ts +24 -0
- package/dist/esm/types/components/presentational/AnimatedRing/index.d.ts +1 -0
- 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 +3 -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/NewPointsView/NewPointsView.d.ts +8 -0
- package/dist/esm/types/components/view/NewPointsView/NewPointsView.stories.d.ts +41 -0
- package/dist/esm/types/components/view/NewPointsView/index.d.ts +1 -0
- package/dist/esm/types/components/view/index.d.ts +2 -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/helpers/new-points.d.ts +5 -0
- package/dist/esm/types/index.d.ts +3 -0
- package/dist/index.d.ts +243 -126
- 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";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './NewPoints.css';
|
|
3
|
+
export interface NewPointsEntry {
|
|
4
|
+
name: string;
|
|
5
|
+
points: number;
|
|
6
|
+
bonusPoints?: number;
|
|
7
|
+
message?: {
|
|
8
|
+
title: string;
|
|
9
|
+
text: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export interface NewPointsProps {
|
|
13
|
+
entries: NewPointsEntry[];
|
|
14
|
+
pointsToNextReward?: number;
|
|
15
|
+
doneButtonText?: string;
|
|
16
|
+
}
|
|
17
|
+
export default function (props: NewPointsProps): React.JSX.Element;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import NewPoints, { NewPointsProps } from './NewPoints';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof NewPoints;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const SingleEntry: {
|
|
12
|
+
args: {
|
|
13
|
+
entries: {
|
|
14
|
+
name: string;
|
|
15
|
+
points: number;
|
|
16
|
+
message: {
|
|
17
|
+
title: string;
|
|
18
|
+
text: string;
|
|
19
|
+
};
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
render: (args: NewPointsProps) => React.JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
export declare const SingleEntryWithBonus: {
|
|
25
|
+
args: {
|
|
26
|
+
entries: {
|
|
27
|
+
name: string;
|
|
28
|
+
points: number;
|
|
29
|
+
bonusPoints: number;
|
|
30
|
+
message: {
|
|
31
|
+
title: string;
|
|
32
|
+
text: string;
|
|
33
|
+
};
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
render: (args: NewPointsProps) => React.JSX.Element;
|
|
37
|
+
};
|
|
38
|
+
export declare const SingleEntryWithNextReward: {
|
|
39
|
+
args: {
|
|
40
|
+
entries: {
|
|
41
|
+
name: string;
|
|
42
|
+
points: number;
|
|
43
|
+
message: {
|
|
44
|
+
title: string;
|
|
45
|
+
text: string;
|
|
46
|
+
};
|
|
47
|
+
}[];
|
|
48
|
+
pointsToNextReward: number;
|
|
49
|
+
};
|
|
50
|
+
render: (args: NewPointsProps) => React.JSX.Element;
|
|
51
|
+
};
|
|
52
|
+
export declare const MultiEntry: {
|
|
53
|
+
args: {
|
|
54
|
+
entries: {
|
|
55
|
+
name: string;
|
|
56
|
+
points: number;
|
|
57
|
+
message: {
|
|
58
|
+
title: string;
|
|
59
|
+
text: string;
|
|
60
|
+
};
|
|
61
|
+
}[];
|
|
62
|
+
};
|
|
63
|
+
render: (args: NewPointsProps) => React.JSX.Element;
|
|
64
|
+
};
|
|
65
|
+
export declare const MultiEntryWithBonus: {
|
|
66
|
+
args: {
|
|
67
|
+
entries: ({
|
|
68
|
+
name: string;
|
|
69
|
+
points: number;
|
|
70
|
+
bonusPoints: number;
|
|
71
|
+
message: {
|
|
72
|
+
title: string;
|
|
73
|
+
text: string;
|
|
74
|
+
};
|
|
75
|
+
} | {
|
|
76
|
+
name: string;
|
|
77
|
+
points: number;
|
|
78
|
+
message: {
|
|
79
|
+
title: string;
|
|
80
|
+
text: string;
|
|
81
|
+
};
|
|
82
|
+
bonusPoints?: undefined;
|
|
83
|
+
})[];
|
|
84
|
+
};
|
|
85
|
+
render: (args: NewPointsProps) => React.JSX.Element;
|
|
86
|
+
};
|
|
87
|
+
export declare const MultiEntryWithNextReward: {
|
|
88
|
+
args: {
|
|
89
|
+
entries: {
|
|
90
|
+
name: string;
|
|
91
|
+
points: number;
|
|
92
|
+
message: {
|
|
93
|
+
title: string;
|
|
94
|
+
text: string;
|
|
95
|
+
};
|
|
96
|
+
}[];
|
|
97
|
+
pointsToNextReward: number;
|
|
98
|
+
};
|
|
99
|
+
render: (args: NewPointsProps) => React.JSX.Element;
|
|
100
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, NewPointsProps, NewPointsEntry } from './NewPoints';
|
|
@@ -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,7 @@ 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";
|
|
26
|
+
export { default as NewPoints, NewPointsProps, NewPointsEntry } from "./NewPoints";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AnimatedRing, { AnimatedRingProps } from './AnimatedRing';
|
|
3
|
+
import './AnimatedRing.stories.css';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof AnimatedRing;
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const Default: {
|
|
13
|
+
args: {
|
|
14
|
+
children: React.JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
render: (args: AnimatedRingProps) => React.JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
export declare const SpecificColor: {
|
|
19
|
+
args: {
|
|
20
|
+
children: React.JSX.Element;
|
|
21
|
+
color: string;
|
|
22
|
+
};
|
|
23
|
+
render: (args: AnimatedRingProps) => React.JSX.Element;
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AnimatedRing';
|
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,6 @@ 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";
|
|
29
|
+
export { default as AnimatedRing } from "./AnimatedRing";
|
|
@@ -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";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NewPointsProps } from "../../container/NewPoints/NewPoints";
|
|
3
|
+
export interface NewPointsViewProps {
|
|
4
|
+
newPointsProps: NewPointsProps;
|
|
5
|
+
colorScheme?: 'auto' | 'light' | 'dark';
|
|
6
|
+
primaryColor?: string;
|
|
7
|
+
}
|
|
8
|
+
export default function (props: NewPointsViewProps): React.JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import NewPointsView, { NewPointsViewProps } from './NewPointsView';
|
|
3
|
+
import { NewPointsProps } from "../../container/NewPoints/NewPoints";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof NewPointsView;
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const Default: {
|
|
13
|
+
args: {
|
|
14
|
+
newPointsProps: NewPointsProps;
|
|
15
|
+
};
|
|
16
|
+
render: (args: NewPointsViewProps) => React.JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
export declare const DifferentButtonText: {
|
|
19
|
+
args: {
|
|
20
|
+
newPointsProps: {
|
|
21
|
+
doneButtonText: string;
|
|
22
|
+
entries: import("../../container/NewPoints/NewPoints").NewPointsEntry[];
|
|
23
|
+
pointsToNextReward?: number | undefined;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
render: (args: NewPointsViewProps) => React.JSX.Element;
|
|
27
|
+
};
|
|
28
|
+
export declare const DifferentColor: {
|
|
29
|
+
args: {
|
|
30
|
+
newPointsProps: NewPointsProps;
|
|
31
|
+
primaryColor: string;
|
|
32
|
+
};
|
|
33
|
+
render: (args: NewPointsViewProps) => React.JSX.Element;
|
|
34
|
+
};
|
|
35
|
+
export declare const DarkMode: {
|
|
36
|
+
args: {
|
|
37
|
+
newPointsProps: NewPointsProps;
|
|
38
|
+
colorScheme: string;
|
|
39
|
+
};
|
|
40
|
+
render: (args: NewPointsViewProps) => React.JSX.Element;
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, NewPointsViewProps } from './NewPointsView';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { default as BlankView } from "./BlankView";
|
|
1
2
|
export { default as ConnectEhrView } from "./ConnectEhrView";
|
|
2
3
|
export { default as DeviceDataView } from "./DeviceDataView";
|
|
3
4
|
export { default as ExternalAccountsView } from "./ExternalAccountsView";
|
|
@@ -7,3 +8,4 @@ export { default as HomeView } from "./HomeView";
|
|
|
7
8
|
export { default as HealthAndWellnessView } from "./HealthAndWellnessView";
|
|
8
9
|
export { default as NotificationsView } from "./NotificationsView";
|
|
9
10
|
export { default as SurveyTasksView } from "./SurveyTasksView";
|
|
11
|
+
export { default as NewPointsView, NewPointsViewProps } from "./NewPointsView";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { NewPointsProps } from "../components";
|
|
2
|
+
declare type ColorScheme = 'auto' | 'light' | 'dark';
|
|
3
|
+
export declare function showNewPoints(props: NewPointsProps, colorScheme?: ColorScheme, primaryColor?: string, url?: string): void;
|
|
4
|
+
export declare function decodeNewPointsProps(encodedProps: string): NewPointsProps;
|
|
5
|
+
export {};
|
|
@@ -2,3 +2,6 @@ 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';
|
|
7
|
+
export * from './helpers/new-points';
|