indicator-ui 0.0.42 → 0.0.44

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.
@@ -24,6 +24,10 @@
24
24
  box-shadow: 0 0 0 4px #F2F4F7, 0 1px 2px 0 #1018280D;
25
25
  }
26
26
 
27
+ &.offFocus {
28
+ box-shadow: 0 1px 2px 0 #1018280D;
29
+ }
30
+
27
31
  &:disabled {
28
32
  background-color: var(--gray-100);
29
33
  @include fnt($size: 16, $line-height: 24, $weight: 400, $color: var(--gray-500));
@@ -1,4 +1,4 @@
1
1
  import { FORM_BUILDER_SCHEMA } from "../schemes";
2
2
  import { AdditionPropsType } from "../types";
3
- declare const formBuilder: (schema: FORM_BUILDER_SCHEMA, additionProps: AdditionPropsType) => (string | number | bigint | boolean | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode>>)[];
3
+ declare const formBuilder: (schema: FORM_BUILDER_SCHEMA, additionProps: AdditionPropsType) => import("react").ReactNode[];
4
4
  export default formBuilder;
@@ -35,6 +35,10 @@ export type FlexFieldPropsType = {
35
35
  onFocus?: (e: any) => void;
36
36
  onBlur?: (e: any) => void;
37
37
  onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
38
+ /**
39
+ * Выключает стиль фокуса.
40
+ * */
41
+ offFocus?: boolean;
38
42
  /** Блокирует ввод без стиля `disabled`, просто показывает результат. */
39
43
  notInput?: boolean;
40
44
  /** Компонент иконки.*/
@@ -1,6 +1,7 @@
1
1
  export type TextareaFieldClassNameType = {
2
2
  textareaField?: string;
3
3
  isError?: string;
4
+ offFocus?: string;
4
5
  };
5
6
  export type TextareaFieldPropsType = {
6
7
  value?: string;
@@ -10,5 +11,9 @@ export type TextareaFieldPropsType = {
10
11
  isError?: boolean;
11
12
  required?: boolean;
12
13
  disabled?: boolean;
14
+ /**
15
+ * Выключает стиль фокуса.
16
+ * */
17
+ offFocus?: boolean;
13
18
  className?: TextareaFieldClassNameType;
14
19
  };
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
2
  import { TextareaFieldPropsType } from "../types";
3
- export default function TextareaField({ value, name, placeholder, onChange, required, disabled, isError, className, }: TextareaFieldPropsType): React.JSX.Element;
3
+ export default function TextareaField({ value, name, placeholder, onChange, required, disabled, isError, offFocus, className, }: TextareaFieldPropsType): React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",