indicator-ui 0.1.97 → 0.1.99

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.
@@ -5,7 +5,7 @@ type OptionsType = {
5
5
  shimmerStyle?: CSSProperties;
6
6
  };
7
7
  type PropsType<T extends HTMLElement = HTMLElement> = [
8
- ref: RefObject<T>,
8
+ ref: RefObject<T | null>,
9
9
  options?: OptionsType
10
10
  ];
11
11
  type FunReturnType = {
@@ -1,7 +1,7 @@
1
1
  import { RefObject } from "react";
2
2
  type PropsType<T extends HTMLElement = HTMLElement, W extends HTMLElement = HTMLElement> = [
3
- ref: RefObject<T>,
4
- wrapperRef: RefObject<W>,
3
+ ref: RefObject<T | null>,
4
+ wrapperRef: RefObject<W | null>,
5
5
  options?: {
6
6
  offTopEdge?: boolean;
7
7
  offBottomEdge?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from "react";
2
- import { TogglePropsType } from "../../../../ui";
2
+ import { Toggle } from "../../../../ui";
3
3
  import { FieldsBasePropsType } from "../../FieldsBase";
4
- export type SwitcherFieldPropsType = TogglePropsType & FieldsBasePropsType<boolean> & {
5
- switcherWrapper?: ReactElement<any>;
4
+ export type SwitcherFieldPropsType = React.ComponentProps<typeof Toggle> & FieldsBasePropsType<boolean> & {
5
+ switcherWrapper?: ReactElement;
6
6
  };
@@ -1,2 +1,5 @@
1
+ import React from "react";
1
2
  import { TogglePropsType } from "../types";
2
- export declare function Toggle(props: TogglePropsType): JSX.Element;
3
+ type PropsType = Omit<React.ComponentProps<'button'>, keyof TogglePropsType> & TogglePropsType;
4
+ export declare function Toggle(props: PropsType): JSX.Element;
5
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.1.97",
3
+ "version": "0.1.99",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",