@zealicsolutions/web-ui 0.1.37 → 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.
Files changed (28) hide show
  1. package/dist/cjs/index.js +3 -3
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/src/atoms/RichTextViewer/types.d.ts +6 -1
  4. package/dist/cjs/src/atoms/Select/Select.d.ts +1 -1
  5. package/dist/cjs/src/atoms/Select/Select.stories.d.ts +1 -1
  6. package/dist/cjs/src/atoms/Select/types.d.ts +1 -0
  7. package/dist/cjs/src/molecules/FieldLabels/FieldLabels.d.ts +2 -1
  8. package/dist/cjs/src/molecules/FieldLabels/FieldLabels.stories.d.ts +1 -1
  9. package/dist/cjs/src/molecules/FieldMapper/FieldMapper.d.ts +3 -1
  10. package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +3 -1
  11. package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +1 -1
  12. package/dist/cjs/src/organisms/LoginForm/LoginForm.d.ts +2 -1
  13. package/dist/cjs/src/organisms/LoginForm/LoginForm.stories.d.ts +1 -1
  14. package/dist/esm/index.js +3 -3
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/src/atoms/RichTextViewer/types.d.ts +6 -1
  17. package/dist/esm/src/atoms/Select/Select.d.ts +1 -1
  18. package/dist/esm/src/atoms/Select/Select.stories.d.ts +1 -1
  19. package/dist/esm/src/atoms/Select/types.d.ts +1 -0
  20. package/dist/esm/src/molecules/FieldLabels/FieldLabels.d.ts +2 -1
  21. package/dist/esm/src/molecules/FieldLabels/FieldLabels.stories.d.ts +1 -1
  22. package/dist/esm/src/molecules/FieldMapper/FieldMapper.d.ts +3 -1
  23. package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +3 -1
  24. package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +1 -1
  25. package/dist/esm/src/organisms/LoginForm/LoginForm.d.ts +2 -1
  26. package/dist/esm/src/organisms/LoginForm/LoginForm.stories.d.ts +1 -1
  27. package/dist/index.d.ts +12 -5
  28. 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,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;
@@ -4,6 +4,7 @@ export declare type FieldLabelsProps = {
4
4
  label: string;
5
5
  tooltipText?: string;
6
6
  isError?: boolean;
7
+ isTooltipVisible?: boolean;
7
8
  ruleLabel?: FieldRuleLabelTypes;
8
9
  };
9
- export declare const FieldLabels: ({ label, isError, ruleLabel, tooltipText }: FieldLabelsProps) => JSX.Element;
10
+ export declare const FieldLabels: ({ label, isTooltipVisible, isError, ruleLabel, tooltipText, }: FieldLabelsProps) => JSX.Element;
@@ -3,7 +3,7 @@ import type { ComponentStory } from '@storybook/react';
3
3
  import { FieldLabels as FieldLabelsComponent } from './FieldLabels';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ label, isError, ruleLabel, tooltipText }: import("./FieldLabels").FieldLabelsProps) => JSX.Element;
6
+ component: ({ label, isTooltipVisible, isError, ruleLabel, tooltipText, }: import("./FieldLabels").FieldLabelsProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const FieldLabels: ComponentStory<typeof FieldLabelsComponent>;
@@ -6,5 +6,7 @@ export declare type FieldMapperProps<T extends object> = {
6
6
  isEditMode?: boolean;
7
7
  control?: Control<T>;
8
8
  spacer?: number;
9
+ isTooltipVisible?: boolean;
10
+ optionsPresentation?: boolean;
9
11
  };
10
- export declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, }: FieldMapperProps<T>) => JSX.Element | null;
12
+ export declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, isTooltipVisible, optionsPresentation, }: FieldMapperProps<T>) => JSX.Element | null;
@@ -15,5 +15,7 @@ export declare type AcquisitionFormProps<T extends object> = {
15
15
  onLinkButtonClick?: Callback;
16
16
  showConsentLabel?: boolean;
17
17
  triggerFormInitially?: boolean;
18
+ isTooltipVisible?: boolean;
19
+ optionsPresentation?: boolean;
18
20
  };
