@careevolution/mydatahelps-ui 2.12.0 → 2.12.1-MoreAsthma.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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React, { ReactElement, CSSProperties, MouseEventHandler, ReactNode, DependencyList } from 'react';
2
- import { ParticipantInfo, DeviceInfo, SurveyAnswer, ExternalAccountStatus, DeviceDataNamespace, ExternalAccount, NotificationType, ExternalAccountProvider, SurveyTaskStatus, StatusBarStyle, Notification, SurveyTask, InboxMessage, InboxResource, InboxSurvey, InboxItemType, InboxItemStatus, SortOrder, InboxItemSortColumn, InboxItem, EventName } from '@careevolution/mydatahelps-js';
2
+ import { ParticipantInfo, StatusBarStyle, ExternalAccount, Notification, SurveyTask, InboxMessage, InboxResource, InboxSurvey, DeviceInfo, SurveyAnswer, ExternalAccountStatus, DeviceDataNamespace, NotificationType, ExternalAccountProvider, SurveyTaskStatus, InboxItemType, InboxItemStatus, SortOrder, InboxItemSortColumn, InboxItem, EventName } from '@careevolution/mydatahelps-js';
3
3
  import { AxisDomain } from 'recharts/types/util/types';
4
4
  import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
5
5
  import { IconDefinition as IconDefinition$1 } from '@fortawesome/fontawesome-common-types';
@@ -10,7 +10,7 @@ interface AsthmaActionPlanManagerProps {
10
10
  editActionPlanSurveyName: string;
11
11
  innerRef?: React.Ref<HTMLDivElement>;
12
12
  }
13
- declare function export_default$2c(props: AsthmaActionPlanManagerProps): React.JSX.Element;
13
+ declare function export_default$2d(props: AsthmaActionPlanManagerProps): React.JSX.Element;
14
14
 
