@zealicsolutions/web-ui 0.3.59 → 0.3.61

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.
@@ -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;
package/dist/index.d.ts CHANGED
@@ -1043,7 +1043,7 @@ declare type SelectFieldProps = Partial<{
1043
1043
  state: FormStateType$1;
1044
1044
  formData: AnyObject$1;
1045
1045
  }>;
1046
- declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, conditionConfig, formData, }: SelectFieldProps) => JSX.Element | null;
1046
+ declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, conditionConfig, formData, state, }: SelectFieldProps) => JSX.Element | null;
1047
1047
 
1048
1048
  declare type CustomValidationRule<T = string> = {
1049
1049
  text: string;
@@ -1739,6 +1739,11 @@ interface ConsentFieldMolecule extends BaseMolecule {
1739
1739
  }>;
1740
1740
  conditionConfig: ConditionConfigAttributes;
1741
1741
  }>;
1742
+ config: {
1743
+ props: Partial<{
1744
+ state: 'field_error';
1745
+ }>;
1746
+ };
1742
1747
  }
1743
1748
  interface LinkMolecule extends BaseMolecule {
1744
1749
  type: 'link';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.3.59",
3
+ "version": "0.3.61",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"