@zealicsolutions/web-ui 0.2.19 → 0.2.20

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 (30) hide show
  1. package/dist/cjs/index.js +11 -11
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/src/atoms/Input/Input.d.ts +2 -1
  4. package/dist/cjs/src/fieldsConfiguration/types.d.ts +2 -0
  5. package/dist/cjs/src/molecules/FieldMapper/FieldMapper.d.ts +2 -1
  6. package/dist/cjs/src/organisms/SubscribePanel/SubscribePanel.d.ts +3 -0
  7. package/dist/cjs/src/organisms/SubscribePanel/SubscribePanel.stories.d.ts +9 -0
  8. package/dist/cjs/src/organisms/SubscribePanel/SubscribePanelA.d.ts +3 -0
  9. package/dist/cjs/src/organisms/SubscribePanel/SubscribePanelB.d.ts +3 -0
  10. package/dist/cjs/src/organisms/SubscribePanel/constants.d.ts +4 -0
  11. package/dist/cjs/src/organisms/SubscribePanel/type.d.ts +18 -0
  12. package/dist/cjs/src/organisms/index.d.ts +1 -0
  13. package/dist/cjs/src/theme/types.d.ts +1 -1
  14. package/dist/esm/index.js +11 -11
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/src/atoms/Input/Input.d.ts +2 -1
  17. package/dist/esm/src/fieldsConfiguration/types.d.ts +2 -0
  18. package/dist/esm/src/molecules/FieldMapper/FieldMapper.d.ts +2 -1
  19. package/dist/esm/src/organisms/SubscribePanel/SubscribePanel.d.ts +3 -0
  20. package/dist/esm/src/organisms/SubscribePanel/SubscribePanel.stories.d.ts +9 -0
  21. package/dist/esm/src/organisms/SubscribePanel/SubscribePanelA.d.ts +3 -0
  22. package/dist/esm/src/organisms/SubscribePanel/SubscribePanelB.d.ts +3 -0
  23. package/dist/esm/src/organisms/SubscribePanel/constants.d.ts +4 -0
  24. package/dist/esm/src/organisms/SubscribePanel/type.d.ts +18 -0
  25. package/dist/esm/src/organisms/index.d.ts +1 -0
  26. package/dist/esm/src/theme/types.d.ts +1 -1
  27. package/dist/index.d.ts +32 -10
  28. package/package.json +1 -1
  29. /package/dist/cjs/src/{organisms/ForgotPasswordForm/constants.d.ts → fieldsConfiguration/shared.d.ts} +0 -0
  30. /package/dist/esm/src/{organisms/ForgotPasswordForm/constants.d.ts → fieldsConfiguration/shared.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
1
  import type { IconNames } from 'atoms/Icon/Icon';
3
2
  import { InputFieldTypes } from 'fieldsConfiguration/types';
3
+ import React from 'react';
4
4
  import type { Callback } from 'typescript';
5
5
  export declare type InputIconProps = {
6
6
  name: IconNames;
@@ -18,5 +18,6 @@ export declare type InputProps = {
18
18
  isError?: boolean;
19
19
  maxLength?: number;
20
20
  onChange?: (value: string) => void;
21
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
21
22
  };
22
23
  export declare const Input: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, ...rest }: InputProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectOption } from 'atoms/Select/types';
2
3
  import { ControllerProps } from 'react-hook-form';
3
4
  export declare type InputFieldTypes = 'number' | 'text' | 'email' | 'password';
@@ -17,6 +18,7 @@ export declare type UIField<T = string> = (UIInputField & UISelectField & UIChec
17
18
  export declare type UIInputField = {
18
19
  inputType?: InputFieldTypes;
19
20
  maxLength?: number;
21
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
20
22
  };
21
23
  export declare type UISelectField = {
22
24
  options?: SelectOption[];
@@ -8,5 +8,6 @@ export declare type FieldMapperProps<T extends object> = {
8
8
  spacer?: number;
9
9
  isTooltipVisible?: boolean;
10
10
  optionsPresentation?: boolean;
11
+ styles?: React.CSSProperties;
11
12
  };
12
- export declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, isTooltipVisible, optionsPresentation, }: FieldMapperProps<T>) => JSX.Element | null;
13
+ export declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, isTooltipVisible, optionsPresentation, styles, }: FieldMapperProps<T>) => JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SubscribePanelProps } from './type';
3
+ export declare const SubscribePanel: ({ template, onSubscribe, ...props }: SubscribePanelProps) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { ComponentStory } from '@storybook/react';
3
+ import { SubscribePanel as SubscribePanelComponent } from './SubscribePanel';
4
+ declare const _default: {
5
+ title: string;
6
+ component: ({ template, onSubscribe, ...props }: import("./type").SubscribePanelProps) => JSX.Element;
7
+ };
8
+ export default _default;
9
+ export declare const SubscribePanel: ComponentStory<typeof SubscribePanelComponent>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SubscribePanelTemplateProps } from './type';
3
+ export declare const SubscribePanelA: ({ title, description, subscribeHandler, isSubscribing, control, isMobile, }: SubscribePanelTemplateProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SubscribePanelTemplateProps } from './type';
3
+ export declare const SubscribePanelB: ({ title, description, subscribeHandler, isSubscribing, control, isMobile, }: SubscribePanelTemplateProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { UIField } from 'fieldsConfiguration';
2
+ export declare const subscribePanelEmailInput: UIField<'email'>;
3
+ export declare const showSubscribeErrorMessage: () => void | undefined;
4
+ export declare const showSubscribeSuccessMessage: () => void | undefined;
@@ -0,0 +1,18 @@
1
+ import { Control } from 'react-hook-form';
2
+ import { Callback } from 'typescript';
3
+ export declare type SubscribePanelTemplateKeys = `subscribe_template_${'a' | 'b'}`;
4
+ export declare type SubscribePanelTemplateProps = {
5
+ title?: string;
6
+ description?: string;
7
+ isSubscribing?: boolean;
8
+ subscribeHandler: Callback;
9
+ isMobile: boolean;
10
+ control: Control<SubscribePanelForm>;
11
+ };
12
+ export declare type SubscribePanelProps = Omit<SubscribePanelTemplateProps, 'isMobile' | 'control' | 'subscribeHandler'> & {
13
+ template: SubscribePanelTemplateKeys;
14
+ onSubscribe: (email: string) => void;
15
+ };
16
+ export declare type SubscribePanelForm = {
17
+ email: string;
18
+ };
@@ -16,3 +16,4 @@ export * from './FeedContentContainer/FeedContentContainer';
16
16
  export * from './DynamicContentZone/DynamicContentZone';
17
17
  export * from './BottomNavBarNavigation/BottomNavBarNavigation';
18
18
  export * from './HeroSlider/HeroSlider';
19
+ export * from './SubscribePanel/SubscribePanel';
@@ -1,5 +1,5 @@
1
1
  export declare type ThemeColors = 'primary' | 'secondary' | 'background' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'indigo' | 'blue' | 'white' | 'black' | 'indigoTint' | 'indigoTint2' | 'success' | 'error' | 'warning' | 'green' | 'greenTint';
2
- export declare type SizesTypes = '2XL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
2
+ export declare type SizesTypes = '3XL' | '2XL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
3
3
  export declare type FontSizesTypes = SizesTypes | 'H2';
4
4
  export declare type BreakpointSizesTypes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
5
  export declare type ThemeColorsType = Record<ThemeColors, string>;