@sesionario/blocks 1.22.0 → 1.22.1
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 +5 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1661,11 +1661,11 @@ function TenantAvatar({
|
|
|
1661
1661
|
"div",
|
|
1662
1662
|
{
|
|
1663
1663
|
className: cn(
|
|
1664
|
-
"flex shrink-0 items-center justify-center overflow-hidden rounded-full font-medium",
|
|
1664
|
+
"relative flex shrink-0 items-center justify-center overflow-hidden rounded-full font-medium",
|
|
1665
1665
|
sizeClass
|
|
1666
1666
|
),
|
|
1667
1667
|
style: logo ? void 0 : avatarFallbackStyle(name),
|
|
1668
|
-
children: logo ? /* @__PURE__ */ jsx("img", { src: logo, alt: "", className: "
|
|
1668
|
+
children: logo ? /* @__PURE__ */ jsx("img", { src: logo, alt: "", className: "absolute -inset-px object-cover" }) : /* @__PURE__ */ jsx("span", { className: textClass, children: getInitials(name) })
|
|
1669
1669
|
}
|
|
1670
1670
|
);
|
|
1671
1671
|
}
|
|
@@ -2192,14 +2192,7 @@ function MenuAvatar({
|
|
|
2192
2192
|
"relative flex shrink-0 overflow-hidden rounded-full",
|
|
2193
2193
|
sizeClass
|
|
2194
2194
|
),
|
|
2195
|
-
children: image ? /* @__PURE__ */ jsx(
|
|
2196
|
-
"img",
|
|
2197
|
-
{
|
|
2198
|
-
src: image,
|
|
2199
|
-
alt: "",
|
|
2200
|
-
className: "aspect-square size-full object-cover"
|
|
2201
|
-
}
|
|
2202
|
-
) : /* @__PURE__ */ jsx(
|
|
2195
|
+
children: image ? /* @__PURE__ */ jsx("img", { src: image, alt: "", className: "absolute -inset-px object-cover" }) : /* @__PURE__ */ jsx(
|
|
2203
2196
|
"span",
|
|
2204
2197
|
{
|
|
2205
2198
|
className: "flex size-full items-center justify-center text-xs font-semibold",
|
|
@@ -3411,14 +3404,14 @@ function AvatarEditorDialog({
|
|
|
3411
3404
|
/* @__PURE__ */ jsx(
|
|
3412
3405
|
"div",
|
|
3413
3406
|
{
|
|
3414
|
-
className: "w-full h-full rounded-full overflow-hidden bg-muted border-2 border-border flex items-center justify-center",
|
|
3407
|
+
className: "relative w-full h-full rounded-full overflow-hidden bg-muted border-2 border-border flex items-center justify-center",
|
|
3415
3408
|
style: { width: displaySize, height: displaySize },
|
|
3416
3409
|
children: value ? /* @__PURE__ */ jsx(
|
|
3417
3410
|
"img",
|
|
3418
3411
|
{
|
|
3419
3412
|
src: value || "/placeholder.svg",
|
|
3420
3413
|
alt: "Avatar",
|
|
3421
|
-
className: "
|
|
3414
|
+
className: "absolute -inset-px object-cover"
|
|
3422
3415
|
}
|
|
3423
3416
|
) : /* @__PURE__ */ jsxs(
|
|
3424
3417
|
"div",
|