@camstack/ui-library 1.1.8 → 1.1.9

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/dist/index.cjs CHANGED
@@ -21474,15 +21474,15 @@ function ImageDetailModal({ url, alt, open, onOpenChange }) {
21474
21474
  ]
21475
21475
  })]
21476
21476
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
21477
- className: "flex max-h-[75vh] items-center justify-center overflow-auto rounded border border-border bg-gradient-to-b from-surface-hover to-surface p-6",
21477
+ className: "max-h-[78vh] overflow-auto rounded border border-border bg-gradient-to-b from-surface-hover to-surface p-6",
21478
21478
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
21479
21479
  src: url,
21480
21480
  alt,
21481
21481
  style: {
21482
- transform: `scale(${scale})`,
21483
- transformOrigin: "center"
21482
+ width: `${scale * 100}%`,
21483
+ maxWidth: "none"
21484
21484
  },
21485
- className: "max-h-[65vh] w-auto object-contain transition-transform duration-150"
21485
+ className: "mx-auto block h-auto transition-[width] duration-150"
21486
21486
  })
21487
21487
  })]
21488
21488
  })
package/dist/index.js CHANGED
@@ -21450,15 +21450,15 @@ function ImageDetailModal({ url, alt, open, onOpenChange }) {
21450
21450
  ]
21451
21451
  })]
21452
21452
  }), /* @__PURE__ */ jsx("div", {
21453
- className: "flex max-h-[75vh] items-center justify-center overflow-auto rounded border border-border bg-gradient-to-b from-surface-hover to-surface p-6",
21453
+ className: "max-h-[78vh] overflow-auto rounded border border-border bg-gradient-to-b from-surface-hover to-surface p-6",
21454
21454
  children: /* @__PURE__ */ jsx("img", {
21455
21455
  src: url,
21456
21456
  alt,
21457
21457
  style: {
21458
- transform: `scale(${scale})`,
21459
- transformOrigin: "center"
21458
+ width: `${scale * 100}%`,
21459
+ maxWidth: "none"
21460
21460
  },
21461
- className: "max-h-[65vh] w-auto object-contain transition-transform duration-150"
21461
+ className: "mx-auto block h-auto transition-[width] duration-150"
21462
21462
  })
21463
21463
  })]
21464
21464
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/ui-library",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",