@algenium/blocks 1.1.0-rc.1 → 1.1.0-rc.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.cjs
CHANGED
|
@@ -4619,6 +4619,7 @@ function AvatarEditorDialog({
|
|
|
4619
4619
|
const [isSaving, setIsSaving] = React2.useState(false);
|
|
4620
4620
|
const [feedback, setFeedback] = React2.useState(null);
|
|
4621
4621
|
const isMobile = useMediaQuery("(max-width: 640px)");
|
|
4622
|
+
const caption = (placeholder ?? "").trim();
|
|
4622
4623
|
const handleOpenChange = React2.useCallback(
|
|
4623
4624
|
(open) => {
|
|
4624
4625
|
if (open) {
|
|
@@ -4678,10 +4679,25 @@ function AvatarEditorDialog({
|
|
|
4678
4679
|
alt: "Avatar",
|
|
4679
4680
|
className: "w-full h-full object-cover"
|
|
4680
4681
|
}
|
|
4681
|
-
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4682
|
+
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4683
|
+
"div",
|
|
4684
|
+
{
|
|
4685
|
+
className: cn(
|
|
4686
|
+
"flex flex-col items-center justify-center text-muted-foreground",
|
|
4687
|
+
caption ? "gap-1" : "gap-0"
|
|
4688
|
+
),
|
|
4689
|
+
children: [
|
|
4690
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4691
|
+
lucideReact.User,
|
|
4692
|
+
{
|
|
4693
|
+
className: "h-1/2 w-1/2 max-h-[55%] max-w-[55%] shrink-0",
|
|
4694
|
+
"aria-hidden": true
|
|
4695
|
+
}
|
|
4696
|
+
),
|
|
4697
|
+
caption ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-center px-1", children: caption }) : null
|
|
4698
|
+
]
|
|
4699
|
+
}
|
|
4700
|
+
)
|
|
4685
4701
|
}
|
|
4686
4702
|
),
|
|
4687
4703
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4778,7 +4794,7 @@ function AvatarEditorDialog({
|
|
|
4778
4794
|
/* @__PURE__ */ jsxRuntime.jsx(Dialog, { open: isOpen, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, { className: "sm:max-w-md", children: [
|
|
4779
4795
|
/* @__PURE__ */ jsxRuntime.jsx(DialogHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { children: dialogTitle }) }),
|
|
4780
4796
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-4", children: EditorContent }),
|
|
4781
|
-
/* @__PURE__ */ jsxRuntime.jsx(DialogFooter, { className: "
|
|
4797
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogFooter, { className: "sm:gap-3", children: FooterButtons })
|
|
4782
4798
|
] }) })
|
|
4783
4799
|
] });
|
|
4784
4800
|
}
|