@janovix/blocks 1.2.0-rc.16 → 1.2.0-rc.18

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.js CHANGED
@@ -3403,21 +3403,21 @@ var defaultLabels = {
3403
3403
  };
3404
3404
  var sizeClasses = {
3405
3405
  sm: {
3406
- container: "h-7 p-0.5",
3406
+ container: "h-7 p-0.5 gap-0.5",
3407
3407
  button: "h-6 w-6",
3408
3408
  buttonMini: "h-7 w-7",
3409
3409
  icon: "h-3.5 w-3.5",
3410
3410
  iconMini: "h-3.5 w-3.5"
3411
3411
  },
3412
3412
  md: {
3413
- container: "h-8 p-1",
3413
+ container: "h-8 p-1 gap-0.5",
3414
3414
  button: "h-6 w-6",
3415
3415
  buttonMini: "h-8 w-8",
3416
3416
  icon: "h-4 w-4",
3417
3417
  iconMini: "h-4 w-4"
3418
3418
  },
3419
3419
  lg: {
3420
- container: "h-9 p-1",
3420
+ container: "h-9 p-1 gap-1",
3421
3421
  button: "h-7 w-7",
3422
3422
  buttonMini: "h-9 w-9",
3423
3423
  icon: "h-4 w-4",
@@ -3517,11 +3517,7 @@ function ThemeSwitcher({
3517
3517
  "button",
3518
3518
  {
3519
3519
  "aria-label": labels[key],
3520
- className: cn(
3521
- "relative flex items-center justify-center",
3522
- sizes.button,
3523
- shapeClass
3524
- ),
3520
+ className: cn("relative", sizes.button, shapeClass),
3525
3521
  onClick: () => handleThemeClick(key),
3526
3522
  type: "button",
3527
3523
  children: [
@@ -3540,7 +3536,7 @@ function ThemeSwitcher({
3540
3536
  Icon,
3541
3537
  {
3542
3538
  className: cn(
3543
- "relative z-10",
3539
+ "relative z-10 m-auto",
3544
3540
  sizes.icon,
3545
3541
  isActive ? "text-foreground" : "text-muted-foreground"
3546
3542
  )
@@ -3560,22 +3556,22 @@ var defaultLanguages = [
3560
3556
  ];
3561
3557
  var sizeClasses2 = {
3562
3558
  sm: {
3563
- container: "h-7 p-0.5 text-xs",
3564
- button: "h-6 px-2",
3559
+ container: "h-7 p-0.5 text-xs gap-0.5",
3560
+ button: "h-6 px-1.5",
3565
3561
  buttonMini: "h-7 w-7",
3566
3562
  icon: "size-3",
3567
3563
  iconMini: "size-3.5"
3568
3564
  },
3569
3565
  md: {
3570
- container: "h-8 p-0.5 text-xs",
3571
- button: "h-7 px-2.5",
3566
+ container: "h-8 p-0.5 text-xs gap-0.5",
3567
+ button: "h-7 px-2",
3572
3568
  buttonMini: "h-8 w-8",
3573
3569
  icon: "size-3.5",
3574
3570
  iconMini: "size-4"
3575
3571
  },
3576
3572
  lg: {
3577
- container: "h-9 p-0.5 text-sm",
3578
- button: "h-8 px-3",
3573
+ container: "h-9 p-0.5 text-sm gap-1",
3574
+ button: "h-8 px-2.5",
3579
3575
  buttonMini: "h-9 w-9",
3580
3576
  icon: "size-4",
3581
3577
  iconMini: "size-4.5"
@@ -3595,7 +3591,7 @@ function LanguageSwitcher({
3595
3591
  size = "sm",
3596
3592
  shape = "rounded",
3597
3593
  variant = "default",
3598
- showIcon = false,
3594
+ showIcon = true,
3599
3595
  align = "center",
3600
3596
  side = "top"
3601
3597
  }) {
@@ -3663,7 +3659,7 @@ function LanguageSwitcher({
3663
3659
  showIcon && /* @__PURE__ */ jsx(
3664
3660
  Languages,
3665
3661
  {
3666
- className: cn(sizes.icon, "ml-1.5 mr-1.5 text-muted-foreground")
3662
+ className: cn(sizes.icon, "ml-1.5 mr-0.5 text-muted-foreground")
3667
3663
  }
3668
3664
  ),
3669
3665
  languages.map(({ key, label }) => {