@zealicsolutions/web-ui 0.2.88 → 0.2.89

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 (50) hide show
  1. package/dist/cjs/index.js +19 -18
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/src/atoms/Input/Input.d.ts +2 -2
  4. package/dist/cjs/src/atoms/Select/Select.d.ts +2 -1
  5. package/dist/cjs/src/atoms/Select/Select.stories.d.ts +1 -1
  6. package/dist/cjs/src/containers/Container.d.ts +1 -1
  7. package/dist/cjs/src/containers/Container.stories.d.ts +6 -9
  8. package/dist/cjs/src/containers/FormContainer.d.ts +6 -0
  9. package/dist/cjs/src/containers/MoleculeItem.d.ts +1 -1
  10. package/dist/cjs/src/containers/mock-data.d.ts +64 -0
  11. package/dist/cjs/src/containers/styles.d.ts +4 -0
  12. package/dist/cjs/src/containers/types/moleculeTypes.d.ts +45 -12
  13. package/dist/cjs/src/containers/types/types.d.ts +11 -3
  14. package/dist/cjs/src/fieldsConfiguration/types.d.ts +5 -8
  15. package/dist/cjs/src/molecules/Button/Button.d.ts +2 -1
  16. package/dist/cjs/src/molecules/Button/Button.stories.d.ts +1 -1
  17. package/dist/cjs/src/molecules/FieldLabels/FieldLabels.d.ts +2 -1
  18. package/dist/cjs/src/molecules/FieldLabels/FieldLabels.stories.d.ts +1 -1
  19. package/dist/cjs/src/molecules/InputField/InputField.d.ts +10 -10
  20. package/dist/cjs/src/molecules/InputField/InputField.stories.d.ts +28 -1
  21. package/dist/cjs/src/molecules/SelectField/SelectField.d.ts +9 -9
  22. package/dist/cjs/src/molecules/SelectField/SelectField.stories.d.ts +28 -1
  23. package/dist/cjs/src/organisms/SubscribePanel/SubscribePanel.stories.d.ts +6 -4
  24. package/dist/cjs/src/organisms/SubscribePanel/organism-data.d.ts +2 -0
  25. package/dist/esm/index.js +20 -19
  26. package/dist/esm/index.js.map +1 -1
  27. package/dist/esm/src/atoms/Input/Input.d.ts +2 -2
  28. package/dist/esm/src/atoms/Select/Select.d.ts +2 -1
  29. package/dist/esm/src/atoms/Select/Select.stories.d.ts +1 -1
  30. package/dist/esm/src/containers/Container.d.ts +1 -1
  31. package/dist/esm/src/containers/Container.stories.d.ts +6 -9
  32. package/dist/esm/src/containers/FormContainer.d.ts +6 -0
  33. package/dist/esm/src/containers/MoleculeItem.d.ts +1 -1
  34. package/dist/esm/src/containers/mock-data.d.ts +64 -0
  35. package/dist/esm/src/containers/styles.d.ts +4 -0
  36. package/dist/esm/src/containers/types/moleculeTypes.d.ts +45 -12
  37. package/dist/esm/src/containers/types/types.d.ts +11 -3
  38. package/dist/esm/src/fieldsConfiguration/types.d.ts +5 -8
  39. package/dist/esm/src/molecules/Button/Button.d.ts +2 -1
  40. package/dist/esm/src/molecules/Button/Button.stories.d.ts +1 -1
  41. package/dist/esm/src/molecules/FieldLabels/FieldLabels.d.ts +2 -1
  42. package/dist/esm/src/molecules/FieldLabels/FieldLabels.stories.d.ts +1 -1
  43. package/dist/esm/src/molecules/InputField/InputField.d.ts +10 -10
  44. package/dist/esm/src/molecules/InputField/InputField.stories.d.ts +28 -1
  45. package/dist/esm/src/molecules/SelectField/SelectField.d.ts +9 -9
  46. package/dist/esm/src/molecules/SelectField/SelectField.stories.d.ts +28 -1
  47. package/dist/esm/src/organisms/SubscribePanel/SubscribePanel.stories.d.ts +6 -4
  48. package/dist/esm/src/organisms/SubscribePanel/organism-data.d.ts +2 -0
  49. package/dist/index.d.ts +89 -46
  50. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { InputFieldTypes } from 'fieldsConfiguration/types';
