@careevolution/mydatahelps-ui 2.9.1-Issue139.5 → 2.10.1-DataVisualizations.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/cjs/index.js +144 -20
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/container/BloodPressureVisualization/BloodPressureVisualization.d.ts +12 -0
  4. package/dist/cjs/types/components/container/BloodPressureVisualization/BloodPressureVisualization.previewdata.d.ts +2 -0
  5. package/dist/cjs/types/components/container/BloodPressureVisualization/BloodPressureVisualization.stories.d.ts +43 -0
  6. package/dist/cjs/types/components/container/BloodPressureVisualization/index.d.ts +1 -0
  7. package/dist/cjs/types/components/container/SeverityCalendar/SeverityCalendar.d.ts +12 -0
  8. package/dist/cjs/types/components/container/SeverityCalendar/SeverityCalendar.previewdata.d.ts +2 -0
  9. package/dist/cjs/types/components/container/SeverityCalendar/SeverityCalendar.stories.d.ts +52 -0
  10. package/dist/cjs/types/components/container/SeverityCalendar/index.d.ts +1 -0
  11. package/dist/cjs/types/components/container/index.d.ts +2 -0
  12. package/dist/cjs/types/components/presentational/CalendarDay/CalendarDay.d.ts +18 -0
  13. package/dist/cjs/types/components/presentational/CalendarDay/CalendarDay.stories.d.ts +411 -0
  14. package/dist/cjs/types/components/presentational/CalendarDay/index.d.ts +1 -0
  15. package/dist/cjs/types/components/presentational/DateRangeCoordinator/index.d.ts +1 -1
  16. package/dist/cjs/types/components/presentational/DumbbellChart/Dumbbell.d.ts +9 -0
  17. package/dist/cjs/types/components/presentational/DumbbellChart/DumbbellChart.d.ts +28 -0
  18. package/dist/cjs/types/components/presentational/DumbbellChart/index.d.ts +1 -0
  19. package/dist/cjs/types/components/presentational/NavigationBar/NavigationBar.d.ts +4 -2
  20. package/dist/cjs/types/components/presentational/NavigationBar/NavigationBar.stories.d.ts +83 -0
  21. package/dist/cjs/types/components/presentational/ProgressBar/ProgressBar.d.ts +24 -0
  22. package/dist/cjs/types/components/presentational/ProgressBar/ProgressBarStep.d.ts +9 -0
  23. package/dist/cjs/types/components/presentational/ProgressBar/index.d.ts +2 -0
  24. package/dist/cjs/types/components/presentational/SingleSurveyTask/SingleSurveyTask.d.ts +6 -6
  25. package/dist/cjs/types/components/presentational/SingleSurveyTask/SingleSurveyTask.stories.d.ts +59 -128
  26. package/dist/cjs/types/components/presentational/ValueSelector/ValueSelector.d.ts +23 -0
  27. package/dist/cjs/types/components/presentational/ValueSelector/ValueSelector.stories.d.ts +119 -0
  28. package/dist/cjs/types/components/presentational/ValueSelector/index.d.ts +1 -0
  29. package/dist/cjs/types/components/presentational/index.d.ts +7 -2
  30. package/dist/cjs/types/helpers/blood-pressure-data-providers/index.d.ts +3 -0
  31. package/dist/cjs/types/helpers/blood-pressure-data-providers/survey-blood-pressure-data-provider.d.ts +12 -0
  32. package/dist/cjs/types/helpers/daily-data-providers/apple-health-active-energy-burned.d.ts +3 -0
  33. package/dist/cjs/types/helpers/daily-data-providers/garmin-active-calories.d.ts +3 -0
  34. package/dist/cjs/types/helpers/daily-data-providers/garmin-resting-calories.d.ts +3 -0
  35. package/dist/cjs/types/helpers/daily-data-providers/garmin-total-calories.d.ts +3 -0
  36. package/dist/cjs/types/helpers/daily-data-providers/index.d.ts +4 -0
  37. package/dist/cjs/types/helpers/daily-data-providers/query-garmin-total-daily-values.d.ts +3 -0
  38. package/dist/cjs/types/helpers/date-helpers.d.ts +1 -0
  39. package/dist/cjs/types/helpers/functions.d.ts +1 -0
  40. package/dist/cjs/types/helpers/query-all-survey-answers.d.ts +2 -0
  41. package/dist/cjs/types/helpers/query-daily-data.d.ts +4 -0
  42. package/dist/cjs/types/index.d.ts +2 -0
  43. package/dist/esm/index.js +144 -20
  44. package/dist/esm/index.js.map +1 -1
  45. package/dist/esm/types/components/container/BloodPressureVisualization/BloodPressureVisualization.d.ts +12 -0
  46. package/dist/esm/types/components/container/BloodPressureVisualization/BloodPressureVisualization.previewdata.d.ts +2 -0
  47. package/dist/esm/types/components/container/BloodPressureVisualization/BloodPressureVisualization.stories.d.ts +43 -0
  48. package/dist/esm/types/components/container/BloodPressureVisualization/index.d.ts +1 -0
  49. package/dist/esm/types/components/container/SeverityCalendar/SeverityCalendar.d.ts +12 -0
  50. package/dist/esm/types/components/container/SeverityCalendar/SeverityCalendar.previewdata.d.ts +2 -0
  51. package/dist/esm/types/components/container/SeverityCalendar/SeverityCalendar.stories.d.ts +52 -0
  52. package/dist/esm/types/components/container/SeverityCalendar/index.d.ts +1 -0
  53. package/dist/esm/types/components/container/index.d.ts +2 -0
  54. package/dist/esm/types/components/presentational/CalendarDay/CalendarDay.d.ts +18 -0
  55. package/dist/esm/types/components/presentational/CalendarDay/CalendarDay.stories.d.ts +411 -0
  56. package/dist/esm/types/components/presentational/CalendarDay/index.d.ts +1 -0
  57. package/dist/esm/types/components/presentational/DateRangeCoordinator/index.d.ts +1 -1
  58. package/dist/esm/types/components/presentational/DumbbellChart/Dumbbell.d.ts +9 -0
  59. package/dist/esm/types/components/presentational/DumbbellChart/DumbbellChart.d.ts +28 -0
  60. package/dist/esm/types/components/presentational/DumbbellChart/index.d.ts +1 -0
  61. package/dist/esm/types/components/presentational/NavigationBar/NavigationBar.d.ts +4 -2
  62. package/dist/esm/types/components/presentational/NavigationBar/NavigationBar.stories.d.ts +83 -0
  63. package/dist/esm/types/components/presentational/ProgressBar/ProgressBar.d.ts +24 -0
  64. package/dist/esm/types/components/presentational/ProgressBar/ProgressBarStep.d.ts +9 -0
  65. package/dist/esm/types/components/presentational/ProgressBar/index.d.ts +2 -0
  66. package/dist/esm/types/components/presentational/SingleSurveyTask/SingleSurveyTask.d.ts +6 -6
  67. package/dist/esm/types/components/presentational/SingleSurveyTask/SingleSurveyTask.stories.d.ts +59 -128
  68. package/dist/esm/types/components/presentational/ValueSelector/ValueSelector.d.ts +23 -0
  69. package/dist/esm/types/components/presentational/ValueSelector/ValueSelector.stories.d.ts +119 -0
  70. package/dist/esm/types/components/presentational/ValueSelector/index.d.ts +1 -0
  71. package/dist/esm/types/components/presentational/index.d.ts +7 -2
  72. package/dist/esm/types/helpers/blood-pressure-data-providers/index.d.ts +3 -0
  73. package/dist/esm/types/helpers/blood-pressure-data-providers/survey-blood-pressure-data-provider.d.ts +12 -0
  74. package/dist/esm/types/helpers/daily-data-providers/apple-health-active-energy-burned.d.ts +3 -0
  75. package/dist/esm/types/helpers/daily-data-providers/garmin-active-calories.d.ts +3 -0
  76. package/dist/esm/types/helpers/daily-data-providers/garmin-resting-calories.d.ts +3 -0
  77. package/dist/esm/types/helpers/daily-data-providers/garmin-total-calories.d.ts +3 -0
  78. package/dist/esm/types/helpers/daily-data-providers/index.d.ts +4 -0
  79. package/dist/esm/types/helpers/daily-data-providers/query-garmin-total-daily-values.d.ts +3 -0
  80. package/dist/esm/types/helpers/date-helpers.d.ts +1 -0
  81. package/dist/esm/types/helpers/functions.d.ts +1 -0
  82. package/dist/esm/types/helpers/query-all-survey-answers.d.ts +2 -0
  83. package/dist/esm/types/helpers/query-daily-data.d.ts +4 -0
  84. package/dist/esm/types/index.d.ts +2 -0
  85. package/dist/index.d.ts +209 -71
  86. package/package.json +3 -3
