@careevolution/mydatahelps-ui 1.3.6 → 1.3.7
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 +7 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/presentational/Face/Face.d.ts +9 -0
- package/dist/cjs/types/components/presentational/Face/Face.stories.d.ts +5 -0
- package/dist/cjs/types/components/presentational/Face/index.d.ts +1 -0
- package/dist/cjs/types/components/presentational/NavigationBar/NavigationBar.d.ts +2 -0
- package/dist/cjs/types/components/presentational/NavigationBar/NavigationBar.stories.d.ts +1 -0
- package/dist/cjs/types/components/presentational/Switch/Switch.d.ts +8 -0
- package/dist/cjs/types/components/presentational/Switch/Switch.stories.d.ts +5 -0
- package/dist/cjs/types/components/presentational/Switch/index.d.ts +1 -0
- package/dist/cjs/types/components/presentational/index.d.ts +2 -0
- package/dist/esm/index.js +8 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/presentational/Face/Face.d.ts +9 -0
- package/dist/esm/types/components/presentational/Face/Face.stories.d.ts +5 -0
- package/dist/esm/types/components/presentational/Face/index.d.ts +1 -0
- package/dist/esm/types/components/presentational/NavigationBar/NavigationBar.d.ts +2 -0
- package/dist/esm/types/components/presentational/NavigationBar/NavigationBar.stories.d.ts +1 -0
- package/dist/esm/types/components/presentational/Switch/Switch.d.ts +8 -0
- package/dist/esm/types/components/presentational/Switch/Switch.stories.d.ts +5 -0
- package/dist/esm/types/components/presentational/Switch/index.d.ts +1 -0
- package/dist/esm/types/components/presentational/index.d.ts +2 -0
- package/dist/index.d.ts +35 -18
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Face";
|
|
@@ -4,4 +4,5 @@ declare const _default: ComponentMeta<typeof NavigationBar>;
|
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Drilldown: ComponentStory<typeof NavigationBar>;
|
|
6
6
|
export declare const Modal: ComponentStory<typeof NavigationBar>;
|
|
7
|
+
export declare const CustomButtons: ComponentStory<typeof NavigationBar>;
|
|
7
8
|
export declare const WithDateRangeNavigator: ComponentStory<typeof NavigationBar>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Switch";
|
|
@@ -5,6 +5,7 @@ export { default as Card } from "./Card";
|
|
|
5
5
|
export { default as CardTitle } from "./CardTitle";
|
|
6
6
|
export { default as DateRangeNavigator } from "./DateRangeNavigator";
|
|
7
7
|
export { default as DayTrackerSymbol } from "./DayTrackerSymbol";
|
|
8
|
+
export { default as Face } from "./Face";
|
|
8
9
|
export { default as Histogram } from "./Histogram";
|
|
9
10
|
export { default as Layout } from "./Layout";
|
|
10
11
|
export { default as LoadingIndicator } from "./LoadingIndicator";
|
|
@@ -15,6 +16,7 @@ export { default as ShinyOverlay } from "./ShinyOverlay";
|
|
|
15
16
|
export { default as SingleExternalAccount } from "./SingleExternalAccount";
|
|
16
17
|
export { default as SingleNotification } from "./SingleNotification";
|
|
17
18
|
export { default as SingleSurveyTask } from "./SingleSurveyTask";
|
|
19
|
+
export { default as Switch } from "./Switch";
|
|
18
20
|
export { default as StatusBarBackground } from "./StatusBarBackground";
|
|
19
21
|
export { default as TextBlock } from "./TextBlock";
|
|
20
22
|
export { default as TrackerItem } from "./TrackerItem";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import React, { MouseEventHandler } from 'react';
|
|
3
3
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
4
4
|
import { StatusBarStyle, ExternalAccount, Notification, SurveyTask, ExternalAccountStatus, DeviceDataNamespace, NotificationType, SurveyTaskStatus } from '@careevolution/mydatahelps-js';
|
|
5
5
|
import { IconDefinition as IconDefinition$1 } from '@fortawesome/fontawesome-common-types';
|
|
@@ -12,7 +12,7 @@ interface ActionProps {
|
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
className?: string;
|
|
14
14
|
}
|
|
15
|
-
declare function export_default$
|
|
15
|
+
declare function export_default$G(props: ActionProps): JSX.Element;
|
|
16
16
|
|
|
17
17
|
interface ButtonProps {
|
|
18
18
|
children?: React.ReactNode;
|
|
@@ -23,41 +23,49 @@ interface ButtonProps {
|
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
onClick: Function;
|
|
25
25
|
}
|
|
26
|
-
declare function export_default$
|
|
26
|
+
declare function export_default$F(props: ButtonProps): JSX.Element;
|
|
27
27
|
|
|
28
28
|
interface CalendarProps {
|
|
29
29
|
month: number;
|
|
30
30
|
year: number;
|
|
31
31
|
dayRenderer(year: number, month: number, day?: number): JSX.Element | null;
|
|
32
32
|
}
|
|
33
|
-
declare function export_default$
|
|
33
|
+
declare function export_default$E(props: CalendarProps): JSX.Element;
|
|
34
34
|
|
|
35
35
|
interface CardProps {
|
|
36
36
|
className?: string;
|
|
37
37
|
children?: React.ReactNode;
|
|
38
38
|
allowOverflow?: boolean;
|
|
39
39
|
}
|
|
40
|
-
declare function export_default$
|
|
40
|
+
declare function export_default$D(props: CardProps): JSX.Element | null;
|
|
41
41
|
|
|
42
42
|
interface CardTitleProps {
|
|
43
43
|
title: string;
|
|
44
44
|
onDetailClick?: Function;
|
|
45
45
|
detailLinkText?: string;
|
|
46
46
|
}
|
|
47
|
-
declare function export_default$
|
|
47
|
+
declare function export_default$C(props: CardTitleProps): JSX.Element;
|
|
48
48
|
|
|
49
49
|
interface DateRangeNavigatorProps {
|
|
50
50
|
intervalType: "Week" | "Month";
|
|
51
51
|
intervalStart: Date;
|
|
52
52
|
onIntervalChange(newIntervalStart: Date, newIntervalEnd: Date): void;
|
|
53
53
|
}
|
|
54
|
-
declare function export_default$
|
|
54
|
+
declare function export_default$B(props: DateRangeNavigatorProps): JSX.Element;
|
|
55
55
|
|
|
56
56
|
interface DayTrackerSymbolProps {
|
|
57
57
|
primaryColors: string[];
|
|
58
58
|
secondaryColors: string[];
|
|
59
59
|
}
|
|
60
|
-
declare function export_default$
|
|
60
|
+
declare function export_default$A(props: DayTrackerSymbolProps): JSX.Element;
|
|
61
|
+
|
|
62
|
+
interface FaceProps {
|
|
63
|
+
faceValue?: number;
|
|
64
|
+
selected?: boolean;
|
|
65
|
+
onClick?: MouseEventHandler;
|
|
66
|
+
className?: string;
|
|
67
|
+
}
|
|
68
|
+
declare function export_default$z(props: FaceProps): JSX.Element;
|
|
61
69
|
|
|
62
70
|
interface HistogramProps {
|
|
63
71
|
entries: {
|
|
@@ -66,7 +74,7 @@ interface HistogramProps {
|
|
|
66
74
|
value: number;
|
|
67
75
|
}[];
|
|
68
76
|
}
|
|
69
|
-
declare function export_default$
|
|
77
|
+
declare function export_default$y(props: HistogramProps): JSX.Element;
|
|
70
78
|
|
|
71
79
|
interface LayoutProps {
|
|
72
80
|
children?: React.ReactNode;
|
|
@@ -74,7 +82,7 @@ interface LayoutProps {
|
|
|
74
82
|
bodyBackgroundColor?: string;
|
|
75
83
|
statusBarStyle?: StatusBarStyle;
|
|
76
84
|
}
|
|
77
|
-
declare function export_default$
|
|
85
|
+
declare function export_default$x(props: LayoutProps): JSX.Element;
|
|
78
86
|
|
|
79
87
|
declare function LoadingIndicator(): JSX.Element;
|
|
80
88
|
|
|
@@ -83,13 +91,15 @@ interface NavigationBarProps {
|
|
|
83
91
|
showBackButton?: boolean;
|
|
84
92
|
showCloseButton?: boolean;
|
|
85
93
|
children?: React.ReactNode;
|
|
94
|
+
closeButtonText?: string;
|
|
95
|
+
backButtonText?: string;
|
|
86
96
|
}
|
|
87
|
-
declare function export_default$
|
|
97
|
+
declare function export_default$w(props: NavigationBarProps): JSX.Element;
|
|
88
98
|
|
|
89
99
|
interface SectionProps {
|
|
90
100
|
children?: React.ReactNode;
|
|
91
101
|
}
|
|
92
|
-
declare function export_default$
|
|
102
|
+
declare function export_default$v(props: SectionProps): JSX.Element | null;
|
|
93
103
|
|
|
94
104
|
interface SegmentedControlProps {
|
|
95
105
|
segments: {
|
|
@@ -99,21 +109,21 @@ interface SegmentedControlProps {
|
|
|
99
109
|
selectedSegment: string;
|
|
100
110
|
onSegmentSelected: Function;
|
|
101
111
|
}
|
|
102
|
-
declare function export_default$
|
|
112
|
+
declare function export_default$u(props: SegmentedControlProps): JSX.Element;
|
|
103
113
|
|
|
104
|
-
declare function export_default$
|
|
114
|
+
declare function export_default$t(): JSX.Element;
|
|
105
115
|
|
|
106
116
|
interface SingleExternalAccountProps {
|
|
107
117
|
externalAccount: ExternalAccount;
|
|
108
118
|
onAccountRemoved: (account: ExternalAccount) => void;
|
|
109
119
|
onReconnectAccount: (account: ExternalAccount) => void;
|
|
110
120
|
}
|
|
111
|
-
declare function export_default$
|
|
121
|
+
declare function export_default$s(props: SingleExternalAccountProps): JSX.Element;
|
|
112
122
|
|
|
113
123
|
interface SingleNotificationProps {
|
|
114
124
|
notification: Notification;
|
|
115
125
|
}
|
|
116
|
-
declare function export_default$
|
|
126
|
+
declare function export_default$r(props: SingleNotificationProps): JSX.Element;
|
|
117
127
|
|
|
118
128
|
interface SingleSurveyTaskProps {
|
|
119
129
|
task: SurveyTask;
|
|
@@ -121,7 +131,14 @@ interface SingleSurveyTaskProps {
|
|
|
121
131
|
hideDueDate?: boolean;
|
|
122
132
|
disableClick?: boolean;
|
|
123
133
|
}
|
|
124
|
-
declare function export_default$
|
|
134
|
+
declare function export_default$q(props: SingleSurveyTaskProps): JSX.Element | null;
|
|
135
|
+
|
|
136
|
+
interface SwitchProps {
|
|
137
|
+
isOn: Boolean;
|
|
138
|
+
onBackgroundColor?: string;
|
|
139
|
+
onValueChanged(value: boolean): void;
|
|
140
|
+
}
|
|
141
|
+
declare function export_default$p(props: SwitchProps): JSX.Element;
|
|
125
142
|
|
|
126
143
|
interface StatusBarBackgroundProps {
|
|
127
144
|
color?: string;
|
|
@@ -339,4 +356,4 @@ declare function export_default$1(props: SurveyTasksViewProps): JSX.Element;
|
|
|
339
356
|
|
|
340
357
|
declare function export_default(callback: Function, delay: number | null): void;
|
|
341
358
|
|
|
342
|
-
export { export_default$
|
|
359
|
+
export { export_default$G as Action, export_default$F as Button, export_default$E as Calendar, export_default$D as Card, export_default$C as CardTitle, export_default$m as ConnectEhr, export_default$7 as ConnectEhrView, export_default$l as ConnectFitbit, export_default$B as DateRangeNavigator, export_default$A as DayTrackerSymbol, export_default$k as DeviceDataMonthChart, export_default$j as DeviceDataMonthCharts, export_default$6 as DeviceDataView, export_default$i as ExternalAccountList, export_default$h as ExternalAccountsPreview, export_default$5 as ExternalAccountsView, export_default$z as Face, export_default$g as FitbitDevices, export_default$f as FitbitMonthCharts, export_default$4 as FitbitView, export_default$y as Histogram, export_default$3 as HomeView, export_default$x as Layout, LoadingIndicator, export_default$e as MostRecentNotification, export_default$w as NavigationBar, export_default$d as NotificationList, export_default$2 as NotificationsView, export_default$c as PlatformSpecificContent, export_default$b as ProjectHeader, export_default$a as ProjectSupport, export_default$9 as ProviderSearch, export_default$9 as RestingHeartRateCalendar, export_default$v as Section, export_default$u as SegmentedControl, export_default$t as ShinyOverlay, export_default$s as SingleExternalAccount, export_default$r as SingleNotification, export_default$q as SingleSurveyTask, StatusBarBackgroundProps as StatusBarBackground, export_default$8 as SurveyTaskList, export_default$1 as SurveyTasksView, export_default$p as Switch, export_default$o as TextBlock, export_default$n as TrackerItem, export_default as useInterval };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@careevolution/mydatahelps-ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "MyDataHelps UI Library",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@babel/core": "^7.17.5",
|
|
27
27
|
"@rollup/plugin-commonjs": "^21.0.2",
|
|
28
|
+
"@rollup/plugin-image": "^2.1.1",
|
|
28
29
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
29
30
|
"@rollup/plugin-typescript": "^8.3.1",
|
|
30
31
|
"@storybook/addon-actions": "^6.4.19",
|