FactuGES_ERP/packages/rdx-ui/src/components/rdx-badge.tsx
David d92ab05f35 feat: refactor badge component and update related usages
- Replaced instances of Badge with RdxBadge in SupplierStatusBadge, DataTableFacetedFilter, MultiSelectField, and other components.
- Updated RdxEditorPageLayout to use width prop instead of complexity.
- Added new recurring proforma operational summary feature with tests.
- Introduced recurring proforma status entity and related UI helpers.
- Enhanced recurring proforma list and detail views with new components and hooks.
- Added tests for new functionality and components.
2026-09-03 18:50:57 +02:00

12 lines
462 B
TypeScript

import type { useRender } from "@base-ui/react/use-render";
import { Badge, type badgeVariants } from "@repo/shadcn-ui/components";
import { cn } from "@repo/shadcn-ui/lib/utils";
import type { VariantProps } from "class-variance-authority";
export const RdxBadge = ({
className,
...props
}: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>) => (
<Badge className={cn("tracking-wide px-4 h-6 rounded-md", className)} {...props} />
);