@eqtylab/equality 5.0.2 → 5.1.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/CHANGELOG.md CHANGED
@@ -2,6 +2,29 @@
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.1 - 2026-11-02
6
+
7
+ ### Fixed
8
+
9
+ - A `Banner` message breaks a long unbroken token, such as a URL in an error, where it ran out of
10
+ the strip.
11
+ - A `NavSwitcher` with `error` and options already loaded reads "Some {collection} couldn't be
12
+ loaded." where it read "Couldn't load {collection}." above the options it had.
13
+
14
+ ## 5.1.0 - 2026-11-02
15
+
16
+ ### Added
17
+
18
+ - `Banner`, a full-width strip stating the status of the page it tops (archived, revoked, waiting
19
+ on someone), with an icon chip, a one-sentence message and an optional `action`, which drops to
20
+ its own line on a narrow screen. It has the same five variants as `Alert`, defaulting to
21
+ `neutral`, but no default icons: `icon` is required, since it names the state. `border="top"`
22
+ moves its rule above it, for a banner at the foot of a page header, and `as="aside"` makes it a
23
+ landmark. It has no live region.
24
+ - `Alert` takes `action`, a control at the end of the title row such as a Retry button. The
25
+ description or body stays under the title, and screen readers reach the action after them. Apps
26
+ that placed a control there by overriding the grid can drop the override.
27
+
5
28
  ## 5.0.2 - 2026-10-28
6
29
 
7
30
  ### 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,137 @@
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
+ overflow-wrap: anywhere;
88
+ color: var(--banner-fg-color);
89
+ }
90
+ .banner-action {
91
+ flex-shrink: 0;
92
+ }
93
+ @property --tw-backdrop-blur {
94
+ syntax: "*";
95
+ inherits: false;
96
+ }
97
+ @property --tw-backdrop-brightness {
98
+ syntax: "*";
99
+ inherits: false;
100
+ }
101
+ @property --tw-backdrop-contrast {
102
+ syntax: "*";
103
+ inherits: false;
104
+ }
105
+ @property --tw-backdrop-grayscale {
106
+ syntax: "*";
107
+ inherits: false;
108
+ }
109
+ @property --tw-backdrop-hue-rotate {
110
+ syntax: "*";
111
+ inherits: false;
112
+ }
113
+ @property --tw-backdrop-invert {
114
+ syntax: "*";
115
+ inherits: false;
116
+ }
117
+ @property --tw-backdrop-opacity {
118
+ syntax: "*";
119
+ inherits: false;
120
+ }
121
+ @property --tw-backdrop-saturate {
122
+ syntax: "*";
123
+ inherits: false;
124
+ }
125
+ @property --tw-backdrop-sepia {
126
+ syntax: "*";
127
+ inherits: false;
128
+ }
129
+ @property --tw-border-style {
130
+ syntax: "*";
131
+ inherits: false;
132
+ initial-value: solid;
133
+ }
134
+ @property --tw-font-weight {
135
+ syntax: "*";
136
+ inherits: false;
137
+ }