15
15
  declare class AsthmaParticipant {
16
16
  participantInfo: ParticipantInfo;
@@ -87,7 +87,7 @@ interface AsthmaAirQualitiesProps {
87
87
  date?: Date;
88
88
  innerRef?: React.Ref<HTMLDivElement>;
89
89
  }
90
- declare function export_default$2b(props: AsthmaAirQualitiesProps): React.JSX.Element;
90
+ declare function export_default$2c(props: AsthmaAirQualitiesProps): React.JSX.Element;
91
91
 
92
92
  interface AsthmaAlertTakeoverNoticeProps {
93
93
  previewState?: 'loading' | 'loaded';
@@ -95,7 +95,7 @@ interface AsthmaAlertTakeoverNoticeProps {
95
95
  logEntrySurveyName: string;
96
96
  innerRef?: React.Ref<HTMLDivElement>;
97
97
  }
98
- declare function export_default$2a(props: AsthmaAlertTakeoverNoticeProps): React.JSX.Element;
98
+ declare function export_default$2b(props: AsthmaAlertTakeoverNoticeProps): React.JSX.Element;
99
99
 
100
100
  interface AsthmaAlertTakeoverTriggerProps {
101
101
  previewState?: boolean;
@@ -106,7 +106,7 @@ interface AsthmaAlertTakeoverTriggerProps {
106
106
  alertTakeoverUrl: string;
107
107
  innerRef?: React.Ref<HTMLDivElement>;
108
108
  }
109
- declare function export_default$29(props: AsthmaAlertTakeoverTriggerProps): null;
109
+ declare function export_default$2a(props: AsthmaAlertTakeoverTriggerProps): null;
110
110
 
111
111
  type AsthmaBiometricsPreviewState = 'no data' | 'some data' | 'all data';
112
112
 
@@ -118,7 +118,7 @@ interface AsthmaBiometricsProps {
118
118
  date?: Date;
119
119
  innerRef?: React.Ref<HTMLDivElement>;
120
120
  }
121
- declare function export_default$28(props: AsthmaBiometricsProps): React.JSX.Element;
121
+ declare function export_default$29(props: AsthmaBiometricsProps): React.JSX.Element;
122
122
 
123
123
  type AsthmaControlCalendarPreviewState = 'no logs' | 'some logs';
124
124
 
@@ -130,7 +130,7 @@ interface AsthmaControlCalendarProps {
130
130
  variant?: AsthmaControlCalendarVariant;
131
131
  innerRef?: React.Ref<HTMLDivElement>;
132
132
  }
133
- declare function export_default$27(props: AsthmaControlCalendarProps): React.JSX.Element;
133
+ declare function export_default$28(props: AsthmaControlCalendarProps): React.JSX.Element;
134
134
 
135
135
  type AsthmaControlStatusHeaderPreviewState = 'no data' | 'abnormal dhr' | 'abnormal nhr' | 'abnormal rr' | 'abnormal activity' | 'abnormal sleep' | 'abnormal dbol' | 'abnormal nbol' | 'abnormal home aqi' | 'abnormal work aqi' | 'abnormal multiple' | 'not determined' | 'not controlled' | 'controlled';
136
136
 
@@ -139,7 +139,7 @@ interface AsthmaControlStatusHeaderProps {
139
139
  participant: AsthmaParticipant;
140
140
  innerRef?: React.Ref<HTMLDivElement>;
141
141
  }
142
- declare function export_default$26(props: AsthmaControlStatusHeaderProps): React.JSX.Element | null;
142
+ declare function export_default$27(props: AsthmaControlStatusHeaderProps): React.JSX.Element | null;
143
143
 
144
144
  type AsthmaLogEntryDetailsPreviewState = 'not logged' | 'logged with no symptoms' | 'logged with mild symptoms' | 'logged with moderate symptoms' | 'logged with severe symptoms';
145
145
 
@@ -152,7 +152,7 @@ interface AsthmaLogEntryDetailsProps {
152
152
  infoUrl: string;
153
153
  innerRef?: React.Ref<HTMLDivElement>;
154
154
  }
155
- declare function export_default$25(props: AsthmaLogEntryDetailsProps): React.JSX.Element;
155
+ declare function export_default$26(props: AsthmaLogEntryDetailsProps): React.JSX.Element;
156
156
 
157
157
  type AsthmaLogEntryHeaderPreviewState = 'no logs' | 'today log only' | 'yesterday log only' | 'both logs';
158
158
 
@@ -163,7 +163,7 @@ interface AsthmaLogEntryHeaderProps {
163
163
  dayViewUrl: string;
164
164
  innerRef?: React.Ref<HTMLDivElement>;
165
165
  }
166
- declare function export_default$24(props: AsthmaLogEntryHeaderProps): React.JSX.Element | null;
166
+ declare function export_default$25(props: AsthmaLogEntryHeaderProps): React.JSX.Element | null;
167
167
 
168
168
  interface AsthmaPostEnrollmentSurveyTriggerProps {
169
169
  previewState?: boolean;
@@ -171,31 +171,7 @@ interface AsthmaPostEnrollmentSurveyTriggerProps {
171
171
  postEnrollmentMobileSurveyName: string;
172
172
  innerRef?: React.Ref<HTMLDivElement>;
173
173
  }
174
- declare function export_default$23(props: AsthmaPostEnrollmentSurveyTriggerProps): null;
175
-
176
- declare enum AsthmaDailyDataType {
177
- Steps = "Asthma.Steps",
178
- DaytimeRestingHeartRate = "Asthma.DaytimeRestingHeartRate",
179
- NighttimeRestingHeartRate = "Asthma.NighttimeRestingHeartRate",
180
- RespiratoryRate = "Asthma.RespiratoryRate",
181
- DaytimeBloodOxygenLevel = "Asthma.DaytimeBloodOxygenLevel",
182
- NighttimeBloodOxygenLevel = "Asthma.NighttimeBloodOxygenLevel",
183
- SleepDisturbances = "Asthma.SleepDisturbances"
184
- }
185
- interface AsthmaDataService {
186
- loadParticipant(): Promise<AsthmaParticipant>;
187
- loadDeviceInfo(): Promise<DeviceInfo>;
188
- loadLogEntries(fromDate?: Date, toDate?: Date): Promise<AsthmaLogEntry[]>;
189
- loadBiometricsForControlStatus(): Promise<AsthmaBiometric[]>;
190
- loadBiometricsForDate(date: Date): Promise<AsthmaBiometric[]>;
191
- loadAirQualitiesForControlStatus(homeAirQualityZipCode: string, workAirQualityZipCode: string): Promise<AsthmaAirQuality[]>;
192
- loadAirQualitiesForDate(date: Date): Promise<AsthmaAirQuality[]>;
193
- saveLogEntry(logEntry: AsthmaLogEntry): Promise<void>;
194
- loadAndClearAlertTakeover(): Promise<string | undefined>;
195
- loadSurveyAnswers(surveyNames: string[]): Promise<SurveyAnswer[]>;
196
- loadAsthmaActionPlan(): Promise<AsthmaActionPlan | undefined>;
197
- }
198
- declare const service: AsthmaDataService;
174
+ declare function export_default$24(props: AsthmaPostEnrollmentSurveyTriggerProps): null;
199
175
 
200
176
  type ColorDefinition = string | {
201
177
  lightMode?: string;
@@ -203,1051 +179,1086 @@ type ColorDefinition = string | {
203
179
  };
204
180
  declare function resolveColor(colorScheme: "light" | "dark", colorDefinition?: ColorDefinition): string | undefined;
205
181
 
206
- declare const dateToAsthmaLogEntryIdentifier: (date: Date) => string;
207
- declare const computeAsthmaControlState: (logEntries: AsthmaLogEntry[], date: Date) => AsthmaControlState;
208
- declare const getAsthmaDataStatusText: (status: AsthmaDataStatus) => string;
209
- declare const getAsthmaDataStatusColor: (status: AsthmaDataStatus) => ColorDefinition;
210
- declare const getAsthmaSymptomLevelText: (symptomLevel: AsthmaSymptomLevel) => string;
211
- declare const getAsthmaSymptomLevel: (symptomLevelText: string) => AsthmaSymptomLevel;
212
- declare const getAsthmaSymptomTexts: (symptoms: AsthmaSymptom[] | undefined) => string[];
213
- declare const getAsthmaSymptoms: (symptomTexts: string[]) => AsthmaSymptom[];
214
- declare const getAsthmaImpactTexts: (impacts: AsthmaImpact[] | undefined) => string[];
215
- declare const getAsthmaImpacts: (impactTexts: string[]) => AsthmaImpact[];
216
- declare const getAsthmaTriggerTexts: (triggers: AsthmaTrigger[] | undefined) => string[];
217
- declare const getAsthmaTriggers: (triggerTexts: string[]) => AsthmaTrigger[];
218
- declare const isDaytimeRestingHeartRateWithinRange: (baseline: number, rawValue: number) => boolean;
219
- declare const isNighttimeRestingHeartRateWithinRange: (baseline: number, rawValue: number) => boolean;
220
- declare const isRespiratoryRateWithinRange: (baseline: number, rawValue: number) => boolean;
221
- declare const isStepsWithinRange: (baseline: number, rawValue: number) => boolean;
222
- declare const isSleepDisturbancesWithinRange: (baseline: number, rawValue: number) => boolean;
223
- declare const isBloodOxygenLevelWithinRange: (baseline: number, rawValue: number) => boolean;
224
-
225
- interface AsthmaActionPlanViewProps {
226
- colorScheme?: 'light' | 'dark' | 'auto';
227
- previewState?: 'loading' | 'loaded without action plan' | 'loaded with action plan';
228
- learnMoreUrl: string;
229
- editActionPlanSurveyName: string;
230
- }
231
- declare function export_default$22(props: AsthmaActionPlanViewProps): React.JSX.Element;
232
-
233
- interface AsthmaActivityViewProps {
234
- colorScheme?: 'light' | 'dark' | 'auto';
235
- previewState?: 'default';
236
- alert?: 'Steps';
237
- logEntrySurveyName: string;
238
- }
239
- declare function export_default$21(props: AsthmaActivityViewProps): React.JSX.Element;
240
-
241
- interface AsthmaAirQualityViewProps {
242
- colorScheme?: 'light' | 'dark' | 'auto';
243
- previewState?: 'default';
244
- alert?: 'HomeAirQuality' | 'WorkAirQuality';
245
- logEntrySurveyName: string;
246
- }
247
- declare function export_default$20(props: AsthmaAirQualityViewProps): React.JSX.Element;
248
-
249
- interface AsthmaAlertTakeoverViewProps {
250
- colorScheme?: 'light' | 'dark' | 'auto';
251
- previewState?: 'default';
252
- logEntrySurveyName: string;
253
- }
254
- declare function export_default$1$(props: AsthmaAlertTakeoverViewProps): React.JSX.Element;
255
-
256
- interface AsthmaDayViewProps {
257
- colorScheme?: 'light' | 'dark' | 'auto';
258
- previewState?: 'default';
259
- date: Date;
260
- logTodayEntrySurveyName: string;
261
- logYesterdayEntrySurveyName: string;
262
- editLogEntryUrl: string;
263
- logEntryInfoUrl: string;
264
- heartAndLungsUrl: string;
265
- activityUrl: string;
266
- sleepUrl: string;
267
- airQualityUrl: string;
182
+ interface ActionProps {
183
+ title?: string;
184
+ titleIcon?: ReactElement;
185
+ icon?: ReactElement;
186
+ subtitle?: string;
187
+ onClick?: Function;
188
+ children?: React.ReactNode;
189
+ className?: string;
190
+ indicatorIcon?: IconDefinition;
191
+ indicator?: ReactElement;
192
+ indicatorValue?: string;
193
+ indicatorPosition?: "default" | "topRight";
194
+ bottomBorder?: boolean;
195
+ innerRef?: React.Ref<HTMLDivElement>;
196
+ titleColor?: ColorDefinition;
197
+ subtitleColor?: ColorDefinition;
198
+ renderAs?: "div" | "button";
268
199
  }
269
- declare function export_default$1_(props: AsthmaDayViewProps): React.JSX.Element;
200
+ declare function export_default$23(props: ActionProps): React.JSX.Element;
270
201
 
271
- interface AsthmaHeartAndLungsViewProps {
272
- colorScheme?: 'light' | 'dark' | 'auto';
273
- previewState?: 'default';
274
- alert?: 'DaytimeRestingHeartRate' | 'NighttimeRestingHeartRate' | 'RespiratoryRate' | 'DaytimeBloodOxygenLevel' | 'NighttimeBloodOxygenLevel';
275
- logEntrySurveyName: string;
202
+ interface ActivityMeterProps {
203
+ label: string;
204
+ value: string;
205
+ icon: ReactElement;
206
+ fillPercent: number;
207
+ averageFillPercent: number;
208
+ color: string;
209
+ message?: string;
210
+ className?: string;
211
+ innerRef?: React.Ref<HTMLDivElement>;
276
212
  }
277
- declare function export_default$1Z(props: AsthmaHeartAndLungsViewProps): React.JSX.Element;
278
-
279
- type AsthmaLogEntryEditorViewPreviewState = 'no symptoms' | 'mild symptoms' | 'moderate symptoms' | 'severe symptoms';
213
+ declare function export_default$22(props: ActivityMeterProps): React.JSX.Element;
280
214
 
281
- interface AsthmaLogEntryEditorViewProps {
282
- colorScheme?: 'light' | 'dark' | 'auto';
283
- previewState?: 'loading' | AsthmaLogEntryEditorViewPreviewState;
284
- date: Date;
215
+ type ButtonVariant = "default" | "subtle" | "light";
216
+ interface ButtonProps {
217
+ children?: React.ReactNode;
218
+ disabled?: boolean;
219
+ onClick: Function;
220
+ className?: string;
221
+ color?: ColorDefinition;
222
+ loading?: boolean;
223
+ variant?: ButtonVariant;
224
+ innerRef?: React.Ref<HTMLButtonElement>;
225
+ defaultMargin?: boolean;
226
+ fullWidth?: boolean;
285
227
  }
286
- declare function export_default$1Y(props: AsthmaLogEntryEditorViewProps): React.JSX.Element | null;
228
+ declare function export_default$21(props: ButtonProps): React.JSX.Element;
287
229
 
288
- interface AsthmaSleepViewProps {
289
- colorScheme?: 'light' | 'dark' | 'auto';
290
- previewState?: 'default';
291
- alert?: 'SleepDisturbances';
292
- logEntrySurveyName: string;
230
+ interface CalendarProps {
231
+ month: number;
232
+ year: number;
233
+ dayRenderer(year: number, month: number, day?: number): JSX.Element | null;
234
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
235
+ className?: string;
236
+ innerRef?: React.Ref<HTMLDivElement>;
293
237
  }
294
- declare function export_default$1X(props: AsthmaSleepViewProps): React.JSX.Element;
238
+ declare function export_default$20(props: CalendarProps): React.JSX.Element;
295
239
 
296
- interface TermInformation {
297
- TermFamily: string;
298
- TermNamespace: string;
299
- TermCode: string;
240
+ type CalendarDayStateConfiguration = Record<string, {
241
+ style?: CSSProperties;
242
+ streak?: boolean;
243
+ streakColor?: ColorDefinition;
244
+ }>;
245
+ interface CalendarDayProps {
246
+ year: number;
247
+ month: number;
248
+ day?: number;
249
+ stateConfiguration: CalendarDayStateConfiguration;
250
+ computeStateForDay: (date: Date) => string;
251
+ onClick?: (date: Date) => void;
252
+ innerRef?: React.Ref<HTMLDivElement>;
300
253
  }
254
+ declare function export_default$1$(props: CalendarDayProps): React.JSX.Element;
301
255
 
302
- interface AllergiesListProps {
303
- previewState?: "default";
304
- onViewTermInfo(termInfo: TermInformation): void;
256
+ interface CardProps {
257
+ className?: string;
258
+ children?: React.ReactNode;
259
+ allowOverflow?: boolean;
305
260
  innerRef?: React.Ref<HTMLDivElement>;
261
+ variant?: "default" | "subtle" | "highlight";
262
+ backgroundColor?: ColorDefinition;
263
+ style?: React.CSSProperties;
306
264
  }
307
- declare function export_default$1W(props: AllergiesListProps): React.JSX.Element;
265
+ declare function export_default$1_(props: CardProps): React.JSX.Element | null;
308
266
 
309
- interface AppDownloadProps {
310
- previewProjectPlatforms?: string[];
311
- previewDevicePlatform?: string;
267
+ interface CardTitleProps {
268
+ title: string;
269
+ onDetailClick?: Function;
270
+ detailLinkText?: string;
312
271
  innerRef?: React.Ref<HTMLDivElement>;
313
- title?: string;
314
- text?: string;
272
+ color?: ColorDefinition;
315
273
  }
316
- declare function export_default$1V(props: AppDownloadProps): React.JSX.Element | null;
274
+ declare function export_default$1Z(props: CardTitleProps): React.JSX.Element;
317
275
 
318
276
  type WeekStartsOn = "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "6DaysAgo" | "7DaysAgo";
319
277
  declare function getWeekStart(weekStartsOn?: WeekStartsOn): Date;
320
278
  declare function getMonthStart(): Date;
321
279
 
322
- interface SurveyBloodPressureDataParameters {
323
- surveyName: string;
324
- dateResultIdentifier: string;
325
- systolicResultIdentifier: string;
326
- diastolicResultIdentifier: string;
327
- }
328
- interface BloodPressureDataPoint {
329
- date: Date;
330
- systolic: number;
331
- diastolic: number;
332
- }
333
- declare function export_default$1U(props: SurveyBloodPressureDataParameters): Promise<BloodPressureDataPoint[]>;
334
-
335
- type BloodPressurePreviewState = "Default" | "NoData" | "Loading";
336
- interface BloodPressureVisualizationProps {
337
- previewState?: BloodPressurePreviewState;
338
- surveyDataSource: SurveyBloodPressureDataParameters;
280
+ interface DateRangeCoordinatorProps {
281
+ initialIntervalStart?: Date;
282
+ intervalType: "Week" | "Month";
339
283
  weekStartsOn?: WeekStartsOn;
284
+ variant?: "default" | "rounded";
285
+ children: React.ReactNode;
340
286
  innerRef?: React.Ref<HTMLDivElement>;
287
+ sticky?: boolean;
341
288
  }
342
- declare function export_default$1T(props: BloodPressureVisualizationProps): React.JSX.Element;
343
-
344
- interface ConditionsListProps {
345
- previewState?: "default";
346
- onViewTermInfo(termInfo: TermInformation): void;
347
- innerRef?: React.Ref<HTMLDivElement>;
289
+ interface DateRangeContext {
290
+ intervalType: "Week" | "Month";
291
+ intervalStart: Date;
348
292
  }
349
- declare function export_default$1S(props: ConditionsListProps): React.JSX.Element;
293
+ declare const DateRangeContext: React.Context<DateRangeContext | null>;
294
+ declare function DateRangeNavigatorContext(props: DateRangeCoordinatorProps): React.JSX.Element;
350
295
 
351
- type DeviceAccountType = "Fitbit" | "Garmin" | "AppleHealth" | "GoogleFit" | "Omron";
352
- interface ConnectDevicesMenuProps {
296
+ interface DateRangeNavigatorProps {
297
+ intervalType: "Week" | "Month";
298
+ intervalStart: Date;
299
+ variant?: "default" | "rounded";
300
+ onIntervalChange(newIntervalStart: Date, newIntervalEnd: Date): void;
301
+ className?: string;
353
302
  innerRef?: React.Ref<HTMLDivElement>;
354
- accountTypes?: DeviceAccountType[];
355
- title?: string;
356
- text?: string;
357
- previewState?: "iOS" | "Android" | "Web" | "ConnectedStates";
358
- headerVariant?: "large" | "medium";
303
+ sticky?: boolean;
359
304
  }
360
- declare function export_default$1R(props: ConnectDevicesMenuProps): React.JSX.Element | null;
305
+ declare function export_default$1Y(props: DateRangeNavigatorProps): React.JSX.Element;
361
306
 
362
- interface ConnectEhrProps {
363
- applicationUrl: ConnectEhrApplicationUrl;
364
- previewState?: ConnectEhrPreviewState;
365
- disabledBehavior?: 'hide' | 'displayError';
366
- bottomBorder?: boolean;
307
+ interface DayTrackerSymbolProps {
308
+ primaryColors: string[];
309
+ secondaryColors: string[];
310
+ className?: string;
311
+ size?: "small" | "large";
367
312
  innerRef?: React.Ref<HTMLDivElement>;
368
- variant?: "large" | "medium" | "small";
369
- title?: string;
370
- notConnectedText?: string;
371
- connectedText?: string;
372
- hideWhenConnected?: boolean;
373
- buttonColor?: ColorDefinition;
374
313
  }
375
- type ConnectEhrApplicationUrl = "preview" | string;
376
- type ConnectEhrPreviewState = "notEnabled" | "enabled" | "enabledConnected" | "enabledNeedsAttention";
377
- declare function export_default$1Q(props: ConnectEhrProps): React.JSX.Element | null;
314
+ declare function export_default$1X(props: DayTrackerSymbolProps): React.JSX.Element;
378
315
 
379
- interface ConnectFitbitProps {
380
- title?: string;
381
- fitbitProviderID?: number;
382
- previewState?: ConnectFitbitPreviewState;
383
- disabledBehavior?: 'hide' | 'displayError';
384
- innerRef?: React.Ref<HTMLDivElement>;
385
- hideWhenConnected?: boolean;
316
+ interface ClosedInterval {
317
+ values: number[];
386
318
  }
387
- type ConnectFitbitPreviewState = ExternalAccountStatus | "notConnected" | "notEnabled";
388
- declare function export_default$1P(props: ConnectFitbitProps): React.JSX.Element;
389
-
390
- interface ConnectGarminProps {
391
- title?: string;
392
- garminProviderID?: number;
393
- previewState?: ConnectGarminPreviewState;
394
- disabledBehavior?: 'hide' | 'displayError';
395
- innerRef?: React.Ref<HTMLDivElement>;
396
- hideWhenConnected?: boolean;
397
- }
398
- type ConnectGarminPreviewState = ExternalAccountStatus | "notConnected" | "notEnabled";
399
- declare function export_default$1O(props: ConnectGarminProps): React.JSX.Element;
400
-
401
- type DailyDataQueryResult = {
402
- [key: string]: number;
403
- };
404
- type DailyDataProvider = (startDate: Date, endDate: Date) => Promise<DailyDataQueryResult>;
405
- type DailyDataAvailabilityCheck = (modifiedAfter?: Date) => Promise<boolean>;
406
- declare function registerDailyDataProvider(type: string, provider: DailyDataProvider, availabilityCheck: DailyDataAvailabilityCheck): void;
407
- declare function checkDailyDataAvailability(type: string, modifiedAfter?: Date): Promise<boolean>;
408
- declare function queryDailyData(type: string, startDate: Date, endDate: Date): Promise<DailyDataQueryResult>;
409
- declare function simpleAvailabilityCheck(namespace: DeviceDataNamespace, type: string | string[]): (modifiedAfter?: Date) => Promise<boolean>;
410
- declare enum DailyDataType {
411
- AppleHealthDistanceWalkingRunning = "AppleHealthDistanceWalkingRunning",
412
- AppleHealthFlightsClimbed = "AppleHealthFlightsClimbed",
413
- AppleHealthHeartRateRange = "AppleHealthHeartRateRange",
414
- AppleHealthHrv = "AppleHealthHrv",
415
- AppleHealthMaxHeartRate = "AppleHealthMaxHeartRate",
416
- AppleHealthRestingHeartRate = "AppleHealthRestingHeartRate",
417
- AppleHealthSleepMinutes = "AppleHealthSleepMinutes",
418
- AppleHealthInBedMinutes = "AppleHealthInBedMinutes",
419
- AppleHealthStandMinutes = "AppleHealthStandMinutes",
420
- AppleHealthSteps = "AppleHealthSteps",
421
- AppleHealthWalkingHeartRateAverage = "AppleHealthWalkingHeartRateAverage",
422
- AppleHealthActiveEnergyBurned = "AppleHealthActiveEnergyBurned",
423
- FitbitSedentaryMinutes = "FitbitSedentaryMinutes",
424
- FitbitActiveMinutes = "FitbitActiveMinutes",
425
- FitbitLightlyActiveMinutes = "FitbitLightlyActiveMinutes",
426
- FitbitFairlyActiveMinutes = "FitbitFairlyActiveMinutes",
427
- FitbitVeryActiveMinutes = "FitbitVeryActiveMinutes",
428
- FitbitBreathingRate = "FitbitBreathingRate",
429
- FitbitCaloriesBurned = "FitbitCaloriesBurned",
430
- FitbitElevatedHeartRateMinutes = "FitbitElevatedHeartRateMinutes",
431
- FitbitFatBurnHeartRateMinutes = "FitbitFatBurnHeartRateMinutes",
432
- FitbitCardioHeartRateMinutes = "FitbitCardioHeartRateMinutes",
433
- FitbitPeakHeartRateMinutes = "FitbitPeakHeartRateMinutes",
434
- FitbitFloors = "FitbitFloors",
435
- FitbitHrv = "FitbitHrv",
436
- FitbitRestingHeartRate = "FitbitRestingHeartRate",
437
- FitbitSleepMinutes = "FitbitSleepMinutes",
438
- FitbitLightSleepMinutes = "FitbitLightSleepMinutes",
439
- FitbitRemSleepMinutes = "FitbitRemSleepMinutes",
440
- FitbitDeepSleepMinutes = "FitbitDeepSleepMinutes",
441
- FitbitSpO2 = "FitbitSpO2",
442
- FitbitSteps = "FitbitSteps",
443
- GarminSteps = "GarminSteps",
444
- GarminDistance = "GarminDistance",
445
- GarminFloors = "GarminFloors",
446
- GarminActiveMinutes = "GarminActiveMinutes",
447
- GarminActiveCalories = "GarminActiveCalories",
448
- GarminRestingCalories = "GarminRestingCalories",
449
- GarminTotalCalories = "GarminTotalCalories",
450
- GarminRestingHeartRate = "GarminRestingHeartRate",
451
- GarminMinHeartRate = "GarminMinHeartRate",
452
- GarminMaxHeartRate = "GarminMaxHeartRate",
453
- GarminAverageHeartRate = "GarminAverageHeartRate",
454
- GarminMaxStressLevel = "GarminMaxStressLevel",
455
- GarminAverageStressLevel = "GarminAverageStressLevel",
456
- GarminTotalStressMinutes = "GarminTotalStressMinutes",
457
- GarminLowStressMinutes = "GarminLowStressMinutes",
458
- GarminMediumStressMinutes = "GarminMediumStressMinutes",
459
- GarminHighStressMinutes = "GarminHighStressMinutes",
460
- GarminTotalSleepMinutes = "GarminTotalSleepMinutes",
461
- GarminLightSleepMinutes = "GarminLightSleepMinutes",
462
- GarminDeepSleepMinutes = "GarminDeepSleepMinutes",
463
- GarminRemSleepMinutes = "GarminRemSleepMinutes",
464
- GarminAwakeMinutes = "GarminAwakeMinutes",
465
- GarminSleepScore = "GarminSleepScore",
466
- GoogleFitSteps = "GoogleFitSteps",
467
- Steps = "Steps",
468
- RestingHeartRate = "RestingHeartRate",
469
- HomeAirQuality = "HomeAirQuality",
470
- WorkAirQuality = "WorkAirQuality"
471
- }
472
-
473
- interface DailyDataChartProps {
474
- title?: string;
475
- intervalType?: "Week" | "Month";
476
- weekStartsOn?: WeekStartsOn;
477
- dailyDataType: string;
478
- valueConverter?(value: number): number;
479
- valueFormatter?(value: number): string;
480
- chartType: "Line" | "Bar" | "Area";
481
- options?: LineChartOptions | BarChartOptions | AreaChartOptions;
482
- hideIfNoData?: boolean;
483
- previewDataProvider?: DailyDataProvider;
484
- innerRef?: React.Ref<HTMLDivElement>;
485
- }
486
- interface LineChartOptions {
487
- lineColor?: string;
488
- domainMin?: number | "Auto";
319
+ interface DataPoint {
320
+ dataSet1: ClosedInterval;
321
+ dataSet2: ClosedInterval;
489
322
  }
490
- interface BarChartOptions {
491
- barColor?: string;
323
+ interface Dumbbell {
324
+ dataPoint?: DataPoint;
325
+ xValue: string;
326
+ class?: DumbbellClass;
492
327
  }
493
- interface AreaChartOptions {
494
- lineColor?: string;
495
- areaColor?: string;
328
+ interface Axis {
329
+ yRange: ClosedInterval;
330
+ yIncrement: number;
331
+ xIncrement: number;
496
332
  }
497
- declare function DailyDataChart(props: DailyDataChartProps): React.JSX.Element | null;
498
-
499
- interface DeviceDataMonthChartProps {
500
- lines: DeviceDataChartLine[];
501
- month: number;
502
- year: number;
503
- syncId?: string;
504
- title?: string;
505
- previewState?: DeviceDataMonthChartPreviewState;
506
- onDataDetected?: Function;
507
- innerRef?: React.Ref<HTMLDivElement>;
333
+ interface DumbBellChartProps {
334
+ axis: Axis;
335
+ dumbbells: Dumbbell[];
508
336
  }
509
- interface DeviceDataChartLine {
510
- label: string;
511
- dailyDataType: string;
512
- valueConverter?: Function;
513
- showAverage?: boolean;
337
+ declare enum DumbbellClass {
338
+ "mdhui-dumbbell-in-range" = 0,
339
+ "mdhui-dumbbell-out-of-range" = 1
514
340
  }
515
- type DeviceDataMonthChartPreviewState = "WithData" | "NoData" | "Loading";
516
- declare function export_default$1N(props: DeviceDataMonthChartProps): React.JSX.Element | null;
341
+ declare function export_default$1W(props: DumbBellChartProps): React.JSX.Element;
517
342
 
518
- interface DeviceDataMonthChartsProps {
519
- previewState?: DeviceDataMonthChartsPreviewState;
343
+ interface FaceProps {
344
+ faceValue?: number;
345
+ selected?: boolean;
346
+ onClick?: MouseEventHandler;
347
+ className?: string;
348
+ innerRef?: React.Ref<HTMLButtonElement>;
520
349
  }
521
- type DeviceDataMonthChartsPreviewState = "Default" | "NoData";
522
- declare function export_default$1M(props: DeviceDataMonthChartsProps): React.JSX.Element;
350
+ declare function export_default$1V(props: FaceProps): React.JSX.Element;
523
351
 
524
- interface ExternalAccountListProps {
525
- externalAccountProviderCategories?: string[];
526
- previewState?: NotificationListPreviewState$1;
527
- onExternalAccountsLoaded?: (accounts: ExternalAccount[]) => void;
352
+ interface HistogramProps {
353
+ entries: {
354
+ label: string;
355
+ color: string;
356
+ value: number;
357
+ onSelect?(): void;
358
+ }[];
359
+ className?: string;
528
360
  innerRef?: React.Ref<HTMLDivElement>;
529
361
  }
530
- type NotificationListPreviewState$1 = "Default";
531
- declare function export_default$1L(props: ExternalAccountListProps): React.JSX.Element;
362
+ declare function export_default$1U(props: HistogramProps): React.JSX.Element;
532
363
 
533
- interface ExternalAccountsLoadingIndicatorProps {
534
- previewState?: "externalAccountsFetchingData" | "externalAccountsLoaded";
535
- externalAccountCategories?: string[];
364
+ interface LayoutProps {
365
+ children?: React.ReactNode;
366
+ bodyBackgroundColor?: ColorDefinition;
367
+ primaryColor?: ColorDefinition;
368
+ statusBarStyle?: StatusBarStyle;
369
+ className?: string;
370
+ noGlobalStyles?: boolean;
371
+ colorScheme?: "light" | "dark" | "auto";
372
+ /**
373
+ * @deprecated
374
+ */
375
+ stylesheetPath?: string;
536
376
  innerRef?: React.Ref<HTMLDivElement>;
537
377
  }
538
- declare function export_default$1K(props: ExternalAccountsLoadingIndicatorProps): React.JSX.Element | null;
539
-
540
- interface ExternalAccountsPreviewProps {
541
- excludeProviders?: boolean;
542
- excludeHealthPlans?: boolean;
543
- excludeDeviceManufacturers?: boolean;
544
- applicationUrl: ExternalAccountsApplicationUrl;
545
- previewState?: ExternalAccountsPreviewPreviewState;
546
- innerRef?: React.Ref<HTMLDivElement>;
378
+ interface LayoutContext {
379
+ colorScheme: "light" | "dark";
380
+ bodyBackgroundColor: string;
547
381
  }
548
- type ExternalAccountsApplicationUrl = "preview" | string;
549
- type ExternalAccountsPreviewPreviewState = "Default";
550
- declare function export_default$1J(props: ExternalAccountsPreviewProps): React.JSX.Element | null;
551
-
552
- type ConnectedDevicesPreviewState = "notEnabled" | "notConnected" | "connected";
382
+ declare const LayoutContext: React.Context<LayoutContext>;
383
+ declare function export_default$1T(props: LayoutProps): React.JSX.Element;
553
384
 
554
- interface FitbitDevicesProps {
555
- previewState?: ConnectedDevicesPreviewState;
385
+ interface LoadingIndicatorProps {
386
+ variant?: "default" | "inline";
387
+ color?: string;
388
+ className?: string;
556
389
  innerRef?: React.Ref<HTMLDivElement>;
557
390
  }
558
- declare function export_default$1I(props: FitbitDevicesProps): React.JSX.Element;
391
+ declare function LoadingIndicator(props: LoadingIndicatorProps): React.JSX.Element;
559
392
 
560
- type MonthChartsPreviewState = "notEnabled" | "notConnected" | "connected";
393
+ interface NavigationBarProps {
394
+ title?: string;
395
+ subtitle?: string;
396
+ showBackButton?: boolean;
397
+ showCloseButton?: boolean;
398
+ children?: React.ReactNode;
399
+ closeButtonText?: string;
400
+ backButtonText?: string;
401
+ className?: string;
402
+ variant?: 'default' | 'compressed';
403
+ titleColor?: ColorDefinition;
404
+ subtitleColor?: ColorDefinition;
405
+ buttonColor?: ColorDefinition;
406
+ navigationBarLeft?: React.ReactNode;
407
+ navigationBarRight?: React.ReactNode;
408
+ backgroundColor?: ColorDefinition;
409
+ }
410
+ declare function export_default$1S(props: NavigationBarProps): React.JSX.Element;
561
411
 
562
- interface FitbitMonthChartsProps {
563
- previewState?: MonthChartsPreviewState;
412
+ interface NotesInputProps {
413
+ autoTimestamp?: boolean;
414
+ placeholder?: string;
415
+ onChange(value: string): void;
416
+ value: string;
564
417
  }
565
- declare function export_default$1H(props: FitbitMonthChartsProps): React.JSX.Element;
418
+ declare function export_default$1R(props: NotesInputProps): React.JSX.Element;
566
419
 
567
- interface GarminDevicesProps {
568
- previewState?: ConnectedDevicesPreviewState;
420
+ interface ProgressBarProps {
421
+ backgroundColor?: ColorDefinition;
422
+ borderColor?: ColorDefinition;
423
+ fillColor?: ColorDefinition;
424
+ fillPercent: number;
425
+ steps?: {
426
+ percent: number;
427
+ icon: ReactElement;
428
+ }[];
569
429
  innerRef?: React.Ref<HTMLDivElement>;
430
+ defaultMargin?: boolean;
431
+ }
432
+ declare function ProgressBar(props: ProgressBarProps): React.JSX.Element;
433
+ declare namespace ProgressBar {
434
+ var defaultProps: {
435
+ backgroundColor: string;
436
+ fillColor: string;
437
+ fillPercent: number;
438
+ };
570
439
  }
571
- declare function export_default$1G(props: GarminDevicesProps): React.JSX.Element;
572
440
 
573
- interface GarminMonthChartsProps {
574
- previewState?: MonthChartsPreviewState;
441
+ interface ProgressBarStepProps {
442
+ borderColor?: ColorDefinition;
443
+ backgroundColor?: ColorDefinition;
444
+ children?: React.ReactNode;
445
+ height: string;
575
446
  }
576
- declare function export_default$1F(props: GarminMonthChartsProps): React.JSX.Element;
447
+ declare function ProgressBarStep(props: ProgressBarStepProps): React.JSX.Element;
577
448
 
578
- type HealthPreviewSectionConcept = "Medications" | "Immunizations" | "Reports" | "Allergies" | "Conditions" | "Procedures";
579
- interface HealthPreviewSectionProps {
580
- concept: HealthPreviewSectionConcept;
581
- onClick(): void;
582
- previewState?: "NoData" | "Default";
583
- indicatorPosition?: "default" | "topRight";
584
- innerRef?: React.Ref<HTMLDivElement>;
449
+ interface ProgressRingProps {
450
+ children: React.ReactNode;
451
+ style?: CSSProperties;
452
+ color?: ColorDefinition;
453
+ percentCompleted?: number;
454
+ animate?: boolean;
585
455
  }
586
- declare function export_default$1E(props: HealthPreviewSectionProps): React.JSX.Element | null;
456
+ declare function export_default$1Q(props: ProgressRingProps): React.JSX.Element;
587
457
 
588
- interface LabResultsSummaryProps {
589
- previewState?: "ImportantLabs" | "RecentLabs" | "NoData";
590
- onClick(): void;
591
- onViewTermInfo(termInfo: TermInformation): void;
458
+ type ResourceImageAlignment = 'left' | 'center' | 'right';
459
+ interface ResourceProps {
460
+ imageUrl?: string;
461
+ title: string;
462
+ subTitle?: string;
463
+ imageAlignment?: ResourceImageAlignment;
464
+ buttonText?: string;
465
+ onClick: () => void;
466
+ hideButton?: boolean;
592
467
  innerRef?: React.Ref<HTMLDivElement>;
593
468
  }
594
- declare function export_default$1D(props: LabResultsSummaryProps): React.JSX.Element | null;
469
+ declare function export_default$1P(props: ResourceProps): React.JSX.Element;
595
470
 
596
- interface MedicationsListProps {
597
- previewState?: "default";
598
- onViewTermInfo(termInfo: TermInformation): void;
471
+ type ResourceListPreviewState = 'no resources' | 'some resources';
472
+
473
+ interface ResourceDefinition {
474
+ title: string;
475
+ subTitle?: string;
476
+ url: string;
477
+ imageUrl?: string;
478
+ }
479
+ interface ResourceListProps {
480
+ previewState?: ResourceListPreviewState;
481
+ resources: ResourceDefinition[];
482
+ onViewResource: (resource: ResourceDefinition) => void;
483
+ emptyText?: string;
484
+ imageAlignment?: ResourceImageAlignment;
599
485
  innerRef?: React.Ref<HTMLDivElement>;
600
486
  }
601
- declare function export_default$1C(props: MedicationsListProps): React.JSX.Element;
487
+ declare function export_default$1O(props: ResourceListProps): React.JSX.Element;
602
488
 
603
- interface MostRecentNotificationProps {
604
- notificationType?: NotificationType;
605
- onViewMore?: Function;
606
- hideAfterHours?: number;
607
- previewState?: MostRecentNotificationPreviewState;
489
+ type RotatingComponentInterval = 'day' | 'week' | 'month';
490
+ interface RotatingComponentCoordinatorProps {
491
+ interval?: RotatingComponentInterval;
492
+ children: React.ReactNode;
493
+ startDate: Date;
608
494
  innerRef?: React.Ref<HTMLDivElement>;
609
495
  }
610
- type MostRecentNotificationPreviewState = "Default";
611
- declare function export_default$1B(props: MostRecentNotificationProps): React.JSX.Element | null;
496
+ declare function export_default$1N(props: RotatingComponentCoordinatorProps): React.JSX.Element;
612
497
 
613
- interface NotificationListProps {
614
- notificationType?: NotificationType;
615
- previewState?: NotificationListPreviewState;
498
+ interface SectionProps {
499
+ children?: React.ReactNode;
500
+ className?: string;
501
+ noTopMargin?: boolean;
616
502
  innerRef?: React.Ref<HTMLDivElement>;
503
+ backgroundColor?: ColorDefinition;
504
+ style?: React.CSSProperties;
617
505
  }
618
- type NotificationListPreviewState = "Default" | "NoData";
619
- declare function export_default$1A(props: NotificationListProps): React.JSX.Element;
506
+ declare function export_default$1M(props: SectionProps): React.JSX.Element | null;
620
507
 
621
- interface PlatformSpecificContentProps {
622
- platforms: string[];
623
- children?: React.ReactNode;
624
- previewDevicePlatform?: string;
508
+ interface SegmentedControlProps {
509
+ segments: {
510
+ key: string;
511
+ title: string;
512
+ }[];
513
+ selectedSegment?: string;
514
+ onSegmentSelected(segmentKey: string): void;
515
+ className?: string;
516
+ color?: string;
517
+ variant?: "default" | "optionsHorizontal" | "optionsVertical";
625
518
  innerRef?: React.Ref<HTMLDivElement>;
626
519
  }
627
- declare function export_default$1z(props: PlatformSpecificContentProps): React.JSX.Element | null;
520
+ declare function export_default$1L(props: SegmentedControlProps): React.JSX.Element;
628
521
 
629
- interface ProjectHeaderProps {
630
- previewState?: ProjectHeaderPropsPreviewState;
522
+ declare function export_default$1K(): React.JSX.Element;
523
+
524
+ interface SingleDataPointProps {
525
+ label: string;
526
+ statusText?: string;
527
+ statusColor?: ColorDefinition;
528
+ value?: string;
529
+ units?: string;
530
+ onClick?: () => void;
631
531
  innerRef?: React.Ref<HTMLDivElement>;
632
532
  }
633
- type ProjectHeaderPropsPreviewState = "Default";
634
- declare function export_default$1y(props: ProjectHeaderProps): React.JSX.Element;
533
+ declare function export_default$1J(props: SingleDataPointProps): React.JSX.Element;
635
534
 
636
- interface ProjectSupportProps {
637
- previewState?: ProjectSupportPropsPreviewState;
535
+ interface SingleExternalAccountProps {
536
+ externalAccount: ExternalAccount;
537
+ onAccountRemoved: (account: ExternalAccount) => void;
538
+ onReconnectAccount: (account: ExternalAccount) => void;
638
539
  innerRef?: React.Ref<HTMLDivElement>;
639
540
  }
640
- type ProjectSupportPropsPreviewState = "Default";
641
- declare function export_default$1x(props: ProjectSupportProps): React.JSX.Element | null;
541
+ declare function export_default$1I(props: SingleExternalAccountProps): React.JSX.Element;
642
542
 
643
- interface ProviderSearchProps {
644
- previewState?: ProviderSearchPreviewState;
645
- providerCategories?: string[];
646
- onProviderConnected?: (provider: ExternalAccountProvider) => void;
543
+ interface SingleNotificationProps {
544
+ notification: Notification;
647
545
  innerRef?: React.Ref<HTMLDivElement>;
648
546
  }
649
- type ProviderSearchPreviewState = "Default";
650
- declare function export_default$1w(props: ProviderSearchProps): React.JSX.Element;
547
+ declare function export_default$1H(props: SingleNotificationProps): React.JSX.Element;
651
548
 
652
- interface RecentDailyDataBarChartProps {
653
- previewState?: 'loading' | 'loaded without data' | 'loaded with data';
654
- previewDataProvider?: (start: Date, end: Date) => Promise<DailyDataQueryResult>;
655
- title: string;
656
- dailyDataType: string;
657
- domain?: AxisDomain;
658
- emptyDomain?: AxisDomain;
659
- valueConverter?: (rawValue: number) => number;
660
- valueFormatter?: (value: number) => string;
661
- highlight?: (rawValue: number) => boolean;
549
+ type SingleSurveyTaskVariant = 'default' | 'expanded';
550
+ interface SingleSurveyTaskProps {
551
+ task: SurveyTask;
552
+ onClick: () => void;
553
+ variant?: SingleSurveyTaskVariant;
554
+ descriptionIcon?: IconDefinition$1;
555
+ surveyActive?: boolean;
556
+ buttonColor?: ColorDefinition;
557
+ buttonVariant?: ButtonVariant;
662
558
  innerRef?: React.Ref<HTMLDivElement>;
663
559
  }
664
- declare function export_default$1v(props: RecentDailyDataBarChartProps): React.JSX.Element;
560
+ declare function export_default$1G(props: SingleSurveyTaskProps): React.JSX.Element | null;
665
561
 
666
- interface RelativeActivityTodayProps {
667
- dataTypes: RelativeActivityDataType[];
668
- previewState?: "Default";
669
- title?: string;
562
+ interface SparkBarChartProps {
563
+ averageFillPercent: number;
564
+ bars: SparkBarChartBar[];
670
565
  innerRef?: React.Ref<HTMLDivElement>;
671
566
  }
672
- interface RelativeActivityDataType {
673
- dailyDataType: string;
674
- label: string;
675
- icon: React.ReactElement;
567
+ interface SparkBarChartBar {
676
568
  color: string;
677
- formatter: (number: number) => string;
569
+ barFillPercent: number;
678
570
  }
679
- declare function export_default$1u(props: RelativeActivityTodayProps): React.JSX.Element | null;
571
+ declare function export_default$1F(props: SparkBarChartProps): React.JSX.Element;
680
572
 
681
- type RestingHeartRateCalendarPreviewState = "WithData" | "NoData" | "Loading";
682
- interface RestingHeartRateCalendarProps {
683
- month: number;
684
- year: number;
685
- showPreviewData: RestingHeartRateCalendarPreviewState;
573
+ interface SwitchProps {
574
+ isOn: Boolean;
575
+ onBackgroundColor?: string;
576
+ onValueChanged(value: boolean): void;
577
+ className?: string;
578
+ innerRef?: React.Ref<HTMLButtonElement>;
579
+ }
580
+ declare function export_default$1E(props: SwitchProps): React.JSX.Element;
581
+
582
+ interface StatusBarBackgroundProps {
583
+ color?: string;
686
584
  innerRef?: React.Ref<HTMLDivElement>;
687
585
  }
688
- declare function export_default$1t(props: RestingHeartRateCalendarProps): React.JSX.Element;
586
+ declare function StatusBarBackgroundProps(props: StatusBarBackgroundProps): React.JSX.Element;
689
587
 
690
- type ButtonVariant = "default" | "subtle" | "light";
691
- interface ButtonProps {
588
+ interface TextBlockProps {
692
589
  children?: React.ReactNode;
693
- disabled?: boolean;
694
- onClick: Function;
695
590
  className?: string;
591
+ innerRef?: React.Ref<HTMLDivElement>;
696
592
  color?: ColorDefinition;
697
- loading?: boolean;
698
- variant?: ButtonVariant;
699
- innerRef?: React.Ref<HTMLButtonElement>;
700
- defaultMargin?: boolean;
701
- fullWidth?: boolean;
593
+ style?: React.CSSProperties;
702
594
  }
703
- declare function export_default$1s(props: ButtonProps): React.JSX.Element;
595
+ declare function export_default$1D(props: TextBlockProps): React.JSX.Element | null;
704
596
 
705
- interface SurveyTaskListProps {
706
- status: SurveyTaskStatus;
707
- limit?: number;
708
- title?: string;
709
- surveys?: string[];
710
- onDetailLinkClick?: Function;
711
- previewState?: SurveyTaskListListPreviewState;
712
- variant?: "noCard" | "singleCard" | "multiCard";
713
- innerRef?: React.Ref<HTMLDivElement>;
714
- titleColor?: ColorDefinition;
715
- cardBackgroundColor?: ColorDefinition;
716
- cardStyle?: React.CSSProperties;
717
- buttonVariant?: ButtonVariant;
718
- buttonColor?: ColorDefinition;
597
+ interface TitleProps {
598
+ color?: ColorDefinition;
599
+ order?: 1 | 2 | 3 | 4 | 5 | 6;
600
+ children?: React.ReactNode;
601
+ style?: React.CSSProperties;
602
+ className?: string;
603
+ image?: ReactNode;
604
+ autosizeImage?: boolean;
605
+ imageAlignment?: "top" | "left";
606
+ defaultMargin?: boolean;
719
607
  }
720
- type SurveyTaskListListPreviewState = "IncompleteTasks" | "CompleteTasks";
721
- declare function export_default$1r(props: SurveyTaskListProps): React.JSX.Element | null;
608
+ declare function export_default$1C(props: TitleProps): React.JSX.Element;
722
609
 
723
- type SeverityCalendarPreviewState = "Default" | "NoData";
724
- interface SeverityCalendarProps {
725
- surveyName: string;
726
- dateRecordedResultIdentifier?: string;
727
- severityResultIdentifier: string;
728
- severityValueMapper?: (value: string) => string;
729
- intervalStart?: Date;
730
- previewState?: SeverityCalendarPreviewState;
731
- innerRef?: React.Ref<HTMLDivElement>;
610
+ interface TrackerItemProps {
611
+ selected: boolean;
612
+ text?: string;
613
+ color: string;
614
+ bordered?: boolean;
615
+ badge?: string;
616
+ onClick?: Function;
617
+ className?: string;
618
+ noBoxShadow?: boolean;
732
619
  }
733
- declare function export_default$1q(props: SeverityCalendarProps): React.JSX.Element;
620
+ declare function export_default$1B(props: TrackerItemProps): React.JSX.Element;
734
621
 
735
- interface ViewEhrProps {
736
- onClick(): void;
622
+ interface UnstyledButtonProps {
623
+ onClick: MouseEventHandler;
624
+ className?: string;
625
+ children?: React.ReactNode;
737
626
  title?: string;
738
- innerRef?: React.Ref<HTMLDivElement>;
739
- previewState?: "fetchComplete" | "fetchingData";
740
- buttonColor?: ColorDefinition;
741
- buttonVariant?: ButtonVariant;
627
+ style?: React.CSSProperties;
628
+ disabled?: boolean;
629
+ innerRef?: React.Ref<HTMLButtonElement>;
742
630
  }
743
- declare function export_default$1p(props: ViewEhrProps): React.JSX.Element | null;
631
+ declare function export_default$1A(props: UnstyledButtonProps): React.JSX.Element;
744
632
 
745
- interface ActionProps {
633
+ interface ValueSelectorProps {
746
634
  title?: string;
747
- titleIcon?: ReactElement;
748
- icon?: ReactElement;
635
+ titleColor?: ColorDefinition;
749
636
  subtitle?: string;
750
- onClick?: Function;
751
- children?: React.ReactNode;
752
- className?: string;
753
- indicatorIcon?: IconDefinition;
754
- indicator?: ReactElement;
755
- indicatorValue?: string;
756
- indicatorPosition?: "default" | "topRight";
757
- bottomBorder?: boolean;
637
+ subtitleColor?: ColorDefinition;
638
+ values: string[];
639
+ valueBackgroundColor?: ColorDefinition;
640
+ valueTextColor?: ColorDefinition;
641
+ checkboxColor?: ColorDefinition;
642
+ selectedValues?: string[];
643
+ selectedButtonBackgroundColor?: ColorDefinition;
644
+ selectedButtonTextColor?: ColorDefinition;
645
+ selectedCheckboxColor?: ColorDefinition;
646
+ onChange?: (selectedValues: string[]) => void;
647
+ variant?: 'default' | 'checkboxes';
648
+ multiSelect?: boolean;
649
+ preventEmptySelections?: boolean;
758
650
  innerRef?: React.Ref<HTMLDivElement>;
651
+ }
652
+ declare function export_default$1z(props: ValueSelectorProps): React.JSX.Element;
653
+
654
+ interface ViewHeaderProps {
655
+ title?: string;
656
+ subtitle?: string;
759
657
  titleColor?: ColorDefinition;
760
658
  subtitleColor?: ColorDefinition;
761
- renderAs?: "div" | "button";
659
+ action?: React.ReactNode;
762
660
  }
763
- declare function export_default$1o(props: ActionProps): React.JSX.Element;
661
+ declare function export_default$1y(props: ViewHeaderProps): React.JSX.Element | null;
764
662
 
765
- interface ActivityMeterProps {
766
- label: string;
767
- value: string;
768
- icon: ReactElement;
769
- fillPercent: number;
770
- averageFillPercent: number;
771
- color: string;
772
- message?: string;
773
- className?: string;
774
- innerRef?: React.Ref<HTMLDivElement>;
663
+ interface WeekCalendarProps {
664
+ selectedDate?: Date;
665
+ hideDateLabel?: boolean;
666
+ startDate: Date;
667
+ onDateSelected?(date: Date): void;
668
+ loading: boolean;
669
+ onStartDateChange?(startDate: Date): void;
670
+ dayRenderer(year: number, month: number, day: number, selectedWeek: boolean): JSX.Element | null;
775
671
  }
776
- declare function export_default$1n(props: ActivityMeterProps): React.JSX.Element;
672
+ declare function export_default$1x(props: WeekCalendarProps): React.JSX.Element;
777
673
 
778
- interface CalendarProps {
779
- month: number;
780
- year: number;
781
- dayRenderer(year: number, month: number, day?: number): JSX.Element | null;
782
- weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
783
- className?: string;
674
+ interface InboxCompletedListItemProps {
675
+ name: string;
676
+ status: string;
677
+ onClick?: () => void;
784
678
  innerRef?: React.Ref<HTMLDivElement>;
785
679
  }
786
- declare function export_default$1m(props: CalendarProps): React.JSX.Element;
680
+ declare function export_default$1w(props: InboxCompletedListItemProps): React.JSX.Element;
787
681
 
788
- type CalendarDayStateConfiguration = Record<string, {
789
- style?: CSSProperties;
790
- streak?: boolean;
791
- streakColor?: ColorDefinition;
792
- }>;
793
- interface CalendarDayProps {
794
- year: number;
795
- month: number;
796
- day?: number;
797
- stateConfiguration: CalendarDayStateConfiguration;
798
- computeStateForDay: (date: Date) => string;
799
- onClick?: (date: Date) => void;
682
+ interface InboxMessageListItemProps {
683
+ message: InboxMessage;
684
+ onClick: () => void;
800
685
  innerRef?: React.Ref<HTMLDivElement>;
801
686
  }
802
- declare function export_default$1l(props: CalendarDayProps): React.JSX.Element;
687
+ declare function export_default$1v(props: InboxMessageListItemProps): React.JSX.Element | null;
803
688
 
804
- interface CardProps {
805
- className?: string;
806
- children?: React.ReactNode;
807
- allowOverflow?: boolean;
689
+ interface InboxResourceListItemProps {
690
+ resource: InboxResource;
691
+ onClick: () => void;
692
+ imageAlignment?: ResourceImageAlignment;
693
+ buttonText?: string;
808
694
  innerRef?: React.Ref<HTMLDivElement>;
809
- variant?: "default" | "subtle" | "highlight";
810
- backgroundColor?: ColorDefinition;
811
- style?: React.CSSProperties;
812
695
  }
813
- declare function export_default$1k(props: CardProps): React.JSX.Element | null;
696
+ declare function export_default$1u(props: InboxResourceListItemProps): React.JSX.Element | null;
814
697
 
815
- interface CardTitleProps {
816
- title: string;
817
- onDetailClick?: Function;
818
- detailLinkText?: string;
698
+ type InboxSurveyVariant = 'default' | 'expanded';
699
+ interface InboxSurveyListItemProps {
700
+ survey: InboxSurvey;
701
+ onClick: () => void;
702
+ variant?: InboxSurveyVariant;
703
+ surveyActive?: boolean;
819
704
  innerRef?: React.Ref<HTMLDivElement>;
820
- color?: ColorDefinition;
821
705
  }
822
- declare function export_default$1j(props: CardTitleProps): React.JSX.Element;
706
+ declare function export_default$1t(props: InboxSurveyListItemProps): React.JSX.Element | null;
823
707
 
824
- interface DateRangeCoordinatorProps {
825
- initialIntervalStart?: Date;
826
- intervalType: "Week" | "Month";
827
- weekStartsOn?: WeekStartsOn;
828
- variant?: "default" | "rounded";
829
- children: React.ReactNode;
708
+ interface AsthmaRecommendedArticleProps {
709
+ previewState?: 'none' | 'default';
710
+ libraryBaseUrl: string;
711
+ logTodayEntrySurveyName: string;
712
+ imageAlignment?: ResourceImageAlignment;
713
+ buttonText?: string;
714
+ hideButton?: boolean;
830
715
  innerRef?: React.Ref<HTMLDivElement>;
831
- sticky?: boolean;
832
716
  }
833
- interface DateRangeContext {
834
- intervalType: "Week" | "Month";
835
- intervalStart: Date;
717
+ declare function export_default$1s(props: AsthmaRecommendedArticleProps): React.JSX.Element | null;
718
+
719
+ declare enum AsthmaDailyDataType {
720
+ Steps = "Asthma.Steps",
721
+ DaytimeRestingHeartRate = "Asthma.DaytimeRestingHeartRate",
722
+ NighttimeRestingHeartRate = "Asthma.NighttimeRestingHeartRate",
723
+ RespiratoryRate = "Asthma.RespiratoryRate",
724
+ DaytimeBloodOxygenLevel = "Asthma.DaytimeBloodOxygenLevel",
725
+ NighttimeBloodOxygenLevel = "Asthma.NighttimeBloodOxygenLevel",
726
+ SleepDisturbances = "Asthma.SleepDisturbances"
836
727
  }
837
- declare const DateRangeContext: React.Context<DateRangeContext | null>;
838
- declare function DateRangeNavigatorContext(props: DateRangeCoordinatorProps): React.JSX.Element;
728
+ interface AsthmaDataService {
729
+ loadParticipant(): Promise<AsthmaParticipant>;
730
+ loadDeviceInfo(): Promise<DeviceInfo>;
731
+ loadLogEntries(fromDate?: Date, toDate?: Date): Promise<AsthmaLogEntry[]>;
732
+ loadBiometricsForControlStatus(): Promise<AsthmaBiometric[]>;
733
+ loadBiometricsForDate(date: Date): Promise<AsthmaBiometric[]>;
734
+ loadAirQualitiesForControlStatus(homeAirQualityZipCode: string, workAirQualityZipCode: string): Promise<AsthmaAirQuality[]>;
735
+ loadAirQualitiesForDate(date: Date): Promise<AsthmaAirQuality[]>;
736
+ saveLogEntry(logEntry: AsthmaLogEntry): Promise<void>;
737
+ loadAndClearAlertTakeover(): Promise<string | undefined>;
738
+ loadSurveyAnswers(surveyName: string | string[], fromDate?: Date): Promise<SurveyAnswer[]>;
739
+ loadAsthmaActionPlan(): Promise<AsthmaActionPlan | undefined>;
740
+ }
741
+ declare const service: AsthmaDataService;
839
742
 
840
- interface DateRangeNavigatorProps {
841
- intervalType: "Week" | "Month";
842
- intervalStart: Date;
843
- variant?: "default" | "rounded";
844
- onIntervalChange(newIntervalStart: Date, newIntervalEnd: Date): void;
845
- className?: string;
846
- innerRef?: React.Ref<HTMLDivElement>;
847
- sticky?: boolean;
743
+ declare const dateToAsthmaLogEntryIdentifier: (date: Date) => string;
744
+ declare const computeAsthmaControlState: (logEntries: AsthmaLogEntry[], date: Date) => AsthmaControlState;
745
+ declare const getAsthmaDataStatusText: (status: AsthmaDataStatus) => string;
746
+ declare const getAsthmaDataStatusColor: (status: AsthmaDataStatus) => ColorDefinition;
747
+ declare const getAsthmaSymptomLevelText: (symptomLevel: AsthmaSymptomLevel) => string;
748
+ declare const getAsthmaSymptomLevel: (symptomLevelText: string) => AsthmaSymptomLevel;
749
+ declare const getAsthmaSymptomTexts: (symptoms: AsthmaSymptom[] | undefined) => string[];
750
+ declare const getAsthmaSymptoms: (symptomTexts: string[]) => AsthmaSymptom[];
751
+ declare const getAsthmaImpactTexts: (impacts: AsthmaImpact[] | undefined) => string[];
752
+ declare const getAsthmaImpacts: (impactTexts: string[]) => AsthmaImpact[];
753
+ declare const getAsthmaTriggerTexts: (triggers: AsthmaTrigger[] | undefined) => string[];
754
+ declare const getAsthmaTriggers: (triggerTexts: string[]) => AsthmaTrigger[];
755
+ declare const isDaytimeRestingHeartRateWithinRange: (baseline: number, rawValue: number) => boolean;
756
+ declare const isNighttimeRestingHeartRateWithinRange: (baseline: number, rawValue: number) => boolean;
757
+ declare const isRespiratoryRateWithinRange: (baseline: number, rawValue: number) => boolean;
758
+ declare const isStepsWithinRange: (baseline: number, rawValue: number) => boolean;
759
+ declare const isSleepDisturbancesWithinRange: (baseline: number, rawValue: number) => boolean;
760
+ declare const isBloodOxygenLevelWithinRange: (baseline: number, rawValue: number) => boolean;
761
+
762
+ interface AsthmaActionPlanViewProps {
763
+ colorScheme?: 'light' | 'dark' | 'auto';
764
+ previewState?: 'loading' | 'loaded without action plan' | 'loaded with action plan';
765
+ learnMoreUrl: string;
766
+ editActionPlanSurveyName: string;
848
767
  }
849
- declare function export_default$1i(props: DateRangeNavigatorProps): React.JSX.Element;
768
+ declare function export_default$1r(props: AsthmaActionPlanViewProps): React.JSX.Element;
850
769
 
851
- interface DayTrackerSymbolProps {
852
- primaryColors: string[];
853
- secondaryColors: string[];
854
- className?: string;
855
- size?: "small" | "large";
856
- innerRef?: React.Ref<HTMLDivElement>;
770
+ interface AsthmaActivityViewProps {
771
+ colorScheme?: 'light' | 'dark' | 'auto';
772
+ previewState?: 'default';
773
+ alert?: 'Steps';
774
+ logEntrySurveyName: string;
857
775
  }
858
- declare function export_default$1h(props: DayTrackerSymbolProps): React.JSX.Element;
776
+ declare function export_default$1q(props: AsthmaActivityViewProps): React.JSX.Element;
859
777
 
860
- interface ClosedInterval {
861
- values: number[];
778
+ interface AsthmaAirQualityViewProps {
779
+ colorScheme?: 'light' | 'dark' | 'auto';
780
+ previewState?: 'default';
781
+ alert?: 'HomeAirQuality' | 'WorkAirQuality';
782
+ logEntrySurveyName: string;
862
783
  }
863
- interface DataPoint {
864
- dataSet1: ClosedInterval;
865
- dataSet2: ClosedInterval;
784
+ declare function export_default$1p(props: AsthmaAirQualityViewProps): React.JSX.Element;
785
+
786
+ interface AsthmaAlertTakeoverViewProps {
787
+ colorScheme?: 'light' | 'dark' | 'auto';
788
+ previewState?: 'default';
789
+ logEntrySurveyName: string;
866
790
  }
867
- interface Dumbbell {
868
- dataPoint?: DataPoint;
869
- xValue: string;
870
- class?: DumbbellClass;
791
+ declare function export_default$1o(props: AsthmaAlertTakeoverViewProps): React.JSX.Element;
792
+
793
+ interface AsthmaDayViewProps {
794
+ colorScheme?: 'light' | 'dark' | 'auto';
795
+ previewState?: 'default';
796
+ date: Date;
797
+ logTodayEntrySurveyName: string;
798
+ logYesterdayEntrySurveyName: string;
799
+ editLogEntryUrl: string;
800
+ logEntryInfoUrl: string;
801
+ heartAndLungsUrl: string;
802
+ activityUrl: string;
803
+ sleepUrl: string;
804
+ airQualityUrl: string;
871
805
  }
872
- interface Axis {
873
- yRange: ClosedInterval;
874
- yIncrement: number;
875
- xIncrement: number;
806
+ declare function export_default$1n(props: AsthmaDayViewProps): React.JSX.Element;
807
+
808
+ interface AsthmaHeartAndLungsViewProps {
809
+ colorScheme?: 'light' | 'dark' | 'auto';
810
+ previewState?: 'default';
811
+ alert?: 'DaytimeRestingHeartRate' | 'NighttimeRestingHeartRate' | 'RespiratoryRate' | 'DaytimeBloodOxygenLevel' | 'NighttimeBloodOxygenLevel';
812
+ logEntrySurveyName: string;
876
813
  }
877
- interface DumbBellChartProps {
878
- axis: Axis;
879
- dumbbells: Dumbbell[];
814
+ declare function export_default$1m(props: AsthmaHeartAndLungsViewProps): React.JSX.Element;
815
+
816
+ type AsthmaLogEntryEditorViewPreviewState = 'no symptoms' | 'mild symptoms' | 'moderate symptoms' | 'severe symptoms';
817
+
818
+ interface AsthmaLogEntryEditorViewProps {
819
+ colorScheme?: 'light' | 'dark' | 'auto';
820
+ previewState?: 'loading' | AsthmaLogEntryEditorViewPreviewState;
821
+ date: Date;
880
822
  }
881
- declare enum DumbbellClass {
882
- "mdhui-dumbbell-in-range" = 0,
883
- "mdhui-dumbbell-out-of-range" = 1
823
+ declare function export_default$1l(props: AsthmaLogEntryEditorViewProps): React.JSX.Element | null;
824
+
825
+ interface AsthmaSleepViewProps {
826
+ colorScheme?: 'light' | 'dark' | 'auto';
827
+ previewState?: 'default';
828
+ alert?: 'SleepDisturbances';
829
+ logEntrySurveyName: string;
884
830
  }
885
- declare function export_default$1g(props: DumbBellChartProps): React.JSX.Element;
831
+ declare function export_default$1k(props: AsthmaSleepViewProps): React.JSX.Element;
886
832
 
887
- interface FaceProps {
888
- faceValue?: number;
889
- selected?: boolean;
890
- onClick?: MouseEventHandler;
891
- className?: string;
892
- innerRef?: React.Ref<HTMLButtonElement>;
833
+ interface TermInformation {
834
+ TermFamily: string;
835
+ TermNamespace: string;
836
+ TermCode: string;
893
837
  }
894
- declare function export_default$1f(props: FaceProps): React.JSX.Element;
895
838
 
896
- interface HistogramProps {
897
- entries: {
898
- label: string;
899
- color: string;
900
- value: number;
901
- onSelect?(): void;
902
- }[];
903
- className?: string;
839
+ interface AllergiesListProps {
840
+ previewState?: "default";
841
+ onViewTermInfo(termInfo: TermInformation): void;
842
+ innerRef?: React.Ref<HTMLDivElement>;
843
+ }
844
+ declare function export_default$1j(props: AllergiesListProps): React.JSX.Element;
845
+
846
+ interface AppDownloadProps {
847
+ previewProjectPlatforms?: string[];
848
+ previewDevicePlatform?: string;
849
+ innerRef?: React.Ref<HTMLDivElement>;
850
+ title?: string;
851
+ text?: string;
852
+ }
853
+ declare function export_default$1i(props: AppDownloadProps): React.JSX.Element | null;
854
+
855
+ interface SurveyBloodPressureDataParameters {
856
+ surveyName: string;
857
+ dateResultIdentifier: string;
858
+ systolicResultIdentifier: string;
859
+ diastolicResultIdentifier: string;
860
+ }
861
+ interface BloodPressureDataPoint {
862
+ date: Date;
863
+ systolic: number;
864
+ diastolic: number;
865
+ }
866
+ declare function export_default$1h(props: SurveyBloodPressureDataParameters): Promise<BloodPressureDataPoint[]>;
867
+
868
+ type BloodPressurePreviewState = "Default" | "NoData" | "Loading";
869
+ interface BloodPressureVisualizationProps {
870
+ previewState?: BloodPressurePreviewState;
871
+ surveyDataSource: SurveyBloodPressureDataParameters;
872
+ weekStartsOn?: WeekStartsOn;
904
873
  innerRef?: React.Ref<HTMLDivElement>;
905
874
  }
906
- declare function export_default$1e(props: HistogramProps): React.JSX.Element;
875
+ declare function export_default$1g(props: BloodPressureVisualizationProps): React.JSX.Element;
907
876
 
908
- interface LayoutProps {
909
- children?: React.ReactNode;
910
- bodyBackgroundColor?: ColorDefinition;
911
- primaryColor?: ColorDefinition;
912
- statusBarStyle?: StatusBarStyle;
913
- className?: string;
914
- noGlobalStyles?: boolean;
915
- colorScheme?: "light" | "dark" | "auto";
916
- /**
917
- * @deprecated
918
- */
919
- stylesheetPath?: string;
877
+ interface ConditionsListProps {
878
+ previewState?: "default";
879
+ onViewTermInfo(termInfo: TermInformation): void;
920
880
  innerRef?: React.Ref<HTMLDivElement>;
921
881
  }
922
- interface LayoutContext {
923
- colorScheme: "light" | "dark";
924
- bodyBackgroundColor: string;
925
- }
926
- declare const LayoutContext: React.Context<LayoutContext>;
927
- declare function export_default$1d(props: LayoutProps): React.JSX.Element;
882
+ declare function export_default$1f(props: ConditionsListProps): React.JSX.Element;
928
883
 
929
- interface LoadingIndicatorProps {
930
- variant?: "default" | "inline";
931
- color?: string;
932
- className?: string;
884
+ type DeviceAccountType = "Fitbit" | "Garmin" | "AppleHealth" | "GoogleFit" | "Omron";
885
+ interface ConnectDevicesMenuProps {
933
886
  innerRef?: React.Ref<HTMLDivElement>;
887
+ accountTypes?: DeviceAccountType[];
888
+ title?: string;
889
+ text?: string;
890
+ previewState?: "iOS" | "Android" | "Web" | "ConnectedStates";
891
+ headerVariant?: "large" | "medium";
934
892
  }
935
- declare function LoadingIndicator(props: LoadingIndicatorProps): React.JSX.Element;
893
+ declare function export_default$1e(props: ConnectDevicesMenuProps): React.JSX.Element | null;
936
894
 
937
- interface NavigationBarProps {
895
+ interface ConnectEhrProps {
896
+ applicationUrl: ConnectEhrApplicationUrl;
897
+ previewState?: ConnectEhrPreviewState;
898
+ disabledBehavior?: 'hide' | 'displayError';
899
+ bottomBorder?: boolean;
900
+ innerRef?: React.Ref<HTMLDivElement>;
901
+ variant?: "large" | "medium" | "small";
938
902
  title?: string;
939
- subtitle?: string;
940
- showBackButton?: boolean;
941
- showCloseButton?: boolean;
942
- children?: React.ReactNode;
943
- closeButtonText?: string;
944
- backButtonText?: string;
945
- className?: string;
946
- variant?: 'default' | 'compressed';
947
- titleColor?: ColorDefinition;
948
- subtitleColor?: ColorDefinition;
903
+ notConnectedText?: string;
904
+ connectedText?: string;
905
+ hideWhenConnected?: boolean;
949
906
  buttonColor?: ColorDefinition;
950
- navigationBarLeft?: React.ReactNode;
951
- navigationBarRight?: React.ReactNode;
952
- backgroundColor?: ColorDefinition;
953
907
  }
954
- declare function export_default$1c(props: NavigationBarProps): React.JSX.Element;
908
+ type ConnectEhrApplicationUrl = "preview" | string;
909
+ type ConnectEhrPreviewState = "notEnabled" | "enabled" | "enabledConnected" | "enabledNeedsAttention";
910
+ declare function export_default$1d(props: ConnectEhrProps): React.JSX.Element | null;
955
911
 
956
- interface NotesInputProps {
957
- autoTimestamp?: boolean;
958
- placeholder?: string;
959
- onChange(value: string): void;
960
- value: string;
912
+ interface ConnectFitbitProps {
913
+ title?: string;
914
+ fitbitProviderID?: number;
915
+ previewState?: ConnectFitbitPreviewState;
916
+ disabledBehavior?: 'hide' | 'displayError';
917
+ innerRef?: React.Ref<HTMLDivElement>;
918
+ hideWhenConnected?: boolean;
961
919
  }
962
- declare function export_default$1b(props: NotesInputProps): React.JSX.Element;
920
+ type ConnectFitbitPreviewState = ExternalAccountStatus | "notConnected" | "notEnabled";
921
+ declare function export_default$1c(props: ConnectFitbitProps): React.JSX.Element;
963
922
 
964
- interface ProgressBarProps {
965
- backgroundColor?: ColorDefinition;
966
- borderColor?: ColorDefinition;
967
- fillColor?: ColorDefinition;
968
- fillPercent: number;
969
- steps?: {
970
- percent: number;
971
- icon: ReactElement;
972
- }[];
923
+ interface ConnectGarminProps {
924
+ title?: string;
925
+ garminProviderID?: number;
926
+ previewState?: ConnectGarminPreviewState;
927
+ disabledBehavior?: 'hide' | 'displayError';
973
928
  innerRef?: React.Ref<HTMLDivElement>;
974
- defaultMargin?: boolean;
975
- }
976
- declare function ProgressBar(props: ProgressBarProps): React.JSX.Element;
977
- declare namespace ProgressBar {
978
- var defaultProps: {
979
- backgroundColor: string;
980
- fillColor: string;
981
- fillPercent: number;
982
- };
929
+ hideWhenConnected?: boolean;
983
930
  }
931
+ type ConnectGarminPreviewState = ExternalAccountStatus | "notConnected" | "notEnabled";
932
+ declare function export_default$1b(props: ConnectGarminProps): React.JSX.Element;
984
933
 
985
- interface ProgressBarStepProps {
986
- borderColor?: ColorDefinition;
987
- backgroundColor?: ColorDefinition;
988
- children?: React.ReactNode;
989
- height: string;
934
+ type DailyDataQueryResult = {
935
+ [key: string]: number;
936
+ };
937
+ type DailyDataProvider = (startDate: Date, endDate: Date) => Promise<DailyDataQueryResult>;
938
+ type DailyDataAvailabilityCheck = (modifiedAfter?: Date) => Promise<boolean>;
939
+ declare function registerDailyDataProvider(type: string, provider: DailyDataProvider, availabilityCheck: DailyDataAvailabilityCheck): void;
940
+ declare function checkDailyDataAvailability(type: string, modifiedAfter?: Date): Promise<boolean>;
941
+ declare function queryDailyData(type: string, startDate: Date, endDate: Date): Promise<DailyDataQueryResult>;
942
+ declare function simpleAvailabilityCheck(namespace: DeviceDataNamespace, type: string | string[]): (modifiedAfter?: Date) => Promise<boolean>;
943
+ declare enum DailyDataType {
944
+ AppleHealthDistanceWalkingRunning = "AppleHealthDistanceWalkingRunning",
945
+ AppleHealthFlightsClimbed = "AppleHealthFlightsClimbed",
946
+ AppleHealthHeartRateRange = "AppleHealthHeartRateRange",
947
+ AppleHealthHrv = "AppleHealthHrv",
948
+ AppleHealthMaxHeartRate = "AppleHealthMaxHeartRate",
949
+ AppleHealthRestingHeartRate = "AppleHealthRestingHeartRate",
950
+ AppleHealthSleepMinutes = "AppleHealthSleepMinutes",
951
+ AppleHealthInBedMinutes = "AppleHealthInBedMinutes",
952
+ AppleHealthStandMinutes = "AppleHealthStandMinutes",
953
+ AppleHealthSteps = "AppleHealthSteps",
954
+ AppleHealthWalkingHeartRateAverage = "AppleHealthWalkingHeartRateAverage",
955
+ AppleHealthActiveEnergyBurned = "AppleHealthActiveEnergyBurned",
956
+ FitbitSedentaryMinutes = "FitbitSedentaryMinutes",
957
+ FitbitActiveMinutes = "FitbitActiveMinutes",
958
+ FitbitLightlyActiveMinutes = "FitbitLightlyActiveMinutes",
959
+ FitbitFairlyActiveMinutes = "FitbitFairlyActiveMinutes",
960
+ FitbitVeryActiveMinutes = "FitbitVeryActiveMinutes",
961
+ FitbitBreathingRate = "FitbitBreathingRate",
962
+ FitbitCaloriesBurned = "FitbitCaloriesBurned",
963
+ FitbitElevatedHeartRateMinutes = "FitbitElevatedHeartRateMinutes",
964
+ FitbitFatBurnHeartRateMinutes = "FitbitFatBurnHeartRateMinutes",
965
+ FitbitCardioHeartRateMinutes = "FitbitCardioHeartRateMinutes",
966
+ FitbitPeakHeartRateMinutes = "FitbitPeakHeartRateMinutes",
967
+ FitbitFloors = "FitbitFloors",
968
+ FitbitHrv = "FitbitHrv",
969
+ FitbitRestingHeartRate = "FitbitRestingHeartRate",
970
+ FitbitSleepMinutes = "FitbitSleepMinutes",
971
+ FitbitLightSleepMinutes = "FitbitLightSleepMinutes",
972
+ FitbitRemSleepMinutes = "FitbitRemSleepMinutes",
973
+ FitbitDeepSleepMinutes = "FitbitDeepSleepMinutes",
974
+ FitbitSpO2 = "FitbitSpO2",
975
+ FitbitSteps = "FitbitSteps",
976
+ GarminSteps = "GarminSteps",
977
+ GarminDistance = "GarminDistance",
978
+ GarminFloors = "GarminFloors",
979
+ GarminActiveMinutes = "GarminActiveMinutes",
980
+ GarminActiveCalories = "GarminActiveCalories",
981
+ GarminRestingCalories = "GarminRestingCalories",
982
+ GarminTotalCalories = "GarminTotalCalories",
983
+ GarminRestingHeartRate = "GarminRestingHeartRate",
984
+ GarminMinHeartRate = "GarminMinHeartRate",
985
+ GarminMaxHeartRate = "GarminMaxHeartRate",
986
+ GarminAverageHeartRate = "GarminAverageHeartRate",
987
+ GarminMaxStressLevel = "GarminMaxStressLevel",
988
+ GarminAverageStressLevel = "GarminAverageStressLevel",
989
+ GarminTotalStressMinutes = "GarminTotalStressMinutes",
990
+ GarminLowStressMinutes = "GarminLowStressMinutes",
991
+ GarminMediumStressMinutes = "GarminMediumStressMinutes",
992
+ GarminHighStressMinutes = "GarminHighStressMinutes",
993
+ GarminTotalSleepMinutes = "GarminTotalSleepMinutes",
994
+ GarminLightSleepMinutes = "GarminLightSleepMinutes",
995
+ GarminDeepSleepMinutes = "GarminDeepSleepMinutes",
996
+ GarminRemSleepMinutes = "GarminRemSleepMinutes",
997
+ GarminAwakeMinutes = "GarminAwakeMinutes",
998
+ GarminSleepScore = "GarminSleepScore",
999
+ GoogleFitSteps = "GoogleFitSteps",
1000
+ Steps = "Steps",
1001
+ RestingHeartRate = "RestingHeartRate",
1002
+ HomeAirQuality = "HomeAirQuality",
1003
+ WorkAirQuality = "WorkAirQuality"
990
1004
  }
991
- declare function ProgressBarStep(props: ProgressBarStepProps): React.JSX.Element;
992
1005
 
993
- interface ProgressRingProps {
994
- children: React.ReactNode;
995
- style?: CSSProperties;
996
- color?: ColorDefinition;
997
- percentCompleted?: number;
998
- animate?: boolean;
1006
+ interface DailyDataChartProps {
1007
+ title?: string;
1008
+ intervalType?: "Week" | "Month";
1009
+ weekStartsOn?: WeekStartsOn;
1010
+ dailyDataType: string;
1011
+ valueConverter?(value: number): number;
1012
+ valueFormatter?(value: number): string;
1013
+ chartType: "Line" | "Bar" | "Area";
1014
+ options?: LineChartOptions | BarChartOptions | AreaChartOptions;
1015
+ hideIfNoData?: boolean;
1016
+ previewDataProvider?: DailyDataProvider;
1017
+ innerRef?: React.Ref<HTMLDivElement>;
1018
+ }
1019
+ interface LineChartOptions {
1020
+ lineColor?: string;
1021
+ domainMin?: number | "Auto";
1022
+ }
1023
+ interface BarChartOptions {
1024
+ barColor?: string;
1025
+ }
1026
+ interface AreaChartOptions {
1027
+ lineColor?: string;
1028
+ areaColor?: string;
999
1029
  }
1000
- declare function export_default$1a(props: ProgressRingProps): React.JSX.Element;
1030
+ declare function DailyDataChart(props: DailyDataChartProps): React.JSX.Element | null;
1001
1031
 
1002
- type ResourceImageAlignment = 'left' | 'center' | 'right';
1003
- interface ResourceProps {
1004
- imageUrl?: string;
1005
- title: string;
1006
- subTitle?: string;
1007
- imageAlignment?: ResourceImageAlignment;
1008
- buttonText?: string;
1009
- onClick: () => void;
1010
- hideButton?: boolean;
1032
+ interface DeviceDataMonthChartProps {
1033
+ lines: DeviceDataChartLine[];
1034
+ month: number;
1035
+ year: number;
1036
+ syncId?: string;
1037
+ title?: string;
1038
+ previewState?: DeviceDataMonthChartPreviewState;
1039
+ onDataDetected?: Function;
1011
1040
  innerRef?: React.Ref<HTMLDivElement>;
1012
1041
  }
1013
- declare function export_default$19(props: ResourceProps): React.JSX.Element;
1014
-
1015
- type ResourceListPreviewState = 'no resources' | 'some resources';
1016
-
1017
- interface ResourceDefinition {
1018
- title: string;
1019
- subTitle?: string;
1020
- url: string;
1021
- imageUrl?: string;
1042
+ interface DeviceDataChartLine {
1043
+ label: string;
1044
+ dailyDataType: string;
1045
+ valueConverter?: Function;
1046
+ showAverage?: boolean;
1022
1047
  }
1023
- interface ResourceListProps {
1024
- previewState?: ResourceListPreviewState;
1025
- resources: ResourceDefinition[];
1026
- onViewResource: (resource: ResourceDefinition) => void;
1027
- emptyText?: string;
1028
- imageAlignment?: ResourceImageAlignment;
1029
- innerRef?: React.Ref<HTMLDivElement>;
1048
+ type DeviceDataMonthChartPreviewState = "WithData" | "NoData" | "Loading";
1049
+ declare function export_default$1a(props: DeviceDataMonthChartProps): React.JSX.Element | null;
1050
+
1051
+ interface DeviceDataMonthChartsProps {
1052
+ previewState?: DeviceDataMonthChartsPreviewState;
1030
1053
  }
1031
- declare function export_default$18(props: ResourceListProps): React.JSX.Element;
1054
+ type DeviceDataMonthChartsPreviewState = "Default" | "NoData";
1055
+ declare function export_default$19(props: DeviceDataMonthChartsProps): React.JSX.Element;
1032
1056
 
1033
- type RotatingComponentInterval = 'day' | 'week' | 'month';
1034
- interface RotatingComponentCoordinatorProps {
1035
- interval?: RotatingComponentInterval;
1036
- children: React.ReactNode;
1037
- startDate: Date;
1057
+ interface ExternalAccountListProps {
1058
+ externalAccountProviderCategories?: string[];
1059
+ previewState?: NotificationListPreviewState$1;
1060
+ onExternalAccountsLoaded?: (accounts: ExternalAccount[]) => void;
1038
1061
  innerRef?: React.Ref<HTMLDivElement>;
1039
1062
  }
1040
- declare function export_default$17(props: RotatingComponentCoordinatorProps): React.JSX.Element;
1063
+ type NotificationListPreviewState$1 = "Default";
1064
+ declare function export_default$18(props: ExternalAccountListProps): React.JSX.Element;
1041
1065
 
1042
- interface SectionProps {
1043
- children?: React.ReactNode;
1044
- className?: string;
1045
- noTopMargin?: boolean;
1066
+ interface ExternalAccountsLoadingIndicatorProps {
1067
+ previewState?: "externalAccountsFetchingData" | "externalAccountsLoaded";
1068
+ externalAccountCategories?: string[];
1046
1069
  innerRef?: React.Ref<HTMLDivElement>;
1047
- backgroundColor?: ColorDefinition;
1048
- style?: React.CSSProperties;
1049
1070
  }
1050
- declare function export_default$16(props: SectionProps): React.JSX.Element | null;
1071
+ declare function export_default$17(props: ExternalAccountsLoadingIndicatorProps): React.JSX.Element | null;
1051
1072
 
1052
- interface SegmentedControlProps {
1053
- segments: {
1054
- key: string;
1055
- title: string;
1056
- }[];
1057
- selectedSegment?: string;
1058
- onSegmentSelected(segmentKey: string): void;
1059
- className?: string;
1060
- color?: string;
1061
- variant?: "default" | "optionsHorizontal" | "optionsVertical";
1073
+ interface ExternalAccountsPreviewProps {
1074
+ excludeProviders?: boolean;
1075
+ excludeHealthPlans?: boolean;
1076
+ excludeDeviceManufacturers?: boolean;
1077
+ applicationUrl: ExternalAccountsApplicationUrl;
1078
+ previewState?: ExternalAccountsPreviewPreviewState;
1062
1079
  innerRef?: React.Ref<HTMLDivElement>;
1063
1080
  }
1064
- declare function export_default$15(props: SegmentedControlProps): React.JSX.Element;
1081
+ type ExternalAccountsApplicationUrl = "preview" | string;
1082
+ type ExternalAccountsPreviewPreviewState = "Default";
1083
+ declare function export_default$16(props: ExternalAccountsPreviewProps): React.JSX.Element | null;
1065
1084
 
1066
- declare function export_default$14(): React.JSX.Element;
1085
+ type ConnectedDevicesPreviewState = "notEnabled" | "notConnected" | "connected";
1067
1086
 
1068
- interface SingleDataPointProps {
1069
- label: string;
1070
- statusText?: string;
1071
- statusColor?: ColorDefinition;
1072
- value?: string;
1073
- units?: string;
1074
- onClick?: () => void;
1087
+ interface FitbitDevicesProps {
1088
+ previewState?: ConnectedDevicesPreviewState;
1075
1089
  innerRef?: React.Ref<HTMLDivElement>;
1076
1090
  }
1077
- declare function export_default$13(props: SingleDataPointProps): React.JSX.Element;
1091
+ declare function export_default$15(props: FitbitDevicesProps): React.JSX.Element;
1078
1092
 
1079
- interface SingleExternalAccountProps {
1080
- externalAccount: ExternalAccount;
1081
- onAccountRemoved: (account: ExternalAccount) => void;
1082
- onReconnectAccount: (account: ExternalAccount) => void;
1083
- innerRef?: React.Ref<HTMLDivElement>;
1093
+ type MonthChartsPreviewState = "notEnabled" | "notConnected" | "connected";
1094
+
1095
+ interface FitbitMonthChartsProps {
1096
+ previewState?: MonthChartsPreviewState;
1084
1097
  }
1085
- declare function export_default$12(props: SingleExternalAccountProps): React.JSX.Element;
1098
+ declare function export_default$14(props: FitbitMonthChartsProps): React.JSX.Element;
1086
1099
 
1087
- interface SingleNotificationProps {
1088
- notification: Notification;
1100
+ interface GarminDevicesProps {
1101
+ previewState?: ConnectedDevicesPreviewState;
1089
1102
  innerRef?: React.Ref<HTMLDivElement>;
1090
1103
  }
1091
- declare function export_default$11(props: SingleNotificationProps): React.JSX.Element;
1104
+ declare function export_default$13(props: GarminDevicesProps): React.JSX.Element;
1092
1105
 
1093
- type SingleSurveyTaskVariant = 'default' | 'expanded';
1094
- interface SingleSurveyTaskProps {
1095
- task: SurveyTask;
1096
- onClick: () => void;
1097
- variant?: SingleSurveyTaskVariant;
1098
- descriptionIcon?: IconDefinition$1;
1099
- surveyActive?: boolean;
1100
- buttonColor?: ColorDefinition;
1101
- buttonVariant?: ButtonVariant;
1106
+ interface GarminMonthChartsProps {
1107
+ previewState?: MonthChartsPreviewState;
1108
+ }
1109
+ declare function export_default$12(props: GarminMonthChartsProps): React.JSX.Element;
1110
+
1111
+ type HealthPreviewSectionConcept = "Medications" | "Immunizations" | "Reports" | "Allergies" | "Conditions" | "Procedures";
1112
+ interface HealthPreviewSectionProps {
1113
+ concept: HealthPreviewSectionConcept;
1114
+ onClick(): void;
1115
+ previewState?: "NoData" | "Default";
1116
+ indicatorPosition?: "default" | "topRight";
1102
1117
  innerRef?: React.Ref<HTMLDivElement>;
1103
1118
  }
1104
- declare function export_default$10(props: SingleSurveyTaskProps): React.JSX.Element | null;
1119
+ declare function export_default$11(props: HealthPreviewSectionProps): React.JSX.Element | null;
1105
1120
 
1106
- interface SparkBarChartProps {
1107
- averageFillPercent: number;
1108
- bars: SparkBarChartBar[];
1121
+ interface LabResultsSummaryProps {
1122
+ previewState?: "ImportantLabs" | "RecentLabs" | "NoData";
1123
+ onClick(): void;
1124
+ onViewTermInfo(termInfo: TermInformation): void;
1109
1125
  innerRef?: React.Ref<HTMLDivElement>;
1110
1126
  }
1111
- interface SparkBarChartBar {
1112
- color: string;
1113
- barFillPercent: number;
1127
+ declare function export_default$10(props: LabResultsSummaryProps): React.JSX.Element | null;
1128
+
1129
+ interface MedicationsListProps {
1130
+ previewState?: "default";
1131
+ onViewTermInfo(termInfo: TermInformation): void;
1132
+ innerRef?: React.Ref<HTMLDivElement>;
1114
1133
  }
1115
- declare function export_default$$(props: SparkBarChartProps): React.JSX.Element;
1134
+ declare function export_default$$(props: MedicationsListProps): React.JSX.Element;
1116
1135
 
1117
- interface SwitchProps {
1118
- isOn: Boolean;
1119
- onBackgroundColor?: string;
1120
- onValueChanged(value: boolean): void;
1121
- className?: string;
1122
- innerRef?: React.Ref<HTMLButtonElement>;
1136
+ interface MostRecentNotificationProps {
1137
+ notificationType?: NotificationType;
1138
+ onViewMore?: Function;
1139
+ hideAfterHours?: number;
1140
+ previewState?: MostRecentNotificationPreviewState;
1141
+ innerRef?: React.Ref<HTMLDivElement>;
1123
1142
  }
1124
- declare function export_default$_(props: SwitchProps): React.JSX.Element;
1143
+ type MostRecentNotificationPreviewState = "Default";
1144
+ declare function export_default$_(props: MostRecentNotificationProps): React.JSX.Element | null;
1125
1145
 
1126
- interface StatusBarBackgroundProps {
1127
- color?: string;
1146
+ interface NotificationListProps {
1147
+ notificationType?: NotificationType;
1148
+ previewState?: NotificationListPreviewState;
1128
1149
  innerRef?: React.Ref<HTMLDivElement>;
1129
1150
  }
1130
- declare function StatusBarBackgroundProps(props: StatusBarBackgroundProps): React.JSX.Element;
1151
+ type NotificationListPreviewState = "Default" | "NoData";
1152
+ declare function export_default$Z(props: NotificationListProps): React.JSX.Element;
1131
1153
 
1132
- interface TextBlockProps {
1154
+ interface PlatformSpecificContentProps {
1155
+ platforms: string[];
1133
1156
  children?: React.ReactNode;
1134
- className?: string;
1157
+ previewDevicePlatform?: string;
1135
1158
  innerRef?: React.Ref<HTMLDivElement>;
1136
- color?: ColorDefinition;
1137
- style?: React.CSSProperties;
1138
1159
  }
1139
- declare function export_default$Z(props: TextBlockProps): React.JSX.Element | null;
1160
+ declare function export_default$Y(props: PlatformSpecificContentProps): React.JSX.Element | null;
1140
1161
 
1141
- interface TitleProps {
1142
- color?: ColorDefinition;
1143
- order?: 1 | 2 | 3 | 4 | 5 | 6;
1144
- children?: React.ReactNode;
1145
- style?: React.CSSProperties;
1146
- className?: string;
1147
- image?: ReactNode;
1148
- autosizeImage?: boolean;
1149
- imageAlignment?: "top" | "left";
1150
- defaultMargin?: boolean;
1162
+ interface ProjectHeaderProps {
1163
+ previewState?: ProjectHeaderPropsPreviewState;
1164
+ innerRef?: React.Ref<HTMLDivElement>;
1151
1165
  }
1152
- declare function export_default$Y(props: TitleProps): React.JSX.Element;
1166
+ type ProjectHeaderPropsPreviewState = "Default";
1167
+ declare function export_default$X(props: ProjectHeaderProps): React.JSX.Element;
1153
1168
 
1154
- interface TrackerItemProps {
1155
- selected: boolean;
1156
- text?: string;
1157
- color: string;
1158
- bordered?: boolean;
1159
- badge?: string;
1160
- onClick?: Function;
1161
- className?: string;
1162
- noBoxShadow?: boolean;
1169
+ interface ProjectSupportProps {
1170
+ previewState?: ProjectSupportPropsPreviewState;
1171
+ innerRef?: React.Ref<HTMLDivElement>;
1163
1172
  }
1164
- declare function export_default$X(props: TrackerItemProps): React.JSX.Element;
1173
+ type ProjectSupportPropsPreviewState = "Default";
1174
+ declare function export_default$W(props: ProjectSupportProps): React.JSX.Element | null;
1165
1175
 
1166
- interface UnstyledButtonProps {
1167
- onClick: MouseEventHandler;
1168
- className?: string;
1169
- children?: React.ReactNode;
1170
- title?: string;
1171
- style?: React.CSSProperties;
1172
- disabled?: boolean;
1173
- innerRef?: React.Ref<HTMLButtonElement>;
1176
+ interface ProviderSearchProps {
1177
+ previewState?: ProviderSearchPreviewState;
1178
+ providerCategories?: string[];
1179
+ onProviderConnected?: (provider: ExternalAccountProvider) => void;
1180
+ innerRef?: React.Ref<HTMLDivElement>;
1174
1181
  }
1175
- declare function export_default$W(props: UnstyledButtonProps): React.JSX.Element;
1182
+ type ProviderSearchPreviewState = "Default";
1183
+ declare function export_default$V(props: ProviderSearchProps): React.JSX.Element;
1176
1184
 
1177
- interface ValueSelectorProps {
1178
- title?: string;
1179
- titleColor?: ColorDefinition;
1180
- subtitle?: string;
1181
- subtitleColor?: ColorDefinition;
1182
- values: string[];
1183
- valueBackgroundColor?: ColorDefinition;
1184
- valueTextColor?: ColorDefinition;
1185
- checkboxColor?: ColorDefinition;
1186
- selectedValues?: string[];
1187
- selectedButtonBackgroundColor?: ColorDefinition;
1188
- selectedButtonTextColor?: ColorDefinition;
1189
- selectedCheckboxColor?: ColorDefinition;
1190
- onChange?: (selectedValues: string[]) => void;
1191
- variant?: 'default' | 'checkboxes';
1192
- multiSelect?: boolean;
1193
- preventEmptySelections?: boolean;
1185
+ interface RecentDailyDataBarChartProps {
1186
+ previewState?: 'loading' | 'loaded without data' | 'loaded with data';
1187
+ previewDataProvider?: (start: Date, end: Date) => Promise<DailyDataQueryResult>;
1188
+ title: string;
1189
+ dailyDataType: string;
1190
+ domain?: AxisDomain;
1191
+ emptyDomain?: AxisDomain;
1192
+ valueConverter?: (rawValue: number) => number;
1193
+ valueFormatter?: (value: number) => string;
1194
+ highlight?: (rawValue: number) => boolean;
1194
1195
  innerRef?: React.Ref<HTMLDivElement>;
1195
1196
  }
1196
- declare function export_default$V(props: ValueSelectorProps): React.JSX.Element;
1197
+ declare function export_default$U(props: RecentDailyDataBarChartProps): React.JSX.Element;
1197
1198
 
1198
- interface ViewHeaderProps {
1199
+ interface RelativeActivityTodayProps {
1200
+ dataTypes: RelativeActivityDataType[];
1201
+ previewState?: "Default";
1199
1202
  title?: string;
1200
- subtitle?: string;
1201
- titleColor?: ColorDefinition;
1202
- subtitleColor?: ColorDefinition;
1203
- action?: React.ReactNode;
1203
+ innerRef?: React.Ref<HTMLDivElement>;
1204
1204
  }
1205
- declare function export_default$U(props: ViewHeaderProps): React.JSX.Element | null;
1206
-
1207
- interface WeekCalendarProps {
1208
- selectedDate?: Date;
1209
- hideDateLabel?: boolean;
1210
- startDate: Date;
1211
- onDateSelected?(date: Date): void;
1212
- loading: boolean;
1213
- onStartDateChange?(startDate: Date): void;
1214
- dayRenderer(year: number, month: number, day: number, selectedWeek: boolean): JSX.Element | null;
1205
+ interface RelativeActivityDataType {
1206
+ dailyDataType: string;
1207
+ label: string;
1208
+ icon: React.ReactElement;
1209
+ color: string;
1210
+ formatter: (number: number) => string;
1215
1211
  }
1216
- declare function export_default$T(props: WeekCalendarProps): React.JSX.Element;
1212
+ declare function export_default$T(props: RelativeActivityTodayProps): React.JSX.Element | null;
1217
1213
 
1218
- interface InboxCompletedListItemProps {
1219
- name: string;
1220
- status: string;
1221
- onClick?: () => void;
1214
+ type RestingHeartRateCalendarPreviewState = "WithData" | "NoData" | "Loading";
1215
+ interface RestingHeartRateCalendarProps {
1216
+ month: number;
1217
+ year: number;
1218
+ showPreviewData: RestingHeartRateCalendarPreviewState;
1222
1219
  innerRef?: React.Ref<HTMLDivElement>;
1223
1220
  }
1224
- declare function export_default$S(props: InboxCompletedListItemProps): React.JSX.Element;
1221
+ declare function export_default$S(props: RestingHeartRateCalendarProps): React.JSX.Element;
1225
1222
 
1226
- interface InboxMessageListItemProps {
1227
- message: InboxMessage;
1228
- onClick: () => void;
1223
+ interface SurveyTaskListProps {
1224
+ status: SurveyTaskStatus;
1225
+ limit?: number;
1226
+ title?: string;
1227
+ surveys?: string[];
1228
+ onDetailLinkClick?: Function;
1229
+ previewState?: SurveyTaskListListPreviewState;
1230
+ variant?: "noCard" | "singleCard" | "multiCard";
1229
1231
  innerRef?: React.Ref<HTMLDivElement>;
1232
+ titleColor?: ColorDefinition;
1233
+ cardBackgroundColor?: ColorDefinition;
1234
+ cardStyle?: React.CSSProperties;
1235
+ buttonVariant?: ButtonVariant;
1236
+ buttonColor?: ColorDefinition;
1230
1237
  }
1231
- declare function export_default$R(props: InboxMessageListItemProps): React.JSX.Element | null;
1238
+ type SurveyTaskListListPreviewState = "IncompleteTasks" | "CompleteTasks";
1239
+ declare function export_default$R(props: SurveyTaskListProps): React.JSX.Element | null;
1232
1240
 
1233
- interface InboxResourceListItemProps {
1234
- resource: InboxResource;
1235
- onClick: () => void;
1236
- imageAlignment?: ResourceImageAlignment;
1237
- buttonText?: string;
1241
+ type SeverityCalendarPreviewState = "Default" | "NoData";
1242
+ interface SeverityCalendarProps {
1243
+ surveyName: string;
1244
+ dateRecordedResultIdentifier?: string;
1245
+ severityResultIdentifier: string;
1246
+ severityValueMapper?: (value: string) => string;
1247
+ intervalStart?: Date;
1248
+ previewState?: SeverityCalendarPreviewState;
1238
1249
  innerRef?: React.Ref<HTMLDivElement>;
1239
1250
  }
1240
- declare function export_default$Q(props: InboxResourceListItemProps): React.JSX.Element | null;
1251
+ declare function export_default$Q(props: SeverityCalendarProps): React.JSX.Element;
1241
1252
 
1242
- type InboxSurveyVariant = 'default' | 'expanded';
1243
- interface InboxSurveyListItemProps {
1244
- survey: InboxSurvey;
1245
- onClick: () => void;
1246
- variant?: InboxSurveyVariant;
1247
- surveyActive?: boolean;
1253
+ interface ViewEhrProps {
1254
+ onClick(): void;
1255
+ title?: string;
1248
1256
  innerRef?: React.Ref<HTMLDivElement>;
1257
+ previewState?: "fetchComplete" | "fetchingData";
1258
+ buttonColor?: ColorDefinition;
1259
+ buttonVariant?: ButtonVariant;
1249
1260
  }
1250
- declare function export_default$P(props: InboxSurveyListItemProps): React.JSX.Element | null;
1261
+ declare function export_default$P(props: ViewEhrProps): React.JSX.Element | null;
1251
1262
 
1252
1263
  type InboxItemListPreviewState = 'no items' | 'incomplete message' | 'incomplete survey' | 'incomplete resource' | 'incomplete items' | 'complete items';
1253
1264
 
@@ -1732,4 +1743,4 @@ declare function getDayKey(date: Date): string;
1732
1743
 
1733
1744
  declare function useInitializeView(initialize: () => void, additionalEvents?: EventName[], dependencies?: DependencyList): void;
1734
1745
 
1735
- export { export_default$1o as Action, export_default$1n as ActivityMeter, export_default$1W as AllergiesList, export_default$i as AllergiesView, export_default$1V as AppDownload, AreaChartOptions, AsthmaActionPlan, export_default$2c as AsthmaActionPlanManager, export_default$22 as AsthmaActionPlanView, export_default$21 as AsthmaActivityView, export_default$2b as AsthmaAirQualities, AsthmaAirQualitiesPreviewState, AsthmaAirQuality, AsthmaAirQualityType, export_default$20 as AsthmaAirQualityView, export_default$2a as AsthmaAlertTakeoverNotice, export_default$29 as AsthmaAlertTakeoverTrigger, export_default$1$ as AsthmaAlertTakeoverView, AsthmaBiometric, AsthmaBiometricType, export_default$28 as AsthmaBiometrics, AsthmaBiometricsPreviewState, export_default$27 as AsthmaControlCalendar, AsthmaControlCalendarPreviewState, AsthmaControlCalendarVariant, AsthmaControlMetrics, AsthmaControlState, AsthmaControlStatus, export_default$26 as AsthmaControlStatusHeader, AsthmaDailyDataType, AsthmaDataStatus, export_default$1_ as AsthmaDayView, export_default$1Z as AsthmaHeartAndLungsView, AsthmaImpact, AsthmaLogEntry, export_default$25 as AsthmaLogEntryDetails, AsthmaLogEntryDetailsPreviewState, export_default$1Y as AsthmaLogEntryEditorView, AsthmaLogEntryEditorViewPreviewState, export_default$24 as AsthmaLogEntryHeader, AsthmaParticipant, export_default$23 as AsthmaPostEnrollmentSurveyTrigger, export_default$1X as AsthmaSleepView, AsthmaSymptom, AsthmaSymptomLevel, AsthmaTrigger, BarChartOptions, export_default$h as BlankView, BloodPressureDataPoint, export_default$1T as BloodPressureVisualization, export_default$1s as Button, export_default$1m as Calendar, export_default$1l as CalendarDay, CalendarDayStateConfiguration, export_default$1k as Card, export_default$1j as CardTitle, export_default$M as CelebrationStep, export_default$L as CelebrationStepContainer, ColorDefinition, export_default$1S as ConditionsList, export_default$g as ConditionsView, export_default$K as ConnectDeviceAccountStep, export_default$J as ConnectDeviceAccountStepContainer, export_default$1R as ConnectDevicesMenu, export_default$1Q as ConnectEhr, export_default$I as ConnectEhrStep, export_default$H as ConnectEhrStepContainer, export_default$f as ConnectEhrView, export_default$1P as ConnectFitbit, export_default$1O as ConnectGarmin, DailyDataAvailabilityCheck, DailyDataChart, DailyDataProvider, DailyDataQueryResult, DailyDataType, DailyLogEntry, DateRangeContext, DateRangeNavigatorContext as DateRangeCoordinator, export_default$1i as DateRangeNavigator, export_default$1h as DayTrackerSymbol, DeviceDataChartLine, export_default$1N as DeviceDataMonthChart, export_default$1M as DeviceDataMonthCharts, export_default$e as DeviceDataView, export_default$1g as DumbbellChart, export_default$1L as ExternalAccountList, export_default$1K as ExternalAccountsLoadingIndicator, export_default$1J as ExternalAccountsPreview, export_default$d as ExternalAccountsView, export_default$1f as Face, export_default$1I as FitbitDevices, export_default$1H as FitbitMonthCharts, export_default$c as FitbitView, export_default$1G as GarminDevices, export_default$1F as GarminMonthCharts, export_default$b as GarminView, export_default$9 as HealthAndWellnessView, export_default$1E as HealthPreviewSection, export_default$1e as Histogram, export_default$a as HomeView, export_default$S as InboxCompletedListItem, export_default$3 as InboxHistoryView, export_default$O as InboxItemList, export_default$N as InboxItemListCoordinator, export_default$R as InboxMessageListItem, export_default$2 as InboxMessageView, export_default$Q as InboxResourceListItem, export_default$P as InboxSurveyListItem, InboxSurveyVariant, export_default$4 as InboxView, export_default$1D as LabResultsSummary, export_default$1d as Layout, LayoutContext, LineChartOptions, LoadingIndicator, export_default$1C as MedicationsList, export_default$8 as MedicationsView, export_default$1B as MostRecentNotification, export_default$1c as NavigationBar, NewPointsEntry, export_default$5 as NewPointsView, NewPointsViewProps, export_default$1b as NotesInput, export_default$1A as NotificationList, export_default$7 as NotificationsView, export_default$1z as PlatformSpecificContent, ProgressBar, ProgressBarStep, export_default$1a as ProgressRing, export_default$1y as ProjectHeader, export_default$1x as ProjectSupport, export_default$1w as ProviderSearch, export_default$1v as RecentDailyDataBarChart, export_default$1u as RelativeActivityToday, export_default$19 as Resource, ResourceDefinition, ResourceImageAlignment, export_default$18 as ResourceList, ResourceListPreviewState, export_default$1 as ResourceListView, export_default$1t as RestingHeartRateCalendar, export_default$17 as RotatingComponentCoordinator, RotatingComponentInterval, export_default$16 as Section, export_default$15 as SegmentedControl, export_default$1q as SeverityCalendar, export_default$14 as ShinyOverlay, export_default$13 as SingleDataPoint, export_default$12 as SingleExternalAccount, export_default$11 as SingleNotification, export_default$10 as SingleSurveyTask, export_default$$ as SparkBarChart, SparkBarChartBar, StatusBarBackgroundProps as StatusBarBackground, export_default$G as StepDetailText, export_default$E as StepImage, export_default$F as StepImageIcon, export_default$D as StepLayout, export_default$C as StepMarkdown, export_default$B as StepNextButton, export_default$A as StepText, export_default$z as StepTitle, SurveyBloodPressureDataParameters, export_default$1r as SurveyTaskList, export_default$6 as SurveyTasksView, export_default$_ as Switch, SymptomConfiguration, SymptomReference, export_default$w as SymptomSharkCalendar, export_default$l as SymptomSharkCalendarView, SymptomSharkConfiguration, SymptomSharkDataService, export_default$u as SymptomSharkLogEntry, export_default$n as SymptomSharkLogEntryEdit, export_default$k as SymptomSharkLogEntryEditView, export_default$p as SymptomSharkLogEntryList, export_default$o as SymptomSharkLogToday, export_default$v as SymptomSharkOverallExperienceChart, export_default$j as SymptomSharkSymptomDetailView, export_default$r as SymptomSharkSymptomSeverityChart, export_default$s as SymptomSharkSymptomSeveritySummary, export_default$q as SymptomSharkSymptomTreatmentFilters, export_default$t as SymptomSharkSymptomTreatmentHistograms, export_default$m as SymptomSharkVisualizationCoordinator, export_default$Z as TextBlock, export_default$Y as Title, export_default$X as TrackerItem, TreatmentConfiguration, TreatmentReference, export_default$W as UnstyledButton, export_default$V as ValueSelector, export_default$1p as ViewEhr, export_default$U as ViewHeader, export_default$T as WeekCalendar, WeekStartsOn, export_default$y as YouTubeStep, export_default$x as YouTubeStepContainer, service as asthmaDataService, export_default$1U as bloodPressureDataProvider, checkDailyDataAvailability, computeAsthmaControlState, convertToSymptomSharkConfiguration, dateToAsthmaLogEntryIdentifier, getAsthmaDataStatusColor, getAsthmaDataStatusText, getAsthmaImpactTexts, getAsthmaImpacts, getAsthmaSymptomLevel, getAsthmaSymptomLevelText, getAsthmaSymptomTexts, getAsthmaSymptoms, getAsthmaTriggerTexts, getAsthmaTriggers, getDayKey, getMonthStart, getWeekStart, isBloodOxygenLevelWithinRange, isDaytimeRestingHeartRateWithinRange, isNighttimeRestingHeartRateWithinRange, isRespiratoryRateWithinRange, isSleepDisturbancesWithinRange, isStepsWithinRange, language, queryDailyData, registerDailyDataProvider, resolveColor, showNewPoints, simpleAvailabilityCheck, useInitializeView, export_default as useInterval };
1746
+ export { export_default$23 as Action, export_default$22 as ActivityMeter, export_default$1j as AllergiesList, export_default$i as AllergiesView, export_default$1i as AppDownload, AreaChartOptions, AsthmaActionPlan, export_default$2d as AsthmaActionPlanManager, export_default$1r as AsthmaActionPlanView, export_default$1q as AsthmaActivityView, export_default$2c as AsthmaAirQualities, AsthmaAirQualitiesPreviewState, AsthmaAirQuality, AsthmaAirQualityType, export_default$1p as AsthmaAirQualityView, export_default$2b as AsthmaAlertTakeoverNotice, export_default$2a as AsthmaAlertTakeoverTrigger, export_default$1o as AsthmaAlertTakeoverView, AsthmaBiometric, AsthmaBiometricType, export_default$29 as AsthmaBiometrics, AsthmaBiometricsPreviewState, export_default$28 as AsthmaControlCalendar, AsthmaControlCalendarPreviewState, AsthmaControlCalendarVariant, AsthmaControlMetrics, AsthmaControlState, AsthmaControlStatus, export_default$27 as AsthmaControlStatusHeader, AsthmaDailyDataType, AsthmaDataStatus, export_default$1n as AsthmaDayView, export_default$1m as AsthmaHeartAndLungsView, AsthmaImpact, AsthmaLogEntry, export_default$26 as AsthmaLogEntryDetails, AsthmaLogEntryDetailsPreviewState, export_default$1l as AsthmaLogEntryEditorView, AsthmaLogEntryEditorViewPreviewState, export_default$25 as AsthmaLogEntryHeader, AsthmaParticipant, export_default$24 as AsthmaPostEnrollmentSurveyTrigger, export_default$1s as AsthmaRecommendedArticle, export_default$1k as AsthmaSleepView, AsthmaSymptom, AsthmaSymptomLevel, AsthmaTrigger, BarChartOptions, export_default$h as BlankView, BloodPressureDataPoint, export_default$1g as BloodPressureVisualization, export_default$21 as Button, export_default$20 as Calendar, export_default$1$ as CalendarDay, CalendarDayStateConfiguration, export_default$1_ as Card, export_default$1Z as CardTitle, export_default$M as CelebrationStep, export_default$L as CelebrationStepContainer, ColorDefinition, export_default$1f as ConditionsList, export_default$g as ConditionsView, export_default$K as ConnectDeviceAccountStep, export_default$J as ConnectDeviceAccountStepContainer, export_default$1e as ConnectDevicesMenu, export_default$1d as ConnectEhr, export_default$I as ConnectEhrStep, export_default$H as ConnectEhrStepContainer, export_default$f as ConnectEhrView, export_default$1c as ConnectFitbit, export_default$1b as ConnectGarmin, DailyDataAvailabilityCheck, DailyDataChart, DailyDataProvider, DailyDataQueryResult, DailyDataType, DailyLogEntry, DateRangeContext, DateRangeNavigatorContext as DateRangeCoordinator, export_default$1Y as DateRangeNavigator, export_default$1X as DayTrackerSymbol, DeviceDataChartLine, export_default$1a as DeviceDataMonthChart, export_default$19 as DeviceDataMonthCharts, export_default$e as DeviceDataView, export_default$1W as DumbbellChart, export_default$18 as ExternalAccountList, export_default$17 as ExternalAccountsLoadingIndicator, export_default$16 as ExternalAccountsPreview, export_default$d as ExternalAccountsView, export_default$1V as Face, export_default$15 as FitbitDevices, export_default$14 as FitbitMonthCharts, export_default$c as FitbitView, export_default$13 as GarminDevices, export_default$12 as GarminMonthCharts, export_default$b as GarminView, export_default$9 as HealthAndWellnessView, export_default$11 as HealthPreviewSection, export_default$1U as Histogram, export_default$a as HomeView, export_default$1w as InboxCompletedListItem, export_default$3 as InboxHistoryView, export_default$O as InboxItemList, export_default$N as InboxItemListCoordinator, export_default$1v as InboxMessageListItem, export_default$2 as InboxMessageView, export_default$1u as InboxResourceListItem, export_default$1t as InboxSurveyListItem, InboxSurveyVariant, export_default$4 as InboxView, export_default$10 as LabResultsSummary, export_default$1T as Layout, LayoutContext, LineChartOptions, LoadingIndicator, export_default$$ as MedicationsList, export_default$8 as MedicationsView, export_default$_ as MostRecentNotification, export_default$1S as NavigationBar, NewPointsEntry, export_default$5 as NewPointsView, NewPointsViewProps, export_default$1R as NotesInput, export_default$Z as NotificationList, export_default$7 as NotificationsView, export_default$Y as PlatformSpecificContent, ProgressBar, ProgressBarStep, export_default$1Q as ProgressRing, export_default$X as ProjectHeader, export_default$W as ProjectSupport, export_default$V as ProviderSearch, export_default$U as RecentDailyDataBarChart, export_default$T as RelativeActivityToday, export_default$1P as Resource, ResourceDefinition, ResourceImageAlignment, export_default$1O as ResourceList, ResourceListPreviewState, export_default$1 as ResourceListView, export_default$S as RestingHeartRateCalendar, export_default$1N as RotatingComponentCoordinator, RotatingComponentInterval, export_default$1M as Section, export_default$1L as SegmentedControl, export_default$Q as SeverityCalendar, export_default$1K as ShinyOverlay, export_default$1J as SingleDataPoint, export_default$1I as SingleExternalAccount, export_default$1H as SingleNotification, export_default$1G as SingleSurveyTask, export_default$1F as SparkBarChart, SparkBarChartBar, StatusBarBackgroundProps as StatusBarBackground, export_default$G as StepDetailText, export_default$E as StepImage, export_default$F as StepImageIcon, export_default$D as StepLayout, export_default$C as StepMarkdown, export_default$B as StepNextButton, export_default$A as StepText, export_default$z as StepTitle, SurveyBloodPressureDataParameters, export_default$R as SurveyTaskList, export_default$6 as SurveyTasksView, export_default$1E as Switch, SymptomConfiguration, SymptomReference, export_default$w as SymptomSharkCalendar, export_default$l as SymptomSharkCalendarView, SymptomSharkConfiguration, SymptomSharkDataService, export_default$u as SymptomSharkLogEntry, export_default$n as SymptomSharkLogEntryEdit, export_default$k as SymptomSharkLogEntryEditView, export_default$p as SymptomSharkLogEntryList, export_default$o as SymptomSharkLogToday, export_default$v as SymptomSharkOverallExperienceChart, export_default$j as SymptomSharkSymptomDetailView, export_default$r as SymptomSharkSymptomSeverityChart, export_default$s as SymptomSharkSymptomSeveritySummary, export_default$q as SymptomSharkSymptomTreatmentFilters, export_default$t as SymptomSharkSymptomTreatmentHistograms, export_default$m as SymptomSharkVisualizationCoordinator, export_default$1D as TextBlock, export_default$1C as Title, export_default$1B as TrackerItem, TreatmentConfiguration, TreatmentReference, export_default$1A as UnstyledButton, export_default$1z as ValueSelector, export_default$P as ViewEhr, export_default$1y as ViewHeader, export_default$1x as WeekCalendar, WeekStartsOn, export_default$y as YouTubeStep, export_default$x as YouTubeStepContainer, service as asthmaDataService, export_default$1h as bloodPressureDataProvider, checkDailyDataAvailability, computeAsthmaControlState, convertToSymptomSharkConfiguration, dateToAsthmaLogEntryIdentifier, getAsthmaDataStatusColor, getAsthmaDataStatusText, getAsthmaImpactTexts, getAsthmaImpacts, getAsthmaSymptomLevel, getAsthmaSymptomLevelText, getAsthmaSymptomTexts, getAsthmaSymptoms, getAsthmaTriggerTexts, getAsthmaTriggers, getDayKey, getMonthStart, getWeekStart, isBloodOxygenLevelWithinRange, isDaytimeRestingHeartRateWithinRange, isNighttimeRestingHeartRateWithinRange, isRespiratoryRateWithinRange, isSleepDisturbancesWithinRange, isStepsWithinRange, language, queryDailyData, registerDailyDataProvider, resolveColor, showNewPoints, simpleAvailabilityCheck, useInitializeView, export_default as useInterval };