@underverse-ui/underverse 1.0.25 → 1.0.26

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.cjs CHANGED
@@ -348,25 +348,39 @@ var Button_default = Button;
348
348
  // ../../components/ui/Badge.tsx
349
349
  var import_jsx_runtime2 = require("react/jsx-runtime");
350
350
  var variantStyles = {
351
- default: "bg-muted text-muted-foreground border-border/50 hover:bg-muted/80",
352
- primary: "bg-primary text-primary-foreground border-primary/20 hover:bg-primary/90",
353
- secondary: "bg-secondary text-secondary-foreground border-secondary/20 hover:bg-secondary/90",
354
- success: "bg-success text-success-foreground border-success/20 hover:bg-success/90",
355
- warning: "bg-warning text-warning-foreground border-warning/20 hover:bg-warning/90",
356
- danger: "bg-destructive text-destructive-foreground border-destructive/20 hover:bg-destructive/90",
357
- destructive: "bg-destructive text-destructive-foreground border-destructive/20 hover:bg-destructive/90",
358
- info: "bg-info text-info-foreground border-info/20 hover:bg-info/90",
359
- outline: "bg-transparent text-foreground border-border hover:bg-accent/50",
360
- ghost: "bg-transparent hover:bg-accent/20 hover:text-accent-foreground border-transparent transition-colors",
361
- transparent: "bg-transparent text-foreground border-transparent hover:bg-accent/30",
362
- gradient: "bg-linear-to-r from-primary to-secondary text-primary-foreground border-transparent hover:from-primary/90 hover:to-secondary/90"
351
+ default: "bg-muted text-muted-foreground border-border/50",
352
+ primary: "bg-primary text-primary-foreground border-primary/20",
353
+ secondary: "bg-secondary text-secondary-foreground border-secondary/20",
354
+ success: "bg-success text-success-foreground border-success/20",
355
+ warning: "bg-warning text-warning-foreground border-warning/20",
356
+ danger: "bg-destructive text-destructive-foreground border-destructive/20",
357
+ destructive: "bg-destructive text-destructive-foreground border-destructive/20",
358
+ info: "bg-info text-info-foreground border-info/20",
359
+ outline: "bg-transparent text-foreground border-border",
360
+ ghost: "bg-transparent text-foreground border-transparent",
361
+ transparent: "bg-transparent text-foreground border-transparent",
362
+ gradient: "bg-linear-to-r from-primary to-secondary text-primary-foreground border-transparent"
363
+ };
364
+ var clickableVariantStyles = {
365
+ default: "hover:bg-muted/80",
366
+ primary: "hover:bg-primary/90",
367
+ secondary: "hover:bg-secondary/90",
368
+ success: "hover:bg-success/90",
369
+ warning: "hover:bg-warning/90",
370
+ danger: "hover:bg-destructive/90",
371
+ destructive: "hover:bg-destructive/90",
372
+ info: "hover:bg-info/90",
373
+ outline: "hover:bg-accent/50",
374
+ ghost: "hover:bg-accent/20 hover:text-accent-foreground",
375
+ transparent: "hover:bg-accent/30",
376
+ gradient: "hover:from-primary/90 hover:to-secondary/90"
363
377
  };
364
378
  var sizeStyles = {
365
379
  xs: "px-1.5 py-0.5 text-xs font-medium min-h-4.5",
366
380
  sm: "px-2 py-0.5 text-xs font-medium min-h-5",
367
381
  md: "px-2.5 py-1 text-xs font-medium min-h-6",
368
- lg: "px-3 py-1.5 text-sm font-medium min-h-7",
369
- xl: "px-4 py-2 text-sm font-semibold min-h-8"
382
+ lg: "px-3 py-1 text-xs font-medium min-h-6.5",
383
+ xl: "px-3.5 py-1.5 text-sm font-medium min-h-7"
370
384
  };
371
385
  var dotSizeStyles = {
372
386
  xs: "w-1.5 h-1.5",
@@ -409,11 +423,12 @@ var Badge = ({
409
423
  const baseClasses = cn(
410
424
  "inline-flex items-center border transition-all duration-200",
411
425
  "focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-1",
426
+ variantStyles[variant],
427
+ clickable && clickableVariantStyles[variant],
412
428
  clickable && "cursor-pointer hover:shadow-sm active:scale-95",
413
429
  pulse && "animate-pulse",
414
- "relative z-0",
430
+ "relative z-0"
415
431
  // Ensure badges stay below sticky headers (z-20, z-50)
416
- variantStyles[variant]
417
432
  );
418
433
  if (dot) {
419
434
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(