@uxf/core-react 11.47.0 → 11.50.0

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.
@@ -3,4 +3,4 @@ import { RefObject } from "react";
3
3
  export interface UseBodyScrollLockOptions extends BodyScrollOptions {
4
4
  clearAllOnClose?: boolean;
5
5
  }
6
- export declare function useBodyScrollLock<T extends HTMLElement>(containerRef: RefObject<T>, isOpen: boolean, { allowTouchMove, clearAllOnClose, reserveScrollBarGap }?: Partial<UseBodyScrollLockOptions>): void;
6
+ export declare function useBodyScrollLock<T extends HTMLElement | null>(containerRef: RefObject<T>, isOpen: boolean, { allowTouchMove, clearAllOnClose, reserveScrollBarGap }?: Partial<UseBodyScrollLockOptions>): void;
@@ -1,5 +1,5 @@
1
1
  import { FocusEventHandler, MouseEventHandler, RefObject } from "react";
2
- export declare function useInputFocus<T extends HTMLInputElement | HTMLTextAreaElement | HTMLElement>(focusRef: RefObject<T>, onBlur?: FocusEventHandler<T>, onFocus?: FocusEventHandler<T>): {
2
+ export declare function useInputFocus<T extends HTMLInputElement | HTMLTextAreaElement | HTMLElement | null>(focusRef: RefObject<T>, onBlur?: FocusEventHandler<T>, onFocus?: FocusEventHandler<T>): {
3
3
  focused: boolean;
4
4
  focus: MouseEventHandler<HTMLElement>;
5
5
  onBlur: FocusEventHandler<T>;
@@ -1,7 +1,7 @@
1
1
  import { RefObject } from "react";
2
2
  type KeyPredicate = (e: KeyboardEvent) => boolean;
3
3
  export type KeyFilter = null | undefined | string | KeyPredicate;
4
- export interface UseKeyOptions<T extends HTMLElement> {
4
+ export interface UseKeyOptions<T extends HTMLElement | null> {
5
5
  disabled?: boolean;
6
6
  targetRef?: RefObject<T>;
7
7
  type: "keydown" | "keyup" | "keypress";
@@ -1,2 +1,2 @@
1
1
  import { CSSProperties, RefObject } from "react";
2
- export declare function useMouseDragToScroll<T extends HTMLElement>(containerRef: RefObject<T>): CSSProperties | undefined;
2
+ export declare function useMouseDragToScroll<T extends HTMLElement | null>(containerRef: RefObject<T>): CSSProperties | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/core-react",
3
- "version": "11.47.0",
3
+ "version": "11.50.0",
4
4
  "description": "UXF Core",
5
5
  "author": "UX Fans s.r.o",
6
6
  "license": "MIT",