@pinnacle0/web-ui 0.5.65 → 0.5.66
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/core/Popover/index.d.ts +1 -4
- package/core/Popover/index.js +6 -29
- package/core/Popover/index.js.map +1 -1
- package/core/Tooltip.js +1 -2
- package/core/Tooltip.js.map +1 -1
- package/package.json +1 -1
package/core/Popover/index.d.ts
CHANGED
|
@@ -3,7 +3,4 @@ import React from "react";
|
|
|
3
3
|
import "./index.less";
|
|
4
4
|
export interface Props extends PopoverProps {
|
|
5
5
|
}
|
|
6
|
-
export declare
|
|
7
|
-
static displayName: string;
|
|
8
|
-
render(): React.JSX.Element;
|
|
9
|
-
}
|
|
6
|
+
export declare const Popover: (props: PopoverProps) => React.JSX.Element;
|
package/core/Popover/index.js
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
1
|
var __assign = (this && this.__assign) || function () {
|
|
17
2
|
__assign = Object.assign || function(t) {
|
|
18
3
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -38,18 +23,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
38
23
|
import AntPopover from "antd/es/popover";
|
|
39
24
|
import React from "react";
|
|
40
25
|
import "./index.less";
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
var _a = this.props, children = _a.children, restProps = __rest(_a, ["children"]);
|
|
48
|
-
return (React.createElement(AntPopover, __assign({}, restProps),
|
|
49
|
-
React.createElement("div", null, children)));
|
|
50
|
-
};
|
|
51
|
-
Popover.displayName = "Popover";
|
|
52
|
-
return Popover;
|
|
53
|
-
}(React.PureComponent));
|
|
54
|
-
export { Popover };
|
|
26
|
+
import { ReactUtil } from "../../util/ReactUtil";
|
|
27
|
+
export var Popover = ReactUtil.memo("Popover", function (props) {
|
|
28
|
+
var children = props.children, restProps = __rest(props, ["children"]);
|
|
29
|
+
return (React.createElement(AntPopover, __assign({}, restProps),
|
|
30
|
+
React.createElement(React.Fragment, null, children)));
|
|
31
|
+
});
|
|
55
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/Popover/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/Popover/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,CAAC;AACtB,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAI/C,MAAM,CAAC,IAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,UAAC,KAAmB;IAC1D,IAAA,QAAQ,GAAkB,KAAK,SAAvB,EAAK,SAAS,UAAI,KAAK,EAAhC,YAAwB,CAAD,CAAU;IACvC,OAAO,CACH,oBAAC,UAAU,eAAK,SAAS;QACrB,oBAAC,KAAK,CAAC,QAAQ,QAAE,QAAQ,CAAkB,CAClC,CAChB,CAAC;AACN,CAAC,CAAC,CAAC"}
|
package/core/Tooltip.js
CHANGED
|
@@ -25,7 +25,6 @@ import React from "react";
|
|
|
25
25
|
import { ReactUtil } from "../util/ReactUtil";
|
|
26
26
|
export var Tooltip = ReactUtil.memo("Tooltip", function (props) {
|
|
27
27
|
var children = props.children, restProps = __rest(props, ["children"]);
|
|
28
|
-
return
|
|
29
|
-
React.createElement("div", null, children)));
|
|
28
|
+
return React.createElement(AntTooltip, __assign({}, restProps), children);
|
|
30
29
|
});
|
|
31
30
|
//# sourceMappingURL=Tooltip.js.map
|
package/core/Tooltip.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../src/core/Tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAK5C,MAAM,CAAC,IAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,UAAC,KAAmB;IAC1D,IAAA,QAAQ,GAAkB,KAAK,SAAvB,EAAK,SAAS,UAAI,KAAK,EAAhC,YAAwB,CAAD,CAAU;IACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../src/core/Tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAK5C,MAAM,CAAC,IAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,UAAC,KAAmB;IAC1D,IAAA,QAAQ,GAAkB,KAAK,SAAvB,EAAK,SAAS,UAAI,KAAK,EAAhC,YAAwB,CAAD,CAAU;IACvC,OAAO,oBAAC,UAAU,eAAK,SAAS,GAAG,QAAQ,CAAc,CAAC;AAC9D,CAAC,CAAC,CAAC"}
|