@acuteinfo/common-base 1.2.37 → 1.2.38-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.
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ArrayField2Props } from "./arrayField2";
3
+ export declare const ArrayFieldStepper: import("react").NamedExoticComponent<ArrayField2Props>;
4
+ export declare const ArrayFieldRow: import("react").MemoExoticComponent<({ row, classes, formState, getAllRowsValues, removeFn, rowIndex, totalRows, fields, currentMetaToObj, componentProps, t, arrayFieldName, isRemoveButton, removeRowFn, disagreeButtonName, agreeButtonName, errorTitle, hideRemoveIconOnSingleRecord, onFormButtonClickHandel, onFormDataChange, isSubmitting, fixedRows, onRowRemove, selectedRowIndex, setSelectedRowIndex, }: any) => import("react/jsx-runtime").JSX.Element>;
@@ -1,5 +1,6 @@
1
1
  export type { ArrayFieldProps } from "./arrayField";
2
2
  export { default, default as ArrayField } from "./arrayField";
3
3
  export { ArrayField2 } from "./arrayField2";
4
+ export { ArrayFieldStepper } from "./arrayField-stepper";
4
5
  export type { ArrayField2Props } from "./arrayField2";
5
6
  export { ArrayFieldValues } from "./arrayFieldForDisplayValues";
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"arrayRowContainer" | "newArrayRowContainer" | "newSecondArrayRowContainer" | "arrayRowRemoveBtn" | "arrayRowCard" | "arrayRowCardContent" | "arrayRowCount" | "arrayRowCountCustomStyle" | "arrayRowCountFixedRows" | "arrayScreenRowCount" | "newArrayRowCardContent" | "arrayFieldSelected" | "arrayFieldUnselected">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"arrayRowContainer" | "newArrayRowContainer" | "newSecondArrayRowContainer" | "arrayRowRemoveBtn" | "arrayRowRemoveBtnStepper" | "arrayRowCard" | "arrayRowCardContent" | "arrayRowCount" | "arrayRowCountCustomStyle" | "arrayRowCountFixedRows" | "arrayScreenRowCount" | "newArrayRowCardContent" | "arrayFieldSelected" | "arrayFieldUnselected">;
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ /// <reference types="react" />
2
2
  import { UseFieldHookProps, AlwaysRunPostValidationSetCrossFieldValuesType } from "packages/form";
3
3
  import { TextFieldProps } from "@mui/material/TextField";
4
4
  import { GridProps } from "@mui/material/Grid";
@@ -45,5 +45,5 @@ interface MyGridExtendedProps {
45
45
  }
46
46
  type MyTextFieldAllProps = Merge<TextFieldProps, MyGridExtendedProps>;
47
47
  export type MyTextFieldProps = UseFieldHookProps & MyTextFieldAllProps;
48
- declare const MyTextField: FC<MyTextFieldProps>;
49
- export default MyTextField;
48
+ declare const _default: import("react").NamedExoticComponent<MyTextFieldProps>;
49
+ export default _default;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * A custom hook that returns a debounced version of the input value.
3
+ * It uses generics <T> to work with any type of value (string, object, array, etc.).
4
+ *
5
+ * @param {T} value - The input value (of any type T) that you want to debounce.
6
+ * @param {number} [delay=500] - The delay in milliseconds.
7
+ * @returns {T} The debounced value of type T.
8
+ */
9
+ export declare const useDebouncedValue: <T>(value: T, delay?: number) => T;
@@ -1,5 +1,5 @@
1
1
  import { GridSize, GridSpacing, GridDirection } from "@mui/material/Grid";