@@ -0,0 +1,83 @@
1
+ import React from 'react';
2
+ import NavigationBar, { NavigationBarProps } from './NavigationBar';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof NavigationBar;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ export declare const WithBackButton: {
12
+ args: {
13
+ title: string;
14
+ showBackButton: boolean;
15
+ };
16
+ render: (args: NavigationBarProps) => React.JSX.Element;
17
+ };
18
+ export declare const WithBackButtonCustomText: {
19
+ args: {
20
+ title: string;
21
+ showBackButton: boolean;
22
+ backButtonText: string;
23
+ };
24
+ render: (args: NavigationBarProps) => React.JSX.Element;
25
+ };
26
+ export declare const WithCloseButton: {
27
+ args: {
28
+ title: string;
29
+ showCloseButton: boolean;
30
+ };
31
+ render: (args: NavigationBarProps) => React.JSX.Element;
32
+ };
33
+ export declare const WithCloseButtonCustomText: {
34
+ args: {
35
+ title: string;
36
+ showCloseButton: boolean;
37
+ closeButtonText: string;
38
+ };
39
+ render: (args: NavigationBarProps) => React.JSX.Element;
40
+ };
41
+ export declare const WithCustomButtons: {
42
+ args: {
43
+ title: string;
44
+ navigationBarLeft: React.JSX.Element;
45
+ navigationBarRight: React.JSX.Element;
46
+ };
47
+ render: (args: NavigationBarProps) => React.JSX.Element;
48
+ };
49
+ export declare const Compressed: {
50
+ args: {
51
+ title: string;
52
+ navigationBarLeft: React.JSX.Element;
53
+ navigationBarRight: React.JSX.Element;
54
+ variant: string;
55
+ };
56
+ render: (args: NavigationBarProps) => React.JSX.Element;
57
+ };
58
+ export declare const CompressedWithSubtitle: {
59
+ args: {
60
+ title: string;
61
+ subtitle: string;
62
+ navigationBarLeft: React.JSX.Element;
63
+ navigationBarRight: React.JSX.Element;
64
+ variant: string;
65
+ };
66
+ render: (args: NavigationBarProps) => React.JSX.Element;
67
+ };
68
+ export declare const WithDateRangeNavigator: {
69
+ args: {
70
+ title: string;
71
+ showCloseButton: boolean;
72
+ children: React.JSX.Element;
73
+ };
74
+ render: (args: NavigationBarProps) => React.JSX.Element;
75
+ };
76
+ export declare const WithRoundedDateRangeNavigator: {
77
+ args: {
78
+ title: string;
79
+ showCloseButton: boolean;
80
+ children: React.JSX.Element;
81
+ };
82
+ render: (args: NavigationBarProps) => React.JSX.Element;
83
+ };
@@ -0,0 +1,24 @@
1
+ import { ColorDefinition } from "../../../helpers/colors";
2
+ import "./ProgressBar.css";
3
+ import React, { ReactElement } from "react";
4
+ export interface ProgressBarProps {
5
+ backgroundColor?: ColorDefinition;
6
+ borderColor?: ColorDefinition;
7
+ fillColor?: ColorDefinition;
8
+ fillPercent: number;
9
+ steps?: {
10
+ percent: number;
11
+ icon: ReactElement;
12
+ }[];
13
+ innerRef?: React.Ref<HTMLDivElement>;
14
+ defaultMargin?: boolean;
15
+ }
16
+ declare function ProgressBar(props: ProgressBarProps): React.JSX.Element;
17
+ declare namespace ProgressBar {
18
+ var defaultProps: {
19
+ backgroundColor: string;
20
+ fillColor: string;
21
+ fillPercent: number;
22
+ };
23
+ }
24
+ export default ProgressBar;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { ColorDefinition } from "../../../helpers/colors";
3
+ export interface ProgressBarStepProps {
4
+ borderColor?: ColorDefinition;
5
+ backgroundColor?: ColorDefinition;
6
+ children?: React.ReactNode;
7
+ height: string;
8
+ }
9
+ export default function ProgressBarStep(props: ProgressBarStepProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default } from './ProgressBar';
2
+ export { default as ProgressBarStep } from './ProgressBarStep';
@@ -1,19 +1,19 @@
1
1
  import React from 'react';
