@elliemae/ds-popper 1.60.0 → 2.0.0-alpha.12
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/cjs/DSPopper.js +42 -55
- package/cjs/PopperContent.js +116 -146
- package/cjs/PopperImpl.js +273 -322
- package/cjs/getArrowStylesBySize.js +10 -6
- package/cjs/index.js +1 -20
- package/cjs/interaction.js +2 -3
- package/cjs/positions.js +2 -3
- package/cjs/props.js +10 -27
- package/esm/DSPopper.js +40 -53
- package/esm/PopperContent.js +113 -137
- package/esm/PopperImpl.js +273 -314
- package/esm/getArrowStylesBySize.js +8 -4
- package/esm/index.js +0 -19
- package/esm/interaction.js +2 -3
- package/esm/positions.js +2 -3
- package/esm/props.js +10 -27
- package/package.json +56 -11
- package/types/DSPopper.d.ts +188 -0
- package/types/PopperContent.d.ts +21 -0
- package/types/PopperImpl.d.ts +52 -0
- package/types/getArrowStylesBySize.d.ts +2 -0
- package/types/index.d.ts +3 -0
- package/types/interaction.d.ts +5 -0
- package/types/positions.d.ts +18 -0
- package/types/props.d.ts +119 -0
- package/DSPopper/package.json +0 -10
- package/PopperContent/package.json +0 -10
- package/PopperImpl/package.json +0 -10
- package/cjs/DSPopper.js.map +0 -1
- package/cjs/PopperContent.js.map +0 -1
- package/cjs/PopperImpl.js.map +0 -1
- package/cjs/getArrowStylesBySize.js.map +0 -1
- package/cjs/index.js.map +0 -1
- package/cjs/interaction.js.map +0 -1
- package/cjs/positions.js.map +0 -1
- package/cjs/props.js.map +0 -1
- package/esm/DSPopper.js.map +0 -1
- package/esm/PopperContent.js.map +0 -1
- package/esm/PopperImpl.js.map +0 -1
- package/esm/getArrowStylesBySize.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/interaction.js.map +0 -1
- package/esm/positions.js.map +0 -1
- package/esm/props.js.map +0 -1
- package/getArrowStylesBySize/package.json +0 -10
- package/interaction/package.json +0 -10
- package/positions/package.json +0 -10
- package/props/package.json +0 -10
package/esm/interaction.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
const Interaction = {
|
|
2
2
|
CLICK: 'click',
|
|
3
3
|
HOVER: 'hover'
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
const interactions = [Interaction.CLICK, Interaction.HOVER];
|
|
6
6
|
|
|
7
7
|
export { Interaction, interactions };
|
|
8
|
-
//# sourceMappingURL=interaction.js.map
|
package/esm/positions.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const Position = {
|
|
2
2
|
AUTO: 'auto',
|
|
3
3
|
AUTO_START: 'auto-start',
|
|
4
4
|
AUTO_END: 'auto-end',
|
|
@@ -15,7 +15,6 @@ var Position = {
|
|
|
15
15
|
TOP_START: 'top-start',
|
|
16
16
|
TOP_END: 'top-end'
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
const positions = [Position.AUTO_START, Position.AUTO_END, Position.AUTO, Position.TOP_START, Position.TOP, Position.TOP_END, Position.RIGHT_START, Position.RIGHT, Position.RIGHT_END, Position.BOTTOM_START, Position.BOTTOM, Position.BOTTOM_END, Position.LEFT_START, Position.LEFT, Position.LEFT_END];
|
|
19
19
|
|
|
20
20
|
export { Position, positions };
|
|
21
|
-
//# sourceMappingURL=positions.js.map
|
package/esm/props.js
CHANGED
|
@@ -2,7 +2,7 @@ import { PropTypes } from 'react-desc';
|
|
|
2
2
|
import { Position } from './positions.js';
|
|
3
3
|
import { Interaction } from './interaction.js';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const popperProps = {
|
|
6
6
|
/** Hide menu component if trigger component is not visible/scrolled away */
|
|
7
7
|
hideIfNotVisible: PropTypes.bool.description('Hide menu component if trigger component is not visible/scrolled away'),
|
|
8
8
|
|
|
@@ -34,28 +34,20 @@ var popperProps = {
|
|
|
34
34
|
blockName: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).description('Bem blockname for the popper'),
|
|
35
35
|
triggerComponent: PropTypes.element.description("The component that will open/close the tooltip. \n Cannot be used with disabled elements. \n https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled").isRequired
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
const defaultProps = {
|
|
38
38
|
containerProps: {},
|
|
39
39
|
arrowGap: 8,
|
|
40
40
|
arrowSize: 6,
|
|
41
41
|
blockName: '',
|
|
42
42
|
contentOffset: null,
|
|
43
43
|
contentStyle: null,
|
|
44
|
-
contentComponent:
|
|
45
|
-
return null;
|
|
46
|
-
},
|
|
44
|
+
contentComponent: () => null,
|
|
47
45
|
delayClose: 300,
|
|
48
46
|
delayOpen: 200,
|
|
49
47
|
interactionType: Interaction.CLICK,
|
|
50
|
-
onOpen:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
onClose: function onClose() {
|
|
54
|
-
return null;
|
|
55
|
-
},
|
|
56
|
-
onPlacementChange: function onPlacementChange() {
|
|
57
|
-
return null;
|
|
58
|
-
},
|
|
48
|
+
onOpen: () => null,
|
|
49
|
+
onClose: () => null,
|
|
50
|
+
onPlacementChange: () => null,
|
|
59
51
|
placement: Position.BOTTOM,
|
|
60
52
|
preventOverflow: 'window',
|
|
61
53
|
showArrow: true,
|
|
@@ -80,21 +72,12 @@ var defaultProps = {
|
|
|
80
72
|
}
|
|
81
73
|
},
|
|
82
74
|
usePortal: true,
|
|
83
|
-
triggerComponent:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
getTargetFromChildren: function getTargetFromChildren() {
|
|
87
|
-
return null;
|
|
88
|
-
},
|
|
89
|
-
getContentFromChildren: function getContentFromChildren() {
|
|
90
|
-
return null;
|
|
91
|
-
},
|
|
75
|
+
triggerComponent: () => null,
|
|
76
|
+
getTargetFromChildren: () => null,
|
|
77
|
+
getContentFromChildren: () => null,
|
|
92
78
|
modifiers: {},
|
|
93
|
-
triggerRef:
|
|
94
|
-
return null;
|
|
95
|
-
},
|
|
79
|
+
triggerRef: () => null,
|
|
96
80
|
hideIfNotVisible: false
|
|
97
81
|
};
|
|
98
82
|
|
|
99
83
|
export { defaultProps, popperProps };
|
|
100
|
-
//# sourceMappingURL=props.js.map
|
package/package.json
CHANGED
|
@@ -1,14 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-popper",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.12",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"description": "
|
|
6
|
-
"module": "esm/index.js",
|
|
7
|
-
"main": "cjs/index.js",
|
|
5
|
+
"description": "ICE MT - Dimsum - Popper",
|
|
6
|
+
"module": "./esm/index.js",
|
|
7
|
+
"main": "./cjs/index.js",
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./esm/index.js",
|
|
12
|
+
"require": "./cjs/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./props": {
|
|
15
|
+
"import": "./esm/props.js",
|
|
16
|
+
"require": "./cjs/props.js"
|
|
17
|
+
},
|
|
18
|
+
"./positions": {
|
|
19
|
+
"import": "./esm/positions.js",
|
|
20
|
+
"require": "./cjs/positions.js"
|
|
21
|
+
},
|
|
22
|
+
"./PopperImpl": {
|
|
23
|
+
"import": "./esm/PopperImpl.js",
|
|
24
|
+
"require": "./cjs/PopperImpl.js"
|
|
25
|
+
},
|
|
26
|
+
"./PopperContent": {
|
|
27
|
+
"import": "./esm/PopperContent.js",
|
|
28
|
+
"require": "./cjs/PopperContent.js"
|
|
29
|
+
},
|
|
30
|
+
"./interaction": {
|
|
31
|
+
"import": "./esm/interaction.js",
|
|
32
|
+
"require": "./cjs/interaction.js"
|
|
33
|
+
},
|
|
34
|
+
"./getArrowStylesBySize": {
|
|
35
|
+
"import": "./esm/getArrowStylesBySize.js",
|
|
36
|
+
"require": "./cjs/getArrowStylesBySize.js"
|
|
37
|
+
},
|
|
38
|
+
"./DSPopper": {
|
|
39
|
+
"import": "./esm/DSPopper.js",
|
|
40
|
+
"require": "./cjs/DSPopper.js"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
8
43
|
"sideEffects": [
|
|
9
44
|
"*.css",
|
|
10
45
|
"*.scss"
|
|
11
46
|
],
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
50
|
+
},
|
|
51
|
+
"engines": {
|
|
52
|
+
"npm": ">=7",
|
|
53
|
+
"node": ">=14"
|
|
54
|
+
},
|
|
55
|
+
"author": "ICE MT",
|
|
12
56
|
"scripts": {
|
|
13
57
|
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
14
58
|
"prebuild": "exit 0",
|
|
@@ -16,20 +60,21 @@
|
|
|
16
60
|
"build": "node ../../scripts/build/build.js"
|
|
17
61
|
},
|
|
18
62
|
"dependencies": {
|
|
19
|
-
"@elliemae/ds-overlay": "
|
|
20
|
-
"@elliemae/ds-utilities": "
|
|
63
|
+
"@elliemae/ds-overlay": "2.0.0-alpha.12",
|
|
64
|
+
"@elliemae/ds-utilities": "2.0.0-alpha.12",
|
|
21
65
|
"memoize-one": "~5.1.1",
|
|
22
66
|
"prop-types": "~15.7.2",
|
|
23
|
-
"react-desc": "
|
|
24
|
-
"react-popper": "~1.3.
|
|
67
|
+
"react-desc": "~4.1.3",
|
|
68
|
+
"react-popper": "~1.3.11",
|
|
25
69
|
"react-spring": "~8.0.27"
|
|
26
70
|
},
|
|
27
71
|
"peerDependencies": {
|
|
28
|
-
"react": "^17.0.
|
|
29
|
-
"react-dom": "^17.0.
|
|
72
|
+
"react": "^17.0.2",
|
|
73
|
+
"react-dom": "^17.0.2"
|
|
30
74
|
},
|
|
31
75
|
"publishConfig": {
|
|
32
76
|
"access": "public",
|
|
33
|
-
"directory": "dist"
|
|
77
|
+
"directory": "dist",
|
|
78
|
+
"generateSubmodules": true
|
|
34
79
|
}
|
|
35
80
|
}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { Position } from './positions';
|
|
4
|
+
import { Interaction } from './interaction';
|
|
5
|
+
declare const DSPopper: {
|
|
6
|
+
({ containerProps, arrowGap, arrowSize, blockName, contentOffset, contentStyle, contentComponent, delayClose, delayOpen, interactionType, isOpen, onOpen, onClose, onPlacementChange, placement, preventOverflow, showArrow, closeAnimationConfig, openAnimationConfig, usePortal, triggerComponent, wrapExtraComponent, getTargetFromChildren, getContentFromChildren, modifiers, triggerRef, children: customPopper, renderReference, referenceNode, zIndex, hideIfNotVisible, }: {
|
|
7
|
+
containerProps: any;
|
|
8
|
+
arrowGap: any;
|
|
9
|
+
arrowSize: any;
|
|
10
|
+
blockName: any;
|
|
11
|
+
contentOffset: any;
|
|
12
|
+
contentStyle: any;
|
|
13
|
+
contentComponent: any;
|
|
14
|
+
delayClose: any;
|
|
15
|
+
delayOpen: any;
|
|
16
|
+
interactionType: any;
|
|
17
|
+
isOpen: any;
|
|
18
|
+
onOpen: any;
|
|
19
|
+
onClose: any;
|
|
20
|
+
onPlacementChange: any;
|
|
21
|
+
placement: any;
|
|
22
|
+
preventOverflow: any;
|
|
23
|
+
showArrow: any;
|
|
24
|
+
closeAnimationConfig: any;
|
|
25
|
+
openAnimationConfig: any;
|
|
26
|
+
usePortal: any;
|
|
27
|
+
triggerComponent: any;
|
|
28
|
+
wrapExtraComponent: any;
|
|
29
|
+
getTargetFromChildren: any;
|
|
30
|
+
getContentFromChildren: any;
|
|
31
|
+
modifiers: any;
|
|
32
|
+
triggerRef: any;
|
|
33
|
+
children: any;
|
|
34
|
+
renderReference: any;
|
|
35
|
+
referenceNode: any;
|
|
36
|
+
zIndex: any;
|
|
37
|
+
hideIfNotVisible: any;
|
|
38
|
+
}): JSX.Element;
|
|
39
|
+
propTypes: {
|
|
40
|
+
hideIfNotVisible: {
|
|
41
|
+
defaultValue<T = unknown>(arg: T): {
|
|
42
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
43
|
+
};
|
|
44
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
45
|
+
};
|
|
46
|
+
containerProps: {
|
|
47
|
+
defaultValue<T = unknown>(arg: T): {
|
|
48
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
50
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
51
|
+
};
|
|
52
|
+
arrowGap: {
|
|
53
|
+
defaultValue<T = unknown>(arg: T): {
|
|
54
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
55
|
+
};
|
|
56
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
57
|
+
};
|
|
58
|
+
onOpen: {
|
|
59
|
+
defaultValue<T = unknown>(arg: T): {
|
|
60
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
61
|
+
};
|
|
62
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
63
|
+
};
|
|
64
|
+
onClose: {
|
|
65
|
+
defaultValue<T = unknown>(arg: T): {
|
|
66
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
67
|
+
};
|
|
68
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
69
|
+
};
|
|
70
|
+
delayClose: {
|
|
71
|
+
defaultValue<T = unknown>(arg: T): {
|
|
72
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
73
|
+
};
|
|
74
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
75
|
+
};
|
|
76
|
+
delayOpen: {
|
|
77
|
+
defaultValue<T = unknown>(arg: T): {
|
|
78
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
79
|
+
};
|
|
80
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
81
|
+
};
|
|
82
|
+
onPlacementChange: {
|
|
83
|
+
defaultValue<T = unknown>(arg: T): {
|
|
84
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
85
|
+
};
|
|
86
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
87
|
+
};
|
|
88
|
+
arrowSize: {
|
|
89
|
+
defaultValue<T = unknown>(arg: T): {
|
|
90
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
91
|
+
};
|
|
92
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
93
|
+
};
|
|
94
|
+
blockName: {
|
|
95
|
+
defaultValue<T = unknown>(arg: T): {
|
|
96
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
97
|
+
};
|
|
98
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
99
|
+
};
|
|
100
|
+
triggerComponent: import("react-desc").PropTypesDescValidator;
|
|
101
|
+
};
|
|
102
|
+
defaultProps: {
|
|
103
|
+
containerProps: {};
|
|
104
|
+
arrowGap: number;
|
|
105
|
+
arrowSize: number;
|
|
106
|
+
blockName: string;
|
|
107
|
+
contentOffset: null;
|
|
108
|
+
contentStyle: null;
|
|
109
|
+
contentComponent: () => null;
|
|
110
|
+
delayClose: number;
|
|
111
|
+
delayOpen: number;
|
|
112
|
+
interactionType: string;
|
|
113
|
+
onOpen: () => null;
|
|
114
|
+
onClose: () => null;
|
|
115
|
+
onPlacementChange: () => null;
|
|
116
|
+
placement: string;
|
|
117
|
+
preventOverflow: string;
|
|
118
|
+
showArrow: boolean;
|
|
119
|
+
closeAnimationConfig: {
|
|
120
|
+
to: {
|
|
121
|
+
transform: string;
|
|
122
|
+
opacity: string;
|
|
123
|
+
};
|
|
124
|
+
config: {
|
|
125
|
+
delay: number;
|
|
126
|
+
duration: number;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
openAnimationConfig: {
|
|
130
|
+
to: {
|
|
131
|
+
transform: string;
|
|
132
|
+
opacity: string;
|
|
133
|
+
};
|
|
134
|
+
config: {
|
|
135
|
+
delay: number;
|
|
136
|
+
duration: number;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
usePortal: boolean;
|
|
140
|
+
triggerComponent: () => null;
|
|
141
|
+
getTargetFromChildren: () => null;
|
|
142
|
+
getContentFromChildren: () => null;
|
|
143
|
+
modifiers: {};
|
|
144
|
+
triggerRef: () => null;
|
|
145
|
+
hideIfNotVisible: boolean;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
declare const DSPopperWithSchema: {
|
|
149
|
+
(props?: {
|
|
150
|
+
containerProps: any;
|
|
151
|
+
arrowGap: any;
|
|
152
|
+
arrowSize: any;
|
|
153
|
+
blockName: any;
|
|
154
|
+
contentOffset: any;
|
|
155
|
+
contentStyle: any;
|
|
156
|
+
contentComponent: any;
|
|
157
|
+
delayClose: any;
|
|
158
|
+
delayOpen: any;
|
|
159
|
+
interactionType: any;
|
|
160
|
+
isOpen: any;
|
|
161
|
+
onOpen: any;
|
|
162
|
+
onClose: any;
|
|
163
|
+
onPlacementChange: any;
|
|
164
|
+
placement: any;
|
|
165
|
+
preventOverflow: any;
|
|
166
|
+
showArrow: any;
|
|
167
|
+
closeAnimationConfig: any;
|
|
168
|
+
openAnimationConfig: any;
|
|
169
|
+
usePortal: any;
|
|
170
|
+
triggerComponent: any;
|
|
171
|
+
wrapExtraComponent: any;
|
|
172
|
+
getTargetFromChildren: any;
|
|
173
|
+
getContentFromChildren: any;
|
|
174
|
+
modifiers: any;
|
|
175
|
+
triggerRef: any;
|
|
176
|
+
children: any;
|
|
177
|
+
renderReference: any;
|
|
178
|
+
referenceNode: any;
|
|
179
|
+
zIndex: any;
|
|
180
|
+
hideIfNotVisible: any;
|
|
181
|
+
} | undefined): JSX.Element;
|
|
182
|
+
propTypes: unknown;
|
|
183
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
184
|
+
};
|
|
185
|
+
export { Interaction as PopperInteractions, Position as PopperPositions, DSPopperWithSchema, DSPopper };
|
|
186
|
+
export { interactions } from './interaction';
|
|
187
|
+
export { positions } from './positions';
|
|
188
|
+
export default DSPopper;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
|
+
export default class PopperContent extends PureComponent {
|
|
3
|
+
static defaultProps: {
|
|
4
|
+
onContentDestroyed: () => null;
|
|
5
|
+
};
|
|
6
|
+
constructor(props: any);
|
|
7
|
+
handleRestAnimation(): void;
|
|
8
|
+
renderArrow({ ref, style }: {
|
|
9
|
+
ref: any;
|
|
10
|
+
style: any;
|
|
11
|
+
}, placement: any): JSX.Element | null;
|
|
12
|
+
renderContent({ ref, style, placement, arrowProps, scheduleUpdate, outOfBoundaries, }: {
|
|
13
|
+
ref: any;
|
|
14
|
+
style: any;
|
|
15
|
+
placement: any;
|
|
16
|
+
arrowProps: any;
|
|
17
|
+
scheduleUpdate: any;
|
|
18
|
+
outOfBoundaries: any;
|
|
19
|
+
}): JSX.Element;
|
|
20
|
+
render(): JSX.Element;
|
|
21
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { Reference } from 'react-popper';
|
|
3
|
+
import PopperContent from './PopperContent';
|
|
4
|
+
export default class PopperImpl extends Component<any, any> {
|
|
5
|
+
safeIsMounted: boolean;
|
|
6
|
+
handlePopperPlacementChange: (this: any, placement: any) => void;
|
|
7
|
+
constructor(props: any);
|
|
8
|
+
componentDidMount(): void;
|
|
9
|
+
componentDidUpdate(): void;
|
|
10
|
+
componentWillUnmount(): void;
|
|
11
|
+
static getDerivedStateFromProps(nextProps: any, prevState: any): {
|
|
12
|
+
isOpen: any;
|
|
13
|
+
prevPropIsOpen: any;
|
|
14
|
+
} | null;
|
|
15
|
+
getInteractionObject(interaction: any, referenceProps?: {}): {
|
|
16
|
+
handlers?: undefined;
|
|
17
|
+
canClose?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
handlers: {
|
|
20
|
+
onClick: (e: any) => void;
|
|
21
|
+
onMouseEnter?: undefined;
|
|
22
|
+
onPointerEnter?: undefined;
|
|
23
|
+
onMouseLeave?: undefined;
|
|
24
|
+
onPointerLeave?: undefined;
|
|
25
|
+
};
|
|
26
|
+
canClose: () => boolean;
|
|
27
|
+
} | {
|
|
28
|
+
handlers: {
|
|
29
|
+
onMouseEnter: any;
|
|
30
|
+
onPointerEnter: any;
|
|
31
|
+
onMouseLeave: any;
|
|
32
|
+
onPointerLeave: any;
|
|
33
|
+
onClick: (e: any) => void;
|
|
34
|
+
};
|
|
35
|
+
canClose: (isOnTrigger: any, isOnPopper: any) => boolean;
|
|
36
|
+
};
|
|
37
|
+
setOpen(opening: any): void;
|
|
38
|
+
open(): void;
|
|
39
|
+
close(): void;
|
|
40
|
+
handleTriggerClick(e: any): void;
|
|
41
|
+
handleContentMouseEnter(): void;
|
|
42
|
+
handleContentMouseLeave(): void;
|
|
43
|
+
handleMouseEnter(): void;
|
|
44
|
+
handleMouseLeave(): void;
|
|
45
|
+
updatePopoverState(popperData: any): any;
|
|
46
|
+
handleDestroyContent(): void;
|
|
47
|
+
renderTarget({ ref }: {
|
|
48
|
+
ref: any;
|
|
49
|
+
}): any;
|
|
50
|
+
render(): JSX.Element;
|
|
51
|
+
}
|
|
52
|
+
export { Reference, PopperContent };
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const Position: {
|
|
2
|
+
AUTO: string;
|
|
3
|
+
AUTO_START: string;
|
|
4
|
+
AUTO_END: string;
|
|
5
|
+
BOTTOM: string;
|
|
6
|
+
BOTTOM_START: string;
|
|
7
|
+
BOTTOM_END: string;
|
|
8
|
+
LEFT: string;
|
|
9
|
+
LEFT_END: string;
|
|
10
|
+
LEFT_START: string;
|
|
11
|
+
RIGHT: string;
|
|
12
|
+
RIGHT_END: string;
|
|
13
|
+
RIGHT_START: string;
|
|
14
|
+
TOP: string;
|
|
15
|
+
TOP_START: string;
|
|
16
|
+
TOP_END: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const positions: string[];
|
package/types/props.d.ts
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
export declare const popperProps: {
|
|
3
|
+
/** Hide menu component if trigger component is not visible/scrolled away */
|
|
4
|
+
hideIfNotVisible: {
|
|
5
|
+
defaultValue<T = unknown>(arg: T): {
|
|
6
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
7
|
+
};
|
|
8
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
9
|
+
};
|
|
10
|
+
/** props to inject to popper wrapper */
|
|
11
|
+
containerProps: {
|
|
12
|
+
defaultValue<T = unknown>(arg: T): {
|
|
13
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
+
};
|
|
15
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
17
|
+
/** Space between the arrow and the popup */
|
|
18
|
+
arrowGap: {
|
|
19
|
+
defaultValue<T = unknown>(arg: T): {
|
|
20
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
21
|
+
};
|
|
22
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
24
|
+
/** callback for when menu changes from close to open */
|
|
25
|
+
onOpen: {
|
|
26
|
+
defaultValue<T = unknown>(arg: T): {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
30
|
+
};
|
|
31
|
+
/** callback for when menu changes from open to close */
|
|
32
|
+
onClose: {
|
|
33
|
+
defaultValue<T = unknown>(arg: T): {
|
|
34
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
36
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
38
|
+
/** Time in ms to delay close of menu */
|
|
39
|
+
delayClose: {
|
|
40
|
+
defaultValue<T = unknown>(arg: T): {
|
|
41
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
43
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
44
|
+
};
|
|
45
|
+
/** Time in ms to delay open of menu */
|
|
46
|
+
delayOpen: {
|
|
47
|
+
defaultValue<T = unknown>(arg: T): {
|
|
48
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
50
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
51
|
+
};
|
|
52
|
+
/** callback for when menu changes placement */
|
|
53
|
+
onPlacementChange: {
|
|
54
|
+
defaultValue<T = unknown>(arg: T): {
|
|
55
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
56
|
+
};
|
|
57
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
58
|
+
};
|
|
59
|
+
/** Arrow size */
|
|
60
|
+
arrowSize: {
|
|
61
|
+
defaultValue<T = unknown>(arg: T): {
|
|
62
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
63
|
+
};
|
|
64
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
65
|
+
};
|
|
66
|
+
/** Bem blockname for the popper */
|
|
67
|
+
blockName: {
|
|
68
|
+
defaultValue<T = unknown>(arg: T): {
|
|
69
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
70
|
+
};
|
|
71
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
72
|
+
};
|
|
73
|
+
triggerComponent: import("react-desc").PropTypesDescValidator;
|
|
74
|
+
};
|
|
75
|
+
export declare const defaultProps: {
|
|
76
|
+
containerProps: {};
|
|
77
|
+
arrowGap: number;
|
|
78
|
+
arrowSize: number;
|
|
79
|
+
blockName: string;
|
|
80
|
+
contentOffset: null;
|
|
81
|
+
contentStyle: null;
|
|
82
|
+
contentComponent: () => null;
|
|
83
|
+
delayClose: number;
|
|
84
|
+
delayOpen: number;
|
|
85
|
+
interactionType: string;
|
|
86
|
+
onOpen: () => null;
|
|
87
|
+
onClose: () => null;
|
|
88
|
+
onPlacementChange: () => null;
|
|
89
|
+
placement: string;
|
|
90
|
+
preventOverflow: string;
|
|
91
|
+
showArrow: boolean;
|
|
92
|
+
closeAnimationConfig: {
|
|
93
|
+
to: {
|
|
94
|
+
transform: string;
|
|
95
|
+
opacity: string;
|
|
96
|
+
};
|
|
97
|
+
config: {
|
|
98
|
+
delay: number;
|
|
99
|
+
duration: number;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
openAnimationConfig: {
|
|
103
|
+
to: {
|
|
104
|
+
transform: string;
|
|
105
|
+
opacity: string;
|
|
106
|
+
};
|
|
107
|
+
config: {
|
|
108
|
+
delay: number;
|
|
109
|
+
duration: number;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
usePortal: boolean;
|
|
113
|
+
triggerComponent: () => null;
|
|
114
|
+
getTargetFromChildren: () => null;
|
|
115
|
+
getContentFromChildren: () => null;
|
|
116
|
+
modifiers: {};
|
|
117
|
+
triggerRef: () => null;
|
|
118
|
+
hideIfNotVisible: boolean;
|
|
119
|
+
};
|
package/DSPopper/package.json
DELETED
package/PopperImpl/package.json
DELETED
package/cjs/DSPopper.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSPopper.js","sources":["../../src/DSPopper.tsx"],"sourcesContent":["import React from 'react';\nimport { describe } from 'react-desc';\nimport PopperImpl from './PopperImpl';\nimport { Position } from './positions';\nimport { Interaction } from './interaction';\nimport { popperProps, defaultProps } from './props';\n\nconst DSPopper = ({\n containerProps,\n arrowGap,\n arrowSize,\n blockName,\n contentOffset,\n contentStyle,\n contentComponent,\n delayClose,\n delayOpen,\n interactionType,\n isOpen, // if this is set DSPopper would be a controlled component if not, an uncontrolled one\n onOpen,\n onClose,\n onPlacementChange,\n placement,\n preventOverflow,\n showArrow,\n closeAnimationConfig,\n openAnimationConfig,\n usePortal,\n triggerComponent,\n wrapExtraComponent,\n getTargetFromChildren,\n getContentFromChildren,\n modifiers,\n triggerRef,\n children: customPopper,\n renderReference,\n referenceNode,\n zIndex,\n hideIfNotVisible,\n}): JSX.Element => (\n <PopperImpl\n arrowGap={arrowGap}\n arrowSize={arrowSize}\n blockName={blockName}\n closeAnimationConfig={closeAnimationConfig}\n containerProps={containerProps}\n contentComponent={contentComponent}\n contentOffset={contentOffset}\n contentStyle={contentStyle}\n delayClose={delayClose}\n delayOpen={delayOpen}\n getContentFromChildren={getContentFromChildren}\n getTargetFromChildren={getTargetFromChildren}\n interactionType={interactionType}\n isOpen={isOpen}\n modifiers={modifiers}\n onOpen={onOpen}\n onClose={onClose}\n onPlacementChange={onPlacementChange}\n openAnimationConfig={openAnimationConfig}\n placement={placement}\n preventOverflow={preventOverflow}\n referenceNode={referenceNode}\n renderReference={renderReference}\n showArrow={showArrow}\n triggerComponent={triggerComponent}\n triggerRef={triggerRef}\n usePortal={usePortal}\n wrapExtraComponent={wrapExtraComponent}\n zIndex={zIndex}\n hideIfNotVisible={hideIfNotVisible}\n >\n {customPopper}\n </PopperImpl>\n);\n\n// @deprecated: There's the NEW (not finished) popover that uses its own popper implementation.\nDSPopper.propTypes = popperProps;\nDSPopper.defaultProps = defaultProps;\n\nconst DSPopperWithSchema = describe(DSPopper);\nDSPopperWithSchema.propTypes = popperProps;\n\nexport { Interaction as PopperInteractions, Position as PopperPositions, DSPopperWithSchema, DSPopper };\n\nexport { interactions } from './interaction';\nexport { positions } from './positions';\n\nexport default DSPopper;\n"],"names":["DSPopper","containerProps","arrowGap","arrowSize","blockName","contentOffset","contentStyle","contentComponent","delayClose","delayOpen","interactionType","isOpen","onOpen","onClose","onPlacementChange","placement","preventOverflow","showArrow","closeAnimationConfig","openAnimationConfig","usePortal","triggerComponent","wrapExtraComponent","getTargetFromChildren","getContentFromChildren","modifiers","triggerRef","customPopper","children","renderReference","referenceNode","zIndex","hideIfNotVisible","React","PopperImpl","propTypes","popperProps","defaultProps","DSPopperWithSchema","describe"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOMA,QAAQ,GAAG,SAAXA,QAAW;AAAA,MACfC,cADe,QACfA,cADe;AAAA,MAEfC,QAFe,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A,gBAAgB,EAAEM,gBANpB;AAOE,IAAA,aAAa,EAAEF,aAPjB;AAQE,IAAA,YAAY,EAAEC,YARhB;AASE,IAAA,UAAU,EAAEE,UATd;AAUE,IAAA,SAAS,EAAEC,SAVb;AAWE,IAAA,sBAAsB,EAAEe,sBAX1B;AAYE,IAAA,qBAAqB,EAAED,qBAZzB;AAaE,IAAA,eAAe,EAAEb,eAbnB;AAcE,IAAA,MAAM,EAAEC,MAdV;AAeE,IAAA,SAAS,EAAEc,SAfb;AAgBE,IAAA,MAAM,EAAEb,MAhBV;AAiBE,IAAA,OAAO,EAAEC,OAjBX;AAkBE,IAAA,iBAAiB,EAAEC,iBAlBrB;AAmBE,IAAA,mBAAmB,EAAEK,mBAnBvB;AAoBE,IAAA,SAAS,EAAEJ,SApBb;AAqBE,IAAA,eAAe,EAAEC,eArBnB;AAsBE,IAAA,aAAa,EAAEc,aAtBjB;AAuBE,IAAA,eAAe,EAAED,eAvBnB;AAwBE,IAAA,SAAS,EAAEZ,SAxBb;AAyBE,IAAA,gBAAgB,EAAEI,gBAzBpB;AA0BE,IAAA,UAAU,EAAEK,UA1Bd;AA2BE,IAAA,SAAS,EAAEN,SA3Bb;AA4BE,IAAA,kBAAkB,EAAEE,kBA5BtB;AA6BE,IAAA,MAAM,EAAES,MA7BV;AA8BE,IAAA,gBAAgB,EAAEC;AA9BpB,KAgCGL,YAhCH,CAjCe;AAAA;;;AAsEjB3B,QAAQ,CAACmC,SAAT,GAAqBC,iBAArB;AACApC,QAAQ,CAACqC,YAAT,GAAwBA,kBAAxB;IAEMC,kBAAkB,GAAGC,kBAAQ,CAACvC,QAAD;AACnCsC,kBAAkB,CAACH,SAAnB,GAA+BC,iBAA/B;;;;;;;;;;"}
|
package/cjs/PopperContent.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PopperContent.js","sources":["../../src/PopperContent.tsx"],"sourcesContent":["/* eslint-disable max-lines */\n/* eslint-disable react/prop-types */\nimport React, { PureComponent } from 'react';\nimport { Popper } from 'react-popper';\nimport { Keyframes, animated } from 'react-spring/renderprops.cjs';\nimport { getComponentFromProps } from '@elliemae/ds-utilities';\nimport DSOverlay from '@elliemae/ds-overlay';\nimport { getArrowStylesBySize } from './getArrowStylesBySize';\n\nconst Content = Keyframes.Spring({});\n\nexport default class PopperContent extends PureComponent {\n // eslint-disable-next-line react/static-property-placement\n static defaultProps = { onContentDestroyed: () => null };\n\n constructor(props) {\n super(props);\n this.renderContent = this.renderContent.bind(this);\n this.renderArrow = this.renderArrow.bind(this);\n this.handleRestAnimation = this.handleRestAnimation.bind(this);\n }\n\n handleRestAnimation() {\n const { isOpen, onContentDestroyed } = this.props;\n if (!isOpen) {\n onContentDestroyed();\n }\n }\n\n renderArrow({ ref, style }, placement) {\n const { blockName, showArrow } = this.props;\n if (!showArrow) return null;\n return (\n <div\n key=\"popper-arrow\"\n ref={ref}\n className={`${blockName || 'popper'}__arrow`}\n data-placement={placement}\n style={{\n ...style,\n ...getArrowStylesBySize(placement, 25),\n }}\n >\n <svg viewBox=\"0 0 30 30\">\n <path\n className=\"stroke\"\n d=\"M23.7,27.1L17,19.9C16.5,19.3,15.8,19,15,19s-1.6,0.3-2.1,0.9l-6.6,7.2C5.3,28.1,3.4,29,2,29h26\n C26.7,29,24.6,28.1,23.7,27.1z\"\n />\n <path\n className=\"fill\"\n d=\"M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z\"\n />\n </svg>\n </div>\n );\n }\n\n renderContent({\n ref,\n style,\n placement,\n arrowProps,\n scheduleUpdate,\n outOfBoundaries,\n }) {\n const {\n contentComponent,\n contentStyle,\n isOpen,\n closeAnimationConfig,\n openAnimationConfig,\n onMouseEnter,\n onMouseLeave,\n containerProps,\n zIndex,\n hideIfNotVisible,\n } = this.props;\n\n const computedStyle = {\n ...style,\n ...contentStyle,\n zIndex,\n };\n return (\n <div\n {...containerProps}\n data-placement={placement}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n style={computedStyle}\n data-testid=\"popper-container\"\n >\n <Content\n native\n onRest={this.handleRestAnimation}\n state={\n isOpen && (!outOfBoundaries || !hideIfNotVisible) ? 'open' : 'close'\n }\n states={{\n open: {\n ...openAnimationConfig,\n from: closeAnimationConfig.to,\n },\n close: closeAnimationConfig,\n }}\n >\n {(animationStyle) => (\n <animated.div ref={ref} style={animationStyle}>\n {getComponentFromProps(contentComponent, { scheduleUpdate }, [\n this.renderArrow(arrowProps, placement),\n ])}\n </animated.div>\n )}\n </Content>\n </div>\n );\n }\n\n render() {\n const {\n destroyed = false,\n onClickOutside = () => null,\n placement = 'bottom-start',\n modifiers = {},\n referenceNode,\n usePortal = true,\n } = this.props;\n return (\n <DSOverlay\n isOpen={!destroyed}\n onClickOutside={onClickOutside}\n usePortal={usePortal}\n >\n <Popper\n modifiers={modifiers}\n placement={placement}\n referenceElement={referenceNode}\n >\n {this.renderContent}\n </Popper>\n </DSOverlay>\n );\n }\n}\n"],"names":["Content","Keyframes","Spring","PopperContent","props","renderContent","bind","renderArrow","handleRestAnimation","isOpen","onContentDestroyed","placement","ref","style","blockName","showArrow","React","getArrowStylesBySize","arrowProps","scheduleUpdate","outOfBoundaries","contentComponent","contentStyle","closeAnimationConfig","openAnimationConfig","onMouseEnter","onMouseLeave","containerProps","zIndex","hideIfNotVisible","computedStyle","open","from","to","close","animationStyle","animated","getComponentFromProps","destroyed","onClickOutside","modifiers","referenceNode","usePortal","DSOverlay","Popper","PureComponent","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAMA,OAAO,GAAGC,yBAAS,CAACC,MAAV,CAAiB,EAAjB,CAAhB;;IAEqBC;;;;;AACnB;AAGA,yBAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AACjB,8BAAMA,KAAN;AACA,UAAKC,aAAL,GAAqB,MAAK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