@careevolution/mydatahelps-ui 1.11.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +8 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/container/ConnectDevice/ConnectDevice.d.ts +13 -0
- package/dist/cjs/types/components/container/ConnectDevice/index.d.ts +1 -0
- package/dist/cjs/types/components/container/ConnectEhr/ConnectEhr.d.ts +1 -0
- package/dist/cjs/types/components/container/ConnectFitbit/ConnectFitbit.d.ts +1 -2
- package/dist/cjs/types/components/container/ConnectGarmin/ConnectGarmin.d.ts +10 -0
- package/dist/cjs/types/components/container/ConnectGarmin/ConnectGarmin.stories.d.ts +11 -0
- package/dist/cjs/types/components/container/ConnectGarmin/index.d.ts +1 -0
- package/dist/cjs/types/components/container/ConnectedDevices/ConnectedDevices.d.ts +12 -0
- package/dist/cjs/types/components/container/ConnectedDevices/index.d.ts +1 -0
- package/dist/cjs/types/components/container/ExternalAccountsLoadingIndicator/ExternalAccountsLoadingIndicator.d.ts +7 -0
- package/dist/cjs/types/components/container/ExternalAccountsLoadingIndicator/ExternalAccountsLoadingIndicator.stories.d.ts +7 -0
- package/dist/cjs/types/components/container/ExternalAccountsLoadingIndicator/index.d.ts +1 -0
- package/dist/cjs/types/components/container/FitbitDevices/FitbitDevices.d.ts +3 -4
- package/dist/cjs/types/components/container/FitbitMonthCharts/FitbitMonthCharts.d.ts +2 -2
- package/dist/cjs/types/components/container/GarminDevices/GarminDevices.d.ts +7 -0
- package/dist/cjs/types/components/container/GarminDevices/GarminDevices.previewdata.d.ts +2 -0
- package/dist/cjs/types/components/container/GarminDevices/GarminDevices.stories.d.ts +7 -0
- package/dist/cjs/types/components/container/GarminDevices/index.d.ts +1 -0
- package/dist/cjs/types/components/container/GarminMonthCharts/GarminMonthCharts.d.ts +6 -0
- package/dist/cjs/types/components/container/GarminMonthCharts/GarminMonthCharts.stories.d.ts +7 -0
- package/dist/cjs/types/components/container/GarminMonthCharts/index.d.ts +1 -0
- package/dist/cjs/types/components/container/HealthPreviewSection/HealthPreviewSection.d.ts +10 -0
- package/dist/cjs/types/components/container/HealthPreviewSection/HealthPreviewSection.previewdata.d.ts +5 -0
- package/dist/cjs/types/components/container/HealthPreviewSection/HealthPreviewSection.stories.d.ts +7 -0
- package/dist/cjs/types/components/container/HealthPreviewSection/index.d.ts +1 -0
- package/dist/cjs/types/components/container/LabResultsSummary/LabResultsSummary.d.ts +10 -0
- package/dist/cjs/types/components/container/LabResultsSummary/LabResultsSummary.previewdata.d.ts +59 -0
- package/dist/cjs/types/components/container/LabResultsSummary/LabResultsSummary.stories.d.ts +8 -0
- package/dist/cjs/types/components/container/LabResultsSummary/index.d.ts +1 -0
- package/dist/cjs/types/components/container/MonthCharts/MonthCharts.d.ts +12 -0
- package/dist/cjs/types/components/container/MonthCharts/index.d.ts +1 -0
- package/dist/cjs/types/components/container/RelativeActivityToday/RelativeActivityToday.d.ts +15 -0
- package/dist/cjs/types/components/container/RelativeActivityToday/RelativeActivityToday.stories.d.ts +6 -0
- package/dist/cjs/types/components/container/RelativeActivityToday/index.d.ts +1 -0
- package/dist/cjs/types/components/container/index.d.ts +5 -0
- package/dist/cjs/types/components/presentational/Action/Action.d.ts +6 -1
- package/dist/cjs/types/components/presentational/Action/Action.stories.d.ts +3 -1
- package/dist/cjs/types/components/presentational/LabResultWithSparkline/LabResultWithSparkline.d.ts +26 -0
- package/dist/cjs/types/components/presentational/LabResultWithSparkline/LabResultWithSparkline.stories.d.ts +5 -0
- package/dist/cjs/types/components/presentational/LabResultWithSparkline/index.d.ts +1 -0
- package/dist/cjs/types/components/presentational/Section/Section.d.ts +1 -0
- package/dist/cjs/types/components/view/FitbitView/FitbitView.d.ts +4 -4
- package/dist/cjs/types/components/view/GarminView/GarminView.d.ts +11 -0
- package/dist/cjs/types/components/view/GarminView/GarminView.stories.d.ts +8 -0
- package/dist/cjs/types/components/view/GarminView/index.d.ts +1 -0
- package/dist/cjs/types/components/view/HealthAndWellnessView/HealthAndWellnessView.d.ts +9 -0
- package/dist/cjs/types/components/view/HealthAndWellnessView/HealthAndWellnessView.stories.d.ts +7 -0
- package/dist/cjs/types/components/view/HealthAndWellnessView/index.d.ts +1 -0
- package/dist/cjs/types/components/view/index.d.ts +2 -0
- package/dist/cjs/types/helpers/daily-data-providers/garmin-steps.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/index.d.ts +1 -0
- package/dist/cjs/types/helpers/daily-data-providers/query-garmin-single-daily-value.d.ts +3 -0
- package/dist/cjs/types/helpers/query-daily-data.d.ts +2 -0
- package/dist/esm/index.js +8 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/container/ConnectDevice/ConnectDevice.d.ts +13 -0
- package/dist/esm/types/components/container/ConnectDevice/index.d.ts +1 -0
- package/dist/esm/types/components/container/ConnectEhr/ConnectEhr.d.ts +1 -0
- package/dist/esm/types/components/container/ConnectFitbit/ConnectFitbit.d.ts +1 -2
- package/dist/esm/types/components/container/ConnectGarmin/ConnectGarmin.d.ts +10 -0
- package/dist/esm/types/components/container/ConnectGarmin/ConnectGarmin.stories.d.ts +11 -0
- package/dist/esm/types/components/container/ConnectGarmin/index.d.ts +1 -0
- package/dist/esm/types/components/container/ConnectedDevices/ConnectedDevices.d.ts +12 -0
- package/dist/esm/types/components/container/ConnectedDevices/index.d.ts +1 -0
- package/dist/esm/types/components/container/ExternalAccountsLoadingIndicator/ExternalAccountsLoadingIndicator.d.ts +7 -0
- package/dist/esm/types/components/container/ExternalAccountsLoadingIndicator/ExternalAccountsLoadingIndicator.stories.d.ts +7 -0
- package/dist/esm/types/components/container/ExternalAccountsLoadingIndicator/index.d.ts +1 -0
- package/dist/esm/types/components/container/FitbitDevices/FitbitDevices.d.ts +3 -4
- package/dist/esm/types/components/container/FitbitMonthCharts/FitbitMonthCharts.d.ts +2 -2
- package/dist/esm/types/components/container/GarminDevices/GarminDevices.d.ts +7 -0
- package/dist/esm/types/components/container/GarminDevices/GarminDevices.previewdata.d.ts +2 -0
- package/dist/esm/types/components/container/GarminDevices/GarminDevices.stories.d.ts +7 -0
- package/dist/esm/types/components/container/GarminDevices/index.d.ts +1 -0
- package/dist/esm/types/components/container/GarminMonthCharts/GarminMonthCharts.d.ts +6 -0
- package/dist/esm/types/components/container/GarminMonthCharts/GarminMonthCharts.stories.d.ts +7 -0
- package/dist/esm/types/components/container/GarminMonthCharts/index.d.ts +1 -0
- package/dist/esm/types/components/container/HealthPreviewSection/HealthPreviewSection.d.ts +10 -0
- package/dist/esm/types/components/container/HealthPreviewSection/HealthPreviewSection.previewdata.d.ts +5 -0
- package/dist/esm/types/components/container/HealthPreviewSection/HealthPreviewSection.stories.d.ts +7 -0
- package/dist/esm/types/components/container/HealthPreviewSection/index.d.ts +1 -0
- package/dist/esm/types/components/container/LabResultsSummary/LabResultsSummary.d.ts +10 -0
- package/dist/esm/types/components/container/LabResultsSummary/LabResultsSummary.previewdata.d.ts +59 -0
- package/dist/esm/types/components/container/LabResultsSummary/LabResultsSummary.stories.d.ts +8 -0
- package/dist/esm/types/components/container/LabResultsSummary/index.d.ts +1 -0
- package/dist/esm/types/components/container/MonthCharts/MonthCharts.d.ts +12 -0
- package/dist/esm/types/components/container/MonthCharts/index.d.ts +1 -0
- package/dist/esm/types/components/container/RelativeActivityToday/RelativeActivityToday.d.ts +15 -0
- package/dist/esm/types/components/container/RelativeActivityToday/RelativeActivityToday.stories.d.ts +6 -0
- package/dist/esm/types/components/container/RelativeActivityToday/index.d.ts +1 -0
- package/dist/esm/types/components/container/index.d.ts +5 -0
- package/dist/esm/types/components/presentational/Action/Action.d.ts +6 -1
- package/dist/esm/types/components/presentational/Action/Action.stories.d.ts +3 -1
- package/dist/esm/types/components/presentational/LabResultWithSparkline/LabResultWithSparkline.d.ts +26 -0
- package/dist/esm/types/components/presentational/LabResultWithSparkline/LabResultWithSparkline.stories.d.ts +5 -0
- package/dist/esm/types/components/presentational/LabResultWithSparkline/index.d.ts +1 -0
- package/dist/esm/types/components/presentational/Section/Section.d.ts +1 -0
- package/dist/esm/types/components/view/FitbitView/FitbitView.d.ts +4 -4
- package/dist/esm/types/components/view/GarminView/GarminView.d.ts +11 -0
- package/dist/esm/types/components/view/GarminView/GarminView.stories.d.ts +8 -0
- package/dist/esm/types/components/view/GarminView/index.d.ts +1 -0
- package/dist/esm/types/components/view/HealthAndWellnessView/HealthAndWellnessView.d.ts +9 -0
- package/dist/esm/types/components/view/HealthAndWellnessView/HealthAndWellnessView.stories.d.ts +7 -0
- package/dist/esm/types/components/view/HealthAndWellnessView/index.d.ts +1 -0
- package/dist/esm/types/components/view/index.d.ts +2 -0
- package/dist/esm/types/helpers/daily-data-providers/garmin-steps.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/index.d.ts +1 -0
- package/dist/esm/types/helpers/daily-data-providers/query-garmin-single-daily-value.d.ts +3 -0
- package/dist/esm/types/helpers/query-daily-data.d.ts +2 -0
- package/dist/index.d.ts +120 -51
- package/package.json +2 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ExternalAccountStatus } from "@careevolution/mydatahelps-js";
|
|
3
|
+
import "./ConnectDevice.css";
|
|
4
|
+
export interface ConnectDeviceProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
providerName: string;
|
|
7
|
+
providerIDCallback: () => number;
|
|
8
|
+
previewState?: ConnectDevicePreviewState;
|
|
9
|
+
disabledBehavior?: 'hide' | 'displayError';
|
|
10
|
+
dataCollectionProperty: string;
|
|
11
|
+
}
|
|
12
|
+
export declare type ConnectDevicePreviewState = ExternalAccountStatus | "notConnected" | "notEnabled";
|
|
13
|
+
export default function (props: ConnectDeviceProps): JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ConnectDevice";
|
|
@@ -5,6 +5,7 @@ export interface ConnectEhrProps {
|
|
|
5
5
|
applicationUrl: ConnectEhrApplicationUrl;
|
|
6
6
|
previewState?: ConnectEhrPreviewState;
|
|
7
7
|
disabledBehavior?: 'hide' | 'displayError';
|
|
8
|
+
bottomBorder?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare type ConnectEhrApplicationUrl = "preview" | string;
|
|
10
11
|
export declare type ConnectEhrPreviewState = "notEnabled" | "enabled" | "enabledConnected" | "enabledNeedsAttention";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ExternalAccountStatus } from "@careevolution/mydatahelps-js";
|
|
3
|
-
import "./ConnectFitbit.css";
|
|
4
3
|
export interface ConnectFitbitProps {
|
|
5
4
|
title?: string;
|
|
6
5
|
fitbitProviderID?: number;
|
|
@@ -8,4 +7,4 @@ export interface ConnectFitbitProps {
|
|
|
8
7
|
disabledBehavior?: 'hide' | 'displayError';
|
|
9
8
|
}
|
|
10
9
|
export declare type ConnectFitbitPreviewState = ExternalAccountStatus | "notConnected" | "notEnabled";
|
|
11
|
-
export default function (props: ConnectFitbitProps): JSX.Element
|
|
10
|
+
export default function (props: ConnectFitbitProps): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ExternalAccountStatus } from "@careevolution/mydatahelps-js";
|
|
3
|
+
export interface ConnectGarminProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
garminProviderID?: number;
|
|
6
|
+
previewState?: ConnectGarminPreviewState;
|
|
7
|
+
disabledBehavior?: 'hide' | 'displayError';
|
|
8
|
+
}
|
|
9
|
+
export declare type ConnectGarminPreviewState = ExternalAccountStatus | "notConnected" | "notEnabled";
|
|
10
|
+
export default function (props: ConnectGarminProps): JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
2
|
+
import ConnectGarmin from "./ConnectGarmin";
|
|
3
|
+
declare const _default: ComponentMeta<typeof ConnectGarmin>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const NotConnected: ComponentStory<typeof ConnectGarmin>;
|
|
6
|
+
export declare const Unauthorized: ComponentStory<typeof ConnectGarmin>;
|
|
7
|
+
export declare const FetchComplete: ComponentStory<typeof ConnectGarmin>;
|
|
8
|
+
export declare const FetchingData: ComponentStory<typeof ConnectGarmin>;
|
|
9
|
+
export declare const NotEnabledDefault: ComponentStory<typeof ConnectGarmin>;
|
|
10
|
+
export declare const NotEnabledHide: ComponentStory<typeof ConnectGarmin>;
|
|
11
|
+
export declare const NotEnabledDisplayError: ComponentStory<typeof ConnectGarmin>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ConnectGarmin";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DeviceDataNamespace, DeviceDataPoint } from "@careevolution/mydatahelps-js";
|
|
3
|
+
import "./ConnectedDevices.css";
|
|
4
|
+
import '@fortawesome/fontawesome-svg-core/styles.css';
|
|
5
|
+
export interface ConnectedDevicesProps {
|
|
6
|
+
providerName: string;
|
|
7
|
+
providerNamespace: DeviceDataNamespace;
|
|
8
|
+
previewState?: ConnectedDevicesPreviewState;
|
|
9
|
+
previewData: DeviceDataPoint[];
|
|
10
|
+
}
|
|
11
|
+
export declare type ConnectedDevicesPreviewState = "notEnabled" | "notConnected" | "connected";
|
|
12
|
+
export default function (props: ConnectedDevicesProps): JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ConnectedDevices";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./ExternalAccountsLoadingIndicator.css";
|
|
3
|
+
export interface ExternalAccountsLoadingIndicatorProps {
|
|
4
|
+
previewState?: "externalAccountsFetchingData" | "externalAccountsLoaded";
|
|
5
|
+
externalAccountCategories?: string[];
|
|
6
|
+
}
|
|
7
|
+
export default function (props: ExternalAccountsLoadingIndicatorProps): JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentMeta, ComponentStory } from "@storybook/react";
|
|
2
|
+
import ExternalAccountsLoadingIndicator from "./ExternalAccountsLoadingIndicator";
|
|
3
|
+
declare const _default: ComponentMeta<typeof ExternalAccountsLoadingIndicator>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const ExternalAccountsFetchingData: ComponentStory<typeof ExternalAccountsLoadingIndicator>;
|
|
6
|
+
export declare const ExternalAccountsFetchComplete: ComponentStory<typeof ExternalAccountsLoadingIndicator>;
|
|
7
|
+
export declare const Live: ComponentStory<typeof ExternalAccountsLoadingIndicator>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ExternalAccountsLoadingIndicator";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import "./FitbitDevices.css";
|
|
3
2
|
import '@fortawesome/fontawesome-svg-core/styles.css';
|
|
3
|
+
import { ConnectedDevicesPreviewState } from '../ConnectedDevices/ConnectedDevices';
|
|
4
4
|
export interface FitbitDevicesProps {
|
|
5
|
-
previewState?:
|
|
5
|
+
previewState?: ConnectedDevicesPreviewState;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
8
|
-
export default function (props: FitbitDevicesProps): JSX.Element | null;
|
|
7
|
+
export default function (props: FitbitDevicesProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { MonthChartsPreviewState } from '../MonthCharts/MonthCharts';
|
|
2
3
|
export interface FitbitMonthChartsProps {
|
|
3
|
-
previewState?:
|
|
4
|
+
previewState?: MonthChartsPreviewState;
|
|
4
5
|
}
|
|
5
|
-
export declare type FitbitMonthChartsPreviewState = "notEnabled" | "notConnected" | "connected";
|
|
6
6
|
export default function (props: FitbitMonthChartsProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import '@fortawesome/fontawesome-svg-core/styles.css';
|
|
3
|
+
import { ConnectedDevicesPreviewState } from '../ConnectedDevices/ConnectedDevices';
|
|
4
|
+
export interface GarminDevicesProps {
|
|
5
|
+
previewState?: ConnectedDevicesPreviewState;
|
|
6
|
+
}
|
|
7
|
+
export default function (props: GarminDevicesProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
2
|
+
import GarminDevices from "./GarminDevices";
|
|
3
|
+
declare const _default: ComponentMeta<typeof GarminDevices>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const NotEnabled: ComponentStory<typeof GarminDevices>;
|
|
6
|
+
export declare const NotConnected: ComponentStory<typeof GarminDevices>;
|
|
7
|
+
export declare const Connected: ComponentStory<typeof GarminDevices>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./GarminDevices";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
2
|
+
import GarminMonthCharts from "./GarminMonthCharts";
|
|
3
|
+
declare const _default: ComponentMeta<typeof GarminMonthCharts>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const NotEnabled: ComponentStory<typeof GarminMonthCharts>;
|
|
6
|
+
export declare const NotConnected: ComponentStory<typeof GarminMonthCharts>;
|
|
7
|
+
export declare const Connected: ComponentStory<typeof GarminMonthCharts>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./GarminMonthCharts";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./HealthPreviewSection.css";
|
|
3
|
+
export declare type HealthPreviewSectionConcept = "Medications" | "Immunizations" | "Reports" | "Allergies" | "Conditions" | "Procedures";
|
|
4
|
+
export interface HealthPreviewSectionProps {
|
|
5
|
+
concept: HealthPreviewSectionConcept;
|
|
6
|
+
onClick(): void;
|
|
7
|
+
previewState?: "NoData" | "Default";
|
|
8
|
+
indicatorPosition?: "default" | "topRight";
|
|
9
|
+
}
|
|
10
|
+
export default function (props: HealthPreviewSectionProps): JSX.Element | null;
|
package/dist/esm/types/components/container/HealthPreviewSection/HealthPreviewSection.stories.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
2
|
+
import HealthPreviewSection from "./HealthPreviewSection";
|
|
3
|
+
declare const _default: ComponentMeta<typeof HealthPreviewSection>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<typeof HealthPreviewSection>;
|
|
6
|
+
export declare const NoData: ComponentStory<typeof HealthPreviewSection>;
|
|
7
|
+
export declare const Live: ComponentStory<typeof HealthPreviewSection>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./HealthPreviewSection";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./LabResultsSummary.css";
|
|
3
|
+
import "../HealthPreviewSection/HealthPreviewSection.css";
|
|
4
|
+
import { TermInformation } from "../../presentational/LabResultWithSparkline/LabResultWithSparkline";
|
|
5
|
+
export interface LabResultsSummaryProps {
|
|
6
|
+
previewState?: "ImportantLabs" | "RecentLabs" | "NoData";
|
|
7
|
+
onClick(): void;
|
|
8
|
+
onViewTermInfo(termInfo: TermInformation): void;
|
|
9
|
+
}
|
|
10
|
+
export default function (props: LabResultsSummaryProps): JSX.Element | null;
|
package/dist/esm/types/components/container/LabResultsSummary/LabResultsSummary.previewdata.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare const recentLabs: {
|
|
2
|
+
RecentLabs: {
|
|
3
|
+
TotalLabReports: number;
|
|
4
|
+
RecentLabReports: string[];
|
|
5
|
+
};
|
|
6
|
+
ImportantLabs: never[];
|
|
7
|
+
};
|
|
8
|
+
export declare const importantLabs: {
|
|
9
|
+
RecentLabs: {
|
|
10
|
+
TotalLabReports: number;
|
|
11
|
+
RecentLabReports: string[];
|
|
12
|
+
};
|
|
13
|
+
ImportantLabs: (({
|
|
14
|
+
Type: string;
|
|
15
|
+
MostRecentValue: string;
|
|
16
|
+
MostRecentDate: string;
|
|
17
|
+
AcuityHighlight: string;
|
|
18
|
+
SparklinePoints: never[];
|
|
19
|
+
NormalRangeTopY: null;
|
|
20
|
+
NormalRangeBottomY: null;
|
|
21
|
+
TermInformation: {
|
|
22
|
+
TermNamespace: string;
|
|
23
|
+
TermCode: string;
|
|
24
|
+
TermFamily: string;
|
|
25
|
+
};
|
|
26
|
+
} | {
|
|
27
|
+
Type: string;
|
|
28
|
+
MostRecentValue: string;
|
|
29
|
+
MostRecentDate: string;
|
|
30
|
+
AcuityHighlight: string;
|
|
31
|
+
SparklinePoints: {
|
|
32
|
+
X: number;
|
|
33
|
+
Y: number;
|
|
34
|
+
}[];
|
|
35
|
+
NormalRangeTopY: null;
|
|
36
|
+
NormalRangeBottomY: number;
|
|
37
|
+
TermInformation: {
|
|
38
|
+
TermNamespace: string;
|
|
39
|
+
TermCode: string;
|
|
40
|
+
TermFamily: string;
|
|
41
|
+
};
|
|
42
|
+
})[] | {
|
|
43
|
+
Type: string;
|
|
44
|
+
MostRecentValue: string;
|
|
45
|
+
MostRecentDate: string;
|
|
46
|
+
AcuityHighlight: string;
|
|
47
|
+
SparklinePoints: {
|
|
48
|
+
X: number;
|
|
49
|
+
Y: number;
|
|
50
|
+
}[];
|
|
51
|
+
NormalRangeTopY: number;
|
|
52
|
+
NormalRangeBottomY: number;
|
|
53
|
+
TermInformation: {
|
|
54
|
+
TermNamespace: string;
|
|
55
|
+
TermCode: string;
|
|
56
|
+
TermFamily: string;
|
|
57
|
+
};
|
|
58
|
+
}[])[];
|
|
59
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
2
|
+
import LabResultsSummary from "./LabResultsSummary";
|
|
3
|
+
declare const _default: ComponentMeta<typeof LabResultsSummary>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const ImportantLabs: ComponentStory<typeof LabResultsSummary>;
|
|
6
|
+
export declare const RecentLabs: ComponentStory<typeof LabResultsSummary>;
|
|
7
|
+
export declare const NoData: ComponentStory<typeof LabResultsSummary>;
|
|
8
|
+
export declare const Live: ComponentStory<typeof LabResultsSummary>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./LabResultsSummary";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DeviceDataChartLine } from '../DeviceDataMonthChart';
|
|
3
|
+
export interface MonthChartsProps {
|
|
4
|
+
previewState?: MonthChartsPreviewState;
|
|
5
|
+
charts?: {
|
|
6
|
+
lines: DeviceDataChartLine[];
|
|
7
|
+
title: string;
|
|
8
|
+
syncId: string;
|
|
9
|
+
}[];
|
|
10
|
+
}
|
|
11
|
+
export declare type MonthChartsPreviewState = "notEnabled" | "notConnected" | "connected";
|
|
12
|
+
export default function (props: MonthChartsProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./MonthCharts";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./RelativeActivityToday.css";
|
|
3
|
+
export interface RelativeActivityTodayProps {
|
|
4
|
+
dataTypes: RelativeActivityDataType[];
|
|
5
|
+
previewState?: "Default";
|
|
6
|
+
title?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface RelativeActivityDataType {
|
|
9
|
+
dailyDataType: string;
|
|
10
|
+
label: string;
|
|
11
|
+
icon: React.ReactElement;
|
|
12
|
+
color: string;
|
|
13
|
+
formatter: (number: number) => string;
|
|
14
|
+
}
|
|
15
|
+
export default function (props: RelativeActivityTodayProps): JSX.Element | null;
|
package/dist/esm/types/components/container/RelativeActivityToday/RelativeActivityToday.stories.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
2
|
+
import RelativeActivityToday from "./RelativeActivityToday";
|
|
3
|
+
declare const _default: ComponentMeta<typeof RelativeActivityToday>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<typeof RelativeActivityToday>;
|
|
6
|
+
export declare const Live: ComponentStory<typeof RelativeActivityToday>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./RelativeActivityToday";
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
export { default as ConnectEhr } from "./ConnectEhr";
|
|
2
2
|
export { default as ConnectFitbit } from "./ConnectFitbit";
|
|
3
|
+
export { default as ConnectGarmin } from "./ConnectGarmin";
|
|
3
4
|
export { default as DeviceDataMonthChart, DeviceDataChartLine } from "./DeviceDataMonthChart";
|
|
4
5
|
export { default as DeviceDataMonthCharts } from "./DeviceDataMonthCharts";
|
|
5
6
|
export { default as ExternalAccountList } from "./ExternalAccountList";
|
|
6
7
|
export { default as ExternalAccountsPreview } from "./ExternalAccountsPreview";
|
|
7
8
|
export { default as FitbitDevices } from "./FitbitDevices";
|
|
8
9
|
export { default as FitbitMonthCharts } from "./FitbitMonthCharts";
|
|
10
|
+
export { default as GarminDevices } from "./GarminDevices";
|
|
11
|
+
export { default as GarminMonthCharts } from "./GarminMonthCharts";
|
|
12
|
+
export { default as HealthPreviewSection } from "./HealthPreviewSection";
|
|
13
|
+
export { default as LabResultsSummary } from "./LabResultsSummary";
|
|
9
14
|
export { default as MostRecentNotification } from "./MostRecentNotification";
|
|
10
15
|
export { default as NotificationList } from "./NotificationList";
|
|
11
16
|
export { default as PlatformSpecificContent } from "./PlatformSpecificContent";
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
2
|
import '@fortawesome/fontawesome-svg-core/styles.css';
|
|
3
3
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
4
4
|
import "./Action.css";
|
|
5
5
|
export interface ActionProps {
|
|
6
6
|
title?: string;
|
|
7
|
+
titleIcon?: ReactElement;
|
|
8
|
+
icon?: ReactElement;
|
|
7
9
|
subtitle?: string;
|
|
8
10
|
indicatorIcon?: IconDefinition;
|
|
9
11
|
onClick: Function;
|
|
10
12
|
children?: React.ReactNode;
|
|
11
13
|
className?: string;
|
|
14
|
+
indicatorValue?: string;
|
|
15
|
+
indicatorPosition?: "default" | "topRight";
|
|
16
|
+
bottomBorder?: boolean;
|
|
12
17
|
}
|
|
13
18
|
export default function (props: ActionProps): JSX.Element;
|
|
@@ -4,4 +4,6 @@ import './Action.stories.css';
|
|
|
4
4
|
declare const _default: ComponentMeta<typeof Action>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const StartSurvey: ComponentStory<typeof Action>;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const WithClass: ComponentStory<typeof Action>;
|
|
8
|
+
export declare const WithIcon: ComponentStory<typeof Action>;
|
|
9
|
+
export declare const WithTitleIcon: ComponentStory<typeof Action>;
|
package/dist/esm/types/components/presentational/LabResultWithSparkline/LabResultWithSparkline.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./LabResultWithSparkline.css";
|
|
3
|
+
export interface LabResultValue {
|
|
4
|
+
Type: string;
|
|
5
|
+
MostRecentValue: string;
|
|
6
|
+
AcuityHighlight: string;
|
|
7
|
+
MostRecentDate: string;
|
|
8
|
+
NormalRangeTopY: number;
|
|
9
|
+
NormalRangeBottomY: number;
|
|
10
|
+
SparklinePoints: SparklinePoint[];
|
|
11
|
+
TermInformation?: TermInformation;
|
|
12
|
+
}
|
|
13
|
+
export interface SparklinePoint {
|
|
14
|
+
X: number;
|
|
15
|
+
Y: number;
|
|
16
|
+
}
|
|
17
|
+
export interface TermInformation {
|
|
18
|
+
TermFamily: string;
|
|
19
|
+
TermNamespace: string;
|
|
20
|
+
TermCode: string;
|
|
21
|
+
}
|
|
22
|
+
export interface LabResultWithSparklineProps {
|
|
23
|
+
labResultValue: LabResultValue;
|
|
24
|
+
onViewTermInfo(termInfo: TermInformation): void;
|
|
25
|
+
}
|
|
26
|
+
export default function (props: LabResultWithSparklineProps): JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
2
|
+
import LabResultWithSparkline from "./LabResultWithSparkline";
|
|
3
|
+
declare const _default: ComponentMeta<typeof LabResultWithSparkline>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<typeof LabResultWithSparkline>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./LabResultWithSparkline";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ConnectFitbitPreviewState } from "../../container/ConnectFitbit/ConnectFitbit";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { ConnectedDevicesPreviewState } from '../../container/ConnectedDevices/ConnectedDevices';
|
|
4
|
+
import { MonthChartsPreviewState } from '../../container/MonthCharts/MonthCharts';
|
|
5
5
|
export interface FitbitViewProps {
|
|
6
6
|
connectPreview?: ConnectFitbitPreviewState;
|
|
7
|
-
devicesPreview?:
|
|
8
|
-
chartsPreview?:
|
|
7
|
+
devicesPreview?: ConnectedDevicesPreviewState;
|
|
8
|
+
chartsPreview?: MonthChartsPreviewState;
|
|
9
9
|
colorScheme?: "auto" | "light" | "dark";
|
|
10
10
|
}
|
|
11
11
|
export default function (props: FitbitViewProps): JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ConnectGarminPreviewState } from "../../container/ConnectGarmin/ConnectGarmin";
|
|
3
|
+
import { ConnectedDevicesPreviewState } from '../../container/ConnectedDevices/ConnectedDevices';
|
|
4
|
+
import { MonthChartsPreviewState } from '../../container/MonthCharts/MonthCharts';
|
|
5
|
+
export interface GarminViewProps {
|
|
6
|
+
connectPreview?: ConnectGarminPreviewState;
|
|
7
|
+
devicesPreview?: ConnectedDevicesPreviewState;
|
|
8
|
+
chartsPreview?: MonthChartsPreviewState;
|
|
9
|
+
garminProviderID?: number;
|
|
10
|
+
}
|
|
11
|
+
export default function (props: GarminViewProps): JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
2
|
+
import GarminView from "./GarminView";
|
|
3
|
+
declare const _default: ComponentMeta<typeof GarminView>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const NotEnabled: ComponentStory<typeof GarminView>;
|
|
6
|
+
export declare const NotConnected: ComponentStory<typeof GarminView>;
|
|
7
|
+
export declare const Connected: ComponentStory<typeof GarminView>;
|
|
8
|
+
export declare const Live: ComponentStory<typeof GarminView>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./GarminView";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface HealthAndWellnessViewProps {
|
|
3
|
+
previewState?: "default";
|
|
4
|
+
colorScheme?: "auto" | "light" | "dark";
|
|
5
|
+
connectEhrApplicationUrl: string;
|
|
6
|
+
externalAccountsApplicationUrl: string;
|
|
7
|
+
variant?: "default" | "cardBased";
|
|
8
|
+
}
|
|
9
|
+
export default function (props: HealthAndWellnessViewProps): JSX.Element;
|
package/dist/esm/types/components/view/HealthAndWellnessView/HealthAndWellnessView.stories.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
2
|
+
import HealthAndWellnessView from "./HealthAndWellnessView";
|
|
3
|
+
declare const _default: ComponentMeta<typeof HealthAndWellnessView>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<typeof HealthAndWellnessView>;
|
|
6
|
+
export declare const CardBased: ComponentStory<typeof HealthAndWellnessView>;
|
|
7
|
+
export declare const Live: ComponentStory<typeof HealthAndWellnessView>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./HealthAndWellnessView";
|
|
@@ -2,6 +2,8 @@ export { default as ConnectEhrView } from "./ConnectEhrView";
|
|
|
2
2
|
export { default as DeviceDataView } from "./DeviceDataView";
|
|
3
3
|
export { default as ExternalAccountsView } from "./ExternalAccountsView";
|
|
4
4
|
export { default as FitbitView } from "./FitbitView";
|
|
5
|
+
export { default as GarminView } from "./GarminView";
|
|
5
6
|
export { default as HomeView } from "./HomeView";
|
|
7
|
+
export { default as HealthAndWellnessView } from "./HealthAndWellnessView";
|
|
6
8
|
export { default as NotificationsView } from "./NotificationsView";
|
|
7
9
|
export { default as SurveyTasksView } from "./SurveyTasksView";
|
|
@@ -30,3 +30,4 @@ export { default as fitbitSpO2DataProvider } from "./fitbit-spo2";
|
|
|
30
30
|
export { default as combinedStepsDataProvider } from "./combined-steps";
|
|
31
31
|
export { default as googleFitStepsDataProvider } from "./google-fit-steps";
|
|
32
32
|
export { default as appleHealthDistanceDataProvider } from "./apple-health-distance";
|
|
33
|
+
export { default as garminStepsDataProvider } from "./garmin-steps";
|
|
@@ -37,6 +37,8 @@ export declare enum DailyDataType {
|
|
|
37
37
|
FitbitDeepSleepMinutes = "FitbitDeepSleepMinutes",
|
|
38
38
|
FitbitSpO2 = "FitbitSpO2",
|
|
39
39
|
FitbitSteps = "FitbitSteps",
|
|
40
|
+
GarminRestingHeartRate = "GarminRestingHeartRate",
|
|
41
|
+
GarminSteps = "GarminSteps",
|
|
40
42
|
GoogleFitSteps = "GoogleFitSteps",
|
|
41
43
|
Steps = "Steps",
|
|
42
44
|
RestingHeartRate = "RestingHeartRate"
|