@moontra/moonui-pro 2.27.7 → 2.27.9

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.mjs CHANGED
@@ -2717,7 +2717,9 @@ var moonUIBadgeVariantsPro = cva(
2717
2717
  "inline-flex items-center gap-1.5",
2718
2718
  "font-medium transition-colors duration-200",
2719
2719
  "border focus:outline-none",
2720
- "focus-visible:ring-2 focus-visible:ring-offset-1"
2720
+ "focus-visible:ring-2 focus-visible:ring-offset-1",
2721
+ // Auto spacing between badges
2722
+ "mr-2 mb-2 last:mr-0"
2721
2723
  ],
2722
2724
  {
2723
2725
  variants: {
@@ -2809,6 +2811,7 @@ function MoonUIBadgePro({
2809
2811
  onRemove,
2810
2812
  leftIcon,
2811
2813
  rightIcon,
2814
+ noAutoSpacing,
2812
2815
  children,
2813
2816
  ...props
2814
2817
  }) {
@@ -2829,7 +2832,12 @@ function MoonUIBadgePro({
2829
2832
  return /* @__PURE__ */ jsxs(
2830
2833
  "div",
2831
2834
  {
2832
- className: cn(moonUIBadgeVariantsPro({ variant, size: size4, radius }), className),
2835
+ className: cn(
2836
+ moonUIBadgeVariantsPro({ variant, size: size4, radius }),
2837
+ // Remove auto-spacing if noAutoSpacing is true
2838
+ noAutoSpacing && "mr-0 mb-0",
2839
+ className
2840
+ ),
2833
2841
  "data-removable": removable ? "" : void 0,
2834
2842
  ...props,
2835
2843
  children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.27.7",
3
+ "version": "2.27.9",
4
4
  "description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -82,7 +82,7 @@
82
82
  },
83
83
  "dependencies": {
84
84
  "@moontra/moonui": "^2.3.6",
85
- "@moontra/moonui-pro": "^2.27.4",
85
+ "@moontra/moonui-pro": "^2.27.7",
86
86
  "@radix-ui/react-accordion": "^1.2.11",
87
87
  "@radix-ui/react-avatar": "^1.1.10",
88
88
  "@radix-ui/react-checkbox": "^1.3.2",