@xiping/react-components 0.0.58 → 0.0.59

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"),n=require("../../node_modules/.pnpm/react-icons@5.4.0_react@18.3.1/node_modules/react-icons/io5/index.js"),r=require("../pinch-content/PinchContent.js"),i=s=>{const{isOpen:o,onClose:t,imgSrc:a}=s;return e.jsx(l.Modal,{isOpen:o,size:"full",onClose:t,className:"pppp bg-black bg-opacity-70",hideCloseButton:!0,children:e.jsxs(l.ModalContent,{children:[e.jsx(l.ModalHeader,{className:"flex flex-col gap-1 relative",children:e.jsx(n.IoCloseSharp,{className:"absolute top-2 right-2 text-white",onClick:t})}),e.jsx(l.ModalBody,{className:"flex items-center justify-center",children:e.jsx(r.default,{children:e.jsx("img",{draggable:"false",src:a,alt:"",className:"w-full h-full object-contain pointer-events-none"})})}),e.jsx(l.ModalFooter,{})]})})};exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("@nextui-org/modal"),i=require("../../node_modules/.pnpm/react-icons@5.4.0_react@18.3.1/node_modules/react-icons/io5/index.js"),o=require("../pinch-content/PinchContent.js"),a=t=>{const{isOpen:n,onClose:s,imgSrc:r}=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(i.IoCloseSharp,{size:24,className:"absolute top-2 right-2 text-white",onClick:s}),e.jsx("div",{className:"w-full h-full",children:e.jsx(o.default,{children:e.jsx("img",{draggable:"false",src:r,alt:"",className:"w-screen h-screen object-contain pointer-events-none"})})})]})})})};exports.default=a;
@@ -1,39 +1,39 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
- import { Modal as s, ModalContent as i, ModalHeader as n, ModalBody as c, ModalFooter as m } from "@nextui-org/modal";
3
- import { IoCloseSharp as d } from "../../node_modules/.pnpm/react-icons@5.4.0_react@18.3.1/node_modules/react-icons/io5/index.js";
4
- import p from "../pinch-content/PinchContent.js";
5
- const x = (o) => {
6
- const { isOpen: t, onClose: l, imgSrc: a } = o;
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ import { Modal as n, ModalContent as a } from "@nextui-org/modal";
3
+ import { IoCloseSharp as i } from "../../node_modules/.pnpm/react-icons@5.4.0_react@18.3.1/node_modules/react-icons/io5/index.js";
4
+ import c from "../pinch-content/PinchContent.js";
5
+ const f = (l) => {
6
+ const { isOpen: o, onClose: s, imgSrc: r } = l;
7
7
  return /* @__PURE__ */ e(
8
- s,
8
+ n,
9
9
  {
10
- isOpen: t,
10
+ isOpen: o,
11
11
  size: "full",
12
- onClose: l,
12
+ onClose: s,
13
13
  className: "pppp bg-black bg-opacity-70",
14
14
  hideCloseButton: !0,
15
- children: /* @__PURE__ */ r(i, { children: [
16
- /* @__PURE__ */ e(n, { className: "flex flex-col gap-1 relative", children: /* @__PURE__ */ e(
17
- d,
15
+ children: /* @__PURE__ */ e(a, { className: "overflow-hidden", children: /* @__PURE__ */ t("div", { className: "w-screen h-screen relative", children: [
16
+ /* @__PURE__ */ e(
17
+ i,
18
18
  {
19
+ size: 24,
19
20
  className: "absolute top-2 right-2 text-white",
20
- onClick: l
21
+ onClick: s
21
22
  }
22
- ) }),
23
- /* @__PURE__ */ e(c, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
23
+ ),
24
+ /* @__PURE__ */ e("div", { className: "w-full h-full", children: /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(
24
25
  "img",
25
26
  {
26
27
  draggable: "false",
27
- src: a,
28
+ src: r,
28
29
  alt: "",
29
- className: "w-full h-full object-contain pointer-events-none"
30
+ className: "w-screen h-screen object-contain pointer-events-none"
30
31
  }
31
- ) }) }),
32
- /* @__PURE__ */ e(m, {})
33
- ] })
32
+ ) }) })
33
+ ] }) })
34
34
  }
35
35
  );
36
36
  };
37
37
  export {
38
- x as default
38
+ f as default
39
39
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xiping/react-components",
3
3
  "private": false,
4
- "version": "0.0.58",
4
+ "version": "0.0.59",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",
7
7
  "module": "./dist/es/index.js",
@@ -92,5 +92,5 @@
92
92
  "engines": {
93
93
  "node": ">=18"
94
94
  },
95
- "gitHead": "5d4fcc7f2960d710343eee37f62637a50970f572"
95
+ "gitHead": "14e52525afacb2cac4e9d271a3b2e82e1b78590b"
96
96
  }