@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.
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/lib/mm-react-components.css +1 -1
- package/dist/mm-react-components.es.js +10 -8
- package/dist/mm-react-components.es.js.map +1 -1
- package/dist/mm-react-components.umd.js +3 -3
- package/dist/mm-react-components.umd.js.map +1 -1
- package/dist/themes/carbide.css +71 -1
- package/package.json +3 -1
|
@@ -3542,10 +3542,8 @@ const Input = React.forwardRef(
|
|
|
3542
3542
|
{
|
|
3543
3543
|
ref,
|
|
3544
3544
|
type,
|
|
3545
|
-
|
|
3546
|
-
|
|
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
|
-
|
|
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-
|
|
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
|
-
|
|
42328
|
-
|
|
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
|