3
3
  import React from 'react';
4
4
  import { ThemeColors } from 'theme/types';
5
5
  import type { Callback, StylesType } from 'typescript';
6
- export declare type InputFieldInternalConfigProps = {
6
+ export declare type InputFieldInternalConfigProps = Partial<{
7
7
  textColor: ThemeColors | string;
8
8
  textFontSize: number;
9
9
  placeholderTextColor: ThemeColors | string;
@@ -12,7 +12,7 @@ export declare type InputFieldInternalConfigProps = {
12
12
  horizontalPadding: number;
13
13
  styles: StylesType;
14
14
  wrapperStyles: StylesType;
15
- };
15
+ }>;
16
16
  export declare type InputIconProps = {
17
17
  name: IconNames;
18
18
  onClick?: Callback;
@@ -25,5 +25,6 @@ export declare type SelectProps = {
25
25
  isError?: boolean;
26
26
  isEditMode?: boolean;
27
27
  selectInternalConfig?: SelectInternalConfigurationOptions;
28
+ isRichText?: boolean;
28
29
  };
29
- export declare const Select: ({ onChange, value, placeholder, options, disabled, optionsPresentation, isError, selectInternalConfig, }: SelectProps) => JSX.Element;
30
+ export declare const Select: ({ onChange, value, placeholder, options, disabled, optionsPresentation, isError, selectInternalConfig, isRichText, }: SelectProps) => JSX.Element;
@@ -3,7 +3,7 @@ import { StoryFn } from '@storybook/react';
3
3
  import { SelectProps } from './Select';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ onChange, value, placeholder, options, disabled, optionsPresentation, isError, selectInternalConfig, }: SelectProps) => JSX.Element;
6
+ component: ({ onChange, value, placeholder, options, disabled, optionsPresentation, isError, selectInternalConfig, isRichText, }: SelectProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Select: StoryFn<SelectProps>;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ContainerComponentProps, ContainerProps } from 'containers';
3
- export declare const Container: ({ children, wide, compact, type, ...props }: ContainerProps) => JSX.Element;
3
+ export declare const Container: ({ children, wide, compact, type, props }: ContainerProps) => JSX.Element;
4
4
  export declare const ContainerComponent: ({ type, items, config, tabsProps }: ContainerComponentProps) => JSX.Element | null;
@@ -1,9 +1,6 @@
1
- /// <reference types="react" />
2
- import type { StoryFn } from '@storybook/react';
3
- import { ContainerComponentProps } from 'containers';
4
- declare const _default: {
5
- title: string;
6
- component: ({ type, items, config, tabsProps }: ContainerComponentProps) => JSX.Element | null;
7
- };
8
- export default _default;
9
- export declare const Container: StoryFn<ContainerComponentProps>;
1
+ import type { Meta, StoryFn } from '@storybook/react';
2
+ import { ContainerComponent, ContainerComponentProps } from 'containers';
3
+ declare const meta: Meta<typeof ContainerComponent>;
4
+ export default meta;
5
+ declare type Story = StoryFn<ContainerComponentProps>;
6
+ export declare const Container: Story;
@@ -0,0 +1,6 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { ValidationMode } from 'react-hook-form';
3
+ export declare type FormContainerProps = PropsWithChildren<{
4
+ mode?: keyof ValidationMode;
5
+ }>;
6
+ export declare const FormContainer: ({ mode, children }: FormContainerProps) => JSX.Element;
@@ -3,6 +3,6 @@ import { Molecule } from 'containers';
3
3
  import { TabGroupProps } from 'molecules';
