@careevolution/mydatahelps-ui 1.9.0 → 1.9.2-DarkMode.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 (42) hide show
  1. package/dist/cjs/index.js +11 -3
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/presentational/ActivityMeter/ActivityMeter.d.ts +1 -0
  4. package/dist/cjs/types/components/presentational/Button/Button.d.ts +4 -0
  5. package/dist/cjs/types/components/presentational/Button/Button.stories.d.ts +3 -0
  6. package/dist/cjs/types/components/presentational/DateRangeNavigator/DateRangeNavigator.d.ts +2 -0
  7. package/dist/cjs/types/components/presentational/DateRangeNavigator/DateRangeNavigator.stories.d.ts +1 -0
  8. package/dist/cjs/types/components/presentational/DayTrackerSymbol/DayTrackerSymbol.d.ts +1 -0
  9. package/dist/cjs/types/components/presentational/Face/Face.stories.d.ts +1 -0
  10. package/dist/cjs/types/components/presentational/Histogram/Histogram.d.ts +2 -0
  11. package/dist/cjs/types/components/presentational/Layout/Layout.d.ts +8 -1
  12. package/dist/cjs/types/components/presentational/LoadingIndicator/LoadingIndicator.d.ts +6 -1
  13. package/dist/cjs/types/components/presentational/NavigationBar/NavigationBar.d.ts +3 -1
  14. package/dist/cjs/types/components/presentational/NavigationBar/NavigationBar.stories.d.ts +2 -0
  15. package/dist/cjs/types/components/presentational/Section/Section.d.ts +1 -0
  16. package/dist/cjs/types/components/presentational/SegmentedControl/SegmentedControl.d.ts +2 -0
  17. package/dist/cjs/types/components/presentational/Switch/Switch.d.ts +1 -0
  18. package/dist/cjs/types/components/presentational/TextBlock/TextBlock.d.ts +1 -0
  19. package/dist/cjs/types/components/presentational/TrackerItem/TrackerItem.d.ts +1 -0
  20. package/dist/cjs/types/helpers/globalCss.d.ts +3 -0
  21. package/dist/esm/index.js +11 -3
  22. package/dist/esm/index.js.map +1 -1
  23. package/dist/esm/types/components/presentational/ActivityMeter/ActivityMeter.d.ts +1 -0
  24. package/dist/esm/types/components/presentational/Button/Button.d.ts +4 -0
  25. package/dist/esm/types/components/presentational/Button/Button.stories.d.ts +3 -0
  26. package/dist/esm/types/components/presentational/DateRangeNavigator/DateRangeNavigator.d.ts +2 -0
  27. package/dist/esm/types/components/presentational/DateRangeNavigator/DateRangeNavigator.stories.d.ts +1 -0
  28. package/dist/esm/types/components/presentational/DayTrackerSymbol/DayTrackerSymbol.d.ts +1 -0
  29. package/dist/esm/types/components/presentational/Face/Face.stories.d.ts +1 -0
  30. package/dist/esm/types/components/presentational/Histogram/Histogram.d.ts +2 -0
  31. package/dist/esm/types/components/presentational/Layout/Layout.d.ts +8 -1
  32. package/dist/esm/types/components/presentational/LoadingIndicator/LoadingIndicator.d.ts +6 -1
  33. package/dist/esm/types/components/presentational/NavigationBar/NavigationBar.d.ts +3 -1
  34. package/dist/esm/types/components/presentational/NavigationBar/NavigationBar.stories.d.ts +2 -0
  35. package/dist/esm/types/components/presentational/Section/Section.d.ts +1 -0
  36. package/dist/esm/types/components/presentational/SegmentedControl/SegmentedControl.d.ts +2 -0
  37. package/dist/esm/types/components/presentational/Switch/Switch.d.ts +1 -0
  38. package/dist/esm/types/components/presentational/TextBlock/TextBlock.d.ts +1 -0
  39. package/dist/esm/types/components/presentational/TrackerItem/TrackerItem.d.ts +1 -0
  40. package/dist/esm/types/helpers/globalCss.d.ts +3 -0
  41. package/dist/index.d.ts +29 -3
  42. package/package.json +6 -5
@@ -8,5 +8,6 @@ export interface ActivityMeterProps {
8
8
  averageFillPercent: number;
9
9
  color: string;
10
10
  message?: string;
11
+ className?: string;
11
12
  }
