@careevolution/mydatahelps-ui 2.9.1-Issue139.5 → 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,18 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import './CalendarDay.css';
|
|
3
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
4
|
+
export type CalendarDayStateConfiguration = Record<string, {
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
streak?: boolean;
|
|
7
|
+
streakColor?: ColorDefinition;
|
|
8
|
+
}>;
|
|
9
|
+
export interface CalendarDayProps {
|
|
10
|
+
year: number;
|
|
11
|
+
month: number;
|
|
12
|
+
day?: number;
|
|
13
|
+
stateConfiguration: CalendarDayStateConfiguration;
|
|
14
|
+
computeStateForDay: (date: Date) => string;
|
|
15
|
+
onClick?: (date: Date) => void;
|
|
16
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
17
|
+
}
|
|
18
|
+
export default function (props: CalendarDayProps): React.JSX.Element;
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import CalendarDay, { CalendarDayProps } from './CalendarDay';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof CalendarDay;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const NoDay: {
|
|
12
|
+
args: {
|
|
13
|
+
day: undefined;
|
|
14
|
+
year: number;
|
|
15
|
+
month: number;
|
|
16
|
+
stateConfiguration: {
|
|
17
|
+
state1: {
|
|
18
|
+
style: {
|
|
19
|
+
background: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
state2: {
|
|
23
|
+
style: {
|
|
24
|
+
background: string;
|
|
25
|
+
};
|
|
26
|
+
streak: boolean;
|
|
27
|
+
};
|
|
28
|
+
state3: {
|
|
29
|
+
style: {
|
|
30
|
+
background: string;
|
|
31
|
+
};
|
|
32
|
+
streak: boolean;
|
|
33
|
+
streakColor: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
onClick: () => void;
|
|
37
|
+
};
|
|
38
|
+
render: (args: CalendarDayProps) => React.JSX.Element;
|
|
39
|
+
};
|
|
40
|
+
export declare const Default: {
|
|
41
|
+
args: {
|
|
42
|
+
computeStateForDay: (date: Date) => string;
|
|
43
|
+
year: number;
|
|
44
|
+
month: number;
|
|
45
|
+
day: number;
|
|
46
|
+
stateConfiguration: {
|
|
47
|
+
state1: {
|
|
48
|
+
style: {
|
|
49
|
+
background: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
state2: {
|
|
53
|
+
style: {
|
|
54
|
+
background: string;
|
|
55
|
+
};
|
|
56
|
+
streak: boolean;
|
|
57
|
+
};
|
|
58
|
+
state3: {
|
|
59
|
+
style: {
|
|
60
|
+
background: string;
|
|
61
|
+
};
|
|
62
|
+
streak: boolean;
|
|
63
|
+
streakColor: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
onClick: () => void;
|
|
67
|
+
};
|
|
68
|
+
render: (args: CalendarDayProps) => React.JSX.Element;
|
|
69
|
+
};
|
|
70
|
+
export declare const Today: {
|
|
71
|
+
args: {
|
|
72
|
+
year: number;
|
|
73
|
+
month: number;
|
|
74
|
+
day: number;
|
|
75
|
+
computeStateForDay: (date: Date) => string;
|
|
76
|
+
stateConfiguration: {
|
|
77
|
+
state1: {
|
|
78
|
+
style: {
|
|
79
|
+
background: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
state2: {
|
|
83
|
+
style: {
|
|
84
|
+
background: string;
|
|
85
|
+
};
|
|
86
|
+
streak: boolean;
|
|
87
|
+
};
|
|
88
|
+
state3: {
|
|
89
|
+
style: {
|
|
90
|
+
background: string;
|
|
91
|
+
};
|
|
92
|
+
streak: boolean;
|
|
93
|
+
streakColor: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
onClick: () => void;
|
|
97
|
+
};
|
|
98
|
+
render: (args: CalendarDayProps) => React.JSX.Element;
|
|
99
|
+
};
|
|
100
|
+
export declare const Future: {
|
|
101
|
+
args: {
|
|
102
|
+
year: number;
|
|
103
|
+
month: number;
|
|
104
|
+
day: number;
|
|
105
|
+
computeStateForDay: (date: Date) => string;
|
|
106
|
+
stateConfiguration: {
|
|
107
|
+
state1: {
|
|
108
|
+
style: {
|
|
109
|
+
background: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
state2: {
|
|
113
|
+
style: {
|
|
114
|
+
background: string;
|
|
115
|
+
};
|
|
116
|
+
streak: boolean;
|
|
117
|
+
};
|
|
118
|
+
state3: {
|
|
119
|
+
style: {
|
|
120
|
+
background: string;
|
|
121
|
+
};
|
|
122
|
+
streak: boolean;
|
|
123
|
+
streakColor: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
onClick: () => void;
|
|
127
|
+
};
|
|
128
|
+
render: (args: CalendarDayProps) => React.JSX.Element;
|
|
129
|
+
};
|
|
130
|
+
export declare const StreakLeftNotSupported: {
|
|
131
|
+
args: {
|
|
132
|
+
computeStateForDay: (date: Date) => string;
|
|
133
|
+
year: number;
|
|
134
|
+
month: number;
|
|
135
|
+
day: number;
|
|
136
|
+
stateConfiguration: {
|
|
137
|
+
state1: {
|
|
138
|
+
style: {
|
|
139
|
+
background: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
state2: {
|
|
143
|
+
style: {
|
|
144
|
+
background: string;
|
|
145
|
+
};
|
|
146
|
+
streak: boolean;
|
|
147
|
+
};
|
|
148
|
+
state3: {
|
|
149
|
+
style: {
|
|
150
|
+
background: string;
|
|
151
|
+
};
|
|
152
|
+
streak: boolean;
|
|
153
|
+
streakColor: string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
onClick: () => void;
|
|
157
|
+
};
|
|
158
|
+
render: (args: CalendarDayProps) => React.JSX.Element;
|
|
159
|
+
};
|
|
160
|
+
export declare const StreakLeftDefaultColor: {
|
|
161
|
+
args: {
|
|
162
|
+
computeStateForDay: (date: Date) => string;
|
|
163
|
+
year: number;
|
|
164
|
+
month: number;
|
|
165
|
+
day: number;
|
|
166
|
+
stateConfiguration: {
|
|
167
|
+
state1: {
|
|
168
|
+
style: {
|
|
169
|
+
background: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
state2: {
|
|
173
|
+
style: {
|
|
174
|
+
background: string;
|
|
175
|
+
};
|
|
176
|
+
streak: boolean;
|
|
177
|
+
};
|
|
178
|
+
state3: {
|
|
179
|
+
style: {
|
|
180
|
+
background: string;
|
|
181
|
+
};
|
|
182
|
+
streak: boolean;
|
|
183
|
+
streakColor: string;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
onClick: () => void;
|
|
187
|
+
};
|
|
188
|
+
render: (args: CalendarDayProps) => React.JSX.Element;
|
|
189
|
+
};
|
|
190
|
+
export declare const StreakLeftCustomColor: {
|
|
191
|
+
args: {
|
|
192
|
+
computeStateForDay: (date: Date) => string;
|
|
193
|
+
year: number;
|
|
194
|
+
month: number;
|
|
195
|
+
day: number;
|
|
196
|
+
stateConfiguration: {
|
|
197
|
+
state1: {
|
|
198
|
+
style: {
|
|
199
|
+
background: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
state2: {
|
|
203
|
+
style: {
|
|
204
|
+
background: string;
|
|
205
|
+
};
|
|
206
|
+
streak: boolean;
|
|
207
|
+
};
|
|
208
|
+
state3: {
|
|
209
|
+
style: {
|
|
210
|
+
background: string;
|
|
211
|
+
};
|
|
212
|
+
streak: boolean;
|
|
213
|
+
streakColor: string;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
onClick: () => void;
|
|
217
|
+
};
|
|
218
|
+
render: (args: CalendarDayProps) => React.JSX.Element;
|
|
219
|
+
};
|
|
220
|
+
export declare const StreakRightNotSupported: {
|
|
221
|
+
args: {
|
|
222
|
+
computeStateForDay: (date: Date) => string;
|
|
223
|
+
year: number;
|
|
224
|
+
month: number;
|
|
225
|
+
day: number;
|
|
226
|
+
stateConfiguration: {
|
|
227
|
+
state1: {
|
|
228
|
+
style: {
|
|
229
|
+
background: string;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
state2: {
|
|
233
|
+
style: {
|
|
234
|
+
background: string;
|
|
235
|
+
};
|
|
236
|
+
streak: boolean;
|
|
237
|
+
};
|
|
238
|
+
state3: {
|
|
239
|
+
style: {
|
|
240
|
+
background: string;
|
|
241
|
+
};
|
|
242
|
+
streak: boolean;
|
|
243
|
+
streakColor: string;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
onClick: () => void;
|
|
247
|
+
};
|
|
248
|
+
render: (args: CalendarDayProps) => React.JSX.Element;
|
|
249
|
+
};
|
|
250
|
+
export declare const StreakRightDefaultColor: {
|
|
251
|
+
args: {
|
|
252
|
+
computeStateForDay: (date: Date) => string;
|
|
253
|
+
year: number;
|
|
254
|
+
month: number;
|
|
255
|
+
day: number;
|
|
256
|
+
stateConfiguration: {
|
|
257
|
+
state1: {
|
|
258
|
+
style: {
|
|
259
|
+
background: string;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
state2: {
|
|
263
|
+
style: {
|
|
264
|
+
background: string;
|
|
265
|
+
};
|
|
266
|
+
streak: boolean;
|
|
267
|
+
};
|
|
268
|
+
state3: {
|
|
269
|
+
style: {
|
|
270
|
+
background: string;
|
|
271
|
+
};
|
|
272
|
+
streak: boolean;
|
|
273
|
+
streakColor: string;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
onClick: () => void;
|
|
277
|
+
};
|
|
278
|
+
render: (args: CalendarDayProps) => React.JSX.Element;
|
|
279
|
+
};
|
|
280
|
+
export declare const StreakRightCustomColor: {
|
|
281
|
+
args: {
|
|
282
|
+
computeStateForDay: (date: Date) => string;
|
|
283
|
+
year: number;
|
|
284
|
+
month: number;
|
|
285
|
+
day: number;
|
|
286
|
+
stateConfiguration: {
|
|
287
|
+
state1: {
|
|
288
|
+
style: {
|
|
289
|
+
background: string;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
state2: {
|
|
293
|
+
style: {
|
|
294
|
+
background: string;
|
|
295
|
+
};
|
|
296
|
+
streak: boolean;
|
|
297
|
+
};
|
|
298
|
+
state3: {
|
|
299
|
+
style: {
|
|
300
|
+
background: string;
|
|
301
|
+
};
|
|
302
|
+
streak: boolean;
|
|
303
|
+
streakColor: string;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
onClick: () => void;
|
|
307
|
+
};
|
|
308
|
+
render: (args: CalendarDayProps) => React.JSX.Element;
|
|
309
|
+
};
|
|
310
|
+
export declare const StreakBothNotSupported: {
|
|
311
|
+
args: {
|
|
312
|
+
computeStateForDay: (date: Date) => string;
|
|
313
|
+
year: number;
|
|
314
|
+
month: number;
|
|
315
|
+
day: number;
|
|
316
|
+
stateConfiguration: {
|
|
317
|
+
state1: {
|
|
318
|
+
style: {
|
|
319
|
+
background: string;
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
state2: {
|
|
323
|
+
style: {
|
|
324
|
+
background: string;
|
|
325
|
+
};
|
|
326
|
+
streak: boolean;
|
|
327
|
+
};
|
|
328
|
+
state3: {
|
|
329
|
+
style: {
|
|
330
|
+
background: string;
|
|
331
|
+
};
|
|
332
|
+
streak: boolean;
|
|
333
|
+
streakColor: string;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
onClick: () => void;
|
|
337
|
+
};
|
|
338
|
+
render: (args: CalendarDayProps) => React.JSX.Element;
|
|
339
|
+
};
|
|
340
|
+
export declare const StreakBothDefaultColor: {
|
|
341
|
+
args: {
|
|
342
|
+
computeStateForDay: (date: Date) => string;
|
|
343
|
+
year: number;
|
|
344
|
+
month: number;
|
|
345
|
+
day: number;
|
|
346
|
+
stateConfiguration: {
|
|
347
|
+
state1: {
|
|
348
|
+
style: {
|
|
349
|
+
background: string;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
state2: {
|
|
353
|
+
style: {
|
|
354
|
+
background: string;
|
|
355
|
+
};
|
|
356
|
+
streak: boolean;
|
|
357
|
+
};
|
|
358
|
+
state3: {
|
|
359
|
+
style: {
|
|
360
|
+
background: string;
|
|
361
|
+
};
|
|
362
|
+
streak: boolean;
|
|
363
|
+
streakColor: string;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
onClick: () => void;
|
|
367
|
+
};
|
|
368
|
+
render: (args: CalendarDayProps) => React.JSX.Element;
|
|
369
|
+
};
|
|
370
|
+
export declare const StreakBothCustomColor: {
|
|
371
|
+
args: {
|
|
372
|
+
computeStateForDay: (date: Date) => string;
|
|
373
|
+
year: number;
|
|
374
|
+
month: number;
|
|
375
|
+
day: number;
|
|
376
|
+
stateConfiguration: {
|
|
377
|
+
state1: {
|
|
378
|
+
style: {
|
|
379
|
+
background: string;
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
state2: {
|
|
383
|
+
style: {
|
|
384
|
+
background: string;
|
|
385
|
+
};
|
|
386
|
+
streak: boolean;
|
|
387
|
+
};
|
|
388
|
+
state3: {
|
|
389
|
+
style: {
|
|
390
|
+
background: string;
|
|
391
|
+
};
|
|
392
|
+
streak: boolean;
|
|
393
|
+
streakColor: string;
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
onClick: () => void;
|
|
397
|
+
};
|
|
398
|
+
render: (args: CalendarDayProps) => React.JSX.Element;
|
|
399
|
+
};
|
|
400
|
+
export declare const InCalendarNoData: {
|
|
401
|
+
render: () => React.JSX.Element;
|
|
402
|
+
};
|
|
403
|
+
export declare const InCalendarNoDataWithClickHandler: {
|
|
404
|
+
render: () => React.JSX.Element;
|
|
405
|
+
};
|
|
406
|
+
export declare const InCalendarWithData: {
|
|
407
|
+
render: () => React.JSX.Element;
|
|
408
|
+
};
|
|
409
|
+
export declare const InCalendarWithDataWithClickHandler: {
|
|
410
|
+
render: () => React.JSX.Element;
|
|
411
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, CalendarDayStateConfiguration } from './CalendarDay';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "./DateRangeCoordinator";
|
|
1
|
+
export { default, DateRangeContext } from "./DateRangeCoordinator";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import './NavigationBar.css';
|
|
3
3
|
import '@fortawesome/fontawesome-svg-core/styles.css';
|
|
4
4
|
import { ColorDefinition } from '../../../helpers/colors';
|
|
5
5
|
export interface NavigationBarProps {
|
|
@@ -11,9 +11,11 @@ export interface NavigationBarProps {
|
|
|
11
11
|
closeButtonText?: string;
|
|
12
12
|
backButtonText?: string;
|
|
13
13
|
className?: string;
|
|
14
|
-
variant?:
|
|
14
|
+
variant?: 'default' | 'compressed';
|
|
15
15
|
titleColor?: ColorDefinition;
|
|
16
16
|
subtitleColor?: ColorDefinition;
|
|
17
17
|
buttonColor?: ColorDefinition;
|
|
18
|
+
navigationBarLeft?: React.ReactNode;
|
|
19
|
+
navigationBarRight?: React.ReactNode;
|
|
18
20
|
}
|
|
19
21
|
export default function (props: NavigationBarProps): React.JSX.Element;
|
|
@@ -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;
|
|
@@ -5,9 +5,7 @@ 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';
|
|
9
8
|
export interface SingleSurveyTaskProps {
|
|
10
|
-
previewState?: SingleSurveyTaskPreviewState;
|
|
11
9
|
task: SurveyTask;
|
|
12
10
|
descriptionIcon?: IconDefinition;
|
|
13
11
|
onClick: () => void;
|
package/dist/cjs/types/components/presentational/SingleSurveyTask/SingleSurveyTask.stories.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ export declare const Incomplete: {
|
|
|
25
25
|
insertedDate: string;
|
|
26
26
|
modifiedDate: string;
|
|
27
27
|
};
|
|
28
|
-
previewState?: "hasBeenClicked" | undefined;
|
|
29
28
|
descriptionIcon?: import("@fortawesome/fontawesome-common-types").IconDefinition | undefined;
|
|
30
29
|
onClick: () => void;
|
|
31
30
|
surveyActive?: boolean | undefined;
|
|
@@ -52,7 +51,6 @@ export declare const IncompleteInProgress: {
|
|
|
52
51
|
insertedDate: string;
|
|
53
52
|
modifiedDate: string;
|
|
54
53
|
};
|
|
55
|
-
previewState?: "hasBeenClicked" | undefined;
|
|
56
54
|
descriptionIcon?: import("@fortawesome/fontawesome-common-types").IconDefinition | undefined;
|
|
57
55
|
onClick: () => void;
|
|
58
56
|
surveyActive?: boolean | undefined;
|
|
@@ -80,7 +78,6 @@ export declare const IncompleteSurveyActive: {
|
|
|
80
78
|
modifiedDate: string;
|
|
81
79
|
};
|
|
82
80
|
surveyActive: boolean;
|
|
83
|
-
previewState?: "hasBeenClicked" | undefined;
|
|
84
81
|
descriptionIcon?: import("@fortawesome/fontawesome-common-types").IconDefinition | undefined;
|
|
85
82
|
onClick: () => void;
|
|
86
83
|
innerRef?: React.Ref<HTMLDivElement> | undefined;
|
|
@@ -106,7 +103,6 @@ export declare const IncompleteWithLongDescription: {
|
|
|
106
103
|
insertedDate: string;
|
|
107
104
|
modifiedDate: string;
|
|
108
105
|
};
|
|
109
|
-
previewState?: "hasBeenClicked" | undefined;
|
|
110
106
|
descriptionIcon?: import("@fortawesome/fontawesome-common-types").IconDefinition | undefined;
|
|
111
107
|
onClick: () => void;
|
|
112
108
|
surveyActive?: boolean | undefined;
|
|
@@ -133,7 +129,6 @@ export declare const Complete: {
|
|
|
133
129
|
insertedDate: string;
|
|
134
130
|
modifiedDate: string;
|
|
135
131
|
};
|
|
136
|
-
previewState?: "hasBeenClicked" | undefined;
|
|
137
132
|
descriptionIcon?: import("@fortawesome/fontawesome-common-types").IconDefinition | undefined;
|
|
138
133
|
onClick: () => void;
|
|
139
134
|
surveyActive?: boolean | undefined;
|
|
@@ -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;
|