@zealicsolutions/web-ui 0.4.32 → 0.4.34

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;
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, displayOnlyInputDefaultValue, optional, required, rules, conditionConfig, state, formData, htmlElementId, }: InputFieldProps) => JSX.Element | null;
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.4.32",
4
- "testVersion": "0.3.145",
3
+ "version": "0.4.34",
4
+ "testVersion": "0.3.165",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"