@oc-digital/react-component-library 8.17.13-beta.0 → 8.18.0-beta.0

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.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IAlphabeticalListProps {
3
2
  array: any[] | undefined | null;
4
3
  sortFn?: (arg1: any, arg2: any) => number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IAuthoriserProp } from "../globals";
3
2
  import type { ButtonProps } from "@mui/material";
4
3
  export type IButtonProps<C extends React.ElementType = React.ElementType> = ButtonProps<C, {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IAuthoriserProp } from "../globals";
3
2
  import { ButtonProps } from "@mui/material";
4
3
  export interface IButtonWithConfirmProps extends ButtonProps, IAuthoriserProp {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IContentBoxProps {
3
2
  id?: string;
4
3
  children: React.ReactNode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IContentLabelProps {
3
2
  children: React.ReactNode;
4
3
  styling?: null | string;
@@ -85,7 +85,6 @@ type EditableTableFieldConfiguration = {
85
85
  total?: boolean;
86
86
  canUserSort?: boolean;
87
87
  sortCompareFn?: (a: any, b: any) => number;
88
- alternateMatches?: string[];
89
88
  };
90
89
  export type FieldConfig = {
91
90
  [key: string]: EditableTableFieldConfiguration;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ITableCheckboxProps {
3
2
  disabled?: boolean;
4
3
  value: boolean | null | undefined;
@@ -10,12 +10,17 @@ type IExpandedOptions = {
10
10
  view: string;
11
11
  expanded: boolean;
12
12
  };
13
- interface IMainNavigationItem {
13
+ interface IRouteableMainNavigationItem {
14
14
  id: string;
15
15
  name: ReactChild;
16
16
  route: string;
17
17
  archived?: boolean;
18
- disableSubItemCount?: boolean;
18
+ }
19
+ interface INotRouteableMainNavigationItem {
20
+ id: string;
21
+ name: ReactChild;
22
+ notRoutable: boolean;
23
+ archived?: boolean;
19
24
  }
20
25
  export interface ISecondaryNavigationSubItem {
21
26
  id: string;
@@ -23,7 +28,7 @@ export interface ISecondaryNavigationSubItem {
23
28
  route: string;
24
29
  }
25
30
  export interface ISecondaryNavigationItem<T = any> {
26
- mainItem: IMainNavigationItem;
31
+ mainItem: IRouteableMainNavigationItem | INotRouteableMainNavigationItem;
27
32
  subItems?: ISecondaryNavigationSubItem[];
28
33
  startDate: string;
29
34
  original?: T;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface ISearchBarProps {
3
2
  array: any[] | undefined | null;
4
3
  sortFn?: (arg1: any, arg2: any) => number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { OutlinedTextFieldProps } from "@mui/material";
3
2
  import { IAuthoriserProp } from "../globals";
4
3
  export interface ISelectProps extends IAuthoriserProp, Omit<OutlinedTextFieldProps, "variant"> {
@@ -23,4 +23,5 @@ export interface IStaticTableProps {
23
23
  sortColumn?: React.ReactNode;
24
24
  sortDirection?: "asc" | "desc";
25
25
  freezeFirstColumn?: boolean;
26
+ customEmptyText?: string;
26
27
  }