4
4
  export declare const getFullLink: (url: string) => string;
5
5
  export declare const navigateToPage: (url: string) => void;
6
- export declare const MoleculeItem: ({ type, config, attributes, tabsProps, }: Molecule & {
6
+ export declare const MoleculeItem: ({ type, config, attributes, tabsProps, form, }: Molecule & {
7
7
  tabsProps?: Pick<TabGroupProps<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
8
8
  }) => JSX.Element;
@@ -0,0 +1,64 @@
1
+ import { ButtonMolecule, ContainerComponentProps, TabGroupMolecule } from 'containers';
2
+ export declare const formContainerProps: ContainerComponentProps;
3
+ export declare const columnContainerProps: {
4
+ id: string;
5
+ instance: string;
6
+ type: string;
7
+ config: {
8
+ wide: {
9
+ containerProps: {
10
+ position: string;
11
+ scrollBehaviour: string;
12
+ cornerRadius: number;
13
+ };
14
+ containerStyle: {
15
+ gap: number;
16
+ padding: number;
17
+ backgroundColor: string;
18
+ };
19
+ };
20
+ compact: {
21
+ containerProps: {};
22
+ containerStyle: {
23
+ flexDirection: string;
24
+ gap: number;
25
+ };
26
+ };
27
+ };
28
+ items: (ButtonMolecule | TabGroupMolecule | {
29
+ id: string;
30
+ instance: string;
31
+ type: string;
32
+ attributes: {
33
+ image: {
34
+ attributeType: string;
35
+ imageSource: string;
36
+ };
37
+ altText: {
38
+ attributeType: string;
39
+ text: string;
40
+ };
41
+ link: {
42
+ attributeType: string;
43
+ id: string;
44
+ externalLink: string;
45
+ type: string;
46
+ name: string;
47
+ internalLink: string;
48
+ };
49
+ };
50
+ config: {
51
+ props: {
52
+ cornerRadius: number;
53
+ behaveAs: string;
54
+ };
55
+ };
56
+ })[];
57
+ tabsProps: {
58
+ tabs: {
59
+ tabKey: string;
60
+ text: string;
61
+ }[];
62
+ activeTabKey: string;
63
+ };
64
+ };
@@ -4,5 +4,9 @@ export declare const ContainerWrapper: import("styled-components").StyledCompone
4
4
  position: import("containers/types/types").ContainerPositionType;
5
5
  scrollBehaviour: import("containers/types/types").ContainerScrollBehaviourType;
6
6
  cornerRadius: number;
7
+ styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
8
+ formProps: {
9
+ mode: keyof import("react-hook-form").ValidationMode;
10
+ };
7
11
  }> | undefined;
8
12
  }, never>;
@@ -1,8 +1,9 @@
1
- import { SelectOption } from 'atoms/Select/types';
2
- import { ButtonProps, ImageProps, TabGroupProps } from 'molecules';
1
+ import { SelectOption } from 'atoms';
2
+ import { ButtonProps, ImageProps, InputFieldProps, SelectFieldProps, TabGroupProps } from 'molecules';
3
+ import { UseFormReturn } from 'react-hook-form';
3
4
  import { CSSProperties } from 'styled-components';
4
5
  import { FontSizesTypes, ThemeColors } from 'theme';
