@machinemetrics/mm-react-components 0.2.3-29 → 0.2.3-30

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.
@@ -3542,10 +3542,8 @@ const Input = React.forwardRef(
3542
3542
  {
3543
3543
  ref,
3544
3544
  type,
3545
- className: cn$1(
3546
- "flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
3547
- className
3548
- ),
3545
+ "data-slot": "input",
3546
+ className,
3549
3547
  readOnly: onChange == null && defaultValue2 == null ? true : readOnly,
3550
3548
  onChange,
3551
3549
  defaultValue: defaultValue2,
@@ -5294,9 +5292,10 @@ const badgeVariants = cva(
5294
5292
  {
5295
5293
  variants: {
5296
5294
  variant: {
5297
- default: "border-transparent bg-[var(--indigo-200)] text-[var(--grey-700)] dark:bg-[var(--indigo-700)] dark:text-[var(--grey-00)] [a&]:hover:bg-[var(--indigo-300)] dark:[a&]:hover:bg-[var(--indigo-600)]",
5295
+ // Base variant classes - Carbide colors applied via carbide.css
5296
+ default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
5298
5297
  secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
5299
- destructive: "border-transparent bg-[var(--red-200)] text-[var(--grey-700)] dark:bg-[var(--red-700)] dark:text-[var(--grey-00)] [a&]:hover:bg-[var(--red-300)] dark:[a&]:hover:bg-[var(--red-600)] focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
5298
+ destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90",
5300
5299
  outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
5301
5300
  }
5302
5301
  },
@@ -5312,6 +5311,7 @@ const Badge = React.forwardRef(({ className, variant, asChild = false, ...props
5312
5311
  {
5313
5312
  ref,
5314
5313
  "data-slot": "badge",
5314
+ "data-variant": variant,
5315
5315
  className: cn$1(badgeVariants({ variant }), className),
5316
5316
  ...props
5317
5317
  }
@@ -42324,8 +42324,9 @@ const alertVariants = cva(
42324
42324
  variant: {
42325
42325
  default: "bg-card text-card-foreground",
42326
42326
  destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",
42327
- success: "text-green-600 bg-card border-green-200 [&>svg]:text-current *:data-[slot=alert-description]:text-green-600/90",
42328
- warning: "text-yellow-600 bg-card border-yellow-200 [&>svg]:text-current *:data-[slot=alert-description]:text-yellow-600/90"
42327
+ // Custom variants - styling handled by carbide.css via data-variant
42328
+ success: "bg-card",
42329
+ warning: "bg-card"
42329
42330
  }
42330
42331
  },
42331
42332
  defaultVariants: {
@@ -42339,6 +42340,7 @@ const Alert = React.forwardRef(({ className, variant, ...props }, ref) => {
42339
42340
  {
42340
42341
  ref,
42341
42342
  "data-slot": "alert",
42343
+ "data-variant": variant,
42342
42344
  role: "alert",
42343
42345
  className: cn$1(alertVariants({ variant }), className),
42344
42346
  ...props