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.
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/types/src/hooks/ui-animations/useShimmer.d.ts +1 -1
- package/dist/types/src/hooks/useScrollIndicators.d.ts +2 -2
- package/dist/types/src/ui/InputFields/SwitcherField/types/SwitcherFieldTypes.d.ts +3 -3
- package/dist/types/src/ui/Toggle/ui/Toggle.d.ts +4 -1
- package/package.json +1 -1
|
@@ -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 {
|
|
2
|
+
import { Toggle } from "../../../../ui";
|
|
3
3
|
import { FieldsBasePropsType } from "../../FieldsBase";
|
|
4
|
-
export type SwitcherFieldPropsType =
|
|
5
|
-
switcherWrapper?: ReactElement
|
|
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
|
-
|
|
3
|
+
type PropsType = Omit<React.ComponentProps<'button'>, keyof TogglePropsType> & TogglePropsType;
|
|
4
|
+
export declare function Toggle(props: PropsType): JSX.Element;
|
|
5
|
+
export {};
|