indicator-ui 0.0.172 → 0.0.174

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.
@@ -76,6 +76,7 @@ export { default as VolumeMaxSVG } from './volume-max.svg';
76
76
  export { default as VolumeXSVG } from './volume-x.svg';
77
77
  export { default as Wallet03SVG } from './wallet-03.svg';
78
78
  export { default as XCloseSVG } from './x-close.svg';
79
+ export { default as LineSVG } from './line.svg';
79
80
  export { default as EyeSVG } from './eye.svg';
80
81
  export { default as MessageSquare02SVG } from './message-square-02.svg';
81
82
  export { default as ShareArrowSVG } from './share-arrow.svg';
@@ -1 +1,2 @@
1
1
  export { default as DateTimeFieldStyle } from './DateTimeField.module.scss';
2
+ export { default as DateFieldStyle } from './DateField.module.scss';
@@ -14,7 +14,6 @@ export type DateFieldPropsType = FieldsBasePropsType<string> & {
14
14
  * Минимально допустимый год.
15
15
  * */
16
16
  minYear?: number;
17
- /** Дополнительные имена стилей */
18
- additionStyles?: string | string[];
19
17
  timeZone?: string;
18
+ className?: string;
20
19
  };
@@ -1,5 +1,6 @@
1
1
  import { FieldsBasePropsType } from "../../FieldsBase";
2
2
  import { FormatNameType } from "../../../../lib";
3
+ import React from "react";
3
4
  export type DateTimeFieldValueType = string;
4
5
  /**
5
6
  * Конфигурация поля. Соответственно *одна дата*, *одно время* или *и то и другое*.
@@ -42,10 +43,25 @@ export type DateTimeFieldPropsType = FieldsBasePropsType<DateTimeFieldValueType>
42
43
  additionStyle?: string | string[];
43
44
  timePlaceholder?: string;
44
45
  datePlaceholder?: string;
46
+ /** Иконка слева у даты*/
47
+ iconDate?: React.ReactNode;
48
+ /** Иконка слева у времени*/
49
+ iconTime?: React.ReactNode;
50
+ /**
51
+ * Выключает стиль ошибки.
52
+ * */
53
+ isError?: boolean;
54
+ onFocus?: (e: any) => void;
55
+ onBlur?: (e: any) => void;
45
56
  /**
46
57
  * Таймзона, в которой будет работать поле.
47
58
  *
48
59
  * По умолчанию: UTC
49
60
  * */
50
61
  timeZone?: string;
62
+ /** Надпись слева от даты*/
63
+ textDate?: string;
64
+ /** Надпись слева от даты*/
65
+ textTime?: string;
66
+ xClose?: boolean;
51
67
  };
@@ -1,9 +1,13 @@
1
1
  import { FieldsBasePropsType } from "../../FieldsBase";
2
2
  import { FormatNameType } from "../../../../lib";
3
3
  export type TimeFieldPropsType = FieldsBasePropsType<string> & {
4
+ /**
5
+ * Формат времени.
6
+ * */
4
7
  timeFormat?: FormatNameType;
5
8
  placeholder?: string;
6
9
  /** Дополнительные имена стилей */
7
10
  additionStyles?: string | string[];
8
11
  timeZone?: string;
12
+ className?: string;
9
13
  };
@@ -1,2 +1,2 @@
1
1
  import { DateFieldPropsType } from "../types";
2
- export declare function DateField({ value, disabled, required, isError, onChange, onFocus, dateFormat, onBlur, minYear, maxYear, additionStyles, timeZone, placeholder, }: DateFieldPropsType): import("react/jsx-runtime").JSX.Element;
2
+ export declare function DateField({ value, disabled, required, isError, onChange, onFocus, dateFormat, onBlur, minYear, maxYear, timeZone, placeholder, className, }: DateFieldPropsType): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { DateTimeFieldPropsType } from "../types";
2
- export declare function DateTimeField({ value, fieldConfig, onChange, dateFormat, timeFormat, outFormat, additionStyle, datePlaceholder, timePlaceholder, timeZone, ...props }: DateTimeFieldPropsType): import("react/jsx-runtime").JSX.Element;
2
+ export declare function DateTimeField({ value, fieldConfig, onChange, dateFormat, timeFormat, outFormat, additionStyle, datePlaceholder, timePlaceholder, timeZone, iconDate, iconTime, textDate, textTime, xClose, isError, onFocus, onBlur, ...props }: DateTimeFieldPropsType): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { TimeFieldPropsType } from "../types";
2
- export declare function TimeField({ value, disabled, required, isError, onChange, onFocus, timeFormat, onBlur, placeholder, additionStyles, timeZone, }: TimeFieldPropsType): import("react/jsx-runtime").JSX.Element;
2
+ export declare function TimeField({ value, disabled, required, isError, onChange, onFocus, timeFormat, onBlur, placeholder, additionStyles, timeZone, className }: TimeFieldPropsType): import("react/jsx-runtime").JSX.Element;
@@ -22,3 +22,4 @@ export * from './VideoPlayerBase';
22
22
  export * from './Loaders';
23
23
  export * from './MediaViewer';
24
24
  export * from './Carousel';
25
+ export * from './PlayButton';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.0.172",
3
+ "version": "0.0.174",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",