5
- import type { Nullable, StrictUnion } from 'typescript';
6
+ import type { Nullable, StrictUnion, StylesType } from 'typescript';
6
7
  export declare type ImageAttributes = {
7
8
  attributeType: 'image';
8
9
  imageSource: string;
@@ -17,8 +18,8 @@ export interface VideoAttributes {
17
18
  videoSource: string;
18
19
  }
19
20
  export interface LinkAttributes {
20
- attributeType: 'link';
21
21
  id: string;
22
+ attributeType: 'link';
22
23
  type: 'internalLink' | 'externalLink';
23
24
  internalLink: Nullable<string>;
24
25
  externalLink: Nullable<string>;
@@ -33,7 +34,11 @@ export interface BooleanAttributes {
33
34
  attributeType: 'boolean';
34
35
  value: boolean;
35
36
  }
36
- export declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group';
37
+ export interface IterableAttributes {
38
+ attributeType: 'iterable';
39
+ options: SelectOption[];
40
+ }
41
+ export declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field';
37
42
  export interface BaseMolecule {
38
43
  id: string;
39
44
  instance: 'molecule';
@@ -57,15 +62,15 @@ export interface TextMoleculeType extends BaseMolecule {
57
62
  seoStyle: SelectAttributes;
58
63
  };
59
64
  config: {
60
- props: {
65
+ props: Partial<{
61
66
  fontVariant: FontSizesTypes;
62
67
  textSize: number;
63
68
  textColor: ThemeColors | string;
64
69
  letterSpacing: number;
65
70
  lineHeight: number;
66
71
  isRichText: boolean;
67
- styles: CSSProperties;
68
- };
72
+ styles: StylesType;
73
+ }>;
69
74
  };
70
75
  }
71
76
  export interface ButtonMolecule extends BaseMolecule {
@@ -75,7 +80,7 @@ export interface ButtonMolecule extends BaseMolecule {
75
80
  buttonLink: LinkAttributes;
76
81
  };
77
82
  config: {
78
- props: Omit<ButtonProps, 'disabled' | 'children' | 'link' | 'text' | 'onClick' | 'elementId'>;
83
+ props: Partial<Omit<ButtonProps, 'disabled' | 'children' | 'link' | 'text' | 'onClick' | 'elementId'>>;
79
84
  };
80
85
  }
81
86
  export interface VideoMolecule extends BaseMolecule {
@@ -88,10 +93,10 @@ export interface VideoMolecule extends BaseMolecule {
88
93
  coverImage: ImageAttributes;
89
94
  };
90
95
  config: {
91
- props: {
96
+ props: Partial<{
92
97
  width: number;
93
98
  styles: CSSProperties;
94
- };
99
+ }>;
95
100
  };
96
101
  }
97
102
  export interface TabGroupMolecule extends BaseMolecule {
@@ -108,4 +113,32 @@ export interface TabGroupMolecule extends BaseMolecule {
108
113
  };
109
114
  };
110
115
  }
111
- export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule>;
116
+ export interface TextInputMolecule extends BaseMolecule {
117
+ type: 'input_field';
118
+ attributes: {
119
+ label: TextAttributes;
120
+ required: BooleanAttributes;
121
+ inputType: SelectAttributes;
122
+ };
123
+ config: {
124
+ props: Partial<{
125
+ state: 'default' | 'error';
126
+ } & InputFieldProps>;
127
+ };
128
+ }
129
+ export interface SelectFieldMolecule extends BaseMolecule {
130
+ type: 'select_field';
131
+ attributes: {
132
+ label: TextAttributes;
133
+ required: BooleanAttributes;
134
+ options: IterableAttributes;
135
+ };
136
+ config: {
137
+ props: Partial<{
138
+ state: 'default' | 'error';
139
+ } & SelectFieldProps>;
140
+ };
141
+ }
142
+ export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule> & {
143
+ form?: UseFormReturn<any>;
144
+ };
@@ -2,13 +2,19 @@ import { TabGroupProps } from 'molecules';
2
2
  import { PropsWithChildren } from 'react';
3
3
  import { CSSProperties } from 'styled-components';
4
4
  import { Molecule } from './moleculeTypes';
5
- export declare type ContainerType = 'row' | 'column' | 'slider';
5
+ import { ValidationMode } from 'react-hook-form';
6
+ import { StylesType } from 'typescript';
7
+ export declare type ContainerType = 'row' | 'column' | 'slider' | 'form';
6
8
  export declare type ContainerPositionType = 'fixed' | 'sticky' | 'static';
7
9
  export declare type ContainerScrollBehaviourType = 'vertical' | 'horizontal' | 'auto' | 'none';
8
10
  export declare type ContainerPropsType = Partial<{
9
11
  position: ContainerPositionType;
10
12
  scrollBehaviour: ContainerScrollBehaviourType;
11
13
  cornerRadius: number;
14
+ styles: StylesType;
15
+ formProps: {
16
+ mode: keyof ValidationMode;
17
+ };
12
18
  }>;
13
19
  export declare type AdditionalContainerProps = Partial<{
14
20
  containerStyle: CSSProperties;
@@ -18,14 +24,16 @@ export declare type ContainerProps = PropsWithChildren<Partial<{
18
24
  type: ContainerType;
19
25
  wide: AdditionalContainerProps;
20
26
  compact: AdditionalContainerProps;
27
+ props: ContainerPropsType;
21
28
  }>>;
22
29
  export declare type ContainerComponentProps = {
23
30
  id: string;
24
31
  instance: 'container';
25
32
  type: ContainerType;
26
33
  config: {
27
- wide: AdditionalContainerProps;
28
- compact: AdditionalContainerProps;
34
+ wide?: AdditionalContainerProps;
35
+ compact?: AdditionalContainerProps;
36
+ props?: ContainerPropsType;
29
37
  };
30
38
  items: (ContainerComponentProps | Molecule)[];
31
39
  tabsProps?: Pick<TabGroupProps, 'tabs' | 'activeTabKey' | 'onTabChange'>;
@@ -1,9 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { InputProps } from 'atoms';
3
- import { SelectOption } from 'atoms/Select/types';
4
- import { FieldLabelsProps } from 'molecules';
5
2
  import { ControllerProps } from 'react-hook-form';
6
- export declare type InputFieldTypes = 'phoneNumber' | 'text' | 'email' | 'password' | 'number' | 'any';
3
+ import { SelectOption } from 'atoms';
4
+ import { InputFieldProps, SelectFieldProps } from 'molecules';
5
+ export declare type InputFieldTypes = 'phone-number' | 'text' | 'email' | 'password' | 'numerical' | 'any';
7
6
  export declare type FieldTypes = 'input' | 'select' | 'checkbox';
8
7
  export declare type UIField<T = string> = (UIInputField & UISelectField & UICheckboxField) & {
9
8
  name: T;
@@ -20,12 +19,10 @@ export declare type UIInputField = {
20
19
  inputType?: InputFieldTypes;
21
20
  maxLength?: number;
22
21
  onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
23
- inputProps?: InputProps;
24
- labelsProps?: FieldLabelsProps;
25
- };
22
+ } & InputFieldProps;
26
23
  export declare type UISelectField = {
27
24
  options?: SelectOption[];
28
- };
25
+ } & SelectFieldProps;
29
26
  export declare type UICheckboxField = {
30
27
  checkboxLabel?: string;
31
28
  };
@@ -37,5 +37,6 @@ export declare type ButtonProps = BaseButtonProps & {
37
37
  isRichText?: boolean;
38
38
  containerStyle?: CSSProperties;
39
39
  buttonStyle?: CSSProperties;
40
+ type?: 'button' | 'submit' | 'reset';
40
41
  };
41
- export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, ...props }: ButtonProps) => JSX.Element | null;
42
+ export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, type, state, ...props }: ButtonProps) => JSX.Element | null;
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react';
3
3
  import { Button as ButtonComponent } from 'molecules/Button/Button';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, ...props }: import("molecules/Button/Button").ButtonProps) => JSX.Element | null;
