@financinha/ui 0.14.1 → 0.14.3
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 +18 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -82,6 +82,15 @@ var buttonVariants = cva(
|
|
|
82
82
|
"icon-lg": "size-10"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
+
// financinha: o `link` não tem espaço lateral, para alinhar com o texto ao lado. Fica num compoundVariant
|
|
86
|
+
// porque o padding vem do `size`, que entra depois da variante e venceria no tailwind-merge. Sem espaço,
|
|
87
|
+
// a borda roxa do foco encostava nas letras: no link ela fica transparente e só o anel aparece, 2 px fora.
|
|
88
|
+
compoundVariants: [
|
|
89
|
+
{
|
|
90
|
+
variant: "link",
|
|
91
|
+
class: "px-0 has-data-[icon=inline-end]:pr-0 has-data-[icon=inline-start]:pl-0 focus-visible:border-transparent"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
85
94
|
defaultVariants: {
|
|
86
95
|
variant: "default",
|
|
87
96
|
size: "default"
|
|
@@ -2644,9 +2653,9 @@ import * as React28 from "react";
|
|
|
2644
2653
|
import { cn as cn28 } from "cn";
|
|
2645
2654
|
import { jsx as jsx27, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2646
2655
|
var SIZE = {
|
|
2647
|
-
sm: "size-8 text-xs",
|
|
2648
|
-
default: "size-10 text-sm",
|
|
2649
|
-
lg: "size-12 text-base"
|
|
2656
|
+
sm: "size-8 rounded-md text-xs",
|
|
2657
|
+
default: "size-10 rounded-lg text-sm",
|
|
2658
|
+
lg: "size-12 rounded-lg text-base"
|
|
2650
2659
|
};
|
|
2651
2660
|
var ICON_SIZE = {
|
|
2652
2661
|
sm: "text-base leading-none [&>svg]:size-4",
|
|
@@ -2715,7 +2724,7 @@ function BankAvatar({
|
|
|
2715
2724
|
"aria-hidden": true,
|
|
2716
2725
|
"data-slot": "bank-avatar-image",
|
|
2717
2726
|
className: cn28(
|
|
2718
|
-
"flex items-center justify-center overflow-hidden
|
|
2727
|
+
"flex items-center justify-center overflow-hidden font-semibold",
|
|
2719
2728
|
SIZE[size],
|
|
2720
2729
|
showLogo ? "bg-white ring-1 ring-border" : !color && TONE[tone],
|
|
2721
2730
|
!showLogo && icon != null && ICON_SIZE[size]
|
|
@@ -2750,9 +2759,11 @@ function BankAvatar({
|
|
|
2750
2759
|
"aria-hidden": true,
|
|
2751
2760
|
"data-slot": "bank-avatar-owner",
|
|
2752
2761
|
className: cn28(
|
|
2753
|
-
|
|
2754
|
-
//
|
|
2755
|
-
|
|
2762
|
+
"absolute -right-1 -bottom-1 flex items-center justify-center overflow-hidden rounded-full text-xs font-semibold ring-2 ring-background",
|
|
2763
|
+
// Inicial e número com cores diferentes, para não se confundirem. No claro: inicial em cinza escuro com
|
|
2764
|
+
// a letra branca, número em cinza claro. No escuro: número claro (como o "+3" do Avatar group) e
|
|
2765
|
+
// inicial escura. Nada de lilás (é da opção escolhida e da IA) nem de roxo 500 (é da ação principal).
|
|
2766
|
+
"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
2767
|
// Só o número cresce na largura; foto e inicial ficam num círculo fixo (sem isso a foto
|
|
2757
2768
|
// esticava o selo até a largura dela).
|
|
2758
2769
|
"count" in owner ? OWNER_SIZE[size].count : OWNER_SIZE[size].circle
|