12
13
  export default function (props: ActivityMeterProps): JSX.Element;
@@ -8,5 +8,9 @@ export interface ButtonProps {
8
8
  * */
9
9
  disabled?: boolean;
10
10
  onClick: Function;
11
+ className?: string;
12
+ color?: string;
13
+ loading?: boolean;
14
+ variant?: "default" | "subtle";
11
15
  }
12
16
  export default function (props: ButtonProps): JSX.Element;
@@ -4,3 +4,6 @@ declare const _default: ComponentMeta<typeof Button>;
4
4
  export default _default;
5
5
  export declare const Enabled: ComponentStory<typeof Button>;
6
6
  export declare const Disabled: ComponentStory<typeof Button>;
7
+ export declare const CustomColor: ComponentStory<typeof Button>;
8
+ export declare const Loading: ComponentStory<typeof Button>;
9
+ export declare const SubtleVariant: ComponentStory<typeof Button>;
@@ -4,6 +4,8 @@ import "./DateRangeNavigator.css";
4
4
  export interface DateRangeNavigatorProps {
5
5
  intervalType: "Week" | "Month";
6
6
  intervalStart: Date;
7
+ variant?: "default" | "rounded";
7
8
  onIntervalChange(newIntervalStart: Date, newIntervalEnd: Date): void;
9
+ className?: string;
8
10
  }
9
11
  export default function (props: DateRangeNavigatorProps): JSX.Element;
@@ -4,3 +4,4 @@ declare const _default: ComponentMeta<typeof DateRangeNavigator>;
4
4
  export default _default;
5
5
  export declare const Month: ComponentStory<typeof DateRangeNavigator>;
6
6
  export declare const Week: ComponentStory<typeof DateRangeNavigator>;
7
+ export declare const Rounded: ComponentStory<typeof DateRangeNavigator>;
@@ -3,5 +3,6 @@ import "./DayTrackerSymbol.css";
3
3
  export interface DayTrackerSymbolProps {
4
4
  primaryColors: string[];
5
5
  secondaryColors: string[];
6
+ className?: string;
6
7
  }
7
8
  export default function (props: DayTrackerSymbolProps): JSX.Element;
@@ -3,4 +3,5 @@ import Face from "./Face";
3
3
  declare const _default: ComponentMeta<typeof Face>;
4
4
  export default _default;
5
5
  export declare const Default: ComponentStory<typeof Face>;
6
+ export declare const Unselected: ComponentStory<typeof Face>;
6
7
  export declare const Clickable: ComponentStory<typeof Face>;
@@ -5,6 +5,8 @@ export interface HistogramProps {
5
5
  label: string;
6
6
  color: string;
7
7
  value: number;
8
+ onSelect?(): void;
8
9
  }[];
10
+ className?: string;
9
11
  }
10
12
  export default function (props: HistogramProps): JSX.Element;
@@ -3,8 +3,15 @@ import { StatusBarStyle } from '@careevolution/mydatahelps-js';
3
3
  import "./Layout.css";
4
4
  export interface LayoutProps {
5
5
  children?: React.ReactNode;
6
- stylesheetPath?: string;
7
6
  bodyBackgroundColor?: string;
8
7
  statusBarStyle?: StatusBarStyle;
8
+ className?: string;
9
+ autoDarkMode?: boolean;
10
+ noGlobalStyles?: boolean;
11
+ stylesheetPath?: string;
12
+ }
13
+ export interface LayoutContext {
14
+ darkMode: boolean;
9
15
  }
16
+ export declare const LayoutContext: React.Context<LayoutContext>;
10
17
  export default function (props: LayoutProps): JSX.Element;
@@ -1,5 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import "./LoadingIndicator.css";
3
3
  import '@fortawesome/fontawesome-svg-core/styles.css';
4
- declare function LoadingIndicator(): JSX.Element;
4
+ export interface LoadingIndicatorProps {
5
+ variant?: "default" | "inline";
6
+ color?: string;
7
+ className?: string;
8
+ }
9
+ declare function LoadingIndicator(props: LoadingIndicatorProps): JSX.Element;
5
10
  export default LoadingIndicator;
@@ -2,11 +2,13 @@ import React from 'react';
2
2
  import "./NavigationBar.css";
3
3
  import '@fortawesome/fontawesome-svg-core/styles.css';
