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.
@@ -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" | "month" | "year";
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" | "month" | "year">>;
26
+ setPickerType: React.Dispatch<React.SetStateAction<"time" | "date" | "year" | "month">>;
27
27
  getDate: () => React.ComponentProps<typeof DatePicker>["date"];
28
- onClickDate: (value: [] | [string | undefined, string | undefined] | [string | undefined]) => void;
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
- export type SwitcherFieldPropsType = React.ComponentProps<typeof Toggle> & FieldsBasePropsType<boolean> & {
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 { LoadingIndicatorPropsType } from "../types";
2
- export declare function LoadingIndicator({ size, style, supportingText, width, height, additionStyles, theme }: LoadingIndicatorPropsType): JSX.Element;
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 PropsType = Omit<TogglePropsType, keyof FieldPropsType<boolean>> & FieldPropsType<boolean>;
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.1.99",
3
+ "version": "0.1.101",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",