6
+ component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, type, state, ...props }: import("molecules/Button/Button").ButtonProps) => JSX.Element | null;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Button: StoryFn<typeof ButtonComponent>;
@@ -38,5 +38,6 @@ export declare type FieldLabelsProps = {
38
38
  labelInternalConfig?: LabelInternalConfig;
39
39
  ruleLabelInternalConfig?: RuleLabelInternalConfig;
40
40
  tooltipInternalConfig?: TooltipInternalConfig;
41
+ isRichText?: boolean;
41
42
  };
42
- export declare const FieldLabels: ({ label, isTooltipVisible, isError, ruleLabel, tooltipText, labelInternalConfig, ruleLabelInternalConfig, tooltipInternalConfig, }: FieldLabelsProps) => JSX.Element;
43
+ export declare const FieldLabels: ({ label, isTooltipVisible, isError, ruleLabel, tooltipText, labelInternalConfig, ruleLabelInternalConfig, tooltipInternalConfig, isRichText, }: FieldLabelsProps) => JSX.Element;
@@ -3,7 +3,7 @@ import { StoryFn } from '@storybook/react';
3
3
  import { FieldLabelsProps } from './FieldLabels';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ label, isTooltipVisible, isError, ruleLabel, tooltipText, labelInternalConfig, ruleLabelInternalConfig, tooltipInternalConfig, }: FieldLabelsProps) => JSX.Element;