4
4
  export interface NavigationBarProps {
5
- title: string;
5
+ title?: string;
6
6
  showBackButton?: boolean;
7
7
  showCloseButton?: boolean;
8
8
  children?: React.ReactNode;
9
9
  closeButtonText?: string;
10
10
  backButtonText?: string;
11
+ className?: string;
12
+ variant?: "default" | "compressed";
11
13
  }
12
14
  export default function (props: NavigationBarProps): JSX.Element;
@@ -5,4 +5,6 @@ export default _default;
5
5
  export declare const Drilldown: ComponentStory<typeof NavigationBar>;
6
6
  export declare const Modal: ComponentStory<typeof NavigationBar>;
7
7
  export declare const CustomButtons: ComponentStory<typeof NavigationBar>;
8
+ export declare const Compressed: ComponentStory<typeof NavigationBar>;
8
9
  export declare const WithDateRangeNavigator: ComponentStory<typeof NavigationBar>;
10
+ export declare const WithRoundedDateRangeNavigator: ComponentStory<typeof NavigationBar>;
@@ -2,5 +2,6 @@ import React from 'react';
2
2
  import "./Section.css";
3
3
  export interface SectionProps {
4
4
  children?: React.ReactNode;
5
+ className?: string;
5
6
  }
6
7
  export default function (props: SectionProps): JSX.Element | null;
@@ -7,5 +7,7 @@ export interface SegmentedControlProps {
7
7
  }[];
8
8
  selectedSegment: string;
9
9
  onSegmentSelected: Function;
10
+ className?: string;
11
+ color?: string;
10
12
  }
11
13
  export default function (props: SegmentedControlProps): JSX.Element;
@@ -4,5 +4,6 @@ export interface SwitchProps {
4
4
  isOn: Boolean;
5
5
  onBackgroundColor?: string;
6
6
  onValueChanged(value: boolean): void;
7
+ className?: string;
7
8
  }
8
9
  export default function (props: SwitchProps): JSX.Element;
@@ -2,5 +2,6 @@ import React from 'react';
2
2
  import "./TextBlock.css";
3
3
  export interface TextBlockProps {
4
4
  children?: React.ReactNode;
5
+ className?: string;
5
6
  }
6
7
  export default function (props: TextBlockProps): JSX.Element | null;
@@ -7,5 +7,6 @@ export interface TrackerItemProps {
7
7
  bordered?: boolean;
8
8
  badge?: string;
9
9
  onClick?: Function;
10
+ className?: string;
10
11
  }
11
12
  export default function (props: TrackerItemProps): JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const defaultVariables: import("@emotion/utils").SerializedStyles;
2
+ export declare const darkMode: import("@emotion/utils").SerializedStyles;
3
+ export declare const global: import("@emotion/utils").SerializedStyles;
package/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ interface ActivityMeterProps {
22
22
  averageFillPercent: number;
23
23
  color: string;
24
24
  message?: string;
25
+ className?: string;
25
26
  }
26
27
  declare function export_default$U(props: ActivityMeterProps): JSX.Element;
27
28
 
@@ -33,6 +34,10 @@ interface ButtonProps {
33
34
  * */
34
35
  disabled?: boolean;
35
36
  onClick: Function;
37
+ className?: string;
38
+ color?: string;
39
+ loading?: boolean;
40
+ variant?: "default" | "subtle";
36
41
  }
37
42
  declare function export_default$T(props: ButtonProps): JSX.Element;
38
43
 
@@ -61,13 +66,16 @@ declare function export_default$Q(props: CardTitleProps): JSX.Element;
61
66
  interface DateRangeNavigatorProps {
62
67
  intervalType: "Week" | "Month";
63
68
  intervalStart: Date;
69
+ variant?: "default" | "rounded";
64
70
  onIntervalChange(newIntervalStart: Date, newIntervalEnd: Date): void;
71
+ className?: string;
65
72
  }
66
73
  declare function export_default$P(props: DateRangeNavigatorProps): JSX.Element;
67
74
 
68
75
  interface DayTrackerSymbolProps {
69
76
  primaryColors: string[];
70
77
  secondaryColors: string[];
78
+ className?: string;
71
79
  }
72
80
  declare function export_default$O(props: DayTrackerSymbolProps): JSX.Element;
73
81
 
