indicator-ui 0.1.41 → 0.1.42

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.
@@ -17,7 +17,9 @@ export type UseIsErrorFieldReturnType = {
17
17
  clearErrors: () => void;
18
18
  isError: UseIsErrorFieldIsErrorType;
19
19
  };
20
- export declare function useIsErrorField({ additionIsErrorFields, sensitiveSearch, }?: {
20
+ type PropsType = {
21
21
  additionIsErrorFields?: UseIsErrorFieldIsErrorType;
22
22
  sensitiveSearch?: boolean;
23
- }): UseIsErrorFieldReturnType;
23
+ };
24
+ export declare function useIsErrorField(props?: PropsType): UseIsErrorFieldReturnType;
25
+ export {};
@@ -2,11 +2,9 @@ import React, { ReactElement } from "react";
2
2
  import { FormBuilderPropsType } from "../types";
3
3
  type RefType<T extends Record<string, unknown>> = {
4
4
  getFormData: () => T;
5
- checkFormDataValid: () => boolean;
6
- highlightErrors: () => void;
7
5
  clearFormData: () => void;
8
- setField: <K extends keyof T>(name: K, value: T[K]) => void;
9
- setFieldError: <K extends keyof T>(name: K, value: T[K]) => void;
6
+ resetFormData: () => void;
7
+ clearErrors: () => void;
10
8
  };
11
9
  export declare const FormBuilder: <T extends Record<string, unknown> = Record<string, unknown>>(props: FormBuilderPropsType<T> & React.RefAttributes<RefType<T>>) => ReactElement | null;
12
10
  export {};
@@ -9,4 +9,5 @@ export type TextareaFieldPropsType = FieldsBasePropsType<string> & {
9
9
  * По умолчанию: ```false```
10
10
  * */
11
11
  autoResize?: boolean;
12
+ theme?: "light" | "dark";
12
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",