@fullkekw/popup 2.0.6 → 2.0.7
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 +1 -0
- package/dist/Interfaces.d.ts +3 -9
- package/dist/index.es.js +279 -278
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +11 -11
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
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
|
package/dist/Interfaces.d.ts
CHANGED
|
@@ -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;
|