indicator-ui 0.0.126 → 0.0.128

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.
@@ -19,6 +19,8 @@ type SaveFormatDateOptionsType = {
19
19
  * Таймзона, в которой находится стартовая дата.
20
20
  *
21
21
  * Пример: '+03:00'
22
+ *
23
+ * *Важно:* _Не указываейте этот параметр, если в строке и так присутствует информация о таймзоне (он сдвинет ее дважды)._
22
24
  * */
23
25
  fromTimeZone?: string;
24
26
  /**
@@ -12,8 +12,10 @@ type SaveParseDateOptionsType = {
12
12
  errorNull?: boolean;
13
13
  /**
14
14
  * Таймзона, в которой находится стартовая дата.
15
- *
15
+
16
16
  * Пример: '+03:00'
17
+ *
18
+ * *Важно:* _Не указываейте этот параметр, если в строке и так присутствует информация о таймзоне (он сдвинет ее дважды)._
17
19
  * */
18
20
  fromTimeZone?: string;
19
21
  locale?: Pick<Locale, "options" | "formatLong" | "match">;
@@ -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) => import("react").ReactNode[];
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>>)[];
4
4
  export default formBuilder;
@@ -0,0 +1,2 @@
1
+ export * from './ui';
2
+ export * from './types';
@@ -0,0 +1 @@
1
+ export { default as DateTimeRangeFieldStyle } from './DateTimeRangeField.module.scss';
@@ -0,0 +1,6 @@
1
+ import { DateTimeFieldPropsType } from "../../../../ui";
2
+ export type DateTimeRangeFieldValueType = [string, string] | [string] | [];
3
+ export type DateTimeRangeFieldPropsType = Omit<DateTimeFieldPropsType, 'value' | 'onChange'> & {
4
+ value?: DateTimeRangeFieldValueType;
5
+ onChange?: (value: DateTimeRangeFieldValueType) => void;
6
+ };
@@ -0,0 +1 @@
1
+ export * from './DateTimeRangeFieldTypes';
@@ -0,0 +1,2 @@
1
+ import { DateTimeRangeFieldPropsType } from "../../DateTimeRangeField";
2
+ export declare function DateTimeRangeField({ value, onChange, ...props }: DateTimeRangeFieldPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './DateTimeRangeField';
@@ -5,7 +5,8 @@ import { SelectFieldPropsType } from '../../SelectField';
5
5
  import { TextareaFieldPropsType } from '../../TextareaField';
6
6
  import { InputFieldWrapperPropsType } from "../../InputFieldWrapper";
7
7
  import { DateTimeFieldPropsType } from "../../DateTimeField";
8
- export type InputFieldTypes = 'switcher' | 'select' | 'radio' | 'textarea' | 'date' | 'time' | 'datetime' | string;
8
+ import { DateTimeRangeFieldPropsType } from "../../../../ui/InputFields/DateTimeRangeField";
9
+ export type InputFieldTypes = 'switcher' | 'select' | 'radio' | 'textarea' | 'date' | 'time' | 'datetime' | 'datetime-range' | string;
9
10
  export type InputFieldPropsType = Omit<(({
10
11
  type?: 'switcher';
11
12
  } & SwitcherFieldPropsType) & ({
@@ -17,6 +18,8 @@ export type InputFieldPropsType = Omit<(({
17
18
  } & TextareaFieldPropsType) & ({
18
19
  type?: 'date' | 'time' | 'datetime';
19
20
  } & DateTimeFieldPropsType) & ({
21
+ type?: 'datetime-range';
22
+ } & DateTimeRangeFieldPropsType) & ({
20
23
  type?: HTMLInputElement['type'];
21
24
  } & FlexFieldPropsType)), 'value' | 'onChange' | 'type' | 'className'> & Omit<InputFieldWrapperPropsType, 'children' | 'className' | 'type'> & {
22
25
  value?: any;
@@ -7,3 +7,4 @@ export * from './TextareaField';
7
7
  export * from './InputField';
8
8
  export * from './FieldsBase';
9
9
  export * from './DateTimeField';
10
+ export * from './DateTimeRangeField';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.0.126",
3
+ "version": "0.0.128",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",