@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.cjs
CHANGED
|
@@ -3511,6 +3511,7 @@ function ThemeSwitcher({
|
|
|
3511
3511
|
"data-testid": "theme-switcher",
|
|
3512
3512
|
variant: "ghost",
|
|
3513
3513
|
size: "icon",
|
|
3514
|
+
"aria-label": labels.theme,
|
|
3514
3515
|
className: cn(sizes.buttonMini, shapeClass, className),
|
|
3515
3516
|
children: /* @__PURE__ */ jsxRuntime.jsx(CurrentIcon, { className: sizes.iconMini })
|
|
3516
3517
|
}
|
|
@@ -3661,6 +3662,7 @@ function LanguageSwitcher({
|
|
|
3661
3662
|
{
|
|
3662
3663
|
variant: "ghost",
|
|
3663
3664
|
size: "icon",
|
|
3665
|
+
"aria-label": defaultLabels2.language,
|
|
3664
3666
|
className: cn(sizes.buttonMini, shapeClass, className),
|
|
3665
3667
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Languages, { className: sizes.iconMini })
|
|
3666
3668
|
}
|
|
@@ -4619,6 +4621,7 @@ function AvatarEditorDialog({
|
|
|
4619
4621
|
const [isSaving, setIsSaving] = React2.useState(false);
|
|
4620
4622
|
const [feedback, setFeedback] = React2.useState(null);
|
|
4621
4623
|
const isMobile = useMediaQuery("(max-width: 640px)");
|
|
4624
|
+
const caption = (placeholder ?? "").trim();
|
|
4622
4625
|
const handleOpenChange = React2.useCallback(
|
|
4623
4626
|
(open) => {
|
|
4624
4627
|
if (open) {
|
|
@@ -4678,10 +4681,25 @@ function AvatarEditorDialog({
|
|
|
4678
4681
|
alt: "Avatar",
|
|
4679
4682
|
className: "w-full h-full object-cover"
|
|
4680
4683
|
}
|
|
4681
|
-
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
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
|
+
)
|
|
4685
4703
|
}
|
|
4686
4704
|
),
|
|
4687
4705
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4778,7 +4796,7 @@ function AvatarEditorDialog({
|
|
|
4778
4796
|
/* @__PURE__ */ jsxRuntime.jsx(Dialog, { open: isOpen, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, { className: "sm:max-w-md", children: [
|
|
4779
4797
|
/* @__PURE__ */ jsxRuntime.jsx(DialogHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { children: dialogTitle }) }),
|
|
4780
4798
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-4", children: EditorContent }),
|
|
4781
|
-
/* @__PURE__ */ jsxRuntime.jsx(DialogFooter, { className: "
|
|
4799
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogFooter, { className: "sm:gap-3", children: FooterButtons })
|
|
4782
4800
|
] }) })
|
|
4783
4801
|
] });
|
|
4784
4802
|
}
|