@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;