@careevolution/mydatahelps-ui 2.7.1-Colors.3 → 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;
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
 
@@ -650,6 +654,11 @@ interface SurveyTaskListProps {
650
654
  previewState?: SurveyTaskListListPreviewState;
651
655
  variant?: "noCard" | "singleCard" | "multiCard";
652
656
  innerRef?: React.Ref<HTMLDivElement>;
657
+ titleColor?: ColorDefinition;
658
+ cardBackgoundColor?: ColorDefinition;
659
+ cardStyle?: React.CSSProperties;
660
+ buttonVariant?: ButtonVariant;
661
+ buttonColor?: ColorDefinition;
653
662
  }
654
663
  declare type SurveyTaskListListPreviewState = "IncompleteTasks" | "CompleteTasks";
655
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.3",
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",