6
+ component: ({ label, isTooltipVisible, isError, ruleLabel, tooltipText, labelInternalConfig, ruleLabelInternalConfig, tooltipInternalConfig, isRichText, }: FieldLabelsProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const FieldLabels: StoryFn<FieldLabelsProps>;
@@ -1,17 +1,17 @@
1
1
  /// <reference types="react" />
2
- import { InputProps } from 'atoms';
3
2
  import { Control, ControllerProps } from 'react-hook-form/dist/types';
3
+ import { InputProps } from 'atoms';
4
4
  import { StylesType } from 'typescript';
5
5
  import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
6
- export declare type InputFieldProps = {
6
+ export declare type InputFieldProps = Partial<{
7
7
  name: string;
8
- control?: Control<any>;
9
- rules?: ControllerProps['rules'];
10
- required?: boolean;
11
- optional?: boolean;
12
- defaultValue?: string;
8
+ control: Control<any>;
9
+ rules: ControllerProps['rules'];
10
+ required: boolean;
11
+ optional: boolean;
12
+ defaultValue: string;
13
13
  inputProps: InputProps;
14
- styles?: StylesType;
15
- labelsProps?: FieldLabelsProps;
16
- };
14
+ styles: StylesType;
15
+ labelsProps: FieldLabelsProps;
16
+ }>;
17
17
  export declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, }: InputFieldProps) => JSX.Element;
@@ -3,7 +3,34 @@ import { StoryFn } from '@storybook/react';
3
3
  import { InputFieldProps } from './InputField';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, }: InputFieldProps) => JSX.Element;
6
+ component: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, }: Partial<{
7
+ name: string;
8
+ control: import("react-hook-form").Control<any, any>;
9
+ rules: Omit<Partial<{
10
+ required: string | import("react-hook-form").ValidationRule<boolean>;
11
+ min: import("react-hook-form").ValidationRule<string | number>;
12
+ max: import("react-hook-form").ValidationRule<string | number>;
13
+ maxLength: import("react-hook-form").ValidationRule<number>;
14
+ minLength: import("react-hook-form").ValidationRule<number>;
15
+ pattern: import("react-hook-form").ValidationRule<RegExp>;
16
+ validate: import("react-hook-form").Validate<any> | Record<string, import("react-hook-form").Validate<any>>;
17
+ valueAsNumber: boolean;
18
+ valueAsDate: boolean;
19
+ value: any;
20
+ setValueAs: (value: any) => any;
21
+ shouldUnregister?: boolean | undefined;
22
+ onChange?: ((event: any) => void) | undefined;
23
+ onBlur?: ((event: any) => void) | undefined;
24
+ disabled: boolean;
25
+ deps: string | string[];
26
+ }>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
27
+ required: boolean;
28
+ optional: boolean;
29
+ defaultValue: string;
30
+ inputProps: import("../..").InputProps;
31
+ styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
32
+ labelsProps: import("..").FieldLabelsProps;
33
+ }>) => JSX.Element;
7
34
  };
8
35
  export default _default;
9
36
  export declare const InputField: StoryFn<InputFieldProps>;
