@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.
@@ -399,12 +399,82 @@
399
399
  }
400
400
 
401
401
  /* =============================
402
- BADGE: TYPOGRAPHY
402
+ BADGE: TYPOGRAPHY & VARIANTS
403
403
  ============================= */
404
404
  .carbide [data-slot='badge'] {
405
405
  font-weight: 400;
406
406
  }
407
407
 
408
+ /* Badge variants - moved from inline component styles */
409
+ .carbide [data-slot='badge'][data-variant='default'] {
410
+ border-color: transparent;
411
+ background-color: var(--indigo-200);
412
+ color: var(--grey-700);
413
+ }
414
+ .carbide.dark [data-slot='badge'][data-variant='default'] {
415
+ background-color: var(--indigo-700);
416
+ color: var(--grey-00);
417
+ }
418
+ .carbide [data-slot='badge'][data-variant='default'] a:hover {
419
+ background-color: var(--indigo-300);
420
+ }
421
+ .carbide.dark [data-slot='badge'][data-variant='default'] a:hover {
422
+ background-color: var(--indigo-600);
423
+ }
424
+
425
+ .carbide [data-slot='badge'][data-variant='destructive'] {
426
+ border-color: transparent;
427
+ background-color: var(--red-200);
428
+ color: var(--grey-700);
429
+ }
430
+ .carbide.dark [data-slot='badge'][data-variant='destructive'] {
431
+ background-color: var(--red-700);
432
+ color: var(--grey-00);
433
+ }
434
+ .carbide [data-slot='badge'][data-variant='destructive'] a:hover {
435
+ background-color: var(--red-300);
436
+ }
437
+ .carbide.dark [data-slot='badge'][data-variant='destructive'] a:hover {
438
+ background-color: var(--red-600);
439
+ }
440
+ .carbide [data-slot='badge'][data-variant='destructive']:focus-visible {
441
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--destructive) 20%, transparent);
442
+ }
443
+ .carbide.dark [data-slot='badge'][data-variant='destructive']:focus-visible {
444
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--destructive) 40%, transparent);
445
+ }
446
+
447
+ /* =============================
448
+ ALERT VARIANTS
449
+ ============================= */
450
+ .carbide [data-slot='alert'][data-variant='success'] {
451
+ color: var(--green-600);
452
+ background-color: var(--card);
453
+ border-color: var(--green-200);
454
+ }
455
+ .carbide [data-slot='alert'][data-variant='success'] svg {
456
+ color: currentColor;
457
+ }
458
+ .carbide
459
+ [data-slot='alert'][data-variant='success']
460
+ [data-slot='alert-description'] {
461
+ color: color-mix(in srgb, var(--green-600) 90%, transparent);
462
+ }
463
+
464
+ .carbide [data-slot='alert'][data-variant='warning'] {
465
+ color: var(--yellow-600);
466
+ background-color: var(--card);
467
+ border-color: var(--yellow-200);
468
+ }
469
+ .carbide [data-slot='alert'][data-variant='warning'] svg {
470
+ color: currentColor;
471
+ }
472
+ .carbide
473
+ [data-slot='alert'][data-variant='warning']
474
+ [data-slot='alert-description'] {
475
+ color: color-mix(in srgb, var(--yellow-600) 90%, transparent);
476
+ }
477
+
408
478
  /* =============================
409
479
  KNOWLEDGE HUB STATUS BADGES
410
480
  ============================= */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@machinemetrics/mm-react-components",
3
- "version": "0.2.3-29",
3
+ "version": "0.2.3-30",
4
4
  "description": "Industrial-grade React components for manufacturing applications",
5
5
  "keywords": [
6
6
  "react",
@@ -93,6 +93,8 @@
93
93
  "shadcn:init": "shadcn init",
94
94
  "ci:setup": "npm run test:visual:update",
95
95
  "ci:check": "npm run build && npm run test:visual",
96
+ "check:health": "tsx scripts/check-component-health.ts",
97
+ "update-test": "tsx scripts/update-test-workflow.ts",
96
98
  "prepublishOnly": "npm run type-check && npm run lint && npm run build",
97
99
  "clean": "rm -rf dist dev-dist"
98
100
  },