19
- export declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, }: 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, }: 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>;
@@ -14,5 +14,6 @@ export declare type LoginFormProps = {
14
14
  onSubmit: (values: LoginFields) => void;
15
15
  onSignUpButtonClick?: Callback;
16
16
  onForgotPasswordButtonClick?: Callback;
17
+ isTooltipVisible?: boolean;
17
18
  };
18
- export declare const LoginForm: ({ logoUrl, fields, onSubmit, onSignUpButtonClick, isLoading, twoFactorAuthConfig, onForgotPasswordButtonClick, }: LoginFormProps) => JSX.Element;
19
+ export declare const LoginForm: ({ logoUrl, fields, isTooltipVisible, onSubmit, onSignUpButtonClick, isLoading, twoFactorAuthConfig, onForgotPasswordButtonClick, }: LoginFormProps) => JSX.Element;
@@ -3,7 +3,7 @@ import { ComponentStory } from '@storybook/react';
3
3
  import { LoginForm as LoginFormComponent } from './LoginForm';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ logoUrl, fields, onSubmit, onSignUpButtonClick, isLoading, twoFactorAuthConfig, onForgotPasswordButtonClick, }: import("./LoginForm").LoginFormProps) => JSX.Element;
6
+ component: ({ logoUrl, fields, isTooltipVisible, onSubmit, onSignUpButtonClick, isLoading, twoFactorAuthConfig, onForgotPasswordButtonClick, }: import("./LoginForm").LoginFormProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const LoginForm: ComponentStory<typeof LoginFormComponent>;
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;
@@ -277,9 +278,10 @@ declare type FieldLabelsProps = {
277
278
  label: string;
278
279
  tooltipText?: string;
279
280
  isError?: boolean;
281
+ isTooltipVisible?: boolean;
280
282
  ruleLabel?: FieldRuleLabelTypes;
281
283
  };
282
- declare const FieldLabels: ({ label, isError, ruleLabel, tooltipText }: FieldLabelsProps) => JSX.Element;
284
+ declare const FieldLabels: ({ label, isTooltipVisible, isError, ruleLabel, tooltipText, }: FieldLabelsProps) => JSX.Element;
283
285
 
284
286
  declare type InputFieldProps = {
285
287
  name: string;
@@ -340,8 +342,10 @@ declare type FieldMapperProps<T extends object> = {
340
342
  isEditMode?: boolean;
341
343
  control?: Control<T>;
342
344
  spacer?: number;
345
+ isTooltipVisible?: boolean;
346
+ optionsPresentation?: boolean;
343
347
  };
344
- declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, }: FieldMapperProps<T>) => JSX.Element | null;
348
+ declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, isTooltipVisible, optionsPresentation, }: FieldMapperProps<T>) => JSX.Element | null;
345
349
 
346
350
  declare type CheckboxFieldProps = {
347
351
  name: string;
@@ -558,8 +562,10 @@ declare type AcquisitionFormProps<T extends object> = {
558
562
  onLinkButtonClick?: Callback;
559
563
  showConsentLabel?: boolean;
560
564
  triggerFormInitially?: boolean;
565
+ isTooltipVisible?: boolean;
566
+ optionsPresentation?: boolean;
561
567
  };
562
- declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, }: 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;
563
569
 
564
570
  declare type VerificationCodeForm = {
565
571
  code: string;
@@ -590,8 +596,9 @@ declare type LoginFormProps = {
590
596
  onSubmit: (values: LoginFields) => void;
591
597
  onSignUpButtonClick?: Callback;
592
598
  onForgotPasswordButtonClick?: Callback;
599
+ isTooltipVisible?: boolean;
593
600
  };
594
- declare const LoginForm: ({ logoUrl, fields, onSubmit, onSignUpButtonClick, isLoading, twoFactorAuthConfig, onForgotPasswordButtonClick, }: LoginFormProps) => JSX.Element;
601
+ declare const LoginForm: ({ logoUrl, fields, isTooltipVisible, onSubmit, onSignUpButtonClick, isLoading, twoFactorAuthConfig, onForgotPasswordButtonClick, }: LoginFormProps) => JSX.Element;
595
602
 
596
603
  declare type FooterProps = FooterAProps | FooterBProps | FooterCProps;
597
604
  declare const Footer: (props: FooterProps) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.1.37",
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"