@careevolution/mydatahelps-ui 2.7.1-Colors.5 → 2.7.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.
Files changed (38) hide show
  1. package/dist/cjs/index.js +8 -8
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/container/SurveyTaskList/SurveyTaskList.d.ts +0 -7
  4. package/dist/cjs/types/components/presentational/Action/Action.d.ts +0 -3
  5. package/dist/cjs/types/components/presentational/Button/Button.d.ts +2 -6
  6. package/dist/cjs/types/components/presentational/Card/Card.d.ts +0 -3
  7. package/dist/cjs/types/components/presentational/CardTitle/CardTitle.d.ts +0 -2
  8. package/dist/cjs/types/components/presentational/Layout/Layout.d.ts +2 -3
  9. package/dist/cjs/types/components/presentational/NavigationBar/NavigationBar.d.ts +0 -4
  10. package/dist/cjs/types/components/presentational/Section/Section.d.ts +0 -3
  11. package/dist/cjs/types/components/presentational/SingleSurveyTask/SingleSurveyTask.d.ts +0 -4
  12. package/dist/cjs/types/components/presentational/TextBlock/TextBlock.d.ts +0 -3
  13. package/dist/cjs/types/components/presentational/Title/Title.d.ts +0 -2
  14. package/dist/cjs/types/components/presentational/ViewHeader/ViewHeader.d.ts +0 -3
  15. package/dist/cjs/types/components/view/BlankView/BlankView.d.ts +1 -6
  16. package/dist/cjs/types/index.d.ts +0 -1
  17. package/dist/esm/index.js +8 -8
  18. package/dist/esm/index.js.map +1 -1
  19. package/dist/esm/types/components/container/SurveyTaskList/SurveyTaskList.d.ts +0 -7
  20. package/dist/esm/types/components/presentational/Action/Action.d.ts +0 -3
  21. package/dist/esm/types/components/presentational/Button/Button.d.ts +2 -6
  22. package/dist/esm/types/components/presentational/Card/Card.d.ts +0 -3
  23. package/dist/esm/types/components/presentational/CardTitle/CardTitle.d.ts +0 -2
  24. package/dist/esm/types/components/presentational/Layout/Layout.d.ts +2 -3
  25. package/dist/esm/types/components/presentational/NavigationBar/NavigationBar.d.ts +0 -4
  26. package/dist/esm/types/components/presentational/Section/Section.d.ts +0 -3
  27. package/dist/esm/types/components/presentational/SingleSurveyTask/SingleSurveyTask.d.ts +0 -4
  28. package/dist/esm/types/components/presentational/TextBlock/TextBlock.d.ts +0 -3
  29. package/dist/esm/types/components/presentational/Title/Title.d.ts +0 -2
  30. package/dist/esm/types/components/presentational/ViewHeader/ViewHeader.d.ts +0 -3
  31. package/dist/esm/types/components/view/BlankView/BlankView.d.ts +1 -6
  32. package/dist/esm/types/index.d.ts +0 -1
  33. package/dist/index.d.ts +6 -41
  34. package/package.json +1 -1
  35. package/dist/cjs/types/components/presentational/TextBlock/TextBlock.stories.d.ts +0 -39
  36. package/dist/cjs/types/helpers/colors.d.ts +0 -5
  37. package/dist/esm/types/components/presentational/TextBlock/TextBlock.stories.d.ts +0 -39
  38. package/dist/esm/types/helpers/colors.d.ts +0 -5
