@sesionario/blocks 1.35.0 → 1.35.2

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
@@ -2583,10 +2583,6 @@ function PlatformNavbar({
2583
2583
  }
2584
2584
  );
2585
2585
  }
2586
- var LABELS = {
2587
- verified: "M\xE9dico verificado",
2588
- pending_review: "Verificaci\xF3n en revisi\xF3n"
2589
- };
2590
2586
  var sizeClasses3 = {
2591
2587
  sm: {
2592
2588
  icon: "size-3.5",
@@ -2601,16 +2597,22 @@ var sizeClasses3 = {
2601
2597
  padding: "px-2 py-0.5"
2602
2598
  }
2603
2599
  };
2600
+ function verifiedLabel(professionLabel) {
2601
+ const trimmed = professionLabel?.trim();
2602
+ if (trimmed) return `${trimmed} verificado`;
2603
+ return "Profesional verificado";
2604
+ }
2604
2605
  function VerifiedProfessionalBadge({
2605
2606
  status,
2606
2607
  size = "md",
2607
2608
  showLabel = false,
2609
+ professionLabel,
2608
2610
  className
2609
2611
  }) {
2610
2612
  if (status === "unverified" || status === "pending_review" && !showLabel) {
2611
2613
  return null;
2612
2614
  }
2613
- const label = LABELS[status];
2615
+ const label = status === "verified" ? verifiedLabel(professionLabel) : "Verificaci\xF3n en revisi\xF3n";
2614
2616
  const sizes = sizeClasses3[size];
2615
2617
  const Icon = status === "verified" ? lucideReact.BadgeCheck : lucideReact.Clock;
2616
2618
  const colorClass = status === "verified" ? "text-primary" : "text-muted-foreground";
@@ -2833,6 +2835,7 @@ function PlatformAccountMenu({
2833
2835
  isPending = false,
2834
2836
  user = null,
2835
2837
  verificationStatus = "unverified",
2838
+ professionLabel,
2836
2839
  urls,
2837
2840
  memberOrgs = [],
2838
2841
  manageableOrgs = [],
@@ -2926,6 +2929,7 @@ function PlatformAccountMenu({
2926
2929
  VerifiedProfessionalBadge,
2927
2930
  {
2928
2931
  status: verificationStatus,
2932
+ professionLabel,
2929
2933
  className: "shrink-0"
2930
2934
  }
2931
2935
  ) : null