@oc-digital/react-component-library 7.2.2 → 7.2.3-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.
- package/build/Alert/Alert.d.ts +5 -4
- package/build/Alert/Alert.types.d.ts +14 -13
- package/build/AlphabeticalList/AlphabeticalList.d.ts +5 -4
- package/build/AlphabeticalList/AlphabeticalList.types.d.ts +22 -22
- package/build/AutoSave/Select/AutoSave.types.d.ts +11 -11
- package/build/AutoSave/Select/index.d.ts +4 -3
- package/build/AutoSave/Text/AutoSave.types.d.ts +17 -16
- package/build/AutoSave/Text/index.d.ts +4 -3
- package/build/Breadcrumbs/Breadcrumbs.d.ts +5 -4
- package/build/Breadcrumbs/Breadcrumbs.types.d.ts +24 -23
- package/build/Button/Button.d.ts +4 -4
- package/build/Button/Button.types.d.ts +10 -10
- package/build/ButtonWithConfirm/ButtonWithConfirm.d.ts +5 -4
- package/build/ButtonWithConfirm/ButtonWithConfirm.types.d.ts +9 -9
- package/build/ContentBox/ContentBox.d.ts +5 -4
- package/build/ContentBox/ContentBox.types.d.ts +7 -7
- package/build/ContentLabel/ContentLabel.d.ts +5 -4
- package/build/ContentLabel/ContentLabel.types.d.ts +5 -5
- package/build/DatePicker/DatePicker.d.ts +5 -4
- package/build/DatePicker/DatePicker.types.d.ts +6 -5
- package/build/EditableTable/EditableTable.d.ts +5 -4
- package/build/EditableTable/EditableTable.types.d.ts +107 -106
- package/build/EditableTable/components/TableCheckbox.d.ts +8 -8
- package/build/EditableTable/components/TableDateInput.d.ts +8 -9
- package/build/EditableTable/components/TableTextInput.d.ts +21 -20
- package/build/EditableTable/components/utils/getTextWidth.d.ts +13 -13
- package/build/EditableTable/defaultCells.d.ts +31 -30
- package/build/EntityList/EntityList.d.ts +5 -4
- package/build/EntityList/EntityList.types.d.ts +15 -14
- package/build/ErrorIndicator/ErrorIndicator.d.ts +5 -4
- package/build/ErrorIndicator/ErrorIndicator.types.d.ts +5 -4
- package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.d.ts +5 -4
- package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.types.d.ts +9 -8
- package/build/KeyboardDatePicker/KeyboardDatePicker.d.ts +5 -4
- package/build/KeyboardDatePicker/KeyboardDatePicker.types.d.ts +6 -5
- package/build/LeftNavigation/LeftNavigation.d.ts +5 -4
- package/build/LeftNavigation/LeftNavigation.types.d.ts +97 -96
- package/build/LeftNavigation/NavListItem.d.ts +5 -4
- package/build/LeftNavigation/PrimaryLeftNavigation.d.ts +5 -4
- package/build/LeftNavigation/SecondaryLeftNavigation.d.ts +5 -4
- package/build/LoadingSpinner/LoadingSpinner.d.ts +5 -4
- package/build/LoadingSpinner/LoadingSpinner.types.d.ts +6 -5
- package/build/MainLayout/MainLayout.d.ts +5 -4
- package/build/MainLayout/MainLayout.types.d.ts +11 -10
- package/build/MobileDatePicker/MobileDatePicker.d.ts +5 -4
- package/build/MobileDatePicker/MobileDatePicker.types.d.ts +6 -5
- package/build/NavbarLayout/Navbar.d.ts +13 -12
- package/build/NavbarLayout/NavbarLayout.d.ts +17 -16
- package/build/NavbarLayout/index.d.ts +2 -2
- package/build/SearchBar/SearchBar.d.ts +5 -4
- package/build/SearchBar/SearchBar.types.d.ts +33 -33
- package/build/Select/Select.d.ts +5 -4
- package/build/Select/Select.types.d.ts +16 -16
- package/build/StaticTable/StaticTable.d.ts +5 -4
- package/build/StaticTable/StaticTable.types.d.ts +21 -21
- package/build/SvgComponents/ContainedPartnersLogo.d.ts +5 -4
- package/build/SvgComponents/HomeSvg.d.ts +5 -4
- package/build/SvgComponents/NovelLogoSvg.d.ts +5 -4
- package/build/SvgComponents/OrganisationList.d.ts +5 -4
- package/build/SvgComponents/ProjectsSvg.d.ts +5 -4
- package/build/SvgComponents/index.d.ts +5 -5
- package/build/SvgComponents/types.d.ts +6 -6
- package/build/TextField/TextField.d.ts +16 -15
- package/build/TextField/TextField.types.d.ts +8 -7
- package/build/Tooltip/OptionalTooltip.d.ts +9 -8
- package/build/Tooltip/index.d.ts +1 -1
- package/build/globals/index.d.ts +26 -26
- package/build/hooks/index.d.ts +3 -3
- package/build/hooks/useDebounceEffect.d.ts +2 -2
- package/build/hooks/useInterval.d.ts +2 -2
- package/build/hooks/useWhyDidYouUpdate.d.ts +1 -1
- package/build/index.d.ts +38 -37
- package/build/index.js +63000 -1
- package/build/index.js.map +1 -1
- package/build/stories/Button.d.ts +28 -0
- package/build/stories/Button.stories.d.ts +10 -0
- package/build/stories/Header.d.ts +12 -0
- package/build/stories/Header.stories.d.ts +8 -0
- package/build/stories/Page.d.ts +3 -0
- package/build/stories/Page.stories.d.ts +8 -0
- package/build/style.css +1 -0
- package/build/styles/colours.d.ts +3 -3
- package/build/styles/font.d.ts +1 -1
- package/build/styles/index.d.ts +3 -3
- package/build/styles/layout.d.ts +1 -1
- package/build/styles/spacing.d.ts +1 -1
- package/build/styles/themes.d.ts +2 -2
- package/build/utils/index.d.ts +6 -5
- package/package.json +21 -19
- package/build/Alert/Alert.js +0 -48
- package/build/Alert/Alert.js.map +0 -1
- package/build/Alert/Alert.types.js +0 -2
- package/build/Alert/Alert.types.js.map +0 -1
- package/build/AlphabeticalList/AlphabeticalList.js +0 -91
- package/build/AlphabeticalList/AlphabeticalList.js.map +0 -1
- package/build/AlphabeticalList/AlphabeticalList.types.js +0 -2
- package/build/AlphabeticalList/AlphabeticalList.types.js.map +0 -1
- package/build/AutoSave/Select/AutoSave.types.js +0 -2
- package/build/AutoSave/Select/AutoSave.types.js.map +0 -1
- package/build/AutoSave/Select/index.js +0 -31
- package/build/AutoSave/Select/index.js.map +0 -1
- package/build/AutoSave/Text/AutoSave.types.js +0 -2
- package/build/AutoSave/Text/AutoSave.types.js.map +0 -1
- package/build/AutoSave/Text/index.js +0 -140
- package/build/AutoSave/Text/index.js.map +0 -1
- package/build/Breadcrumbs/Breadcrumbs.js +0 -126
- package/build/Breadcrumbs/Breadcrumbs.js.map +0 -1
- package/build/Breadcrumbs/Breadcrumbs.types.js +0 -2
- package/build/Breadcrumbs/Breadcrumbs.types.js.map +0 -1
- package/build/Button/Button.js +0 -54
- package/build/Button/Button.js.map +0 -1
- package/build/Button/Button.types.js +0 -2
- package/build/Button/Button.types.js.map +0 -1
- package/build/ButtonWithConfirm/ButtonWithConfirm.js +0 -63
- package/build/ButtonWithConfirm/ButtonWithConfirm.js.map +0 -1
- package/build/ButtonWithConfirm/ButtonWithConfirm.types.js +0 -2
- package/build/ButtonWithConfirm/ButtonWithConfirm.types.js.map +0 -1
- package/build/ContentBox/ContentBox.js +0 -21
- package/build/ContentBox/ContentBox.js.map +0 -1
- package/build/ContentBox/ContentBox.types.js +0 -2
- package/build/ContentBox/ContentBox.types.js.map +0 -1
- package/build/ContentLabel/ContentLabel.js +0 -10
- package/build/ContentLabel/ContentLabel.js.map +0 -1
- package/build/ContentLabel/ContentLabel.types.js +0 -2
- package/build/ContentLabel/ContentLabel.types.js.map +0 -1
- package/build/DatePicker/DatePicker.js +0 -38
- package/build/DatePicker/DatePicker.js.map +0 -1
- package/build/DatePicker/DatePicker.types.js +0 -2
- package/build/DatePicker/DatePicker.types.js.map +0 -1
- package/build/EditableTable/EditableTable.js +0 -398
- package/build/EditableTable/EditableTable.js.map +0 -1
- package/build/EditableTable/EditableTable.types.js +0 -2
- package/build/EditableTable/EditableTable.types.js.map +0 -1
- package/build/EditableTable/components/TableCheckbox.js +0 -8
- package/build/EditableTable/components/TableCheckbox.js.map +0 -1
- package/build/EditableTable/components/TableDateInput.js +0 -20
- package/build/EditableTable/components/TableDateInput.js.map +0 -1
- package/build/EditableTable/components/TableTextInput.js +0 -89
- package/build/EditableTable/components/TableTextInput.js.map +0 -1
- package/build/EditableTable/components/styled/Checkbox.d.ts +0 -5
- package/build/EditableTable/components/styled/CheckboxLabel.d.ts +0 -5
- package/build/EditableTable/components/styled/Input.d.ts +0 -21
- package/build/EditableTable/components/styled/InputAdornmentWrapper.d.ts +0 -5
- package/build/EditableTable/components/styled/InputWrapper.d.ts +0 -5
- package/build/EditableTable/components/styled/SmallError.d.ts +0 -5
- package/build/EditableTable/components/utils/getTextWidth.js +0 -58
- package/build/EditableTable/components/utils/getTextWidth.js.map +0 -1
- package/build/EditableTable/defaultCells.js +0 -118
- package/build/EditableTable/defaultCells.js.map +0 -1
- package/build/EntityList/EntityList.js +0 -53
- package/build/EntityList/EntityList.js.map +0 -1
- package/build/EntityList/EntityList.types.js +0 -2
- package/build/EntityList/EntityList.types.js.map +0 -1
- package/build/ErrorIndicator/ErrorIndicator.js +0 -22
- package/build/ErrorIndicator/ErrorIndicator.js.map +0 -1
- package/build/ErrorIndicator/ErrorIndicator.types.js +0 -2
- package/build/ErrorIndicator/ErrorIndicator.types.js.map +0 -1
- package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.js +0 -293
- package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.js.map +0 -1
- package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.types.js +0 -2
- package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.types.js.map +0 -1
- package/build/KeyboardDatePicker/KeyboardDatePicker.js +0 -38
- package/build/KeyboardDatePicker/KeyboardDatePicker.js.map +0 -1
- package/build/KeyboardDatePicker/KeyboardDatePicker.types.js +0 -2
- package/build/KeyboardDatePicker/KeyboardDatePicker.types.js.map +0 -1
- package/build/LeftNavigation/LeftNavigation.js +0 -47
- package/build/LeftNavigation/LeftNavigation.js.map +0 -1
- package/build/LeftNavigation/LeftNavigation.types.js +0 -2
- package/build/LeftNavigation/LeftNavigation.types.js.map +0 -1
- package/build/LeftNavigation/NavListItem.js +0 -122
- package/build/LeftNavigation/NavListItem.js.map +0 -1
- package/build/LeftNavigation/PrimaryLeftNavigation.js +0 -108
- package/build/LeftNavigation/PrimaryLeftNavigation.js.map +0 -1
- package/build/LeftNavigation/SecondaryLeftNavigation.js +0 -88
- package/build/LeftNavigation/SecondaryLeftNavigation.js.map +0 -1
- package/build/LoadingSpinner/LoadingSpinner.js +0 -21
- package/build/LoadingSpinner/LoadingSpinner.js.map +0 -1
- package/build/LoadingSpinner/LoadingSpinner.types.js +0 -2
- package/build/LoadingSpinner/LoadingSpinner.types.js.map +0 -1
- package/build/MainLayout/MainLayout.js +0 -46
- package/build/MainLayout/MainLayout.js.map +0 -1
- package/build/MainLayout/MainLayout.types.js +0 -2
- package/build/MainLayout/MainLayout.types.js.map +0 -1
- package/build/MobileDatePicker/MobileDatePicker.js +0 -38
- package/build/MobileDatePicker/MobileDatePicker.js.map +0 -1
- package/build/MobileDatePicker/MobileDatePicker.types.js +0 -2
- package/build/MobileDatePicker/MobileDatePicker.types.js.map +0 -1
- package/build/NavbarLayout/Navbar.js +0 -101
- package/build/NavbarLayout/Navbar.js.map +0 -1
- package/build/NavbarLayout/NavbarLayout.js +0 -52
- package/build/NavbarLayout/NavbarLayout.js.map +0 -1
- package/build/NavbarLayout/index.js +0 -2
- package/build/NavbarLayout/index.js.map +0 -1
- package/build/SearchBar/SearchBar.js +0 -75
- package/build/SearchBar/SearchBar.js.map +0 -1
- package/build/SearchBar/SearchBar.types.js +0 -2
- package/build/SearchBar/SearchBar.types.js.map +0 -1
- package/build/Select/Select.js +0 -140
- package/build/Select/Select.js.map +0 -1
- package/build/Select/Select.types.js +0 -2
- package/build/Select/Select.types.js.map +0 -1
- package/build/StaticTable/StaticTable.js +0 -147
- package/build/StaticTable/StaticTable.js.map +0 -1
- package/build/StaticTable/StaticTable.types.js +0 -2
- package/build/StaticTable/StaticTable.types.js.map +0 -1
- package/build/SvgComponents/ContainedPartnersLogo.js +0 -8
- package/build/SvgComponents/ContainedPartnersLogo.js.map +0 -1
- package/build/SvgComponents/HomeSvg.js +0 -8
- package/build/SvgComponents/HomeSvg.js.map +0 -1
- package/build/SvgComponents/NovelLogoSvg.js +0 -8
- package/build/SvgComponents/NovelLogoSvg.js.map +0 -1
- package/build/SvgComponents/OrganisationList.js +0 -8
- package/build/SvgComponents/OrganisationList.js.map +0 -1
- package/build/SvgComponents/ProjectsSvg.js +0 -8
- package/build/SvgComponents/ProjectsSvg.js.map +0 -1
- package/build/SvgComponents/index.js +0 -6
- package/build/SvgComponents/index.js.map +0 -1
- package/build/SvgComponents/types.js +0 -2
- package/build/SvgComponents/types.js.map +0 -1
- package/build/TextField/TextField.js +0 -67
- package/build/TextField/TextField.js.map +0 -1
- package/build/TextField/TextField.types.js +0 -2
- package/build/TextField/TextField.types.js.map +0 -1
- package/build/Tooltip/OptionalTooltip.js +0 -11
- package/build/Tooltip/OptionalTooltip.js.map +0 -1
- package/build/Tooltip/index.js +0 -2
- package/build/Tooltip/index.js.map +0 -1
- package/build/assets/index-DCUzKTQq.css +0 -78
- package/build/globals/index.js +0 -28
- package/build/globals/index.js.map +0 -1
- package/build/hooks/index.js +0 -4
- package/build/hooks/index.js.map +0 -1
- package/build/hooks/useDebounceEffect.js +0 -12
- package/build/hooks/useDebounceEffect.js.map +0 -1
- package/build/hooks/useInterval.js +0 -19
- package/build/hooks/useInterval.js.map +0 -1
- package/build/hooks/useWhyDidYouUpdate.js +0 -43
- package/build/hooks/useWhyDidYouUpdate.js.map +0 -1
- package/build/styles/colours.js +0 -4
- package/build/styles/colours.js.map +0 -1
- package/build/styles/font.js +0 -19
- package/build/styles/font.js.map +0 -1
- package/build/styles/index.js +0 -4
- package/build/styles/index.js.map +0 -1
- package/build/styles/layout.js +0 -85
- package/build/styles/layout.js.map +0 -1
- package/build/styles/spacing.js +0 -50
- package/build/styles/spacing.js.map +0 -1
- package/build/styles/themes.js +0 -56
- package/build/styles/themes.js.map +0 -1
- package/build/utils/index.js +0 -14
- package/build/utils/index.js.map +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export
|
|
9
|
-
export {};
|
|
1
|
+
interface ITableDateInputProps {
|
|
2
|
+
disabled: boolean;
|
|
3
|
+
value: Date | string | null | undefined;
|
|
4
|
+
error: string | false;
|
|
5
|
+
onChange: (value: Date | string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const TableDateInput: ({ disabled, value, error, onChange, }: ITableDateInputProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { PureComponent } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ITableTextInputProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
value: string | number | null | undefined;
|
|
6
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
+
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
8
|
+
prefix?: string | React.ReactElement | JSX.Element | null;
|
|
9
|
+
suffix?: string | React.ReactElement | JSX.Element | null;
|
|
10
|
+
textAlign?: "start" | "end" | "left" | "right" | "center" | "justify" | "match-parent" | "inherit";
|
|
11
|
+
numberField?: boolean;
|
|
12
|
+
fixedDecimalScale?: boolean;
|
|
13
|
+
error?: string | false;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
fullWidth?: boolean;
|
|
16
|
+
wrapperStyling?: string;
|
|
17
|
+
styling?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class TableTextInput extends PureComponent<ITableTextInputProps> {
|
|
20
|
+
render(): JSX.Element;
|
|
21
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Optimised for TableTextField.
|
|
3
|
-
*
|
|
4
|
-
* Instead of accepting a HTMLElement, which would require a re-render to get the correct width,
|
|
5
|
-
* this function is oprimised to accept only the text and max width.
|
|
6
|
-
*/
|
|
7
|
-
export declare function getTableTextInputTextWidth(text: string, minWidth?: number, maxWidth?: number): string;
|
|
8
|
-
/**
|
|
9
|
-
* Calculates the width of a given string in pixels (perfect result)
|
|
10
|
-
*
|
|
11
|
-
* When using this to size inputs, the input must have CSS box-sizing: content-box
|
|
12
|
-
*/
|
|
13
|
-
export declare function getTextWidth(text: string, element: HTMLElement, minWidth?: number, maxWidth?: number): string;
|
|
1
|
+
/**
|
|
2
|
+
* Optimised for TableTextField.
|
|
3
|
+
*
|
|
4
|
+
* Instead of accepting a HTMLElement, which would require a re-render to get the correct width,
|
|
5
|
+
* this function is oprimised to accept only the text and max width.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getTableTextInputTextWidth(text: string, minWidth?: number, maxWidth?: number): string;
|
|
8
|
+
/**
|
|
9
|
+
* Calculates the width of a given string in pixels (perfect result)
|
|
10
|
+
*
|
|
11
|
+
* When using this to size inputs, the input must have CSS box-sizing: content-box
|
|
12
|
+
*/
|
|
13
|
+
export declare function getTextWidth(text: string, element: HTMLElement, minWidth?: number, maxWidth?: number): string;
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import { ICustomRenderFnProps, IEssentialRenderFnProps } from
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export
|
|
1
|
+
import { default as React, ReactChild, ReactNode } from 'react';
|
|
2
|
+
import { ICustomRenderFnProps, IEssentialRenderFnProps } from './EditableTable.types';
|
|
3
|
+
|
|
4
|
+
export declare const tableTextField: (tableProps: ICustomRenderFnProps) => JSX.Element;
|
|
5
|
+
export declare const tableNumericStringField: (tableProps: ICustomRenderFnProps) => JSX.Element;
|
|
6
|
+
export declare const tableNumericStringFixedDecimalField: (tableProps: ICustomRenderFnProps) => JSX.Element;
|
|
7
|
+
export declare const tableDateField: ({ value, onChange, disabled, error, }: ICustomRenderFnProps) => JSX.Element;
|
|
8
|
+
export declare const tableCheckbox: (tableProps: ICustomRenderFnProps) => JSX.Element;
|
|
9
|
+
interface INonEditableField extends Pick<IEssentialRenderFnProps, "numberField" | "prefix" | "suffix" | "textAlign" | "fixedDecimalScale"> {
|
|
10
|
+
text: React.ReactText;
|
|
11
|
+
styling?: string;
|
|
12
|
+
inputStyling?: string;
|
|
13
|
+
widthOverride?: string | undefined;
|
|
14
|
+
fullWidth?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const NonEditableField: React.FC<INonEditableField>;
|
|
17
|
+
interface ITableSelect extends IEssentialRenderFnProps {
|
|
18
|
+
selectOptions: {
|
|
19
|
+
[key: string]: ReactChild;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare const TableSelect: React.FC<ITableSelect>;
|
|
23
|
+
interface IMultipleTableSelect extends Omit<IEssentialRenderFnProps, "value"> {
|
|
24
|
+
selectOptions: {
|
|
25
|
+
[key: string]: ReactChild;
|
|
26
|
+
};
|
|
27
|
+
value: string[];
|
|
28
|
+
renderValue?: (value: any) => ReactNode;
|
|
29
|
+
}
|
|
30
|
+
export declare const TableMultipleSelect: React.FC<IMultipleTableSelect>;
|
|
31
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IEntityListProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IEntityListProps } from './EntityList.types';
|
|
3
|
+
|
|
4
|
+
declare const EntityList: React.FC<IEntityListProps>;
|
|
5
|
+
export default EntityList;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface IEntity {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
link: string;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
export interface IEntityListProps {
|
|
10
|
+
entities: IEntity[] | undefined;
|
|
11
|
+
icon: (entity?: IEntity) => ReactNode;
|
|
12
|
+
loadingMessage?: string;
|
|
13
|
+
emptyMessage?: string;
|
|
14
|
+
onClick?: (org: IEntity) => void;
|
|
15
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IErrorIndicatorProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IErrorIndicatorProps } from './ErrorIndicator.types';
|
|
3
|
+
|
|
4
|
+
declare const ErrorIndicator: React.FC<IErrorIndicatorProps>;
|
|
5
|
+
export default ErrorIndicator;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface IErrorIndicatorProps {
|
|
4
|
+
text?: ReactNode;
|
|
5
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IImageDisplayAndUploadProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IImageDisplayAndUploadProps } from './ImageDisplayAndUpload.types';
|
|
3
|
+
|
|
4
|
+
declare const ImageDisplayAndUpload: React.FC<IImageDisplayAndUploadProps>;
|
|
5
|
+
export default ImageDisplayAndUpload;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { IAuthoriserProp } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { IAuthoriserProp } from '../globals';
|
|
2
|
+
|
|
3
|
+
export interface IImageDisplayAndUploadProps extends IAuthoriserProp {
|
|
4
|
+
id?: string;
|
|
5
|
+
url: string | null;
|
|
6
|
+
handleSaveImage: (format: string, buffer: ArrayBuffer, file: File) => Promise<void>;
|
|
7
|
+
roundedAvatar?: boolean;
|
|
8
|
+
alt?: string;
|
|
9
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IDatePickerProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IDatePickerProps } from './KeyboardDatePicker.types';
|
|
3
|
+
|
|
4
|
+
declare const KeyboardDatePicker: React.FC<IDatePickerProps>;
|
|
5
|
+
export default KeyboardDatePicker;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { DatePickerProps } from
|
|
2
|
-
import { IAuthoriserProp } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { DatePickerProps } from '@mui/x-date-pickers/DatePicker';
|
|
2
|
+
import { IAuthoriserProp } from '../globals';
|
|
3
|
+
|
|
4
|
+
export interface IDatePickerProps extends IAuthoriserProp, DatePickerProps<Date> {
|
|
5
|
+
styling?: string;
|
|
6
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ILeftNavigationProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ILeftNavigationProps } from './LeftNavigation.types';
|
|
3
|
+
|
|
4
|
+
declare const LeftNavigation: React.FC<ILeftNavigationProps>;
|
|
5
|
+
export default LeftNavigation;
|
|
@@ -1,96 +1,97 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import { ISvgComponentProps } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
1
|
+
import { default as React, ReactNode, ReactChild } from 'react';
|
|
2
|
+
import { ISvgComponentProps } from '../SvgComponents/types';
|
|
3
|
+
|
|
4
|
+
export interface INavigationLink {
|
|
5
|
+
field: string;
|
|
6
|
+
path: string;
|
|
7
|
+
Icon: React.FC<ISvgComponentProps>;
|
|
8
|
+
hasSecondary?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export type IExpandedOptions = {
|
|
11
|
+
view: string;
|
|
12
|
+
expanded: boolean;
|
|
13
|
+
};
|
|
14
|
+
export interface IMainNavigationItem {
|
|
15
|
+
id: string;
|
|
16
|
+
name: ReactChild;
|
|
17
|
+
route: string;
|
|
18
|
+
archived?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ISecondaryNavigationSubItem {
|
|
21
|
+
id: string;
|
|
22
|
+
name: ReactChild;
|
|
23
|
+
route: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ISecondaryNavigationItem {
|
|
26
|
+
mainItem: IMainNavigationItem;
|
|
27
|
+
subItems?: ISecondaryNavigationSubItem[];
|
|
28
|
+
startDate: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ISecondaryNavigationElement {
|
|
31
|
+
items: ISecondaryNavigationItem[];
|
|
32
|
+
archivedItems?: ISecondaryNavigationItem[];
|
|
33
|
+
button?: {
|
|
34
|
+
url: string;
|
|
35
|
+
text: string;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export interface ISecondaryNavigationElements {
|
|
39
|
+
[key: string]: ISecondaryNavigationElement;
|
|
40
|
+
}
|
|
41
|
+
export interface IPrimaryConfig {
|
|
42
|
+
background?: string;
|
|
43
|
+
text?: string;
|
|
44
|
+
activeText?: string;
|
|
45
|
+
moveLastItemToBottom?: boolean;
|
|
46
|
+
activeBorderColor?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface ISecondaryMainConfig {
|
|
49
|
+
mainBackground?: string;
|
|
50
|
+
mainText?: string;
|
|
51
|
+
mainHover?: string;
|
|
52
|
+
mainIcon?: string;
|
|
53
|
+
mainActiveText?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface ISecondarySubConfig {
|
|
56
|
+
subItemBackground?: string;
|
|
57
|
+
subItemText?: string;
|
|
58
|
+
subItemHover?: string;
|
|
59
|
+
subItemActiveBackground?: string;
|
|
60
|
+
subItemActiveHover?: string;
|
|
61
|
+
subItemActiveText?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface ISideNavConfig {
|
|
64
|
+
rootRouteName: string;
|
|
65
|
+
primary?: IPrimaryConfig;
|
|
66
|
+
secondary?: {
|
|
67
|
+
mainItemColors?: ISecondaryMainConfig;
|
|
68
|
+
subItemColors?: ISecondarySubConfig;
|
|
69
|
+
closeButtonSvg?: ReactNode;
|
|
70
|
+
titleColor?: string;
|
|
71
|
+
titleIconColor?: string;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export interface ILeftNavigationProps {
|
|
75
|
+
primaryNavItems: INavigationLink[];
|
|
76
|
+
secondaryNavItems: ISecondaryNavigationElements;
|
|
77
|
+
config: ISideNavConfig;
|
|
78
|
+
}
|
|
79
|
+
export interface IListItemProps extends ISecondaryNavigationItem {
|
|
80
|
+
config: ISideNavConfig;
|
|
81
|
+
Icon: React.FC<ISvgComponentProps>;
|
|
82
|
+
}
|
|
83
|
+
export interface INavListItemStyleProps extends ISecondaryMainConfig, ISecondarySubConfig {
|
|
84
|
+
}
|
|
85
|
+
export interface IPrimaryLeftNavContainerProps {
|
|
86
|
+
expandedOptions: IExpandedOptions;
|
|
87
|
+
navigationLinks: INavigationLink[];
|
|
88
|
+
setExpandedOptions: React.Dispatch<React.SetStateAction<IExpandedOptions>>;
|
|
89
|
+
config: ISideNavConfig;
|
|
90
|
+
}
|
|
91
|
+
export interface ISecondaryLeftNavContainerProps {
|
|
92
|
+
secondaryNavItems: ISecondaryNavigationElements;
|
|
93
|
+
primaryNavItems: INavigationLink[];
|
|
94
|
+
expandedOptions: IExpandedOptions;
|
|
95
|
+
setExpandedOptions: React.Dispatch<React.SetStateAction<IExpandedOptions>>;
|
|
96
|
+
config: ISideNavConfig;
|
|
97
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IListItemProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IListItemProps } from './LeftNavigation.types';
|
|
3
|
+
|
|
4
|
+
declare const NavListItem: React.FC<IListItemProps>;
|
|
5
|
+
export default NavListItem;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IPrimaryLeftNavContainerProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IPrimaryLeftNavContainerProps } from './LeftNavigation.types';
|
|
3
|
+
|
|
4
|
+
declare const PrimaryLeftNavContainer: React.FC<IPrimaryLeftNavContainerProps>;
|
|
5
|
+
export default PrimaryLeftNavContainer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ISecondaryLeftNavContainerProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ISecondaryLeftNavContainerProps } from './LeftNavigation.types';
|
|
3
|
+
|
|
4
|
+
declare const SecondaryLeftNavContainer: React.FC<ISecondaryLeftNavContainerProps>;
|
|
5
|
+
export default SecondaryLeftNavContainer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ILoadingSpinnerProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ILoadingSpinnerProps } from './LoadingSpinner.types';
|
|
3
|
+
|
|
4
|
+
declare const LoadingSpinner: React.FC<ILoadingSpinnerProps>;
|
|
5
|
+
export default LoadingSpinner;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ILoadingSpinnerProps {
|
|
4
|
+
text?: ReactNode;
|
|
5
|
+
styling?: string;
|
|
6
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IMainLayoutProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IMainLayoutProps } from './MainLayout.types';
|
|
3
|
+
|
|
4
|
+
declare const MainLayout: React.FC<IMainLayoutProps>;
|
|
5
|
+
export default MainLayout;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface IMainLayoutProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
sideNavigation?: ReactElement;
|
|
6
|
+
desktopWidth?: boolean | string;
|
|
7
|
+
children: ReactElement;
|
|
8
|
+
topOffset?: number | string;
|
|
9
|
+
}
|
|
10
|
+
export interface IMainLayoutStyleProps extends Pick<IMainLayoutProps, "topOffset"> {
|
|
11
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IMobileDatePickerProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IMobileDatePickerProps } from './MobileDatePicker.types';
|
|
3
|
+
|
|
4
|
+
declare const MobileDatePicker: React.FC<IMobileDatePickerProps>;
|
|
5
|
+
export default MobileDatePicker;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { MobileDatePickerProps } from
|
|
2
|
-
import { IAuthoriserProp } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { MobileDatePickerProps } from '@mui/x-date-pickers/MobileDatePicker';
|
|
2
|
+
import { IAuthoriserProp } from '../globals';
|
|
3
|
+
|
|
4
|
+
export type IMobileDatePickerProps = MobileDatePickerProps<Date> & IAuthoriserProp & {
|
|
5
|
+
styling?: string;
|
|
6
|
+
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { ISvgComponentProps } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ISvgComponentProps } from '../SvgComponents/types';
|
|
3
|
+
|
|
4
|
+
export type NavbarProps = {
|
|
5
|
+
tabs: Array<{
|
|
6
|
+
Icon: FC<ISvgComponentProps>;
|
|
7
|
+
field: string;
|
|
8
|
+
path: string;
|
|
9
|
+
separate?: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
declare const Navbar: ({ tabs }: NavbarProps) => JSX.Element;
|
|
13
|
+
export default Navbar;
|