@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.cjs CHANGED
@@ -2916,6 +2916,16 @@ var ICON_SIZE = {
2916
2916
  default: "text-xl leading-none [&>svg]:size-5",
2917
2917
  lg: "text-xl leading-none [&>svg]:size-5"
2918
2918
  };
2919
+ var OWNER_SIZE = {
2920
+ sm: { circle: "h-4 w-4", count: "h-4 min-w-4 px-1" },
2921
+ default: { circle: "h-5 w-5", count: "h-5 min-w-5 px-1" },
2922
+ lg: { circle: "h-5 w-5", count: "h-5 min-w-5 px-1" }
2923
+ };
2924
+ var STATUS_SIZE = {
2925
+ sm: "size-2.5",
2926
+ default: "size-3",
2927
+ lg: "size-3"
2928
+ };
2919
2929
  var TONE = {
2920
2930
  neutral: "bg-muted text-muted-foreground",
2921
2931
  success: "bg-success-50 text-success-500 dark:bg-success-800/40 dark:text-success-300"
@@ -2991,7 +3001,8 @@ function BankAvatar({
2991
3001
  "aria-hidden": true,
2992
3002
  "data-slot": "bank-avatar-status",
2993
3003
  className: (0, import_cn28.cn)(
2994
- "absolute -top-1 -right-1 size-3 rounded-full ring-2 ring-background",
3004
+ "absolute -top-1 -right-1 rounded-full ring-2 ring-background",
3005
+ STATUS_SIZE[size],
2995
3006
  STATUS_COLOR[status]
2996
3007
  )
2997
3008
  }
@@ -3004,10 +3015,10 @@ function BankAvatar({
3004
3015
  className: (0, import_cn28.cn)(
3005
3016
  // Cinza escuro com texto branco, como o "+3" do Avatar group: o lilás é só da opção escolhida e
3006
3017
  // da IA, e o roxo 500 só da ação principal.
3007
- "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",
3018
+ "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",
3008
3019
  // Só o número cresce na largura; foto e inicial ficam num círculo fixo (sem isso a foto
3009
3020
  // esticava o selo até a largura dela).
3010
- "count" in owner ? "min-w-5 px-1" : "w-5"
3021
+ "count" in owner ? OWNER_SIZE[size].count : OWNER_SIZE[size].circle
3011
3022
  ),
3012
3023
  children: "count" in owner ? owner.count : owner.src ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("img", { src: owner.src, alt: "", className: "size-full object-cover" }) : initialsOf(owner.name).charAt(0)
3013
3024
  }