@oc-digital/react-component-library 2.0.6 → 2.0.7-beta.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 (65) hide show
  1. package/README.md +14 -4
  2. package/build/Alert/Alert.d.ts +4 -4
  3. package/build/AlphabeticalList/AlphabeticalList.d.ts +4 -4
  4. package/build/AlphabeticalList/AlphabeticalList.types.d.ts +16 -16
  5. package/build/Breadcrumbs/Breadcrumbs.d.ts +4 -4
  6. package/build/Breadcrumbs/Breadcrumbs.types.d.ts +23 -23
  7. package/build/Button/Button.d.ts +4 -4
  8. package/build/Button/Button.types.d.ts +14 -14
  9. package/build/ButtonWithConfirm/ButtonWithConfirm.d.ts +4 -4
  10. package/build/ButtonWithConfirm/ButtonWithConfirm.types.d.ts +12 -12
  11. package/build/ContentBox/ContentBox.d.ts +4 -4
  12. package/build/ContentBox/ContentBox.types.d.ts +6 -6
  13. package/build/ContentLabel/ContentLabel.d.ts +4 -4
  14. package/build/ContentLabel/ContentLabel.types.d.ts +5 -5
  15. package/build/DatePicker/DatePicker.d.ts +4 -4
  16. package/build/DatePicker/DatePicker.types.d.ts +5 -5
  17. package/build/EditableTable/EditableTable.d.ts +4 -4
  18. package/build/EditableTable/EditableTable.types.d.ts +105 -105
  19. package/build/EditableTable/defaultCells.d.ts +33 -33
  20. package/build/EntityList/EntityList.d.ts +4 -4
  21. package/build/EntityList/EntityList.types.d.ts +14 -14
  22. package/build/ErrorIndicator/ErrorIndicator.d.ts +4 -4
  23. package/build/ErrorIndicator/ErrorIndicator.types.d.ts +4 -4
  24. package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.d.ts +4 -4
  25. package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.types.d.ts +8 -8
  26. package/build/KeyboardDatePicker/KeyboardDatePicker.d.ts +4 -4
  27. package/build/KeyboardDatePicker/KeyboardDatePicker.types.d.ts +5 -5
  28. package/build/LeftNavigation/LeftNavigation.d.ts +4 -4
  29. package/build/LeftNavigation/LeftNavigation.types.d.ts +96 -96
  30. package/build/LeftNavigation/NavListItem.d.ts +4 -4
  31. package/build/LeftNavigation/PrimaryLeftNavigation.d.ts +4 -4
  32. package/build/LeftNavigation/SecondaryLeftNavigation.d.ts +4 -4
  33. package/build/LoadingSpinner/LoadingSpinner.d.ts +4 -4
  34. package/build/LoadingSpinner/LoadingSpinner.types.d.ts +5 -5
  35. package/build/MainLayout/MainLayout.d.ts +4 -4
  36. package/build/MainLayout/MainLayout.types.d.ts +9 -9
  37. package/build/SearchBar/SearchBar.d.ts +4 -4
  38. package/build/SearchBar/SearchBar.types.d.ts +23 -23
  39. package/build/Select/Select.d.ts +4 -4
  40. package/build/Select/Select.types.d.ts +14 -14
  41. package/build/StaticTable/StaticTable.d.ts +4 -4
  42. package/build/StaticTable/StaticTable.types.d.ts +21 -21
  43. package/build/SvgComponents/ContainedPartnersLogo.d.ts +4 -4
  44. package/build/SvgComponents/HomeSvg.d.ts +4 -4
  45. package/build/SvgComponents/NovelLogoSvg.d.ts +4 -4
  46. package/build/SvgComponents/OrganisationList.d.ts +4 -4
  47. package/build/SvgComponents/ProjectsSvg.d.ts +4 -4
  48. package/build/SvgComponents/index.d.ts +5 -5
  49. package/build/SvgComponents/types.d.ts +6 -6
  50. package/build/TextField/TextField.d.ts +16 -15
  51. package/build/TextField/TextField.types.d.ts +7 -7
  52. package/build/globals/index.d.ts +24 -24
  53. package/build/hooks/index.d.ts +3 -3
  54. package/build/hooks/useDebounceEffect.d.ts +2 -2
  55. package/build/hooks/useInterval.d.ts +2 -2
  56. package/build/hooks/useWhyDidYouUpdate.d.ts +1 -1
  57. package/build/index.d.ts +29 -29
  58. package/build/index.js +1 -1
  59. package/build/index.js.map +1 -1
  60. package/build/styles/font.d.ts +1 -1
  61. package/build/styles/index.d.ts +3 -3
  62. package/build/styles/layout.d.ts +1 -1
  63. package/build/styles/spacing.d.ts +1 -1
  64. package/build/utils/index.d.ts +5 -5
  65. package/package.json +3 -2
