indicator-ui 0.0.141 → 0.0.142

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.
@@ -1,14 +1,15 @@
1
1
  import { Locale } from "date-fns";
2
2
  export type ISO8601FormatNameType = 'iso-8601';
3
+ export type FormatNameType = ISO8601FormatNameType | string;
3
4
  type SaveFormatDateOptionsType = {
4
5
  /**
5
6
  * Стартовый формат.
6
7
  * */
7
- from?: string | ISO8601FormatNameType;
8
+ from?: FormatNameType;
8
9
  /**
9
10
  * Конечный формат.
10
11
  * */
11
- to?: string | ISO8601FormatNameType;
12
+ to?: FormatNameType;
12
13
  /**
13
14
  * Возвращать ли null при неудачном форматирование.
14
15
  *
@@ -1,10 +1,10 @@
1
1
  import { Locale } from "date-fns";
2
- import { ISO8601FormatNameType } from "./saveFormatDate";
2
+ import { FormatNameType } from "./saveFormatDate";
3
3
  type SaveParseDateOptionsType = {
4
4
  /**
5
5
  * Стартовый формат.
6
6
  * */
7
- from?: string | ISO8601FormatNameType;
7
+ from?: FormatNameType;
8
8
  /**
9
9
  * Возвращать ли null при неудачном форматирование.
10
10
  *
@@ -1,10 +1,11 @@
1
1
  import { FieldsBasePropsType } from "../../FieldsBase";
2
+ import { FormatNameType } from "../../../../lib";
2
3
  export type DateFieldPropsType = FieldsBasePropsType<string> & {
3
4
  placeholder?: string;
4
5
  /**
5
6
  * Формат даты.
6
7
  * */
7
- dateFormat?: string;
8
+ dateFormat?: FormatNameType;
8
9
  /**
9
10
  * Максимально допустимый год.
10
11
  * */
@@ -1,4 +1,5 @@
1
1
  import { FieldsBasePropsType } from "../../FieldsBase";
2
+ import { FormatNameType } from "../../../../lib";
2
3
  export type DateTimeFieldValueType = string;
3
4
  /**
4
5
  * Конфигурация поля. Соответственно *одна дата*, *одно время* или *и то и другое*.
@@ -34,7 +35,7 @@ export type DateTimeFieldPropsType = FieldsBasePropsType<DateTimeFieldValueType>
34
35
  *
35
36
  * Экранируйте символы *Z*, *T* и тд, обернув в одинарные кавычки. Пример: `"HH:mm:ss'Z'"`
36
37
  * */
37
- outFormat?: string | 'iso-8601';
38
+ outFormat?: FormatNameType;
38
39
  /**
39
40
  * Добавочные имена стилей. ```className="main-style addition-style-1 addition-style-2..."```
40
41
  * */
@@ -1,6 +1,7 @@
1
1
  import { FieldsBasePropsType } from "../../FieldsBase";
2
+ import { FormatNameType } from "../../../../lib";
2
3
  export type TimeFieldPropsType = FieldsBasePropsType<string> & {
3
- timeFormat?: string;
4
+ timeFormat?: FormatNameType;
4
5
  placeholder?: string;
5
6
  /** Дополнительные имена стилей */
6
7
  additionStyles?: string | string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.0.141",
3
+ "version": "0.0.142",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",