@abrasileirado/dsgovbr-bootstraped 0.4.0 → 0.5.1

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.4.0",
3
+ "version": "0.5.1",
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",
@@ -75,6 +75,29 @@ $badge-padding-x: 0.75rem !default; // spacing-scale-baseh = 12px
75
75
  $badge-padding-y: 0 !default;
76
76
  $badge-border-radius: $govbr-radius-sm !default;
77
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
+
78
101
  // Diferença conhecida e documentada (não replicada nesta issue): o GOV.BR DS
79
102
  // usa border: 0 por padrão e cor de foco dourada (--focus-color-light,
80
103
  // gold-vivid-40 #c2850c) com contorno tracejado; o Bootstrap mantém sua
@@ -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;
@@ -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
+ }
@@ -18,6 +18,7 @@
18
18
  // por componente (ver docs/desenvolvimento.md).
19
19
  @import "components/alert";
20
20
  @import "components/badge";
21
+ @import "components/pagination";
21
22
  @import "components/button";
22
23
  @import "components/card";
23
24
  @import "components/form";