@financinha/ui 0.14.0 → 0.14.1

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.js CHANGED
@@ -2653,6 +2653,16 @@ var ICON_SIZE = {
2653
2653
  default: "text-xl leading-none [&>svg]:size-5",
2654
2654
  lg: "text-xl leading-none [&>svg]:size-5"
2655
2655
  };
2656
+ var OWNER_SIZE = {
2657
+ sm: { circle: "h-4 w-4", count: "h-4 min-w-4 px-1" },
2658
+ default: { circle: "h-5 w-5", count: "h-5 min-w-5 px-1" },
2659
+ lg: { circle: "h-5 w-5", count: "h-5 min-w-5 px-1" }
2660
+ };
2661
+ var STATUS_SIZE = {
2662
+ sm: "size-2.5",
2663
+ default: "size-3",
2664
+ lg: "size-3"
2665
+ };
2656
2666
  var TONE = {
2657
2667
  neutral: "bg-muted text-muted-foreground",
2658
2668
  success: "bg-success-50 text-success-500 dark:bg-success-800/40 dark:text-success-300"
@@ -2728,7 +2738,8 @@ function BankAvatar({
2728
2738
  "aria-hidden": true,
2729
2739
  "data-slot": "bank-avatar-status",
2730
2740
  className: cn28(
2731
- "absolute -top-1 -right-1 size-3 rounded-full ring-2 ring-background",
2741
+ "absolute -top-1 -right-1 rounded-full ring-2 ring-background",
2742
+ STATUS_SIZE[size],
2732
2743
  STATUS_COLOR[status]
2733
2744
  )
2734
2745
  }
@@ -2741,10 +2752,10 @@ function BankAvatar({
2741
2752
  className: cn28(
2742
2753
  // Cinza escuro com texto branco, como o "+3" do Avatar group: o lilás é só da opção escolhida e
2743
2754
  // da IA, e o roxo 500 só da ação principal.
2744
- "absolute -right-1 -bottom-1 flex h-5 items-center justify-center overflow-hidden rounded-full bg-neutral-400 text-xs font-semibold text-white ring-2 ring-background dark:bg-neutral-300 dark:text-neutral-800",
2755
+ "absolute -right-1 -bottom-1 flex items-center justify-center overflow-hidden rounded-full bg-neutral-400 text-xs font-semibold text-white ring-2 ring-background dark:bg-neutral-300 dark:text-neutral-800",
2745
2756
  // Só o número cresce na largura; foto e inicial ficam num círculo fixo (sem isso a foto
2746
2757
  // esticava o selo até a largura dela).
2747
- "count" in owner ? "min-w-5 px-1" : "w-5"
2758
+ "count" in owner ? OWNER_SIZE[size].count : OWNER_SIZE[size].circle
2748
2759
  ),
2749
2760
  children: "count" in owner ? owner.count : owner.src ? /* @__PURE__ */ jsx27("img", { src: owner.src, alt: "", className: "size-full object-cover" }) : initialsOf(owner.name).charAt(0)
2750
2761
  }