@xiping/react-components 0.0.60 → 0.0.62
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("@nextui-org/modal"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("@nextui-org/modal"),o=require("react-icons/io5"),r=require("../pinch-content/PinchContent.js"),i=t=>{const{isOpen:n,onClose:s,imgSrc:a}=t;return e.jsx(l.Modal,{isOpen:n,size:"full",onClose:s,className:"pppp bg-black bg-opacity-70",hideCloseButton:!0,children:e.jsx(l.ModalContent,{className:"overflow-hidden",children:e.jsxs("div",{className:"w-screen h-screen relative",children:[e.jsx(o.IoCloseSharp,{size:24,className:"absolute top-2 right-2 text-white z-10",onClick:s}),e.jsx("div",{className:"w-full h-full",children:e.jsx(r.default,{canRotate:!1,children:e.jsx("img",{draggable:"false",src:a,alt:"",className:"w-screen h-screen object-contain pointer-events-none"})})})]})})})};exports.default=i;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { Modal as
|
|
1
|
+
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { Modal as r, ModalContent as n } from "@nextui-org/modal";
|
|
3
3
|
import { IoCloseSharp as i } from "react-icons/io5";
|
|
4
4
|
import c from "../pinch-content/PinchContent.js";
|
|
5
5
|
const f = (l) => {
|
|
6
|
-
const { isOpen: o, onClose: s, imgSrc:
|
|
6
|
+
const { isOpen: o, onClose: s, imgSrc: t } = l;
|
|
7
7
|
return /* @__PURE__ */ e(
|
|
8
|
-
|
|
8
|
+
r,
|
|
9
9
|
{
|
|
10
10
|
isOpen: o,
|
|
11
11
|
size: "full",
|
|
12
12
|
onClose: s,
|
|
13
13
|
className: "pppp bg-black bg-opacity-70",
|
|
14
14
|
hideCloseButton: !0,
|
|
15
|
-
children: /* @__PURE__ */ e(
|
|
15
|
+
children: /* @__PURE__ */ e(n, { className: "overflow-hidden", children: /* @__PURE__ */ a("div", { className: "w-screen h-screen relative", children: [
|
|
16
16
|
/* @__PURE__ */ e(
|
|
17
17
|
i,
|
|
18
18
|
{
|
|
19
19
|
size: 24,
|
|
20
|
-
className: "absolute top-2 right-2 text-white",
|
|
20
|
+
className: "absolute top-2 right-2 text-white z-10",
|
|
21
21
|
onClick: s
|
|
22
22
|
}
|
|
23
23
|
),
|
|
24
|
-
/* @__PURE__ */ e("div", { className: "w-full h-full", children: /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(
|
|
24
|
+
/* @__PURE__ */ e("div", { className: "w-full h-full", children: /* @__PURE__ */ e(c, { canRotate: !1, children: /* @__PURE__ */ e(
|
|
25
25
|
"img",
|
|
26
26
|
{
|
|
27
27
|
draggable: "false",
|
|
28
|
-
src:
|
|
28
|
+
src: t,
|
|
29
29
|
alt: "",
|
|
30
30
|
className: "w-screen h-screen object-contain pointer-events-none"
|
|
31
31
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xiping/react-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.62",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
7
7
|
"module": "./dist/es/index.js",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"engines": {
|
|
96
96
|
"node": ">=18"
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "b46b188540e750a471f71e411e1865123980a74e"
|
|
99
99
|
}
|