@algenium/blocks 1.1.1 → 1.1.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.cjs +21 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4593,6 +4593,7 @@ function AvatarEditorDialog({
|
|
|
4593
4593
|
const [isSaving, setIsSaving] = useState(false);
|
|
4594
4594
|
const [feedback, setFeedback] = useState(null);
|
|
4595
4595
|
const isMobile = useMediaQuery("(max-width: 640px)");
|
|
4596
|
+
const caption = (placeholder ?? "").trim();
|
|
4596
4597
|
const handleOpenChange = useCallback(
|
|
4597
4598
|
(open) => {
|
|
4598
4599
|
if (open) {
|
|
@@ -4652,10 +4653,25 @@ function AvatarEditorDialog({
|
|
|
4652
4653
|
alt: "Avatar",
|
|
4653
4654
|
className: "w-full h-full object-cover"
|
|
4654
4655
|
}
|
|
4655
|
-
) : /* @__PURE__ */ jsxs(
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4656
|
+
) : /* @__PURE__ */ jsxs(
|
|
4657
|
+
"div",
|
|
4658
|
+
{
|
|
4659
|
+
className: cn(
|
|
4660
|
+
"flex flex-col items-center justify-center text-muted-foreground",
|
|
4661
|
+
caption ? "gap-1" : "gap-0"
|
|
4662
|
+
),
|
|
4663
|
+
children: [
|
|
4664
|
+
/* @__PURE__ */ jsx(
|
|
4665
|
+
User,
|
|
4666
|
+
{
|
|
4667
|
+
className: "h-1/2 w-1/2 max-h-[55%] max-w-[55%] shrink-0",
|
|
4668
|
+
"aria-hidden": true
|
|
4669
|
+
}
|
|
4670
|
+
),
|
|
4671
|
+
caption ? /* @__PURE__ */ jsx("span", { className: "text-xs text-center px-1", children: caption }) : null
|
|
4672
|
+
]
|
|
4673
|
+
}
|
|
4674
|
+
)
|
|
4659
4675
|
}
|
|
4660
4676
|
),
|
|
4661
4677
|
/* @__PURE__ */ jsx(
|
|
@@ -4752,7 +4768,7 @@ function AvatarEditorDialog({
|
|
|
4752
4768
|
/* @__PURE__ */ jsx(Dialog, { open: isOpen, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { className: "sm:max-w-md", children: [
|
|
4753
4769
|
/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: dialogTitle }) }),
|
|
4754
4770
|
/* @__PURE__ */ jsx("div", { className: "flex justify-center py-4", children: EditorContent }),
|
|
4755
|
-
/* @__PURE__ */ jsx(DialogFooter, { className: "
|
|
4771
|
+
/* @__PURE__ */ jsx(DialogFooter, { className: "sm:gap-3", children: FooterButtons })
|
|
4756
4772
|
] }) })
|
|
4757
4773
|
] });
|
|
4758
4774
|
}
|