@careevolution/mydatahelps-ui 2.9.1-AsthmaUI.34 → 2.9.1-AsthmaUI.36

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.
Files changed (24) hide show
  1. package/dist/cjs/index.js +8 -8
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.d.ts +1 -0
  4. package/dist/cjs/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.previewData.d.ts +3 -2
  5. package/dist/cjs/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.stories.d.ts +13 -1
  6. package/dist/cjs/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.d.ts +3 -0
  7. package/dist/cjs/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.previewData.d.ts +8 -2
  8. package/dist/cjs/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.stories.d.ts +13 -1
  9. package/dist/cjs/types/components/asthma/components/AsthmaDataSummary/AsthmaDataSummary.d.ts +1 -0
  10. package/dist/cjs/types/components/asthma/helpers/asthma-functions.d.ts +1 -4
  11. package/dist/cjs/types/components/asthma/model/types.d.ts +1 -1
  12. package/dist/esm/index.js +8 -8
  13. package/dist/esm/index.js.map +1 -1
  14. package/dist/esm/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.d.ts +1 -0
  15. package/dist/esm/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.previewData.d.ts +3 -2
  16. package/dist/esm/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.stories.d.ts +13 -1
  17. package/dist/esm/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.d.ts +3 -0
  18. package/dist/esm/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.previewData.d.ts +8 -2
  19. package/dist/esm/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.stories.d.ts +13 -1
  20. package/dist/esm/types/components/asthma/components/AsthmaDataSummary/AsthmaDataSummary.d.ts +1 -0
  21. package/dist/esm/types/components/asthma/helpers/asthma-functions.d.ts +1 -4
  22. package/dist/esm/types/components/asthma/model/types.d.ts +1 -1
  23. package/dist/index.d.ts +9 -7
  24. package/package.json +1 -1
@@ -3,6 +3,7 @@ import './AsthmaAirQualities.css';
3
3
  import { AsthmaAirQualitiesPreviewState } from './AsthmaAirQualities.previewData';
4
4
  export interface AsthmaAirQualitiesProps {
5
5
  previewState?: AsthmaAirQualitiesPreviewState;
6
+ airQualitiesUrl: string;
6
7
  innerRef?: React.Ref<HTMLDivElement>;
7
8
  }
8
9
  export default function (props: AsthmaAirQualitiesProps): React.JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { AsthmaAirQuality } from '../../model';
2
- export type AsthmaAirQualitiesPreviewState = 'default';
2
+ export type AsthmaAirQualitiesPreviewState = 'no-data' | 'some-data' | 'all-data';
3
3
  export interface AsthmaAirQualitiesPreviewData {
4
- airQualities: AsthmaAirQuality[];
4
+ homeAirQuality: AsthmaAirQuality;
5
+ workAirQuality: AsthmaAirQuality;
5
6
  }
6
7
  export declare const previewData: Record<AsthmaAirQualitiesPreviewState, AsthmaAirQualitiesPreviewData>;
@@ -8,7 +8,19 @@ declare const _default: {
8
8
  };
9
9
  };
10
10
  export default _default;
