@careevolution/mydatahelps-ui 2.9.1-AsthmaUI.0 → 2.9.1-AsthmaUI.10

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 (134) hide show
  1. package/dist/cjs/index.js +8 -8
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/asthma/container/AsthmaAirQualities/AsthmaAirQualities.d.ts +0 -1
  4. package/dist/cjs/types/components/asthma/container/AsthmaBiometrics/AsthmaBiometrics.d.ts +0 -1
  5. package/dist/cjs/types/components/asthma/container/AsthmaTools/AsthmaTools.d.ts +6 -0
  6. package/dist/cjs/types/components/asthma/container/AsthmaTools/AsthmaTools.stories.d.ts +13 -0
  7. package/dist/cjs/types/components/asthma/container/AsthmaTools/index.d.ts +1 -0
  8. package/dist/cjs/types/components/asthma/container/index.d.ts +1 -2
  9. package/dist/cjs/types/components/asthma/index.d.ts +0 -1
  10. package/dist/cjs/types/components/asthma/presentational/AsthmaBiometricsCoordinator/AsthmaBiometricsCoordinator.d.ts +7 -0
  11. package/dist/cjs/types/components/asthma/presentational/AsthmaBiometricsCoordinator/AsthmaBiometricsCoordinator.stories.d.ts +16 -0
  12. package/dist/cjs/types/components/asthma/presentational/AsthmaBiometricsCoordinator/index.d.ts +1 -0
  13. package/dist/cjs/types/components/asthma/presentational/AsthmaFacts/AsthmaFacts.d.ts +5 -0
  14. package/dist/cjs/types/components/asthma/presentational/AsthmaFacts/AsthmaFacts.stories.d.ts +19 -0
  15. package/dist/cjs/types/components/asthma/presentational/AsthmaFacts/index.d.ts +1 -0
  16. package/dist/cjs/types/components/asthma/presentational/AsthmaToolLink/AsthmaToolLink.d.ts +8 -0
  17. package/dist/cjs/types/components/asthma/presentational/AsthmaToolLink/AsthmaToolLink.stories.d.ts +17 -0
  18. package/dist/cjs/types/components/asthma/presentational/AsthmaToolLink/index.d.ts +1 -0
  19. package/dist/cjs/types/components/asthma/presentational/index.d.ts +3 -1
  20. package/dist/cjs/types/components/presentational/CalendarDay/CalendarDay.d.ts +18 -0
  21. package/dist/cjs/types/components/presentational/CalendarDay/CalendarDay.stories.d.ts +342 -0
  22. package/dist/cjs/types/components/presentational/CalendarDay/index.d.ts +1 -0
  23. package/dist/cjs/types/components/presentational/ColumnPanel/ColumnPanel.d.ts +8 -0
  24. package/dist/cjs/types/components/presentational/ColumnPanel/ColumnPanel.stories.d.ts +31 -0
  25. package/dist/cjs/types/components/presentational/ColumnPanel/index.d.ts +1 -0
  26. package/dist/cjs/types/components/presentational/DataCoordinator/DataCoordinator.d.ts +20 -0
  27. package/dist/{esm/types/components/asthma/views/AsthmaDataView/AsthmaDataView.stories.d.ts → cjs/types/components/presentational/DataCoordinator/DataCoordinator.stories.d.ts} +4 -4
  28. package/dist/cjs/types/components/presentational/DataCoordinator/index.d.ts +1 -0
  29. package/dist/cjs/types/components/presentational/DataItem/DataItem.d.ts +7 -0
  30. package/dist/cjs/types/components/presentational/DataItem/DataItem.stories.d.ts +110 -0
  31. package/dist/cjs/types/components/presentational/DataItem/index.d.ts +1 -0
  32. package/dist/cjs/types/components/presentational/ProgressBar/ProgressBar.d.ts +24 -0
  33. package/dist/cjs/types/components/presentational/ProgressBar/ProgressBarStep.d.ts +9 -0
  34. package/dist/cjs/types/components/presentational/ProgressBar/index.d.ts +2 -0
  35. package/dist/cjs/types/components/presentational/RotatingText/RotatingText.d.ts +15 -0
  36. package/dist/cjs/types/components/presentational/RotatingText/RotatingText.stories.d.ts +149 -0
  37. package/dist/cjs/types/components/presentational/RotatingText/index.d.ts +1 -0
  38. package/dist/cjs/types/components/presentational/SingleSurveyTask/SingleSurveyTask.d.ts +2 -1
  39. package/dist/cjs/types/components/presentational/SingleSurveyTask/SingleSurveyTask.stories.d.ts +140 -0
  40. package/dist/cjs/types/components/presentational/index.d.ts +8 -2
  41. package/dist/esm/index.js +8 -8
  42. package/dist/esm/index.js.map +1 -1
  43. package/dist/esm/types/components/asthma/container/AsthmaAirQualities/AsthmaAirQualities.d.ts +0 -1
  44. package/dist/esm/types/components/asthma/container/AsthmaBiometrics/AsthmaBiometrics.d.ts +0 -1
  45. package/dist/esm/types/components/asthma/container/AsthmaTools/AsthmaTools.d.ts +6 -0
  46. package/dist/esm/types/components/asthma/container/AsthmaTools/AsthmaTools.stories.d.ts +13 -0
  47. package/dist/esm/types/components/asthma/container/AsthmaTools/index.d.ts +1 -0
  48. package/dist/esm/types/components/asthma/container/index.d.ts +1 -2
  49. package/dist/esm/types/components/asthma/index.d.ts +0 -1
  50. package/dist/esm/types/components/asthma/presentational/AsthmaBiometricsCoordinator/AsthmaBiometricsCoordinator.d.ts +7 -0
  51. package/dist/esm/types/components/asthma/presentational/AsthmaBiometricsCoordinator/AsthmaBiometricsCoordinator.stories.d.ts +16 -0
  52. package/dist/esm/types/components/asthma/presentational/AsthmaBiometricsCoordinator/index.d.ts +1 -0
  53. package/dist/esm/types/components/asthma/presentational/AsthmaFacts/AsthmaFacts.d.ts +5 -0
  54. package/dist/esm/types/components/asthma/presentational/AsthmaFacts/AsthmaFacts.stories.d.ts +19 -0
  55. package/dist/esm/types/components/asthma/presentational/AsthmaFacts/index.d.ts +1 -0
  56. package/dist/esm/types/components/asthma/presentational/AsthmaToolLink/AsthmaToolLink.d.ts +8 -0
  57. package/dist/esm/types/components/asthma/presentational/AsthmaToolLink/AsthmaToolLink.stories.d.ts +17 -0
  58. package/dist/esm/types/components/asthma/presentational/AsthmaToolLink/index.d.ts +1 -0
  59. package/dist/esm/types/components/asthma/presentational/index.d.ts +3 -1
  60. package/dist/esm/types/components/presentational/CalendarDay/CalendarDay.d.ts +18 -0
  61. package/dist/esm/types/components/presentational/CalendarDay/CalendarDay.stories.d.ts +342 -0
  62. package/dist/esm/types/components/presentational/CalendarDay/index.d.ts +1 -0
  63. package/dist/esm/types/components/presentational/ColumnPanel/ColumnPanel.d.ts +8 -0
  64. package/dist/esm/types/components/presentational/ColumnPanel/ColumnPanel.stories.d.ts +31 -0
  65. package/dist/esm/types/components/presentational/ColumnPanel/index.d.ts +1 -0
  66. package/dist/esm/types/components/presentational/DataCoordinator/DataCoordinator.d.ts +20 -0
  67. package/dist/{cjs/types/components/asthma/views/AsthmaDataView/AsthmaDataView.stories.d.ts → esm/types/components/presentational/DataCoordinator/DataCoordinator.stories.d.ts} +4 -4
  68. package/dist/esm/types/components/presentational/DataCoordinator/index.d.ts +1 -0
  69. package/dist/esm/types/components/presentational/DataItem/DataItem.d.ts +7 -0
  70. package/dist/esm/types/components/presentational/DataItem/DataItem.stories.d.ts +110 -0
  71. package/dist/esm/types/components/presentational/DataItem/index.d.ts +1 -0
  72. package/dist/esm/types/components/presentational/ProgressBar/ProgressBar.d.ts +24 -0
  73. package/dist/esm/types/components/presentational/ProgressBar/ProgressBarStep.d.ts +9 -0
  74. package/dist/esm/types/components/presentational/ProgressBar/index.d.ts +2 -0
  75. package/dist/esm/types/components/presentational/RotatingText/RotatingText.d.ts +15 -0
  76. package/dist/esm/types/components/presentational/RotatingText/RotatingText.stories.d.ts +149 -0
  77. package/dist/esm/types/components/presentational/RotatingText/index.d.ts +1 -0
  78. package/dist/esm/types/components/presentational/SingleSurveyTask/SingleSurveyTask.d.ts +2 -1
  79. package/dist/esm/types/components/presentational/SingleSurveyTask/SingleSurveyTask.stories.d.ts +140 -0
  80. package/dist/esm/types/components/presentational/index.d.ts +8 -2
  81. package/dist/index.d.ts +191 -143
  82. package/package.json +1 -1
  83. package/dist/cjs/types/components/asthma/container/AsthmaCalendarViewHeader/AsthmaCalendarViewHeader.d.ts +0 -10
  84. package/dist/cjs/types/components/asthma/container/AsthmaCalendarViewHeader/AsthmaCalendarViewHeader.previewData.d.ts +0 -8
  85. package/dist/cjs/types/components/asthma/container/AsthmaCalendarViewHeader/AsthmaCalendarViewHeader.stories.d.ts +0 -16
  86. package/dist/cjs/types/components/asthma/container/AsthmaCalendarViewHeader/index.d.ts +0 -2
  87. package/dist/cjs/types/components/asthma/container/AsthmaDashboardViewHeader/AsthmaDashboardViewHeader.d.ts +0 -10
  88. package/dist/cjs/types/components/asthma/container/AsthmaDashboardViewHeader/AsthmaDashboardViewHeader.previewData.d.ts +0 -10
  89. package/dist/cjs/types/components/asthma/container/AsthmaDashboardViewHeader/AsthmaDashboardViewHeader.stories.d.ts +0 -16
  90. package/dist/cjs/types/components/asthma/container/AsthmaDashboardViewHeader/index.d.ts +0 -2
  91. package/dist/cjs/types/components/asthma/presentational/AsthmaViewTitle/AsthmaViewTitle.d.ts +0 -7
  92. package/dist/cjs/types/components/asthma/presentational/AsthmaViewTitle/AsthmaViewTitle.stories.d.ts +0 -16
  93. package/dist/cjs/types/components/asthma/presentational/AsthmaViewTitle/index.d.ts +0 -1
  94. package/dist/cjs/types/components/asthma/views/AsthmaCalendarView/AsthmaCalendarView.d.ts +0 -9
  95. package/dist/cjs/types/components/asthma/views/AsthmaCalendarView/AsthmaCalendarView.previewData.d.ts +0 -6
  96. package/dist/cjs/types/components/asthma/views/AsthmaCalendarView/AsthmaCalendarView.stories.d.ts +0 -18
  97. package/dist/cjs/types/components/asthma/views/AsthmaCalendarView/index.d.ts +0 -1
  98. package/dist/cjs/types/components/asthma/views/AsthmaDashboardView/AsthmaDashboardView.d.ts +0 -9
  99. package/dist/cjs/types/components/asthma/views/AsthmaDashboardView/AsthmaDashboardView.previewData.d.ts +0 -8
  100. package/dist/cjs/types/components/asthma/views/AsthmaDashboardView/AsthmaDashboardView.stories.d.ts +0 -18
  101. package/dist/cjs/types/components/asthma/views/AsthmaDashboardView/index.d.ts +0 -1
  102. package/dist/cjs/types/components/asthma/views/AsthmaDataView/AsthmaDataView.d.ts +0 -7
  103. package/dist/cjs/types/components/asthma/views/AsthmaDataView/AsthmaDataView.previewData.d.ts +0 -8
  104. package/dist/cjs/types/components/asthma/views/AsthmaDataView/index.d.ts +0 -1
  105. package/dist/cjs/types/components/asthma/views/index.d.ts +0 -3
  106. package/dist/cjs/types/components/presentational/BasicCalendar/BasicCalendar.d.ts +0 -15
  107. package/dist/cjs/types/components/presentational/BasicCalendar/BasicCalendar.stories.d.ts +0 -17
  108. package/dist/cjs/types/components/presentational/BasicCalendar/index.d.ts +0 -1
  109. package/dist/esm/types/components/asthma/container/AsthmaCalendarViewHeader/AsthmaCalendarViewHeader.d.ts +0 -10
  110. package/dist/esm/types/components/asthma/container/AsthmaCalendarViewHeader/AsthmaCalendarViewHeader.previewData.d.ts +0 -8
  111. package/dist/esm/types/components/asthma/container/AsthmaCalendarViewHeader/AsthmaCalendarViewHeader.stories.d.ts +0 -16
  112. package/dist/esm/types/components/asthma/container/AsthmaCalendarViewHeader/index.d.ts +0 -2
  113. package/dist/esm/types/components/asthma/container/AsthmaDashboardViewHeader/AsthmaDashboardViewHeader.d.ts +0 -10
  114. package/dist/esm/types/components/asthma/container/AsthmaDashboardViewHeader/AsthmaDashboardViewHeader.previewData.d.ts +0 -10
  115. package/dist/esm/types/components/asthma/container/AsthmaDashboardViewHeader/AsthmaDashboardViewHeader.stories.d.ts +0 -16
  116. package/dist/esm/types/components/asthma/container/AsthmaDashboardViewHeader/index.d.ts +0 -2
  117. package/dist/esm/types/components/asthma/presentational/AsthmaViewTitle/AsthmaViewTitle.d.ts +0 -7
  118. package/dist/esm/types/components/asthma/presentational/AsthmaViewTitle/AsthmaViewTitle.stories.d.ts +0 -16
  119. package/dist/esm/types/components/asthma/presentational/AsthmaViewTitle/index.d.ts +0 -1
  120. package/dist/esm/types/components/asthma/views/AsthmaCalendarView/AsthmaCalendarView.d.ts +0 -9
  121. package/dist/esm/types/components/asthma/views/AsthmaCalendarView/AsthmaCalendarView.previewData.d.ts +0 -6
  122. package/dist/esm/types/components/asthma/views/AsthmaCalendarView/AsthmaCalendarView.stories.d.ts +0 -18
  123. package/dist/esm/types/components/asthma/views/AsthmaCalendarView/index.d.ts +0 -1
  124. package/dist/esm/types/components/asthma/views/AsthmaDashboardView/AsthmaDashboardView.d.ts +0 -9
  125. package/dist/esm/types/components/asthma/views/AsthmaDashboardView/AsthmaDashboardView.previewData.d.ts +0 -8
  126. package/dist/esm/types/components/asthma/views/AsthmaDashboardView/AsthmaDashboardView.stories.d.ts +0 -18
  127. package/dist/esm/types/components/asthma/views/AsthmaDashboardView/index.d.ts +0 -1
  128. package/dist/esm/types/components/asthma/views/AsthmaDataView/AsthmaDataView.d.ts +0 -7
  129. package/dist/esm/types/components/asthma/views/AsthmaDataView/AsthmaDataView.previewData.d.ts +0 -8
  130. package/dist/esm/types/components/asthma/views/AsthmaDataView/index.d.ts +0 -1
  131. package/dist/esm/types/components/asthma/views/index.d.ts +0 -3
  132. package/dist/esm/types/components/presentational/BasicCalendar/BasicCalendar.d.ts +0 -15
  133. package/dist/esm/types/components/presentational/BasicCalendar/BasicCalendar.stories.d.ts +0 -17
  134. package/dist/esm/types/components/presentational/BasicCalendar/index.d.ts +0 -1