@@ -1,14 +1,14 @@
1
- import { ReactNode } from "react";
2
- export interface IEntity {
3
- id: string;
4
- name: string;
5
- link: string;
6
- [key: string]: any;
7
- }
8
- export interface IEntityListProps {
9
- entities: IEntity[] | undefined;
10
- icon: (entity?: IEntity) => ReactNode;
11
- loadingMessage?: string;
12
- emptyMessage?: string;
13
- onClick?: (org: IEntity) => void;
14
- }
1
+ import { ReactNode } from "react";
2
+ export interface IEntity {
3
+ id: string;
4
+ name: string;
5
+ link: string;
6
+ [key: string]: any;
7
+ }
8
+ export interface IEntityListProps {
9
+ entities: IEntity[] | undefined;
10
+ icon: (entity?: IEntity) => ReactNode;
11
+ loadingMessage?: string;
12
+ emptyMessage?: string;
13
+ onClick?: (org: IEntity) => void;
14
+ }
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { IErrorIndicatorProps } from "./ErrorIndicator.types";
3
- declare const ErrorIndicator: React.FC<IErrorIndicatorProps>;
4
- export default ErrorIndicator;
1
+ import React from "react";
2
+ import { IErrorIndicatorProps } from "./ErrorIndicator.types";
3
+ declare const ErrorIndicator: React.FC<IErrorIndicatorProps>;
4
+ export default ErrorIndicator;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
2
- export interface IErrorIndicatorProps {
3
- text?: ReactNode;
4
- }
1
+ import { ReactNode } from "react";
2
+ export interface IErrorIndicatorProps {
3
+ text?: ReactNode;
4
+ }
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { IImageDisplayAndUploadProps } from "./ImageDisplayAndUpload.types";
3
- declare const ImageDisplayAndUpload: React.FC<IImageDisplayAndUploadProps>;
4
- export default ImageDisplayAndUpload;
1
+ import React from "react";
2
+ import { IImageDisplayAndUploadProps } from "./ImageDisplayAndUpload.types";
3
+ declare const ImageDisplayAndUpload: React.FC<IImageDisplayAndUploadProps>;
4
+ export default ImageDisplayAndUpload;
@@ -1,8 +1,8 @@
1
- import { IAuthoriserProp } from "../globals";
2
- export interface IImageDisplayAndUploadProps extends IAuthoriserProp {
3
- id?: string;
4
- url: string | null;
5
- handleSaveImage: (format: string, buffer: ArrayBuffer, file: File) => Promise<void>;
6
- roundedAvatar?: boolean;
7
- alt?: string;
8
- }
1
+ import { IAuthoriserProp } from "../globals";
2
+ export interface IImageDisplayAndUploadProps extends IAuthoriserProp {
3
+ id?: string;
4
+ url: string | null;
5
+ handleSaveImage: (format: string, buffer: ArrayBuffer, file: File) => Promise<void>;
6
+ roundedAvatar?: boolean;
7
+ alt?: string;
8
+ }
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { IKeyboardDatePickerProps } from "./KeyboardDatePicker.types";
3
- declare const KeyboardDatePicker: React.FC<IKeyboardDatePickerProps>;
4
- export default KeyboardDatePicker;
1
+ import React from "react";
2
+ import { IKeyboardDatePickerProps } from "./KeyboardDatePicker.types";
3
+ declare const KeyboardDatePicker: React.FC<IKeyboardDatePickerProps>;
4
+ export default KeyboardDatePicker;
@@ -1,5 +1,5 @@
1
- import { KeyboardDatePickerProps } from "@material-ui/pickers";
2
- import { IAuthoriserProp } from "../globals";
3
- export interface IKeyboardDatePickerProps extends IAuthoriserProp, KeyboardDatePickerProps {
4
- styling?: string;
5
- }
1
+ import { KeyboardDatePickerProps } from "@material-ui/pickers";
2
+ import { IAuthoriserProp } from "../globals";
3
+ export interface IKeyboardDatePickerProps extends IAuthoriserProp, KeyboardDatePickerProps {
4
+ styling?: string;
5
+ }
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { ILeftNavigationProps } from "./LeftNavigation.types";
3
- declare const LeftNavigation: React.FC<ILeftNavigationProps>;
4
- export default LeftNavigation;
1
+ import React from "react";
2
+ import { ILeftNavigationProps } from "./LeftNavigation.types";
3
+ declare const LeftNavigation: React.FC<ILeftNavigationProps>;
4
+ export default LeftNavigation;
@@ -1,96 +1,96 @@
1
- import React, { ReactNode, ReactChild } from "react";
2
- import { ISvgComponentProps } from "../SvgComponents/types";
3
- export interface INavigationLink {
4
- field: string;
5
- path: string;
6
- Icon: React.FC<ISvgComponentProps>;
7
- hasSecondary?: boolean;
8
- }
9
- export type IExpandedOptions = {
10
- view: string;
11
- expanded: boolean;
12
- };
13
- export interface IMainNavigationItem {
14
- id: string;
15
- name: ReactChild;
16
- route: string;
17
- archived?: boolean;
18
- }
19
- export interface ISecondaryNavigationSubItem {
20
- id: string;
21
- name: ReactChild;
22
- route: string;
23
- }
24
- export interface ISecondaryNavigationItem {
25
- mainItem: IMainNavigationItem;
26
- subItems?: ISecondaryNavigationSubItem[];
27
- startDate: string;
28
- }
29
- export interface ISecondaryNavigationElement {
30
- items: ISecondaryNavigationItem[];
31
- archivedItems?: ISecondaryNavigationItem[];
32
- button?: {
33
- url: string;
34
- text: string;
35
- };
36
- }
37
- export interface ISecondaryNavigationElements {
38
- [key: string]: ISecondaryNavigationElement;
39
- }
40
- export interface IPrimaryConfig {
41
- background?: string;
42
- text?: string;
43
- activeText?: string;
44
- moveLastItemToBottom?: boolean;
45
- activeBorderColor?: string;
46
- }
47
- export interface ISecondaryMainConfig {
48
- mainBackground?: string;
49
- mainText?: string;
50
- mainHover?: string;
51
- mainIcon?: string;
52
- mainActiveText?: string;
53
- }
54
- export interface ISecondarySubConfig {
55
- subItemBackground?: string;
56
- subItemText?: string;
57
- subItemHover?: string;
58
- subItemActiveBackground?: string;
59
- subItemActiveHover?: string;
60
- subItemActiveText?: string;
61
- }
62
- export interface ISideNavConfig {
63
- rootRouteName: string;
64
- primary?: IPrimaryConfig;
65
- secondary?: {
66
- mainItemColors?: ISecondaryMainConfig;
67
- subItemColors?: ISecondarySubConfig;
68
- closeButtonSvg?: ReactNode;
69
- titleColor?: string;
70
- titleIconColor?: string;
71
- };
72
- }
73
- export interface ILeftNavigationProps {
74
- primaryNavItems: INavigationLink[];
75
- secondaryNavItems: ISecondaryNavigationElements;
76
- config: ISideNavConfig;
77
- }
78
- export interface IListItemProps extends ISecondaryNavigationItem {
79
- config: ISideNavConfig;
80
- Icon: React.FC<ISvgComponentProps>;
81
- }
82
- export interface INavListItemStyleProps extends ISecondaryMainConfig, ISecondarySubConfig {
83
- }
84
- export interface IPrimaryLeftNavContainerProps {
85
- expandedOptions: IExpandedOptions;
86
- navigationLinks: INavigationLink[];
87
- setExpandedOptions: React.Dispatch<React.SetStateAction<IExpandedOptions>>;
88
- config: ISideNavConfig;
89
- }
90
- export interface ISecondaryLeftNavContainerProps {
91
- secondaryNavItems: ISecondaryNavigationElements;
92
- primaryNavItems: INavigationLink[];
93
- expandedOptions: IExpandedOptions;
94
- setExpandedOptions: React.Dispatch<React.SetStateAction<IExpandedOptions>>;
95
- config: ISideNavConfig;
96
- }
1
+ import React, { ReactNode, ReactChild } from "react";
2
+ import { ISvgComponentProps } from "../SvgComponents/types";
3
+ export interface INavigationLink {
4
+ field: string;
5
+ path: string;
6
+ Icon: React.FC<ISvgComponentProps>;
7
+ hasSecondary?: boolean;
8
+ }
9
+ export declare type IExpandedOptions = {
10
+ view: string;
11
+ expanded: boolean;
12
+ };
13
+ export interface IMainNavigationItem {
14
+ id: string;
15
+ name: ReactChild;
16
+ route: string;
17
+ archived?: boolean;
18
+ }
19
+ export interface ISecondaryNavigationSubItem {
20
+ id: string;
21
+ name: ReactChild;
22
+ route: string;
23
+ }
24
+ export interface ISecondaryNavigationItem {
25
+ mainItem: IMainNavigationItem;
26
+ subItems?: ISecondaryNavigationSubItem[];
27
+ startDate: string;
28
+ }
29
+ export interface ISecondaryNavigationElement {
30
+ items: ISecondaryNavigationItem[];
31
+ archivedItems?: ISecondaryNavigationItem[];
32
+ button?: {
33
+ url: string;
34
+ text: string;
35
+ };
36
+ }
37
+ export interface ISecondaryNavigationElements {
38
+ [key: string]: ISecondaryNavigationElement;
39
+ }
40
+ export interface IPrimaryConfig {
41
+ background?: string;
42
+ text?: string;
43
+ activeText?: string;
44
+ moveLastItemToBottom?: boolean;
45
+ activeBorderColor?: string;
46
+ }
47
+ export interface ISecondaryMainConfig {
48
+ mainBackground?: string;
49
+ mainText?: string;
50
+ mainHover?: string;
51
+ mainIcon?: string;
52
+ mainActiveText?: string;
53
+ }
54
+ export interface ISecondarySubConfig {
55
+ subItemBackground?: string;
56
+ subItemText?: string;
57
+ subItemHover?: string;
58
+ subItemActiveBackground?: string;
59
+ subItemActiveHover?: string;
60
+ subItemActiveText?: string;
61
+ }
62
+ export interface ISideNavConfig {
63
+ rootRouteName: string;
64
+ primary?: IPrimaryConfig;
65
+ secondary?: {
66
+ mainItemColors?: ISecondaryMainConfig;
67
+ subItemColors?: ISecondarySubConfig;
68
+ closeButtonSvg?: ReactNode;
69
+ titleColor?: string;
70
+ titleIconColor?: string;
71
+ };
72
+ }
73
+ export interface ILeftNavigationProps {
74
+ primaryNavItems: INavigationLink[];
75
+ secondaryNavItems: ISecondaryNavigationElements;
76
+ config: ISideNavConfig;
77
+ }
78
+ export interface IListItemProps extends ISecondaryNavigationItem {
79
+ config: ISideNavConfig;
80
+ Icon: React.FC<ISvgComponentProps>;
81
+ }
82
+ export interface INavListItemStyleProps extends ISecondaryMainConfig, ISecondarySubConfig {
83
+ }
84
+ export interface IPrimaryLeftNavContainerProps {
85
+ expandedOptions: IExpandedOptions;
86
+ navigationLinks: INavigationLink[];
87
+ setExpandedOptions: React.Dispatch<React.SetStateAction<IExpandedOptions>>;
88
+ config: ISideNavConfig;
89
+ }
90
+ export interface ISecondaryLeftNavContainerProps {
91
+ secondaryNavItems: ISecondaryNavigationElements;
92
+ primaryNavItems: INavigationLink[];
93
+ expandedOptions: IExpandedOptions;
94
+ setExpandedOptions: React.Dispatch<React.SetStateAction<IExpandedOptions>>;
95
+ config: ISideNavConfig;
96
+ }
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { IListItemProps } from "./LeftNavigation.types";
3
- declare const NavListItem: React.FC<IListItemProps>;
4
- export default NavListItem;
1
+ import React from "react";
2
+ import { IListItemProps } from "./LeftNavigation.types";
3
+ declare const NavListItem: React.FC<IListItemProps>;
4
+ export default NavListItem;
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { IPrimaryLeftNavContainerProps } from "./LeftNavigation.types";
3
- declare const PrimaryLeftNavContainer: React.FC<IPrimaryLeftNavContainerProps>;
4
- export default PrimaryLeftNavContainer;
1
+ import React from "react";
2
+ import { IPrimaryLeftNavContainerProps } from "./LeftNavigation.types";
3
+ declare const PrimaryLeftNavContainer: React.FC<IPrimaryLeftNavContainerProps>;
4
+ export default PrimaryLeftNavContainer;
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { ISecondaryLeftNavContainerProps } from "./LeftNavigation.types";
3
- declare const SecondaryLeftNavContainer: React.FC<ISecondaryLeftNavContainerProps>;
4
- export default SecondaryLeftNavContainer;
1
+ import React from "react";
2
+ import { ISecondaryLeftNavContainerProps } from "./LeftNavigation.types";
3
+ declare const SecondaryLeftNavContainer: React.FC<ISecondaryLeftNavContainerProps>;
4
+ export default SecondaryLeftNavContainer;
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { ILoadingSpinnerProps } from "./LoadingSpinner.types";
3
- declare const LoadingSpinner: React.FC<ILoadingSpinnerProps>;
4
- export default LoadingSpinner;
1
+ import React from "react";
2
+ import { ILoadingSpinnerProps } from "./LoadingSpinner.types";
3
+ declare const LoadingSpinner: React.FC<ILoadingSpinnerProps>;
4
+ export default LoadingSpinner;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- export interface ILoadingSpinnerProps {
3
- text?: ReactNode;
4
- styling?: string;
5
- }
1
+ import { ReactNode } from "react";
2
+ export interface ILoadingSpinnerProps {
3
+ text?: ReactNode;
4
+ styling?: string;
5
+ }
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { IMainLayoutProps } from "./MainLayout.types";
3
- declare const MainLayout: React.FC<IMainLayoutProps>;
4
- export default MainLayout;
1
+ import React from "react";
2
+ import { IMainLayoutProps } from "./MainLayout.types";
3
+ declare const MainLayout: React.FC<IMainLayoutProps>;
4
+ export default MainLayout;
@@ -1,9 +1,9 @@
1
- import { ReactElement } from "react";
2
- export interface IMainLayoutProps {
3
- sideNavigation?: ReactElement;
4
- desktopWidth?: boolean;
5
- children: ReactElement;
6
- topOffset?: number | string;
7
- }
8
- export interface IMainLayoutStyleProps extends Pick<IMainLayoutProps, "topOffset"> {
9
- }
1
+ import { ReactElement } from "react";
2
+ export interface IMainLayoutProps {
3
+ sideNavigation?: ReactElement;
4
+ desktopWidth?: boolean;
5
+ children: ReactElement;
6
+ topOffset?: number | string;
7
+ }
8
+ export interface IMainLayoutStyleProps extends Pick<IMainLayoutProps, "topOffset"> {
9
+ }
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { ISearchBarProps } from "./SearchBar.types";
3
- declare const SearchBar: React.FC<ISearchBarProps>;
4
- export default SearchBar;
1
+ import React from "react";
2
+ import { ISearchBarProps } from "./SearchBar.types";
3
+ declare const SearchBar: React.FC<ISearchBarProps>;
4
+ export default SearchBar;
@@ -1,23 +1,23 @@
1
- /// <reference types="react" />
2
- export interface ISearchBarProps {
3
- array: any[] | undefined | null;
4
- sortFn?: (arg1: any, arg2: any) => number;
5
- sortKey?: string;
6
- loading?: boolean;
7
- buttonClick?: (item?: any) => void;
8
- linkTo?: (item?: any) => string;
9
- ItemTemplate: React.FC<{
10
- item: any;
11
- }>;
12
- arrayKey?: string;
13
- loadingMessage?: string;
14
- emptyMessage?: string;
15
- inputBackgroundColor?: string;
16
- placeholder?: string;
17
- disabledSearch?: boolean;
18
- delay?: number;
19
- minQueryLength?: number;
20
- handleOnChange?: (query: string) => void;
21
- searchKeys?: string[];
22
- alphabetisedHeader?: boolean;
23
- }
1
+ /// <reference types="react" />
2
+ export interface ISearchBarProps {
3
+ array: any[] | undefined | null;
4
+ sortFn?: (arg1: any, arg2: any) => number;
5
+ sortKey?: string;
6
+ loading?: boolean;
7
+ buttonClick?: (item?: any) => void;
8
+ linkTo?: (item?: any) => string;
9
+ ItemTemplate: React.FC<{
10
+ item: any;
11
+ }>;
12
+ arrayKey?: string;
13
+ loadingMessage?: string;
14
+ emptyMessage?: string;
15
+ inputBackgroundColor?: string;
16
+ placeholder?: string;
17
+ disabledSearch?: boolean;
18
+ delay?: number;
19
+ minQueryLength?: number;
20
+ handleOnChange?: (query: string) => void;
21
+ searchKeys?: string[];
22
+ alphabetisedHeader?: boolean;
23
+ }
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { ISelectProps } from "./Select.types";
3
- declare const Select: React.FC<ISelectProps>;
4
- export default Select;
1
+ import React from "react";
2
+ import { ISelectProps } from "./Select.types";
3
+ declare const Select: React.FC<ISelectProps>;
4
+ export default Select;
@@ -1,14 +1,14 @@
1
- import { OutlinedTextFieldProps } from "@material-ui/core";
2
- import { IAuthoriserProp } from "../globals";
3
- export interface IStyleProps {
4
- background: string;
5
- size: "small" | "medium";
6
- }
7
- export interface ISelectProps extends IAuthoriserProp, Omit<OutlinedTextFieldProps, "variant"> {
8
- selectOptions: {
9
- value: string | number;
10
- description: string;
11
- }[];
12
- styling?: string;
13
- background?: string;
14
- }
1
+ import { OutlinedTextFieldProps } from "@material-ui/core";
2
+ import { IAuthoriserProp } from "../globals";
3
+ export interface IStyleProps {
4
+ background: string;
5
+ size: "small" | "medium";
6
+ }
7
+ export interface ISelectProps extends IAuthoriserProp, Omit<OutlinedTextFieldProps, "variant"> {
8
+ selectOptions: {
9
+ value: string | number;
10
+ description: string;
11
+ }[];
12
+ styling?: string;
13
+ background?: string;
14
+ }
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { IStaticTableProps } from "./StaticTable.types";
3
- declare const StaticTable: React.FC<IStaticTableProps>;
4
- export default StaticTable;
1
+ import React from "react";
2
+ import { IStaticTableProps } from "./StaticTable.types";
3
+ declare const StaticTable: React.FC<IStaticTableProps>;
4
+ export default StaticTable;
@@ -1,21 +1,21 @@
1
- /// <reference types="react" />
2
- export type cellAlignmentOptions = "centerJustify" | "leftJustify" | "rightJustify";
3
- export type headerColours = {
4
- background?: string;
5
- border?: string;
6
- text?: string;
7
- };
8
- export interface IStaticTableProps {
9
- headers?: React.ReactNode[];
10
- headerCellAlignment?: cellAlignmentOptions[];
11
- rows: {
12
- onClick?: () => void;
13
- row: React.ReactNode[];
14
- }[] | null | undefined;
15
- rowCellAlignment?: cellAlignmentOptions[];
16
- rowBorderSeparation?: boolean;
17
- styling?: string;
18
- headerColours?: headerColours;
19
- paginate?: boolean;
20
- itemsPerPage?: number;
21
- }
1
+ /// <reference types="react" />
2
+ export declare type cellAlignmentOptions = "centerJustify" | "leftJustify" | "rightJustify";
3
+ export declare type headerColours = {
4
+ background?: string;
5
+ border?: string;
6
+ text?: string;
7
+ };
8
+ export interface IStaticTableProps {
9
+ headers?: React.ReactNode[];
10
+ headerCellAlignment?: cellAlignmentOptions[];
11
+ rows: {
12
+ onClick?: () => void;
13
+ row: React.ReactNode[];
14
+ }[] | null | undefined;
15
+ rowCellAlignment?: cellAlignmentOptions[];
16
+ rowBorderSeparation?: boolean;
17
+ styling?: string;
18
+ headerColours?: headerColours;
19
+ paginate?: boolean;
20
+ itemsPerPage?: number;
21
+ }
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { ISvgComponentProps } from "./types";
3
- declare const ContainedPartnersLogo: React.FC<ISvgComponentProps>;
4
- export default ContainedPartnersLogo;
1
+ import React from "react";
2
+ import { ISvgComponentProps } from "./types";
3
+ declare const ContainedPartnersLogo: React.FC<ISvgComponentProps>;
4
+ export default ContainedPartnersLogo;
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { ISvgComponentProps } from "./types";
3
- declare const HomeSvg: React.FC<ISvgComponentProps>;
4
- export default HomeSvg;
1
+ import React from "react";
2
+ import { ISvgComponentProps } from "./types";
3
+ declare const HomeSvg: React.FC<ISvgComponentProps>;
4
+ export default HomeSvg;
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { ISvgComponentProps } from "./types";
3
- declare const NovelLogoSvg: React.FC<ISvgComponentProps>;
4
- export default NovelLogoSvg;
1
+ import React from "react";
2
+ import { ISvgComponentProps } from "./types";
3
+ declare const NovelLogoSvg: React.FC<ISvgComponentProps>;
4
+ export default NovelLogoSvg;
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { ISvgComponentProps } from "./types";
3
- declare const OrganisationList: React.FC<ISvgComponentProps>;
4
- export default OrganisationList;
1
+ import React from "react";
2
+ import { ISvgComponentProps } from "./types";
3
+ declare const OrganisationList: React.FC<ISvgComponentProps>;
4
+ export default OrganisationList;
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { ISvgComponentProps } from "./types";
3
- declare const ProjectsSvg: React.FC<ISvgComponentProps>;
4
- export default ProjectsSvg;
1
+ import React from "react";
2
+ import { ISvgComponentProps } from "./types";
3
+ declare const ProjectsSvg: React.FC<ISvgComponentProps>;
4
+ export default ProjectsSvg;
@@ -1,5 +1,5 @@
1
- export { default as NovelLogoSvg } from "./NovelLogoSvg";
2
- export { default as ContainedPartnersLogo } from "./ContainedPartnersLogo";
3
- export { default as OrganisationList } from "./OrganisationList";
4
- export { default as HomeSvg } from "./HomeSvg";
5
- export { default as ProjectsSvg } from "./ProjectsSvg";
1
+ export { default as NovelLogoSvg } from "./NovelLogoSvg";
2
+ export { default as ContainedPartnersLogo } from "./ContainedPartnersLogo";
3
+ export { default as OrganisationList } from "./OrganisationList";
4
+ export { default as HomeSvg } from "./HomeSvg";
5
+ export { default as ProjectsSvg } from "./ProjectsSvg";
@@ -1,6 +1,6 @@
1
- export interface ISvgComponentProps {
2
- color?: string;
3
- styling?: string;
4
- fontSize?: "small" | "medium" | "large" | "inherit";
5
- id?: string;
6
- }
1
+ export interface ISvgComponentProps {
2
+ color?: string;
3
+ styling?: string;
4
+ fontSize?: "small" | "medium" | "large" | "inherit";
5
+ id?: string;
6
+ }
@@ -1,15 +1,16 @@
1
- import React from "react";
2
- import { NumberFormatProps } from "react-number-format";
3
- import { ITextFieldProps } from "./TextField.types";
4
- declare const TextField: React.FC<ITextFieldProps>;
5
- export default TextField;
6
- interface INumberFormatProps extends Omit<NumberFormatProps, "onChange"> {
7
- onChange: (event: {
8
- target: {
9
- name: string;
10
- value: string;
11
- };
12
- }) => void;
13
- fixedDecimalScale: boolean;
14
- }
15
- export declare const NumberFormatField: (props: INumberFormatProps) => JSX.Element;
1
+ import React from "react";
2
+ import NumberFormat, { NumberFormatProps } from "react-number-format";
3
+ import { ITextFieldProps } from "./TextField.types";
4
+ declare const TextField: React.FC<ITextFieldProps>;
5
+ export default TextField;
6
+ interface INumberFormatProps extends Omit<NumberFormatProps, "onChange"> {
7
+ onChange: (event: {
8
+ target: {
9
+ name: string;
10
+ value: string;
11
+ };
12
+ }) => void;
13
+ inputRef: (instance: NumberFormat | null) => void;
14
+ fixedDecimalScale: boolean;
15
+ }
16
+ export declare const NumberFormatField: (props: INumberFormatProps) => JSX.Element;