@eqtylab/equality 5.0.2 → 5.1.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/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  Notable changes to Equality are recorded here, following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
4
4
 
5
+ ## 5.1.0 - 2026-11-02
6
+
7
+ ### Added
8
+
9
+ - `Banner`, a full-width strip stating the status of the page it tops (archived, revoked, waiting
10
+ on someone), with an icon chip, a one-sentence message and an optional `action`, which drops to
11
+ its own line on a narrow screen. It has the same five variants as `Alert`, defaulting to
12
+ `neutral`, but no default icons: `icon` is required, since it names the state. `border="top"`
13
+ moves its rule above it, for a banner at the foot of a page header, and `as="aside"` makes it a
14
+ landmark. It has no live region.
15
+ - `Alert` takes `action`, a control at the end of the title row such as a Retry button. The
16
+ description or body stays under the title, and screen readers reach the action after them. Apps
17
+ that placed a control there by overriding the grid can drop the override.
18
+
5
19
  ## 5.0.2 - 2026-10-28
6
20
 
7
21
  ### Added
@@ -82,6 +82,32 @@
82
82
  .alert--with-icon .alert-body {
83
83
  grid-column-start: 2;
84
84
  }
85
+ .alert--with-action {
86
+ grid-template-columns: 1fr auto;
87
+ column-gap: calc(0.25rem * 2);
88
+ }
89
+ .alert--with-action .alert-title {
90
+ align-self: center;
91
+ }
92
+ .alert--with-action .alert-description,
93
+ .alert--with-action .alert-body {
94
+ grid-column-start: 1;
95
+ }
96
+ .alert-action {
97
+ grid-column-start: 2;
98
+ grid-row-start: 1;
99
+ align-self: center;
100
+ }
101
+ .alert--with-icon.alert--with-action {
102
+ grid-template-columns: auto 1fr auto;
103
+ }
104
+ .alert--with-icon.alert--with-action .alert-description,
105
+ .alert--with-icon.alert--with-action .alert-body {
106
+ grid-column-start: 2;
107
+ }
108
+ .alert--with-icon .alert-action {
109
+ grid-column-start: 3;
110
+ }
85
111
  @property --tw-border-style {
86
112
  syntax: "*";
87
113
  inherits: false;
@@ -0,0 +1,136 @@
1
+ /*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
2
+ .banner {
3
+ width: 100%;
4
+ --tw-backdrop-blur: blur(4px);
5
+ -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
6
+ backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
7
+ border-color: var(--banner-bg-color);
8
+ background-image: linear-gradient(
9
+ to right,
10
+ var(--banner-bg-color),
11
+ var(--banner-bg-color)
12
+ );
13
+ @supports (color: color-mix(in lab, red, red)) {
14
+ background-image: linear-gradient(
15
+ to right,
16
+ color-mix(in oklab, var(--banner-bg-color) 40%, transparent),
17
+ color-mix(in oklab, var(--banner-bg-color) 15%, transparent)
18
+ );
19
+ }
20
+ }
21
+ .banner--border-bottom {
22
+ border-bottom-style: var(--tw-border-style);
23
+ border-bottom-width: 1px;
24
+ }
25
+ .banner--border-top {
26
+ border-top-style: var(--tw-border-style);
27
+ border-top-width: 1px;
28
+ }
29
+ .banner--primary {
30
+ --banner-bg-color: var(--color-badge-background-primary);
31
+ --banner-fg-color: var(--color-badge-text-primary);
32
+ }
33
+ .banner--neutral {
34
+ --banner-bg-color: var(--color-badge-background-neutral);
35
+ --banner-fg-color: var(--color-badge-text-neutral);
36
+ }
37
+ .banner--success {
38
+ --banner-bg-color: var(--color-badge-background-success);
39
+ --banner-fg-color: var(--color-badge-text-success);
40
+ }
41
+ .banner--warning {
42
+ --banner-bg-color: var(--color-badge-background-warning);
43
+ --banner-fg-color: var(--color-badge-text-warning);
44
+ }
45
+ .banner--danger {
46
+ --banner-bg-color: var(--color-badge-background-danger);
47
+ --banner-fg-color: var(--color-badge-text-danger);
48
+ }
49
+ .banner-content {
50
+ display: flex;
51
+ flex-wrap: wrap;
52
+ align-items: center;
53
+ justify-content: center;
54
+ column-gap: calc(0.25rem * 3);
55
+ row-gap: calc(0.25rem * 1);
56
+ padding-inline: calc(0.25rem * 4);
57
+ padding-block: calc(0.25rem * 1.5);
58
+ @media (width >= 40rem) {
59
+ padding-inline: calc(0.25rem * 8);
60
+ }
61
+ }
62
+ .banner-lead {
63
+ display: flex;
64
+ min-width: calc(0.25rem * 0);
65
+ align-items: center;
66
+ gap: calc(0.25rem * 3);
67
+ }
68
+ .banner-icon {
69
+ display: flex;
70
+ flex-shrink: 0;
71
+ align-items: center;
72
+ justify-content: center;
73
+ border-radius: calc(infinity * 1px);
74
+ padding: calc(0.25rem * 1.5);
75
+ background-color: var(--banner-bg-color);
76
+ color: var(--banner-fg-color);
77
+ }
78
+ .banner-icon .banner-glyph {
79
+ color: inherit;
80
+ }
81
+ .banner-message {
82
+ font-size: 0.875rem;
83
+ line-height: var(--tw-leading, calc(1.25 / 0.875));
84
+ --tw-font-weight: 500;
85
+ font-weight: 500;
86
+ text-wrap: balance;
87
+ color: var(--banner-fg-color);
88
+ }
89
+ .banner-action {
90
+ flex-shrink: 0;
91
+ }
92
+ @property --tw-backdrop-blur {
93
+ syntax: "*";
94
+ inherits: false;
95
+ }
96
+ @property --tw-backdrop-brightness {
97
+ syntax: "*";
98
+ inherits: false;
99
+ }
100
+ @property --tw-backdrop-contrast {
101
+ syntax: "*";
102
+ inherits: false;
103
+ }
104
+ @property --tw-backdrop-grayscale {
105
+ syntax: "*";
106
+ inherits: false;
107
+ }
108
+ @property --tw-backdrop-hue-rotate {
109
+ syntax: "*";
110
+ inherits: false;
111
+ }
112
+ @property --tw-backdrop-invert {
113
+ syntax: "*";
114
+ inherits: false;
115
+ }
116
+ @property --tw-backdrop-opacity {
117
+ syntax: "*";
118
+ inherits: false;
119
+ }
120
+ @property --tw-backdrop-saturate {
121
+ syntax: "*";
122
+ inherits: false;
123
+ }
124
+ @property --tw-backdrop-sepia {
125
+ syntax: "*";
126
+ inherits: false;
127
+ }
128
+ @property --tw-border-style {
129
+ syntax: "*";
130
+ inherits: false;
131
+ initial-value: solid;
132
+ }
133
+ @property --tw-font-weight {
134
+ syntax: "*";
135
+ inherits: false;
136
+ }