@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.cjs
CHANGED
|
@@ -2907,9 +2907,9 @@ var React28 = __toESM(require("react"), 1);
|
|
|
2907
2907
|
var import_cn28 = require("cn");
|
|
2908
2908
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2909
2909
|
var SIZE = {
|
|
2910
|
-
sm: "size-8 text-xs",
|
|
2911
|
-
default: "size-10 text-sm",
|
|
2912
|
-
lg: "size-12 text-base"
|
|
2910
|
+
sm: "size-8 rounded-md text-xs",
|
|
2911
|
+
default: "size-10 rounded-lg text-sm",
|
|
2912
|
+
lg: "size-12 rounded-lg text-base"
|
|
2913
2913
|
};
|
|
2914
2914
|
var ICON_SIZE = {
|
|
2915
2915
|
sm: "text-base leading-none [&>svg]:size-4",
|
|
@@ -2978,7 +2978,7 @@ function BankAvatar({
|
|
|
2978
2978
|
"aria-hidden": true,
|
|
2979
2979
|
"data-slot": "bank-avatar-image",
|
|
2980
2980
|
className: (0, import_cn28.cn)(
|
|
2981
|
-
"flex items-center justify-center overflow-hidden
|
|
2981
|
+
"flex items-center justify-center overflow-hidden font-semibold",
|
|
2982
2982
|
SIZE[size],
|
|
2983
2983
|
showLogo ? "bg-white ring-1 ring-border" : !color && TONE[tone],
|
|
2984
2984
|
!showLogo && icon != null && ICON_SIZE[size]
|
|
@@ -3013,9 +3013,11 @@ function BankAvatar({
|
|
|
3013
3013
|
"aria-hidden": true,
|
|
3014
3014
|
"data-slot": "bank-avatar-owner",
|
|
3015
3015
|
className: (0, import_cn28.cn)(
|
|
3016
|
-
|
|
3017
|
-
//
|
|
3018
|
-
|
|
3016
|
+
"absolute -right-1 -bottom-1 flex items-center justify-center overflow-hidden rounded-full text-xs font-semibold ring-2 ring-background",
|
|
3017
|
+
// Inicial e número com cores diferentes, para não se confundirem. No claro: inicial em cinza escuro com
|
|
3018
|
+
// a letra branca, número em cinza claro. No escuro: número claro (como o "+3" do Avatar group) e
|
|
3019
|
+
// inicial escura. Nada de lilás (é da opção escolhida e da IA) nem de roxo 500 (é da ação principal).
|
|
3020
|
+
"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",
|
|
3019
3021
|
// Só o número cresce na largura; foto e inicial ficam num círculo fixo (sem isso a foto
|
|
3020
3022
|
// esticava o selo até a largura dela).
|
|
3021
3023
|
"count" in owner ? OWNER_SIZE[size].count : OWNER_SIZE[size].circle
|