indicator-ui 0.0.122 → 0.0.124

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.
@@ -7,7 +7,7 @@ type SaveFormatDateOptionsType = {
7
7
  /**
8
8
  * Конечный формат.
9
9
  * */
10
- to: string;
10
+ to?: string;
11
11
  /**
12
12
  * Возвращать ли null при неудачном форматирование.
13
13
  *
@@ -1,5 +1,6 @@
1
1
  import { FieldsBasePropsType } from "../../FieldsBase";
2
2
  export type DateFieldPropsType = FieldsBasePropsType<string> & {
3
+ placeholder?: string;
3
4
  /**
4
5
  * Формат даты.
5
6
  * */
@@ -14,4 +15,5 @@ export type DateFieldPropsType = FieldsBasePropsType<string> & {
14
15
  minYear?: number;
15
16
  /** Дополнительные имена стилей */
16
17
  additionStyles?: string | string[];
18
+ timeZone?: string;
17
19
  };
@@ -39,4 +39,12 @@ export type DateTimeFieldPropsType = FieldsBasePropsType<DateTimeFieldValueType>
39
39
  * Добавочные имена стилей. ```className="main-style addition-style-1 addition-style-2..."```
40
40
  * */
41
41
  additionStyle?: string | string[];
42
+ timePlaceholder?: string;
43
+ datePlaceholder?: string;
44
+ /**
45
+ * Таймзона, в которой будет работать поле.
46
+ *
47
+ * По умолчанию: UTC
48
+ * */
49
+ timeZone?: string;
42
50
  };
@@ -1,6 +1,8 @@
1
1
  import { FieldsBasePropsType } from "../../FieldsBase";
2
2
  export type TimeFieldPropsType = FieldsBasePropsType<string> & {
3
3
  timeFormat?: string;
4
+ placeholder?: string;
4
5
  /** Дополнительные имена стилей */
5
6
  additionStyles?: string | string[];
7
+ timeZone?: string;
6
8
  };
@@ -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, }: DateFieldPropsType): import("react/jsx-runtime").JSX.Element;
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;
@@ -1,2 +1,2 @@
1
1
  import { DateTimeFieldPropsType } from "../types";
2
- export declare function DateTimeField({ value, fieldConfig, onChange, dateFormat, timeFormat, outFormat, additionStyle, ...props }: DateTimeFieldPropsType): import("react/jsx-runtime").JSX.Element;
2
+ export declare function DateTimeField({ value, fieldConfig, onChange, dateFormat, timeFormat, outFormat, additionStyle, datePlaceholder, timePlaceholder, timeZone, ...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, additionStyles, }: TimeFieldPropsType): import("react/jsx-runtime").JSX.Element;
2
+ export declare function TimeField({ value, disabled, required, isError, onChange, onFocus, timeFormat, onBlur, placeholder, additionStyles, timeZone, }: TimeFieldPropsType): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.0.122",
3
+ "version": "0.0.124",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",