@oc-digital/react-component-library 7.2.3-beta.6 → 7.2.4
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 +2 -3
- package/build/Alert/Alert.types.d.ts +2 -3
- package/build/AlphabeticalList/AlphabeticalList.d.ts +2 -3
- package/build/AutoSave/Select/AutoSave.d.ts +3 -0
- package/build/AutoSave/Select/index.d.ts +2 -3
- package/build/AutoSave/Text/AutoSave.d.ts +3 -0
- package/build/AutoSave/Text/AutoSave.types.d.ts +2 -3
- package/build/AutoSave/Text/index.d.ts +2 -3
- package/build/Breadcrumbs/Breadcrumbs.d.ts +2 -3
- package/build/Breadcrumbs/Breadcrumbs.types.d.ts +1 -2
- package/build/Button/Button.d.ts +2 -3
- package/build/Button/Button.types.d.ts +3 -3
- package/build/ButtonWithConfirm/ButtonWithConfirm.d.ts +2 -3
- package/build/ButtonWithConfirm/ButtonWithConfirm.types.d.ts +3 -3
- package/build/ContentBox/ContentBox.d.ts +2 -3
- package/build/ContentLabel/ContentLabel.d.ts +2 -3
- package/build/DatePicker/DatePicker.d.ts +2 -3
- package/build/DatePicker/DatePicker.types.d.ts +2 -3
- package/build/EditableTable/EditableTable.d.ts +2 -3
- package/build/EditableTable/EditableTable.types.d.ts +4 -5
- package/build/EditableTable/components/TableCheckbox.d.ts +1 -1
- package/build/EditableTable/components/TableDateInput.d.ts +1 -1
- package/build/EditableTable/components/TableTextInput.d.ts +2 -3
- package/build/EditableTable/components/styled/Checkbox.d.ts +5 -0
- package/build/EditableTable/components/styled/CheckboxLabel.d.ts +5 -0
- package/build/EditableTable/components/styled/Input.d.ts +5 -0
- package/build/EditableTable/components/styled/InputWrapper.d.ts +5 -0
- package/build/EditableTable/components/styled/SmallError.d.ts +5 -0
- package/build/EditableTable/defaultCells.d.ts +7 -8
- package/build/EntityList/EntityList.d.ts +2 -3
- package/build/EntityList/EntityList.types.d.ts +1 -2
- package/build/ErrorIndicator/ErrorIndicator.d.ts +2 -3
- package/build/ErrorIndicator/ErrorIndicator.types.d.ts +1 -2
- package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.d.ts +2 -3
- package/build/ImageDisplayAndUpload/ImageDisplayAndUpload.types.d.ts +1 -2
- package/build/KeyboardDatePicker/KeyboardDatePicker.d.ts +2 -3
- package/build/KeyboardDatePicker/KeyboardDatePicker.types.d.ts +2 -3
- package/build/LeftNavigation/LeftNavigation.d.ts +2 -3
- package/build/LeftNavigation/LeftNavigation.types.d.ts +2 -3
- package/build/LeftNavigation/NavListItem.d.ts +2 -3
- package/build/LeftNavigation/PrimaryLeftNavigation.d.ts +2 -3
- package/build/LeftNavigation/SecondaryLeftNavigation.d.ts +2 -3
- package/build/LoadingSpinner/LoadingSpinner.d.ts +2 -3
- package/build/LoadingSpinner/LoadingSpinner.types.d.ts +1 -2
- package/build/MainLayout/MainLayout.d.ts +2 -3
- package/build/MainLayout/MainLayout.types.d.ts +1 -2
- package/build/MobileDatePicker/MobileDatePicker.d.ts +2 -3
- package/build/MobileDatePicker/MobileDatePicker.types.d.ts +2 -3
- package/build/NavbarLayout/Navbar.d.ts +3 -4
- package/build/NavbarLayout/NavbarLayout.d.ts +3 -4
- package/build/NavbarLayout/index.d.ts +2 -2
- package/build/SearchBar/SearchBar.d.ts +2 -3
- package/build/Select/Select.d.ts +2 -3
- package/build/Select/Select.types.d.ts +3 -3
- package/build/StaticTable/StaticTable.d.ts +2 -3
- package/build/SvgComponents/ContainedPartnersLogo.d.ts +2 -3
- package/build/SvgComponents/HomeSvg.d.ts +2 -3
- package/build/SvgComponents/NovelLogoSvg.d.ts +2 -3
- package/build/SvgComponents/OrganisationList.d.ts +2 -3
- package/build/SvgComponents/ProjectsSvg.d.ts +2 -3
- package/build/SvgComponents/index.d.ts +5 -5
- package/build/TextField/TextField.d.ts +4 -5
- package/build/TextField/TextField.types.d.ts +2 -3
- package/build/ThemeProvider/index.d.ts +5 -0
- package/build/Tooltip/OptionalTooltip.d.ts +1 -2
- package/build/Tooltip/index.d.ts +1 -1
- package/build/globals/index.d.ts +2 -2
- package/build/hooks/index.d.ts +3 -3
- package/build/index.d.ts +35 -36
- package/build/index.js +1 -580
- package/build/index.js.map +1 -1
- 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/theme.d.ts +1 -0
- package/build/styles/themes.d.ts +2 -2
- package/build/utils/index.d.ts +1 -2
- package/package.json +23 -22
- package/build/stories/Button.d.ts +0 -28
- package/build/stories/Button.stories.d.ts +0 -10
- package/build/stories/Header.d.ts +0 -12
- package/build/stories/Header.stories.d.ts +0 -8
- package/build/stories/Page.d.ts +0 -3
- package/build/stories/Page.stories.d.ts +0 -8
- package/build/style.css +0 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NumericFormatProps } from
|
|
3
|
-
import { ITextFieldProps } from
|
|
4
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NumericFormatProps } from "react-number-format";
|
|
3
|
+
import { ITextFieldProps } from "./TextField.types";
|
|
5
4
|
declare const TextField: React.FC<ITextFieldProps>;
|
|
6
5
|
export default TextField;
|
|
7
6
|
interface INumberFormatProps extends Omit<NumericFormatProps, "onChange"> {
|
|
@@ -13,4 +12,4 @@ interface INumberFormatProps extends Omit<NumericFormatProps, "onChange"> {
|
|
|
13
12
|
}) => void;
|
|
14
13
|
fixedDecimalScale: boolean;
|
|
15
14
|
}
|
|
16
|
-
export declare const NumberFormatField: (props: INumberFormatProps) => JSX.Element;
|
|
15
|
+
export declare const NumberFormatField: (props: INumberFormatProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { OutlinedTextFieldProps } from
|
|
2
|
-
import { IAuthoriserProp } from
|
|
3
|
-
|
|
1
|
+
import { OutlinedTextFieldProps } from "@mui/material";
|
|
2
|
+
import { IAuthoriserProp } from "../globals";
|
|
4
3
|
export interface ITextFieldProps extends IAuthoriserProp, Omit<OutlinedTextFieldProps, "variant"> {
|
|
5
4
|
styling?: string;
|
|
6
5
|
numberField?: boolean;
|
package/build/Tooltip/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./OptionalTooltip";
|
package/build/globals/index.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export declare const EDITED_STATUS = "EDITED";
|
|
|
7
7
|
export declare const NEW_STATUS = "NEW";
|
|
8
8
|
export declare const VALIDATION_MESSAGE_REQUIRED = "Required";
|
|
9
9
|
export declare const REGEX_NUMBER_WITH_DECIMALS: RegExp;
|
|
10
|
-
export declare const YUP_REQUIRED_STRING_SHORT_MESSAGE: import(
|
|
11
|
-
export declare const YUP_STRING_NUMBER_WITH_DECIMALS: import(
|
|
10
|
+
export declare const YUP_REQUIRED_STRING_SHORT_MESSAGE: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
11
|
+
export declare const YUP_STRING_NUMBER_WITH_DECIMALS: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
12
12
|
export declare const FORM_SUCCESS = "success";
|
|
13
13
|
export declare const FORM_ERROR = "error";
|
|
14
14
|
export declare const FORM_LOADING = "loading";
|
package/build/hooks/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as useDebounceEffect } from
|
|
2
|
-
export { default as useInterval } from
|
|
3
|
-
export { default as useWhyDidYouUpdate } from
|
|
1
|
+
export { default as useDebounceEffect } from "./useDebounceEffect";
|
|
2
|
+
export { default as useInterval } from "./useInterval";
|
|
3
|
+
export { default as useWhyDidYouUpdate } from "./useWhyDidYouUpdate";
|
package/build/index.d.ts
CHANGED
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { IEntity } from
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { INavigationLink, ISecondaryNavigationItem, ISecondaryNavigationSubItem } from
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { FieldConfig, RowData, ITableHeader, TableCellValues, SynchCellWithStateFn, ICustomRenderFnProps, IEssentialRenderFnProps } from
|
|
21
|
-
import { tableNumericStringField, tableNumericStringFixedDecimalField, tableDateField, tableCheckbox, TableSelect, TableMultipleSelect, NonEditableField } from
|
|
22
|
-
import { useDebounceEffect, useInterval, useWhyDidYouUpdate } from
|
|
23
|
-
import { didCellValueChange } from
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import { ISelectProps } from
|
|
28
|
-
import { NavbarLayout, NavbarLayoutTabs } from
|
|
29
|
-
import { FORM_SUCCESS, FORM_ERROR, FORM_LOADING, FORM_ENABLED, FORM_WARNING, FORM_DELETING, FormStatuses } from
|
|
30
|
-
import
|
|
31
|
-
import { AutoSaveTextField } from
|
|
32
|
-
import { AutoSaveSelectField } from
|
|
33
|
-
import { OptionalTooltip } from
|
|
34
|
-
import { TableDateInput } from
|
|
35
|
-
import { TableTextInput } from
|
|
36
|
-
|
|
1
|
+
import Button from "./Button/Button";
|
|
2
|
+
import ContentLabel from "./ContentLabel/ContentLabel";
|
|
3
|
+
import ContentBox from "./ContentBox/ContentBox";
|
|
4
|
+
import StaticTable from "./StaticTable/StaticTable";
|
|
5
|
+
import LoadingSpinner from "./LoadingSpinner/LoadingSpinner";
|
|
6
|
+
import Breadcrumbs from "./Breadcrumbs/Breadcrumbs";
|
|
7
|
+
import EntityList from "./EntityList/EntityList";
|
|
8
|
+
import { IEntity } from "./EntityList/EntityList.types";
|
|
9
|
+
import ErrorIndicator from "./ErrorIndicator/ErrorIndicator";
|
|
10
|
+
import LeftNavigation from "./LeftNavigation/LeftNavigation";
|
|
11
|
+
import { INavigationLink, ISecondaryNavigationItem, ISecondaryNavigationSubItem } from "./LeftNavigation/LeftNavigation.types";
|
|
12
|
+
import MainLayout from "./MainLayout/MainLayout";
|
|
13
|
+
import SearchBar from "./SearchBar/SearchBar";
|
|
14
|
+
import TextField, { NumberFormatField } from "./TextField/TextField";
|
|
15
|
+
import Select from "./Select/Select";
|
|
16
|
+
import DatePicker from "./DatePicker/DatePicker";
|
|
17
|
+
import KeyboardDatePicker from "./KeyboardDatePicker/KeyboardDatePicker";
|
|
18
|
+
import ButtonWithConfirm from "./ButtonWithConfirm/ButtonWithConfirm";
|
|
19
|
+
import EditableTable from "./EditableTable/EditableTable";
|
|
20
|
+
import { FieldConfig, RowData, ITableHeader, TableCellValues, SynchCellWithStateFn, ICustomRenderFnProps, IEssentialRenderFnProps } from "./EditableTable/EditableTable.types";
|
|
21
|
+
import { tableNumericStringField, tableNumericStringFixedDecimalField, tableDateField, tableCheckbox, TableSelect, TableMultipleSelect, NonEditableField } from "./EditableTable/defaultCells";
|
|
22
|
+
import { useDebounceEffect, useInterval, useWhyDidYouUpdate } from "./hooks";
|
|
23
|
+
import { didCellValueChange } from "./utils";
|
|
24
|
+
import ImageDisplayAndUpload from "./ImageDisplayAndUpload/ImageDisplayAndUpload";
|
|
25
|
+
import Alert from "./Alert/Alert";
|
|
26
|
+
import AlphabeticalList from "./AlphabeticalList/AlphabeticalList";
|
|
27
|
+
import { ISelectProps } from "./Select/Select.types";
|
|
28
|
+
import { NavbarLayout, NavbarLayoutTabs } from "./NavbarLayout";
|
|
29
|
+
import { FORM_SUCCESS, FORM_ERROR, FORM_LOADING, FORM_ENABLED, FORM_WARNING, FORM_DELETING, FormStatuses } from "./globals";
|
|
30
|
+
import MobileDatePicker from "./MobileDatePicker/MobileDatePicker";
|
|
31
|
+
import { AutoSaveTextField } from "./AutoSave/Text";
|
|
32
|
+
import { AutoSaveSelectField } from "./AutoSave/Select";
|
|
33
|
+
import { OptionalTooltip } from "./Tooltip";
|
|
34
|
+
import { TableDateInput } from "./EditableTable/components/TableDateInput";
|
|
35
|
+
import { TableTextInput } from "./EditableTable/components/TableTextInput";
|
|
37
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, };
|
|
38
37
|
export type { FieldConfig, RowData, ITableHeader, TableCellValues, SynchCellWithStateFn, ICustomRenderFnProps, IEssentialRenderFnProps, ISelectProps, IEntity, INavigationLink, ISecondaryNavigationItem, ISecondaryNavigationSubItem, NavbarLayoutTabs, FormStatuses, };
|