2
- import "./SingleSurveyTask.css";
3
- import { SurveyTask } from "@careevolution/mydatahelps-js";
2
+ import './SingleSurveyTask.css';
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
6
  import { ColorDefinition } from '../../../helpers/colors';
7
7
  import { ButtonVariant } from '../Button/Button';
8
- export type SingleSurveyTaskPreviewState = 'hasBeenClicked';
8
+ export type SingleSurveyTaskVariant = 'default' | 'expanded';
9
9
  export interface SingleSurveyTaskProps {
10
- previewState?: SingleSurveyTaskPreviewState;
11
10
  task: SurveyTask;
12
- descriptionIcon?: IconDefinition;
13
11
  onClick: () => void;
12
+ variant?: SingleSurveyTaskVariant;
13
+ descriptionIcon?: IconDefinition;
14
14
  surveyActive?: boolean;
15
- innerRef?: React.Ref<HTMLDivElement>;
16
15
  buttonColor?: ColorDefinition;
17
16
  buttonVariant?: ButtonVariant;
17
+ innerRef?: React.Ref<HTMLDivElement>;
18
18
  }
19
19
  export default function (props: SingleSurveyTaskProps): React.JSX.Element | null;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import SingleSurveyTask, { SingleSurveyTaskProps } from './SingleSurveyTask';
