indicator-ui 0.0.355 → 0.0.357
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.
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { RefObject } from "react";
|
|
2
2
|
import { useBackgroundModalAnim } from "../animations";
|
|
3
3
|
type UseBackgroundModalAnimOptionsPropsType = Exclude<Parameters<typeof useBackgroundModalAnim>['1'], undefined>;
|
|
4
|
-
type OptionsType<
|
|
5
|
-
targetRef?: RefObject<T>;
|
|
4
|
+
type OptionsType<C extends HTMLElement = HTMLElement> = UseBackgroundModalAnimOptionsPropsType & {
|
|
6
5
|
containerClickAreaRef?: RefObject<C>;
|
|
7
6
|
};
|
|
8
7
|
type PropsType<T extends HTMLElement = HTMLElement> = [ref: RefObject<T>, options?: OptionsType];
|
|
@@ -3,9 +3,7 @@ import { useInteractiveZone } from "../useInteractiveZone";
|
|
|
3
3
|
import { useModalAnim } from "../animations";
|
|
4
4
|
type UseModalAnimOptionsPropsType = Exclude<Parameters<typeof useModalAnim>['1'], undefined>;
|
|
5
5
|
type UseInteractiveZoneOptionsPropsType = Exclude<Parameters<typeof useInteractiveZone>['2'], undefined>;
|
|
6
|
-
type OptionsType
|
|
7
|
-
targetRef?: RefObject<T>;
|
|
8
|
-
};
|
|
6
|
+
type OptionsType = Pick<UseInteractiveZoneOptionsPropsType, 'addition'> & UseModalAnimOptionsPropsType;
|
|
9
7
|
type PropsType<T extends HTMLElement = HTMLElement> = [ref: RefObject<T>, options?: OptionsType];
|
|
10
8
|
/**
|
|
11
9
|
* Хук для модального окна.
|