react-better-html 1.1.90 → 1.1.91
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/README.md +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2464,8 +2464,22 @@ var Image = forwardRef4(function Image2({ name, src, ...props }, ref) {
|
|
|
2464
2464
|
}
|
|
2465
2465
|
);
|
|
2466
2466
|
});
|
|
2467
|
-
Image.profileImage = forwardRef4(function ProfileImage({ size = 40, ...props }, ref) {
|
|
2468
|
-
|
|
2467
|
+
Image.profileImage = forwardRef4(function ProfileImage({ size = 40, letters, backgroundColor, ...props }, ref) {
|
|
2468
|
+
const theme2 = useTheme();
|
|
2469
|
+
return letters ? /* @__PURE__ */ jsx6(
|
|
2470
|
+
Div_default.row,
|
|
2471
|
+
{
|
|
2472
|
+
width: size,
|
|
2473
|
+
height: size,
|
|
2474
|
+
backgroundColor: backgroundColor ?? theme2.colors.backgroundSecondary,
|
|
2475
|
+
borderRadius: 999,
|
|
2476
|
+
alignItems: "center",
|
|
2477
|
+
justifyContent: "center",
|
|
2478
|
+
ref,
|
|
2479
|
+
...props,
|
|
2480
|
+
children: /* @__PURE__ */ jsx6(Text_default, { fontWeight: 700, children: letters.toUpperCase().slice(0, 2) })
|
|
2481
|
+
}
|
|
2482
|
+
) : /* @__PURE__ */ jsx6(Image, { width: size, height: size, borderRadius: 999, objectFit: "cover", ref, ...props });
|
|
2469
2483
|
});
|
|
2470
2484
|
var MemoizedImage = memo6(Image);
|
|
2471
2485
|
MemoizedImage.profileImage = Image.profileImage;
|