@@ -3,15 +3,15 @@ import { Control, ControllerProps } from 'react-hook-form/dist/types';
3
3
  import { SelectProps } from '../../atoms/Select/Select';
4
4
  import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
5
5
  import { StylesType } from 'typescript';
6
- export declare type SelectFieldProps = {
6
+ export declare type SelectFieldProps = Partial<{
7
7
  selectProps: SelectProps;
8
- labelsProps?: FieldLabelsProps;
8
+ labelsProps: FieldLabelsProps;
9
9
  name: string;
10
- rules?: ControllerProps['rules'];
11
- control?: Control<any>;
12
- required?: boolean;
13
- optional?: boolean;
14
- defaultValue?: string;
15
- styles?: StylesType;
16
- };
10
+ rules: ControllerProps['rules'];
11
+ control: Control<any>;
12
+ required: boolean;
13
+ optional: boolean;
14
+ defaultValue: string;
15
+ styles: StylesType;
16
+ }>;
17
17
  export declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, }: SelectFieldProps) => JSX.Element;
@@ -3,7 +3,34 @@ import { StoryFn } from '@storybook/react';
3
3
  import { SelectFieldProps } from './SelectField';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, }: SelectFieldProps) => JSX.Element;
6
+ component: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, }: Partial<{
7
+ selectProps: import("../..").SelectProps;
8
+ labelsProps: import("..").FieldLabelsProps;
9
+ name: string;
10
+ rules: Omit<Partial<{
11
+ required: string | import("react-hook-form").ValidationRule<boolean>;
12
+ min: import("react-hook-form").ValidationRule<string | number>;
13
+ max: import("react-hook-form").ValidationRule<string | number>;
14
+ maxLength: import("react-hook-form").ValidationRule<number>;
15
+ minLength: import("react-hook-form").ValidationRule<number>;
16
+ pattern: import("react-hook-form").ValidationRule<RegExp>;
17
+ validate: import("react-hook-form").Validate<any> | Record<string, import("react-hook-form").Validate<any>>;
18
+ valueAsNumber: boolean;
19
+ valueAsDate: boolean;
20
+ value: any;
21
+ setValueAs: (value: any) => any;
22
+ shouldUnregister?: boolean | undefined;
23
+ onChange?: ((event: any) => void) | undefined;
24
+ onBlur?: ((event: any) => void) | undefined;
25
+ disabled: boolean;
26
+ deps: string | string[];
27
+ }>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
28
+ control: import("react-hook-form").Control<any, any>;
29
+ required: boolean;
30
+ optional: boolean;
31
+ defaultValue: string;
32
+ styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
33
+ }>) => JSX.Element;
7
34
  };
8
35
  export default _default;
9
36
  export declare const SelectField: StoryFn<SelectFieldProps>;
@@ -1,9 +1,11 @@
1
1
  /// <reference types="react" />
2
- import type { ComponentStory } from '@storybook/react';
3
- import { SubscribePanel as SubscribePanelComponent } from './SubscribePanel';
2
+ import type { StoryFn } from '@storybook/react';
3
+ import { ContainerComponentProps } from 'containers';
4
+ import { SubscribePanelProps } from './type';
4
5
  declare const _default: {
5
6
  title: string;
6
- component: ({ template, onSubscribe, ...props }: import("./type").SubscribePanelProps) => JSX.Element;
7
+ component: ({ template, onSubscribe, ...props }: SubscribePanelProps) => JSX.Element;
7
8
  };
8
9
  export default _default;
9
- export declare const SubscribePanel: ComponentStory<typeof SubscribePanelComponent>;
10
+ export declare const LegacySubscribePanel: StoryFn<SubscribePanelProps>;
11
+ export declare const SubscribePanel: StoryFn<ContainerComponentProps>;
@@ -0,0 +1,2 @@
1
+ import { ContainerComponentProps } from 'containers';
2
+ export declare const subscribePanelMockData: ContainerComponentProps;