@moontra/moonui 2.3.6 → 2.3.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.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/badge.tsx +14 -2
- package/src/components/ui/pro-component-wrapper.tsx +0 -261
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(
|
|
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: [
|