indicator-ui 0.1.99 → 0.1.101
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.
- package/dist/index.js +24 -17
- package/dist/index.js.map +1 -1
- package/dist/types/src/ui/DateTimePicker/hooks/useDateTimePicker.d.ts +3 -3
- package/dist/types/src/ui/InputFields/SwitcherField/types/SwitcherFieldTypes.d.ts +3 -1
- package/dist/types/src/ui/Loaders/ui/LoadingIndicator.d.ts +18 -2
- package/dist/types/src/ui/formFields/FormSwitcherField/ui/FormSwitcherField.d.ts +2 -1
- package/package.json +1 -1
|
@@ -19,13 +19,13 @@ type PropsType<T extends DateType> = Omit<React.ComponentProps<'div'>, 'onSubmit
|
|
|
19
19
|
type?: T;
|
|
20
20
|
};
|
|
21
21
|
export declare function useDateTimePicker<T extends DateType>(props: PropsType<T>): {
|
|
22
|
-
pickerType: "time" | "date" | "
|
|
22
|
+
pickerType: "time" | "date" | "year" | "month";
|
|
23
23
|
getDateLabel: () => string;
|
|
24
24
|
getTimeLabel: () => string;
|
|
25
25
|
handleSubmit: () => void;
|
|
26
|
-
setPickerType: React.Dispatch<React.SetStateAction<"time" | "date" | "
|
|
26
|
+
setPickerType: React.Dispatch<React.SetStateAction<"time" | "date" | "year" | "month">>;
|
|
27
27
|
getDate: () => React.ComponentProps<typeof DatePicker>["date"];
|
|
28
|
-
onClickDate: (value: [] | [string | undefined
|
|
28
|
+
onClickDate: (value: [] | [string | undefined] | [string | undefined, string | undefined]) => void;
|
|
29
29
|
onYear: () => void;
|
|
30
30
|
onMonth: () => void;
|
|
31
31
|
getHourValue: () => React.ComponentProps<typeof TimePicker>["hour"];
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
2
|
import { Toggle } from "../../../../ui";
|
|
3
3
|
import { FieldsBasePropsType } from "../../FieldsBase";
|
|
4
|
-
|
|
4
|
+
type BasePropsType = FieldsBasePropsType<boolean> & {
|
|
5
5
|
switcherWrapper?: ReactElement;
|
|
6
6
|
};
|
|
7
|
+
export type SwitcherFieldPropsType = Omit<React.ComponentProps<typeof Toggle>, keyof BasePropsType> & BasePropsType;
|
|
8
|
+
export {};
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
type BasePropsType = {
|
|
3
|
+
width?: 'fill' | 'hug';
|
|
4
|
+
height?: 'fill' | 'hug';
|
|
5
|
+
style?: 'line-simple' | 'line-spinner' | 'dot-circle';
|
|
6
|
+
size?: 'small' | 'medium' | 'large' | 'ultra';
|
|
7
|
+
/**
|
|
8
|
+
* При `true` показывает `'Загрузка'`. При `false` - ничего не показывает.
|
|
9
|
+
*
|
|
10
|
+
* Если передать `ReactNode`, подставит его.
|
|
11
|
+
* */
|
|
12
|
+
supportingText?: boolean | React.ReactNode;
|
|
13
|
+
additionStyles?: string | string[];
|
|
14
|
+
theme?: 'dark' | 'light';
|
|
15
|
+
};
|
|
16
|
+
type PropsType = Omit<React.ComponentProps<'div'>, keyof BasePropsType> & BasePropsType;
|
|
17
|
+
export declare function LoadingIndicator(props: PropsType): JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TogglePropsType } from "../../../../ui";
|
|
2
2
|
import { FieldPropsType } from "../../../../hooks";
|
|
3
|
-
type
|
|
3
|
+
type BasePropsType = FieldPropsType<boolean>;
|
|
4
|
+
type PropsType = Omit<TogglePropsType, keyof BasePropsType> & BasePropsType;
|
|
4
5
|
export declare function FormSwitcherField(props: PropsType): JSX.Element;
|
|
5
6
|
export {};
|