@careevolution/mydatahelps-ui 2.7.0 → 2.7.1-Colors.1
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 +8 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/presentational/Action/Action.d.ts +3 -0
- package/dist/cjs/types/components/presentational/Button/Button.d.ts +2 -1
- package/dist/cjs/types/components/presentational/Card/Card.d.ts +2 -0
- package/dist/cjs/types/components/presentational/Layout/Layout.d.ts +3 -2
- package/dist/cjs/types/components/presentational/Section/Section.d.ts +2 -0
- package/dist/cjs/types/components/presentational/TextBlock/TextBlock.d.ts +2 -0
- package/dist/cjs/types/components/presentational/Title/Title.d.ts +2 -0
- package/dist/cjs/types/components/view/BlankView/BlankView.d.ts +3 -1
- package/dist/cjs/types/helpers/colors.d.ts +5 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +8 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/presentational/Action/Action.d.ts +3 -0
- package/dist/esm/types/components/presentational/Button/Button.d.ts +2 -1
- package/dist/esm/types/components/presentational/Card/Card.d.ts +2 -0
- package/dist/esm/types/components/presentational/Layout/Layout.d.ts +3 -2
- package/dist/esm/types/components/presentational/Section/Section.d.ts +2 -0
- package/dist/esm/types/components/presentational/TextBlock/TextBlock.d.ts +2 -0
- package/dist/esm/types/components/presentational/Title/Title.d.ts +2 -0
- package/dist/esm/types/components/view/BlankView/BlankView.d.ts +3 -1
- package/dist/esm/types/helpers/colors.d.ts +5 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +18 -5
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import React, { ReactElement } from 'react';
|
|
|
2
2
|
import '@fortawesome/fontawesome-svg-core/styles.css';
|
|
3
3
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
4
4
|
import "./Action.css";
|
|
5
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
5
6
|
export interface ActionProps {
|
|
6
7
|
title?: string;
|
|
7
8
|
titleIcon?: ReactElement;
|
|
@@ -16,5 +17,7 @@ export interface ActionProps {
|
|
|
16
17
|
indicatorPosition?: "default" | "topRight";
|
|
17
18
|
bottomBorder?: boolean;
|
|
18
19
|
innerRef?: React.Ref<HTMLButtonElement>;
|
|
20
|
+
titleColor?: ColorDefinition;
|
|
21
|
+
subtitleColor?: ColorDefinition;
|
|
19
22
|
}
|
|
20
23
|
export default function (props: ActionProps): React.JSX.Element;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import "./Button.css";
|
|
3
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
3
4
|
export interface ButtonProps {
|
|
4
5
|
children?: React.ReactNode;
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
onClick: Function;
|
|
7
8
|
className?: string;
|
|
8
|
-
color?:
|
|
9
|
+
color?: ColorDefinition;
|
|
9
10
|
loading?: boolean;
|
|
10
11
|
variant?: "default" | "subtle" | "light";
|
|
11
12
|
innerRef?: React.Ref<HTMLButtonElement>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import "./Card.css";
|
|
3
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
3
4
|
export interface CardProps {
|
|
4
5
|
className?: string;
|
|
5
6
|
children?: React.ReactNode;
|
|
6
7
|
allowOverflow?: boolean;
|
|
7
8
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
8
9
|
variant?: "default" | "subtle" | "highlight";
|
|
10
|
+
backgroundColor?: ColorDefinition;
|
|
9
11
|
}
|
|
10
12
|
export default function (props: CardProps): React.JSX.Element | null;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StatusBarStyle } from '@careevolution/mydatahelps-js';
|
|
3
3
|
import "./Layout.css";
|
|
4
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
4
5
|
export interface LayoutProps {
|
|
5
6
|
children?: React.ReactNode;
|
|
6
|
-
bodyBackgroundColor?:
|
|
7
|
-
primaryColor?:
|
|
7
|
+
bodyBackgroundColor?: ColorDefinition;
|
|
8
|
+
primaryColor?: ColorDefinition;
|
|
8
9
|
statusBarStyle?: StatusBarStyle;
|
|
9
10
|
className?: string;
|
|
10
11
|
noGlobalStyles?: boolean;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import "./Section.css";
|
|
3
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
3
4
|
export interface SectionProps {
|
|
4
5
|
children?: React.ReactNode;
|
|
5
6
|
className?: string;
|
|
6
7
|
noTopMargin?: boolean;
|
|
7
8
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
9
|
+
backgroundColor?: ColorDefinition;
|
|
8
10
|
}
|
|
9
11
|
export default function (props: SectionProps): React.JSX.Element | null;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import "./TextBlock.css";
|
|
3
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
3
4
|
export interface TextBlockProps {
|
|
4
5
|
children?: React.ReactNode;
|
|
5
6
|
className?: string;
|
|
6
7
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
8
|
+
color?: ColorDefinition;
|
|
7
9
|
}
|
|
8
10
|
export default function (props: TextBlockProps): React.JSX.Element | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ColorDefinition } from '../../../helpers/colors';
|
|
2
3
|
export interface BlankViewProps {
|
|
3
4
|
children?: React.ReactNode;
|
|
4
5
|
title?: string;
|
|
@@ -6,6 +7,7 @@ export interface BlankViewProps {
|
|
|
6
7
|
showCloseButton?: boolean;
|
|
7
8
|
showBackButton?: boolean;
|
|
8
9
|
colorScheme?: "auto" | "light" | "dark";
|
|
9
|
-
primaryColor?:
|
|
10
|
+
primaryColor?: ColorDefinition;
|
|
11
|
+
bodyBackgroundColor?: ColorDefinition;
|
|
10
12
|
}
|
|
11
13
|
export default function (props: BlankViewProps): React.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,12 @@ 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';
|
|
5
5
|
|
|
6
|
+
declare type ColorDefinition = string | {
|
|
7
|
+
lightMode?: string;
|
|
8
|
+
darkMode?: string;
|
|
9
|
+
};
|
|
10
|
+
declare function resolveColor(colorScheme: "light" | "dark", colorDefinition?: ColorDefinition): string | undefined;
|
|
11
|
+
|
|
6
12
|
interface ActionProps {
|
|
7
13
|
title?: string;
|
|
8
14
|
titleIcon?: ReactElement;
|
|
@@ -17,6 +23,8 @@ interface ActionProps {
|
|
|
17
23
|
indicatorPosition?: "default" | "topRight";
|
|
18
24
|
bottomBorder?: boolean;
|
|
19
25
|
innerRef?: React.Ref<HTMLButtonElement>;
|
|
26
|
+
titleColor?: ColorDefinition;
|
|
27
|
+
subtitleColor?: ColorDefinition;
|
|
20
28
|
}
|
|
21
29
|
declare function export_default$1s(props: ActionProps): React.JSX.Element;
|
|
22
30
|
|
|
@@ -38,7 +46,7 @@ interface ButtonProps {
|
|
|
38
46
|
disabled?: boolean;
|
|
39
47
|
onClick: Function;
|
|
40
48
|
className?: string;
|
|
41
|
-
color?:
|
|
49
|
+
color?: ColorDefinition;
|
|
42
50
|
loading?: boolean;
|
|
43
51
|
variant?: "default" | "subtle" | "light";
|
|
44
52
|
innerRef?: React.Ref<HTMLButtonElement>;
|
|
@@ -61,6 +69,7 @@ interface CardProps {
|
|
|
61
69
|
allowOverflow?: boolean;
|
|
62
70
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
63
71
|
variant?: "default" | "subtle" | "highlight";
|
|
72
|
+
backgroundColor?: ColorDefinition;
|
|
64
73
|
}
|
|
65
74
|
declare function export_default$1o(props: CardProps): React.JSX.Element | null;
|
|
66
75
|
|
|
@@ -128,8 +137,8 @@ declare function export_default$1j(props: HistogramProps): React.JSX.Element;
|
|
|
128
137
|
|
|
129
138
|
interface LayoutProps {
|
|
130
139
|
children?: React.ReactNode;
|
|
131
|
-
bodyBackgroundColor?:
|
|
132
|
-
primaryColor?:
|
|
140
|
+
bodyBackgroundColor?: ColorDefinition;
|
|
141
|
+
primaryColor?: ColorDefinition;
|
|
133
142
|
statusBarStyle?: StatusBarStyle;
|
|
134
143
|
className?: string;
|
|
135
144
|
noGlobalStyles?: boolean;
|
|
@@ -181,6 +190,7 @@ interface SectionProps {
|
|
|
181
190
|
className?: string;
|
|
182
191
|
noTopMargin?: boolean;
|
|
183
192
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
193
|
+
backgroundColor?: ColorDefinition;
|
|
184
194
|
}
|
|
185
195
|
declare function export_default$1f(props: SectionProps): React.JSX.Element | null;
|
|
186
196
|
|
|
@@ -252,10 +262,12 @@ interface TextBlockProps {
|
|
|
252
262
|
children?: React.ReactNode;
|
|
253
263
|
className?: string;
|
|
254
264
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
265
|
+
color?: ColorDefinition;
|
|
255
266
|
}
|
|
256
267
|
declare function export_default$17(props: TextBlockProps): React.JSX.Element | null;
|
|
257
268
|
|
|
258
269
|
interface TitleProps {
|
|
270
|
+
color?: ColorDefinition;
|
|
259
271
|
order?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
260
272
|
children?: React.ReactNode;
|
|
261
273
|
style?: React.CSSProperties;
|
|
@@ -797,7 +809,8 @@ interface BlankViewProps {
|
|
|
797
809
|
showCloseButton?: boolean;
|
|
798
810
|
showBackButton?: boolean;
|
|
799
811
|
colorScheme?: "auto" | "light" | "dark";
|
|
800
|
-
primaryColor?:
|
|
812
|
+
primaryColor?: ColorDefinition;
|
|
813
|
+
bodyBackgroundColor?: ColorDefinition;
|
|
801
814
|
}
|
|
802
815
|
declare function export_default$q(props: BlankViewProps): React.JSX.Element;
|
|
803
816
|
|
|
@@ -1004,4 +1017,4 @@ declare function language(key: string): string;
|
|
|
1004
1017
|
|
|
1005
1018
|
declare function getDayKey(date: Date): string;
|
|
1006
1019
|
|
|
1007
|
-
export { export_default$1s as Action, export_default$1r as ActivityMeter, export_default$11 as AppDownload, AreaChartOptions, BarChartOptions, export_default$q as BlankView, export_default$1q as Button, export_default$1p as Calendar, export_default$1o as Card, export_default$1n as CardTitle, export_default$g as CelebrationStep, export_default$f as CelebrationStepContainer, export_default$e as ConnectDeviceAccountStep, export_default$d as ConnectDeviceAccountStepContainer, export_default$10 as ConnectDevicesMenu, export_default$$ as ConnectEhr, export_default$c as ConnectEhrStep, export_default$b as ConnectEhrStepContainer, export_default$p as ConnectEhrView, export_default$_ as ConnectFitbit, export_default$Z as ConnectGarmin, DailyDataAvailabilityCheck, DailyDataChart, DailyDataProvider, DailyDataQueryResult, DailyDataType, DailyLogEntry, DateRangeNavigatorContext as DateRangeCoordinator, export_default$1m as DateRangeNavigator, export_default$1l as DayTrackerSymbol, DeviceDataChartLine, export_default$Y as DeviceDataMonthChart, export_default$X as DeviceDataMonthCharts, export_default$o as DeviceDataView, export_default$W as ExternalAccountList, export_default$V as ExternalAccountsLoadingIndicator, export_default$U as ExternalAccountsPreview, export_default$n as ExternalAccountsView, export_default$1k as Face, export_default$T as FitbitDevices, export_default$S as FitbitMonthCharts, export_default$m as FitbitView, export_default$R as GarminDevices, export_default$Q as GarminMonthCharts, export_default$l as GarminView, export_default$j as HealthAndWellnessView, export_default$P as HealthPreviewSection, export_default$1j as Histogram, export_default$k as HomeView, export_default$O as LabResultsSummary, export_default$1i as Layout, LayoutContext, LineChartOptions, LoadingIndicator, export_default$N as MostRecentNotification, export_default$1h as NavigationBar, export_default$1g as NotesInput, export_default$M as NotificationList, export_default$i as NotificationsView, export_default$L as PlatformSpecificContent, export_default$K as ProjectHeader, export_default$J as ProjectSupport, export_default$I as ProviderSearch, export_default$H as RelativeActivityToday, export_default$G as RestingHeartRateCalendar, export_default$1f as Section, export_default$1e as SegmentedControl, export_default$1d as ShinyOverlay, export_default$1c as SingleExternalAccount, export_default$1b as SingleNotification, export_default$1a as SingleSurveyTask, export_default$19 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$F as SurveyTaskList, export_default$h as SurveyTasksView, export_default$18 as Switch, SymptomConfiguration, SymptomReference, export_default$E as SymptomSharkCalendar, export_default$t as SymptomSharkCalendarView, SymptomSharkConfiguration, SymptomSharkDataService, export_default$C as SymptomSharkLogEntry, export_default$v as SymptomSharkLogEntryEdit, export_default$s as SymptomSharkLogEntryEditView, export_default$x as SymptomSharkLogEntryList, export_default$w as SymptomSharkLogToday, export_default$D as SymptomSharkOverallExperienceChart, export_default$r as SymptomSharkSymptomDetailView, export_default$z as SymptomSharkSymptomSeverityChart, export_default$A as SymptomSharkSymptomSeveritySummary, export_default$y as SymptomSharkSymptomTreatmentFilters, export_default$B as SymptomSharkSymptomTreatmentHistograms, export_default$u as SymptomSharkVisualizationCoordinator, export_default$17 as TextBlock, export_default$16 as Title, export_default$15 as TrackerItem, TreatmentConfiguration, TreatmentReference, export_default$14 as UnstyledButton, export_default$13 as ViewHeader, export_default$12 as WeekCalendar, WeekStartsOn, export_default$2 as YouTubeStep, export_default$1 as YouTubeStepContainer, checkDailyDataAvailability, convertToSymptomSharkConfiguration, getDayKey, getMonthStart, getWeekStart, language, queryDailyData, registerDailyDataProvider, export_default as useInterval };
|
|
1020
|
+
export { export_default$1s as Action, export_default$1r as ActivityMeter, export_default$11 as AppDownload, AreaChartOptions, BarChartOptions, export_default$q as BlankView, export_default$1q as Button, export_default$1p as Calendar, export_default$1o as Card, export_default$1n as CardTitle, export_default$g as CelebrationStep, export_default$f as CelebrationStepContainer, ColorDefinition, export_default$e as ConnectDeviceAccountStep, export_default$d as ConnectDeviceAccountStepContainer, export_default$10 as ConnectDevicesMenu, export_default$$ as ConnectEhr, export_default$c as ConnectEhrStep, export_default$b as ConnectEhrStepContainer, export_default$p as ConnectEhrView, export_default$_ as ConnectFitbit, export_default$Z as ConnectGarmin, DailyDataAvailabilityCheck, DailyDataChart, DailyDataProvider, DailyDataQueryResult, DailyDataType, DailyLogEntry, DateRangeNavigatorContext as DateRangeCoordinator, export_default$1m as DateRangeNavigator, export_default$1l as DayTrackerSymbol, DeviceDataChartLine, export_default$Y as DeviceDataMonthChart, export_default$X as DeviceDataMonthCharts, export_default$o as DeviceDataView, export_default$W as ExternalAccountList, export_default$V as ExternalAccountsLoadingIndicator, export_default$U as ExternalAccountsPreview, export_default$n as ExternalAccountsView, export_default$1k as Face, export_default$T as FitbitDevices, export_default$S as FitbitMonthCharts, export_default$m as FitbitView, export_default$R as GarminDevices, export_default$Q as GarminMonthCharts, export_default$l as GarminView, export_default$j as HealthAndWellnessView, export_default$P as HealthPreviewSection, export_default$1j as Histogram, export_default$k as HomeView, export_default$O as LabResultsSummary, export_default$1i as Layout, LayoutContext, LineChartOptions, LoadingIndicator, export_default$N as MostRecentNotification, export_default$1h as NavigationBar, export_default$1g as NotesInput, export_default$M as NotificationList, export_default$i as NotificationsView, export_default$L as PlatformSpecificContent, export_default$K as ProjectHeader, export_default$J as ProjectSupport, export_default$I as ProviderSearch, export_default$H as RelativeActivityToday, export_default$G as RestingHeartRateCalendar, export_default$1f as Section, export_default$1e as SegmentedControl, export_default$1d as ShinyOverlay, export_default$1c as SingleExternalAccount, export_default$1b as SingleNotification, export_default$1a as SingleSurveyTask, export_default$19 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$F as SurveyTaskList, export_default$h as SurveyTasksView, export_default$18 as Switch, SymptomConfiguration, SymptomReference, export_default$E as SymptomSharkCalendar, export_default$t as SymptomSharkCalendarView, SymptomSharkConfiguration, SymptomSharkDataService, export_default$C as SymptomSharkLogEntry, export_default$v as SymptomSharkLogEntryEdit, export_default$s as SymptomSharkLogEntryEditView, export_default$x as SymptomSharkLogEntryList, export_default$w as SymptomSharkLogToday, export_default$D as SymptomSharkOverallExperienceChart, export_default$r as SymptomSharkSymptomDetailView, export_default$z as SymptomSharkSymptomSeverityChart, export_default$A as SymptomSharkSymptomSeveritySummary, export_default$y as SymptomSharkSymptomTreatmentFilters, export_default$B as SymptomSharkSymptomTreatmentHistograms, export_default$u as SymptomSharkVisualizationCoordinator, export_default$17 as TextBlock, export_default$16 as Title, export_default$15 as TrackerItem, TreatmentConfiguration, TreatmentReference, export_default$14 as UnstyledButton, export_default$13 as ViewHeader, export_default$12 as WeekCalendar, WeekStartsOn, export_default$2 as YouTubeStep, export_default$1 as YouTubeStepContainer, checkDailyDataAvailability, convertToSymptomSharkConfiguration, getDayKey, getMonthStart, getWeekStart, language, queryDailyData, registerDailyDataProvider, resolveColor, export_default as useInterval };
|