@@ -3,7 +3,6 @@ import './AsthmaAirQualities.css';
3
3
  import { AsthmaAirQualitiesPreviewState } from './AsthmaAirQualities.previewData';
4
4
  export interface AsthmaAirQualitiesProps {
5
5
  previewState?: AsthmaAirQualitiesPreviewState;
6
- onClick: () => void;
7
6
  innerRef?: React.Ref<HTMLDivElement>;
8
7
  }
9
8
  export default function (props: AsthmaAirQualitiesProps): React.JSX.Element;
@@ -3,7 +3,6 @@ import './AsthmaBiometrics.css';
3
3
  import { AsthmaBiometricsPreviewState } from './AsthmaBiometrics.previewData';
4
4
  export interface AsthmaBiometricsProps {
5
5
  previewState?: AsthmaBiometricsPreviewState;
6
- onClick: () => void;
7
6
  innerRef?: React.Ref<HTMLDivElement>;
8
7
  }
9
8
  export default function (props: AsthmaBiometricsProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import './AsthmaTools.css';
3
+ export interface AsthmaToolsProps {
4
+ innerRef?: React.Ref<HTMLDivElement>;
5
+ }
6
+ export default function (props: AsthmaToolsProps): React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import AsthmaTools from './AsthmaTools';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof AsthmaTools;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ export declare const Default: {
12
+ render: () => React.JSX.Element;
13
+ };
@@ -0,0 +1 @@
1
+ export { default } from './AsthmaTools';
@@ -1,7 +1,6 @@
1
1
  export { default as AsthmaAirQualities } from './AsthmaAirQualities';
2
2
  export { default as AsthmaBiometrics } from './AsthmaBiometrics';
3
- export { default as AsthmaCalendarViewHeader } from './AsthmaCalendarViewHeader';
4
3
  export { default as AsthmaControlCalendar } from './AsthmaControlCalendar';
5
4
  export { default as AsthmaControlStatusHeader } from './AsthmaControlStatusHeader';
6
- export { default as AsthmaDashboardViewHeader } from './AsthmaDashboardViewHeader';
7
5
  export { default as AsthmaLogEntryHeader } from './AsthmaLogEntryHeader';
6
+ export { default as AsthmaTools } from './AsthmaTools';
@@ -2,4 +2,3 @@ export * from './container';
2
2
  export * from './helpers';
3
3
  export * from './model';
4
4
  export * from './presentational';
5
- export * from './views';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface AsthmaBiometricsCoordinatorProps {
3
+ previewState?: 'default';
4
+ children: React.ReactNode;
5
+ innerRef?: React.Ref<HTMLDivElement>;
6
+ }
7
+ export default function (props: AsthmaBiometricsCoordinatorProps): React.JSX.Element;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import AsthmaBiometricsCoordinator, { AsthmaBiometricsCoordinatorProps } from './AsthmaBiometricsCoordinator';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof AsthmaBiometricsCoordinator;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ export declare const Default: {
12
+ args: {
13
+ previewState: string;
14
+ };
15
+ render: (args: AsthmaBiometricsCoordinatorProps) => React.JSX.Element;
16
+ };
@@ -0,0 +1 @@
1
+ export { default } from './AsthmaBiometricsCoordinator';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface AsthmaFactsProps {
3
+ innerRef?: React.Ref<HTMLDivElement>;
4
+ }
5
+ export default function (props: AsthmaFactsProps): React.JSX.Element;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import AsthmaFacts, { AsthmaFactsProps } from './AsthmaFacts';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof AsthmaFacts;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ export declare const Default: {
12
+ args: {
13
+ label: string;
14
+ value: number;
15
+ units: string;
16
+ status: string;
17
+ };
18
+ render: (args: AsthmaFactsProps) => React.JSX.Element;
19
+ };
@@ -0,0 +1 @@
1
+ export { default } from './AsthmaFacts';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './AsthmaToolLink.css';
3
+ export interface AsthmaToolLinkProps {
4
+ text: string;
5
+ onClick: () => void;
6
+ innerRef?: React.Ref<HTMLDivElement>;
7
+ }
8
+ export default function (props: AsthmaToolLinkProps): React.JSX.Element;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import AsthmaToolLink, { AsthmaToolLinkProps } from './AsthmaToolLink';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof AsthmaToolLink;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ export declare const Default: {
12
+ args: {
13
+ text: string;
14
+ onClick: () => void;
15
+ };
16
+ render: (args: AsthmaToolLinkProps) => React.JSX.Element;
17
+ };
@@ -0,0 +1 @@
1
+ export { default } from './AsthmaToolLink';
@@ -1,3 +1,5 @@
1
+ export { default as AsthmaBiometricsCoordinator } from './AsthmaBiometricsCoordinator';
1
2
  export { default as AsthmaDataSummary } from './AsthmaDataSummary';
3
+ export { default as AsthmaFacts } from './AsthmaFacts';
2
4
  export { default as AsthmaLogEntrySummary } from './AsthmaLogEntrySummary';
3
- export { default as AsthmaViewTitle } from './AsthmaViewTitle';
5
+ export { default as AsthmaToolLink } from './AsthmaToolLink';
@@ -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,342 @@
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 StreakLeftNotSupported: {
71
+ args: {
72
+ computeStateForDay: (date: Date) => string;
73
+ year: number;
74
+ month: number;
75
+ day: number;
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 StreakLeftDefaultColor: {
101
+ args: {
102
+ computeStateForDay: (date: Date) => string;
103
+ year: number;
104
+ month: number;
105
+ day: number;
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 StreakLeftCustomColor: {
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 StreakRightNotSupported: {
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 StreakRightDefaultColor: {
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 StreakRightCustomColor: {
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 StreakBothNotSupported: {
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 StreakBothDefaultColor: {
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 StreakBothCustomColor: {
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 InCalendar: {
341
+ render: () => React.JSX.Element;
342
+ };
@@ -0,0 +1 @@
1
+ export { default, CalendarDayStateConfiguration } from './CalendarDay';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './ColumnPanel.css';
3
+ export interface ColumnPanelProps {
4
+ columns: number;
5
+ children: React.ReactNode;
6
+ innerRef?: React.Ref<HTMLDivElement>;
7
+ }
8
+ export default function (props: ColumnPanelProps): React.JSX.Element;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import ColumnPanel, { ColumnPanelProps } from './ColumnPanel';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof ColumnPanel;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ export declare const OneColumn: {
12
+ args: {
13
+ columns: number;
14
+ children: React.JSX.Element[];
15
+ };
16
+ render: (args: ColumnPanelProps) => React.JSX.Element;
17
+ };
18
+ export declare const TwoColumns: {
19
+ args: {
20
+ columns: number;
21
+ children: React.JSX.Element[];
22
+ };
23
+ render: (args: ColumnPanelProps) => React.JSX.Element;
24
+ };
25
+ export declare const ThreeColumns: {
26
+ args: {
27
+ columns: number;
28
+ children: React.JSX.Element[];
29
+ };
30
+ render: (args: ColumnPanelProps) => React.JSX.Element;
31
+ };
@@ -0,0 +1 @@
1
+ export { default } from './ColumnPanel';
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ export type DataStatus = 'establishing' | 'offline' | 'in-range' | 'out-of-range';
3
+ export interface Data {
4
+ label: string;
5
+ status: DataStatus;
6
+ statusText?: string;
7
+ value?: number;
8
+ units?: string;
9
+ }
10
+ export interface DataCoordinatorProps {
11
+ previewState?: 'default';
12
+ loadData: () => Promise<Record<string, Data>>;
13
+ children: React.ReactNode;
14
+ innerRef?: React.Ref<HTMLDivElement>;
15
+ }
16
+ export interface DataContext {
17
+ data?: Record<string, Data>;
18
+ }
19
+ export declare const DataContext: React.Context<DataContext | null>;
20
+ export default function (props: DataCoordinatorProps): React.JSX.Element;
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
- import AsthmaDataView, { AsthmaDataViewProps } from './AsthmaDataView';
1
+ import React from "react";
2
+ import DataCoordinator, { DataCoordinatorProps } from "./DataCoordinator";
3
3
  declare const _default: {
4
4
  title: string;
5
- component: typeof AsthmaDataView;
5
+ component: typeof DataCoordinator;
6
6
  parameters: {
7
7
  layout: string;
8
8
  };
@@ -12,5 +12,5 @@ export declare const Default: {
12
12
  args: {
13
13
  previewState: string;
14
14
  };
15
- render: (args: AsthmaDataViewProps) => React.JSX.Element;
15
+ render: (args: DataCoordinatorProps) => React.JSX.Element;
16
16
  };
@@ -0,0 +1 @@
1
+ export { default, DataContext, Data, DataStatus } from './DataCoordinator';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './DataItem.css';
3
+ export interface DataItemProps {
4
+ dataKey: string;
5
+ innerRef?: React.Ref<HTMLDivElement>;
6
+ }
7
+ export default function (props: DataItemProps): React.JSX.Element;