@zealicsolutions/web-ui 0.3.11 → 0.3.13

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.
@@ -9,7 +9,7 @@ export declare type DownloadFile = {
9
9
  url: string;
10
10
  name: string;
11
11
  };
12
- declare type LinkAction = Omit<LinkAttributes, 'attributeType'>;
12
+ declare type LinkAction = LinkAttributes;
13
13
  declare type PopupDrawerAction = ContainerComponentProps;
14
14
  declare type DownloadAction = DownloadFile;
15
15
  declare type SubmitAction = AnyObject;
@@ -74,9 +74,6 @@ export interface BaseMolecule {
74
74
  instance: 'molecule';
75
75
  type: MoleculeTypes;
76
76
  metadata?: AnyObject;
77
- idForFrontend?: string;
78
- moleculeLibraryId?: string;
79
- organismLibraryMoleculeId?: string;
80
77
  }
81
78
  export interface ImageMolecule extends BaseMolecule {
82
79
  type: 'image';
@@ -26,7 +26,24 @@ declare const _default: {
26
26
  }>;
27
27
  labelsProps: import("molecules").FieldLabelsProps;
28
28
  name: string;
29
- rules: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
29
+ rules: Omit<Partial<{
30
+ required: string | import("react-hook-form").ValidationRule<boolean>;
31
+ min: import("react-hook-form").ValidationRule<string | number>;
32
+ max: import("react-hook-form").ValidationRule<string | number>;
33
+ maxLength: import("react-hook-form").ValidationRule<number>;
34
+ minLength: import("react-hook-form").ValidationRule<number>;
35
+ pattern: import("react-hook-form").ValidationRule<RegExp>;
36
+ validate: import("react-hook-form").Validate<any> | Record<string, import("react-hook-form").Validate<any>>;
37
+ valueAsNumber: boolean;
38
+ valueAsDate: boolean;
39
+ value: any;
40
+ setValueAs: (value: any) => any;
41
+ shouldUnregister?: boolean | undefined;
42
+ onChange?: ((event: any) => void) | undefined;
43
+ onBlur?: ((event: any) => void) | undefined;
44
+ disabled: boolean;
45
+ deps: string | string[];
46
+ }>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
30
47
  control: import("react-hook-form").Control<any, any>;
31
48
  required: boolean;
32
49
  optional: boolean;
@@ -1,15 +1,16 @@
1
1
  /// <reference types="react" />
2
- import { StylesType } from 'typescript';
2
+ import { Callback, StylesType } from 'typescript';
3
3
  export declare type ImageProps = {
4
4
  src: string;
5
5
  } & Partial<{
6
6
  id: string;
7
7
  altText: string;
8
8
  link: string;
9
+ onClick: Callback;
9
10
  width: number;
10
11
  height: number;
11
12
  cornerRadius: number;
12
13
  behaveAs: 'background' | 'regular';
13
14
  styles: StylesType;
14
15
  }>;
15
- export declare const Image: ({ src, link, altText, styles, width, height, id, behaveAs, cornerRadius, }: ImageProps) => JSX.Element;
16
+ export declare const Image: ({ src, onClick, link, altText, styles, width, height, id, behaveAs, cornerRadius, }: ImageProps) => JSX.Element;
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react';
3
3
  import { Image as ImageComponent } from './Image';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ src, link, altText, styles, width, height, id, behaveAs, cornerRadius, }: import("./Image").ImageProps) => JSX.Element;
6
+ component: ({ src, onClick, link, altText, styles, width, height, id, behaveAs, cornerRadius, }: import("./Image").ImageProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Image: StoryFn<typeof ImageComponent>;
@@ -6,7 +6,24 @@ declare const _default: {
6
6
  component: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, }: Partial<{
7
7
  name: string;
8
8
  control: import("react-hook-form").Control<any, any>;
9
- rules: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
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;
10
27
  required: boolean;
11
28
  optional: boolean;
12
29
  defaultValue: string;
@@ -5,7 +5,24 @@ declare const _default: {
5
5
  title: string;
6
6
  component: <T extends string>({ name, rules, styles, control, optional, required, labelsProps, defaultValue, radioButtonsProps, }: Partial<{
7
7
  name: string;
8
- rules: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
8
+ rules: Omit<Partial<{
9
+ required: string | import("react-hook-form").ValidationRule<boolean>;
10
+ min: import("react-hook-form").ValidationRule<string | number>;
11
+ max: import("react-hook-form").ValidationRule<string | number>;
12
+ maxLength: import("react-hook-form").ValidationRule<number>;
13
+ minLength: import("react-hook-form").ValidationRule<number>;
14
+ pattern: import("react-hook-form").ValidationRule<RegExp>;
15
+ validate: import("react-hook-form").Validate<any> | Record<string, import("react-hook-form").Validate<any>>;
16
+ valueAsNumber: boolean;
17
+ valueAsDate: boolean;
18
+ value: any;
19
+ setValueAs: (value: any) => any;
20
+ shouldUnregister?: boolean | undefined;
21
+ onChange?: ((event: any) => void) | undefined;
22
+ onBlur?: ((event: any) => void) | undefined;
23
+ disabled: boolean;
24
+ deps: string | string[];
25
+ }>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
9
26
  styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
10
27
  control: import("react-hook-form").Control<any, any>;
11
28
  optional: boolean;
@@ -20,7 +20,24 @@ declare const _default: {
20
20
  }>;
21
21
  labelsProps: import("..").FieldLabelsProps;
22
22
  name: string;
23
- rules: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
23
+ rules: Omit<Partial<{
24
+ required: string | import("react-hook-form").ValidationRule<boolean>;
25
+ min: import("react-hook-form").ValidationRule<string | number>;
26
+ max: import("react-hook-form").ValidationRule<string | number>;
27
+ maxLength: import("react-hook-form").ValidationRule<number>;
28
+ minLength: import("react-hook-form").ValidationRule<number>;
29
+ pattern: import("react-hook-form").ValidationRule<RegExp>;
30
+ validate: import("react-hook-form").Validate<any> | Record<string, import("react-hook-form").Validate<any>>;
31
+ valueAsNumber: boolean;
32
+ valueAsDate: boolean;
33
+ value: any;
34
+ setValueAs: (value: any) => any;
35
+ shouldUnregister?: boolean | undefined;
36
+ onChange?: ((event: any) => void) | undefined;
37
+ onBlur?: ((event: any) => void) | undefined;
38
+ disabled: boolean;
39
+ deps: string | string[];
40
+ }>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
24
41
  control: import("react-hook-form").Control<any, any>;
25
42
  required: boolean;
26
43
  optional: boolean;