@guardian/interactive-component-library 0.7.14 → 0.7.16

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.
@@ -8,7 +8,7 @@ import "../../particles/relative-time-sentence/index.js";
8
8
  import defaultStyles from "./style.module.css.js";
9
9
  const ControlChange = ({ previous, next, text, styles }) => {
10
10
  styles = mergeStyles({ ...defaultStyles }, styles);
11
- let hasChanged = next !== previous;
11
+ let hasChanged = previous && next !== previous;
12
12
  return /* @__PURE__ */ jsxs("div", { className: styles.container, children: [
13
13
  hasChanged ? /* @__PURE__ */ jsx(
14
14
  GradientIcon,
@@ -35,7 +35,7 @@ function ResultSummary({
35
35
  }) {
36
36
  styles = mergeStyles({ ...defaultStyles }, styles);
37
37
  if (isSlim) {
38
- let hasChanged = next !== previous;
38
+ let hasChanged = previous && next !== previous;
39
39
  return /* @__PURE__ */ jsx(
40
40
  "div",
41
41
  {
@@ -142,6 +142,7 @@ function SuggestionList({
142
142
  className: [
143
143
  styles.suggestion,
144
144
  index === selectedIndex && styles.selected,
145
+ d.className,
145
146
  d.disabled && styles.disabled
146
147
  ].join(" "),
147
148
  onMouseDown: (e) => e.preventDefault(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@guardian/interactive-component-library",
3
3
  "private": false,
4
- "version": "0.7.14",
4
+ "version": "0.7.16",
5
5
  "packageManager": "pnpm@8.4.0",
6
6
  "repository": {
7
7
  "type": "git",