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