@zealicsolutions/web-ui 0.1.38 → 0.1.40
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.
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/RichTextViewer/types.d.ts +7 -1
- package/dist/cjs/src/atoms/Select/Select.d.ts +1 -1
- package/dist/cjs/src/atoms/Select/Select.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/Select/types.d.ts +1 -0
- package/dist/cjs/src/molecules/FieldMapper/FieldMapper.d.ts +2 -1
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +2 -1
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/RichTextViewer/types.d.ts +7 -1
- package/dist/esm/src/atoms/Select/Select.d.ts +1 -1
- package/dist/esm/src/atoms/Select/Select.stories.d.ts +1 -1
- package/dist/esm/src/atoms/Select/types.d.ts +1 -0
- package/dist/esm/src/molecules/FieldMapper/FieldMapper.d.ts +2 -1
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +2 -1
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +1 -1
- package/dist/index.d.ts +6 -3
- package/package.json +1 -1
@@ -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,8 @@ 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
|
+
isColumnLink?: boolean;
|
35
|
+
};
|
@@ -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>;
|
@@ -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;
|