@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.cjs +13 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3431,21 +3431,21 @@ var defaultLabels = {
|
|
|
3431
3431
|
};
|
|
3432
3432
|
var sizeClasses = {
|
|
3433
3433
|
sm: {
|
|
3434
|
-
container: "h-7 p-0.5",
|
|
3434
|
+
container: "h-7 p-0.5 gap-0.5",
|
|
3435
3435
|
button: "h-6 w-6",
|
|
3436
3436
|
buttonMini: "h-7 w-7",
|
|
3437
3437
|
icon: "h-3.5 w-3.5",
|
|
3438
3438
|
iconMini: "h-3.5 w-3.5"
|
|
3439
3439
|
},
|
|
3440
3440
|
md: {
|
|
3441
|
-
container: "h-8 p-1",
|
|
3441
|
+
container: "h-8 p-1 gap-0.5",
|
|
3442
3442
|
button: "h-6 w-6",
|
|
3443
3443
|
buttonMini: "h-8 w-8",
|
|
3444
3444
|
icon: "h-4 w-4",
|
|
3445
3445
|
iconMini: "h-4 w-4"
|
|
3446
3446
|
},
|
|
3447
3447
|
lg: {
|
|
3448
|
-
container: "h-9 p-1",
|
|
3448
|
+
container: "h-9 p-1 gap-1",
|
|
3449
3449
|
button: "h-7 w-7",
|
|
3450
3450
|
buttonMini: "h-9 w-9",
|
|
3451
3451
|
icon: "h-4 w-4",
|
|
@@ -3545,11 +3545,7 @@ function ThemeSwitcher({
|
|
|
3545
3545
|
"button",
|
|
3546
3546
|
{
|
|
3547
3547
|
"aria-label": labels[key],
|
|
3548
|
-
className: cn(
|
|
3549
|
-
"relative flex items-center justify-center",
|
|
3550
|
-
sizes.button,
|
|
3551
|
-
shapeClass
|
|
3552
|
-
),
|
|
3548
|
+
className: cn("relative", sizes.button, shapeClass),
|
|
3553
3549
|
onClick: () => handleThemeClick(key),
|
|
3554
3550
|
type: "button",
|
|
3555
3551
|
children: [
|
|
@@ -3568,7 +3564,7 @@ function ThemeSwitcher({
|
|
|
3568
3564
|
Icon,
|
|
3569
3565
|
{
|
|
3570
3566
|
className: cn(
|
|
3571
|
-
"relative z-10",
|
|
3567
|
+
"relative z-10 m-auto",
|
|
3572
3568
|
sizes.icon,
|
|
3573
3569
|
isActive ? "text-foreground" : "text-muted-foreground"
|
|
3574
3570
|
)
|
|
@@ -3588,22 +3584,22 @@ var defaultLanguages = [
|
|
|
3588
3584
|
];
|
|
3589
3585
|
var sizeClasses2 = {
|
|
3590
3586
|
sm: {
|
|
3591
|
-
container: "h-7 p-0.5 text-xs",
|
|
3592
|
-
button: "h-6 px-
|
|
3587
|
+
container: "h-7 p-0.5 text-xs gap-0.5",
|
|
3588
|
+
button: "h-6 px-1.5",
|
|
3593
3589
|
buttonMini: "h-7 w-7",
|
|
3594
3590
|
icon: "size-3",
|
|
3595
3591
|
iconMini: "size-3.5"
|
|
3596
3592
|
},
|
|
3597
3593
|
md: {
|
|
3598
|
-
container: "h-8 p-0.5 text-xs",
|
|
3599
|
-
button: "h-7 px-2
|
|
3594
|
+
container: "h-8 p-0.5 text-xs gap-0.5",
|
|
3595
|
+
button: "h-7 px-2",
|
|
3600
3596
|
buttonMini: "h-8 w-8",
|
|
3601
3597
|
icon: "size-3.5",
|
|
3602
3598
|
iconMini: "size-4"
|
|
3603
3599
|
},
|
|
3604
3600
|
lg: {
|
|
3605
|
-
container: "h-9 p-0.5 text-sm",
|
|
3606
|
-
button: "h-8 px-
|
|
3601
|
+
container: "h-9 p-0.5 text-sm gap-1",
|
|
3602
|
+
button: "h-8 px-2.5",
|
|
3607
3603
|
buttonMini: "h-9 w-9",
|
|
3608
3604
|
icon: "size-4",
|
|
3609
3605
|
iconMini: "size-4.5"
|
|
@@ -3623,7 +3619,7 @@ function LanguageSwitcher({
|
|
|
3623
3619
|
size = "sm",
|
|
3624
3620
|
shape = "rounded",
|
|
3625
3621
|
variant = "default",
|
|
3626
|
-
showIcon =
|
|
3622
|
+
showIcon = true,
|
|
3627
3623
|
align = "center",
|
|
3628
3624
|
side = "top"
|
|
3629
3625
|
}) {
|
|
@@ -3691,7 +3687,7 @@ function LanguageSwitcher({
|
|
|
3691
3687
|
showIcon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3692
3688
|
lucideReact.Languages,
|
|
3693
3689
|
{
|
|
3694
|
-
className: cn(sizes.icon, "ml-1.5 mr-
|
|
3690
|
+
className: cn(sizes.icon, "ml-1.5 mr-0.5 text-muted-foreground")
|
|
3695
3691
|
}
|
|
3696
3692
|
),
|
|
3697
3693
|
languages.map(({ key, label }) => {
|