@elliemae/ds-popperjs 2.0.0-rc.4 → 2.0.0-rc.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/package.json +2 -2
- package/types/config/useConfiguredMergedProps.d.ts +2 -2
- package/types/index.d.ts +42 -15
- package/types/propTypes.d.ts +42 -15
- package/types/styled.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-popperjs",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Popper JS Wrapper",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"build": "node ../../scripts/build/build.js"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@elliemae/ds-props-helpers": "2.0.0-rc.
|
|
71
|
+
"@elliemae/ds-props-helpers": "2.0.0-rc.8",
|
|
72
72
|
"react-desc": "~4.1.3",
|
|
73
73
|
"react-popper": "~2.2.5"
|
|
74
74
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const useConfiguredMergedProps: ({ props, arrowElement }: {
|
|
2
2
|
props: any;
|
|
3
3
|
arrowElement: any;
|
|
4
|
-
}) =>
|
|
4
|
+
}) => {
|
|
5
5
|
modifiers: any;
|
|
6
6
|
referenceElement: null;
|
|
7
7
|
showPopover: boolean;
|
|
@@ -16,4 +16,4 @@ export declare const useConfiguredMergedProps: ({ props, arrowElement }: {
|
|
|
16
16
|
placementOrderPreference: string[];
|
|
17
17
|
zIndex: number;
|
|
18
18
|
extraPopperStyles: {};
|
|
19
|
-
}
|
|
19
|
+
};
|
package/types/index.d.ts
CHANGED
|
@@ -1,23 +1,50 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
import type { DSDSPopperjsPropsT } from './index.d';
|
|
3
4
|
declare const DSPopperJS: {
|
|
4
5
|
(props: DSDSPopperjsPropsT): JSX.Element;
|
|
5
6
|
propTypes: {
|
|
6
|
-
referenceElement:
|
|
7
|
-
showPopover:
|
|
8
|
-
closeContextMenu:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
referenceElement: import("react-desc").PropTypesDescValidator;
|
|
8
|
+
showPopover: import("react-desc").PropTypesDescValidator;
|
|
9
|
+
closeContextMenu: {
|
|
10
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
11
|
+
};
|
|
12
|
+
withoutPortal: {
|
|
13
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
+
};
|
|
15
|
+
withoutArrow: {
|
|
16
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
17
|
+
};
|
|
18
|
+
withoutAnimation: {
|
|
19
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
20
|
+
};
|
|
21
|
+
animationDuration: {
|
|
22
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
24
|
+
boundaryElement: {
|
|
25
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
|
+
};
|
|
27
|
+
portalDOMContainer: {
|
|
28
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
29
|
+
};
|
|
30
|
+
startPlacementPreference: {
|
|
31
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
+
};
|
|
33
|
+
placementOrderPreference: {
|
|
34
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
36
|
+
zIndex: {
|
|
37
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
38
|
+
};
|
|
39
|
+
customOffset: {
|
|
40
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
41
|
+
};
|
|
42
|
+
modifiers: {
|
|
43
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
44
|
+
};
|
|
45
|
+
extraPopperStyles: {
|
|
46
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
47
|
+
};
|
|
21
48
|
};
|
|
22
49
|
};
|
|
23
50
|
declare const DSPopperJSWithSchema: any;
|
package/types/propTypes.d.ts
CHANGED
|
@@ -1,62 +1,89 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
export declare const dspopperjsPropTypes: {
|
|
2
3
|
/**
|
|
3
4
|
* React ref to popperjs referenceElement
|
|
4
5
|
*/
|
|
5
|
-
referenceElement:
|
|
6
|
+
referenceElement: import("react-desc").PropTypesDescValidator;
|
|
6
7
|
/**
|
|
7
8
|
* Wheter or not to show the popper content
|
|
8
9
|
*/
|
|
9
|
-
showPopover:
|
|
10
|
+
showPopover: import("react-desc").PropTypesDescValidator;
|
|
10
11
|
/**
|
|
11
12
|
* Callback to close the context menu, used for "on click outside",
|
|
12
13
|
* if not provided click outside will not trigger anything
|
|
13
14
|
*/
|
|
14
|
-
closeContextMenu:
|
|
15
|
+
closeContextMenu: {
|
|
16
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
17
|
+
};
|
|
15
18
|
/**
|
|
16
19
|
* Wheter or not the popper content should appear in a DOM portal or not
|
|
17
20
|
*/
|
|
18
|
-
withoutPortal:
|
|
21
|
+
withoutPortal: {
|
|
22
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
19
24
|
/**
|
|
20
25
|
* Wheter or not the popper context menu should print the arrow
|
|
21
26
|
*/
|
|
22
|
-
withoutArrow:
|
|
27
|
+
withoutArrow: {
|
|
28
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
29
|
+
};
|
|
23
30
|
/**
|
|
24
31
|
* Whether or not the popper context menu should be animated
|
|
25
32
|
*/
|
|
26
|
-
withoutAnimation:
|
|
33
|
+
withoutAnimation: {
|
|
34
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
27
36
|
/**
|
|
28
37
|
* Popper context menus Animation duration in ms
|
|
29
38
|
*/
|
|
30
|
-
animationDuration:
|
|
39
|
+
animationDuration: {
|
|
40
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
41
|
+
};
|
|
31
42
|
/**
|
|
32
43
|
* Bounding element to calculate upon, defaults to it is "clippingParents",
|
|
33
44
|
* which are the scrolling containers that may cause the element to be partially or fully cut off.
|
|
34
45
|
*/
|
|
35
|
-
boundaryElement:
|
|
46
|
+
boundaryElement: {
|
|
47
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
48
|
+
};
|
|
36
49
|
/**
|
|
37
50
|
* When using portal, the container in which to append the DOM content, defaults to document body
|
|
38
51
|
*/
|
|
39
|
-
portalDOMContainer:
|
|
52
|
+
portalDOMContainer: {
|
|
53
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
54
|
+
};
|
|
40
55
|
/**
|
|
41
56
|
* start placement preferences, as per popperjs placement option
|
|
42
57
|
*/
|
|
43
|
-
startPlacementPreference:
|
|
58
|
+
startPlacementPreference: {
|
|
59
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
60
|
+
};
|
|
44
61
|
/**
|
|
45
62
|
* Array of placement preferences, as per popperjs "flip" placement option
|
|
46
63
|
*/
|
|
47
|
-
placementOrderPreference:
|
|
64
|
+
placementOrderPreference: {
|
|
65
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
66
|
+
};
|
|
48
67
|
/**
|
|
49
68
|
* popperjs content z-index
|
|
50
69
|
*/
|
|
51
|
-
zIndex:
|
|
70
|
+
zIndex: {
|
|
71
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
72
|
+
};
|
|
52
73
|
/**
|
|
53
74
|
* placement offset array
|
|
54
75
|
*/
|
|
55
|
-
customOffset:
|
|
76
|
+
customOffset: {
|
|
77
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
78
|
+
};
|
|
56
79
|
/**
|
|
57
80
|
* modifiers array for full-custom popper-js override
|
|
58
81
|
* https://popper.js.org/docs/v2/modifiers/
|
|
59
82
|
*/
|
|
60
|
-
modifiers:
|
|
61
|
-
|
|
83
|
+
modifiers: {
|
|
84
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
85
|
+
};
|
|
86
|
+
extraPopperStyles: {
|
|
87
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
88
|
+
};
|
|
62
89
|
};
|
package/types/styled.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ interface StyledAnimatedPopperPropsT {
|
|
|
6
6
|
animationDuration: number;
|
|
7
7
|
withoutAnimation: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const StyledPopoverContentWrapper: import("styled-components").StyledComponent<"div",
|
|
10
|
-
export declare const StyledAnimatedPopper: import("styled-components").StyledComponent<"div",
|
|
9
|
+
export declare const StyledPopoverContentWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledContentWrapperPropsT, never>;
|
|
10
|
+
export declare const StyledAnimatedPopper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledAnimatedPopperPropsT, never>;
|
|
11
11
|
export {};
|