@eqtylab/equality 5.1.0 → 5.2.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,21 @@
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.2.0 - 2026-11-02
6
+
7
+ ### Added
8
+
9
+ - `Button` takes `variant="success"`, a filled green button for actions that approve or confirm, such as approving a review.
10
+
11
+ ## 5.1.1 - 2026-11-02
12
+
13
+ ### Fixed
14
+
15
+ - A `Banner` message breaks a long unbroken token, such as a URL in an error, where it ran out of
16
+ the strip.
17
+ - A `NavSwitcher` with `error` and options already loaded reads "Some {collection} couldn't be
18
+ loaded." where it read "Couldn't load {collection}." above the options it had.
19
+
5
20
  ## 5.1.0 - 2026-11-02
6
21
 
7
22
  ### Added
@@ -84,6 +84,7 @@
84
84
  --tw-font-weight: 500;
85
85
  font-weight: 500;
86
86
  text-wrap: balance;
87
+ overflow-wrap: anywhere;
87
88
  color: var(--banner-fg-color);
88
89
  }
89
90
  .banner-action {
@@ -96,6 +96,7 @@
96
96
  }
97
97
  .button--primary,
98
98
  .button--danger,
99
+ .button--success,
99
100
  .button--warning {
100
101
  --button-hover-fill: var(--mix-color);
101
102
  @supports (color: color-mix(in lab, red, red)) {
@@ -116,6 +117,10 @@
116
117
  --mix-color: var(--color-button-danger-fill);
117
118
  color: var(--color-button-danger-text, color(display-p3 1 1 1));
118
119
  }
120
+ .button--success {
121
+ --mix-color: var(--color-button-success-fill);
122
+ color: var(--color-button-success-text, color(display-p3 1 1 1));
123
+ }
119
124
  .button--warning {
120
125
  --mix-color: var(--color-button-warning-fill);
121
126
  color: var(--color-button-warning-text, color(display-p3 1 1 1));
package/dist/index.cjs CHANGED
@@ -213,6 +213,7 @@ var buttonVariants = classVarianceAuthority.cva(styles__default.default["button"
213
213
  variant: {
214
214
  primary: [styles__default.default["button--filled"], styles__default.default["button--primary"]],
215
215
  danger: [styles__default.default["button--filled"], styles__default.default["button--danger"]],
216
+ success: [styles__default.default["button--filled"], styles__default.default["button--success"]],
216
217
  warning: [styles__default.default["button--filled"], styles__default.default["button--warning"]],
217
218
  secondary: [styles__default.default["button--filled"], styles__default.default["button--secondary"]],
218
219
  tertiary: styles__default.default["button--tertiary"],
@@ -3566,11 +3567,12 @@ var NavSwitcherSelect = React16__namespace.forwardRef(
3566
3567
  const keepOpen = React16__namespace.useRef(false);
3567
3568
  const [announcement, setAnnouncement] = React16__namespace.useState("");
3568
3569
  const [listState, setListState] = React16__namespace.useState({ error, retrying });
3570
+ const errorMessage = options.length > 0 ? `Some ${collection} couldn't be loaded.` : `Couldn't load ${collection}.`;
3569
3571
  if (listState.error !== error || listState.retrying !== retrying) {
3570
3572
  setListState({ error, retrying });
3571
3573
  if (error || listState.error) {
3572
3574
  setAnnouncement(
3573
- error ? retrying ? "Retrying..." : `Couldn't load ${collection}.` : options.length > 0 ? `Loaded ${collection}.` : `No ${collection} found.`
3575
+ error ? retrying ? "Retrying..." : errorMessage : options.length > 0 ? `Loaded ${collection}.` : `No ${collection} found.`
3574
3576
  );
3575
3577
  }
3576
3578
  }
@@ -3653,7 +3655,7 @@ var NavSwitcherSelect = React16__namespace.forwardRef(
3653
3655
  SelectItem,
3654
3656
  {
3655
3657
  value: retryValue,
3656
- textValue: `Couldn't load ${collection}. ${retrying ? "Retrying" : "Retry"}`,
3658
+ textValue: `${errorMessage} ${retrying ? "Retrying" : "Retry"}`,
3657
3659
  persistent: true,
3658
3660
  "aria-disabled": retrying || void 0,
3659
3661
  className: styles41__default.default["nav-switcher-retry"],
@@ -3666,9 +3668,7 @@ var NavSwitcherSelect = React16__namespace.forwardRef(
3666
3668
  "aria-hidden": "true"
3667
3669
  }
3668
3670
  ),
3669
- "Couldn't load ",
3670
- collection,
3671
- "."
3671
+ errorMessage
3672
3672
  ] }),
3673
3673
  retrying ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles41__default.default["nav-switcher-error-message"], children: [
3674
3674
  /* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: "xs", variant: "neutral" }),