@careevolution/mydatahelps-ui 2.7.5 → 2.8.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 +9 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/container/ConnectDevice/ConnectDevice.d.ts +5 -3
- package/dist/cjs/types/components/container/ConnectDevicesMenu/ConnectDevicesMenu.d.ts +1 -1
- package/dist/cjs/types/components/container/ConnectEhr/ConnectEhr.d.ts +9 -2
- package/dist/cjs/types/components/container/ConnectEhr/ConnectEhr.stories.d.ts +90 -0
- package/dist/cjs/types/components/container/ConnectFitbit/ConnectFitbit.d.ts +2 -1
- package/dist/cjs/types/components/container/ConnectGarmin/ConnectGarmin.d.ts +2 -1
- package/dist/cjs/types/components/container/ConnectedDevices/ConnectedDevices.d.ts +1 -1
- package/dist/cjs/types/components/container/DeviceDataMonthChart/DeviceDataMonthChart.d.ts +1 -1
- package/dist/cjs/types/components/container/DeviceDataMonthCharts/DeviceDataMonthCharts.d.ts +1 -1
- package/dist/cjs/types/components/container/ExternalAccountList/ExternalAccountList.d.ts +1 -1
- package/dist/cjs/types/components/container/ExternalAccountsPreview/ExternalAccountsPreview.d.ts +2 -2
- package/dist/cjs/types/components/container/HealthPreviewSection/HealthPreviewSection.d.ts +1 -1
- package/dist/cjs/types/components/container/MonthCharts/MonthCharts.d.ts +1 -1
- package/dist/cjs/types/components/container/MostRecentNotification/MostRecentNotification.d.ts +1 -1
- package/dist/cjs/types/components/container/NotificationList/NotificationList.d.ts +1 -1
- package/dist/cjs/types/components/container/ProjectHeader/ProjectHeader.d.ts +1 -1
- package/dist/cjs/types/components/container/ProjectSupport/ProjectSupport.d.ts +1 -1
- package/dist/cjs/types/components/container/ProviderSearch/ProviderSearch.d.ts +1 -1
- package/dist/cjs/types/components/container/RestingHeartRateCalendar/RestingHeartRateCalendar.d.ts +1 -1
- package/dist/cjs/types/components/container/SurveyTaskList/SurveyTaskList.d.ts +8 -1
- package/dist/cjs/types/components/container/ViewEhr/ViewEhr.d.ts +13 -0
- package/dist/cjs/types/components/container/ViewEhr/ViewEhr.stories.d.ts +16 -0
- package/dist/cjs/types/components/container/ViewEhr/index.d.ts +1 -0
- package/dist/cjs/types/components/container/index.d.ts +1 -0
- package/dist/cjs/types/components/presentational/Action/Action.d.ts +7 -3
- package/dist/cjs/types/components/presentational/Button/Button.d.ts +6 -2
- package/dist/cjs/types/components/presentational/Card/Card.d.ts +3 -0
- package/dist/cjs/types/components/presentational/CardTitle/CardTitle.d.ts +2 -0
- package/dist/cjs/types/components/presentational/Layout/Layout.d.ts +3 -2
- package/dist/cjs/types/components/presentational/NavigationBar/NavigationBar.d.ts +4 -0
- package/dist/cjs/types/components/presentational/Section/Section.d.ts +3 -0
- package/dist/cjs/types/components/presentational/SingleSurveyTask/SingleSurveyTask.d.ts +4 -0
- package/dist/cjs/types/components/presentational/TextBlock/TextBlock.d.ts +3 -0
- package/dist/cjs/types/components/presentational/TextBlock/TextBlock.stories.d.ts +39 -0
- package/dist/cjs/types/components/presentational/Title/Title.d.ts +7 -1
- package/dist/cjs/types/components/presentational/Title/Title.stories.d.ts +19 -0
- package/dist/cjs/types/components/presentational/ViewHeader/ViewHeader.d.ts +3 -0
- package/dist/cjs/types/components/view/BlankView/BlankView.d.ts +6 -1
- package/dist/cjs/types/components/view/ConnectEhrView/ConnectEhrView.d.ts +1 -1
- package/dist/cjs/types/components/view/ExternalAccountsView/ExternalAccountsView.d.ts +1 -1
- package/dist/cjs/types/components/view/NotificationsView/NotificationsView.d.ts +1 -1
- package/dist/cjs/types/components/view/SurveyTasksView/SurveyTasksView.d.ts +1 -1
- package/dist/cjs/types/helpers/colors.d.ts +5 -0
- package/dist/cjs/types/helpers/get-interval-start.d.ts +1 -1
- package/dist/cjs/types/helpers/query-daily-data.d.ts +3 -3
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +8 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/container/ConnectDevice/ConnectDevice.d.ts +5 -3
- package/dist/esm/types/components/container/ConnectDevicesMenu/ConnectDevicesMenu.d.ts +1 -1
- package/dist/esm/types/components/container/ConnectEhr/ConnectEhr.d.ts +9 -2
- package/dist/esm/types/components/container/ConnectEhr/ConnectEhr.stories.d.ts +90 -0
- package/dist/esm/types/components/container/ConnectFitbit/ConnectFitbit.d.ts +2 -1
- package/dist/esm/types/components/container/ConnectGarmin/ConnectGarmin.d.ts +2 -1
- package/dist/esm/types/components/container/ConnectedDevices/ConnectedDevices.d.ts +1 -1
- package/dist/esm/types/components/container/DeviceDataMonthChart/DeviceDataMonthChart.d.ts +1 -1
- package/dist/esm/types/components/container/DeviceDataMonthCharts/DeviceDataMonthCharts.d.ts +1 -1
- package/dist/esm/types/components/container/ExternalAccountList/ExternalAccountList.d.ts +1 -1
- package/dist/esm/types/components/container/ExternalAccountsPreview/ExternalAccountsPreview.d.ts +2 -2
- package/dist/esm/types/components/container/HealthPreviewSection/HealthPreviewSection.d.ts +1 -1
- package/dist/esm/types/components/container/MonthCharts/MonthCharts.d.ts +1 -1
- package/dist/esm/types/components/container/MostRecentNotification/MostRecentNotification.d.ts +1 -1
- package/dist/esm/types/components/container/NotificationList/NotificationList.d.ts +1 -1
- package/dist/esm/types/components/container/ProjectHeader/ProjectHeader.d.ts +1 -1
- package/dist/esm/types/components/container/ProjectSupport/ProjectSupport.d.ts +1 -1
- package/dist/esm/types/components/container/ProviderSearch/ProviderSearch.d.ts +1 -1
- package/dist/esm/types/components/container/RestingHeartRateCalendar/RestingHeartRateCalendar.d.ts +1 -1
- package/dist/esm/types/components/container/SurveyTaskList/SurveyTaskList.d.ts +8 -1
- package/dist/esm/types/components/container/ViewEhr/ViewEhr.d.ts +13 -0
- package/dist/esm/types/components/container/ViewEhr/ViewEhr.stories.d.ts +16 -0
- package/dist/esm/types/components/container/ViewEhr/index.d.ts +1 -0
- package/dist/esm/types/components/container/index.d.ts +1 -0
- package/dist/esm/types/components/presentational/Action/Action.d.ts +7 -3
- package/dist/esm/types/components/presentational/Button/Button.d.ts +6 -2
- package/dist/esm/types/components/presentational/Card/Card.d.ts +3 -0
- package/dist/esm/types/components/presentational/CardTitle/CardTitle.d.ts +2 -0
- package/dist/esm/types/components/presentational/Layout/Layout.d.ts +3 -2
- package/dist/esm/types/components/presentational/NavigationBar/NavigationBar.d.ts +4 -0
- package/dist/esm/types/components/presentational/Section/Section.d.ts +3 -0
- package/dist/esm/types/components/presentational/SingleSurveyTask/SingleSurveyTask.d.ts +4 -0
- package/dist/esm/types/components/presentational/TextBlock/TextBlock.d.ts +3 -0
- package/dist/esm/types/components/presentational/TextBlock/TextBlock.stories.d.ts +39 -0
- package/dist/esm/types/components/presentational/Title/Title.d.ts +7 -1
- package/dist/esm/types/components/presentational/Title/Title.stories.d.ts +19 -0
- package/dist/esm/types/components/presentational/ViewHeader/ViewHeader.d.ts +3 -0
- package/dist/esm/types/components/view/BlankView/BlankView.d.ts +6 -1
- package/dist/esm/types/components/view/ConnectEhrView/ConnectEhrView.d.ts +1 -1
- package/dist/esm/types/components/view/ExternalAccountsView/ExternalAccountsView.d.ts +1 -1
- package/dist/esm/types/components/view/NotificationsView/NotificationsView.d.ts +1 -1
- package/dist/esm/types/components/view/SurveyTasksView/SurveyTasksView.d.ts +1 -1
- package/dist/esm/types/helpers/colors.d.ts +5 -0
- package/dist/esm/types/helpers/get-interval-start.d.ts +1 -1
- package/dist/esm/types/helpers/query-daily-data.d.ts +3 -3
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +148 -90
- package/package.json +4 -4
|
@@ -2,13 +2,15 @@ import React from 'react';
|
|
|
2
2
|
import { ExternalAccountStatus } from "@careevolution/mydatahelps-js";
|
|
3
3
|
import "./ConnectDevice.css";
|
|
4
4
|
export interface ConnectDeviceProps {
|
|
5
|
-
title
|
|
5
|
+
title: string;
|
|
6
6
|
providerName: string;
|
|
7
|
-
|
|
7
|
+
providerID: number;
|
|
8
8
|
previewState?: ConnectDevicePreviewState;
|
|
9
9
|
disabledBehavior?: 'hide' | 'displayError';
|
|
10
10
|
dataCollectionProperty: string;
|
|
11
11
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
12
|
+
titleImage: React.ReactNode;
|
|
13
|
+
hideWhenConnected?: boolean;
|
|
12
14
|
}
|
|
13
|
-
export
|
|
15
|
+
export type ConnectDevicePreviewState = ExternalAccountStatus | "notConnected" | "notEnabled";
|
|
14
16
|
export default function (props: ConnectDeviceProps): React.JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import "./ConnectDevicesMenu.css";
|
|
3
|
-
export
|
|
3
|
+
export type DeviceAccountType = "Fitbit" | "Garmin" | "AppleHealth" | "GoogleFit" | "Omron";
|
|
4
4
|
export interface ConnectDevicesMenuProps {
|
|
5
5
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
6
6
|
accountTypes?: DeviceAccountType[];
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import "./ConnectEhr.css";
|
|
3
3
|
import '@fortawesome/fontawesome-svg-core/styles.css';
|
|
4
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
4
5
|
export interface ConnectEhrProps {
|
|
5
6
|
applicationUrl: ConnectEhrApplicationUrl;
|
|
6
7
|
previewState?: ConnectEhrPreviewState;
|
|
7
8
|
disabledBehavior?: 'hide' | 'displayError';
|
|
8
9
|
bottomBorder?: boolean;
|
|
9
10
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
11
|
+
variant?: "large" | "medium" | "small";
|
|
12
|
+
title?: string;
|
|
13
|
+
notConnectedText?: string;
|
|
14
|
+
connectedText?: string;
|
|
15
|
+
hideWhenConnected?: boolean;
|
|
16
|
+
buttonColor?: ColorDefinition;
|
|
10
17
|
}
|
|
11
|
-
export
|
|
12
|
-
export
|
|
18
|
+
export type ConnectEhrApplicationUrl = "preview" | string;
|
|
19
|
+
export type ConnectEhrPreviewState = "notEnabled" | "enabled" | "enabledConnected" | "enabledNeedsAttention";
|
|
13
20
|
export default function (props: ConnectEhrProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import ConnectEhr, { ConnectEhrProps } from "./ConnectEhr";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof ConnectEhr;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const NotEnabledDefault: {
|
|
12
|
+
args: {
|
|
13
|
+
previewState: string;
|
|
14
|
+
};
|
|
15
|
+
render: (args: ConnectEhrProps) => React.JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export declare const NotEnabledHide: {
|
|
18
|
+
args: {
|
|
19
|
+
previewState: string;
|
|
20
|
+
disabledBehavior: string;
|
|
21
|
+
};
|
|
22
|
+
render: (args: ConnectEhrProps) => React.JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
export declare const Medium: {
|
|
25
|
+
args: {
|
|
26
|
+
previewState: string;
|
|
27
|
+
variant: string;
|
|
28
|
+
};
|
|
29
|
+
render: (args: ConnectEhrProps) => React.JSX.Element;
|
|
30
|
+
};
|
|
31
|
+
export declare const Small: {
|
|
32
|
+
args: {
|
|
33
|
+
previewState: string;
|
|
34
|
+
variant: string;
|
|
35
|
+
};
|
|
36
|
+
render: (args: ConnectEhrProps) => React.JSX.Element;
|
|
37
|
+
};
|
|
38
|
+
export declare const NotEnabledDisplayError: {
|
|
39
|
+
args: {
|
|
40
|
+
previewState: string;
|
|
41
|
+
disabledBehavior: string;
|
|
42
|
+
};
|
|
43
|
+
render: (args: ConnectEhrProps) => React.JSX.Element;
|
|
44
|
+
};
|
|
45
|
+
export declare const Enabled: {
|
|
46
|
+
args: {
|
|
47
|
+
previewState: string;
|
|
48
|
+
applicationUrl: string;
|
|
49
|
+
};
|
|
50
|
+
render: (args: ConnectEhrProps) => React.JSX.Element;
|
|
51
|
+
};
|
|
52
|
+
export declare const EnabledConnected: {
|
|
53
|
+
args: {
|
|
54
|
+
previewState: string;
|
|
55
|
+
applicationUrl: string;
|
|
56
|
+
};
|
|
57
|
+
render: (args: ConnectEhrProps) => React.JSX.Element;
|
|
58
|
+
};
|
|
59
|
+
export declare const EnabledNeedsAttention: {
|
|
60
|
+
args: {
|
|
61
|
+
previewState: string;
|
|
62
|
+
applicationUrl: string;
|
|
63
|
+
};
|
|
64
|
+
render: (args: ConnectEhrProps) => React.JSX.Element;
|
|
65
|
+
};
|
|
66
|
+
export declare const Live: {
|
|
67
|
+
args: {
|
|
68
|
+
disabledBehavior: string;
|
|
69
|
+
applicationUrl: string;
|
|
70
|
+
};
|
|
71
|
+
render: (args: ConnectEhrProps) => React.JSX.Element;
|
|
72
|
+
};
|
|
73
|
+
export declare const CustomConnectedText: {
|
|
74
|
+
args: {
|
|
75
|
+
previewState: string;
|
|
76
|
+
applicationUrl: string;
|
|
77
|
+
title: string;
|
|
78
|
+
connectedText: string;
|
|
79
|
+
};
|
|
80
|
+
render: (args: ConnectEhrProps) => React.JSX.Element;
|
|
81
|
+
};
|
|
82
|
+
export declare const CustomConnectText: {
|
|
83
|
+
args: {
|
|
84
|
+
previewState: string;
|
|
85
|
+
applicationUrl: string;
|
|
86
|
+
title: string;
|
|
87
|
+
connectedText: string;
|
|
88
|
+
};
|
|
89
|
+
render: (args: ConnectEhrProps) => React.JSX.Element;
|
|
90
|
+
};
|
|
@@ -6,6 +6,7 @@ export interface ConnectFitbitProps {
|
|
|
6
6
|
previewState?: ConnectFitbitPreviewState;
|
|
7
7
|
disabledBehavior?: 'hide' | 'displayError';
|
|
8
8
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
9
|
+
hideWhenConnected?: boolean;
|
|
9
10
|
}
|
|
10
|
-
export
|
|
11
|
+
export type ConnectFitbitPreviewState = ExternalAccountStatus | "notConnected" | "notEnabled";
|
|
11
12
|
export default function (props: ConnectFitbitProps): React.JSX.Element;
|
|
@@ -6,6 +6,7 @@ export interface ConnectGarminProps {
|
|
|
6
6
|
previewState?: ConnectGarminPreviewState;
|
|
7
7
|
disabledBehavior?: 'hide' | 'displayError';
|
|
8
8
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
9
|
+
hideWhenConnected?: boolean;
|
|
9
10
|
}
|
|
10
|
-
export
|
|
11
|
+
export type ConnectGarminPreviewState = ExternalAccountStatus | "notConnected" | "notEnabled";
|
|
11
12
|
export default function (props: ConnectGarminProps): React.JSX.Element;
|
|
@@ -9,5 +9,5 @@ export interface ConnectedDevicesProps {
|
|
|
9
9
|
previewData: DeviceDataPoint[];
|
|
10
10
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type ConnectedDevicesPreviewState = "notEnabled" | "notConnected" | "connected";
|
|
13
13
|
export default function (props: ConnectedDevicesProps): React.JSX.Element | null;
|
|
@@ -16,5 +16,5 @@ export interface DeviceDataChartLine {
|
|
|
16
16
|
valueConverter?: Function;
|
|
17
17
|
showAverage?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type DeviceDataMonthChartPreviewState = "WithData" | "NoData" | "Loading";
|
|
20
20
|
export default function (props: DeviceDataMonthChartProps): React.JSX.Element | null;
|
package/dist/cjs/types/components/container/DeviceDataMonthCharts/DeviceDataMonthCharts.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
export interface DeviceDataMonthChartsProps {
|
|
3
3
|
previewState?: DeviceDataMonthChartsPreviewState;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type DeviceDataMonthChartsPreviewState = "Default" | "NoData";
|
|
6
6
|
export default function (props: DeviceDataMonthChartsProps): React.JSX.Element;
|
|
@@ -6,5 +6,5 @@ export interface ExternalAccountListProps {
|
|
|
6
6
|
onExternalAccountsLoaded?: (accounts: ExternalAccount[]) => void;
|
|
7
7
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type NotificationListPreviewState = "Default";
|
|
10
10
|
export default function (props: ExternalAccountListProps): React.JSX.Element;
|
package/dist/cjs/types/components/container/ExternalAccountsPreview/ExternalAccountsPreview.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ export interface ExternalAccountsPreviewProps {
|
|
|
8
8
|
previewState?: ExternalAccountsPreviewPreviewState;
|
|
9
9
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export type ExternalAccountsApplicationUrl = "preview" | string;
|
|
12
|
+
export type ExternalAccountsPreviewPreviewState = "Default";
|
|
13
13
|
export default function (props: ExternalAccountsPreviewProps): React.JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./HealthPreviewSection.css";
|
|
3
|
-
export
|
|
3
|
+
export type HealthPreviewSectionConcept = "Medications" | "Immunizations" | "Reports" | "Allergies" | "Conditions" | "Procedures";
|
|
4
4
|
export interface HealthPreviewSectionProps {
|
|
5
5
|
concept: HealthPreviewSectionConcept;
|
|
6
6
|
onClick(): void;
|
|
@@ -8,5 +8,5 @@ export interface MonthChartsProps {
|
|
|
8
8
|
syncId: string;
|
|
9
9
|
}[];
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type MonthChartsPreviewState = "notEnabled" | "notConnected" | "connected";
|
|
12
12
|
export default function (props: MonthChartsProps): React.JSX.Element;
|
package/dist/cjs/types/components/container/MostRecentNotification/MostRecentNotification.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export interface MostRecentNotificationProps {
|
|
|
8
8
|
previewState?: MostRecentNotificationPreviewState;
|
|
9
9
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type MostRecentNotificationPreviewState = "Default";
|
|
12
12
|
export default function (props: MostRecentNotificationProps): React.JSX.Element | null;
|
|
@@ -5,5 +5,5 @@ export interface NotificationListProps {
|
|
|
5
5
|
previewState?: NotificationListPreviewState;
|
|
6
6
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type NotificationListPreviewState = "Default" | "NoData";
|
|
9
9
|
export default function (props: NotificationListProps): React.JSX.Element;
|
|
@@ -4,5 +4,5 @@ export interface ProjectHeaderProps {
|
|
|
4
4
|
previewState?: ProjectHeaderPropsPreviewState;
|
|
5
5
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type ProjectHeaderPropsPreviewState = "Default";
|
|
8
8
|
export default function (props: ProjectHeaderProps): React.JSX.Element;
|
|
@@ -4,5 +4,5 @@ export interface ProjectSupportProps {
|
|
|
4
4
|
previewState?: ProjectSupportPropsPreviewState;
|
|
5
5
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type ProjectSupportPropsPreviewState = "Default";
|
|
8
8
|
export default function (props: ProjectSupportProps): React.JSX.Element | null;
|
|
@@ -8,5 +8,5 @@ export interface ProviderSearchProps {
|
|
|
8
8
|
onProviderConnected?: (provider: ExternalAccountProvider) => void;
|
|
9
9
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type ProviderSearchPreviewState = "Default";
|
|
12
12
|
export default function (props: ProviderSearchProps): React.JSX.Element;
|
package/dist/cjs/types/components/container/RestingHeartRateCalendar/RestingHeartRateCalendar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import "./RestingHeartRateCalendar.css";
|
|
3
|
-
export
|
|
3
|
+
export type RestingHeartRateCalendarPreviewState = "WithData" | "NoData" | "Loading";
|
|
4
4
|
export interface RestingHeartRateCalendarProps {
|
|
5
5
|
month: number;
|
|
6
6
|
year: number;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import "./SurveyTaskList.css";
|
|
3
3
|
import { SurveyTaskStatus } from "@careevolution/mydatahelps-js";
|
|
4
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
5
|
+
import { ButtonVariant } from '../../presentational/Button/Button';
|
|
4
6
|
export interface SurveyTaskListProps {
|
|
5
7
|
status: SurveyTaskStatus;
|
|
6
8
|
limit?: number;
|
|
@@ -10,6 +12,11 @@ export interface SurveyTaskListProps {
|
|
|
10
12
|
previewState?: SurveyTaskListListPreviewState;
|
|
11
13
|
variant?: "noCard" | "singleCard" | "multiCard";
|
|
12
14
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
15
|
+
titleColor?: ColorDefinition;
|
|
16
|
+
cardBackgroundColor?: ColorDefinition;
|
|
17
|
+
cardStyle?: React.CSSProperties;
|
|
18
|
+
buttonVariant?: ButtonVariant;
|
|
19
|
+
buttonColor?: ColorDefinition;
|
|
13
20
|
}
|
|
14
|
-
export
|
|
21
|
+
export type SurveyTaskListListPreviewState = "IncompleteTasks" | "CompleteTasks";
|
|
15
22
|
export default function (props: SurveyTaskListProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
3
|
+
import "./ViewEhr.css";
|
|
4
|
+
import { ButtonVariant } from '../../presentational/Button/Button';
|
|
5
|
+
export interface ViewEhrProps {
|
|
6
|
+
onClick(): void;
|
|
7
|
+
title?: string;
|
|
8
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
9
|
+
previewState?: "fetchComplete" | "fetchingData";
|
|
10
|
+
buttonColor?: ColorDefinition;
|
|
11
|
+
buttonVariant?: ButtonVariant;
|
|
12
|
+
}
|
|
13
|
+
export default function (props: ViewEhrProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import ViewEhr, { ViewEhrProps } from "./ViewEhr";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof ViewEhr;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Default: {
|
|
12
|
+
args: {
|
|
13
|
+
previewState: string;
|
|
14
|
+
};
|
|
15
|
+
render: (args: ViewEhrProps) => React.JSX.Element;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ViewEhr";
|
|
@@ -24,3 +24,4 @@ export { default as ProviderSearch } from "./ProviderSearch";
|
|
|
24
24
|
export { default as RelativeActivityToday } from "./RelativeActivityToday";
|
|
25
25
|
export { default as RestingHeartRateCalendar } from "./RestingHeartRateCalendar";
|
|
26
26
|
export { default as SurveyTaskList } from "./SurveyTaskList";
|
|
27
|
+
export { default as ViewEhr } from "./ViewEhr";
|
|
@@ -2,19 +2,23 @@ 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
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
5
6
|
export interface ActionProps {
|
|
6
7
|
title?: string;
|
|
7
8
|
titleIcon?: ReactElement;
|
|
8
9
|
icon?: ReactElement;
|
|
9
10
|
subtitle?: string;
|
|
10
|
-
indicatorIcon?: IconDefinition;
|
|
11
|
-
indicator?: ReactElement;
|
|
12
11
|
onClick?: Function;
|
|
13
12
|
children?: React.ReactNode;
|
|
14
13
|
className?: string;
|
|
14
|
+
indicatorIcon?: IconDefinition;
|
|
15
|
+
indicator?: ReactElement;
|
|
15
16
|
indicatorValue?: string;
|
|
16
17
|
indicatorPosition?: "default" | "topRight";
|
|
17
18
|
bottomBorder?: boolean;
|
|
18
|
-
innerRef?: React.Ref<
|
|
19
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
20
|
+
titleColor?: ColorDefinition;
|
|
21
|
+
subtitleColor?: ColorDefinition;
|
|
22
|
+
renderAs?: "div" | "button";
|
|
19
23
|
}
|
|
20
24
|
export default function (props: ActionProps): React.JSX.Element;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import "./Button.css";
|
|
3
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
4
|
+
export type ButtonVariant = "default" | "subtle" | "light";
|
|
3
5
|
export interface ButtonProps {
|
|
4
6
|
children?: React.ReactNode;
|
|
5
7
|
disabled?: boolean;
|
|
6
8
|
onClick: Function;
|
|
7
9
|
className?: string;
|
|
8
|
-
color?:
|
|
10
|
+
color?: ColorDefinition;
|
|
9
11
|
loading?: boolean;
|
|
10
|
-
variant?:
|
|
12
|
+
variant?: ButtonVariant;
|
|
11
13
|
innerRef?: React.Ref<HTMLButtonElement>;
|
|
14
|
+
defaultMargin?: boolean;
|
|
15
|
+
fullWidth?: boolean;
|
|
12
16
|
}
|
|
13
17
|
export default function (props: ButtonProps): React.JSX.Element;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import "./Card.css";
|
|
3
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
3
4
|
export interface CardProps {
|
|
4
5
|
className?: string;
|
|
5
6
|
children?: React.ReactNode;
|
|
6
7
|
allowOverflow?: boolean;
|
|
7
8
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
8
9
|
variant?: "default" | "subtle" | "highlight";
|
|
10
|
+
backgroundColor?: ColorDefinition;
|
|
11
|
+
style?: React.CSSProperties;
|
|
9
12
|
}
|
|
10
13
|
export default function (props: CardProps): React.JSX.Element | null;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import "./CardTitle.css";
|
|
3
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
3
4
|
export interface CardTitleProps {
|
|
4
5
|
title: string;
|
|
5
6
|
onDetailClick?: Function;
|
|
6
7
|
detailLinkText?: string;
|
|
7
8
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
9
|
+
color?: ColorDefinition;
|
|
8
10
|
}
|
|
9
11
|
export default function (props: CardTitleProps): React.JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StatusBarStyle } from '@careevolution/mydatahelps-js';
|
|
3
3
|
import "./Layout.css";
|
|
4
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
4
5
|
export interface LayoutProps {
|
|
5
6
|
children?: React.ReactNode;
|
|
6
|
-
bodyBackgroundColor?:
|
|
7
|
-
primaryColor?:
|
|
7
|
+
bodyBackgroundColor?: ColorDefinition;
|
|
8
|
+
primaryColor?: ColorDefinition;
|
|
8
9
|
statusBarStyle?: StatusBarStyle;
|
|
9
10
|
className?: string;
|
|
10
11
|
noGlobalStyles?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import "./NavigationBar.css";
|
|
3
3
|
import '@fortawesome/fontawesome-svg-core/styles.css';
|
|
4
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
4
5
|
export interface NavigationBarProps {
|
|
5
6
|
title?: string;
|
|
6
7
|
subtitle?: string;
|
|
@@ -11,5 +12,8 @@ export interface NavigationBarProps {
|
|
|
11
12
|
backButtonText?: string;
|
|
12
13
|
className?: string;
|
|
13
14
|
variant?: "default" | "compressed";
|
|
15
|
+
titleColor?: ColorDefinition;
|
|
16
|
+
subtitleColor?: ColorDefinition;
|
|
17
|
+
buttonColor?: ColorDefinition;
|
|
14
18
|
}
|
|
15
19
|
export default function (props: NavigationBarProps): React.JSX.Element;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import "./Section.css";
|
|
3
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
3
4
|
export interface SectionProps {
|
|
4
5
|
children?: React.ReactNode;
|
|
5
6
|
className?: string;
|
|
6
7
|
noTopMargin?: boolean;
|
|
7
8
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
9
|
+
backgroundColor?: ColorDefinition;
|
|
10
|
+
style?: React.CSSProperties;
|
|
8
11
|
}
|
|
9
12
|
export default function (props: SectionProps): React.JSX.Element | null;
|
|
@@ -3,10 +3,14 @@ import "./SingleSurveyTask.css";
|
|
|
3
3
|
import { SurveyTask } from "@careevolution/mydatahelps-js";
|
|
4
4
|
import { IconDefinition } from '@fortawesome/fontawesome-common-types';
|
|
5
5
|
import '@fortawesome/fontawesome-svg-core/styles.css';
|
|
6
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
7
|
+
import { ButtonVariant } from '../Button/Button';
|
|
6
8
|
export interface SingleSurveyTaskProps {
|
|
7
9
|
task: SurveyTask;
|
|
8
10
|
descriptionIcon?: IconDefinition;
|
|
9
11
|
disableClick?: boolean;
|
|
10
12
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
13
|
+
buttonColor?: ColorDefinition;
|
|
14
|
+
buttonVariant?: ButtonVariant;
|
|
11
15
|
}
|
|
12
16
|
export default function (props: SingleSurveyTaskProps): React.JSX.Element | null;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import "./TextBlock.css";
|
|
3
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
3
4
|
export interface TextBlockProps {
|
|
4
5
|
children?: React.ReactNode;
|
|
5
6
|
className?: string;
|
|
6
7
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
8
|
+
color?: ColorDefinition;
|
|
9
|
+
style?: React.CSSProperties;
|
|
7
10
|
}
|
|
8
11
|
export default function (props: TextBlockProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import TextBlock, { TextBlockProps } from "./TextBlock";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof TextBlock;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Default: {
|
|
12
|
+
args: {
|
|
13
|
+
children: string;
|
|
14
|
+
};
|
|
15
|
+
render: (args: TextBlockProps) => React.JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export declare const CustomStyle: {
|
|
18
|
+
args: {
|
|
19
|
+
style: {
|
|
20
|
+
marginTop: string;
|
|
21
|
+
marginBottom: string;
|
|
22
|
+
fontWeight: string;
|
|
23
|
+
};
|
|
24
|
+
children: string;
|
|
25
|
+
};
|
|
26
|
+
render: (args: TextBlockProps) => React.JSX.Element;
|
|
27
|
+
};
|
|
28
|
+
export declare const CustomColor: {
|
|
29
|
+
args: {
|
|
30
|
+
style: {
|
|
31
|
+
marginTop: string;
|
|
32
|
+
marginBottom: string;
|
|
33
|
+
color: string;
|
|
34
|
+
};
|
|
35
|
+
color: string;
|
|
36
|
+
children: string;
|
|
37
|
+
};
|
|
38
|
+
render: (args: TextBlockProps) => React.JSX.Element;
|
|
39
|
+
};
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
import "./Title.css";
|
|
3
|
+
import { ColorDefinition } from "../../../helpers/colors";
|
|
3
4
|
export interface TitleProps {
|
|
5
|
+
color?: ColorDefinition;
|
|
4
6
|
order?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
7
|
children?: React.ReactNode;
|
|
6
8
|
style?: React.CSSProperties;
|
|
7
9
|
className?: string;
|
|
10
|
+
image?: ReactNode;
|
|
11
|
+
autosizeImage?: boolean;
|
|
12
|
+
imageAlignment?: "top" | "left";
|
|
13
|
+
defaultMargin?: boolean;
|
|
8
14
|
}
|
|
9
15
|
export default function (props: TitleProps): React.JSX.Element;
|
|
@@ -8,6 +8,25 @@ declare const _default: {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
11
|
+
export declare const ImageLeft: {
|
|
12
|
+
args: {
|
|
13
|
+
children: string;
|
|
14
|
+
order: number;
|
|
15
|
+
autosizeImage: boolean;
|
|
16
|
+
image: React.JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
render: (args: TitleProps) => React.JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
export declare const ImageTop: {
|
|
21
|
+
args: {
|
|
22
|
+
children: string;
|
|
23
|
+
order: number;
|
|
24
|
+
image: React.JSX.Element;
|
|
25
|
+
autosizeImage: boolean;
|
|
26
|
+
imageAlignment: string;
|
|
27
|
+
};
|
|
28
|
+
render: (args: TitleProps) => React.JSX.Element;
|
|
29
|
+
};
|
|
11
30
|
export declare const H1: {
|
|
12
31
|
args: {
|
|
13
32
|
children: string;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./ViewHeader.css";
|
|
3
|
+
import { ColorDefinition } from "../../../helpers/colors";
|
|
3
4
|
export interface ViewHeaderProps {
|
|
4
5
|
title?: string;
|
|
5
6
|
subtitle?: string;
|
|
7
|
+
titleColor?: ColorDefinition;
|
|
8
|
+
subtitleColor?: ColorDefinition;
|
|
6
9
|
}
|
|
7
10
|
export default function (props: ViewHeaderProps): React.JSX.Element | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
2
3
|
export interface BlankViewProps {
|
|
3
4
|
children?: React.ReactNode;
|
|
4
5
|
title?: string;
|
|
@@ -6,6 +7,10 @@ export interface BlankViewProps {
|
|
|
6
7
|
showCloseButton?: boolean;
|
|
7
8
|
showBackButton?: boolean;
|
|
8
9
|
colorScheme?: "auto" | "light" | "dark";
|
|
9
|
-
primaryColor?:
|
|
10
|
+
primaryColor?: ColorDefinition;
|
|
11
|
+
bodyBackgroundColor?: ColorDefinition;
|
|
12
|
+
titleColor?: ColorDefinition;
|
|
13
|
+
subtitleColor?: ColorDefinition;
|
|
14
|
+
navigationBarButtonColor?: ColorDefinition;
|
|
10
15
|
}
|
|
11
16
|
export default function (props: BlankViewProps): React.JSX.Element;
|
|
@@ -8,5 +8,5 @@ export interface ConnectEhrViewProps {
|
|
|
8
8
|
preview?: boolean;
|
|
9
9
|
colorScheme?: "auto" | "light" | "dark";
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type ViewPresentationType = "Modal" | "Push";
|
|
12
12
|
export default function (props: ConnectEhrViewProps): React.JSX.Element;
|
|
@@ -7,5 +7,5 @@ export interface ExternalAccountsViewProps {
|
|
|
7
7
|
preview?: boolean;
|
|
8
8
|
colorScheme?: "auto" | "light" | "dark";
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type ViewPresentationType = "Modal" | "Push";
|
|
11
11
|
export default function (props: ExternalAccountsViewProps): React.JSX.Element;
|
|
@@ -6,5 +6,5 @@ export interface NotificationsViewProps {
|
|
|
6
6
|
preview?: boolean;
|
|
7
7
|
colorScheme?: "auto" | "light" | "dark";
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type ViewPresentationType = "Modal" | "Push";
|
|
10
10
|
export default function (props: NotificationsViewProps): React.JSX.Element;
|
|
@@ -7,5 +7,5 @@ export interface SurveyTasksViewProps {
|
|
|
7
7
|
preview?: boolean;
|
|
8
8
|
colorScheme?: "auto" | "light" | "dark";
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type ViewPresentationType = "Modal" | "Push";
|
|
11
11
|
export default function (props: SurveyTasksViewProps): React.JSX.Element;
|