@zealicsolutions/web-ui 0.1.24 → 0.1.25

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.
@@ -7,7 +7,7 @@ export declare type SelectProps = {
7
7
  onChange?: (value: string) => void;
8
8
  placeholder?: string;
9
9
  disabled?: boolean;
10
- options: SelectOption[];
10
+ options?: SelectOption[];
11
11
  isError?: boolean;
12
12
  isEditMode?: boolean;
13
13
  };
@@ -19,7 +19,7 @@ export declare type UIInputField = {
19
19
  maxLength?: number;
20
20
  };
21
21
  export declare type UISelectField = {
22
- options: SelectOption[];
22
+ options?: SelectOption[];
23
23
  };
24
24
  export declare type UICheckboxField = {
25
25
  checkboxLabel?: string;
@@ -1,14 +1,17 @@
1
1
  /// <reference types="react" />
2
+ import { ConsentProps } from 'organisms';
2
3
  import type { Callback } from 'typescript';
3
4
  import { UIFields } from '../../fieldsConfiguration';
4
5
  export declare type AcquisitionFormProps<T extends object> = {
5
6
  fields: UIFields<T>;
7
+ consents: ConsentProps[];
6
8
  logoUrl: string;
7
9
  isLoading?: boolean;
10
+ isSubmitDisabled?: boolean;
8
11
  title: string;
9
12
  description?: string;
10
13
  buttonText?: string;
11
14
  onSubmit: (values: T) => void;
12
15
  onLinkButtonClick?: Callback;
13
16
  };
14
- export declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isLoading, }: AcquisitionFormProps<T>) => JSX.Element;
17
+ export declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isSubmitDisabled, consents, isLoading, }: AcquisitionFormProps<T>) => JSX.Element;
@@ -3,7 +3,7 @@ import { ComponentStory } from '@storybook/react';
3
3
  import { AcquisitionForm as AcquisitionFormComponent } from './AcquisitionForm';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isLoading, }: import("./AcquisitionForm").AcquisitionFormProps<T>) => JSX.Element;
6
+ component: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isSubmitDisabled, consents, isLoading, }: import("./AcquisitionForm").AcquisitionFormProps<T>) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const AcquisitionForm: ComponentStory<typeof AcquisitionFormComponent>;
@@ -3,7 +3,9 @@ import { CSSProperties } from 'styled-components';
3
3
  import { ConsentCaptureProps } from './ConsentCapture';
4
4
  export declare type ConsentProps<T extends string = string> = {
5
5
  text: string;
6
+ isRequired?: boolean;
6
7
  consentCaptureProps: ConsentCaptureProps<T>;
7
8
  containerStyles?: CSSProperties;
9
+ clearStyles?: boolean;
8
10
  };
9
- export declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, }: ConsentProps<T>) => JSX.Element;
11
+ export declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
@@ -3,7 +3,7 @@ import { ComponentStory } from '@storybook/react';
3
3
  import { Consent as ConsentComponent } from './Consent';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: <T extends string>({ text, consentCaptureProps, containerStyles, }: import("./Consent").ConsentProps<T>) => JSX.Element;
