@abrasileirado/dsgovbr-bootstraped 0.3.0 → 0.5.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/README.md +5 -3
- package/dist/dsgovbr-bootstraped.css +80 -32
- package/dist/dsgovbr-bootstraped.css.map +1 -1
- package/dist/dsgovbr-bootstraped.min.css +1 -1
- package/package.json +1 -1
- package/src/scss/_bootstrap-settings.scss +32 -0
- package/src/scss/_tokens.scss +10 -0
- package/src/scss/components/_badge.scss +17 -0
- package/src/scss/components/_pagination.scss +40 -0
- package/src/scss/index.scss +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abrasileirado/dsgovbr-bootstraped",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.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,38 @@ $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
|
+
|
|
78
|
+
// Paginação estática GOV.BR DS (issue #37).
|
|
79
|
+
$pagination-padding-y: 0 !default;
|
|
80
|
+
$pagination-padding-x: 0.5rem !default;
|
|
81
|
+
$pagination-color: $govbr-interactive !default;
|
|
82
|
+
$pagination-bg: transparent !default;
|
|
83
|
+
$pagination-border-width: 1px !default;
|
|
84
|
+
$pagination-border-color: transparent !default;
|
|
85
|
+
$pagination-border-radius: 50rem !default;
|
|
86
|
+
$pagination-hover-color: $govbr-interactive !default;
|
|
87
|
+
$pagination-hover-bg: transparent !default;
|
|
88
|
+
$pagination-hover-border-color: transparent !default;
|
|
89
|
+
$pagination-focus-color: $govbr-interactive !default;
|
|
90
|
+
$pagination-focus-bg: transparent !default;
|
|
91
|
+
$pagination-focus-box-shadow: none !default;
|
|
92
|
+
$pagination-focus-outline: 4px dashed $govbr-focus !default;
|
|
93
|
+
$pagination-active-color: #fff !default;
|
|
94
|
+
$pagination-active-bg: $govbr-active !default;
|
|
95
|
+
$pagination-active-border-color: $govbr-active !default;
|
|
96
|
+
$pagination-disabled-color: $govbr-gray-40 !default;
|
|
97
|
+
$pagination-disabled-bg: transparent !default;
|
|
98
|
+
$pagination-disabled-border-color: transparent !default;
|
|
99
|
+
$pagination-margin-start: 0 !default;
|
|
100
|
+
|
|
69
101
|
// Diferença conhecida e documentada (não replicada nesta issue): o GOV.BR DS
|
|
70
102
|
// usa border: 0 por padrão e cor de foco dourada (--focus-color-light,
|
|
71
103
|
// gold-vivid-40 #c2850c) com contorno tracejado; o Bootstrap mantém sua
|
package/src/scss/_tokens.scss
CHANGED
|
@@ -14,6 +14,12 @@
|
|
|
14
14
|
// --interactive: var(--blue-warm-vivid-70)
|
|
15
15
|
// vendor/govbr-ds-core/.../configs/colors/_blue-warm-vivid.scss
|
|
16
16
|
$govbr-interactive: #1351b4 !default;
|
|
17
|
+
// --active: var(--blue-warm-vivid-80)
|
|
18
|
+
// vendor/govbr-ds-core/.../configs/colors/_blue-warm-vivid.scss
|
|
19
|
+
$govbr-active: #0c326f !default;
|
|
20
|
+
// --hover: var(--surface-opacity-xs) = 0.16
|
|
21
|
+
// vendor/govbr-ds-core/.../configs/_states.scss + _elevation.scss
|
|
22
|
+
$govbr-hover-opacity: 0.16 !default;
|
|
17
23
|
|
|
18
24
|
// --info: var(--blue-warm-vivid-60)
|
|
19
25
|
$govbr-info: #155bcb !default;
|
|
@@ -36,6 +42,10 @@ $govbr-danger: #e52207 !default;
|
|
|
36
42
|
// vendor/govbr-ds-core/.../configs/colors/_yellow-vivid.scss
|
|
37
43
|
$govbr-warning-text: #776017 !default;
|
|
38
44
|
|
|
45
|
+
// --background-dark: var(--blue-warm-vivid-90) (tag padrão)
|
|
46
|
+
// vendor/govbr-ds-core/.../configs/colors/_blue-warm-vivid.scss
|
|
47
|
+
$govbr-tag-background: #071d41 !default;
|
|
48
|
+
|
|
39
49
|
// --- Neutros ---
|
|
40
50
|
// vendor/govbr-ds-core/.../configs/colors/_gray.scss
|
|
41
51
|
$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
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.pagination {
|
|
2
|
+
gap: 4px;
|
|
3
|
+
margin-bottom: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.page-link {
|
|
7
|
+
align-items: center;
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
min-height: 32px;
|
|
11
|
+
min-width: 32px;
|
|
12
|
+
outline-offset: 4px;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.page-link:hover:not(:disabled):not([aria-disabled="true"]) {
|
|
17
|
+
background-image: linear-gradient(
|
|
18
|
+
rgba($govbr-interactive, $govbr-hover-opacity),
|
|
19
|
+
rgba($govbr-interactive, $govbr-hover-opacity)
|
|
20
|
+
);
|
|
21
|
+
text-decoration: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.page-link:focus-visible {
|
|
25
|
+
outline: 4px dashed $govbr-focus;
|
|
26
|
+
outline-offset: 4px;
|
|
27
|
+
position: relative;
|
|
28
|
+
z-index: 2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.page-item.active .page-link,
|
|
32
|
+
.page-link.active {
|
|
33
|
+
font-weight: $govbr-font-weight-semibold;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.page-item.disabled .page-link,
|
|
37
|
+
.page-link:disabled,
|
|
38
|
+
.page-link[aria-disabled="true"] {
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
package/src/scss/index.scss
CHANGED
|
@@ -17,6 +17,8 @@
|
|
|
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";
|
|
21
|
+
@import "components/pagination";
|
|
20
22
|
@import "components/button";
|
|
21
23
|
@import "components/card";
|
|
22
24
|
@import "components/form";
|