@pinnacle0/web-ui 0.6.2 → 0.6.4
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.
|
@@ -4,8 +4,8 @@ import "./index.less";
|
|
|
4
4
|
export class DarkOverlay extends React.PureComponent {
|
|
5
5
|
static displayName = "DarkOverlay";
|
|
6
6
|
render() {
|
|
7
|
-
const { children, className, style } = this.props;
|
|
8
|
-
return ReactDOM.createPortal(React.createElement("div", { className: `g-dark-overlay ${className || ""}`, style: style }, children), document.body);
|
|
7
|
+
const { children, className, style, onClick } = this.props;
|
|
8
|
+
return ReactDOM.createPortal(React.createElement("div", { className: `g-dark-overlay ${className || ""}`, style: style, onClick: e => e.target === e.currentTarget && onClick?.() }, children), document.body);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/DarkOverlay/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/DarkOverlay/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,cAAc,CAAC;AAStB,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,aAAoB;IACvD,MAAM,CAAC,WAAW,GAAG,aAAa,CAAC;IAEnC,MAAM;QACF,MAAM,EAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QACzD,OAAO,QAAQ,CAAC,YAAY,CACxB,6BAAK,SAAS,EAAE,kBAAkB,SAAS,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,aAAa,IAAI,OAAO,EAAE,EAAE,IACvH,QAAQ,CACP,EACN,QAAQ,CAAC,IAAI,CAChB,CAAC;IACN,CAAC"}
|
package/core/Image.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ImageProps } from "antd/es/image";
|
|
2
|
+
import AntImage from "antd/es/image";
|
|
2
3
|
import React from "react";
|
|
3
4
|
export interface Props extends ImageProps {
|
|
4
5
|
}
|
|
5
6
|
export declare class Image extends React.PureComponent<Props> {
|
|
6
7
|
static displayName: string;
|
|
8
|
+
static PreviewGroup: typeof AntImage.PreviewGroup;
|
|
7
9
|
render(): React.JSX.Element;
|
|
8
10
|
}
|
package/core/Image.js
CHANGED
|
@@ -2,6 +2,7 @@ import AntImage from "antd/es/image";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
export class Image extends React.PureComponent {
|
|
4
4
|
static displayName = "Image";
|
|
5
|
+
static PreviewGroup = AntImage.PreviewGroup;
|
|
5
6
|
render() {
|
|
6
7
|
return React.createElement(AntImage, { ...this.props });
|
|
7
8
|
}
|
package/core/Image.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.js","sourceRoot":"","sources":["../../src/core/Image.tsx"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,OAAO,KAAM,SAAQ,KAAK,CAAC,aAAoB;IACjD,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC;IAE7B,MAAM;QACF,OAAO,oBAAC,QAAQ,OAAK,IAAI,CAAC,KAAK,GAAI,CAAC;IACxC,CAAC"}
|
|
1
|
+
{"version":3,"file":"Image.js","sourceRoot":"","sources":["../../src/core/Image.tsx"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,OAAO,KAAM,SAAQ,KAAK,CAAC,aAAoB;IACjD,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC;IAE7B,MAAM,CAAC,YAAY,GAAiC,QAAQ,CAAC,YAAY,CAAC;IAE1E,MAAM;QACF,OAAO,oBAAC,QAAQ,OAAK,IAAI,CAAC,KAAK,GAAI,CAAC;IACxC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinnacle0/web-ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"author": "Pinnacle",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"react": "18.3.1",
|
|
46
46
|
"react-dom": "18.3.1",
|
|
47
47
|
"react-router-dom": "5.3.0",
|
|
48
|
-
"@pinnacle0/
|
|
49
|
-
"@pinnacle0/
|
|
48
|
+
"@pinnacle0/webpack-util": "0.8.2",
|
|
49
|
+
"@pinnacle0/devtool-util": "1.3.0"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"directory": "build",
|