2
+ import SingleSurveyTask, { SingleSurveyTaskVariant } from './SingleSurveyTask';
3
+ import { SurveyTaskStatus } from "@careevolution/mydatahelps-js";
3
4
  declare const _default: {
4
5
  title: string;
5
6
  component: typeof SingleSurveyTask;
@@ -8,138 +9,68 @@ declare const _default: {
8
9
  };
9
10
  };
10
11
  export default _default;
11
- export declare const Incomplete: {
12
+ interface SingleSurveyTaskStoryArgs {
13
+ name: string;
14
+ status: SurveyTaskStatus;
15
+ description?: string;
16
+ dueDate?: number;
17
+ hasSavedProgress?: boolean;
18
+ variant?: SingleSurveyTaskVariant;
19
+ endDate?: number;
20
+ surveyActive?: boolean;
21
+ }
22
+ export declare const Default: {
12
23
  args: {
13
- task: {
14
- status: string;
15
- id: import("@careevolution/mydatahelps-js").Guid;
16
- linkIdentifier: string;
17
- surveyID: import("@careevolution/mydatahelps-js").Guid;
18
- surveyName: string;
19
- surveyDisplayName?: string | undefined;
20
- surveyDescription?: string | undefined;
21
- startDate?: string | undefined;
22
- endDate?: string | undefined;
23
- hasSavedProgress: boolean;
24
- dueDate: string;
25
- insertedDate: string;
26
- modifiedDate: string;
27
- };
28
- previewState?: "hasBeenClicked" | undefined;
29
- descriptionIcon?: import("@fortawesome/fontawesome-common-types").IconDefinition | undefined;
30
- onClick: () => void;
31
- surveyActive?: boolean | undefined;
32
- innerRef?: React.Ref<HTMLDivElement> | undefined;
33
- buttonColor?: import("../../..").ColorDefinition | undefined;
34
- buttonVariant?: import("../Button/Button").ButtonVariant | undefined;
24
+ variant: string;
25
+ name: string;
26
+ description: string;
27
+ status: string;
28
+ dueDate: undefined;
29
+ hasSavedProgress: boolean;
30
+ endDate: undefined;
31
+ surveyActive: boolean;
35
32
  };
36
- render: (args: SingleSurveyTaskProps) => React.JSX.Element;
37
- };
38
- export declare const IncompleteInProgress: {
39
- args: {
40
- task: {
41
- status: string;
42
- hasSavedProgress: boolean;
43
- id: import("@careevolution/mydatahelps-js").Guid;
44
- linkIdentifier: string;
45
- surveyID: import("@careevolution/mydatahelps-js").Guid;
46
- surveyName: string;
47
- surveyDisplayName?: string | undefined;
48
- surveyDescription?: string | undefined;
49
- startDate?: string | undefined;
50
- endDate?: string | undefined;
51
- dueDate: string;
52
- insertedDate: string;
53
- modifiedDate: string;
33
+ argTypes: {
34
+ variant: {
35
+ control: string;
36
+ options: string[];
54
37
  };
55
- previewState?: "hasBeenClicked" | undefined;
56
- descriptionIcon?: import("@fortawesome/fontawesome-common-types").IconDefinition | undefined;
57
- onClick: () => void;
58
- surveyActive?: boolean | undefined;
59
- innerRef?: React.Ref<HTMLDivElement> | undefined;
60
- buttonColor?: import("../../..").ColorDefinition | undefined;
61
- buttonVariant?: import("../Button/Button").ButtonVariant | undefined;
62
- };
63
- render: (args: SingleSurveyTaskProps) => React.JSX.Element;
64
- };
65
- export declare const IncompleteSurveyActive: {
66
- args: {
67
- task: {
68
- status: string;
69
- id: import("@careevolution/mydatahelps-js").Guid;
70
- linkIdentifier: string;
71
- surveyID: import("@careevolution/mydatahelps-js").Guid;
72
- surveyName: string;
73
- surveyDisplayName?: string | undefined;
74
- surveyDescription?: string | undefined;
75
- startDate?: string | undefined;
76
- endDate?: string | undefined;
77
- hasSavedProgress: boolean;
78
- dueDate: string;
79
- insertedDate: string;
80
- modifiedDate: string;
38
+ status: {
39
+ control: string;
40
+ options: string[];
81
41
  };
82
- surveyActive: boolean;
83
- previewState?: "hasBeenClicked" | undefined;
84
- descriptionIcon?: import("@fortawesome/fontawesome-common-types").IconDefinition | undefined;
85
- onClick: () => void;
86
- innerRef?: React.Ref<HTMLDivElement> | undefined;
87
- buttonColor?: import("../../..").ColorDefinition | undefined;
88
- buttonVariant?: import("../Button/Button").ButtonVariant | undefined;
89
- };
90
- render: (args: SingleSurveyTaskProps) => React.JSX.Element;
91
- };
92
- export declare const IncompleteWithLongDescription: {
93
- args: {
94
- task: {
95
- status: string;
96
- surveyDescription: string;
97
- id: import("@careevolution/mydatahelps-js").Guid;
98
- linkIdentifier: string;
99
- surveyID: import("@careevolution/mydatahelps-js").Guid;
100
- surveyName: string;
101
- surveyDisplayName?: string | undefined;
102
- startDate?: string | undefined;
103
- endDate?: string | undefined;
104
- hasSavedProgress: boolean;
105
- dueDate: string;
106
- insertedDate: string;
107
- modifiedDate: string;
42
+ dueDate: {
43
+ name: string;
44
+ control: string;
45
+ if: {
46
+ arg: string;
47
+ eq: string;
48
+ };
108
49
  };
109
- previewState?: "hasBeenClicked" | undefined;
110
- descriptionIcon?: import("@fortawesome/fontawesome-common-types").IconDefinition | undefined;
111
- onClick: () => void;
112
- surveyActive?: boolean | undefined;
113
- innerRef?: React.Ref<HTMLDivElement> | undefined;
114
- buttonColor?: import("../../..").ColorDefinition | undefined;
115
- buttonVariant?: import("../Button/Button").ButtonVariant | undefined;
116
- };
117
- render: (args: SingleSurveyTaskProps) => React.JSX.Element;
118
- };
119
- export declare const Complete: {
120
- args: {
121
- task: {
122
- status: string;
123
- endDate: string;
124
- id: import("@careevolution/mydatahelps-js").Guid;
125
- linkIdentifier: string;
126
- surveyID: import("@careevolution/mydatahelps-js").Guid;
127
- surveyName: string;
128
- surveyDisplayName?: string | undefined;
129
- surveyDescription?: string | undefined;
130
- startDate?: string | undefined;
131
- hasSavedProgress: boolean;
132
- dueDate: string;
133
- insertedDate: string;
134
- modifiedDate: string;
50
+ hasSavedProgress: {
51
+ name: string;
52
+ control: string;
53
+ if: {
54
+ arg: string;
55
+ eq: string;
56
+ };
57
+ };
58
+ surveyActive: {
59
+ name: string;
60
+ control: string;
61
+ if: {
62
+ arg: string;
63
+ eq: string;
64
+ };
65
+ };
66
+ endDate: {
67
+ name: string;
68
+ control: string;
69
+ if: {
70
+ arg: string;
71
+ eq: string;
72
+ };
135
73
  };
136
- previewState?: "hasBeenClicked" | undefined;
137
- descriptionIcon?: import("@fortawesome/fontawesome-common-types").IconDefinition | undefined;
138
- onClick: () => void;
139
- surveyActive?: boolean | undefined;
140
- innerRef?: React.Ref<HTMLDivElement> | undefined;
141
- buttonColor?: import("../../..").ColorDefinition | undefined;
142
- buttonVariant?: import("../Button/Button").ButtonVariant | undefined;
143
74
  };
144
- render: (args: SingleSurveyTaskProps) => React.JSX.Element;
75
+ render: (args: SingleSurveyTaskStoryArgs) => React.JSX.Element;
145
76
  };
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import './ValueSelector.css';
3
+ import { ColorDefinition } from '../../../helpers/colors';
4
+ export interface ValueSelectorProps {
5
+ title?: string;
6
+ titleColor?: ColorDefinition;
7
+ subtitle?: string;
8
+ subtitleColor?: ColorDefinition;
9
+ values: string[];
10
+ valueBackgroundColor?: ColorDefinition;
11
+ valueTextColor?: ColorDefinition;
12
+ checkboxColor?: ColorDefinition;
13
+ selectedValues?: string[];
14
+ selectedButtonBackgroundColor?: ColorDefinition;
15
+ selectedButtonTextColor?: ColorDefinition;
16
+ selectedCheckboxColor?: ColorDefinition;
17
+ onChange?: (selectedValues: string[]) => void;
18
+ variant?: 'default' | 'checkboxes';
19
+ multiSelect?: boolean;
20
+ preventEmptySelections?: boolean;
21
+ innerRef?: React.Ref<HTMLDivElement>;
22
+ }
23
+ export default function (props: ValueSelectorProps): React.JSX.Element;
@@ -0,0 +1,119 @@
1
+ import React from 'react';
2
+ import ValueSelector, { ValueSelectorProps } from './ValueSelector';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof ValueSelector;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ export declare const Buttons: {
12
+ args: {
13
+ title: string;
14
+ subtitle: string;
15
+ values: string[];
16
+ };
17
+ render: (args: ValueSelectorProps) => React.JSX.Element;
18
+ };
19
+ export declare const ButtonsPreventEmptySelections: {
20
+ args: {
21
+ title: string;
22
+ subtitle: string;
23
+ values: string[];
24
+ preventEmptySelections: boolean;
25
+ };
26
+ render: (args: ValueSelectorProps) => React.JSX.Element;
27
+ };
28
+ export declare const ButtonsMultiSelect: {
29
+ args: {
30
+ title: string;
31
+ subtitle: string;
32
+ values: string[];
33
+ multiSelect: boolean;
34
+ };
35
+ render: (args: ValueSelectorProps) => React.JSX.Element;
36
+ };
37
+ export declare const ButtonsMultiSelectPreventEmptySelections: {
38
+ args: {
39
+ title: string;
40
+ subtitle: string;
41
+ values: string[];
42
+ multiSelect: boolean;
43
+ preventEmptySelections: boolean;
44
+ };
45
+ render: (args: ValueSelectorProps) => React.JSX.Element;
46
+ };
47
+ export declare const ButtonsCustomColors: {
48
+ args: {
49
+ title: string;
50
+ titleColor: string;
51
+ subtitle: string;
52
+ subtitleColor: string;
53
+ values: string[];
54
+ valueBackgroundColor: string;
55
+ valueTextColor: string;
56
+ selectedButtonBackgroundColor: string;
57
+ selectedButtonTextColor: {
58
+ lightMode: string;
59
+ darkMode: string;
60
+ };
61
+ };
62
+ render: (args: ValueSelectorProps) => React.JSX.Element;
63
+ };
64
+ export declare const Checkboxes: {
65
+ args: {
66
+ title: string;
67
+ subtitle: string;
68
+ values: string[];
69
+ variant: string;
70
+ };
71
+ render: (args: ValueSelectorProps) => React.JSX.Element;
72
+ };
73
+ export declare const CheckboxesPreventEmptySelections: {
74
+ args: {
75
+ title: string;
76
+ subtitle: string;
77
+ values: string[];
78
+ variant: string;
79
+ preventEmptySelections: boolean;
80
+ };
81
+ render: (args: ValueSelectorProps) => React.JSX.Element;
82
+ };
83
+ export declare const CheckboxesMultiSelect: {
84
+ args: {
85
+ title: string;
86
+ subtitle: string;
87
+ values: string[];
88
+ variant: string;
89
+ multiSelect: boolean;
90
+ };
91
+ render: (args: ValueSelectorProps) => React.JSX.Element;
92
+ };
93
+ export declare const CheckboxesMultiSelectPreventEmptySelections: {
94
+ args: {
95
+ title: string;
96
+ subtitle: string;
97
+ values: string[];
98
+ variant: string;
99
+ multiSelect: boolean;
100
+ preventEmptySelections: boolean;
101
+ };
102
+ render: (args: ValueSelectorProps) => React.JSX.Element;
103
+ };
104
+ export declare const CheckboxesCustomColors: {
105
+ args: {
106
+ title: string;
107
+ titleColor: string;
108
+ subtitle: string;
109
+ subtitleColor: string;
110
+ values: string[];
111
+ valueBackgroundColor: string;
112
+ valueTextColor: string;
113
+ checkboxColor: string;
114
+ selectedCheckboxColor: string;
115
+ variant: string;
116
+ multiSelect: boolean;
117
+ };
118
+ render: (args: ValueSelectorProps) => React.JSX.Element;
119
+ };
@@ -0,0 +1 @@
1
+ export { default } from './ValueSelector';
@@ -2,17 +2,22 @@ export { default as Action } from "./Action";
2
2
  export { default as ActivityMeter } from "./ActivityMeter";
3
3
  export { default as Button } from "./Button";
4
4
  export { default as Calendar } from "./Calendar";
5
+ export { default as CalendarDay, CalendarDayStateConfiguration } from "./CalendarDay";
5
6
  export { default as Card } from "./Card";
6
7
  export { default as CardTitle } from "./CardTitle";
7
- export { default as DateRangeCoordinator } from "./DateRangeCoordinator";
8
+ export { default as DateRangeCoordinator, DateRangeContext } from "./DateRangeCoordinator";
8
9
  export { default as DateRangeNavigator } from "./DateRangeNavigator";
9
10
  export { default as DayTrackerSymbol } from "./DayTrackerSymbol";
11
+ export { default as DumbbellChart } from "./DumbbellChart";
10
12
  export { default as Face } from "./Face";
11
13
  export { default as Histogram } from "./Histogram";
12
14
  export { default as Layout, LayoutContext } from "./Layout";
13
15
  export { default as LoadingIndicator } from "./LoadingIndicator";
14
16
  export { default as NavigationBar } from "./NavigationBar";
15
17
  export { default as NotesInput } from "./NotesInput";
18
+ export { default as ProgressBar } from "./ProgressBar";
19
+ export { default as ProgressBarStep } from "./ProgressBar/ProgressBarStep";
20
+ export { default as ProgressRing } from "./ProgressRing";
16
21
  export { default as Section } from "./Section";
17
22
  export { default as SegmentedControl } from "./SegmentedControl";
18
23
  export { default as ShinyOverlay } from "./ShinyOverlay";
@@ -26,6 +31,6 @@ export { default as TextBlock } from "./TextBlock";
26
31
  export { default as Title } from "./Title";
27
32
  export { default as TrackerItem } from "./TrackerItem";
28
33
  export { default as UnstyledButton } from "./UnstyledButton";
34
+ export { default as ValueSelector } from "./ValueSelector";
29
35
  export { default as ViewHeader } from "./ViewHeader";
30
36
  export { default as WeekCalendar } from "./WeekCalendar";
31
- export { default as ProgressRing } from "./ProgressRing";
@@ -0,0 +1,3 @@
1
+ export { default as bloodPressureDataProvider } from "./survey-blood-pressure-data-provider";
2
+ export { SurveyBloodPressureDataParameters as SurveyBloodPressureDataParameters } from "./survey-blood-pressure-data-provider";
3
+ export { BloodPressureDataPoint as BloodPressureDataPoint } from "./survey-blood-pressure-data-provider";
@@ -0,0 +1,12 @@
1
+ export interface SurveyBloodPressureDataParameters {
2
+ surveyName: string;
3
+ dateResultIdentifier: string;
4
+ systolicResultIdentifier: string;
5
+ diastolicResultIdentifier: string;
6
+ }
7
+ export interface BloodPressureDataPoint {
8
+ date: Date;
9
+ systolic: number;
10
+ diastolic: number;
11
+ }
12
+ export default function (props: SurveyBloodPressureDataParameters): Promise<BloodPressureDataPoint[]>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare function activeCalories(startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare function restingCalories(startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare function totalCalories(startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -8,6 +8,7 @@ export { inBedTime as appleHealthInBedDataProvider } from "./apple-health-sleep"
8
8
  export { default as appleHealthStandTimeDataProvider } from "./apple-health-stand-time";
9
9
  export { default as appleHealthStepsDataProvider } from "./apple-health-steps";
10
10
  export { default as appleHealthWalkingHeartRateAverageDataProvider } from "./apple-health-walking-heart-rate-average";
11
+ export { default as appleHealthActiveEnergyBurned } from "./apple-health-active-energy-burned";
11
12
  export { sedentaryMinutes as fitbitSedentaryMinutesDataProvider } from "./fitbit-activity-minutes";
12
13
  export { totalActiveMinutes as fitbitTotalActiveMinutesDataProvider } from "./fitbit-activity-minutes";
13
14
  export { lightlyActiveMinutes as fitbitLightlyActiveMinutesDataProvider } from "./fitbit-activity-minutes";
@@ -35,6 +36,9 @@ export { default as garminStepsDataProvider } from "./garmin-steps";
35
36
  export { default as garminDistanceDataProvider } from "./garmin-distance";
36
37
  export { default as garminFloorsDataProvider } from "./garmin-floors";
37
38
  export { activeMinutes as garminActiveMinutesDataProvider } from "./garmin-activity";
39
+ export { activeCalories as garminActiveCaloriesDataProvider } from "./garmin-active-calories";
40
+ export { restingCalories as garminRestingCaloriesDataProvider } from "./garmin-resting-calories";
41
+ export { totalCalories as garminTotalCaloriesDataProvider } from "./garmin-total-calories";
38
42
  export { restingHeartRate as garminRestingHeartRateDataProvider } from "./garmin-heart-rate";
39
43
  export { minHeartRate as garminMinHeartRateDataProvider } from "./garmin-heart-rate";
40
44
  export { maxHeartRate as garminMaxHeartRateDataProvider } from "./garmin-heart-rate";
@@ -0,0 +1,3 @@
1
+ export default function (types: string[], startDate: Date, endDate: Date, divideBy?: number): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -4,3 +4,4 @@ export declare function getDayOfWeek(date: Date): string;
4
4
  export declare function getFullDateString(date: Date): string;
5
5
  export declare function getShorterDateString(date: Date): string;
6
6
  export declare function getMonthName(month: number): string;
7
+ export declare function getLocale(): Locale;
@@ -0,0 +1 @@
1
+ export declare function noop(): void;
@@ -0,0 +1,2 @@
1
+ import { SurveyAnswer, SurveyAnswersQuery } from "@careevolution/mydatahelps-js";
2
+ export default function (props: SurveyAnswersQuery): Promise<SurveyAnswer[]>;
@@ -18,6 +18,7 @@ export declare enum DailyDataType {
18
18
  AppleHealthStandMinutes = "AppleHealthStandMinutes",
19
19
  AppleHealthSteps = "AppleHealthSteps",
20
20
  AppleHealthWalkingHeartRateAverage = "AppleHealthWalkingHeartRateAverage",
21
+ AppleHealthActiveEnergyBurned = "AppleHealthActiveEnergyBurned",
21
22
  FitbitSedentaryMinutes = "FitbitSedentaryMinutes",
22
23
  FitbitActiveMinutes = "FitbitActiveMinutes",
23
24
  FitbitLightlyActiveMinutes = "FitbitLightlyActiveMinutes",
@@ -42,6 +43,9 @@ export declare enum DailyDataType {
42
43
  GarminDistance = "GarminDistance",
43
44
  GarminFloors = "GarminFloors",
44
45
  GarminActiveMinutes = "GarminActiveMinutes",
46
+ GarminActiveCalories = "GarminActiveCalories",
47
+ GarminRestingCalories = "GarminRestingCalories",
48
+ GarminTotalCalories = "GarminTotalCalories",
45
49
  GarminRestingHeartRate = "GarminRestingHeartRate",
46
50
  GarminMinHeartRate = "GarminMinHeartRate",
47
51
  GarminMaxHeartRate = "GarminMaxHeartRate",
@@ -5,3 +5,5 @@ export * from './helpers/language';
5
5
  export { default as getDayKey } from './helpers/get-day-key';
6
6
  export * from './helpers/get-interval-start';
7
7
  export * from './helpers/colors';
8
+ export * from './helpers/blood-pressure-data-providers';
9
+ export * from './helpers/query-all-survey-answers';