@elliemae/ds-popper 2.0.1 → 2.1.0-rc.2
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/PopperContent.js +2 -2
- package/cjs/PopperImpl.js +2 -2
- package/cjs/getArrowStylesBySize.js +2 -2
- package/esm/PopperContent.js +2 -2
- package/esm/PopperImpl.js +2 -2
- package/esm/getArrowStylesBySize.js +2 -2
- package/package.json +3 -3
- package/types/DSPopper.d.ts +21 -21
- package/types/props.d.ts +21 -21
package/cjs/PopperContent.js
CHANGED
|
@@ -24,9 +24,9 @@ var DSOverlay__default = /*#__PURE__*/_interopDefaultLegacy(DSOverlay);
|
|
|
24
24
|
|
|
25
25
|
var _svg;
|
|
26
26
|
|
|
27
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
27
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
28
28
|
|
|
29
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
29
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
30
30
|
const Content = renderprops.Keyframes.Spring({});
|
|
31
31
|
class PopperContent extends react.PureComponent {
|
|
32
32
|
// eslint-disable-next-line react/static-property-placement
|
package/cjs/PopperImpl.js
CHANGED
|
@@ -23,9 +23,9 @@ var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
|
23
23
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
24
24
|
var memoizeOne__default = /*#__PURE__*/_interopDefaultLegacy(memoizeOne);
|
|
25
25
|
|
|
26
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
26
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27
27
|
|
|
28
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
28
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
29
|
class PopperImpl extends react.Component {
|
|
30
30
|
// we use safeIsMounted because isMounted is not allowed by React.
|
|
31
31
|
constructor(props) {
|
|
@@ -13,9 +13,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
|
|
14
14
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
15
15
|
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
17
|
|
|
18
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
19
19
|
|
|
20
20
|
const getArrowStylesBySize = function (position) {
|
|
21
21
|
let size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 30;
|
package/esm/PopperContent.js
CHANGED
|
@@ -15,9 +15,9 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
15
15
|
|
|
16
16
|
var _svg;
|
|
17
17
|
|
|
18
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
19
|
|
|
20
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
21
|
const Content = Keyframes.Spring({});
|
|
22
22
|
class PopperContent extends PureComponent {
|
|
23
23
|
// eslint-disable-next-line react/static-property-placement
|
package/esm/PopperImpl.js
CHANGED
|
@@ -15,9 +15,9 @@ export { default as PopperContent } from './PopperContent.js';
|
|
|
15
15
|
import { Interaction } from './interaction.js';
|
|
16
16
|
import { jsx } from 'react/jsx-runtime';
|
|
17
17
|
|
|
18
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
19
|
|
|
20
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
21
|
class PopperImpl extends Component {
|
|
22
22
|
// we use safeIsMounted because isMounted is not allowed by React.
|
|
23
23
|
constructor(props) {
|
|
@@ -5,9 +5,9 @@ import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
|
5
5
|
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
6
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
7
7
|
|
|
8
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
8
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9
9
|
|
|
10
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
10
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11
11
|
|
|
12
12
|
const getArrowStylesBySize = function (position) {
|
|
13
13
|
let size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 30;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-popper",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.1.0-rc.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Popper",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"build": "node ../../scripts/build/build.js"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@elliemae/ds-overlay": "2.0.
|
|
64
|
-
"@elliemae/ds-utilities": "2.0.
|
|
63
|
+
"@elliemae/ds-overlay": "2.1.0-rc.2",
|
|
64
|
+
"@elliemae/ds-utilities": "2.1.0-rc.2",
|
|
65
65
|
"memoize-one": "~5.1.1",
|
|
66
66
|
"prop-types": "~15.7.2",
|
|
67
67
|
"react-desc": "~4.1.3",
|
package/types/DSPopper.d.ts
CHANGED
|
@@ -38,66 +38,66 @@ declare const DSPopper: {
|
|
|
38
38
|
}): JSX.Element;
|
|
39
39
|
propTypes: {
|
|
40
40
|
hideIfNotVisible: {
|
|
41
|
-
defaultValue
|
|
41
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
42
42
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
43
43
|
};
|
|
44
|
-
isRequired: import("react-desc").
|
|
44
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
45
45
|
};
|
|
46
46
|
containerProps: {
|
|
47
|
-
defaultValue
|
|
47
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
48
48
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
49
49
|
};
|
|
50
|
-
isRequired: import("react-desc").
|
|
50
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
51
51
|
};
|
|
52
52
|
arrowGap: {
|
|
53
|
-
defaultValue
|
|
53
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
54
54
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
55
55
|
};
|
|
56
|
-
isRequired: import("react-desc").
|
|
56
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
57
57
|
};
|
|
58
58
|
onOpen: {
|
|
59
|
-
defaultValue
|
|
59
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
60
60
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
61
61
|
};
|
|
62
|
-
isRequired: import("react-desc").
|
|
62
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
63
63
|
};
|
|
64
64
|
onClose: {
|
|
65
|
-
defaultValue
|
|
65
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
66
66
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
67
67
|
};
|
|
68
|
-
isRequired: import("react-desc").
|
|
68
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
69
69
|
};
|
|
70
70
|
delayClose: {
|
|
71
|
-
defaultValue
|
|
71
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
72
72
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
73
73
|
};
|
|
74
|
-
isRequired: import("react-desc").
|
|
74
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
75
75
|
};
|
|
76
76
|
delayOpen: {
|
|
77
|
-
defaultValue
|
|
77
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
78
78
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
79
79
|
};
|
|
80
|
-
isRequired: import("react-desc").
|
|
80
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
81
81
|
};
|
|
82
82
|
onPlacementChange: {
|
|
83
|
-
defaultValue
|
|
83
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
84
84
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
85
85
|
};
|
|
86
|
-
isRequired: import("react-desc").
|
|
86
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
87
87
|
};
|
|
88
88
|
arrowSize: {
|
|
89
|
-
defaultValue
|
|
89
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
90
90
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
91
91
|
};
|
|
92
|
-
isRequired: import("react-desc").
|
|
92
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
93
93
|
};
|
|
94
94
|
blockName: {
|
|
95
|
-
defaultValue
|
|
95
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
96
96
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
97
97
|
};
|
|
98
|
-
isRequired: import("react-desc").
|
|
98
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
99
99
|
};
|
|
100
|
-
triggerComponent: import("react-desc").
|
|
100
|
+
triggerComponent: import("react-desc").PropTypesDescValue;
|
|
101
101
|
};
|
|
102
102
|
defaultProps: {
|
|
103
103
|
containerProps: {};
|
package/types/props.d.ts
CHANGED
|
@@ -2,75 +2,75 @@
|
|
|
2
2
|
export declare const popperProps: {
|
|
3
3
|
/** Hide menu component if trigger component is not visible/scrolled away */
|
|
4
4
|
hideIfNotVisible: {
|
|
5
|
-
defaultValue
|
|
5
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
6
6
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
7
7
|
};
|
|
8
|
-
isRequired: import("react-desc").
|
|
8
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
9
9
|
};
|
|
10
10
|
/** props to inject to popper wrapper */
|
|
11
11
|
containerProps: {
|
|
12
|
-
defaultValue
|
|
12
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
13
13
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
14
|
};
|
|
15
|
-
isRequired: import("react-desc").
|
|
15
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
16
16
|
};
|
|
17
17
|
/** Space between the arrow and the popup */
|
|
18
18
|
arrowGap: {
|
|
19
|
-
defaultValue
|
|
19
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
20
20
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
21
21
|
};
|
|
22
|
-
isRequired: import("react-desc").
|
|
22
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
23
23
|
};
|
|
24
24
|
/** callback for when menu changes from close to open */
|
|
25
25
|
onOpen: {
|
|
26
|
-
defaultValue
|
|
26
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
27
27
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
28
|
};
|
|
29
|
-
isRequired: import("react-desc").
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
30
30
|
};
|
|
31
31
|
/** callback for when menu changes from open to close */
|
|
32
32
|
onClose: {
|
|
33
|
-
defaultValue
|
|
33
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
34
34
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
35
|
};
|
|
36
|
-
isRequired: import("react-desc").
|
|
36
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
37
37
|
};
|
|
38
38
|
/** Time in ms to delay close of menu */
|
|
39
39
|
delayClose: {
|
|
40
|
-
defaultValue
|
|
40
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
41
41
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
42
|
};
|
|
43
|
-
isRequired: import("react-desc").
|
|
43
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
44
44
|
};
|
|
45
45
|
/** Time in ms to delay open of menu */
|
|
46
46
|
delayOpen: {
|
|
47
|
-
defaultValue
|
|
47
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
48
48
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
49
49
|
};
|
|
50
|
-
isRequired: import("react-desc").
|
|
50
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
51
51
|
};
|
|
52
52
|
/** callback for when menu changes placement */
|
|
53
53
|
onPlacementChange: {
|
|
54
|
-
defaultValue
|
|
54
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
55
55
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
56
56
|
};
|
|
57
|
-
isRequired: import("react-desc").
|
|
57
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
58
58
|
};
|
|
59
59
|
/** Arrow size */
|
|
60
60
|
arrowSize: {
|
|
61
|
-
defaultValue
|
|
61
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
62
62
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
63
63
|
};
|
|
64
|
-
isRequired: import("react-desc").
|
|
64
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
65
65
|
};
|
|
66
66
|
/** Bem blockname for the popper */
|
|
67
67
|
blockName: {
|
|
68
|
-
defaultValue
|
|
68
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
69
69
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
70
70
|
};
|
|
71
|
-
isRequired: import("react-desc").
|
|
71
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
72
72
|
};
|
|
73
|
-
triggerComponent: import("react-desc").
|
|
73
|
+
triggerComponent: import("react-desc").PropTypesDescValue;
|
|
74
74
|
};
|
|
75
75
|
export declare const defaultProps: {
|
|
76
76
|
containerProps: {};
|