@@ -84,32 +92,45 @@ interface HistogramProps {
84
92
  label: string;
85
93
  color: string;
86
94
  value: number;
95
+ onSelect?(): void;
87
96
  }[];
97
+ className?: string;
88
98
  }
89
99
  declare function export_default$M(props: HistogramProps): JSX.Element;
90
100
 
91
101
  interface LayoutProps {
92
102
  children?: React.ReactNode;
93
- stylesheetPath?: string;
94
103
  bodyBackgroundColor?: string;
95
104
  statusBarStyle?: StatusBarStyle;
105
+ className?: string;
106
+ autoDarkMode?: boolean;
107
+ noGlobalStyles?: boolean;
108
+ stylesheetPath?: string;
96
109
  }
97
110
  declare function export_default$L(props: LayoutProps): JSX.Element;
98
111
 
99
- declare function LoadingIndicator(): JSX.Element;
112
+ interface LoadingIndicatorProps {
113
+ variant?: "default" | "inline";
114
+ color?: string;
115
+ className?: string;
116
+ }
117
+ declare function LoadingIndicator(props: LoadingIndicatorProps): JSX.Element;
100
118
 
101
119
  interface NavigationBarProps {
102
- title: string;
120
+ title?: string;
103
121
  showBackButton?: boolean;
104
122
  showCloseButton?: boolean;
105
123
  children?: React.ReactNode;
106
124
  closeButtonText?: string;
107
125
  backButtonText?: string;
126
+ className?: string;
127
+ variant?: "default" | "compressed";
108
128
  }
109
129
  declare function export_default$K(props: NavigationBarProps): JSX.Element;
110
130
 
111
131
  interface SectionProps {
112
132
  children?: React.ReactNode;
133
+ className?: string;
113
134
  }
114
135
  declare function export_default$J(props: SectionProps): JSX.Element | null;
115
136
 
@@ -120,6 +141,8 @@ interface SegmentedControlProps {
120
141
  }[];
121
142
  selectedSegment: string;
122
143
  onSegmentSelected: Function;
144
+ className?: string;
145
+ color?: string;
123
146
  }
124
147
  declare function export_default$I(props: SegmentedControlProps): JSX.Element;
125
148
 
@@ -159,6 +182,7 @@ interface SwitchProps {
159
182
  isOn: Boolean;
160
183
  onBackgroundColor?: string;
161
184
  onValueChanged(value: boolean): void;
185
+ className?: string;
162
186
  }
163
187
  declare function export_default$C(props: SwitchProps): JSX.Element;
164
188
 
@@ -169,6 +193,7 @@ declare function StatusBarBackgroundProps(props: StatusBarBackgroundProps): JSX.
169
193
 
170
194
  interface TextBlockProps {
171
195
  children?: React.ReactNode;
196
+ className?: string;
172
197
  }
173
198
  declare function export_default$B(props: TextBlockProps): JSX.Element | null;
174
199
 
@@ -179,6 +204,7 @@ interface TrackerItemProps {
179
204
  bordered?: boolean;
180
205
  badge?: string;
181
206
  onClick?: Function;
207
+ className?: string;
182
208
  }
183
209
  declare function export_default$A(props: TrackerItemProps): JSX.Element;
184
210
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@careevolution/mydatahelps-ui",
3
- "version": "1.9.0",
3
+ "version": "1.9.2-DarkMode.10",
4
4
  "description": "MyDataHelps UI Library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -52,10 +52,11 @@
52
52
  "typescript": "^4.6.2"
53
53
  },
54
54
  "dependencies": {
55
- "@fortawesome/fontawesome-svg-core": "^6.0.0",
56
- "@fortawesome/free-regular-svg-icons": "^6.0.0",
57
- "@fortawesome/free-solid-svg-icons": "^6.0.0",
58
- "@fortawesome/react-fontawesome": "^0.1.17",
55
+ "@emotion/react": "^11.7.1",
56
+ "@fortawesome/fontawesome-svg-core": "^6.4.0",
57
+ "@fortawesome/free-regular-svg-icons": "^6.4.0",
58
+ "@fortawesome/free-solid-svg-icons": "^6.4.0",
59
+ "@fortawesome/react-fontawesome": "^0.2.0",
59
60
  "date-fns": "^2.28.0",
60
61
  "html-react-parser": "^3.0.8",
61
62
  "markdown-it": "^13.0.1",