indicator-ui 0.0.282 → 0.0.284

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.
@@ -2,3 +2,4 @@ export * from './useIsErrorField';
2
2
  export * from './useFormData';
3
3
  export * from './useDebouncedAccumulator';
4
4
  export * from './useDeepCompareEffect';
5
+ export * from './useElementFixedOffset';
@@ -0,0 +1,9 @@
1
+ import { RefObject } from "react";
2
+ type ElementFixedOffset = {
3
+ top: number;
4
+ left: number;
5
+ width: number;
6
+ height: number;
7
+ };
8
+ export declare function useElementFixedOffset(ref: RefObject<HTMLElement>): ElementFixedOffset;
9
+ export {};
@@ -1,10 +1,13 @@
1
1
  import { CSSProperties, ReactNode } from "react";
2
- export declare function ModalWindowWrapper({ children, isShow, setIsShow, additionElements, onClose, className, style, }: {
2
+ type PropsType = {
3
3
  isShow: boolean;
4
+ closeOnScroll?: boolean;
4
5
  setIsShow: (isShow: boolean) => void;
5
6
  additionElements?: (HTMLElement | null | undefined)[];
6
7
  children?: ReactNode;
7
8
  onClose?: () => void;
8
9
  className?: string;
9
10
  style?: CSSProperties;
10
- }): JSX.Element;
11
+ };
12
+ export declare function ModalWindowWrapper({ children, isShow, closeOnScroll, setIsShow, additionElements, onClose, className, style, }: PropsType): JSX.Element;
13
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.0.282",
3
+ "version": "0.0.284",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",