2
- import { AllTextFieldProps, AllSelectFieldProps, AllCheckboxGroupProps, AllCheckboxProps, AllDatePickerProps, AllDateTimePickerProps, AllTimePickerProps, AllRadioProps, AllRatingProps, AllSliderProps, AllSwitchGroupProps, AllSwitchProps, AllNumberFormatProps, AllPasswordFieldProps, AllSpacerProps, AllToggleButtonGroupProps, AllInputMaskProps, AllAutocompleteProps, ArrayFieldProps, AllTextareaAutosizeFieldProps, AllHiddenFieldProps, AllTypographyFieldProps, AllTransferListProps, AllSearchFieldProps, AllVisaversaFieldProps, AllDataTableProps, AllFormButtonProps, AllAccountNumberProps, AllLoginIDProps, DividerPropsOptional, AllDividerProps, CustomAccountProps, CustomReportAccTypeProps } from "./typesFields";
2
+ import { AllTextFieldProps, AllSelectFieldProps, AllCheckboxGroupProps, AllCheckboxProps, AllDatePickerProps, AllDateTimePickerProps, AllTimePickerProps, AllRadioProps, AllRatingProps, AllSliderProps, AllSwitchGroupProps, AllSwitchProps, AllNumberFormatProps, AllPasswordFieldProps, AllSpacerProps, AllToggleButtonGroupProps, AllInputMaskProps, AllAutocompleteProps, ArrayFieldProps, ArrayFieldStepperProps, AllTextareaAutosizeFieldProps, AllHiddenFieldProps, AllTypographyFieldProps, AllTransferListProps, AllSearchFieldProps, AllVisaversaFieldProps, AllDataTableProps, AllFormButtonProps, AllAccountNumberProps, AllLoginIDProps, DividerPropsOptional, AllDividerProps, CustomAccountProps, CustomReportAccTypeProps } from "./typesFields";
3
3
  import { TextFieldPropsOptional, SelectPropsOptional, CheckboxGroupPropsOptional, CheckboxPropsOptional, DatePickerPropsOptional, DateTimePickerPropsOptional, TimePickerPropsOptional, RadioPropsOptional, RatingPropsOptional, SliderPropsOptional, SwitchPropsOptional, SwitchGroupPropsOptional, NumberFormatPropsOptional, PasswordFieldPropsOptional, ToggleButtonGroupPropsOptional, InputMaskPropsOptional, AutocompletePropsOptional, TextareaAutosizeFieldPropsOptional, SearchFieldPropsOptional, VisaversaFieldPropsOptional, DataTablePropsOptional } from "./typesFields";
4
4
  import { Merge } from "../../components/common/types";
5
5
  import { InitialValuesType, SubmitFnType } from "../../packages/form";
@@ -78,7 +78,7 @@ export interface MetaDataType {
78
78
  form: FormMetaDataType;
79
79
  fields: FieldMetaDataType[];
80
80
  }
81
- export type FieldMetaDataTypeX = AllTextFieldProps | AllDividerProps | AllSelectFieldProps | AllCheckboxGroupProps | AllCheckboxProps | AllDatePickerProps | AllDateTimePickerProps | AllTimePickerProps | AllRadioProps | AllRatingProps | AllSliderProps | AllSwitchGroupProps | AllSwitchProps | AllNumberFormatProps | AllPasswordFieldProps | AllToggleButtonGroupProps | AllSpacerProps | AllInputMaskProps | AllAutocompleteProps | AllTextareaAutosizeFieldProps | AllTypographyFieldProps | AllHiddenFieldProps | AllTransferListProps | AllSearchFieldProps | AllVisaversaFieldProps | ArrayFieldProps | AllDataTableProps | AllFormButtonProps | AllAccountNumberProps | AllLoginIDProps | CustomAccountProps | CustomReportAccTypeProps;
81
+ export type FieldMetaDataTypeX = AllTextFieldProps | AllDividerProps | AllSelectFieldProps | AllCheckboxGroupProps | AllCheckboxProps | AllDatePickerProps | AllDateTimePickerProps | AllTimePickerProps | AllRadioProps | AllRatingProps | AllSliderProps | AllSwitchGroupProps | AllSwitchProps | AllNumberFormatProps | AllPasswordFieldProps | AllToggleButtonGroupProps | AllSpacerProps | AllInputMaskProps | AllAutocompleteProps | AllTextareaAutosizeFieldProps | AllTypographyFieldProps | AllHiddenFieldProps | AllTransferListProps | AllSearchFieldProps | AllVisaversaFieldProps | ArrayFieldProps | ArrayFieldStepperProps | AllDataTableProps | AllFormButtonProps | AllAccountNumberProps | AllLoginIDProps | CustomAccountProps | CustomReportAccTypeProps;
82
82
  export type FieldMetaDataType = Merge<FieldMetaDataTypeX, {
83
83
  template?: FieldMetaDataType[];
84
84
  }>;
@@ -83,6 +83,7 @@ export type SwitchGroupPropsOptional = Optional<AllSwitchGroupProps>;
83
83
  export type AllTextFieldProps = Merge<Omitted<TextFieldProps>, FieldMetaData<"textField">>;
84
84
  export type TextFieldPropsOptional = Optional<AllTextFieldProps>;
85
85
  export type ArrayFieldProps = Merge<Omitted<ArrayField2Props>, FieldMetaData<"arrayField">>;
86
+ export type ArrayFieldStepperProps = Merge<Omitted<ArrayField2Props>, FieldMetaData<"arrayFieldStepper">>;
86
87
  export type AllTextareaAutosizeFieldProps = Merge<Omitted<TextareaAutosizeFieldProps>, FieldMetaData<"textarea">>;
87
88
  export type TextareaAutosizeFieldPropsOptional = Optional<AllTextFieldProps>;
88
89
  export type AllHiddenFieldProps = Merge<Omitted<HiddenFieldProps>, FieldMetaData<"hidden">>;