@abrasileirado/dsgovbr-bootstraped 0.3.0 → 0.4.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abrasileirado/dsgovbr-bootstraped",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Camada de compatibilidade visual não oficial entre o Bootstrap 5 e o Design System GOV.BR (DSGovBR)",
5
5
  "license": "MIT",
6
6
  "author": "Kelson da Costa Medeiros",
@@ -66,6 +66,15 @@ $btn-padding-y: 0.5rem !default; // ~40px de altura total (padrão)
66
66
  $btn-padding-y-sm: 0.375rem !default; // ~32px de altura total
67
67
  $btn-padding-y-lg: 0.625rem !default; // ~48px de altura total
68
68
 
69
+ // Badge estático alinhado à tag padrão do GOV.BR DS (issue #36). As classes
70
+ // utilitárias Bootstrap .text-bg-* continuam responsáveis pelas variantes.
71
+ $badge-color: $govbr-background !default;
72
+ $badge-font-size: $govbr-font-size-base !default;
73
+ $badge-font-weight: $govbr-font-weight-medium !default;
74
+ $badge-padding-x: 0.75rem !default; // spacing-scale-baseh = 12px
75
+ $badge-padding-y: 0 !default;
76
+ $badge-border-radius: $govbr-radius-sm !default;
77
+
69
78
  // Diferença conhecida e documentada (não replicada nesta issue): o GOV.BR DS
70
79
  // usa border: 0 por padrão e cor de foco dourada (--focus-color-light,
71
80
  // gold-vivid-40 #c2850c) com contorno tracejado; o Bootstrap mantém sua
@@ -36,6 +36,10 @@ $govbr-danger: #e52207 !default;
36
36
  // vendor/govbr-ds-core/.../configs/colors/_yellow-vivid.scss
37
37
  $govbr-warning-text: #776017 !default;
38
38
 
39
+ // --background-dark: var(--blue-warm-vivid-90) (tag padrão)
40
+ // vendor/govbr-ds-core/.../configs/colors/_blue-warm-vivid.scss
41
+ $govbr-tag-background: #071d41 !default;
42
+
39
43
  // --- Neutros ---
40
44
  // vendor/govbr-ds-core/.../configs/colors/_gray.scss
41
45
  $govbr-gray-90: #1b1b1b !default; // tom mais escuro (usado como $dark)
@@ -0,0 +1,17 @@
1
+ // Adapta somente o badge estático do Bootstrap ao formato padrão de .br-tag.
2
+ // Variantes .text-bg-* permanecem sob controle das utilidades Bootstrap, que
3
+ // escolhem a cor de texto para manter contraste conforme o fundo escolhido.
4
+ .badge {
5
+ align-items: center;
6
+ background-color: $govbr-tag-background;
7
+ display: inline-flex;
8
+ font-size: $govbr-font-size-base;
9
+ line-height: inherit;
10
+ margin: 0;
11
+ min-height: $govbr-spacer * 3.5;
12
+ padding: 0 $govbr-spacer * 1.5;
13
+ }
14
+
15
+ .badge + .badge {
16
+ margin-left: $govbr-spacer * 0.5;
17
+ }
@@ -17,6 +17,7 @@
17
17
  // Ajustes que as variáveis de tema, sozinhas, não resolvem — um adaptador
18
18
  // por componente (ver docs/desenvolvimento.md).
19
19
  @import "components/alert";
20
+ @import "components/badge";
20
21
  @import "components/button";
21
22
  @import "components/card";
22
23
  @import "components/form";