@fullkekw/popup 2.0.6 → 2.0.8

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/README.md CHANGED
@@ -62,6 +62,7 @@ export default Page;
62
62
  - Hightly customizable (you can even turn off scroll hide!)
63
63
  - Does not break elements with sticky position on oveflow hide
64
64
  - Render window content on demand
65
+ - onOpen & noExit hooks
65
66
 
66
67
  ## 👀 Examples
67
68
  Synthetic state handle. Will be opened by default
@@ -34,17 +34,13 @@ export interface PopupContextProps {
34
34
  registerNode(node: PopupNode): void;
35
35
  toggleDocument(id: string, e: React.MouseEvent): void;
36
36
  }
37
- export interface PopupLayerProps {
37
+ export interface PopupLayerProps extends React.HTMLAttributes<HTMLElement> {
38
38
  children: ReactNode | ReactNode[];
39
- className?: string;
40
39
  settings?: PopupSettings;
41
- style?: React.CSSProperties;
42
40
  }
43
- export interface PopupWindowProps {
41
+ export interface PopupWindowProps extends React.HTMLAttributes<HTMLElement> {
44
42
  id: string;
45
43
  children?: ReactNode | ReactNode[];
46
- className?: string;
47
- style?: React.CSSProperties;
48
44
  layerClassName?: string;
49
45
  settings?: PopupSettings;
50
46
  onOpen?(): void;
@@ -62,10 +58,8 @@ export interface PopupWindowProps {
62
58
  */
63
59
  animation?: PopupWindowAnimationType;
64
60
  }
65
- export interface PopupButtonProps {
61
+ export interface PopupButtonProps extends React.HTMLAttributes<HTMLElement> {
66
62
  popupId: string;
67
- className?: string;
68
- style?: React.CSSProperties;
69
63
  children?: ReactNode | ReactNode[];
70
64
  onClick?(e: React.MouseEvent): void;
71
65
  disabled?: boolean;