@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
package/build/Alert/Alert.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IAlertProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IAlertProps } from './Alert.types';
|
|
3
|
+
|
|
4
|
+
declare const Alert: React.FC<IAlertProps>;
|
|
5
|
+
export default Alert;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { ReactChild } from
|
|
2
|
-
import { FormStatuses } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { ReactChild } from 'react';
|
|
2
|
+
import { FormStatuses } from '../globals';
|
|
3
|
+
|
|
4
|
+
export interface IAlertProps {
|
|
5
|
+
alertActionHandler?: () => void;
|
|
6
|
+
formStatus: FormStatuses;
|
|
7
|
+
actionButton?: {
|
|
8
|
+
handler: () => void;
|
|
9
|
+
text: string;
|
|
10
|
+
};
|
|
11
|
+
alertMessage: ReactChild;
|
|
12
|
+
addBreak?: boolean;
|
|
13
|
+
styling?: string;
|
|
14
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IAlphabeticalListProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IAlphabeticalListProps } from './AlphabeticalList.types';
|
|
3
|
+
|
|
4
|
+
declare const AlphabeticalList: React.FC<IAlphabeticalListProps>;
|
|
5
|
+
export default AlphabeticalList;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface IAlphabeticalListProps {
|
|
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 | JSX.Element;
|
|
15
|
-
alphabetisedHeader?: boolean;
|
|
16
|
-
isItemDisabled?: (item: any) => {
|
|
17
|
-
disabled: true;
|
|
18
|
-
reason: string;
|
|
19
|
-
} | {
|
|
20
|
-
disabled: false;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IAlphabeticalListProps {
|
|
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 | JSX.Element;
|
|
15
|
+
alphabetisedHeader?: boolean;
|
|
16
|
+
isItemDisabled?: (item: any) => {
|
|
17
|
+
disabled: true;
|
|
18
|
+
reason: string;
|
|
19
|
+
} | {
|
|
20
|
+
disabled: false;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export interface AutoSaveSelectFieldProps {
|
|
2
|
-
autoSave: (newValue: string) => Promise<void>;
|
|
3
|
-
selectOptions: {
|
|
4
|
-
value: string;
|
|
5
|
-
description: string;
|
|
6
|
-
}[];
|
|
7
|
-
value: string;
|
|
8
|
-
className: string;
|
|
9
|
-
label: string;
|
|
10
|
-
disabled: boolean;
|
|
11
|
-
}
|
|
1
|
+
export interface AutoSaveSelectFieldProps {
|
|
2
|
+
autoSave: (newValue: string) => Promise<void>;
|
|
3
|
+
selectOptions: {
|
|
4
|
+
value: string;
|
|
5
|
+
description: string;
|
|
6
|
+
}[];
|
|
7
|
+
value: string;
|
|
8
|
+
className: string;
|
|
9
|
+
label: string;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AutoSaveSelectFieldProps } from './AutoSave.types';
|
|
3
|
+
|
|
4
|
+
export declare const AutoSaveSelectField: React.FC<AutoSaveSelectFieldProps>;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { FocusEvent } from
|
|
2
|
-
import { AccessLevels } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
value: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { FocusEvent } from 'react';
|
|
2
|
+
import { AccessLevels } from '../../globals';
|
|
3
|
+
|
|
4
|
+
export interface AutoSaveTextFieldProps {
|
|
5
|
+
autoSave: (value: string) => void;
|
|
6
|
+
value: string;
|
|
7
|
+
className: string;
|
|
8
|
+
label: string;
|
|
9
|
+
onBlur?: {
|
|
10
|
+
(e: FocusEvent<any, Element>): void;
|
|
11
|
+
<T = any>(fieldOrEvent: T): T extends string ? (e: any) => void : void;
|
|
12
|
+
};
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
accessLevel: AccessLevels | undefined;
|
|
15
|
+
error: boolean;
|
|
16
|
+
helperText: string | false | undefined;
|
|
17
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { AutoSaveTextFieldProps } from
|
|
3
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AutoSaveTextFieldProps } from './AutoSave.types';
|
|
3
|
+
|
|
4
|
+
export declare const AutoSaveTextField: React.FC<AutoSaveTextFieldProps>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IBreadcrumbsProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IBreadcrumbsProps } from './Breadcrumbs.types';
|
|
3
|
+
|
|
4
|
+
declare const Breadcrumbs: React.FC<IBreadcrumbsProps>;
|
|
5
|
+
export default Breadcrumbs;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type BreadcrumbSlot = {
|
|
4
|
+
name: string;
|
|
5
|
+
link: string;
|
|
6
|
+
};
|
|
7
|
+
type BreadCrumbKeys = "first" | "second" | "third";
|
|
8
|
+
type IBreadcrumbs = {
|
|
9
|
+
[K in BreadCrumbKeys]?: BreadcrumbSlot;
|
|
10
|
+
};
|
|
11
|
+
type colorOptions = {
|
|
12
|
+
background?: string;
|
|
13
|
+
color?: string;
|
|
14
|
+
};
|
|
15
|
+
type ColorKeys = "primary" | "secondary" | "tertiary";
|
|
16
|
+
export type IBreadcrumbColors = {
|
|
17
|
+
[K in ColorKeys]?: colorOptions;
|
|
18
|
+
};
|
|
19
|
+
export interface IBreadcrumbsProps {
|
|
20
|
+
logo: ReactNode;
|
|
21
|
+
content: IBreadcrumbs;
|
|
22
|
+
colors?: IBreadcrumbColors;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
package/build/Button/Button.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare function Button({ loading, children, errors, type, onClick, disabled, variant, styling, color, accessLevel, ...rest }: IButtonProps): JSX.Element | null;
|
|
4
|
-
export default Button;
|
|
1
|
+
import { IButtonProps } from './Button.types';
|
|
2
|
+
|
|
3
|
+
declare function Button({ loading, children, errors, type, onClick, disabled, variant, styling, color, accessLevel, ...rest }: IButtonProps): JSX.Element | null;
|
|
4
|
+
export default Button;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type IButtonProps<C extends React.ElementType = React.ElementType> = ButtonProps<C, {
|
|
5
|
-
component?: C;
|
|
6
|
-
}> & IAuthoriserProp & {
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
errors?: boolean;
|
|
9
|
-
styling?: string;
|
|
10
|
-
};
|
|
1
|
+
import { IAuthoriserProp } from '../globals';
|
|
2
|
+
import { ButtonProps } from '@mui/material/Button';
|
|
3
|
+
|
|
4
|
+
export type IButtonProps<C extends React.ElementType = React.ElementType> = ButtonProps<C, {
|
|
5
|
+
component?: C;
|
|
6
|
+
}> & IAuthoriserProp & {
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
errors?: boolean;
|
|
9
|
+
styling?: string;
|
|
10
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IButtonWithConfirmProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IButtonWithConfirmProps } from './ButtonWithConfirm.types';
|
|
3
|
+
|
|
4
|
+
declare const ButtonWithConfirm: React.FC<IButtonWithConfirmProps>;
|
|
5
|
+
export default ButtonWithConfirm;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export interface IButtonWithConfirmProps extends ButtonProps, IAuthoriserProp {
|
|
5
|
-
onClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
-
loading: boolean;
|
|
7
|
-
styling?: string;
|
|
8
|
-
confirmButtonLabel?: string;
|
|
9
|
-
}
|
|
1
|
+
import { IAuthoriserProp } from '../globals';
|
|
2
|
+
import { ButtonProps } from '@mui/material';
|
|
3
|
+
|
|
4
|
+
export interface IButtonWithConfirmProps extends ButtonProps, IAuthoriserProp {
|
|
5
|
+
onClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
styling?: string;
|
|
8
|
+
confirmButtonLabel?: string;
|
|
9
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IContentBoxProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IContentBoxProps } from './ContentBox.types';
|
|
3
|
+
|
|
4
|
+
declare const ContentBox: React.FC<IContentBoxProps>;
|
|
5
|
+
export default ContentBox;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface IContentBoxProps {
|
|
3
|
-
id?: string;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
limitWidth?: boolean;
|
|
6
|
-
styling?: string;
|
|
7
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IContentBoxProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
limitWidth?: boolean;
|
|
6
|
+
styling?: string;
|
|
7
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IContentLabelProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IContentLabelProps } from './ContentLabel.types';
|
|
3
|
+
|
|
4
|
+
declare const ContentLabel: React.FC<IContentLabelProps>;
|
|
5
|
+
export default ContentLabel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface IContentLabelProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
styling?: null | string;
|
|
5
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IContentLabelProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
styling?: null | string;
|
|
5
|
+
}
|
|
@@ -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 './DatePicker.types';
|
|
3
|
+
|
|
4
|
+
declare const DatePicker: React.FC<IDatePickerProps>;
|
|
5
|
+
export default DatePicker;
|
|
@@ -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 type IDatePickerProps = DatePickerProps<Date> & IAuthoriserProp & {
|
|
5
|
+
styling?: string;
|
|
6
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IEditableTableProps } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IEditableTableProps } from './EditableTable.types';
|
|
3
|
+
|
|
4
|
+
declare const EditableTable: React.FC<IEditableTableProps>;
|
|
5
|
+
export default EditableTable;
|
|
@@ -1,106 +1,107 @@
|
|
|
1
|
-
import { CellProps, HeaderGroup, Row, TableBodyPropGetter, TableBodyProps, TablePropGetter, TableProps } from
|
|
2
|
-
import { SchemaOf } from
|
|
3
|
-
import React from
|
|
4
|
-
|
|
5
|
-
export type
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export type
|
|
15
|
-
export type
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
1
|
+
import { CellProps, HeaderGroup, Row, TableBodyPropGetter, TableBodyProps, TablePropGetter, TableProps } from 'react-table';
|
|
2
|
+
import { SchemaOf } from 'yup';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
|
|
5
|
+
export type IAlignment = "left" | "right" | "inherit" | "center" | "justify";
|
|
6
|
+
export type RowData = {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
export type ITableHeader = {
|
|
10
|
+
Header: string | JSX.Element;
|
|
11
|
+
accessor: string;
|
|
12
|
+
textAlign?: IAlignment;
|
|
13
|
+
};
|
|
14
|
+
export type TableCellValues = null | undefined | string | number | Date | boolean | string[];
|
|
15
|
+
export type SynchCellWithStateFn = (rowIndex: number, columnId: string, value: TableCellValues, errorStatus: boolean, forceUpdate?: boolean) => void;
|
|
16
|
+
export type FieldConfig = {
|
|
17
|
+
[key: string]: {
|
|
18
|
+
validationRule?: SchemaOf<any>;
|
|
19
|
+
dependentValidationRule?: (values: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}) => SchemaOf<any>;
|
|
22
|
+
customRenderFn?: (args: ICustomRenderFnProps) => JSX.Element;
|
|
23
|
+
prefix?: React.ReactNode | React.JSXElementConstructor<any>;
|
|
24
|
+
suffix?: React.ReactNode | React.JSXElementConstructor<any>;
|
|
25
|
+
textAlign?: IAlignment;
|
|
26
|
+
onBlur?: (args: {
|
|
27
|
+
rowIndex: number;
|
|
28
|
+
value: string;
|
|
29
|
+
setRows: React.Dispatch<React.SetStateAction<RowData[] | null>>;
|
|
30
|
+
values: RowData;
|
|
31
|
+
}) => Promise<void>;
|
|
32
|
+
isCheckbox?: boolean;
|
|
33
|
+
isDateField?: boolean;
|
|
34
|
+
onChangeValueModifier?: (value: string) => TableCellValues;
|
|
35
|
+
getCalculatedValue?: (values: RowData) => TableCellValues;
|
|
36
|
+
total?: boolean;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export interface IEditableTableProps {
|
|
40
|
+
tableRows: RowData[] | null;
|
|
41
|
+
tableHeaders: ITableHeader[];
|
|
42
|
+
syncCellWithState: SynchCellWithStateFn;
|
|
43
|
+
setRows?: React.Dispatch<React.SetStateAction<RowData[] | null>> | undefined;
|
|
44
|
+
skipPageReset?: boolean;
|
|
45
|
+
fieldConfig: FieldConfig;
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
setSelectedRows?: React.Dispatch<React.SetStateAction<number[]>>;
|
|
48
|
+
includeRowSelect?: boolean;
|
|
49
|
+
filterTypes?: {
|
|
50
|
+
[key: string]: (rows: any, id: any, filterValue: any) => any;
|
|
51
|
+
};
|
|
52
|
+
filterData?: {
|
|
53
|
+
filterRow: string;
|
|
54
|
+
filterValues: RowData[];
|
|
55
|
+
};
|
|
56
|
+
emptyTableText?: string;
|
|
57
|
+
paginate?: boolean;
|
|
58
|
+
defaultPageSize?: number;
|
|
59
|
+
virtContainerStyling?: string;
|
|
60
|
+
overscan?: number;
|
|
61
|
+
rowHeight?: number;
|
|
62
|
+
includeGlobalSearch?: boolean;
|
|
63
|
+
disableHeaderSelect?: boolean;
|
|
64
|
+
}
|
|
65
|
+
type AdditionalCellProps = Pick<IEditableTableProps, "fieldConfig" | "syncCellWithState" | "setRows">;
|
|
66
|
+
export interface ExtendedCellProps extends AdditionalCellProps, CellProps<RowData> {
|
|
67
|
+
disabled: boolean;
|
|
68
|
+
}
|
|
69
|
+
export interface IEssentialRenderFnProps {
|
|
70
|
+
error: string | false;
|
|
71
|
+
disabled: boolean;
|
|
72
|
+
value: TableCellValues;
|
|
73
|
+
onChange: (e: any) => void;
|
|
74
|
+
onBlur: any;
|
|
75
|
+
prefix?: React.ReactNode | React.JSXElementConstructor<any> | Element;
|
|
76
|
+
suffix?: React.ReactNode | React.JSXElementConstructor<any> | Element;
|
|
77
|
+
numberField?: boolean;
|
|
78
|
+
textAlign?: IAlignment;
|
|
79
|
+
fixedDecimalScale?: boolean;
|
|
80
|
+
}
|
|
81
|
+
export interface ICustomRenderFnProps extends IEssentialRenderFnProps {
|
|
82
|
+
values: {
|
|
83
|
+
[key: string]: any;
|
|
84
|
+
};
|
|
85
|
+
originalValues: {
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export interface ITableContentProps extends Pick<IEditableTableProps, "disabled" | "includeRowSelect"> {
|
|
90
|
+
getTableProps: (propGetter?: TablePropGetter<RowData> | undefined) => TableProps;
|
|
91
|
+
headerGroups: HeaderGroup<RowData>[];
|
|
92
|
+
getTableBodyProps: (propGetter?: TableBodyPropGetter<RowData> | undefined) => TableBodyProps;
|
|
93
|
+
prepareRow: (row: Row<RowData>) => void;
|
|
94
|
+
rowsToRender: Row<RowData>[];
|
|
95
|
+
disabled: boolean;
|
|
96
|
+
includeRowSelect: boolean;
|
|
97
|
+
isAllRowsSelected: boolean;
|
|
98
|
+
selectedFlatRows: Row<RowData>[];
|
|
99
|
+
fieldConfig: FieldConfig;
|
|
100
|
+
tableHeaders: ITableHeader[];
|
|
101
|
+
}
|
|
102
|
+
export interface IGlobalFilterProps {
|
|
103
|
+
preGlobalFilteredRows: RowData[];
|
|
104
|
+
globalFilter: string | undefined;
|
|
105
|
+
setGlobalFilter: (val: string | undefined) => void;
|
|
106
|
+
}
|
|
107
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface ITableCheckboxProps {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
value: boolean | null | undefined;
|
|
5
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const TableCheckbox: ({ disabled, value, onChange }: ITableCheckboxProps) => JSX.Element;
|
|
8
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ITableCheckboxProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
value: boolean | null | undefined;
|
|
5
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const TableCheckbox: ({ disabled, value, onChange }: ITableCheckboxProps) => JSX.Element;
|
|
8
|
+
export {};
|