catchup-library-web 1.9.1 → 1.9.2

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.js CHANGED
@@ -384,7 +384,7 @@ var BaseImage = (0, import_react.forwardRef)(
384
384
  "img",
385
385
  {
386
386
  ref,
387
- className: `w-full ${borderRadius || ""}`,
387
+ className: `w-full h-full object-contain ${borderRadius || ""}`,
388
388
  src,
389
389
  alt,
390
390
  onLoad,
package/dist/index.mjs CHANGED
@@ -185,7 +185,7 @@ var BaseImage = forwardRef(
185
185
  "img",
186
186
  {
187
187
  ref,
188
- className: `w-full ${borderRadius || ""}`,
188
+ className: `w-full h-full object-contain ${borderRadius || ""}`,
189
189
  src,
190
190
  alt,
191
191
  onLoad,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -88,8 +88,8 @@ const BaseImage = forwardRef<HTMLImageElement, IBaseImageProps>(
88
88
  onClick={handleOnClick}
89
89
  >
90
90
  <img
91
- ref={ref} // Now this ref will be properly forwarded
92
- className={`w-full ${borderRadius || ""}`}
91
+ ref={ref}
92
+ className={`w-full h-full object-contain ${borderRadius || ""}`}
93
93
  src={src}
94
94
  alt={alt}
95
95
  onLoad={onLoad}
@@ -104,10 +104,8 @@ const BaseImage = forwardRef<HTMLImageElement, IBaseImageProps>(
104
104
  }
105
105
  );
106
106
 
107
- // Add display name for better debugging
108
107
  BaseImage.displayName = "BaseImage";
109
108
 
110
- // Update your interface to remove the ref prop since it's now handled by forwardRef
111
109
  interface IBaseImageProps {
112
110
  size?:
113
111
  | "xsmall"