@oc-digital/react-component-library 4.8.0-beta.0 → 4.8.0-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/EditableTable/components/TableTextInput.d.ts +15 -0
- package/build/EditableTable/components/styled/InputAdornmentWrapper.d.ts +5 -0
- package/build/EditableTable/defaultCells.d.ts +0 -6
- package/build/index.d.ts +3 -2
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ITableTextInputProps {
|
|
3
|
+
name?: string;
|
|
4
|
+
value: string | number | null | undefined;
|
|
5
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
+
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
7
|
+
prefix?: string | JSX.Element | null;
|
|
8
|
+
suffix?: string | JSX.Element | null;
|
|
9
|
+
textAlign?: "left" | "right" | "center";
|
|
10
|
+
numberField?: boolean;
|
|
11
|
+
fixedDecimalScale?: boolean;
|
|
12
|
+
error?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const TableTextInput: ({ name, value, onChange, onBlur, prefix, suffix, textAlign, numberField, fixedDecimalScale, error, disabled, }: ITableTextInputProps) => JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const InputAdornmentWrapper: 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<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import React, { ReactChild, ReactNode } from "react";
|
|
2
2
|
import { ICustomRenderFnProps, IEssentialRenderFnProps } from "./EditableTable.types";
|
|
3
|
-
export declare const TableTextField: React.FC<IEssentialRenderFnProps & {
|
|
4
|
-
inputStyling?: string;
|
|
5
|
-
wrapperStyling?: string;
|
|
6
|
-
widthOverride?: string | undefined;
|
|
7
|
-
name?: string | undefined;
|
|
8
|
-
}>;
|
|
9
3
|
export declare const tableTextField: (tableProps: ICustomRenderFnProps) => JSX.Element;
|
|
10
4
|
export declare const tableNumericStringField: (tableProps: ICustomRenderFnProps) => JSX.Element;
|
|
11
5
|
export declare const tableNumericStringFixedDecimalField: (tableProps: ICustomRenderFnProps) => 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 {
|
|
21
|
+
import { 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";
|
|
@@ -32,5 +32,6 @@ import { AutoSaveTextField } from "./AutoSave/Text";
|
|
|
32
32
|
import { AutoSaveSelectField } from "./AutoSave/Select";
|
|
33
33
|
import { OptionalTooltip } from "./Tooltip";
|
|
34
34
|
import { TableDateInput } from "./EditableTable/components/TableDateInput";
|
|
35
|
-
|
|
35
|
+
import { TableTextInput } from "./EditableTable/components/TableTextInput";
|
|
36
|
+
export { ImageDisplayAndUpload, Alert, Button, ContentLabel, ContentBox, StaticTable, LoadingSpinner, Breadcrumbs, EntityList, ErrorIndicator, LeftNavigation, MainLayout, SearchBar, TextField, Select, DatePicker, AutoSaveTextField, AutoSaveSelectField, KeyboardDatePicker, MobileDatePicker, ButtonWithConfirm, EditableTable, TableSelect, TableMultipleSelect, NonEditableField, TableDateInput as TableDatePicker, TableTextInput as TableTextField, 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
37
|
export type { FieldConfig, RowData, ITableHeader, TableCellValues, SynchCellWithStateFn, ICustomRenderFnProps, IEssentialRenderFnProps, ISelectProps, IEntity, INavigationLink, ISecondaryNavigationItem, ISecondaryNavigationSubItem, NavbarLayoutTabs, FormStatuses, };
|