@financinha/ui 0.14.1 → 0.14.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 +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2644,9 +2644,9 @@ import * as React28 from "react";
|
|
|
2644
2644
|
import { cn as cn28 } from "cn";
|
|
2645
2645
|
import { jsx as jsx27, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2646
2646
|
var SIZE = {
|
|
2647
|
-
sm: "size-8 text-xs",
|
|
2648
|
-
default: "size-10 text-sm",
|
|
2649
|
-
lg: "size-12 text-base"
|
|
2647
|
+
sm: "size-8 rounded-md text-xs",
|
|
2648
|
+
default: "size-10 rounded-lg text-sm",
|
|
2649
|
+
lg: "size-12 rounded-lg text-base"
|
|
2650
2650
|
};
|
|
2651
2651
|
var ICON_SIZE = {
|
|
2652
2652
|
sm: "text-base leading-none [&>svg]:size-4",
|
|
@@ -2715,7 +2715,7 @@ function BankAvatar({
|
|
|
2715
2715
|
"aria-hidden": true,
|
|
2716
2716
|
"data-slot": "bank-avatar-image",
|
|
2717
2717
|
className: cn28(
|
|
2718
|
-
"flex items-center justify-center overflow-hidden
|
|
2718
|
+
"flex items-center justify-center overflow-hidden font-semibold",
|
|
2719
2719
|
SIZE[size],
|
|
2720
2720
|
showLogo ? "bg-white ring-1 ring-border" : !color && TONE[tone],
|
|
2721
2721
|
!showLogo && icon != null && ICON_SIZE[size]
|
|
@@ -2750,9 +2750,11 @@ function BankAvatar({
|
|
|
2750
2750
|
"aria-hidden": true,
|
|
2751
2751
|
"data-slot": "bank-avatar-owner",
|
|
2752
2752
|
className: cn28(
|
|
2753
|
-
|
|
2754
|
-
//
|
|
2755
|
-
|
|
2753
|
+
"absolute -right-1 -bottom-1 flex items-center justify-center overflow-hidden rounded-full text-xs font-semibold ring-2 ring-background",
|
|
2754
|
+
// Inicial e número com cores diferentes, para não se confundirem. No claro: inicial em cinza escuro com
|
|
2755
|
+
// a letra branca, número em cinza claro. No escuro: número claro (como o "+3" do Avatar group) e
|
|
2756
|
+
// inicial escura. Nada de lilás (é da opção escolhida e da IA) nem de roxo 500 (é da ação principal).
|
|
2757
|
+
"count" in owner ? "bg-neutral-100 text-muted-foreground dark:bg-neutral-300 dark:text-neutral-800" : "bg-neutral-400 text-white dark:bg-muted dark:text-muted-foreground",
|
|
2756
2758
|
// Só o número cresce na largura; foto e inicial ficam num círculo fixo (sem isso a foto
|
|
2757
2759
|
// esticava o selo até a largura dela).
|
|
2758
2760
|
"count" in owner ? OWNER_SIZE[size].count : OWNER_SIZE[size].circle
|