@rc-component/trigger 1.0.1 → 1.0.3
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/es/Popup/index.d.ts +1 -0
- package/es/Popup/index.js +1 -1
- package/es/index.d.ts +3 -2
- package/es/index.js +397 -391
- package/es/mock.d.ts +3 -0
- package/es/mock.js +11 -0
- package/lib/Popup/index.d.ts +1 -0
- package/lib/Popup/index.js +2 -2
- package/lib/index.d.ts +3 -2
- package/lib/index.js +398 -391
- package/lib/mock.d.ts +3 -0
- package/lib/mock.js +19 -0
- package/package.json +2 -2
package/lib/mock.d.ts
ADDED
package/lib/mock.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _index = require("./index");
|
|
10
|
+
var MockPortal = function MockPortal(_ref) {
|
|
11
|
+
var children = _ref.children,
|
|
12
|
+
getContainer = _ref.getContainer;
|
|
13
|
+
React.useEffect(function () {
|
|
14
|
+
getContainer === null || getContainer === void 0 ? void 0 : getContainer();
|
|
15
|
+
});
|
|
16
|
+
return children;
|
|
17
|
+
};
|
|
18
|
+
var _default = (0, _index.generateTrigger)(MockPortal);
|
|
19
|
+
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rc-component/trigger",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "base abstract trigger component for react",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=8.x"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@babel/runtime": "^7.18.3",
|
|
64
64
|
"@rc-component/portal": "^1.1.0",
|
|
65
|
-
"classnames": "^2.2
|
|
65
|
+
"classnames": "^2.3.2",
|
|
66
66
|
"rc-align": "^4.0.0",
|
|
67
67
|
"rc-motion": "^2.0.0",
|
|
68
68
|
"rc-resize-observer": "^1.3.0",
|