@zealicsolutions/web-ui 0.4.33 → 0.4.35
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/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/containers/hooks/useSetFormData.d.ts +6 -10
- package/dist/cjs/src/helpers/utils.d.ts +1 -1
- package/dist/cjs/src/molecules/InputField/InputField.d.ts +1 -2
- package/dist/cjs/src/molecules/InputField/InputField.stories.d.ts +1 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/containers/hooks/useSetFormData.d.ts +6 -10
- package/dist/esm/src/helpers/utils.d.ts +1 -1
- package/dist/esm/src/molecules/InputField/InputField.d.ts +1 -2
- package/dist/esm/src/molecules/InputField/InputField.stories.d.ts +1 -2
- package/dist/index.d.ts +1 -2
- package/package.json +2 -2
@@ -1,14 +1,10 @@
|
|
1
1
|
import { DataConnectionValues } from 'containers/types/moleculeTypes';
|
2
2
|
import { Dispatch, SetStateAction } from 'react';
|
3
3
|
import type { AnyObject } from 'typescript';
|
4
|
-
declare type UseSetFormDataProps<DefaultValueType> =
|
5
|
-
defaultValue
|
6
|
-
dataModelField
|
7
|
-
setFormData
|
8
|
-
}
|
9
|
-
export declare const useSetFormData: <DefaultValueType>({ setFormData, defaultValue, dataModelField, }:
|
10
|
-
defaultValue: DefaultValueType;
|
11
|
-
dataModelField: DataConnectionValues;
|
12
|
-
setFormData: Dispatch<SetStateAction<AnyObject>>;
|
13
|
-
}>) => void;
|
4
|
+
declare type UseSetFormDataProps<DefaultValueType> = {
|
5
|
+
defaultValue?: DefaultValueType;
|
6
|
+
dataModelField?: DataConnectionValues;
|
7
|
+
setFormData?: Dispatch<SetStateAction<AnyObject>>;
|
8
|
+
};
|
9
|
+
export declare const useSetFormData: <DefaultValueType>({ setFormData, defaultValue, dataModelField, }: UseSetFormDataProps<DefaultValueType>) => void;
|
14
10
|
export {};
|
@@ -11,4 +11,4 @@ export declare const checkIsInternalLink: (link?: LinkAttributes) => boolean;
|
|
11
11
|
export declare const addInternalParamsToCurrentLink: (internalLink?: Nullable<string>) => string;
|
12
12
|
export declare const getHref: (link?: LinkAttributes) => string;
|
13
13
|
export declare const parseDescendantContent: (string: string) => CustomDescendant[];
|
14
|
-
export declare const matchSlateAndStateObject: (slateValue: Descendant[], stateConfig: StateConfigType) => Descendant[]
|
14
|
+
export declare const matchSlateAndStateObject: (slateValue: Descendant[], stateConfig: StateConfigType) => Descendant[];
|
@@ -10,7 +10,6 @@ export declare type InputFieldProps = Partial<{
|
|
10
10
|
required: boolean;
|
11
11
|
optional: boolean;
|
12
12
|
defaultValue: string;
|
13
|
-
displayOnlyInputDefaultValue?: string;
|
14
13
|
inputProps: InputProps;
|
15
14
|
styles: StylesType;
|
16
15
|
labelsProps: FieldLabelsProps;
|
@@ -19,4 +18,4 @@ export declare type InputFieldProps = Partial<{
|
|
19
18
|
formData: AnyObject;
|
20
19
|
htmlElementId: string;
|
21
20
|
}>;
|
22
|
-
export declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue,
|
21
|
+
export declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, conditionConfig, state, formData, htmlElementId, }: InputFieldProps) => JSX.Element | null;
|
@@ -3,7 +3,7 @@ import { StoryFn } from '@storybook/react';
|
|
3
3
|
import { InputFieldProps } from './InputField';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ control, name, inputProps, styles, labelsProps, defaultValue,
|
6
|
+
component: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, conditionConfig, state, formData, htmlElementId, }: Partial<{
|
7
7
|
name: string;
|
8
8
|
control: import("react-hook-form").Control<any, any>;
|
9
9
|
rules: Omit<Partial<{
|
@@ -27,7 +27,6 @@ declare const _default: {
|
|
27
27
|
required: boolean;
|
28
28
|
optional: boolean;
|
29
29
|
defaultValue: string;
|
30
|
-
displayOnlyInputDefaultValue?: string | undefined;
|
31
30
|
inputProps: Partial<{
|
32
31
|
value: string;
|
33
32
|
leftIcon: import("../..").InputIconProps;
|