@@ -1,8 +1,6 @@
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';
6
4
  export interface SurveyTaskListProps {
7
5
  status: SurveyTaskStatus;
8
6
  limit?: number;
@@ -12,11 +10,6 @@ export interface SurveyTaskListProps {
12
10
  previewState?: SurveyTaskListListPreviewState;
13
11
  variant?: "noCard" | "singleCard" | "multiCard";
14
12
  innerRef?: React.Ref<HTMLDivElement>;
15
- titleColor?: ColorDefinition;
16
- cardBackgoundColor?: ColorDefinition;
17
- cardStyle?: React.CSSProperties;
18
- buttonVariant?: ButtonVariant;
19
- buttonColor?: ColorDefinition;
20
13
  }
21
14
  export declare type SurveyTaskListListPreviewState = "IncompleteTasks" | "CompleteTasks";
22
15
  export default function (props: SurveyTaskListProps): React.JSX.Element | null;
@@ -2,7 +2,6 @@ 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';
6
5
  export interface ActionProps {
7
6
  title?: string;
8
7
  titleIcon?: ReactElement;
@@ -17,7 +16,5 @@ export interface ActionProps {
17
16
  indicatorPosition?: "default" | "topRight";
18
17
  bottomBorder?: boolean;
19
18
  innerRef?: React.Ref<HTMLButtonElement>;
20
- titleColor?: ColorDefinition;
21
- subtitleColor?: ColorDefinition;
22
19
  }
23
20
  export default function (props: ActionProps): React.JSX.Element;
@@ -1,17 +1,13 @@
1
1
  import React from 'react';
2
2
  import "./Button.css";
3
- import { ColorDefinition } from '../../../helpers/colors';
4
- export declare type ButtonVariant = "default" | "subtle" | "light";
5
3
  export interface ButtonProps {
6
4
  children?: React.ReactNode;
7
5
  disabled?: boolean;
8
6
  onClick: Function;
9
7
  className?: string;
10
- color?: ColorDefinition;
8
+ color?: string;
11
9
  loading?: boolean;
12
- variant?: ButtonVariant;
10
+ variant?: "default" | "subtle" | "light";
13
11
  innerRef?: React.Ref<HTMLButtonElement>;
14
- defaultMargin?: boolean;
15
- fullWidth?: boolean;
16
12
  }
17
13
  export default function (props: ButtonProps): React.JSX.Element;
@@ -1,13 +1,10 @@
1
1
  import React from 'react';
2
2
  import "./Card.css";
3
- import { ColorDefinition } from '../../../helpers/colors';
4
3
  export interface CardProps {
5
4
  className?: string;
6
5
  children?: React.ReactNode;
7
6
  allowOverflow?: boolean;
8
7
  innerRef?: React.Ref<HTMLDivElement>;
9
8
  variant?: "default" | "subtle" | "highlight";
10
- backgroundColor?: ColorDefinition;
11
- style?: React.CSSProperties;
12
9
  }
13
10
  export default function (props: CardProps): React.JSX.Element | null;
@@ -1,11 +1,9 @@
1
1
  import React from 'react';
2
2
  import "./CardTitle.css";
3
- import { ColorDefinition } from '../../../helpers/colors';
4
3
  export interface CardTitleProps {
5
4
  title: string;
6
5
  onDetailClick?: Function;
7
6
  detailLinkText?: string;
8
7
  innerRef?: React.Ref<HTMLDivElement>;
9
- color?: ColorDefinition;
10
8
  }
11
9
  export default function (props: CardTitleProps): React.JSX.Element;
@@ -1,11 +1,10 @@
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';
5
4
  export interface LayoutProps {
6
5
  children?: React.ReactNode;
7
- bodyBackgroundColor?: ColorDefinition;
8
- primaryColor?: ColorDefinition;
6
+ bodyBackgroundColor?: string;
7
+ primaryColor?: string;
9
8
  statusBarStyle?: StatusBarStyle;
10
9
  className?: string;
11
10
  noGlobalStyles?: boolean;
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import "./NavigationBar.css";
3
3
  import '@fortawesome/fontawesome-svg-core/styles.css';
4
- import { ColorDefinition } from '../../../helpers/colors';
5
4
  export interface NavigationBarProps {
6
5
  title?: string;
7
6
  subtitle?: string;
@@ -12,8 +11,5 @@ export interface NavigationBarProps {
12
11
  backButtonText?: string;
13
12
  className?: string;
14
13
  variant?: "default" | "compressed";
15
- titleColor?: ColorDefinition;
16
- subtitleColor?: ColorDefinition;
17
- buttonColor?: ColorDefinition;
18
14
  }
19
15
  export default function (props: NavigationBarProps): React.JSX.Element;
@@ -1,12 +1,9 @@
1
1
  import React from 'react';
2
2
  import "./Section.css";
3
- import { ColorDefinition } from '../../../helpers/colors';
4
3
  export interface SectionProps {
5
4
  children?: React.ReactNode;
6
5
  className?: string;
7
6
  noTopMargin?: boolean;
8
7
  innerRef?: React.Ref<HTMLDivElement>;
9
- backgroundColor?: ColorDefinition;
10
- style?: React.CSSProperties;
11
8
  }
12
9
  export default function (props: SectionProps): React.JSX.Element | null;
@@ -3,14 +3,10 @@ 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';
8
6
  export interface SingleSurveyTaskProps {
9
7
  task: SurveyTask;
10
8
  descriptionIcon?: IconDefinition;
11
9
  disableClick?: boolean;
12
10
  innerRef?: React.Ref<HTMLDivElement>;
13
- buttonColor?: ColorDefinition;
14
- buttonVariant?: ButtonVariant;
15
11
  }
16
12
  export default function (props: SingleSurveyTaskProps): React.JSX.Element | null;
@@ -1,11 +1,8 @@
1
1
  import React from 'react';
2
2
  import "./TextBlock.css";
3
- import { ColorDefinition } from '../../../helpers/colors';
4
3
  export interface TextBlockProps {
5
4
  children?: React.ReactNode;
6
5
  className?: string;
7
6
  innerRef?: React.Ref<HTMLDivElement>;
8
- color?: ColorDefinition;
9
- style?: React.CSSProperties;
10
7
  }
11
8
  export default function (props: TextBlockProps): React.JSX.Element | null;
@@ -1,8 +1,6 @@
1
1
  import React from "react";
2
2
  import "./Title.css";
3
- import { ColorDefinition } from "../../../helpers/colors";
4
3
  export interface TitleProps {
5
- color?: ColorDefinition;
6
4
  order?: 1 | 2 | 3 | 4 | 5 | 6;
7
5
  children?: React.ReactNode;
8
6
  style?: React.CSSProperties;
@@ -1,10 +1,7 @@
1
1
  import React from "react";
2
2
  import "./ViewHeader.css";
3
- import { ColorDefinition } from "../../../helpers/colors";
4
3
  export interface ViewHeaderProps {
5
4
  title?: string;
6
5
  subtitle?: string;
7
- titleColor?: ColorDefinition;
8
- subtitleColor?: ColorDefinition;
9
6
  }
10
7
  export default function (props: ViewHeaderProps): React.JSX.Element | null;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { ColorDefinition } from '../../../helpers/colors';
3
2
  export interface BlankViewProps {
4
3
  children?: React.ReactNode;
5
4
  title?: string;
@@ -7,10 +6,6 @@ export interface BlankViewProps {
7
6
  showCloseButton?: boolean;
8
7
  showBackButton?: boolean;
9
8
  colorScheme?: "auto" | "light" | "dark";
10
- primaryColor?: ColorDefinition;
11
- bodyBackgroundColor?: ColorDefinition;
12
- titleColor?: ColorDefinition;
13
- subtitleColor?: ColorDefinition;
14
- navigationBarButtonColor?: ColorDefinition;
9
+ primaryColor?: string;
15
10
  }
16
11
  export default function (props: BlankViewProps): React.JSX.Element;
@@ -4,4 +4,3 @@ export * from './helpers/query-daily-data';
4
4
  export * from './helpers/language';
5
5
  export { default as getDayKey } from './helpers/get-day-key';
6
6
  export * from './helpers/get-interval-start';
7
- export * from './helpers/colors';