@zealicsolutions/web-ui 0.1.38 → 0.1.39

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.
@@ -1,10 +1,11 @@
1
- export declare type Format = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'numbered-list' | 'bulleted-list' | 'communicationLink' | 'tag';
1
+ export declare type Format = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'numbered-list' | 'bulleted-list' | 'communicationLink' | 'button' | 'tag';
2
2
  export declare type TextFormat = Partial<{
3
3
  bold: boolean;
4
4
  italic: boolean;
5
5
  underline: boolean;
6
6
  strikethrough: boolean;
7
7
  communicationLink: CommunicationLinkPayload;
8
+ button: ButtonPayload;
8
9
  tag: {
9
10
  id: string;
10
11
  };
@@ -27,3 +28,7 @@ export declare type CommunicationLinkPayload = {
27
28
  type: LinkType;
28
29
  url: string;
29
30
  };
31
+ export declare type ButtonPayload = {
32
+ buttonLink: string;
33
+ elementId?: string;
34
+ };
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import type { SelectProps } from './types';
3
- export declare const Select: ({ onChange, value, placeholder, options, disabled, isError, }: SelectProps) => JSX.Element;
3
+ export declare const Select: ({ onChange, value, placeholder, options, disabled, optionsPresentation, isError, }: SelectProps) => JSX.Element;
@@ -3,7 +3,7 @@ import type { ComponentStory } from '@storybook/react';
3
3
  import { Select as SelectComponent } from './Select';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ onChange, value, placeholder, options, disabled, isError, }: import("./types").SelectProps) => JSX.Element;
6
+ component: ({ onChange, value, placeholder, options, disabled, optionsPresentation, isError, }: import("./types").SelectProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Select: ComponentStory<typeof SelectComponent>;
@@ -4,6 +4,7 @@ export declare type SelectOption = {
4
4
  };
5
5
  export declare type SelectProps = {
6
6
  value?: string;
7
+ optionsPresentation?: boolean;
7
8
  onChange?: (value: string) => void;
8
9
  placeholder?: string;
9
10
  disabled?: boolean;
@@ -7,5 +7,6 @@ export declare type FieldMapperProps<T extends object> = {
7
7
  control?: Control<T>;
8
8
  spacer?: number;
9
9
  isTooltipVisible?: boolean;
10
+ optionsPresentation?: boolean;
10
11
  };
11
- export declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, isTooltipVisible, }: FieldMapperProps<T>) => JSX.Element | null;
12
+ export declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, isTooltipVisible, optionsPresentation, }: FieldMapperProps<T>) => JSX.Element | null;
@@ -16,5 +16,6 @@ export declare type AcquisitionFormProps<T extends object> = {
16
16
  showConsentLabel?: boolean;
17
17
  triggerFormInitially?: boolean;
18
18
  isTooltipVisible?: boolean;
19
+ optionsPresentation?: boolean;
19
20
  };
20
- export declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, isTooltipVisible, }: AcquisitionFormProps<T>) => JSX.Element;
21
+ export declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, optionsPresentation, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, isTooltipVisible, }: 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, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, isTooltipVisible, }: import("./AcquisitionForm").AcquisitionFormProps<T>) => JSX.Element;
6
+ component: <T extends object>({ logoUrl, title, description, buttonText, fields, optionsPresentation, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, isTooltipVisible, }: import("./AcquisitionForm").AcquisitionFormProps<T>) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const AcquisitionForm: ComponentStory<typeof AcquisitionFormComponent>;
package/dist/index.d.ts CHANGED
@@ -72,6 +72,7 @@ declare type SelectOption = {
72
72
  };
73
73
  declare type SelectProps = {
74
74
  value?: string;
75
+ optionsPresentation?: boolean;
75
76
  onChange?: (value: string) => void;
76
77
  placeholder?: string;
77
78
  disabled?: boolean;
@@ -80,7 +81,7 @@ declare type SelectProps = {
80
81
  isEditMode?: boolean;
81
82
  };
82
83
 
83
- declare const Select: ({ onChange, value, placeholder, options, disabled, isError, }: SelectProps) => JSX.Element;
84
+ declare const Select: ({ onChange, value, placeholder, options, disabled, optionsPresentation, isError, }: SelectProps) => JSX.Element;
84
85
 
85
86
  declare type InputIconProps = {
86
87
  name: IconNames$1;
@@ -342,8 +343,9 @@ declare type FieldMapperProps<T extends object> = {
342
343
  control?: Control<T>;
343
344
  spacer?: number;
344
345
  isTooltipVisible?: boolean;
346
+ optionsPresentation?: boolean;
345
347
  };
346
- declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, isTooltipVisible, }: FieldMapperProps<T>) => JSX.Element | null;
348
+ declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, isTooltipVisible, optionsPresentation, }: FieldMapperProps<T>) => JSX.Element | null;
347
349
 
348
350
  declare type CheckboxFieldProps = {
349
351
  name: string;
@@ -561,8 +563,9 @@ declare type AcquisitionFormProps<T extends object> = {
561
563
  showConsentLabel?: boolean;
562
564
  triggerFormInitially?: boolean;
563
565
  isTooltipVisible?: boolean;
566
+ optionsPresentation?: boolean;
564
567
  };
565
- declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, isTooltipVisible, }: AcquisitionFormProps<T>) => JSX.Element;
568
+ declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, optionsPresentation, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, isTooltipVisible, }: AcquisitionFormProps<T>) => JSX.Element;
566
569
 
567
570
  declare type VerificationCodeForm = {
568
571
  code: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"