@moontra/moonui 2.3.6 → 2.3.8

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
@@ -373,7 +373,9 @@ var badgeVariants = classVarianceAuthority.cva(
373
373
  "inline-flex items-center justify-center gap-1.5",
374
374
  "font-medium transition-colors duration-200",
375
375
  "border focus:outline-none",
376
- "focus-visible:ring-2 focus-visible:ring-offset-1"
376
+ "focus-visible:ring-2 focus-visible:ring-offset-1",
377
+ // Auto spacing between badges
378
+ "mr-2 mb-2 last:mr-0"
377
379
  ],
378
380
  {
379
381
  variants: {
@@ -465,6 +467,7 @@ function Badge({
465
467
  onRemove,
466
468
  leftIcon,
467
469
  rightIcon,
470
+ noAutoSpacing,
468
471
  children,
469
472
  ...props
470
473
  }) {
@@ -485,7 +488,13 @@ function Badge({
485
488
  return /* @__PURE__ */ jsxRuntime.jsxs(
486
489
  "div",
487
490
  {
488
- className: cn("moonui-theme", badgeVariants({ variant, size, radius }), className),
491
+ className: cn(
492
+ "moonui-theme",
493
+ badgeVariants({ variant, size, radius }),
494
+ // Remove auto-spacing if noAutoSpacing is true
495
+ noAutoSpacing && "mr-0 mb-0",
496
+ className
497
+ ),
489
498
  "data-removable": removable ? "" : void 0,
490
499
  ...props,
491
500
  children: [