@careevolution/mydatahelps-ui 2.4.1-Points.0 → 2.4.1-Points.2

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.
@@ -23,4 +23,3 @@ export { default as ProviderSearch } from "./ProviderSearch";
23
23
  export { default as RelativeActivityToday } from "./RelativeActivityToday";
24
24
  export { default as RestingHeartRateCalendar } from "./RestingHeartRateCalendar";
25
25
  export { default as SurveyTaskList } from "./SurveyTaskList";
26
- export { default as NewPoints, NewPointsProps, NewPointsEntry } from "./NewPoints";
@@ -1,8 +1,20 @@
1
1
  import React from 'react';
2
- import { NewPointsProps } from "../../container/NewPoints/NewPoints";
2
+ import './NewPointsView.css';
3
+ export interface NewPointsEntry {
4
+ name: string;
5
+ points: number;
6
+ bonusPoints?: number;
7
+ message?: {
8
+ title: string;
9
+ text: string;
10
+ };
11
+ }
3
12
  export interface NewPointsViewProps {
4
- newPointsProps: NewPointsProps;
13
+ entries: NewPointsEntry[];
14
+ pointsToNextReward?: number;
5
15
  colorScheme?: 'auto' | 'light' | 'dark';
6
16
  primaryColor?: string;
17
+ doneButtonText?: string;
7
18
  }
8
19
  export default function (props: NewPointsViewProps): React.JSX.Element;
20
+ export declare function showNewPoints(props: NewPointsViewProps, url?: string): void;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import NewPointsView, { NewPointsViewProps } from './NewPointsView';
3
- import { NewPointsProps } from "../../container/NewPoints/NewPoints";
4
3
  declare const _default: {
5
4
  title: string;
6
5
  component: typeof NewPointsView;
@@ -9,32 +8,184 @@ declare const _default: {
9
8
  };
10
9
  };
11
10
  export default _default;
12
- export declare const Default: {
11
+ export declare const Single: {
13
12
  args: {
14
- newPointsProps: NewPointsProps;
13
+ entries: {
14
+ name: string;
15
+ points: number;
16
+ message: {
17
+ title: string;
18
+ text: string;
19
+ };
20
+ }[];
21
+ };
22
+ render: (args: NewPointsViewProps) => React.JSX.Element;
23
+ };
24
+ export declare const SingleWithBonus: {
25
+ args: {
26
+ entries: {
27
+ name: string;
28
+ points: number;
29
+ bonusPoints: number;
30
+ message: {
31
+ title: string;
32
+ text: string;
33
+ };
34
+ }[];
35
+ };
36
+ render: (args: NewPointsViewProps) => React.JSX.Element;
37
+ };
38
+ export declare const SingleWithNextReward: {
39
+ args: {
40
+ entries: {
41
+ name: string;
42
+ points: number;
43
+ message: {
44
+ title: string;
45
+ text: string;
46
+ };
47
+ }[];
48
+ pointsToNextReward: number;
49
+ };
50
+ render: (args: NewPointsViewProps) => React.JSX.Element;
51
+ };
52
+ export declare const SingleWithBonusAndNextReward: {
53
+ args: {
54
+ entries: {
55
+ name: string;
56
+ points: number;
57
+ bonusPoints: number;
58
+ message: {
59
+ title: string;
60
+ text: string;
61
+ };
62
+ }[];
63
+ pointsToNextReward: number;
64
+ };
65
+ render: (args: NewPointsViewProps) => React.JSX.Element;
66
+ };
67
+ export declare const Multi: {
68
+ args: {
69
+ entries: {
70
+ name: string;
71
+ points: number;
72
+ message: {
73
+ title: string;
74
+ text: string;
75
+ };
76
+ }[];
77
+ };
78
+ render: (args: NewPointsViewProps) => React.JSX.Element;
79
+ };
80
+ export declare const MultiWithBonus: {
81
+ args: {
82
+ entries: {
83
+ name: string;
84
+ points: number;
85
+ bonusPoints: number;
86
+ message: {
87
+ title: string;
88
+ text: string;
89
+ };
90
+ }[];
91
+ };
92
+ render: (args: NewPointsViewProps) => React.JSX.Element;
93
+ };
94
+ export declare const MultiWithNextReward: {
95
+ args: {
96
+ entries: {
97
+ name: string;
98
+ points: number;
99
+ message: {
100
+ title: string;
101
+ text: string;
102
+ };
103
+ }[];
104
+ pointsToNextReward: number;
105
+ };
106
+ render: (args: NewPointsViewProps) => React.JSX.Element;
107
+ };
108
+ export declare const MultiWithBonusAndNextReward: {
109
+ args: {
110
+ entries: ({
111
+ name: string;
112
+ points: number;
113
+ message: {
114
+ title: string;
115
+ text: string;
116
+ };
117
+ bonusPoints?: undefined;
118
+ } | {
119
+ name: string;
120
+ points: number;
121
+ bonusPoints: number;
122
+ message: {
123
+ title: string;
124
+ text: string;
125
+ };
126
+ })[];
127
+ pointsToNextReward: number;
15
128
  };
16
129
  render: (args: NewPointsViewProps) => React.JSX.Element;
17
130
  };
18
131
  export declare const DifferentButtonText: {
19
132
  args: {
20
- newPointsProps: {
21
- doneButtonText: string;
22
- entries: import("../../container/NewPoints/NewPoints").NewPointsEntry[];
23
- pointsToNextReward?: number | undefined;
24
- };
133
+ entries: {
134
+ name: string;
135
+ points: number;
136
+ message: {
137
+ title: string;
138
+ text: string;
139
+ };
140
+ }[];
141
+ doneButtonText: string;
25
142
  };
26
143
  render: (args: NewPointsViewProps) => React.JSX.Element;
27
144
  };
28
145
  export declare const DifferentColor: {
29
146
  args: {
30
- newPointsProps: NewPointsProps;
147
+ entries: ({
148
+ name: string;
149
+ points: number;
150
+ bonusPoints: number;
151
+ message: {
152
+ title: string;
153
+ text: string;
154
+ };
155
+ } | {
156
+ name: string;
157
+ points: number;
158
+ message: {
159
+ title: string;
160
+ text: string;
161
+ };
162
+ bonusPoints?: undefined;
163
+ })[];
164
+ pointsToNextReward: number;
31
165
  primaryColor: string;
32
166
  };
33
167
  render: (args: NewPointsViewProps) => React.JSX.Element;
34
168
  };
35
169
  export declare const DarkMode: {
36
170
  args: {
37
- newPointsProps: NewPointsProps;
171
+ entries: ({
172
+ name: string;
173
+ points: number;
174
+ bonusPoints: number;
175
+ message: {
176
+ title: string;
177
+ text: string;
178
+ };
179
+ } | {
180
+ name: string;
181
+ points: number;
182
+ message: {
183
+ title: string;
184
+ text: string;
185
+ };
186
+ bonusPoints?: undefined;
187
+ })[];
188
+ pointsToNextReward: number;
38
189
  colorScheme: string;
39
190
  };
40
191
  render: (args: NewPointsViewProps) => React.JSX.Element;
@@ -1 +1 @@
1
- export { default, NewPointsViewProps } from './NewPointsView';
1
+ export { default, NewPointsViewProps, NewPointsEntry, showNewPoints } from './NewPointsView';
@@ -4,4 +4,3 @@ export * from './helpers/query-daily-data';
4
4
  export * from './helpers/language';
5
5
  export { default as getDayKey } from './helpers/get-day-key';
6
6
  export * from './helpers/get-interval-start';
7
- export * from './helpers/new-points';