@zealicsolutions/web-ui 0.4.33 → 0.4.35
Sign up to get free protection for your applications and to get access to all the features.
- 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;
|
package/dist/index.d.ts
CHANGED
@@ -1543,7 +1543,6 @@ declare type InputFieldProps = Partial<{
|
|
1543
1543
|
required: boolean;
|
1544
1544
|
optional: boolean;
|
1545
1545
|
defaultValue: string;
|
1546
|
-
displayOnlyInputDefaultValue?: string;
|
1547
1546
|
inputProps: InputProps$1;
|
1548
1547
|
styles: StylesType;
|
1549
1548
|
labelsProps: FieldLabelsProps;
|
@@ -1552,7 +1551,7 @@ declare type InputFieldProps = Partial<{
|
|
1552
1551
|
formData: AnyObject$1;
|
1553
1552
|
htmlElementId: string;
|
1554
1553
|
}>;
|
1555
|
-
declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue,
|
1554
|
+
declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, conditionConfig, state, formData, htmlElementId, }: InputFieldProps) => JSX.Element | null;
|
1556
1555
|
|
1557
1556
|
declare type FieldMapperProps<T extends object> = {
|
1558
1557
|
field: UIField$1<keyof T>;
|
package/package.json
CHANGED