@careevolution/mydatahelps-ui 2.9.0 → 2.9.1-AsthmaUI.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 +24 -24
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/asthma/container/AsthmaAirQualities/AsthmaAirQualities.d.ts +9 -0
- package/dist/cjs/types/components/asthma/container/AsthmaAirQualities/AsthmaAirQualities.previewData.d.ts +6 -0
- package/dist/cjs/types/components/asthma/container/AsthmaAirQualities/AsthmaAirQualities.stories.d.ts +16 -0
- package/dist/cjs/types/components/asthma/container/AsthmaAirQualities/index.d.ts +2 -0
- package/dist/cjs/types/components/asthma/container/AsthmaBiometrics/AsthmaBiometrics.d.ts +9 -0
- package/dist/cjs/types/components/asthma/container/AsthmaBiometrics/AsthmaBiometrics.previewData.d.ts +6 -0
- package/dist/cjs/types/components/asthma/container/AsthmaBiometrics/AsthmaBiometrics.stories.d.ts +16 -0
- package/dist/cjs/types/components/asthma/container/AsthmaBiometrics/index.d.ts +2 -0
- package/dist/cjs/types/components/asthma/container/AsthmaCalendarViewHeader/AsthmaCalendarViewHeader.d.ts +10 -0
- package/dist/cjs/types/components/asthma/container/AsthmaCalendarViewHeader/AsthmaCalendarViewHeader.previewData.d.ts +8 -0
- package/dist/cjs/types/components/asthma/container/AsthmaCalendarViewHeader/AsthmaCalendarViewHeader.stories.d.ts +16 -0
- package/dist/cjs/types/components/asthma/container/AsthmaCalendarViewHeader/index.d.ts +2 -0
- package/dist/cjs/types/components/asthma/container/AsthmaControlCalendar/AsthmaControlCalendar.d.ts +9 -0
- package/dist/cjs/types/components/asthma/container/AsthmaControlCalendar/AsthmaControlCalendar.previewData.d.ts +6 -0
- package/dist/cjs/types/components/asthma/container/AsthmaControlCalendar/AsthmaControlCalendar.stories.d.ts +22 -0
- package/dist/cjs/types/components/asthma/container/AsthmaControlCalendar/index.d.ts +2 -0
- package/dist/cjs/types/components/asthma/container/AsthmaControlStatusHeader/AsthmaControlStatusHeader.d.ts +10 -0
- package/dist/cjs/types/components/asthma/container/AsthmaControlStatusHeader/AsthmaControlStatusHeader.previewData.d.ts +8 -0
- package/dist/cjs/types/components/asthma/container/AsthmaControlStatusHeader/AsthmaControlStatusHeader.stories.d.ts +138 -0
- package/dist/cjs/types/components/asthma/container/AsthmaControlStatusHeader/index.d.ts +2 -0
- package/dist/cjs/types/components/asthma/container/AsthmaDashboardViewHeader/AsthmaDashboardViewHeader.d.ts +10 -0
- package/dist/cjs/types/components/asthma/container/AsthmaDashboardViewHeader/AsthmaDashboardViewHeader.previewData.d.ts +10 -0
- package/dist/cjs/types/components/asthma/container/AsthmaDashboardViewHeader/AsthmaDashboardViewHeader.stories.d.ts +16 -0
- package/dist/cjs/types/components/asthma/container/AsthmaDashboardViewHeader/index.d.ts +2 -0
- package/dist/cjs/types/components/asthma/container/AsthmaLogEntryHeader/AsthmaLogEntryHeader.d.ts +10 -0
- package/dist/cjs/types/components/asthma/container/AsthmaLogEntryHeader/AsthmaLogEntryHeader.previewData.d.ts +7 -0
- package/dist/cjs/types/components/asthma/container/AsthmaLogEntryHeader/AsthmaLogEntryHeader.stories.d.ts +34 -0
- package/dist/cjs/types/components/asthma/container/AsthmaLogEntryHeader/index.d.ts +2 -0
- package/dist/cjs/types/components/asthma/container/index.d.ts +7 -0
- package/dist/cjs/types/components/asthma/helpers/asthma-data.d.ts +9 -0
- package/dist/cjs/types/components/asthma/helpers/asthma-functions.d.ts +7 -0
- package/dist/cjs/types/components/asthma/helpers/index.d.ts +2 -0
- package/dist/cjs/types/components/asthma/index.d.ts +5 -0
- package/dist/cjs/types/components/asthma/model/index.d.ts +1 -0
- package/dist/cjs/types/components/asthma/model/types.d.ts +49 -0
- package/dist/cjs/types/components/asthma/presentational/AsthmaDataSummary/AsthmaDataSummary.d.ts +12 -0
- package/dist/cjs/types/components/asthma/presentational/AsthmaDataSummary/AsthmaDataSummary.stories.d.ts +70 -0
- package/dist/cjs/types/components/asthma/presentational/AsthmaDataSummary/index.d.ts +1 -0
- package/dist/cjs/types/components/asthma/presentational/AsthmaLogEntrySummary/AsthmaLogEntrySummary.d.ts +11 -0
- package/dist/cjs/types/components/asthma/presentational/AsthmaLogEntrySummary/AsthmaLogEntrySummary.stories.d.ts +60 -0
- package/dist/cjs/types/components/asthma/presentational/AsthmaLogEntrySummary/index.d.ts +1 -0
- package/dist/cjs/types/components/asthma/presentational/AsthmaViewTitle/AsthmaViewTitle.d.ts +7 -0
- package/dist/cjs/types/components/asthma/presentational/AsthmaViewTitle/AsthmaViewTitle.stories.d.ts +16 -0
- package/dist/cjs/types/components/asthma/presentational/AsthmaViewTitle/index.d.ts +1 -0
- package/dist/cjs/types/components/asthma/presentational/index.d.ts +3 -0
- package/dist/cjs/types/components/asthma/views/AsthmaCalendarView/AsthmaCalendarView.d.ts +9 -0
- package/dist/cjs/types/components/asthma/views/AsthmaCalendarView/AsthmaCalendarView.previewData.d.ts +6 -0
- package/dist/cjs/types/components/asthma/views/AsthmaCalendarView/AsthmaCalendarView.stories.d.ts +18 -0
- package/dist/cjs/types/components/asthma/views/AsthmaCalendarView/index.d.ts +1 -0
- package/dist/cjs/types/components/asthma/views/AsthmaDashboardView/AsthmaDashboardView.d.ts +9 -0
- package/dist/cjs/types/components/asthma/views/AsthmaDashboardView/AsthmaDashboardView.previewData.d.ts +8 -0
- package/dist/cjs/types/components/asthma/views/AsthmaDashboardView/AsthmaDashboardView.stories.d.ts +18 -0
- package/dist/cjs/types/components/asthma/views/AsthmaDashboardView/index.d.ts +1 -0
- package/dist/cjs/types/components/asthma/views/AsthmaDataView/AsthmaDataView.d.ts +7 -0
- package/dist/cjs/types/components/asthma/views/AsthmaDataView/AsthmaDataView.previewData.d.ts +8 -0
- package/dist/cjs/types/components/asthma/views/AsthmaDataView/AsthmaDataView.stories.d.ts +16 -0
- package/dist/cjs/types/components/asthma/views/AsthmaDataView/index.d.ts +1 -0
- package/dist/cjs/types/components/asthma/views/index.d.ts +3 -0
- package/dist/cjs/types/components/container/AllergiesList/AllergiesList.d.ts +8 -0
- package/dist/cjs/types/components/container/AllergiesList/AllergiesList.stories.d.ts +24 -0
- package/dist/cjs/types/components/container/AllergiesList/index.d.ts +1 -0
- package/dist/cjs/types/components/container/ConditionsList/ConditionsList.d.ts +8 -0
- package/dist/cjs/types/components/container/ConditionsList/ConditionsList.stories.d.ts +24 -0
- package/dist/cjs/types/components/container/ConditionsList/index.d.ts +1 -0
- package/dist/cjs/types/components/container/MedicationsList/MedicationsList.d.ts +8 -0
- package/dist/cjs/types/components/container/MedicationsList/MedicationsList.stories.d.ts +24 -0
- package/dist/cjs/types/components/container/MedicationsList/index.d.ts +1 -0
- package/dist/cjs/types/components/container/index.d.ts +3 -0
- package/dist/cjs/types/components/index.d.ts +3 -2
- package/dist/cjs/types/components/presentational/BasicCalendar/BasicCalendar.d.ts +15 -0
- package/dist/cjs/types/components/presentational/BasicCalendar/BasicCalendar.stories.d.ts +17 -0
- package/dist/cjs/types/components/presentational/BasicCalendar/index.d.ts +1 -0
- package/dist/cjs/types/components/presentational/DateRangeCoordinator/index.d.ts +1 -1
- package/dist/cjs/types/components/presentational/Layout/index.d.ts +1 -2
- package/dist/cjs/types/components/presentational/ViewHeader/ViewHeader.d.ts +4 -3
- package/dist/cjs/types/components/presentational/ViewHeader/ViewHeader.stories.d.ts +27 -8
- package/dist/cjs/types/components/presentational/index.d.ts +2 -1
- package/dist/cjs/types/components/view/AllergiesView/AllergiesView.d.ts +6 -0
- package/dist/cjs/types/components/view/AllergiesView/AllergiesView.stories.d.ts +23 -0
- package/dist/cjs/types/components/view/AllergiesView/index.d.ts +1 -0
- package/dist/cjs/types/components/view/ConditionsView/ConditionsView.d.ts +6 -0
- package/dist/cjs/types/components/view/ConditionsView/ConditionsView.stories.d.ts +23 -0
- package/dist/cjs/types/components/view/ConditionsView/index.d.ts +1 -0
- package/dist/cjs/types/components/view/MedicationsView/MedicationsView.d.ts +6 -0
- package/dist/cjs/types/components/view/MedicationsView/MedicationsView.stories.d.ts +23 -0
- package/dist/cjs/types/components/view/MedicationsView/index.d.ts +1 -0
- package/dist/cjs/types/components/view/index.d.ts +3 -0
- package/dist/cjs/types/helpers/useMyDataHelps.d.ts +2 -0
- package/dist/esm/index.js +23 -23
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/asthma/container/AsthmaAirQualities/AsthmaAirQualities.d.ts +9 -0
- package/dist/esm/types/components/asthma/container/AsthmaAirQualities/AsthmaAirQualities.previewData.d.ts +6 -0
- package/dist/esm/types/components/asthma/container/AsthmaAirQualities/AsthmaAirQualities.stories.d.ts +16 -0
- package/dist/esm/types/components/asthma/container/AsthmaAirQualities/index.d.ts +2 -0
- package/dist/esm/types/components/asthma/container/AsthmaBiometrics/AsthmaBiometrics.d.ts +9 -0
- package/dist/esm/types/components/asthma/container/AsthmaBiometrics/AsthmaBiometrics.previewData.d.ts +6 -0
- package/dist/esm/types/components/asthma/container/AsthmaBiometrics/AsthmaBiometrics.stories.d.ts +16 -0
- package/dist/esm/types/components/asthma/container/AsthmaBiometrics/index.d.ts +2 -0
- package/dist/esm/types/components/asthma/container/AsthmaCalendarViewHeader/AsthmaCalendarViewHeader.d.ts +10 -0
- package/dist/esm/types/components/asthma/container/AsthmaCalendarViewHeader/AsthmaCalendarViewHeader.previewData.d.ts +8 -0
- package/dist/esm/types/components/asthma/container/AsthmaCalendarViewHeader/AsthmaCalendarViewHeader.stories.d.ts +16 -0
- package/dist/esm/types/components/asthma/container/AsthmaCalendarViewHeader/index.d.ts +2 -0
- package/dist/esm/types/components/asthma/container/AsthmaControlCalendar/AsthmaControlCalendar.d.ts +9 -0
- package/dist/esm/types/components/asthma/container/AsthmaControlCalendar/AsthmaControlCalendar.previewData.d.ts +6 -0
- package/dist/esm/types/components/asthma/container/AsthmaControlCalendar/AsthmaControlCalendar.stories.d.ts +22 -0
- package/dist/esm/types/components/asthma/container/AsthmaControlCalendar/index.d.ts +2 -0
- package/dist/esm/types/components/asthma/container/AsthmaControlStatusHeader/AsthmaControlStatusHeader.d.ts +10 -0
- package/dist/esm/types/components/asthma/container/AsthmaControlStatusHeader/AsthmaControlStatusHeader.previewData.d.ts +8 -0
- package/dist/esm/types/components/asthma/container/AsthmaControlStatusHeader/AsthmaControlStatusHeader.stories.d.ts +138 -0
- package/dist/esm/types/components/asthma/container/AsthmaControlStatusHeader/index.d.ts +2 -0
- package/dist/esm/types/components/asthma/container/AsthmaDashboardViewHeader/AsthmaDashboardViewHeader.d.ts +10 -0
- package/dist/esm/types/components/asthma/container/AsthmaDashboardViewHeader/AsthmaDashboardViewHeader.previewData.d.ts +10 -0
- package/dist/esm/types/components/asthma/container/AsthmaDashboardViewHeader/AsthmaDashboardViewHeader.stories.d.ts +16 -0
- package/dist/esm/types/components/asthma/container/AsthmaDashboardViewHeader/index.d.ts +2 -0
- package/dist/esm/types/components/asthma/container/AsthmaLogEntryHeader/AsthmaLogEntryHeader.d.ts +10 -0
- package/dist/esm/types/components/asthma/container/AsthmaLogEntryHeader/AsthmaLogEntryHeader.previewData.d.ts +7 -0
- package/dist/esm/types/components/asthma/container/AsthmaLogEntryHeader/AsthmaLogEntryHeader.stories.d.ts +34 -0
- package/dist/esm/types/components/asthma/container/AsthmaLogEntryHeader/index.d.ts +2 -0
- package/dist/esm/types/components/asthma/container/index.d.ts +7 -0
- package/dist/esm/types/components/asthma/helpers/asthma-data.d.ts +9 -0
- package/dist/esm/types/components/asthma/helpers/asthma-functions.d.ts +7 -0
- package/dist/esm/types/components/asthma/helpers/index.d.ts +2 -0
- package/dist/esm/types/components/asthma/index.d.ts +5 -0
- package/dist/esm/types/components/asthma/model/index.d.ts +1 -0
- package/dist/esm/types/components/asthma/model/types.d.ts +49 -0
- package/dist/esm/types/components/asthma/presentational/AsthmaDataSummary/AsthmaDataSummary.d.ts +12 -0
- package/dist/esm/types/components/asthma/presentational/AsthmaDataSummary/AsthmaDataSummary.stories.d.ts +70 -0
- package/dist/esm/types/components/asthma/presentational/AsthmaDataSummary/index.d.ts +1 -0
- package/dist/esm/types/components/asthma/presentational/AsthmaLogEntrySummary/AsthmaLogEntrySummary.d.ts +11 -0
- package/dist/esm/types/components/asthma/presentational/AsthmaLogEntrySummary/AsthmaLogEntrySummary.stories.d.ts +60 -0
- package/dist/esm/types/components/asthma/presentational/AsthmaLogEntrySummary/index.d.ts +1 -0
- package/dist/esm/types/components/asthma/presentational/AsthmaViewTitle/AsthmaViewTitle.d.ts +7 -0
- package/dist/esm/types/components/asthma/presentational/AsthmaViewTitle/AsthmaViewTitle.stories.d.ts +16 -0
- package/dist/esm/types/components/asthma/presentational/AsthmaViewTitle/index.d.ts +1 -0
- package/dist/esm/types/components/asthma/presentational/index.d.ts +3 -0
- package/dist/esm/types/components/asthma/views/AsthmaCalendarView/AsthmaCalendarView.d.ts +9 -0
- package/dist/esm/types/components/asthma/views/AsthmaCalendarView/AsthmaCalendarView.previewData.d.ts +6 -0
- package/dist/esm/types/components/asthma/views/AsthmaCalendarView/AsthmaCalendarView.stories.d.ts +18 -0
- package/dist/esm/types/components/asthma/views/AsthmaCalendarView/index.d.ts +1 -0
- package/dist/esm/types/components/asthma/views/AsthmaDashboardView/AsthmaDashboardView.d.ts +9 -0
- package/dist/esm/types/components/asthma/views/AsthmaDashboardView/AsthmaDashboardView.previewData.d.ts +8 -0
- package/dist/esm/types/components/asthma/views/AsthmaDashboardView/AsthmaDashboardView.stories.d.ts +18 -0
- package/dist/esm/types/components/asthma/views/AsthmaDashboardView/index.d.ts +1 -0
- package/dist/esm/types/components/asthma/views/AsthmaDataView/AsthmaDataView.d.ts +7 -0
- package/dist/esm/types/components/asthma/views/AsthmaDataView/AsthmaDataView.previewData.d.ts +8 -0
- package/dist/esm/types/components/asthma/views/AsthmaDataView/AsthmaDataView.stories.d.ts +16 -0
- package/dist/esm/types/components/asthma/views/AsthmaDataView/index.d.ts +1 -0
- package/dist/esm/types/components/asthma/views/index.d.ts +3 -0
- package/dist/esm/types/components/container/AllergiesList/AllergiesList.d.ts +8 -0
- package/dist/esm/types/components/container/AllergiesList/AllergiesList.stories.d.ts +24 -0
- package/dist/esm/types/components/container/AllergiesList/index.d.ts +1 -0
- package/dist/esm/types/components/container/ConditionsList/ConditionsList.d.ts +8 -0
- package/dist/esm/types/components/container/ConditionsList/ConditionsList.stories.d.ts +24 -0
- package/dist/esm/types/components/container/ConditionsList/index.d.ts +1 -0
- package/dist/esm/types/components/container/MedicationsList/MedicationsList.d.ts +8 -0
- package/dist/esm/types/components/container/MedicationsList/MedicationsList.stories.d.ts +24 -0
- package/dist/esm/types/components/container/MedicationsList/index.d.ts +1 -0
- package/dist/esm/types/components/container/index.d.ts +3 -0
- package/dist/esm/types/components/index.d.ts +3 -2
- package/dist/esm/types/components/presentational/BasicCalendar/BasicCalendar.d.ts +15 -0
- package/dist/esm/types/components/presentational/BasicCalendar/BasicCalendar.stories.d.ts +17 -0
- package/dist/esm/types/components/presentational/BasicCalendar/index.d.ts +1 -0
- package/dist/esm/types/components/presentational/DateRangeCoordinator/index.d.ts +1 -1
- package/dist/esm/types/components/presentational/Layout/index.d.ts +1 -2
- package/dist/esm/types/components/presentational/ViewHeader/ViewHeader.d.ts +4 -3
- package/dist/esm/types/components/presentational/ViewHeader/ViewHeader.stories.d.ts +27 -8
- package/dist/esm/types/components/presentational/index.d.ts +2 -1
- package/dist/esm/types/components/view/AllergiesView/AllergiesView.d.ts +6 -0
- package/dist/esm/types/components/view/AllergiesView/AllergiesView.stories.d.ts +23 -0
- package/dist/esm/types/components/view/AllergiesView/index.d.ts +1 -0
- package/dist/esm/types/components/view/ConditionsView/ConditionsView.d.ts +6 -0
- package/dist/esm/types/components/view/ConditionsView/ConditionsView.stories.d.ts +23 -0
- package/dist/esm/types/components/view/ConditionsView/index.d.ts +1 -0
- package/dist/esm/types/components/view/MedicationsView/MedicationsView.d.ts +6 -0
- package/dist/esm/types/components/view/MedicationsView/MedicationsView.stories.d.ts +23 -0
- package/dist/esm/types/components/view/MedicationsView/index.d.ts +1 -0
- package/dist/esm/types/components/view/index.d.ts +3 -0
- package/dist/esm/types/helpers/useMyDataHelps.d.ts +2 -0
- package/dist/index.d.ts +742 -501
- package/package.json +4 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './AsthmaAirQualities.css';
|
|
3
|
+
import { AsthmaAirQualitiesPreviewState } from './AsthmaAirQualities.previewData';
|
|
4
|
+
export interface AsthmaAirQualitiesProps {
|
|
5
|
+
previewState?: AsthmaAirQualitiesPreviewState;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
8
|
+
}
|
|
9
|
+
export default function (props: AsthmaAirQualitiesProps): React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AsthmaAirQuality } from '../../model';
|
|
2
|
+
export type AsthmaAirQualitiesPreviewState = 'default';
|
|
3
|
+
export interface AsthmaAirQualitiesPreviewData {
|
|
4
|
+
airQualities: AsthmaAirQuality[];
|
|
5
|
+
}
|
|
6
|
+
export declare const previewData: Record<AsthmaAirQualitiesPreviewState, AsthmaAirQualitiesPreviewData>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AsthmaAirQualities, { AsthmaAirQualitiesProps } from './AsthmaAirQualities';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AsthmaAirQualities;
|
|
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: AsthmaAirQualitiesProps) => React.JSX.Element;
|
|
16
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './AsthmaBiometrics.css';
|
|
3
|
+
import { AsthmaBiometricsPreviewState } from './AsthmaBiometrics.previewData';
|
|
4
|
+
export interface AsthmaBiometricsProps {
|
|
5
|
+
previewState?: AsthmaBiometricsPreviewState;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
8
|
+
}
|
|
9
|
+
export default function (props: AsthmaBiometricsProps): React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AsthmaBiometric } from '../../model';
|
|
2
|
+
export type AsthmaBiometricsPreviewState = 'default';
|
|
3
|
+
export interface AsthmaBiometricsPreviewData {
|
|
4
|
+
biometrics: AsthmaBiometric[];
|
|
5
|
+
}
|
|
6
|
+
export declare const previewData: Record<AsthmaBiometricsPreviewState, AsthmaBiometricsPreviewData>;
|
package/dist/cjs/types/components/asthma/container/AsthmaBiometrics/AsthmaBiometrics.stories.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AsthmaBiometrics, { AsthmaBiometricsProps } from './AsthmaBiometrics';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AsthmaBiometrics;
|
|
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: AsthmaBiometricsProps) => React.JSX.Element;
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './AsthmaCalendarViewHeader.css';
|
|
3
|
+
import { AsthmaCalendarViewHeaderPreviewState } from "./AsthmaCalendarViewHeader.previewData";
|
|
4
|
+
export interface AsthmaCalendarViewHeaderProps {
|
|
5
|
+
previewState?: AsthmaCalendarViewHeaderPreviewState;
|
|
6
|
+
logTodayEntrySurveyName: string;
|
|
7
|
+
logYesterdayEntrySurveyName: string;
|
|
8
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
9
|
+
}
|
|
10
|
+
export default function (props: AsthmaCalendarViewHeaderProps): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AsthmaLogEntryHeaderPreviewState } from '../AsthmaLogEntryHeader';
|
|
2
|
+
import { AsthmaControlCalendarPreviewState } from '../AsthmaControlCalendar';
|
|
3
|
+
export type AsthmaCalendarViewHeaderPreviewState = 'default';
|
|
4
|
+
export interface AsthmaCalendarViewHeaderPreviewData {
|
|
5
|
+
controlCalendarPreviewState: AsthmaControlCalendarPreviewState;
|
|
6
|
+
logEntryPreviewState: AsthmaLogEntryHeaderPreviewState;
|
|
7
|
+
}
|
|
8
|
+
export declare const previewData: Record<AsthmaCalendarViewHeaderPreviewState, AsthmaCalendarViewHeaderPreviewData>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AsthmaCalendarViewHeader, { AsthmaCalendarViewHeaderProps } from './AsthmaCalendarViewHeader';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AsthmaCalendarViewHeader;
|
|
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: AsthmaCalendarViewHeaderProps) => React.JSX.Element;
|
|
16
|
+
};
|
package/dist/cjs/types/components/asthma/container/AsthmaControlCalendar/AsthmaControlCalendar.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './AsthmaControlCalendar.css';
|
|
3
|
+
import { AsthmaControlCalendarPreviewState } from './AsthmaControlCalendar.previewData';
|
|
4
|
+
export interface AsthmaControlCalendarProps {
|
|
5
|
+
previewState?: AsthmaControlCalendarPreviewState;
|
|
6
|
+
intervalStart?: Date;
|
|
7
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
8
|
+
}
|
|
9
|
+
export default function (props: AsthmaControlCalendarProps): React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AsthmaLogEntry } from '../../model';
|
|
2
|
+
export type AsthmaControlCalendarPreviewState = 'no-logs' | 'some-logs';
|
|
3
|
+
export interface AsthmaControlCalendarPreviewData {
|
|
4
|
+
logEntries: AsthmaLogEntry[];
|
|
5
|
+
}
|
|
6
|
+
export declare const previewData: Record<AsthmaControlCalendarPreviewState, AsthmaControlCalendarPreviewData>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AsthmaControlCalendar, { AsthmaControlCalendarProps } from './AsthmaControlCalendar';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AsthmaControlCalendar;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const NoLogging: {
|
|
12
|
+
args: {
|
|
13
|
+
previewState: string;
|
|
14
|
+
};
|
|
15
|
+
render: (args: AsthmaControlCalendarProps) => React.JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export declare const SomeLogging: {
|
|
18
|
+
args: {
|
|
19
|
+
previewState: string;
|
|
20
|
+
};
|
|
21
|
+
render: (args: AsthmaControlCalendarProps) => React.JSX.Element;
|
|
22
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './AsthmaControlStatusHeader.css';
|
|
3
|
+
import { AsthmaParticipant } from '../../model';
|
|
4
|
+
import { AsthmaControlStatusHeaderPreviewState } from './AsthmaControlStatusHeader.previewData';
|
|
5
|
+
export interface AsthmaControlStatusHeaderProps {
|
|
6
|
+
previewState?: AsthmaControlStatusHeaderPreviewState;
|
|
7
|
+
participant: AsthmaParticipant;
|
|
8
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
9
|
+
}
|
|
10
|
+
export default function (props: AsthmaControlStatusHeaderProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AsthmaAirQuality, AsthmaBiometric, AsthmaControlState } from '../../model';
|
|
2
|
+
export type AsthmaControlStatusHeaderPreviewState = 'no-data' | 'abnormal-dhr' | 'abnormal-nhr' | 'abnormal-rr' | 'abnormal-activity' | 'abnormal-sleep' | 'abnormal-home-aqi' | 'abnormal-work-aqi' | 'abnormal-multiple' | 'not-determined' | 'not-controlled' | 'controlled';
|
|
3
|
+
export interface AsthmaControlStatusHeaderPreviewData {
|
|
4
|
+
controlState: AsthmaControlState;
|
|
5
|
+
biometrics: AsthmaBiometric[];
|
|
6
|
+
airQualities: AsthmaAirQuality[];
|
|
7
|
+
}
|
|
8
|
+
export declare const previewData: Record<AsthmaControlStatusHeaderPreviewState, AsthmaControlStatusHeaderPreviewData>;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AsthmaControlStatusHeader, { AsthmaControlStatusHeaderProps } from './AsthmaControlStatusHeader';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AsthmaControlStatusHeader;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const NoDataBeforeDevicePaired: {
|
|
12
|
+
args: {
|
|
13
|
+
previewState: string;
|
|
14
|
+
participant: {
|
|
15
|
+
hasPairedDevice: () => boolean;
|
|
16
|
+
hasEstablishedBaseline: () => boolean;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
render: (args: AsthmaControlStatusHeaderProps) => React.JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
export declare const NoDataBeforeBaselineEstablished: {
|
|
22
|
+
args: {
|
|
23
|
+
previewState: string;
|
|
24
|
+
participant: {
|
|
25
|
+
hasPairedDevice: () => boolean;
|
|
26
|
+
hasEstablishedBaseline: () => boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
render: (args: AsthmaControlStatusHeaderProps) => React.JSX.Element;
|
|
30
|
+
};
|
|
31
|
+
export declare const NoDataBaselineEstablishedNothingOutOfRange: {
|
|
32
|
+
args: {
|
|
33
|
+
previewState: string;
|
|
34
|
+
participant: {
|
|
35
|
+
hasPairedDevice: () => boolean;
|
|
36
|
+
hasEstablishedBaseline: () => boolean;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
render: (args: AsthmaControlStatusHeaderProps) => React.JSX.Element;
|
|
40
|
+
};
|
|
41
|
+
export declare const NoDataBaselineEstablishedDaytimeHeartRateOutOfRange: {
|
|
42
|
+
args: {
|
|
43
|
+
previewState: string;
|
|
44
|
+
participant: {
|
|
45
|
+
hasPairedDevice: () => boolean;
|
|
46
|
+
hasEstablishedBaseline: () => boolean;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
render: (args: AsthmaControlStatusHeaderProps) => React.JSX.Element;
|
|
50
|
+
};
|
|
51
|
+
export declare const NoDataBaselineEstablishedNighttimeHeartRateOutOfRange: {
|
|
52
|
+
args: {
|
|
53
|
+
previewState: string;
|
|
54
|
+
participant: {
|
|
55
|
+
hasPairedDevice: () => boolean;
|
|
56
|
+
hasEstablishedBaseline: () => boolean;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
render: (args: AsthmaControlStatusHeaderProps) => React.JSX.Element;
|
|
60
|
+
};
|
|
61
|
+
export declare const NoDataBaselineEstablishedRROutOfRange: {
|
|
62
|
+
args: {
|
|
63
|
+
previewState: string;
|
|
64
|
+
participant: {
|
|
65
|
+
hasPairedDevice: () => boolean;
|
|
66
|
+
hasEstablishedBaseline: () => boolean;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
render: (args: AsthmaControlStatusHeaderProps) => React.JSX.Element;
|
|
70
|
+
};
|
|
71
|
+
export declare const NoDataBaselineEstablishedActivityOutOfRange: {
|
|
72
|
+
args: {
|
|
73
|
+
previewState: string;
|
|
74
|
+
participant: {
|
|
75
|
+
hasPairedDevice: () => boolean;
|
|
76
|
+
hasEstablishedBaseline: () => boolean;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
render: (args: AsthmaControlStatusHeaderProps) => React.JSX.Element;
|
|
80
|
+
};
|
|
81
|
+
export declare const NoDataBaselineEstablishedSleepOutOfRange: {
|
|
82
|
+
args: {
|
|
83
|
+
previewState: string;
|
|
84
|
+
participant: {
|
|
85
|
+
hasPairedDevice: () => boolean;
|
|
86
|
+
hasEstablishedBaseline: () => boolean;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
render: (args: AsthmaControlStatusHeaderProps) => React.JSX.Element;
|
|
90
|
+
};
|
|
91
|
+
export declare const NoDataBaselineEstablishedHomeAQOutOfRange: {
|
|
92
|
+
args: {
|
|
93
|
+
previewState: string;
|
|
94
|
+
participant: {
|
|
95
|
+
hasPairedDevice: () => boolean;
|
|
96
|
+
hasEstablishedBaseline: () => boolean;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
render: (args: AsthmaControlStatusHeaderProps) => React.JSX.Element;
|
|
100
|
+
};
|
|
101
|
+
export declare const NoDataBaselineEstablishedWorkAQOutOfRange: {
|
|
102
|
+
args: {
|
|
103
|
+
previewState: string;
|
|
104
|
+
participant: {
|
|
105
|
+
hasPairedDevice: () => boolean;
|
|
106
|
+
hasEstablishedBaseline: () => boolean;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
render: (args: AsthmaControlStatusHeaderProps) => React.JSX.Element;
|
|
110
|
+
};
|
|
111
|
+
export declare const NoDataBaselineEstablishedMultipleOutOfRange: {
|
|
112
|
+
args: {
|
|
113
|
+
previewState: string;
|
|
114
|
+
participant: {
|
|
115
|
+
hasPairedDevice: () => boolean;
|
|
116
|
+
hasEstablishedBaseline: () => boolean;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
render: (args: AsthmaControlStatusHeaderProps) => React.JSX.Element;
|
|
120
|
+
};
|
|
121
|
+
export declare const NotDetermined: {
|
|
122
|
+
args: {
|
|
123
|
+
previewState: string;
|
|
124
|
+
};
|
|
125
|
+
render: (args: AsthmaControlStatusHeaderProps) => React.JSX.Element;
|
|
126
|
+
};
|
|
127
|
+
export declare const NotControlled: {
|
|
128
|
+
args: {
|
|
129
|
+
previewState: string;
|
|
130
|
+
};
|
|
131
|
+
render: (args: AsthmaControlStatusHeaderProps) => React.JSX.Element;
|
|
132
|
+
};
|
|
133
|
+
export declare const Controlled: {
|
|
134
|
+
args: {
|
|
135
|
+
previewState: string;
|
|
136
|
+
};
|
|
137
|
+
render: (args: AsthmaControlStatusHeaderProps) => React.JSX.Element;
|
|
138
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './AsthmaDashboardViewHeader.css';
|
|
3
|
+
import { AsthmaDashboardViewHeaderPreviewState } from './AsthmaDashboardViewHeader.previewData';
|
|
4
|
+
export interface AsthmaDashboardViewHeaderProps {
|
|
5
|
+
previewState?: AsthmaDashboardViewHeaderPreviewState;
|
|
6
|
+
logTodayEntrySurveyName: string;
|
|
7
|
+
logYesterdayEntrySurveyName: string;
|
|
8
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
9
|
+
}
|
|
10
|
+
export default function (props: AsthmaDashboardViewHeaderProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AsthmaParticipant } from '../../model';
|
|
2
|
+
import { AsthmaLogEntryHeaderPreviewState } from '../AsthmaLogEntryHeader';
|
|
3
|
+
import { AsthmaControlStatusHeaderPreviewState } from '../AsthmaControlStatusHeader';
|
|
4
|
+
export type AsthmaDashboardViewHeaderPreviewState = 'default';
|
|
5
|
+
export interface AsthmaDashboardViewHeaderPreviewData {
|
|
6
|
+
participant: AsthmaParticipant;
|
|
7
|
+
logEntryPreviewState: AsthmaLogEntryHeaderPreviewState;
|
|
8
|
+
controlStatusPreviewState: AsthmaControlStatusHeaderPreviewState;
|
|
9
|
+
}
|
|
10
|
+
export declare const previewData: Record<AsthmaDashboardViewHeaderPreviewState, AsthmaDashboardViewHeaderPreviewData>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AsthmaDashboardViewHeader, { AsthmaDashboardViewHeaderProps } from './AsthmaDashboardViewHeader';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AsthmaDashboardViewHeader;
|
|
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: AsthmaDashboardViewHeaderProps) => React.JSX.Element;
|
|
16
|
+
};
|
package/dist/cjs/types/components/asthma/container/AsthmaLogEntryHeader/AsthmaLogEntryHeader.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './AsthmaLogEntryHeader.css';
|
|
3
|
+
import { AsthmaLogEntryHeaderPreviewState } from './AsthmaLogEntryHeader.previewData';
|
|
4
|
+
export interface AsthmaLogEntryHeaderProps {
|
|
5
|
+
previewState?: AsthmaLogEntryHeaderPreviewState;
|
|
6
|
+
logTodayEntrySurveyName: string;
|
|
7
|
+
logYesterdayEntrySurveyName: string;
|
|
8
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
9
|
+
}
|
|
10
|
+
export default function (props: AsthmaLogEntryHeaderProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AsthmaLogEntry } from '../../model';
|
|
2
|
+
export type AsthmaLogEntryHeaderPreviewState = 'no-logs' | 'today-log-only' | 'yesterday-log-only' | 'both-logs';
|
|
3
|
+
export interface AsthmaLogEntryHeaderPreviewData {
|
|
4
|
+
todayLogEntry?: AsthmaLogEntry;
|
|
5
|
+
yesterdayLogEntry?: AsthmaLogEntry;
|
|
6
|
+
}
|
|
7
|
+
export declare const previewData: Record<AsthmaLogEntryHeaderPreviewState, AsthmaLogEntryHeaderPreviewData>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AsthmaLogEntryHeader, { AsthmaLogEntryHeaderProps } from './AsthmaLogEntryHeader';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AsthmaLogEntryHeader;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const NoLogs: {
|
|
12
|
+
args: {
|
|
13
|
+
previewState: string;
|
|
14
|
+
};
|
|
15
|
+
render: (args: AsthmaLogEntryHeaderProps) => React.JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export declare const TodayLogOnly: {
|
|
18
|
+
args: {
|
|
19
|
+
previewState: string;
|
|
20
|
+
};
|
|
21
|
+
render: (args: AsthmaLogEntryHeaderProps) => React.JSX.Element;
|
|
22
|
+
};
|
|
23
|
+
export declare const YesterdayLogOnly: {
|
|
24
|
+
args: {
|
|
25
|
+
previewState: string;
|
|
26
|
+
};
|
|
27
|
+
render: (args: AsthmaLogEntryHeaderProps) => React.JSX.Element;
|
|
28
|
+
};
|
|
29
|
+
export declare const BothLogs: {
|
|
30
|
+
args: {
|
|
31
|
+
previewState: string;
|
|
32
|
+
};
|
|
33
|
+
render: (args: AsthmaLogEntryHeaderProps) => React.JSX.Element;
|
|
34
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as AsthmaAirQualities } from './AsthmaAirQualities';
|
|
2
|
+
export { default as AsthmaBiometrics } from './AsthmaBiometrics';
|
|
3
|
+
export { default as AsthmaCalendarViewHeader } from './AsthmaCalendarViewHeader';
|
|
4
|
+
export { default as AsthmaControlCalendar } from './AsthmaControlCalendar';
|
|
5
|
+
export { default as AsthmaControlStatusHeader } from './AsthmaControlStatusHeader';
|
|
6
|
+
export { default as AsthmaDashboardViewHeader } from './AsthmaDashboardViewHeader';
|
|
7
|
+
export { default as AsthmaLogEntryHeader } from './AsthmaLogEntryHeader';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AsthmaAirQuality, AsthmaBiometric, AsthmaLogEntry, AsthmaParticipant } from '../model';
|
|
2
|
+
export interface AsthmaDataService {
|
|
3
|
+
loadParticipant(): Promise<AsthmaParticipant>;
|
|
4
|
+
loadLogEntries(fromDate?: Date): Promise<AsthmaLogEntry[]>;
|
|
5
|
+
loadBiometrics(): Promise<AsthmaBiometric[]>;
|
|
6
|
+
loadAirQualities(): Promise<AsthmaAirQuality[]>;
|
|
7
|
+
}
|
|
8
|
+
declare const service: AsthmaDataService;
|
|
9
|
+
export default service;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AsthmaAirQualityType, AsthmaBiometricType, AsthmaControlState, AsthmaDataStatus, AsthmaLogEntry } from "../model";
|
|
2
|
+
export declare const dateToAsthmaLogEntryIdentifier: (date: Date) => string;
|
|
3
|
+
export declare const computeAsthmaControlState: (logEntries: AsthmaLogEntry[], date: Date) => AsthmaControlState;
|
|
4
|
+
export declare const getAsthmaBiometricTypeLabel: (type: AsthmaBiometricType) => string;
|
|
5
|
+
export declare const getAsthmaBiometricTypeUnits: (type: AsthmaBiometricType) => string;
|
|
6
|
+
export declare const getAsthmaDataStatusText: (status: AsthmaDataStatus) => string;
|
|
7
|
+
export declare const getAsthmaAirQualityTypeLabel: (type: AsthmaAirQualityType) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ParticipantInfo } from '@careevolution/mydatahelps-js';
|
|
2
|
+
export declare class AsthmaParticipant {
|
|
3
|
+
participantInfo: ParticipantInfo;
|
|
4
|
+
constructor(participantInfo: ParticipantInfo);
|
|
5
|
+
getFirstName(): string;
|
|
6
|
+
hasPairedDevice(): boolean;
|
|
7
|
+
hasEstablishedBaseline(): boolean;
|
|
8
|
+
hasRequestedWithdrawal(): boolean;
|
|
9
|
+
private hasEstablishedBaselineByType;
|
|
10
|
+
private getCustomFieldValue;
|
|
11
|
+
}
|
|
12
|
+
export interface AsthmaControlMetrics {
|
|
13
|
+
date: string;
|
|
14
|
+
nighttimeAwakeningDaysPast7: number;
|
|
15
|
+
limitedActivityDaysPast7: number;
|
|
16
|
+
inhalerUseDaysPast7: number;
|
|
17
|
+
symptomDaysPast7: number;
|
|
18
|
+
loggedDaysPast7: number;
|
|
19
|
+
}
|
|
20
|
+
export type AsthmaControlStatus = 'no-data' | 'not-controlled' | 'controlled' | 'not-determined';
|
|
21
|
+
export interface AsthmaControlState {
|
|
22
|
+
status: AsthmaControlStatus;
|
|
23
|
+
symptomDaysPast7?: number;
|
|
24
|
+
nighttimeAwakeningDaysPast7?: number;
|
|
25
|
+
limitedActivityDaysPast7?: number;
|
|
26
|
+
inhalerUseDaysPast7?: number;
|
|
27
|
+
}
|
|
28
|
+
export type AsthmaDataStatus = 'establishing' | 'offline' | 'in-range' | 'out-of-range';
|
|
29
|
+
export type AsthmaBiometricType = 'daytime-resting-heart-rate' | 'nighttime-resting-heart-rate' | 'respiratory-rate' | 'activity' | 'sleep';
|
|
30
|
+
export interface AsthmaBiometric {
|
|
31
|
+
type: AsthmaBiometricType;
|
|
32
|
+
status: AsthmaDataStatus;
|
|
33
|
+
value?: number;
|
|
34
|
+
}
|
|
35
|
+
export type AsthmaAirQualityType = 'work' | 'home';
|
|
36
|
+
export interface AsthmaAirQuality {
|
|
37
|
+
type: AsthmaAirQualityType;
|
|
38
|
+
status: AsthmaDataStatus;
|
|
39
|
+
value?: number;
|
|
40
|
+
description?: string;
|
|
41
|
+
}
|
|
42
|
+
export type AsthmaSymptomLevel = 'none' | 'mild' | 'moderate' | 'severe';
|
|
43
|
+
export interface AsthmaLogEntry {
|
|
44
|
+
identifier: string;
|
|
45
|
+
symptomLevel: AsthmaSymptomLevel;
|
|
46
|
+
symptoms: string[];
|
|
47
|
+
impacts: string[];
|
|
48
|
+
triggers: string[];
|
|
49
|
+
}
|
package/dist/cjs/types/components/asthma/presentational/AsthmaDataSummary/AsthmaDataSummary.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './AsthmaDataSummary.css';
|
|
3
|
+
import { AsthmaDataStatus } from '../../model';
|
|
4
|
+
export interface AsthmaDataSummaryProps {
|
|
5
|
+
label: string;
|
|
6
|
+
status: AsthmaDataStatus;
|
|
7
|
+
statusText?: string;
|
|
8
|
+
value?: number;
|
|
9
|
+
units?: string;
|
|
10
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
11
|
+
}
|
|
12
|
+
export default function (props: AsthmaDataSummaryProps): React.JSX.Element;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AsthmaDataSummary, { AsthmaDataSummaryProps } from './AsthmaDataSummary';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AsthmaDataSummary;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Establishing: {
|
|
12
|
+
args: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: number;
|
|
15
|
+
units: string;
|
|
16
|
+
status: string;
|
|
17
|
+
};
|
|
18
|
+
render: (args: AsthmaDataSummaryProps) => React.JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
export declare const Offline: {
|
|
21
|
+
args: {
|
|
22
|
+
label: string;
|
|
23
|
+
value: number;
|
|
24
|
+
units: string;
|
|
25
|
+
status: string;
|
|
26
|
+
};
|
|
27
|
+
render: (args: AsthmaDataSummaryProps) => React.JSX.Element;
|
|
28
|
+
};
|
|
29
|
+
export declare const InRange: {
|
|
30
|
+
args: {
|
|
31
|
+
label: string;
|
|
32
|
+
value: number;
|
|
33
|
+
units: string;
|
|
34
|
+
status: string;
|
|
35
|
+
};
|
|
36
|
+
render: (args: AsthmaDataSummaryProps) => React.JSX.Element;
|
|
37
|
+
};
|
|
38
|
+
export declare const OutOfRange: {
|
|
39
|
+
args: {
|
|
40
|
+
label: string;
|
|
41
|
+
value: number;
|
|
42
|
+
units: string;
|
|
43
|
+
status: string;
|
|
44
|
+
};
|
|
45
|
+
render: (args: AsthmaDataSummaryProps) => React.JSX.Element;
|
|
46
|
+
};
|
|
47
|
+
export declare const NoUnits: {
|
|
48
|
+
args: {
|
|
49
|
+
label: string;
|
|
50
|
+
value: number;
|
|
51
|
+
status: string;
|
|
52
|
+
};
|
|
53
|
+
render: (args: AsthmaDataSummaryProps) => React.JSX.Element;
|
|
54
|
+
};
|
|
55
|
+
export declare const NoValue: {
|
|
56
|
+
args: {
|
|
57
|
+
label: string;
|
|
58
|
+
status: string;
|
|
59
|
+
};
|
|
60
|
+
render: (args: AsthmaDataSummaryProps) => React.JSX.Element;
|
|
61
|
+
};
|
|
62
|
+
export declare const StatusTextOverride: {
|
|
63
|
+
args: {
|
|
64
|
+
label: string;
|
|
65
|
+
value: number;
|
|
66
|
+
status: string;
|
|
67
|
+
statusText: string;
|
|
68
|
+
};
|
|
69
|
+
render: (args: AsthmaDataSummaryProps) => React.JSX.Element;
|
|
70
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AsthmaDataSummary';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './AsthmaLogEntrySummary.css';
|
|
3
|
+
import { AsthmaLogEntry } from '../../model';
|
|
4
|
+
export interface AsthmaLogEntrySummaryProps {
|
|
5
|
+
label: string;
|
|
6
|
+
logEntry?: AsthmaLogEntry;
|
|
7
|
+
logEntrySurveyName: string;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
10
|
+
}
|
|
11
|
+
export default function (props: AsthmaLogEntrySummaryProps): React.JSX.Element;
|