11
- export declare const Default: {
11
+ export declare const NoData: {
12
+ args: {
13
+ previewState: string;
14
+ };
15
+ render: (args: AsthmaAirQualitiesProps) => React.JSX.Element;
16
+ };
17
+ export declare const SomeData: {
18
+ args: {
19
+ previewState: string;
20
+ };
21
+ render: (args: AsthmaAirQualitiesProps) => React.JSX.Element;
22
+ };
23
+ export declare const AllData: {
12
24
  args: {
13
25
  previewState: string;
14
26
  };
@@ -3,6 +3,9 @@ import './AsthmaBiometrics.css';
3
3
  import { AsthmaBiometricsPreviewState } from './AsthmaBiometrics.previewData';
4
4
  export interface AsthmaBiometricsProps {
5
5
  previewState?: AsthmaBiometricsPreviewState;
6
+ heartAndLungsUrl: string;
7
+ stepsUrl: string;
8
+ sleepUrl: string;
6
9
  innerRef?: React.Ref<HTMLDivElement>;
7
10
  }
8
11
  export default function (props: AsthmaBiometricsProps): React.JSX.Element;
@@ -1,6 +1,12 @@
1
1
  import { AsthmaBiometric } from '../../model';
2
- export type AsthmaBiometricsPreviewState = 'default';
2
+ export type AsthmaBiometricsPreviewState = 'no-data' | 'some-data' | 'all-data';
3
3
  export interface AsthmaBiometricsPreviewData {
4
- biometrics: AsthmaBiometric[];
4
+ daytimeRestingHeartRate: AsthmaBiometric;
5
+ nighttimeRestingHeartRate: AsthmaBiometric;
6
+ respiratoryRate: AsthmaBiometric;
7
+ activity: AsthmaBiometric;
8
+ sleep: AsthmaBiometric;
9
+ daytimeOxygenSaturation: AsthmaBiometric;
10
+ nighttimeOxygenSaturation: AsthmaBiometric;
5
11
  }
6
12
  export declare const previewData: Record<AsthmaBiometricsPreviewState, AsthmaBiometricsPreviewData>;
@@ -8,7 +8,19 @@ declare const _default: {
8
8
  };
9
9
  };
10
10
  export default _default;
11
- export declare const Default: {
11
+ export declare const NoData: {
12
+ args: {
13
+ previewState: string;
14
+ };
15
+ render: (args: AsthmaBiometricsProps) => React.JSX.Element;
16
+ };
17
+ export declare const SomeData: {
18
+ args: {
19
+ previewState: string;
20
+ };
21
+ render: (args: AsthmaBiometricsProps) => React.JSX.Element;
22
+ };
23
+ export declare const AllData: {
12
24
  args: {
13
25
  previewState: string;
14
26
  };
@@ -7,6 +7,7 @@ export interface AsthmaDataSummaryProps {
7
7
  statusText?: string;
8
8
  value?: number;
9
9
  units?: string;
10
+ onClick?: () => void;
10
11
  innerRef?: React.Ref<HTMLDivElement>;
11
12
  }
12
13
  export default function (props: AsthmaDataSummaryProps): React.JSX.Element;
@@ -1,9 +1,6 @@
1
- import { AsthmaAirQualityType, AsthmaBiometricType, AsthmaControlState, AsthmaDataStatus, AsthmaLogEntry, AsthmaSymptomLevel } from "../model";
1
+ import { AsthmaControlState, AsthmaDataStatus, AsthmaLogEntry, AsthmaSymptomLevel } from '../model';
2
2
  export declare const dateToAsthmaLogEntryIdentifier: (date: Date) => string;
3
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
4
  export declare const getAsthmaDataStatusText: (status: AsthmaDataStatus) => string;
7
- export declare const getAsthmaAirQualityTypeLabel: (type: AsthmaAirQualityType) => string;
8
5
  export declare const getAsthmaSymptomLevelValue: (symptomLevel: AsthmaSymptomLevel) => string;
9
6
  export declare const getAsthmaSymptomLevel: (symptomLevelValue: string | undefined) => AsthmaSymptomLevel;
@@ -26,7 +26,7 @@ export interface AsthmaControlState {
26
26
  inhalerUseDaysPast7?: number;
27
27
  }
28
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';
29
+ export type AsthmaBiometricType = 'daytime-resting-heart-rate' | 'nighttime-resting-heart-rate' | 'respiratory-rate' | 'activity' | 'sleep' | 'daytime-oxygen-saturation' | 'nighttime-oxygen-saturation';
30
30
  export interface AsthmaBiometric {
31
31
  type: AsthmaBiometricType;
32
32
  status: AsthmaDataStatus;