@oc-digital/react-component-library 4.5.0-beta.9 → 4.6.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.
- package/build/Button/Button.d.ts +2 -2
- package/build/EditableTable/EditableTable.types.d.ts +4 -0
- package/build/EditableTable/components/TableDateInput.d.ts +9 -0
- package/build/EditableTable/components/styled/Input.d.ts +5 -0
- package/build/EditableTable/components/styled/SmallError.d.ts +5 -0
- package/build/EditableTable/defaultCells.d.ts +7 -10
- package/build/NavbarLayout/Navbar.d.ts +2 -2
- package/build/NavbarLayout/NavbarLayout.d.ts +1 -1
- package/build/TextField/TextField.d.ts +1 -1
- package/build/index.d.ts +4 -4
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/styles/themes.d.ts +0 -1
- package/package.json +1 -1
package/build/Button/Button.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { IButtonProps } from "./Button.types";
|
|
3
|
-
declare function Button({ loading, children, errors, type, onClick, disabled, variant, styling, color, accessLevel, ...rest }: IButtonProps):
|
|
3
|
+
declare function Button({ loading, children, errors, type, onClick, disabled, variant, styling, color, accessLevel, ...rest }: IButtonProps): JSX.Element | null;
|
|
4
4
|
export default Button;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CellProps, HeaderGroup, Row, TableBodyPropGetter, TableBodyProps, TablePropGetter, TableProps } from "react-table";
|
|
2
2
|
import { SchemaOf } from "yup";
|
|
3
3
|
import React from "react";
|
|
4
|
+
import { VirtualItem } from "react-virtual/types";
|
|
4
5
|
export type IAlignment = "left" | "right" | "inherit" | "center" | "justify";
|
|
5
6
|
export type RowData = {
|
|
6
7
|
[key: string]: any;
|
|
@@ -91,6 +92,9 @@ export interface ITableContentProps extends Pick<IEditableTableProps, "disabled"
|
|
|
91
92
|
rowsToRender: Row<RowData>[];
|
|
92
93
|
disabled: boolean;
|
|
93
94
|
includeRowSelect: boolean;
|
|
95
|
+
paddingTop: number;
|
|
96
|
+
paddingBottom: number;
|
|
97
|
+
virtualRows: VirtualItem[];
|
|
94
98
|
isAllRowsSelected: boolean;
|
|
95
99
|
selectedFlatRows: Row<RowData>[];
|
|
96
100
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface IableDateInputProps {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
value: Date | null;
|
|
5
|
+
error: string | false;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const TableDateInput: ({ disabled, value, error, onChange, }: IableDateInputProps) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Input: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SmallError: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import React, { ReactChild, ReactNode } from "react";
|
|
2
2
|
import { ICustomRenderFnProps, IEssentialRenderFnProps } from "./EditableTable.types";
|
|
3
3
|
export declare const TableTextField: React.FC<IEssentialRenderFnProps & {
|
|
4
|
+
inputStyling?: string;
|
|
5
|
+
wrapperStyling?: string;
|
|
4
6
|
widthOverride?: string | undefined;
|
|
5
7
|
name?: string | undefined;
|
|
6
8
|
}>;
|
|
7
|
-
export declare const tableTextField: (tableProps: ICustomRenderFnProps) =>
|
|
8
|
-
export declare const tableNumericStringField: (tableProps: ICustomRenderFnProps) =>
|
|
9
|
-
export declare const tableNumericStringFixedDecimalField: (tableProps: ICustomRenderFnProps) =>
|
|
9
|
+
export declare const tableTextField: (tableProps: ICustomRenderFnProps) => JSX.Element;
|
|
10
|
+
export declare const tableNumericStringField: (tableProps: ICustomRenderFnProps) => JSX.Element;
|
|
11
|
+
export declare const tableNumericStringFixedDecimalField: (tableProps: ICustomRenderFnProps) => JSX.Element;
|
|
10
12
|
export declare const SelectionCheckbox: React.JSXElementConstructor<Omit<import("@mui/material").CheckboxProps, "classes"> & import("@mui/styles/withStyles").StyledComponentProps<"root">>;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
onBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const TableDatePicker: React.FC<ITableDatePicker>;
|
|
16
|
-
export declare const tableDateField: (tableProps: ICustomRenderFnProps) => React.JSX.Element;
|
|
17
|
-
export declare const tableCheckbox: (tableProps: ICustomRenderFnProps) => React.JSX.Element;
|
|
13
|
+
export declare const tableDateField: ({ value, onChange, disabled, error, }: ICustomRenderFnProps) => JSX.Element;
|
|
14
|
+
export declare const tableCheckbox: (tableProps: ICustomRenderFnProps) => JSX.Element;
|
|
18
15
|
interface INonEditableField extends Pick<IEssentialRenderFnProps, "numberField" | "prefix" | "suffix" | "textAlign" | "fixedDecimalScale"> {
|
|
19
16
|
text: React.ReactText;
|
|
20
17
|
styling?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from "react";
|
|
2
2
|
import { ISvgComponentProps } from "../SvgComponents/types";
|
|
3
3
|
export type NavbarProps = {
|
|
4
4
|
tabs: Array<{
|
|
@@ -8,5 +8,5 @@ export type NavbarProps = {
|
|
|
8
8
|
separate?: boolean;
|
|
9
9
|
}>;
|
|
10
10
|
};
|
|
11
|
-
declare const Navbar: ({ tabs }: NavbarProps) =>
|
|
11
|
+
declare const Navbar: ({ tabs }: NavbarProps) => JSX.Element;
|
|
12
12
|
export default Navbar;
|
|
@@ -12,5 +12,5 @@ export type NavbarLayoutProps = {
|
|
|
12
12
|
leaveHeightForMenu?: boolean;
|
|
13
13
|
children: React.ReactNode;
|
|
14
14
|
};
|
|
15
|
-
declare const NavbarLayout: ({ tabs, hideTabs, leaveHeightForMenu, children, }: NavbarLayoutProps) =>
|
|
15
|
+
declare const NavbarLayout: ({ tabs, hideTabs, leaveHeightForMenu, children, }: NavbarLayoutProps) => JSX.Element;
|
|
16
16
|
export default NavbarLayout;
|
|
@@ -12,4 +12,4 @@ interface INumberFormatProps extends Omit<NumberFormatProps, "onChange"> {
|
|
|
12
12
|
}) => void;
|
|
13
13
|
fixedDecimalScale: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare const NumberFormatField: (props: INumberFormatProps) =>
|
|
15
|
+
export declare const NumberFormatField: (props: INumberFormatProps) => JSX.Element;
|
package/build/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import KeyboardDatePicker from "./KeyboardDatePicker/KeyboardDatePicker";
|
|
|
18
18
|
import ButtonWithConfirm from "./ButtonWithConfirm/ButtonWithConfirm";
|
|
19
19
|
import EditableTable from "./EditableTable/EditableTable";
|
|
20
20
|
import { FieldConfig, RowData, ITableHeader, TableCellValues, SynchCellWithStateFn, ICustomRenderFnProps, IEssentialRenderFnProps } from "./EditableTable/EditableTable.types";
|
|
21
|
-
import { TableTextField, tableNumericStringField, tableNumericStringFixedDecimalField, tableDateField, tableCheckbox, TableSelect, TableMultipleSelect, NonEditableField
|
|
21
|
+
import { TableTextField, tableNumericStringField, tableNumericStringFixedDecimalField, tableDateField, tableCheckbox, TableSelect, TableMultipleSelect, NonEditableField } from "./EditableTable/defaultCells";
|
|
22
22
|
import { useDebounceEffect, useInterval, useWhyDidYouUpdate } from "./hooks";
|
|
23
23
|
import { didCellValueChange } from "./utils";
|
|
24
24
|
import ImageDisplayAndUpload from "./ImageDisplayAndUpload/ImageDisplayAndUpload";
|
|
@@ -31,6 +31,6 @@ import MobileDatePicker from "./MobileDatePicker/MobileDatePicker";
|
|
|
31
31
|
import { AutoSaveTextField } from "./AutoSave/Text";
|
|
32
32
|
import { AutoSaveSelectField } from "./AutoSave/Select";
|
|
33
33
|
import { OptionalTooltip } from "./Tooltip";
|
|
34
|
-
import
|
|
35
|
-
export { ImageDisplayAndUpload, Alert, Button, ContentLabel, ContentBox, StaticTable, LoadingSpinner, Breadcrumbs, EntityList, ErrorIndicator, LeftNavigation, MainLayout, SearchBar, TextField, Select, DatePicker, AutoSaveTextField, AutoSaveSelectField, KeyboardDatePicker, MobileDatePicker, ButtonWithConfirm, EditableTable, TableTextField, TableSelect, TableMultipleSelect, NonEditableField, TableDatePicker, tableNumericStringField, tableNumericStringFixedDecimalField, tableDateField, tableCheckbox, didCellValueChange, useDebounceEffect, useInterval, useWhyDidYouUpdate, AlphabeticalList, NumberFormatField, NavbarLayout, OptionalTooltip, FORM_SUCCESS, FORM_ERROR, FORM_LOADING, FORM_ENABLED, FORM_WARNING, FORM_DELETING, };
|
|
36
|
-
export type { FieldConfig, RowData, ITableHeader, TableCellValues, SynchCellWithStateFn, ICustomRenderFnProps, IEssentialRenderFnProps, ISelectProps, IEntity, INavigationLink, ISecondaryNavigationItem, ISecondaryNavigationSubItem, NavbarLayoutTabs, FormStatuses,
|
|
34
|
+
import { TableDateInput } from "./EditableTable/components/TableDateInput";
|
|
35
|
+
export { ImageDisplayAndUpload, Alert, Button, ContentLabel, ContentBox, StaticTable, LoadingSpinner, Breadcrumbs, EntityList, ErrorIndicator, LeftNavigation, MainLayout, SearchBar, TextField, Select, DatePicker, AutoSaveTextField, AutoSaveSelectField, KeyboardDatePicker, MobileDatePicker, ButtonWithConfirm, EditableTable, TableTextField, TableSelect, TableMultipleSelect, NonEditableField, TableDateInput as TableDatePicker, tableNumericStringField, tableNumericStringFixedDecimalField, tableDateField, tableCheckbox, didCellValueChange, useDebounceEffect, useInterval, useWhyDidYouUpdate, AlphabeticalList, NumberFormatField, NavbarLayout, OptionalTooltip, FORM_SUCCESS, FORM_ERROR, FORM_LOADING, FORM_ENABLED, FORM_WARNING, FORM_DELETING, };
|
|
36
|
+
export type { FieldConfig, RowData, ITableHeader, TableCellValues, SynchCellWithStateFn, ICustomRenderFnProps, IEssentialRenderFnProps, ISelectProps, IEntity, INavigationLink, ISecondaryNavigationItem, ISecondaryNavigationSubItem, NavbarLayoutTabs, FormStatuses, };
|