@algenium/blocks 1.0.1 → 1.1.0

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
@@ -3468,6 +3468,9 @@ function ThemeSwitcher({
3468
3468
  variant = "default",
3469
3469
  align = "center",
3470
3470
  side = "top",
3471
+ tooltipSide = "bottom",
3472
+ tooltipAlign = "center",
3473
+ tooltipSideOffset = 8,
3471
3474
  labels: userLabels
3472
3475
  }) {
3473
3476
  const { theme, setTheme } = nextThemes.useTheme();
@@ -3512,7 +3515,15 @@ function ThemeSwitcher({
3512
3515
  children: /* @__PURE__ */ jsxRuntime.jsx(CurrentIcon, { className: sizes.iconMini })
3513
3516
  }
3514
3517
  ) }) }),
3515
- /* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { side: "right", sideOffset: 8, children: labels.theme })
3518
+ /* @__PURE__ */ jsxRuntime.jsx(
3519
+ TooltipContent,
3520
+ {
3521
+ side: tooltipSide,
3522
+ align: tooltipAlign,
3523
+ sideOffset: tooltipSideOffset,
3524
+ children: labels.theme
3525
+ }
3526
+ )
3516
3527
  ] }),
3517
3528
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuContent, { side, align, sideOffset: 8, children: themes.map(({ key, icon: Icon }) => /* @__PURE__ */ jsxRuntime.jsxs(
3518
3529
  DropdownMenuItem,
@@ -3623,7 +3634,10 @@ function LanguageSwitcher({
3623
3634
  variant = "default",
3624
3635
  showIcon = true,
3625
3636
  align = "center",
3626
- side = "top"
3637
+ side = "top",
3638
+ tooltipSide = "bottom",
3639
+ tooltipAlign = "center",
3640
+ tooltipSideOffset = 8
3627
3641
  }) {
3628
3642
  const context = useLanguageContext();
3629
3643
  const contextLanguages = context?.languages?.map((lang) => ({
@@ -3651,7 +3665,15 @@ function LanguageSwitcher({
3651
3665
  children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Languages, { className: sizes.iconMini })
3652
3666
  }
3653
3667
  ) }) }),
3654
- /* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { side: "right", sideOffset: 8, children: defaultLabels2.language })
3668
+ /* @__PURE__ */ jsxRuntime.jsx(
3669
+ TooltipContent,
3670
+ {
3671
+ side: tooltipSide,
3672
+ align: tooltipAlign,
3673
+ sideOffset: tooltipSideOffset,
3674
+ children: defaultLabels2.language
3675
+ }
3676
+ )
3655
3677
  ] }),
3656
3678
  /* @__PURE__ */ jsxRuntime.jsx(
3657
3679
  DropdownMenuContent,