@zealicsolutions/web-ui 0.3.59 → 0.3.61

Sign up to get free protection for your applications and to get access to all the features.
@@ -213,6 +213,11 @@ export interface ConsentFieldMolecule extends BaseMolecule {
213
213
  }>;
214
214
  conditionConfig: ConditionConfigAttributes;
215
215
  }>;
216
+ config: {
217
+ props: Partial<{
218
+ state: 'field_error';
219
+ }>;
220
+ };
216
221
  }
217
222
  export interface LinkMolecule extends BaseMolecule {
218
223
  type: 'link';
@@ -3,7 +3,8 @@ import { ConsentFieldMolecule } from 'containers';
3
3
  import { AnyObject } from 'typescript';
4
4
  declare type ConsentMoleculeProps = {
5
5
  attributes: ConsentFieldMolecule['attributes'];
6
+ config: ConsentFieldMolecule['config'];
6
7
  formData?: AnyObject;
7
8
  };
8
- export declare const ConsentMolecule: ({ attributes, formData }: ConsentMoleculeProps) => JSX.Element | null;
9
+ export declare const ConsentMolecule: ({ attributes, formData, config }: ConsentMoleculeProps) => JSX.Element | null;
9
10
  export {};
@@ -19,4 +19,4 @@ export declare type SelectFieldProps = Partial<{
19
19
  state: FormStateType;
20
20
  formData: AnyObject;
21
21
  }>;
22
- export declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, conditionConfig, formData, }: SelectFieldProps) => JSX.Element | null;
22
+ export declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, conditionConfig, formData, state, }: SelectFieldProps) => JSX.Element | null;
@@ -3,7 +3,7 @@ import { StoryFn } from '@storybook/react';
3
3
  import { SelectFieldProps } from './SelectField';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, conditionConfig, formData, }: Partial<{
6
+ component: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, conditionConfig, formData, state, }: Partial<{
7
7
  selectProps: Partial<{
8
8
  ref: import("react-hook-form").RefCallBack;
9
9
  onBlur: import("typescript").Callback;