indicator-ui 1.0.18 → 1.0.19

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.
@@ -8,7 +8,9 @@ type PropsType<T, Form> = [
8
8
  scheme?: FormSchemeType<T>;
9
9
  onSubmit?: (data: Form, event: FormEvent<HTMLFormElement>) => void | Promise<void>;
10
10
  /** Callback при ошибки валидации полей */
11
- onSubmitError?: () => void;
11
+ onSubmitError?: (event: {
12
+ errors: FormErrorsType<T>;
13
+ }) => void;
12
14
  }
13
15
  ];
14
16
  /**
@@ -1,5 +1,6 @@
1
1
  import { OptionsExtendItemType, OptionsType, ValueType } from '../types';
2
2
  export declare function compValue(a: any, b: any): boolean;
3
+ export declare function mergeOptions<D>(a: OptionsType<D>, b: OptionsType<D>): OptionsType<D>;
3
4
  export declare function getExtendOptions<D>(curOptions: OptionsType<D>, cache?: OptionsType<D>): OptionsExtendItemType<D>[];
4
5
  export declare function getExtendOptionLabel<D>(curOption: OptionsExtendItemType<D>): string | number | true | import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode>;
5
6
  export declare function getExtendValue<D, M extends boolean = false>(curValue: ValueType<D, M> | undefined | null, multiple: M): D[];
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "react-components",
12
12
  "ui-kit"
13
13
  ],
14
- "version": "1.0.18",
14
+ "version": "1.0.19",
15
15
  "exports": {
16
16
  ".": {
17
17
  "types": "./dist/types/index.d.ts",