@careevolution/mydatahelps-ui 2.9.1-Issue139.4 → 2.10.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.
- package/dist/cjs/index.js +20 -20
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/presentational/CalendarDay/CalendarDay.d.ts +18 -0
- package/dist/cjs/types/components/presentational/CalendarDay/CalendarDay.stories.d.ts +411 -0
- package/dist/cjs/types/components/presentational/CalendarDay/index.d.ts +1 -0
- package/dist/cjs/types/components/presentational/DateRangeCoordinator/index.d.ts +1 -1
- package/dist/cjs/types/components/presentational/NavigationBar/NavigationBar.d.ts +4 -2
- package/dist/cjs/types/components/presentational/NavigationBar/NavigationBar.stories.d.ts +83 -0
- package/dist/cjs/types/components/presentational/ProgressBar/ProgressBar.d.ts +24 -0
- package/dist/cjs/types/components/presentational/ProgressBar/ProgressBarStep.d.ts +9 -0
- package/dist/cjs/types/components/presentational/ProgressBar/index.d.ts +2 -0
- package/dist/cjs/types/components/presentational/SingleSurveyTask/SingleSurveyTask.d.ts +0 -2
- package/dist/cjs/types/components/presentational/SingleSurveyTask/SingleSurveyTask.stories.d.ts +0 -5
- package/dist/cjs/types/components/presentational/ValueSelector/ValueSelector.d.ts +23 -0
- package/dist/cjs/types/components/presentational/ValueSelector/ValueSelector.stories.d.ts +119 -0
- package/dist/cjs/types/components/presentational/ValueSelector/index.d.ts +1 -0
- package/dist/cjs/types/components/presentational/index.d.ts +6 -2
- package/dist/cjs/types/helpers/daily-data-providers/apple-health-active-energy-burned.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/garmin-active-calories.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/garmin-resting-calories.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/garmin-total-calories.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/index.d.ts +4 -0
- package/dist/cjs/types/helpers/daily-data-providers/query-garmin-total-daily-values.d.ts +3 -0
- package/dist/cjs/types/helpers/query-daily-data.d.ts +4 -0
- package/dist/esm/index.js +20 -20
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/presentational/CalendarDay/CalendarDay.d.ts +18 -0
- package/dist/esm/types/components/presentational/CalendarDay/CalendarDay.stories.d.ts +411 -0
- package/dist/esm/types/components/presentational/CalendarDay/index.d.ts +1 -0
- package/dist/esm/types/components/presentational/DateRangeCoordinator/index.d.ts +1 -1
- package/dist/esm/types/components/presentational/NavigationBar/NavigationBar.d.ts +4 -2
- package/dist/esm/types/components/presentational/NavigationBar/NavigationBar.stories.d.ts +83 -0
- package/dist/esm/types/components/presentational/ProgressBar/ProgressBar.d.ts +24 -0
- package/dist/esm/types/components/presentational/ProgressBar/ProgressBarStep.d.ts +9 -0
- package/dist/esm/types/components/presentational/ProgressBar/index.d.ts +2 -0
- package/dist/esm/types/components/presentational/SingleSurveyTask/SingleSurveyTask.d.ts +0 -2
- package/dist/esm/types/components/presentational/SingleSurveyTask/SingleSurveyTask.stories.d.ts +0 -5
- package/dist/esm/types/components/presentational/ValueSelector/ValueSelector.d.ts +23 -0
- package/dist/esm/types/components/presentational/ValueSelector/ValueSelector.stories.d.ts +119 -0
- package/dist/esm/types/components/presentational/ValueSelector/index.d.ts +1 -0
- package/dist/esm/types/components/presentational/index.d.ts +6 -2
- package/dist/esm/types/helpers/daily-data-providers/apple-health-active-energy-burned.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/garmin-active-calories.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/garmin-resting-calories.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/garmin-total-calories.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/index.d.ts +4 -0
- package/dist/esm/types/helpers/daily-data-providers/query-garmin-total-daily-values.d.ts +3 -0
- package/dist/esm/types/helpers/query-daily-data.d.ts +4 -0
- package/dist/index.d.ts +104 -29
- package/package.json +3 -3
|
@@ -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,9 +2,10 @@ 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";
|
|
10
11
|
export { default as Face } from "./Face";
|
|
@@ -13,6 +14,9 @@ export { default as Layout, LayoutContext } from "./Layout";
|
|
|
13
14
|
export { default as LoadingIndicator } from "./LoadingIndicator";
|
|
14
15
|
export { default as NavigationBar } from "./NavigationBar";
|
|
15
16
|
export { default as NotesInput } from "./NotesInput";
|
|
17
|
+
export { default as ProgressBar } from "./ProgressBar";
|
|
18
|
+
export { default as ProgressBarStep } from "./ProgressBar/ProgressBarStep";
|
|
19
|
+
export { default as ProgressRing } from "./ProgressRing";
|
|
16
20
|
export { default as Section } from "./Section";
|
|
17
21
|
export { default as SegmentedControl } from "./SegmentedControl";
|
|
18
22
|
export { default as ShinyOverlay } from "./ShinyOverlay";
|
|
@@ -26,6 +30,6 @@ export { default as TextBlock } from "./TextBlock";
|
|
|
26
30
|
export { default as Title } from "./Title";
|
|
27
31
|
export { default as TrackerItem } from "./TrackerItem";
|
|
28
32
|
export { default as UnstyledButton } from "./UnstyledButton";
|
|
33
|
+
export { default as ValueSelector } from "./ValueSelector";
|
|
29
34
|
export { default as ViewHeader } from "./ViewHeader";
|
|
30
35
|
export { default as WeekCalendar } from "./WeekCalendar";
|
|
31
|
-
export { default as ProgressRing } from "./ProgressRing";
|
|
@@ -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";
|
|
@@ -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",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactElement, MouseEventHandler, ReactNode
|
|
1
|
+
import React, { ReactElement, CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
|
2
2
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
3
3
|
import { StatusBarStyle, ExternalAccount, Notification, SurveyTask, ExternalAccountStatus, NotificationType, ExternalAccountProvider, SurveyTaskStatus, ParticipantInfo } from '@careevolution/mydatahelps-js';
|
|
4
4
|
import { IconDefinition as IconDefinition$1 } from '@fortawesome/fontawesome-common-types';
|
|
@@ -27,7 +27,7 @@ interface ActionProps {
|
|
|
27
27
|
subtitleColor?: ColorDefinition;
|
|
28
28
|
renderAs?: "div" | "button";
|
|
29
29
|
}
|
|
30
|
-
declare function export_default$
|
|
30
|
+
declare function export_default$1D(props: ActionProps): React.JSX.Element;
|
|
31
31
|
|
|
32
32
|
interface ActivityMeterProps {
|
|
33
33
|
label: string;
|
|
@@ -40,7 +40,7 @@ interface ActivityMeterProps {
|
|
|
40
40
|
className?: string;
|
|
41
41
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
42
42
|
}
|
|
43
|
-
declare function export_default$
|
|
43
|
+
declare function export_default$1C(props: ActivityMeterProps): React.JSX.Element;
|
|
44
44
|
|
|
45
45
|
type ButtonVariant = "default" | "subtle" | "light";
|
|
46
46
|
interface ButtonProps {
|
|
@@ -55,7 +55,7 @@ interface ButtonProps {
|
|
|
55
55
|
defaultMargin?: boolean;
|
|
56
56
|
fullWidth?: boolean;
|
|
57
57
|
}
|
|
58
|
-
declare function export_default$
|
|
58
|
+
declare function export_default$1B(props: ButtonProps): React.JSX.Element;
|
|
59
59
|
|
|
60
60
|
interface CalendarProps {
|
|
61
61
|
month: number;
|
|
@@ -65,7 +65,23 @@ interface CalendarProps {
|
|
|
65
65
|
className?: string;
|
|
66
66
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
67
67
|
}
|
|
68
|
-
declare function export_default$
|
|
68
|
+
declare function export_default$1A(props: CalendarProps): React.JSX.Element;
|
|
69
|
+
|
|
70
|
+
type CalendarDayStateConfiguration = Record<string, {
|
|
71
|
+
style?: CSSProperties;
|
|
72
|
+
streak?: boolean;
|
|
73
|
+
streakColor?: ColorDefinition;
|
|
74
|
+
}>;
|
|
75
|
+
interface CalendarDayProps {
|
|
76
|
+
year: number;
|
|
77
|
+
month: number;
|
|
78
|
+
day?: number;
|
|
79
|
+
stateConfiguration: CalendarDayStateConfiguration;
|
|
80
|
+
computeStateForDay: (date: Date) => string;
|
|
81
|
+
onClick?: (date: Date) => void;
|
|
82
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
83
|
+
}
|
|
84
|
+
declare function export_default$1z(props: CalendarDayProps): React.JSX.Element;
|
|
69
85
|
|
|
70
86
|
interface CardProps {
|
|
71
87
|
className?: string;
|
|
@@ -76,7 +92,7 @@ interface CardProps {
|
|
|
76
92
|
backgroundColor?: ColorDefinition;
|
|
77
93
|
style?: React.CSSProperties;
|
|
78
94
|
}
|
|
79
|
-
declare function export_default$
|
|
95
|
+
declare function export_default$1y(props: CardProps): React.JSX.Element | null;
|
|
80
96
|
|
|
81
97
|
interface CardTitleProps {
|
|
82
98
|
title: string;
|
|
@@ -85,7 +101,7 @@ interface CardTitleProps {
|
|
|
85
101
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
86
102
|
color?: ColorDefinition;
|
|
87
103
|
}
|
|
88
|
-
declare function export_default$
|
|
104
|
+
declare function export_default$1x(props: CardTitleProps): React.JSX.Element;
|
|
89
105
|
|
|
90
106
|
type WeekStartsOn = "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "6DaysAgo" | "7DaysAgo";
|
|
91
107
|
declare function getWeekStart(weekStartsOn?: WeekStartsOn): Date;
|
|
@@ -100,6 +116,11 @@ interface DateRangeCoordinatorProps {
|
|
|
100
116
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
101
117
|
sticky?: boolean;
|
|
102
118
|
}
|
|
119
|
+
interface DateRangeContext {
|
|
120
|
+
intervalType: "Week" | "Month";
|
|
121
|
+
intervalStart: Date;
|
|
122
|
+
}
|
|
123
|
+
declare const DateRangeContext: React.Context<DateRangeContext | null>;
|
|
103
124
|
declare function DateRangeNavigatorContext(props: DateRangeCoordinatorProps): React.JSX.Element;
|
|
104
125
|
|
|
105
126
|
interface DateRangeNavigatorProps {
|
|
@@ -111,7 +132,7 @@ interface DateRangeNavigatorProps {
|
|
|
111
132
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
112
133
|
sticky?: boolean;
|
|
113
134
|
}
|
|
114
|
-
declare function export_default$
|
|
135
|
+
declare function export_default$1w(props: DateRangeNavigatorProps): React.JSX.Element;
|
|
115
136
|
|
|
116
137
|
interface DayTrackerSymbolProps {
|
|
117
138
|
primaryColors: string[];
|
|
@@ -120,7 +141,7 @@ interface DayTrackerSymbolProps {
|
|
|
120
141
|
size?: "small" | "large";
|
|
121
142
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
122
143
|
}
|
|
123
|
-
declare function export_default$
|
|
144
|
+
declare function export_default$1v(props: DayTrackerSymbolProps): React.JSX.Element;
|
|
124
145
|
|
|
125
146
|
interface FaceProps {
|
|
126
147
|
faceValue?: number;
|
|
@@ -129,7 +150,7 @@ interface FaceProps {
|
|
|
129
150
|
className?: string;
|
|
130
151
|
innerRef?: React.Ref<HTMLButtonElement>;
|
|
131
152
|
}
|
|
132
|
-
declare function export_default$
|
|
153
|
+
declare function export_default$1u(props: FaceProps): React.JSX.Element;
|
|
133
154
|
|
|
134
155
|
interface HistogramProps {
|
|
135
156
|
entries: {
|
|
@@ -141,7 +162,7 @@ interface HistogramProps {
|
|
|
141
162
|
className?: string;
|
|
142
163
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
143
164
|
}
|
|
144
|
-
declare function export_default$
|
|
165
|
+
declare function export_default$1t(props: HistogramProps): React.JSX.Element;
|
|
145
166
|
|
|
146
167
|
interface LayoutProps {
|
|
147
168
|
children?: React.ReactNode;
|
|
@@ -162,7 +183,7 @@ interface LayoutContext {
|
|
|
162
183
|
bodyBackgroundColor: string;
|
|
163
184
|
}
|
|
164
185
|
declare const LayoutContext: React.Context<LayoutContext>;
|
|
165
|
-
declare function export_default$
|
|
186
|
+
declare function export_default$1s(props: LayoutProps): React.JSX.Element;
|
|
166
187
|
|
|
167
188
|
interface LoadingIndicatorProps {
|
|
168
189
|
variant?: "default" | "inline";
|
|
@@ -181,12 +202,14 @@ interface NavigationBarProps {
|
|
|
181
202
|
closeButtonText?: string;
|
|
182
203
|
backButtonText?: string;
|
|
183
204
|
className?: string;
|
|
184
|
-
variant?:
|
|
205
|
+
variant?: 'default' | 'compressed';
|
|
185
206
|
titleColor?: ColorDefinition;
|
|
186
207
|
subtitleColor?: ColorDefinition;
|
|
187
208
|
buttonColor?: ColorDefinition;
|
|
209
|
+
navigationBarLeft?: React.ReactNode;
|
|
210
|
+
navigationBarRight?: React.ReactNode;
|
|
188
211
|
}
|
|
189
|
-
declare function export_default$
|
|
212
|
+
declare function export_default$1r(props: NavigationBarProps): React.JSX.Element;
|
|
190
213
|
|
|
191
214
|
interface NotesInputProps {
|
|
192
215
|
autoTimestamp?: boolean;
|
|
@@ -194,7 +217,45 @@ interface NotesInputProps {
|
|
|
194
217
|
onChange(value: string): void;
|
|
195
218
|
value: string;
|
|
196
219
|
}
|
|
197
|
-
declare function export_default$
|
|
220
|
+
declare function export_default$1q(props: NotesInputProps): React.JSX.Element;
|
|
221
|
+
|
|
222
|
+
interface ProgressBarProps {
|
|
223
|
+
backgroundColor?: ColorDefinition;
|
|
224
|
+
borderColor?: ColorDefinition;
|
|
225
|
+
fillColor?: ColorDefinition;
|
|
226
|
+
fillPercent: number;
|
|
227
|
+
steps?: {
|
|
228
|
+
percent: number;
|
|
229
|
+
icon: ReactElement;
|
|
230
|
+
}[];
|
|
231
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
232
|
+
defaultMargin?: boolean;
|
|
233
|
+
}
|
|
234
|
+
declare function ProgressBar(props: ProgressBarProps): React.JSX.Element;
|
|
235
|
+
declare namespace ProgressBar {
|
|
236
|
+
var defaultProps: {
|
|
237
|
+
backgroundColor: string;
|
|
238
|
+
fillColor: string;
|
|
239
|
+
fillPercent: number;
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
interface ProgressBarStepProps {
|
|
244
|
+
borderColor?: ColorDefinition;
|
|
245
|
+
backgroundColor?: ColorDefinition;
|
|
246
|
+
children?: React.ReactNode;
|
|
247
|
+
height: string;
|
|
248
|
+
}
|
|
249
|
+
declare function ProgressBarStep(props: ProgressBarStepProps): React.JSX.Element;
|
|
250
|
+
|
|
251
|
+
interface ProgressRingProps {
|
|
252
|
+
children: React.ReactNode;
|
|
253
|
+
style?: CSSProperties;
|
|
254
|
+
color?: ColorDefinition;
|
|
255
|
+
percentCompleted?: number;
|
|
256
|
+
animate?: boolean;
|
|
257
|
+
}
|
|
258
|
+
declare function export_default$1p(props: ProgressRingProps): React.JSX.Element;
|
|
198
259
|
|
|
199
260
|
interface SectionProps {
|
|
200
261
|
children?: React.ReactNode;
|
|
@@ -236,9 +297,7 @@ interface SingleNotificationProps {
|
|
|
236
297
|
}
|
|
237
298
|
declare function export_default$1k(props: SingleNotificationProps): React.JSX.Element;
|
|
238
299
|
|
|
239
|
-
type SingleSurveyTaskPreviewState = 'hasBeenClicked';
|
|
240
300
|
interface SingleSurveyTaskProps {
|
|
241
|
-
previewState?: SingleSurveyTaskPreviewState;
|
|
242
301
|
task: SurveyTask;
|
|
243
302
|
descriptionIcon?: IconDefinition$1;
|
|
244
303
|
onClick: () => void;
|
|
@@ -320,6 +379,27 @@ interface UnstyledButtonProps {
|
|
|
320
379
|
}
|
|
321
380
|
declare function export_default$1d(props: UnstyledButtonProps): React.JSX.Element;
|
|
322
381
|
|
|
382
|
+
interface ValueSelectorProps {
|
|
383
|
+
title?: string;
|
|
384
|
+
titleColor?: ColorDefinition;
|
|
385
|
+
subtitle?: string;
|
|
386
|
+
subtitleColor?: ColorDefinition;
|
|
387
|
+
values: string[];
|
|
388
|
+
valueBackgroundColor?: ColorDefinition;
|
|
389
|
+
valueTextColor?: ColorDefinition;
|
|
390
|
+
checkboxColor?: ColorDefinition;
|
|
391
|
+
selectedValues?: string[];
|
|
392
|
+
selectedButtonBackgroundColor?: ColorDefinition;
|
|
393
|
+
selectedButtonTextColor?: ColorDefinition;
|
|
394
|
+
selectedCheckboxColor?: ColorDefinition;
|
|
395
|
+
onChange?: (selectedValues: string[]) => void;
|
|
396
|
+
variant?: 'default' | 'checkboxes';
|
|
397
|
+
multiSelect?: boolean;
|
|
398
|
+
preventEmptySelections?: boolean;
|
|
399
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
400
|
+
}
|
|
401
|
+
declare function export_default$1c(props: ValueSelectorProps): React.JSX.Element;
|
|
402
|
+
|
|
323
403
|
interface ViewHeaderProps {
|
|
324
404
|
title?: string;
|
|
325
405
|
subtitle?: string;
|
|
@@ -327,7 +407,7 @@ interface ViewHeaderProps {
|
|
|
327
407
|
subtitleColor?: ColorDefinition;
|
|
328
408
|
action?: React.ReactNode;
|
|
329
409
|
}
|
|
330
|
-
declare function export_default$
|
|
410
|
+
declare function export_default$1b(props: ViewHeaderProps): React.JSX.Element | null;
|
|
331
411
|
|
|
332
412
|
interface WeekCalendarProps {
|
|
333
413
|
selectedDate?: Date;
|
|
@@ -338,16 +418,7 @@ interface WeekCalendarProps {
|
|
|
338
418
|
onStartDateChange?(startDate: Date): void;
|
|
339
419
|
dayRenderer(year: number, month: number, day: number, selectedWeek: boolean): JSX.Element | null;
|
|
340
420
|
}
|
|
341
|
-
declare function export_default$
|
|
342
|
-
|
|
343
|
-
interface ProgressRingProps {
|
|
344
|
-
children: React.ReactNode;
|
|
345
|
-
style?: CSSProperties;
|
|
346
|
-
color?: ColorDefinition;
|
|
347
|
-
percentCompleted?: number;
|
|
348
|
-
animate?: boolean;
|
|
349
|
-
}
|
|
350
|
-
declare function export_default$1a(props: ProgressRingProps): React.JSX.Element;
|
|
421
|
+
declare function export_default$1a(props: WeekCalendarProps): React.JSX.Element;
|
|
351
422
|
|
|
352
423
|
interface TermInformation {
|
|
353
424
|
TermFamily: string;
|
|
@@ -448,6 +519,7 @@ declare enum DailyDataType {
|
|
|
448
519
|
AppleHealthStandMinutes = "AppleHealthStandMinutes",
|
|
449
520
|
AppleHealthSteps = "AppleHealthSteps",
|
|
450
521
|
AppleHealthWalkingHeartRateAverage = "AppleHealthWalkingHeartRateAverage",
|
|
522
|
+
AppleHealthActiveEnergyBurned = "AppleHealthActiveEnergyBurned",
|
|
451
523
|
FitbitSedentaryMinutes = "FitbitSedentaryMinutes",
|
|
452
524
|
FitbitActiveMinutes = "FitbitActiveMinutes",
|
|
453
525
|
FitbitLightlyActiveMinutes = "FitbitLightlyActiveMinutes",
|
|
@@ -472,6 +544,9 @@ declare enum DailyDataType {
|
|
|
472
544
|
GarminDistance = "GarminDistance",
|
|
473
545
|
GarminFloors = "GarminFloors",
|
|
474
546
|
GarminActiveMinutes = "GarminActiveMinutes",
|
|
547
|
+
GarminActiveCalories = "GarminActiveCalories",
|
|
548
|
+
GarminRestingCalories = "GarminRestingCalories",
|
|
549
|
+
GarminTotalCalories = "GarminTotalCalories",
|
|
475
550
|
GarminRestingHeartRate = "GarminRestingHeartRate",
|
|
476
551
|
GarminMinHeartRate = "GarminMinHeartRate",
|
|
477
552
|
GarminMaxHeartRate = "GarminMaxHeartRate",
|
|
@@ -1138,4 +1213,4 @@ declare function language(key: string): string;
|
|
|
1138
1213
|
|
|
1139
1214
|
declare function getDayKey(date: Date): string;
|
|
1140
1215
|
|
|
1141
|
-
export { export_default$
|
|
1216
|
+
export { export_default$1D as Action, export_default$1C as ActivityMeter, export_default$19 as AllergiesList, export_default$u as AllergiesView, export_default$18 as AppDownload, AreaChartOptions, BarChartOptions, export_default$t as BlankView, export_default$1B as Button, export_default$1A as Calendar, export_default$1z as CalendarDay, CalendarDayStateConfiguration, export_default$1y as Card, export_default$1x as CardTitle, export_default$g as CelebrationStep, export_default$f as CelebrationStepContainer, ColorDefinition, export_default$17 as ConditionsList, export_default$s as ConditionsView, export_default$e as ConnectDeviceAccountStep, export_default$d as ConnectDeviceAccountStepContainer, export_default$16 as ConnectDevicesMenu, export_default$15 as ConnectEhr, export_default$c as ConnectEhrStep, export_default$b as ConnectEhrStepContainer, export_default$r as ConnectEhrView, export_default$14 as ConnectFitbit, export_default$13 as ConnectGarmin, DailyDataAvailabilityCheck, DailyDataChart, DailyDataProvider, DailyDataQueryResult, DailyDataType, DailyLogEntry, DateRangeContext, DateRangeNavigatorContext as DateRangeCoordinator, export_default$1w as DateRangeNavigator, export_default$1v as DayTrackerSymbol, DeviceDataChartLine, export_default$12 as DeviceDataMonthChart, export_default$11 as DeviceDataMonthCharts, export_default$q as DeviceDataView, export_default$10 as ExternalAccountList, export_default$$ as ExternalAccountsLoadingIndicator, export_default$_ as ExternalAccountsPreview, export_default$p as ExternalAccountsView, export_default$1u as Face, export_default$Z as FitbitDevices, export_default$Y as FitbitMonthCharts, export_default$o as FitbitView, export_default$X as GarminDevices, export_default$W as GarminMonthCharts, export_default$n as GarminView, export_default$l as HealthAndWellnessView, export_default$V as HealthPreviewSection, export_default$1t as Histogram, export_default$m as HomeView, export_default$U as LabResultsSummary, export_default$1s as Layout, LayoutContext, LineChartOptions, LoadingIndicator, export_default$T as MedicationsList, export_default$k as MedicationsView, export_default$S as MostRecentNotification, export_default$1r as NavigationBar, NewPointsEntry, export_default$h as NewPointsView, NewPointsViewProps, export_default$1q as NotesInput, export_default$R as NotificationList, export_default$j as NotificationsView, export_default$Q as PlatformSpecificContent, ProgressBar, ProgressBarStep, export_default$1p as ProgressRing, export_default$P as ProjectHeader, export_default$O as ProjectSupport, export_default$N as ProviderSearch, export_default$M as RelativeActivityToday, export_default$L as RestingHeartRateCalendar, export_default$1o as Section, export_default$1n as SegmentedControl, export_default$1m as ShinyOverlay, export_default$1l as SingleExternalAccount, export_default$1k as SingleNotification, export_default$1j as SingleSurveyTask, export_default$1i as SparkBarChart, SparkBarChartBar, StatusBarBackgroundProps as StatusBarBackground, export_default$a as StepDetailText, export_default$8 as StepImage, export_default$9 as StepImageIcon, export_default$7 as StepLayout, export_default$6 as StepMarkdown, export_default$5 as StepNextButton, export_default$4 as StepText, export_default$3 as StepTitle, export_default$K as SurveyTaskList, export_default$i as SurveyTasksView, export_default$1h as Switch, SymptomConfiguration, SymptomReference, export_default$I as SymptomSharkCalendar, export_default$x as SymptomSharkCalendarView, SymptomSharkConfiguration, SymptomSharkDataService, export_default$G as SymptomSharkLogEntry, export_default$z as SymptomSharkLogEntryEdit, export_default$w as SymptomSharkLogEntryEditView, export_default$B as SymptomSharkLogEntryList, export_default$A as SymptomSharkLogToday, export_default$H as SymptomSharkOverallExperienceChart, export_default$v as SymptomSharkSymptomDetailView, export_default$D as SymptomSharkSymptomSeverityChart, export_default$E as SymptomSharkSymptomSeveritySummary, export_default$C as SymptomSharkSymptomTreatmentFilters, export_default$F as SymptomSharkSymptomTreatmentHistograms, export_default$y as SymptomSharkVisualizationCoordinator, export_default$1g as TextBlock, export_default$1f as Title, export_default$1e as TrackerItem, TreatmentConfiguration, TreatmentReference, export_default$1d as UnstyledButton, export_default$1c as ValueSelector, export_default$J as ViewEhr, export_default$1b as ViewHeader, export_default$1a as WeekCalendar, WeekStartsOn, export_default$2 as YouTubeStep, export_default$1 as YouTubeStepContainer, checkDailyDataAvailability, convertToSymptomSharkConfiguration, getDayKey, getMonthStart, getWeekStart, language, queryDailyData, registerDailyDataProvider, resolveColor, showNewPoints, export_default as useInterval };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@careevolution/mydatahelps-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "MyDataHelps UI Library",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@rollup/plugin-image": "^3.0.2",
|
|
36
36
|
"@rollup/plugin-json": "^6.0.0",
|
|
37
37
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
38
|
-
"@rollup/plugin-typescript": "
|
|
38
|
+
"@rollup/plugin-typescript": "11.1.5",
|
|
39
39
|
"@storybook/addon-actions": "^7.0.12",
|
|
40
40
|
"@storybook/addon-essentials": "^7.0.12",
|
|
41
41
|
"@storybook/addon-interactions": "^7.0.12",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
66
66
|
"@types/lodash": "^4.14.195",
|
|
67
67
|
"date-fns": "^2.28.0",
|
|
68
|
-
"html-react-parser": "^
|
|
68
|
+
"html-react-parser": "^5.0.7",
|
|
69
69
|
"lodash": "^4.17.21",
|
|
70
70
|
"markdown-it": "^13.0.1",
|
|
71
71
|
"react-feather": "^2.0.9",
|