@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 CHANGED
@@ -348,6 +348,15 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
348
348
  "icon-lg": "size-10"
349
349
  }
350
350
  },
351
+ // financinha: o `link` não tem espaço lateral, para alinhar com o texto ao lado. Fica num compoundVariant
352
+ // porque o padding vem do `size`, que entra depois da variante e venceria no tailwind-merge. Sem espaço,
353
+ // a borda roxa do foco encostava nas letras: no link ela fica transparente e só o anel aparece, 2 px fora.
354
+ compoundVariants: [
355
+ {
356
+ variant: "link",
357
+ class: "px-0 has-data-[icon=inline-end]:pr-0 has-data-[icon=inline-start]:pl-0 focus-visible:border-transparent"
358
+ }
359
+ ],
351
360
  defaultVariants: {
352
361
  variant: "default",
353
362
  size: "default"
@@ -2907,9 +2916,9 @@ var React28 = __toESM(require("react"), 1);
2907
2916
  var import_cn28 = require("cn");
2908
2917
  var import_jsx_runtime27 = require("react/jsx-runtime");
2909
2918
  var SIZE = {
2910
- sm: "size-8 text-xs",
2911
- default: "size-10 text-sm",
2912
- lg: "size-12 text-base"
2919
+ sm: "size-8 rounded-md text-xs",
2920
+ default: "size-10 rounded-lg text-sm",
2921
+ lg: "size-12 rounded-lg text-base"
2913
2922
  };
2914
2923
  var ICON_SIZE = {
2915
2924
  sm: "text-base leading-none [&>svg]:size-4",
@@ -2978,7 +2987,7 @@ function BankAvatar({
2978
2987
  "aria-hidden": true,
2979
2988
  "data-slot": "bank-avatar-image",
2980
2989
  className: (0, import_cn28.cn)(
2981
- "flex items-center justify-center overflow-hidden rounded-lg font-semibold",
2990
+ "flex items-center justify-center overflow-hidden font-semibold",
2982
2991
  SIZE[size],
2983
2992
  showLogo ? "bg-white ring-1 ring-border" : !color && TONE[tone],
2984
2993
  !showLogo && icon != null && ICON_SIZE[size]
@@ -3013,9 +3022,11 @@ function BankAvatar({
3013
3022
  "aria-hidden": true,
3014
3023
  "data-slot": "bank-avatar-owner",
3015
3024
  className: (0, import_cn28.cn)(
3016
- // Cinza escuro com texto branco, como o "+3" do Avatar group: o lilás é só da opção escolhida e
3017
- // da IA, e o roxo 500 só da ação principal.
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",
3025
+ "absolute -right-1 -bottom-1 flex items-center justify-center overflow-hidden rounded-full text-xs font-semibold ring-2 ring-background",
3026
+ // Inicial e número com cores diferentes, para não se confundirem. No claro: inicial em cinza escuro com
3027
+ // a letra branca, número em cinza claro. No escuro: número claro (como o "+3" do Avatar group) e
3028
+ // inicial escura. Nada de lilás (é da opção escolhida e da IA) nem de roxo 500 (é da ação principal).
3029
+ "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
3030
  // Só o número cresce na largura; foto e inicial ficam num círculo fixo (sem isso a foto
3020
3031
  // esticava o selo até a largura dela).
3021
3032
  "count" in owner ? OWNER_SIZE[size].count : OWNER_SIZE[size].circle