indicator-ui 0.1.100 → 0.1.102

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.
@@ -17,4 +17,5 @@ export type BuildTuple<N extends number, T extends any[] = []> = T['length'] ext
17
17
  export type Nullable<T> = {
18
18
  [K in keyof T]: T[K] | null;
19
19
  } | null;
20
+ export type Merge<A extends Record<any, any>, B extends Record<any, any>> = Omit<A, keyof B> & B;
20
21
  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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.1.100",
3
+ "version": "0.1.102",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",