@careevolution/mydatahelps-ui 2.7.1-Colors.2 → 2.7.1-Colors.4

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.
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  import "./SurveyTaskList.css";
3
3
  import { SurveyTaskStatus } from "@careevolution/mydatahelps-js";
4
+ import { ColorDefinition } from '../../../helpers/colors';
5
+ import { ButtonVariant } from '../../presentational/Button/Button';
4
6
  export interface SurveyTaskListProps {
5
7
  status: SurveyTaskStatus;
6
8
  limit?: number;
@@ -10,6 +12,11 @@ export interface SurveyTaskListProps {
10
12
  previewState?: SurveyTaskListListPreviewState;
11
13
  variant?: "noCard" | "singleCard" | "multiCard";
12
14
  innerRef?: React.Ref<HTMLDivElement>;
15
+ titleColor?: ColorDefinition;
16
+ cardBackgoundColor?: ColorDefinition;
17
+ cardStyle?: React.CSSProperties;
18
+ buttonVariant?: ButtonVariant;
19
+ buttonColor?: ColorDefinition;
13
20
  }
14
21
  export declare type SurveyTaskListListPreviewState = "IncompleteTasks" | "CompleteTasks";
15
22
  export default function (props: SurveyTaskListProps): React.JSX.Element | null;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import "./Button.css";
3
3
  import { ColorDefinition } from '../../../helpers/colors';
4
+ export declare type ButtonVariant = "default" | "subtle" | "light";
4
5
  export interface ButtonProps {
5
6
  children?: React.ReactNode;
6
7
  disabled?: boolean;
@@ -8,7 +9,7 @@ export interface ButtonProps {
8
9
  className?: string;
9
10
  color?: ColorDefinition;
10
11
  loading?: boolean;
11
- variant?: "default" | "subtle" | "light";
12
+ variant?: ButtonVariant;
12
13
  innerRef?: React.Ref<HTMLButtonElement>;
13
14
  defaultMargin?: boolean;
14
15
  fullWidth?: boolean;
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import "./CardTitle.css";
3
+ import { ColorDefinition } from '../../../helpers/colors';
3
4
  export interface CardTitleProps {
4
5
  title: string;
5
6
  onDetailClick?: Function;
6
7
  detailLinkText?: string;
7
8
  innerRef?: React.Ref<HTMLDivElement>;
9
+ color?: ColorDefinition;
8
10
  }
9
11
  export default function (props: CardTitleProps): React.JSX.Element;
@@ -3,10 +3,14 @@ import "./SingleSurveyTask.css";
3
3
  import { SurveyTask } from "@careevolution/mydatahelps-js";
4
4
  import { IconDefinition } from '@fortawesome/fontawesome-common-types';
5
5
  import '@fortawesome/fontawesome-svg-core/styles.css';
6
+ import { ColorDefinition } from '../../../helpers/colors';
7
+ import { ButtonVariant } from '../Button/Button';
6
8
  export interface SingleSurveyTaskProps {
7
9
  task: SurveyTask;
8
10
  descriptionIcon?: IconDefinition;
9
11
  disableClick?: boolean;
10
12
  innerRef?: React.Ref<HTMLDivElement>;
13
+ buttonColor?: ColorDefinition;
14
+ buttonVariant?: ButtonVariant;
11
15
  }
12
16
  export default function (props: SingleSurveyTaskProps): React.JSX.Element | null;
@@ -1,7 +1,10 @@
1
1
  import React from "react";
2
2
  import "./ViewHeader.css";
3
+ import { ColorDefinition } from "../../../helpers/colors";
3
4
  export interface ViewHeaderProps {
4
5
  title?: string;
5
6
  subtitle?: string;
7
+ titleColor?: ColorDefinition;
8
+ subtitleColor?: ColorDefinition;
6
9
  }
7
10
  export default function (props: ViewHeaderProps): React.JSX.Element | null;
package/dist/index.d.ts CHANGED
@@ -41,6 +41,7 @@ interface ActivityMeterProps {
41
41
  }
42
42
  declare function export_default$1r(props: ActivityMeterProps): React.JSX.Element;
43
43
 
44
+ declare type ButtonVariant = "default" | "subtle" | "light";
44
45
  interface ButtonProps {
45
46
  children?: React.ReactNode;
46
47
  disabled?: boolean;
@@ -48,7 +49,7 @@ interface ButtonProps {
48
49
  className?: string;
49
50
  color?: ColorDefinition;
50
51
  loading?: boolean;
51
- variant?: "default" | "subtle" | "light";
52
+ variant?: ButtonVariant;
52
53
  innerRef?: React.Ref<HTMLButtonElement>;
53
54
  defaultMargin?: boolean;
54
55
  fullWidth?: boolean;
@@ -81,6 +82,7 @@ interface CardTitleProps {
81
82
  onDetailClick?: Function;
82
83
  detailLinkText?: string;
83
84
  innerRef?: React.Ref<HTMLDivElement>;
85
+ color?: ColorDefinition;
84
86
  }
85
87
  declare function export_default$1n(props: CardTitleProps): React.JSX.Element;
86
88
 
@@ -236,6 +238,8 @@ interface SingleSurveyTaskProps {
236
238
  descriptionIcon?: IconDefinition$1;
237
239
  disableClick?: boolean;
238
240
  innerRef?: React.Ref<HTMLDivElement>;
241
+ buttonColor?: ColorDefinition;
242
+ buttonVariant?: ButtonVariant;
239
243
  }
240
244
  declare function export_default$1a(props: SingleSurveyTaskProps): React.JSX.Element | null;
241
245
 
@@ -309,6 +313,8 @@ declare function export_default$14(props: UnstyledButtonProps): React.JSX.Elemen
309
313
  interface ViewHeaderProps {
310
314
  title?: string;
311
315
  subtitle?: string;
316
+ titleColor?: ColorDefinition;
317
+ subtitleColor?: ColorDefinition;
312
318
  }
313
319
  declare function export_default$13(props: ViewHeaderProps): React.JSX.Element | null;
314
320
 
@@ -648,6 +654,11 @@ interface SurveyTaskListProps {
648
654
  previewState?: SurveyTaskListListPreviewState;
649
655
  variant?: "noCard" | "singleCard" | "multiCard";
650
656
  innerRef?: React.Ref<HTMLDivElement>;
657
+ titleColor?: ColorDefinition;
658
+ cardBackgoundColor?: ColorDefinition;
659
+ cardStyle?: React.CSSProperties;
660
+ buttonVariant?: ButtonVariant;
661
+ buttonColor?: ColorDefinition;
651
662
  }
652
663
  declare type SurveyTaskListListPreviewState = "IncompleteTasks" | "CompleteTasks";
653
664
  declare function export_default$F(props: SurveyTaskListProps): React.JSX.Element | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@careevolution/mydatahelps-ui",
3
- "version": "2.7.1-Colors.2",
3
+ "version": "2.7.1-Colors.4",
4
4
  "description": "MyDataHelps UI Library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",