infinity-ui-elements 1.14.21 → 1.14.22

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
@@ -1270,7 +1270,7 @@ const badgeVariants = classVarianceAuthority.cva("inline-flex items-center white
1270
1270
  size: "medium",
1271
1271
  },
1272
1272
  });
1273
- const Badge = React__namespace.forwardRef(({ className, variant, size, color, showDot = false, children, ...props }, ref) => {
1273
+ const Badge = React__namespace.forwardRef(({ className, variant, size, color, showDot = false, leadingIcon, trailingIcon, children, ...props }, ref) => {
1274
1274
  const getDotColor = () => {
1275
1275
  if (variant === "filled") {
1276
1276
  return "bg-action-ink-on-primary-normal";
@@ -1302,7 +1302,7 @@ const Badge = React__namespace.forwardRef(({ className, variant, size, color, sh
1302
1302
  }
1303
1303
  return "h-3 w-3";
1304
1304
  };
1305
- return (jsxRuntime.jsxs("div", { ref: ref, className: cn(badgeVariants({ variant, size, color }), className), ...props, children: [showDot && (jsxRuntime.jsx("span", { className: cn("rounded-full", getDotColor(), getDotSize()), "aria-hidden": "true" })), children] }));
1305
+ return (jsxRuntime.jsxs("div", { ref: ref, className: cn(badgeVariants({ variant, size, color }), className), ...props, children: [showDot && (jsxRuntime.jsx("span", { className: cn("rounded-full", getDotColor(), getDotSize()), "aria-hidden": "true" })), leadingIcon && jsxRuntime.jsx("span", { className: "inline-flex", children: leadingIcon }), children, trailingIcon && jsxRuntime.jsx("span", { className: "inline-flex", children: trailingIcon })] }));
1306
1306
  });
1307
1307
  Badge.displayName = "Badge";
1308
1308