@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
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ interface ActionProps {
|
|
|
16
16
|
indicatorPosition?: "default" | "topRight";
|
|
17
17
|
bottomBorder?: boolean;
|
|
18
18
|
}
|
|
19
|
-
declare function export_default$
|
|
19
|
+
declare function export_default$1b(props: ActionProps): React.JSX.Element;
|
|
20
20
|
|
|
21
21
|
interface ActivityMeterProps {
|
|
22
22
|
label: string;
|
|
@@ -28,7 +28,7 @@ interface ActivityMeterProps {
|
|
|
28
28
|
message?: string;
|
|
29
29
|
className?: string;
|
|
30
30
|
}
|
|
31
|
-
declare function export_default$
|
|
31
|
+
declare function export_default$1a(props: ActivityMeterProps): React.JSX.Element;
|
|
32
32
|
|
|
33
33
|
interface ButtonProps {
|
|
34
34
|
children?: React.ReactNode;
|
|
@@ -41,9 +41,9 @@ interface ButtonProps {
|
|
|
41
41
|
className?: string;
|
|
42
42
|
color?: string;
|
|
43
43
|
loading?: boolean;
|
|
44
|
-
variant?: "default" | "subtle";
|
|
44
|
+
variant?: "default" | "subtle" | "light";
|
|
45
45
|
}
|
|
46
|
-
declare function export_default$
|
|
46
|
+
declare function export_default$19(props: ButtonProps): React.JSX.Element;
|
|
47
47
|
|
|
48
48
|
interface CalendarProps {
|
|
49
49
|
month: number;
|
|
@@ -51,21 +51,34 @@ interface CalendarProps {
|
|
|
51
51
|
dayRenderer(year: number, month: number, day?: number): JSX.Element | null;
|
|
52
52
|
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
53
53
|
}
|
|
54
|
-
declare function export_default$
|
|
54
|
+
declare function export_default$18(props: CalendarProps): React.JSX.Element;
|
|
55
55
|
|
|
56
56
|
interface CardProps {
|
|
57
57
|
className?: string;
|
|
58
58
|
children?: React.ReactNode;
|
|
59
59
|
allowOverflow?: boolean;
|
|
60
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
60
61
|
}
|
|
61
|
-
declare function export_default$
|
|
62
|
+
declare function export_default$17(props: CardProps): React.JSX.Element | null;
|
|
62
63
|
|
|
63
64
|
interface CardTitleProps {
|
|
64
65
|
title: string;
|
|
65
66
|
onDetailClick?: Function;
|
|
66
67
|
detailLinkText?: string;
|
|
67
68
|
}
|
|
68
|
-
declare function export_default$
|
|
69
|
+
declare function export_default$16(props: CardTitleProps): React.JSX.Element;
|
|
70
|
+
|
|
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;
|
|
74
|
+
|
|
75
|
+
interface DateRangeCoordinatorProps {
|
|
76
|
+
intervalType: "Week" | "Month";
|
|
77
|
+
weekStartsOn?: WeekStartsOn;
|
|
78
|
+
variant?: "default" | "rounded";
|
|
79
|
+
children: React.ReactNode;
|
|
80
|
+
}
|
|
81
|
+
declare function DateRangeNavigatorContext(props: DateRangeCoordinatorProps): React.JSX.Element;
|
|
69
82
|
|
|
70
83
|
interface DateRangeNavigatorProps {
|
|
71
84
|
intervalType: "Week" | "Month";
|
|
@@ -74,14 +87,14 @@ interface DateRangeNavigatorProps {
|
|
|
74
87
|
onIntervalChange(newIntervalStart: Date, newIntervalEnd: Date): void;
|
|
75
88
|
className?: string;
|
|
76
89
|
}
|
|
77
|
-
declare function export_default$
|
|
90
|
+
declare function export_default$15(props: DateRangeNavigatorProps): React.JSX.Element;
|
|
78
91
|
|
|
79
92
|
interface DayTrackerSymbolProps {
|
|
80
93
|
primaryColors: string[];
|
|
81
94
|
secondaryColors: string[];
|
|
82
95
|
className?: string;
|
|
83
96
|
}
|
|
84
|
-
declare function export_default$
|
|
97
|
+
declare function export_default$14(props: DayTrackerSymbolProps): React.JSX.Element;
|
|
85
98
|
|
|
86
99
|
interface FaceProps {
|
|
87
100
|
faceValue?: number;
|
|
@@ -89,7 +102,7 @@ interface FaceProps {
|
|
|
89
102
|
onClick?: MouseEventHandler;
|
|
90
103
|
className?: string;
|
|
91
104
|
}
|
|
92
|
-
declare function export_default
|
|
105
|
+
declare function export_default$13(props: FaceProps): React.JSX.Element;
|
|
93
106
|
|
|
94
107
|
interface HistogramProps {
|
|
95
108
|
entries: {
|
|
@@ -100,7 +113,7 @@ interface HistogramProps {
|
|
|
100
113
|
}[];
|
|
101
114
|
className?: string;
|
|
102
115
|
}
|
|
103
|
-
declare function export_default$
|
|
116
|
+
declare function export_default$12(props: HistogramProps): React.JSX.Element;
|
|
104
117
|
|
|
105
118
|
interface LayoutProps {
|
|
106
119
|
children?: React.ReactNode;
|
|
@@ -111,8 +124,8 @@ interface LayoutProps {
|
|
|
111
124
|
noGlobalStyles?: boolean;
|
|
112
125
|
colorScheme?: "light" | "dark" | "auto";
|
|
113
126
|
/**
|
|
114
|
-
|
|
115
|
-
|
|
127
|
+
* @deprecated
|
|
128
|
+
*/
|
|
116
129
|
stylesheetPath?: string;
|
|
117
130
|
}
|
|
118
131
|
interface LayoutContext {
|
|
@@ -120,7 +133,7 @@ interface LayoutContext {
|
|
|
120
133
|
bodyBackgroundColor: string;
|
|
121
134
|
}
|
|
122
135
|
declare const LayoutContext: React.Context<LayoutContext>;
|
|
123
|
-
declare function export_default$
|
|
136
|
+
declare function export_default$11(props: LayoutProps): React.JSX.Element;
|
|
124
137
|
|
|
125
138
|
interface LoadingIndicatorProps {
|
|
126
139
|
variant?: "default" | "inline";
|
|
@@ -131,6 +144,7 @@ declare function LoadingIndicator(props: LoadingIndicatorProps): React.JSX.Eleme
|
|
|
131
144
|
|
|
132
145
|
interface NavigationBarProps {
|
|
133
146
|
title?: string;
|
|
147
|
+
subtitle?: string;
|
|
134
148
|
showBackButton?: boolean;
|
|
135
149
|
showCloseButton?: boolean;
|
|
136
150
|
children?: React.ReactNode;
|
|
@@ -139,14 +153,15 @@ interface NavigationBarProps {
|
|
|
139
153
|
className?: string;
|
|
140
154
|
variant?: "default" | "compressed";
|
|
141
155
|
}
|
|
142
|
-
declare function export_default$
|
|
156
|
+
declare function export_default$10(props: NavigationBarProps): React.JSX.Element;
|
|
143
157
|
|
|
144
158
|
interface SectionProps {
|
|
145
159
|
children?: React.ReactNode;
|
|
146
160
|
className?: string;
|
|
147
161
|
noTopMargin?: boolean;
|
|
162
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
148
163
|
}
|
|
149
|
-
declare function export_default
|
|
164
|
+
declare function export_default$$(props: SectionProps): React.JSX.Element | null;
|
|
150
165
|
|
|
151
166
|
interface SegmentedControlProps {
|
|
152
167
|
segments: {
|
|
@@ -158,29 +173,28 @@ interface SegmentedControlProps {
|
|
|
158
173
|
className?: string;
|
|
159
174
|
color?: string;
|
|
160
175
|
}
|
|
161
|
-
declare function export_default$
|
|
176
|
+
declare function export_default$_(props: SegmentedControlProps): React.JSX.Element;
|
|
162
177
|
|
|
163
|
-
declare function export_default$
|
|
178
|
+
declare function export_default$Z(): React.JSX.Element;
|
|
164
179
|
|
|
165
180
|
interface SingleExternalAccountProps {
|
|
166
181
|
externalAccount: ExternalAccount;
|
|
167
182
|
onAccountRemoved: (account: ExternalAccount) => void;
|
|
168
183
|
onReconnectAccount: (account: ExternalAccount) => void;
|
|
169
184
|
}
|
|
170
|
-
declare function export_default$
|
|
185
|
+
declare function export_default$Y(props: SingleExternalAccountProps): React.JSX.Element;
|
|
171
186
|
|
|
172
187
|
interface SingleNotificationProps {
|
|
173
188
|
notification: Notification;
|
|
174
189
|
}
|
|
175
|
-
declare function export_default$
|
|
190
|
+
declare function export_default$X(props: SingleNotificationProps): React.JSX.Element;
|
|
176
191
|
|
|
177
192
|
interface SingleSurveyTaskProps {
|
|
178
193
|
task: SurveyTask;
|
|
179
194
|
descriptionIcon?: IconDefinition$1;
|
|
180
|
-
hideDueDate?: boolean;
|
|
181
195
|
disableClick?: boolean;
|
|
182
196
|
}
|
|
183
|
-
declare function export_default$
|
|
197
|
+
declare function export_default$W(props: SingleSurveyTaskProps): React.JSX.Element | null;
|
|
184
198
|
|
|
185
199
|
interface SparkBarChartProps {
|
|
186
200
|
averageFillPercent: number;
|
|
@@ -190,7 +204,7 @@ interface SparkBarChartBar {
|
|
|
190
204
|
color: string;
|
|
191
205
|
barFillPercent: number;
|
|
192
206
|
}
|
|
193
|
-
declare function export_default$
|
|
207
|
+
declare function export_default$V(props: SparkBarChartProps): React.JSX.Element;
|
|
194
208
|
|
|
195
209
|
interface SwitchProps {
|
|
196
210
|
isOn: Boolean;
|
|
@@ -198,7 +212,7 @@ interface SwitchProps {
|
|
|
198
212
|
onValueChanged(value: boolean): void;
|
|
199
213
|
className?: string;
|
|
200
214
|
}
|
|
201
|
-
declare function export_default$
|
|
215
|
+
declare function export_default$U(props: SwitchProps): React.JSX.Element;
|
|
202
216
|
|
|
203
217
|
interface StatusBarBackgroundProps {
|
|
204
218
|
color?: string;
|
|
@@ -209,7 +223,7 @@ interface TextBlockProps {
|
|
|
209
223
|
children?: React.ReactNode;
|
|
210
224
|
className?: string;
|
|
211
225
|
}
|
|
212
|
-
declare function export_default$
|
|
226
|
+
declare function export_default$T(props: TextBlockProps): React.JSX.Element | null;
|
|
213
227
|
|
|
214
228
|
interface TrackerItemProps {
|
|
215
229
|
selected: boolean;
|
|
@@ -220,7 +234,7 @@ interface TrackerItemProps {
|
|
|
220
234
|
onClick?: Function;
|
|
221
235
|
className?: string;
|
|
222
236
|
}
|
|
223
|
-
declare function export_default$
|
|
237
|
+
declare function export_default$S(props: TrackerItemProps): React.JSX.Element;
|
|
224
238
|
|
|
225
239
|
interface UnstyledButtonProps {
|
|
226
240
|
onClick: MouseEventHandler;
|
|
@@ -230,7 +244,13 @@ interface UnstyledButtonProps {
|
|
|
230
244
|
style?: React.CSSProperties;
|
|
231
245
|
disabled?: boolean;
|
|
232
246
|
}
|
|
233
|
-
declare function export_default$
|
|
247
|
+
declare function export_default$R(props: UnstyledButtonProps): React.JSX.Element;
|
|
248
|
+
|
|
249
|
+
interface ViewHeaderProps {
|
|
250
|
+
title?: string;
|
|
251
|
+
subtitle?: string;
|
|
252
|
+
}
|
|
253
|
+
declare function export_default$Q(props: ViewHeaderProps): React.JSX.Element | null;
|
|
234
254
|
|
|
235
255
|
interface WeekCalendarProps {
|
|
236
256
|
selectedDate?: Date;
|
|
@@ -241,13 +261,13 @@ interface WeekCalendarProps {
|
|
|
241
261
|
onStartDateChange?(startDate: Date): void;
|
|
242
262
|
dayRenderer(year: number, month: number, day: number, selectedWeek: boolean): JSX.Element | null;
|
|
243
263
|
}
|
|
244
|
-
declare function export_default$
|
|
264
|
+
declare function export_default$P(props: WeekCalendarProps): React.JSX.Element;
|
|
245
265
|
|
|
246
266
|
interface AppDownloadProps {
|
|
247
267
|
previewProjectPlatforms?: string[];
|
|
248
268
|
previewDevicePlatform?: string;
|
|
249
269
|
}
|
|
250
|
-
declare function export_default$
|
|
270
|
+
declare function export_default$O(props: AppDownloadProps): React.JSX.Element | null;
|
|
251
271
|
|
|
252
272
|
interface ConnectEhrProps {
|
|
253
273
|
applicationUrl: ConnectEhrApplicationUrl;
|
|
@@ -257,7 +277,7 @@ interface ConnectEhrProps {
|
|
|
257
277
|
}
|
|
258
278
|
declare type ConnectEhrApplicationUrl = "preview" | string;
|
|
259
279
|
declare type ConnectEhrPreviewState = "notEnabled" | "enabled" | "enabledConnected" | "enabledNeedsAttention";
|
|
260
|
-
declare function export_default$
|
|
280
|
+
declare function export_default$N(props: ConnectEhrProps): React.JSX.Element | null;
|
|
261
281
|
|
|
262
282
|
interface ConnectFitbitProps {
|
|
263
283
|
title?: string;
|
|
@@ -266,7 +286,7 @@ interface ConnectFitbitProps {
|
|
|
266
286
|
disabledBehavior?: 'hide' | 'displayError';
|
|
267
287
|
}
|
|
268
288
|
declare type ConnectFitbitPreviewState = ExternalAccountStatus | "notConnected" | "notEnabled";
|
|
269
|
-
declare function export_default$
|
|
289
|
+
declare function export_default$M(props: ConnectFitbitProps): React.JSX.Element;
|
|
270
290
|
|
|
271
291
|
interface ConnectGarminProps {
|
|
272
292
|
title?: string;
|
|
@@ -275,7 +295,97 @@ interface ConnectGarminProps {
|
|
|
275
295
|
disabledBehavior?: 'hide' | 'displayError';
|
|
276
296
|
}
|
|
277
297
|
declare type ConnectGarminPreviewState = ExternalAccountStatus | "notConnected" | "notEnabled";
|
|
278
|
-
declare function export_default$
|
|
298
|
+
declare function export_default$L(props: ConnectGarminProps): React.JSX.Element;
|
|
299
|
+
|
|
300
|
+
declare type DailyDataQueryResult = {
|
|
301
|
+
[key: string]: number;
|
|
302
|
+
};
|
|
303
|
+
declare type DailyDataProvider = (startDate: Date, endDate: Date) => Promise<DailyDataQueryResult>;
|
|
304
|
+
declare type DailyDataAvailabilityCheck = (modifiedAfter?: Date) => Promise<boolean>;
|
|
305
|
+
declare function registerDailyDataProvider(type: string, provider: DailyDataProvider, availabilityCheck: DailyDataAvailabilityCheck): void;
|
|
306
|
+
declare function checkDailyDataAvailability(type: string, modifiedAfter?: Date): Promise<boolean>;
|
|
307
|
+
declare function queryDailyData(type: string, startDate: Date, endDate: Date): Promise<DailyDataQueryResult>;
|
|
308
|
+
declare enum DailyDataType {
|
|
309
|
+
AppleHealthDistanceWalkingRunning = "AppleHealthDistanceWalkingRunning",
|
|
310
|
+
AppleHealthFlightsClimbed = "AppleHealthFlightsClimbed",
|
|
311
|
+
AppleHealthHeartRateRange = "AppleHealthHeartRateRange",
|
|
312
|
+
AppleHealthHrv = "AppleHealthHrv",
|
|
313
|
+
AppleHealthMaxHeartRate = "AppleHealthMaxHeartRate",
|
|
314
|
+
AppleHealthRestingHeartRate = "AppleHealthRestingHeartRate",
|
|
315
|
+
AppleHealthSleepMinutes = "AppleHealthSleepMinutes",
|
|
316
|
+
AppleHealthInBedMinutes = "AppleHealthInBedMinutes",
|
|
317
|
+
AppleHealthStandMinutes = "AppleHealthStandMinutes",
|
|
318
|
+
AppleHealthSteps = "AppleHealthSteps",
|
|
319
|
+
AppleHealthWalkingHeartRateAverage = "AppleHealthWalkingHeartRateAverage",
|
|
320
|
+
FitbitSedentaryMinutes = "FitbitSedentaryMinutes",
|
|
321
|
+
FitbitActiveMinutes = "FitbitActiveMinutes",
|
|
322
|
+
FitbitLightlyActiveMinutes = "FitbitLightlyActiveMinutes",
|
|
323
|
+
FitbitFairlyActiveMinutes = "FitbitFairlyActiveMinutes",
|
|
324
|
+
FitbitVeryActiveMinutes = "FitbitVeryActiveMinutes",
|
|
325
|
+
FitbitBreathingRate = "FitbitBreathingRate",
|
|
326
|
+
FitbitCaloriesBurned = "FitbitCaloriesBurned",
|
|
327
|
+
FitbitElevatedHeartRateMinutes = "FitbitElevatedHeartRateMinutes",
|
|
328
|
+
FitbitFatBurnHeartRateMinutes = "FitbitFatBurnHeartRateMinutes",
|
|
329
|
+
FitbitCardioHeartRateMinutes = "FitbitCardioHeartRateMinutes",
|
|
330
|
+
FitbitPeakHeartRateMinutes = "FitbitPeakHeartRateMinutes",
|
|
331
|
+
FitbitFloors = "FitbitFloors",
|
|
332
|
+
FitbitHrv = "FitbitHrv",
|
|
333
|
+
FitbitRestingHeartRate = "FitbitRestingHeartRate",
|
|
334
|
+
FitbitSleepMinutes = "FitbitSleepMinutes",
|
|
335
|
+
FitbitLightSleepMinutes = "FitbitLightSleepMinutes",
|
|
336
|
+
FitbitRemSleepMinutes = "FitbitRemSleepMinutes",
|
|
337
|
+
FitbitDeepSleepMinutes = "FitbitDeepSleepMinutes",
|
|
338
|
+
FitbitSpO2 = "FitbitSpO2",
|
|
339
|
+
FitbitSteps = "FitbitSteps",
|
|
340
|
+
GarminSteps = "GarminSteps",
|
|
341
|
+
GarminDistance = "GarminDistance",
|
|
342
|
+
GarminFloors = "GarminFloors",
|
|
343
|
+
GarminActiveMinutes = "GarminActiveMinutes",
|
|
344
|
+
GarminRestingHeartRate = "GarminRestingHeartRate",
|
|
345
|
+
GarminMinHeartRate = "GarminMinHeartRate",
|
|
346
|
+
GarminMaxHeartRate = "GarminMaxHeartRate",
|
|
347
|
+
GarminAverageHeartRate = "GarminAverageHeartRate",
|
|
348
|
+
GarminMaxStressLevel = "GarminMaxStressLevel",
|
|
349
|
+
GarminAverageStressLevel = "GarminAverageStressLevel",
|
|
350
|
+
GarminTotalStressMinutes = "GarminTotalStressMinutes",
|
|
351
|
+
GarminLowStressMinutes = "GarminLowStressMinutes",
|
|
352
|
+
GarminMediumStressMinutes = "GarminMediumStressMinutes",
|
|
353
|
+
GarminHighStressMinutes = "GarminHighStressMinutes",
|
|
354
|
+
GarminTotalSleepMinutes = "GarminTotalSleepMinutes",
|
|
355
|
+
GarminLightSleepMinutes = "GarminLightSleepMinutes",
|
|
356
|
+
GarminDeepSleepMinutes = "GarminDeepSleepMinutes",
|
|
357
|
+
GarminRemSleepMinutes = "GarminRemSleepMinutes",
|
|
358
|
+
GarminAwakeMinutes = "GarminAwakeMinutes",
|
|
359
|
+
GarminSleepScore = "GarminSleepScore",
|
|
360
|
+
GoogleFitSteps = "GoogleFitSteps",
|
|
361
|
+
Steps = "Steps",
|
|
362
|
+
RestingHeartRate = "RestingHeartRate"
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
interface DailyDataChartProps {
|
|
366
|
+
title?: string;
|
|
367
|
+
intervalType?: "Week" | "Month";
|
|
368
|
+
weekStartsOn?: WeekStartsOn;
|
|
369
|
+
dailyDataType: string;
|
|
370
|
+
valueConverter?(value: number): number;
|
|
371
|
+
valueFormatter?(value: number): string;
|
|
372
|
+
chartType: "Line" | "Bar" | "Area";
|
|
373
|
+
options?: LineChartOptions | BarChartOptions | AreaChartOptions;
|
|
374
|
+
hideIfNoData?: boolean;
|
|
375
|
+
previewDataProvider?: DailyDataProvider;
|
|
376
|
+
}
|
|
377
|
+
interface LineChartOptions {
|
|
378
|
+
lineColor?: string;
|
|
379
|
+
domainMin?: number | "Auto";
|
|
380
|
+
}
|
|
381
|
+
interface BarChartOptions {
|
|
382
|
+
barColor?: string;
|
|
383
|
+
}
|
|
384
|
+
interface AreaChartOptions {
|
|
385
|
+
lineColor?: string;
|
|
386
|
+
areaColor?: string;
|
|
387
|
+
}
|
|
388
|
+
declare function DailyDataChart(props: DailyDataChartProps): React.JSX.Element | null;
|
|
279
389
|
|
|
280
390
|
interface DeviceDataMonthChartProps {
|
|
281
391
|
lines: DeviceDataChartLine[];
|
|
@@ -293,13 +403,13 @@ interface DeviceDataChartLine {
|
|
|
293
403
|
showAverage?: boolean;
|
|
294
404
|
}
|
|
295
405
|
declare type DeviceDataMonthChartPreviewState = "WithData" | "NoData" | "Loading";
|
|
296
|
-
declare function export_default$
|
|
406
|
+
declare function export_default$K(props: DeviceDataMonthChartProps): React.JSX.Element | null;
|
|
297
407
|
|
|
298
408
|
interface DeviceDataMonthChartsProps {
|
|
299
409
|
previewState?: DeviceDataMonthChartsPreviewState;
|
|
300
410
|
}
|
|
301
411
|
declare type DeviceDataMonthChartsPreviewState = "Default" | "NoData";
|
|
302
|
-
declare function export_default$
|
|
412
|
+
declare function export_default$J(props: DeviceDataMonthChartsProps): React.JSX.Element;
|
|
303
413
|
|
|
304
414
|
interface ExternalAccountListProps {
|
|
305
415
|
externalAccountProviderCategories?: string[];
|
|
@@ -307,13 +417,13 @@ interface ExternalAccountListProps {
|
|
|
307
417
|
onExternalAccountsLoaded?: (accounts: ExternalAccount[]) => void;
|
|
308
418
|
}
|
|
309
419
|
declare type NotificationListPreviewState$1 = "Default";
|
|
310
|
-
declare function export_default$
|
|
420
|
+
declare function export_default$I(props: ExternalAccountListProps): React.JSX.Element;
|
|
311
421
|
|
|
312
422
|
interface ExternalAccountsLoadingIndicatorProps {
|
|
313
423
|
previewState?: "externalAccountsFetchingData" | "externalAccountsLoaded";
|
|
314
424
|
externalAccountCategories?: string[];
|
|
315
425
|
}
|
|
316
|
-
declare function export_default$
|
|
426
|
+
declare function export_default$H(props: ExternalAccountsLoadingIndicatorProps): React.JSX.Element | null;
|
|
317
427
|
|
|
318
428
|
interface ExternalAccountsPreviewProps {
|
|
319
429
|
excludeProviders?: boolean;
|
|
@@ -324,31 +434,31 @@ interface ExternalAccountsPreviewProps {
|
|
|
324
434
|
}
|
|
325
435
|
declare type ExternalAccountsApplicationUrl = "preview" | string;
|
|
326
436
|
declare type ExternalAccountsPreviewPreviewState = "Default";
|
|
327
|
-
declare function export_default$
|
|
437
|
+
declare function export_default$G(props: ExternalAccountsPreviewProps): React.JSX.Element | null;
|
|
328
438
|
|
|
329
439
|
declare type ConnectedDevicesPreviewState = "notEnabled" | "notConnected" | "connected";
|
|
330
440
|
|
|
331
441
|
interface FitbitDevicesProps {
|
|
332
442
|
previewState?: ConnectedDevicesPreviewState;
|
|
333
443
|
}
|
|
334
|
-
declare function export_default$
|
|
444
|
+
declare function export_default$F(props: FitbitDevicesProps): React.JSX.Element;
|
|
335
445
|
|
|
336
446
|
declare type MonthChartsPreviewState = "notEnabled" | "notConnected" | "connected";
|
|
337
447
|
|
|
338
448
|
interface FitbitMonthChartsProps {
|
|
339
449
|
previewState?: MonthChartsPreviewState;
|
|
340
450
|
}
|
|
341
|
-
declare function export_default$
|
|
451
|
+
declare function export_default$E(props: FitbitMonthChartsProps): React.JSX.Element;
|
|
342
452
|
|
|
343
453
|
interface GarminDevicesProps {
|
|
344
454
|
previewState?: ConnectedDevicesPreviewState;
|
|
345
455
|
}
|
|
346
|
-
declare function export_default$
|
|
456
|
+
declare function export_default$D(props: GarminDevicesProps): React.JSX.Element;
|
|
347
457
|
|
|
348
458
|
interface GarminMonthChartsProps {
|
|
349
459
|
previewState?: MonthChartsPreviewState;
|
|
350
460
|
}
|
|
351
|
-
declare function export_default$
|
|
461
|
+
declare function export_default$C(props: GarminMonthChartsProps): React.JSX.Element;
|
|
352
462
|
|
|
353
463
|
declare type HealthPreviewSectionConcept = "Medications" | "Immunizations" | "Reports" | "Allergies" | "Conditions" | "Procedures";
|
|
354
464
|
interface HealthPreviewSectionProps {
|
|
@@ -357,7 +467,7 @@ interface HealthPreviewSectionProps {
|
|
|
357
467
|
previewState?: "NoData" | "Default";
|
|
358
468
|
indicatorPosition?: "default" | "topRight";
|
|
359
469
|
}
|
|
360
|
-
declare function export_default$
|
|
470
|
+
declare function export_default$B(props: HealthPreviewSectionProps): React.JSX.Element | null;
|
|
361
471
|
|
|
362
472
|
interface TermInformation {
|
|
363
473
|
TermFamily: string;
|
|
@@ -370,7 +480,7 @@ interface LabResultsSummaryProps {
|
|
|
370
480
|
onClick(): void;
|
|
371
481
|
onViewTermInfo(termInfo: TermInformation): void;
|
|
372
482
|
}
|
|
373
|
-
declare function export_default$
|
|
483
|
+
declare function export_default$A(props: LabResultsSummaryProps): React.JSX.Element | null;
|
|
374
484
|
|
|
375
485
|
interface MostRecentNotificationProps {
|
|
376
486
|
notificationType?: NotificationType;
|
|
@@ -379,33 +489,33 @@ interface MostRecentNotificationProps {
|
|
|
379
489
|
previewState?: MostRecentNotificationPreviewState;
|
|
380
490
|
}
|
|
381
491
|
declare type MostRecentNotificationPreviewState = "Default";
|
|
382
|
-
declare function export_default$
|
|
492
|
+
declare function export_default$z(props: MostRecentNotificationProps): React.JSX.Element | null;
|
|
383
493
|
|
|
384
494
|
interface NotificationListProps {
|
|
385
495
|
notificationType?: NotificationType;
|
|
386
496
|
previewState?: NotificationListPreviewState;
|
|
387
497
|
}
|
|
388
498
|
declare type NotificationListPreviewState = "Default" | "NoData";
|
|
389
|
-
declare function export_default$
|
|
499
|
+
declare function export_default$y(props: NotificationListProps): React.JSX.Element;
|
|
390
500
|
|
|
391
501
|
interface PlatformSpecificContentProps {
|
|
392
502
|
platforms: string[];
|
|
393
503
|
children?: React.ReactNode;
|
|
394
504
|
previewDevicePlatform?: string;
|
|
395
505
|
}
|
|
396
|
-
declare function export_default$
|
|
506
|
+
declare function export_default$x(props: PlatformSpecificContentProps): React.JSX.Element | null;
|
|
397
507
|
|
|
398
508
|
interface ProjectHeaderProps {
|
|
399
509
|
previewState?: ProjectHeaderPropsPreviewState;
|
|
400
510
|
}
|
|
401
511
|
declare type ProjectHeaderPropsPreviewState = "Default";
|
|
402
|
-
declare function export_default$
|
|
512
|
+
declare function export_default$w(props: ProjectHeaderProps): React.JSX.Element;
|
|
403
513
|
|
|
404
514
|
interface ProjectSupportProps {
|
|
405
515
|
previewState?: ProjectSupportPropsPreviewState;
|
|
406
516
|
}
|
|
407
517
|
declare type ProjectSupportPropsPreviewState = "Default";
|
|
408
|
-
declare function export_default$
|
|
518
|
+
declare function export_default$v(props: ProjectSupportProps): React.JSX.Element | null;
|
|
409
519
|
|
|
410
520
|
interface ProviderSearchProps {
|
|
411
521
|
previewState?: ProviderSearchPreviewState;
|
|
@@ -414,18 +524,52 @@ interface ProviderSearchProps {
|
|
|
414
524
|
onProviderSelected?: (provider: ExternalAccountProvider) => void;
|
|
415
525
|
}
|
|
416
526
|
declare type ProviderSearchPreviewState = "Default";
|
|
417
|
-
declare function export_default$
|
|
527
|
+
declare function export_default$u(props: ProviderSearchProps): React.JSX.Element;
|
|
528
|
+
|
|
529
|
+
interface RelativeActivityTodayProps {
|
|
530
|
+
dataTypes: RelativeActivityDataType[];
|
|
531
|
+
previewState?: "Default";
|
|
532
|
+
title?: string;
|
|
533
|
+
}
|
|
534
|
+
interface RelativeActivityDataType {
|
|
535
|
+
dailyDataType: string;
|
|
536
|
+
label: string;
|
|
537
|
+
icon: React.ReactElement;
|
|
538
|
+
color: string;
|
|
539
|
+
formatter: (number: number) => string;
|
|
540
|
+
}
|
|
541
|
+
declare function export_default$t(props: RelativeActivityTodayProps): React.JSX.Element | null;
|
|
542
|
+
|
|
543
|
+
declare type RestingHeartRateCalendarPreviewState = "WithData" | "NoData" | "Loading";
|
|
544
|
+
interface RestingHeartRateCalendarProps {
|
|
545
|
+
month: number;
|
|
546
|
+
year: number;
|
|
547
|
+
showPreviewData: RestingHeartRateCalendarPreviewState;
|
|
548
|
+
}
|
|
549
|
+
declare function export_default$s(props: RestingHeartRateCalendarProps): React.JSX.Element;
|
|
418
550
|
|
|
419
551
|
interface SurveyTaskListProps {
|
|
420
552
|
status: SurveyTaskStatus;
|
|
421
553
|
limit?: number;
|
|
422
554
|
title?: string;
|
|
555
|
+
surveys?: string[];
|
|
423
556
|
onDetailLinkClick?: Function;
|
|
424
|
-
hideDueDate?: boolean;
|
|
425
557
|
previewState?: SurveyTaskListListPreviewState;
|
|
558
|
+
variant?: "noCard" | "singleCard" | "multiCard";
|
|
426
559
|
}
|
|
427
560
|
declare type SurveyTaskListListPreviewState = "IncompleteTasks" | "CompleteTasks";
|
|
428
|
-
declare function export_default$
|
|
561
|
+
declare function export_default$r(props: SurveyTaskListProps): React.JSX.Element | null;
|
|
562
|
+
|
|
563
|
+
interface BlankViewProps {
|
|
564
|
+
children?: React.ReactNode;
|
|
565
|
+
title?: string;
|
|
566
|
+
subtitle?: string;
|
|
567
|
+
showCloseButton?: boolean;
|
|
568
|
+
showBackButton?: boolean;
|
|
569
|
+
colorScheme?: "auto" | "light" | "dark";
|
|
570
|
+
primaryColor?: string;
|
|
571
|
+
}
|
|
572
|
+
declare function export_default$q(props: BlankViewProps): React.JSX.Element;
|
|
429
573
|
|
|
430
574
|
interface ConnectEhrViewProps {
|
|
431
575
|
externalAccountsApplicationUrl: ExternalAccountsApplicationUrl;
|
|
@@ -624,69 +768,8 @@ declare function export_default$1(): React.JSX.Element;
|
|
|
624
768
|
|
|
625
769
|
declare function export_default(callback: Function, delay: number | null): void;
|
|
626
770
|
|
|
627
|
-
declare
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
declare type DailyDataProvider = (startDate: Date, endDate: Date) => Promise<DailyDataQueryResult>;
|
|
631
|
-
declare type DailyDataAvailabilityCheck = (modifiedAfter?: Date) => Promise<boolean>;
|
|
632
|
-
declare function registerDailyDataProvider(type: string, provider: DailyDataProvider, availabilityCheck: DailyDataAvailabilityCheck): void;
|
|
633
|
-
declare function checkDailyDataAvailability(type: string, modifiedAfter?: Date): Promise<boolean>;
|
|
634
|
-
declare function queryDailyData(type: string, startDate: Date, endDate: Date): Promise<DailyDataQueryResult>;
|
|
635
|
-
declare enum DailyDataType {
|
|
636
|
-
AppleHealthDistanceWalkingRunning = "AppleHealthDistanceWalkingRunning",
|
|
637
|
-
AppleHealthFlightsClimbed = "AppleHealthFlightsClimbed",
|
|
638
|
-
AppleHealthHeartRateRange = "AppleHealthHeartRateRange",
|
|
639
|
-
AppleHealthHrv = "AppleHealthHrv",
|
|
640
|
-
AppleHealthMaxHeartRate = "AppleHealthMaxHeartRate",
|
|
641
|
-
AppleHealthRestingHeartRate = "AppleHealthRestingHeartRate",
|
|
642
|
-
AppleHealthSleepMinutes = "AppleHealthSleepMinutes",
|
|
643
|
-
AppleHealthInBedMinutes = "AppleHealthInBedMinutes",
|
|
644
|
-
AppleHealthStandMinutes = "AppleHealthStandMinutes",
|
|
645
|
-
AppleHealthSteps = "AppleHealthSteps",
|
|
646
|
-
AppleHealthWalkingHeartRateAverage = "AppleHealthWalkingHeartRateAverage",
|
|
647
|
-
FitbitSedentaryMinutes = "FitbitSedentaryMinutes",
|
|
648
|
-
FitbitActiveMinutes = "FitbitActiveMinutes",
|
|
649
|
-
FitbitLightlyActiveMinutes = "FitbitLightlyActiveMinutes",
|
|
650
|
-
FitbitFairlyActiveMinutes = "FitbitFairlyActiveMinutes",
|
|
651
|
-
FitbitVeryActiveMinutes = "FitbitVeryActiveMinutes",
|
|
652
|
-
FitbitBreathingRate = "FitbitBreathingRate",
|
|
653
|
-
FitbitCaloriesBurned = "FitbitCaloriesBurned",
|
|
654
|
-
FitbitElevatedHeartRateMinutes = "FitbitElevatedHeartRateMinutes",
|
|
655
|
-
FitbitFatBurnHeartRateMinutes = "FitbitFatBurnHeartRateMinutes",
|
|
656
|
-
FitbitCardioHeartRateMinutes = "FitbitCardioHeartRateMinutes",
|
|
657
|
-
FitbitPeakHeartRateMinutes = "FitbitPeakHeartRateMinutes",
|
|
658
|
-
FitbitFloors = "FitbitFloors",
|
|
659
|
-
FitbitHrv = "FitbitHrv",
|
|
660
|
-
FitbitRestingHeartRate = "FitbitRestingHeartRate",
|
|
661
|
-
FitbitSleepMinutes = "FitbitSleepMinutes",
|
|
662
|
-
FitbitLightSleepMinutes = "FitbitLightSleepMinutes",
|
|
663
|
-
FitbitRemSleepMinutes = "FitbitRemSleepMinutes",
|
|
664
|
-
FitbitDeepSleepMinutes = "FitbitDeepSleepMinutes",
|
|
665
|
-
FitbitSpO2 = "FitbitSpO2",
|
|
666
|
-
FitbitSteps = "FitbitSteps",
|
|
667
|
-
GarminSteps = "GarminSteps",
|
|
668
|
-
GarminDistance = "GarminDistance",
|
|
669
|
-
GarminFloors = "GarminFloors",
|
|
670
|
-
GarminActiveMinutes = "GarminActiveMinutes",
|
|
671
|
-
GarminRestingHeartRate = "GarminRestingHeartRate",
|
|
672
|
-
GarminMinHeartRate = "GarminMinHeartRate",
|
|
673
|
-
GarminMaxHeartRate = "GarminMaxHeartRate",
|
|
674
|
-
GarminAverageHeartRate = "GarminAverageHeartRate",
|
|
675
|
-
GarminMaxStressLevel = "GarminMaxStressLevel",
|
|
676
|
-
GarminAverageStressLevel = "GarminAverageStressLevel",
|
|
677
|
-
GarminTotalStressMinutes = "GarminTotalStressMinutes",
|
|
678
|
-
GarminLowStressMinutes = "GarminLowStressMinutes",
|
|
679
|
-
GarminMediumStressMinutes = "GarminMediumStressMinutes",
|
|
680
|
-
GarminHighStressMinutes = "GarminHighStressMinutes",
|
|
681
|
-
GarminTotalSleepMinutes = "GarminTotalSleepMinutes",
|
|
682
|
-
GarminLightSleepMinutes = "GarminLightSleepMinutes",
|
|
683
|
-
GarminDeepSleepMinutes = "GarminDeepSleepMinutes",
|
|
684
|
-
GarminRemSleepMinutes = "GarminRemSleepMinutes",
|
|
685
|
-
GarminAwakeMinutes = "GarminAwakeMinutes",
|
|
686
|
-
GarminSleepScore = "GarminSleepScore",
|
|
687
|
-
GoogleFitSteps = "GoogleFitSteps",
|
|
688
|
-
Steps = "Steps",
|
|
689
|
-
RestingHeartRate = "RestingHeartRate"
|
|
690
|
-
}
|
|
771
|
+
declare function language(key: string): string;
|
|
772
|
+
|
|
773
|
+
declare function getDayKey(date: Date): string;
|
|
691
774
|
|
|
692
|
-
export { export_default$
|
|
775
|
+
export { export_default$1b as Action, export_default$1a as ActivityMeter, export_default$O as AppDownload, AreaChartOptions, BarChartOptions, export_default$q as BlankView, export_default$19 as Button, export_default$18 as Calendar, export_default$17 as Card, export_default$16 as CardTitle, export_default$g as CelebrationStep, export_default$f as CelebrationStepContainer, export_default$e as ConnectDeviceAccountStep, export_default$d as ConnectDeviceAccountStepContainer, export_default$N as ConnectEhr, export_default$c as ConnectEhrStep, export_default$b as ConnectEhrStepContainer, export_default$p as ConnectEhrView, export_default$M as ConnectFitbit, export_default$L as ConnectGarmin, DailyDataAvailabilityCheck, DailyDataChart, DailyDataProvider, DailyDataQueryResult, DailyDataType, DateRangeNavigatorContext as DateRangeCoordinator, export_default$15 as DateRangeNavigator, export_default$14 as DayTrackerSymbol, DeviceDataChartLine, export_default$K as DeviceDataMonthChart, export_default$J as DeviceDataMonthCharts, export_default$o as DeviceDataView, export_default$I as ExternalAccountList, export_default$H as ExternalAccountsLoadingIndicator, export_default$G as ExternalAccountsPreview, export_default$n as ExternalAccountsView, export_default$13 as Face, export_default$F as FitbitDevices, export_default$E as FitbitMonthCharts, export_default$m as FitbitView, export_default$D as GarminDevices, export_default$C as GarminMonthCharts, export_default$l as GarminView, export_default$j as HealthAndWellnessView, export_default$B as HealthPreviewSection, export_default$12 as Histogram, export_default$k as HomeView, export_default$A as LabResultsSummary, export_default$11 as Layout, LayoutContext, LineChartOptions, LoadingIndicator, export_default$z as MostRecentNotification, export_default$10 as NavigationBar, export_default$y as NotificationList, export_default$i as NotificationsView, export_default$x as PlatformSpecificContent, export_default$w as ProjectHeader, export_default$v as ProjectSupport, export_default$u as ProviderSearch, export_default$t as RelativeActivityToday, export_default$s as RestingHeartRateCalendar, export_default$$ as Section, export_default$_ as SegmentedControl, export_default$Z as ShinyOverlay, export_default$Y as SingleExternalAccount, export_default$X as SingleNotification, export_default$W as SingleSurveyTask, export_default$V as SparkBarChart, SparkBarChartBar, StatusBarBackgroundProps as StatusBarBackground, export_default$a as StepDetailText, export_default$8 as StepImage, export_default$9 as StepImageIcon, export_default$7 as StepLayout, export_default$6 as StepMarkdown, export_default$5 as StepNextButton, export_default$4 as StepText, export_default$3 as StepTitle, export_default$r as SurveyTaskList, export_default$h as SurveyTasksView, export_default$U as Switch, export_default$T as TextBlock, export_default$S as TrackerItem, export_default$R as UnstyledButton, export_default$Q as ViewHeader, export_default$P as WeekCalendar, WeekStartsOn, export_default$2 as YouTubeStep, export_default$1 as YouTubeStepContainer, checkDailyDataAvailability, getDayKey, getMonthStart, getWeekStart, language, queryDailyData, registerDailyDataProvider, export_default as useInterval };
|