@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.
@@ -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> = Partial<{
5
- defaultValue: DefaultValueType;
6
- dataModelField: DataConnectionValues;
7
- setFormData: Dispatch<SetStateAction<AnyObject>>;
8
- }>;
9
- export declare const useSetFormData: <DefaultValueType>({ setFormData, defaultValue, dataModelField, }: Partial<{
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[] | undefined;
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, displayOnlyInputDefaultValue, optional, required, rules, conditionConfig, state, formData, htmlElementId, }: InputFieldProps) => JSX.Element | null;
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, displayOnlyInputDefaultValue, optional, required, rules, conditionConfig, state, formData, htmlElementId, }: Partial<{
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;