@cruk/cruk-react-components 1.1.5 → 1.1.8

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 (53) hide show
  1. package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.es.js +1 -1
  2. package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.es.js.map +1 -1
  3. package/lib/cjs/src/components/Button/styles.js +1 -1
  4. package/lib/cjs/src/components/Carousel/Dots.js +1 -1
  5. package/lib/cjs/src/components/Carousel/index.js +1 -1
  6. package/lib/cjs/src/components/Carousel/styles.js +1 -1
  7. package/lib/cjs/src/components/Footer/index.js +1 -1
  8. package/lib/cjs/src/components/Modal/README.md.js +1 -1
  9. package/lib/cjs/src/components/Modal/README.md.js.map +1 -1
  10. package/lib/cjs/src/components/Modal/index.js +1 -1
  11. package/lib/cjs/src/components/Modal/styles.js +1 -1
  12. package/lib/components/AddressLookup/index.d.ts +1 -26
  13. package/lib/components/Button/index.d.ts +1 -19
  14. package/lib/components/Carousel/Dots.d.ts +4 -4
  15. package/lib/components/Carousel/index.d.ts +10 -3
  16. package/lib/components/Carousel/styles.d.ts +6 -3
  17. package/lib/components/Checkbox/index.d.ts +3 -2
  18. package/lib/components/Collapse/styles.d.ts +1 -11
  19. package/lib/components/Divider.d.ts +5 -2
  20. package/lib/components/Footer/index.d.ts +3 -2
  21. package/lib/components/Icon/index.d.ts +0 -1
  22. package/lib/components/IconFa/index.d.ts +0 -1
  23. package/lib/components/LabelWrapper/index.d.ts +1 -0
  24. package/lib/components/LegendWrapper/index.d.ts +2 -2
  25. package/lib/components/Link/index.d.ts +1 -21
  26. package/lib/components/Loader/index.d.ts +1 -2
  27. package/lib/components/Modal/index.d.ts +8 -3
  28. package/lib/components/Modal/styles.d.ts +11 -15
  29. package/lib/components/Pagination/index.d.ts +2 -1
  30. package/lib/components/PopOver/index.d.ts +3 -2
  31. package/lib/components/ProgressBar/index.d.ts +3 -2
  32. package/lib/components/Radio/index.d.ts +3 -2
  33. package/lib/components/RadioConsent/styles.d.ts +1 -1
  34. package/lib/components/Step/index.d.ts +2 -1
  35. package/lib/components/TestWrapper.d.ts +7 -3
  36. package/lib/components/ThemeCheatSheet.d.ts +1 -3
  37. package/lib/components/Totaliser/styles.d.ts +1 -2
  38. package/lib/docs/Docs.d.ts +2 -0
  39. package/lib/docs/index.d.ts +1 -0
  40. package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.es.js +1 -1
  41. package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.es.js.map +1 -1
  42. package/lib/es/src/components/Button/styles.js +1 -1
  43. package/lib/es/src/components/Carousel/Dots.js +1 -1
  44. package/lib/es/src/components/Carousel/index.js +1 -1
  45. package/lib/es/src/components/Carousel/styles.js +1 -1
  46. package/lib/es/src/components/Footer/index.js +1 -1
  47. package/lib/es/src/components/Modal/README.md.js +1 -1
  48. package/lib/es/src/components/Modal/README.md.js.map +1 -1
  49. package/lib/es/src/components/Modal/index.js +1 -1
  50. package/lib/es/src/components/Modal/styles.js +1 -1
  51. package/lib/hocs/MdxProvider.d.ts +5 -2
  52. package/package.json +7 -5
  53. package/CHANGELOG.md +0 -227
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  import { PopOverPositionType } from "../../types";
3
3
  export declare type PopOverProps = {
4
4
  /** used for aria-label of modal */
@@ -14,10 +14,11 @@ export declare type PopOverProps = {
14
14
  minWidth?: string;
15
15
  /** popover isOpen changed handler */
16
16
  onPopOverIsOpenChange?: (isOpen: boolean) => void;
17
+ children?: ReactNode;
17
18
  };
18
19
  /**
19
20
  * Popover is a non-modal dialog that floats around its disclosure. It's
20
21
  commonly used for displaying additional rich content on top of something.
21
22
  */
22
- declare const PopOver: FC<PopOverProps>;
23
+ declare const PopOver: ({ onPopOverIsOpenChange, children, minWidth, maxWidth, position, modalLabel, modalContent, css, }: PopOverProps) => JSX.Element;
23
24
  export default PopOver;
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  export declare type ProgressBarProps = {
3
3
  /** percentage value of the progressbar */
4
4
  percentage: number;
@@ -14,10 +14,11 @@ export declare type ProgressBarProps = {
14
14
  barColor?: string;
15
15
  /** foreground colour of chart secondary bar */
16
16
  secondaryBarColor?: string;
17
+ children?: ReactNode;
17
18
  };
18
19
  /**
19
20
  * Provide up-to-date feedback on the progress of a workflow or action with
20
21
  simple yet flexible progress bars.
21
22
  */
22
- declare const ProgressBar: FC<ProgressBarProps>;
23
+ declare const ProgressBar: ({ percentage, isCircular, circleContents, circleSize, barColor, secondaryBarColor, secondaryPercentage, children, }: ProgressBarProps) => JSX.Element;
23
24
  export default ProgressBar;
@@ -1,15 +1,16 @@
1
- import { FC, InputHTMLAttributes, Ref } from "react";
1
+ import React, { InputHTMLAttributes, Ref, ReactNode } from "react";
2
2
  export declare type RadioProps = InputHTMLAttributes<HTMLInputElement> & {
3
3
  ref?: Ref<HTMLInputElement>;
4
4
  /** flag for error styling */
5
5
  hasError?: boolean;
6
6
  /** error message text */
7
7
  errorMessage?: string;
8
+ children?: ReactNode;
8
9
  };
9
10
  /**
10
11
  * A single radio button which should be part of a field set of radio buttons
11
12
  *
12
13
  * The value or children becomes the label, if you want an outer label for a radio or group of radios please use a LegendWrapper component
13
14
  */
14
- declare const Radio: FC<RadioProps>;
15
+ declare const Radio: React.ForwardRefExoticComponent<Pick<RadioProps, keyof React.InputHTMLAttributes<HTMLInputElement> | "hasError" | "errorMessage"> & React.RefAttributes<HTMLInputElement>>;
15
16
  export default Radio;
@@ -3,7 +3,7 @@ import { ThemeType } from "../../types";
3
3
  declare type ThemeProp = {
4
4
  theme: ThemeType;
5
5
  };
6
- export declare const StyledRadio: import("styled-components").StyledComponent<import("react").FC<import("../Radio").RadioProps>, any, {
6
+ export declare const StyledRadio: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("../Radio").RadioProps, keyof import("react").InputHTMLAttributes<HTMLInputElement> | "hasError" | "errorMessage"> & import("react").RefAttributes<HTMLInputElement>>, any, {
7
7
  numberOfAttributes: number;
8
8
  } & ThemeProp, never>;
9
9
  export declare const StyledLegend: import("styled-components").StyledComponent<"legend", any, {}, never>;
@@ -1,9 +1,10 @@
1
- import { FunctionComponent } from "react";
1
+ import { FunctionComponent, ReactNode } from "react";
2
2
  export declare type StepProps = {
3
3
  /** current step number */
4
4
  current: number;
5
5
  /** list of step */
6
6
  steps: string[];
7
+ children?: ReactNode;
7
8
  };
8
9
  /**
9
10
  *
@@ -1,8 +1,12 @@
1
- import { FC } from "react";
1
+ import { ReactNode } from "react";
2
2
  import { ThemeType } from "src/types";
3
3
  declare type TestThemeWrapperProps = {
4
4
  theme?: ThemeType;
5
+ children?: ReactNode;
5
6
  };
6
- export declare const TestThemeWrapper: FC<TestThemeWrapperProps>;
7
- export declare const TestWrapper: FC;
7
+ export declare const TestThemeWrapper: ({ children, theme, }: TestThemeWrapperProps) => JSX.Element;
8
+ declare type TestWrapperProps = {
9
+ children?: ReactNode;
10
+ };
11
+ export declare const TestWrapper: ({ children }: TestWrapperProps) => JSX.Element;
8
12
  export default TestWrapper;
@@ -1,7 +1,5 @@
1
1
  import React from "react";
2
- declare const _default: React.ForwardRefExoticComponent<{
3
- children?: React.ReactNode;
4
- } & {
2
+ declare const _default: React.ForwardRefExoticComponent<{} & {
5
3
  theme?: any;
6
4
  }>;
7
5
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const BubbleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
2
  export declare const ProgressBarWrapper: import("styled-components").StyledComponent<"div", any, {
4
3
  isCompact?: boolean | undefined;
@@ -12,5 +11,5 @@ declare type TotaliserWrapperProps = {
12
11
  };
13
12
  export declare const TotaliserWrapper: import("styled-components").StyledComponent<"div", any, TotaliserWrapperProps, never>;
14
13
  export declare const CompactWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
15
- export declare const StyledProgressBar: import("styled-components").StyledComponent<import("react").FC<import("../ProgressBar").ProgressBarProps>, any, {}, never>;
14
+ export declare const StyledProgressBar: import("styled-components").StyledComponent<({ percentage, isCircular, circleContents, circleSize, barColor, secondaryBarColor, secondaryPercentage, children, }: import("../ProgressBar").ProgressBarProps) => JSX.Element, any, {}, never>;
16
15
  export {};
@@ -0,0 +1,2 @@
1
+ declare const Docs: () => JSX.Element;
2
+ export default Docs;
@@ -0,0 +1 @@
1
+ export {};
@@ -3,5 +3,5 @@
3
3
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
4
  * Copyright 2022 Fonticons, Inc.
5
5
  */
6
- var c={prefix:"fas",iconName:"check",icon:[448,512,[10004,10003],"f00c","M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"]},e={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"]},i={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"]},o={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"]},f=o;export{c as faCheck,e as faChevronDown,i as faChevronRight,f as faClose,o as faXmark};
6
+ var c={prefix:"fas",iconName:"caret-left",icon:[256,512,[],"f0d9","M137.4 406.6l-128-127.1C3.125 272.4 0 264.2 0 255.1s3.125-16.38 9.375-22.63l128-127.1c9.156-9.156 22.91-11.9 34.88-6.943S192 115.1 192 128v255.1c0 12.94-7.781 24.62-19.75 29.58S146.5 415.8 137.4 406.6z"]},e={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M118.6 105.4l128 127.1C252.9 239.6 256 247.8 256 255.1s-3.125 16.38-9.375 22.63l-128 127.1c-9.156 9.156-22.91 11.9-34.88 6.943S64 396.9 64 383.1V128c0-12.94 7.781-24.62 19.75-29.58S109.5 96.23 118.6 105.4z"]},i={prefix:"fas",iconName:"check",icon:[448,512,[10004,10003],"f00c","M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"]},f={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"]},o={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"]},a={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"]},l=a;export{c as faCaretLeft,e as faCaretRight,i as faCheck,f as faChevronDown,o as faChevronRight,l as faClose,a as faXmark};
7
7
  //# sourceMappingURL=index.es.js.map