@algenium/blocks 1.1.0 → 1.1.2-rc.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 +23 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +23 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3483,6 +3483,7 @@ function ThemeSwitcher({
|
|
|
3483
3483
|
"data-testid": "theme-switcher",
|
|
3484
3484
|
variant: "ghost",
|
|
3485
3485
|
size: "icon",
|
|
3486
|
+
"aria-label": labels.theme,
|
|
3486
3487
|
className: cn(sizes.buttonMini, shapeClass, className),
|
|
3487
3488
|
children: /* @__PURE__ */ jsx(CurrentIcon, { className: sizes.iconMini })
|
|
3488
3489
|
}
|
|
@@ -3633,6 +3634,7 @@ function LanguageSwitcher({
|
|
|
3633
3634
|
{
|
|
3634
3635
|
variant: "ghost",
|
|
3635
3636
|
size: "icon",
|
|
3637
|
+
"aria-label": defaultLabels2.language,
|
|
3636
3638
|
className: cn(sizes.buttonMini, shapeClass, className),
|
|
3637
3639
|
children: /* @__PURE__ */ jsx(Languages, { className: sizes.iconMini })
|
|
3638
3640
|
}
|
|
@@ -4591,6 +4593,7 @@ function AvatarEditorDialog({
|
|
|
4591
4593
|
const [isSaving, setIsSaving] = useState(false);
|
|
4592
4594
|
const [feedback, setFeedback] = useState(null);
|
|
4593
4595
|
const isMobile = useMediaQuery("(max-width: 640px)");
|
|
4596
|
+
const caption = (placeholder ?? "").trim();
|
|
4594
4597
|
const handleOpenChange = useCallback(
|
|
4595
4598
|
(open) => {
|
|
4596
4599
|
if (open) {
|
|
@@ -4650,10 +4653,25 @@ function AvatarEditorDialog({
|
|
|
4650
4653
|
alt: "Avatar",
|
|
4651
4654
|
className: "w-full h-full object-cover"
|
|
4652
4655
|
}
|
|
4653
|
-
) : /* @__PURE__ */ jsxs(
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
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
|
+
)
|
|
4657
4675
|
}
|
|
4658
4676
|
),
|
|
4659
4677
|
/* @__PURE__ */ jsx(
|
|
@@ -4750,7 +4768,7 @@ function AvatarEditorDialog({
|
|
|
4750
4768
|
/* @__PURE__ */ jsx(Dialog, { open: isOpen, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { className: "sm:max-w-md", children: [
|
|
4751
4769
|
/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: dialogTitle }) }),
|
|
4752
4770
|
/* @__PURE__ */ jsx("div", { className: "flex justify-center py-4", children: EditorContent }),
|
|
4753
|
-
/* @__PURE__ */ jsx(DialogFooter, { className: "
|
|
4771
|
+
/* @__PURE__ */ jsx(DialogFooter, { className: "sm:gap-3", children: FooterButtons })
|
|
4754
4772
|
] }) })
|
|
4755
4773
|
] });
|
|
4756
4774
|
}
|