6
+ component: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: import("./Consent").ConsentProps<T>) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Consent: ComponentStory<typeof ConsentComponent>;
@@ -1,14 +1,15 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonProps, RadioButtonsProps } from 'atoms';
3
- declare type ButtonCaptureProps = {
3
+ export declare type ButtonCaptureProps = {
4
4
  type: 'button';
5
- confirmButton: ButtonProps;
5
+ acceptButton: ButtonProps;
6
6
  denyButton: ButtonProps;
7
7
  };
8
- declare type RadioButtonsCaptureProps<T extends string> = {
8
+ export declare type RadioButtonsCaptureProps<T extends string> = {
9
9
  type: 'radioButton';
10
+ acceptValue: T;
10
11
  } & RadioButtonsProps<T>;
11
- declare type CheckboxCaptureProps = {
12
+ export declare type CheckboxCaptureProps = {
12
13
  type: 'checkbox';
13
14
  label: string;
14
15
  value: boolean;
@@ -16,4 +17,3 @@ declare type CheckboxCaptureProps = {
16
17
  };
17
18
  export declare type ConsentCaptureProps<T extends string = string> = ButtonCaptureProps | RadioButtonsCaptureProps<T> | CheckboxCaptureProps;
18
19
  export declare const ConsentCapture: <T extends string>(props: ConsentCaptureProps<T>) => JSX.Element;
19
- export {};
package/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ import { InputProps as InputProps$1, RadioButtonsProps as RadioButtonsProps$1, B
19
19
  import { SelectOption as SelectOption$1 } from 'atoms/Select/types';
20
20
  import { ControllerProps as ControllerProps$1, DeepPartial, FieldValues, FormState } from 'react-hook-form';
21
21
  import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organisms/SetPasswordForm/types';
22
+ import { ConsentProps as ConsentProps$1 } from 'organisms';
22
23
  import { FooterAProps } from 'organisms/Footer/FooterA';
23
24
  import { FooterBProps } from 'organisms/Footer/FooterB';
24
25
  import { FooterCProps } from 'organisms/Footer/FooterC';
@@ -72,7 +73,7 @@ declare type SelectProps = {
72
73
  onChange?: (value: string) => void;
73
74
  placeholder?: string;
74
75
  disabled?: boolean;
75
- options: SelectOption[];
76
+ options?: SelectOption[];
76
77
  isError?: boolean;
77
78
  isEditMode?: boolean;
78
79
  };
@@ -305,7 +306,7 @@ declare type UIInputField = {
305
306
  maxLength?: number;
306
307
  };
307
308
  declare type UISelectField = {
308
- options: SelectOption$1[];
309
+ options?: SelectOption$1[];
309
310
  };
310
311
  declare type UICheckboxField = {
311
312
  checkboxLabel?: string;
@@ -537,15 +538,17 @@ declare const SetPasswordForm: ({ logoUrl, fields, validations, onBack, onSubmit
537
538
 
538
539
  declare type AcquisitionFormProps<T extends object> = {
539
540
  fields: UIFields<T>;
541
+ consents: ConsentProps$1[];
540
542
  logoUrl: string;
541
543
  isLoading?: boolean;
544
+ isSubmitDisabled?: boolean;
542
545
  title: string;
543
546
  description?: string;
544
547
  buttonText?: string;
545
548
  onSubmit: (values: T) => void;
546
549
  onLinkButtonClick?: Callback;
547
550
  };
548
- declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isLoading, }: AcquisitionFormProps<T>) => JSX.Element;
551
+ declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isSubmitDisabled, consents, isLoading, }: AcquisitionFormProps<T>) => JSX.Element;
549
552
 
550
553
  declare type VerificationCodeForm = {
551
554
  code: string;
@@ -667,11 +670,12 @@ declare const Header: <T extends string | number>(props: HeaderProps<T>) => JSX.
667
670
 
668
671
  declare type ButtonCaptureProps = {
669
672
  type: 'button';
670
- confirmButton: ButtonProps$1;
673
+ acceptButton: ButtonProps$1;
671
674
  denyButton: ButtonProps$1;
672
675
  };
673
676
  declare type RadioButtonsCaptureProps<T extends string> = {
674
677
  type: 'radioButton';
678
+ acceptValue: T;
675
679
  } & RadioButtonsProps$1<T>;
676
680
  declare type CheckboxCaptureProps = {
677
681
  type: 'checkbox';
@@ -683,10 +687,12 @@ declare type ConsentCaptureProps<T extends string = string> = ButtonCaptureProps
683
687
 
684
688
  declare type ConsentProps<T extends string = string> = {
685
689
  text: string;
690
+ isRequired?: boolean;
686
691
  consentCaptureProps: ConsentCaptureProps<T>;
687
692
  containerStyles?: CSSProperties;
693
+ clearStyles?: boolean;
688
694
  };
689
- declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, }: ConsentProps<T>) => JSX.Element;
695
+ declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
690
696
 
691
697
  declare type DefaultTemplateProps = {
692
698
  header: React.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"