@splunk/react-ui 4.31.0 → 4.32.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
@@ -1,12 +1,20 @@
1
1
  Change Log
2
2
  ============
3
3
 
4
+ 4.32.0 - June 4, 2024
5
+ ----------
6
+ New Features:
7
+ * `Clickable`'s `NavigationProvider` now accepts a new `onLinkClick` prop to handle click events globally (SUI-5291).
8
+
9
+ Typescript:
10
+ * `Card`'s `selected` prop now requires `onClick` to also be provided (SUI-6200).
11
+
4
12
  4.31.0 - May 16, 2024
5
13
  ----------
6
14
  New Features:
7
15
  * `Divider` has a new `decorative` prop for disabling the default semantics of `role="separator"`.
8
16
 
9
- Bug Fixes:
17
+ Bug Fixes:
10
18
  * `SidePanel` incorrectly rendered the overlay mask when `useLayerForClickAway={false}`. This has been fixed (SUI-6260).
11
19
 
12
20
  4.30.0 - May 6, 2024
package/Card.js CHANGED
@@ -695,26 +695,24 @@
695
695
  };
696
696
  var Pe = {
697
697
  openInNewContext: false,
698
- selected: false,
699
698
  showBorder: true
700
699
  };
701
700
  function _e(e) {
702
701
  return !!e.onClick || !!e.to;
703
702
  }
704
703
  function Te(e) {
705
- var r = e.margin, t = e.maxWidth, n = e.minWidth, o = e.selected, i = e.showBorder, a = e.style, l = ke(e, [ "margin", "maxWidth", "minWidth", "selected", "showBorder", "style" ]);
706
- var c = xe({
704
+ var r = e.margin, t = e.maxWidth, n = e.minWidth, o = e.showBorder, i = e.style, a = ke(e, [ "margin", "maxWidth", "minWidth", "showBorder", "style" ]);
705
+ var l = xe({
707
706
  minWidth: n,
708
707
  maxWidth: t,
709
708
  margin: r
710
- }, a);
711
- var s = {
712
- showBorder: i,
713
- selected: o,
709
+ }, i);
710
+ var c = {
711
+ showBorder: o,
714
712
  "data-test": "card",
715
- style: c
713
+ style: l
716
714
  };
717
- return [ s, l ];
715
+ return [ c, a ];
718
716
  }
719
717
  var Ee = function(e) {
720
718
  be(t, e);
@@ -730,7 +728,7 @@
730
728
  var t, n;
731
729
  var o = e.props, i = o.selected, a = o.value;
732
730
  (t = (n = e.props).onClick) === null || t === void 0 ? void 0 : t.call(n, r, {
733
- selected: i,
731
+ selected: i || false,
734
732
  value: a
735
733
  });
736
734
  }));
@@ -741,29 +739,29 @@
741
739
  value: function e() {
742
740
  if (_e(this.props)) {
743
741
  var r = Te(this.props), t = ie(r, 2), o = t[0], i = t[1];
744
- var a = o.selected, l = o.showBorder;
745
- var c = i.children, s = i.elementRef, u = i.onClick, p = i.openInNewContext, d = i.to, f = ke(i, [ "children", "elementRef", "onClick", "openInNewContext", "to" ]);
742
+ var a = o.showBorder;
743
+ var l = i.children, c = i.elementRef, s = i.onClick, u = i.openInNewContext, p = i.selected, d = i.to, f = ke(i, [ "children", "elementRef", "onClick", "openInNewContext", "selected", "to" ]);
746
744
 
747
745
  return n().createElement(re, oe({
748
746
  "data-clickable": true,
749
- $selected: a,
750
- $cardHasBorder: l,
751
- elementRef: s
747
+ $selected: p || false,
748
+ $cardHasBorder: a,
749
+ elementRef: c
752
750
  }, o, f, {
753
- onClick: u ? this.handleCardClick : undefined,
754
- openInNewContext: p,
751
+ onClick: s ? this.handleCardClick : undefined,
752
+ openInNewContext: u,
755
753
  to: d || undefined
756
- }), n().createElement(te, null, c));
754
+ }), n().createElement(te, null, l));
757
755
  }
758
756
  var b = Te(this.props), v = ie(b, 2), y = v[0], m = v[1];
759
- var h = y.selected, g = y.showBorder;
760
- var w = m.children, O = m.elementRef, x = ke(m, [ "children", "elementRef" ]);
757
+ var h = y.showBorder;
758
+ var g = m.children, w = m.elementRef, O = ke(m, [ "children", "elementRef" ]);
761
759
 
762
760
  return n().createElement(ee, oe({
763
- $selected: h,
764
- $cardHasBorder: g,
765
- ref: O
766
- }, y, x), w);
761
+ $selected: false,
762
+ $cardHasBorder: h,
763
+ ref: w
764
+ }, y, O), g);
767
765
  }
768
766
  } ]);
769
767
  return t;
package/Clickable.js CHANGED
@@ -65,7 +65,7 @@
65
65
  NavigationProvider: () => /* reexport */ m,
66
66
  default: () => /* reexport */ F,
67
67
  isInternalLink: () => /* reexport */ z,
68
- isRootRelativeLink: () => /* reexport */ L
68
+ isRootRelativeLink: () => /* reexport */ D
69
69
  });
70
70
  // CONCATENATED MODULE: external "react"
71
71
  const n = require("react");
@@ -87,17 +87,18 @@
87
87
  const p = require("styled-components");
88
88
  var d = e.n(p);
89
89
  // CONCATENATED MODULE: external "@splunk/themes"
90
- const b = require("@splunk/themes");
90
+ const v = require("@splunk/themes");
91
91
  // CONCATENATED MODULE: ./src/Clickable/ClickableStyles.ts
92
- var v = d().a.withConfig({
92
+ var b = d().a.withConfig({
93
93
  displayName: "ClickableStyles__StyledA",
94
94
  componentId: "sc-7al1vw-0"
95
- })([ "", " cursor:pointer;&[disabled],&[aria-disabled='true']{color:", ";}&::-moz-focus-inner{border:0;padding:0;}" ], b.mixins.reset("inline"), b.variables.contentColorDisabled);
95
+ })([ "", " cursor:pointer;&[disabled],&[aria-disabled='true']{color:", ";}&::-moz-focus-inner{border:0;padding:0;}" ], v.mixins.reset("inline"), v.variables.contentColorDisabled);
96
96
  // CONCATENATED MODULE: ./src/Clickable/NavigationProvider.tsx
97
97
  /** @public */
98
98
  var y = {
99
99
  children: i().node,
100
100
  onClick: i().func,
101
+ onLinkClick: i().func,
101
102
  prefix: i().string,
102
103
  transformUrl: i().func
103
104
  };
@@ -106,29 +107,30 @@
106
107
  * Used to provide an override for the `onClick` for links for single page applications so that
107
108
  * internal links can navigate without a page reload.
108
109
  */ function m(e) {
109
- var t = e.children, o = e.onClick, i = e.prefix, l = e.transformUrl;
110
+ var t = e.children, o = e.onClick, i = e.onLinkClick, l = e.prefix, a = e.transformUrl;
110
111
  // @docs-props-type NavigationProviderProps
111
- var a = (0, n.useMemo)((function() {
112
+ var u = (0, n.useMemo)((function() {
112
113
  var e;
113
- if (l != null) {
114
+ if (a != null) {
114
115
  if (false) {}
115
- e = l;
116
- } else if (i != null) {
116
+ e = a;
117
+ } else if (l != null) {
117
118
  if (false) {}
118
119
  e = function e() {
119
120
  var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
120
121
  var n = arguments.length > 1 ? arguments[1] : undefined, r = n.isInternal, o = n.isRootRelative;
121
- return i != null && r && o ? "".concat(i).concat(t) : t;
122
+ return l != null && r && o ? "".concat(l).concat(t) : t;
122
123
  };
123
124
  }
124
125
  return {
125
126
  onClick: o,
127
+ onLinkClick: i,
126
128
  transformUrl: e
127
129
  };
128
- }), [ o, i, l ]);
130
+ }), [ o, i, l, a ]);
129
131
 
130
132
  return r().createElement(h.Provider, {
131
- value: a
133
+ value: u
132
134
  }, t);
133
135
  }
134
136
  m.propTypes = y;
@@ -139,7 +141,7 @@
139
141
  * @param ref - The React callback or object ref. Can be `null` or `undefined`.
140
142
  * @param current - The new value of the ref.
141
143
  */
142
- function g(e, t) {
144
+ function k(e, t) {
143
145
  if (e) {
144
146
  if (typeof e === "function") {
145
147
  e(t);
@@ -152,21 +154,21 @@
152
154
  }
153
155
  }
154
156
  // CONCATENATED MODULE: ./src/Clickable/Clickable.tsx
155
- function k(e) {
157
+ function g(e) {
156
158
  "@babel/helpers - typeof";
157
159
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
158
- k = function e(t) {
160
+ g = function e(t) {
159
161
  return typeof t;
160
162
  };
161
163
  } else {
162
- k = function e(t) {
164
+ g = function e(t) {
163
165
  return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
164
166
  };
165
167
  }
166
- return k(e);
168
+ return g(e);
167
169
  }
168
- function O() {
169
- O = Object.assign || function(e) {
170
+ function C() {
171
+ C = Object.assign || function(e) {
170
172
  for (var t = 1; t < arguments.length; t++) {
171
173
  var n = arguments[t];
172
174
  for (var r in n) {
@@ -177,9 +179,9 @@
177
179
  }
178
180
  return e;
179
181
  };
180
- return O.apply(this, arguments);
182
+ return C.apply(this, arguments);
181
183
  }
182
- function C(e, t) {
184
+ function O(e, t) {
183
185
  if (e == null) return {};
184
186
  var n = w(e, t);
185
187
  var r, o;
@@ -246,11 +248,11 @@
246
248
  return S(e, t);
247
249
  }
248
250
  function _(e) {
249
- var t = N();
251
+ var t = L();
250
252
  return function n() {
251
- var r = M(e), o;
253
+ var r = N(e), o;
252
254
  if (t) {
253
- var i = M(this).constructor;
255
+ var i = N(this).constructor;
254
256
  o = Reflect.construct(r, arguments, i);
255
257
  } else {
256
258
  o = r.apply(this, arguments);
@@ -259,7 +261,7 @@
259
261
  };
260
262
  }
261
263
  function I(e, t) {
262
- if (t && (k(t) === "object" || typeof t === "function")) {
264
+ if (t && (g(t) === "object" || typeof t === "function")) {
263
265
  return t;
264
266
  }
265
267
  return T(e);
@@ -270,7 +272,7 @@
270
272
  }
271
273
  return e;
272
274
  }
273
- function N() {
275
+ function L() {
274
276
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
275
277
  if (Reflect.construct.sham) return false;
276
278
  if (typeof Proxy === "function") return true;
@@ -281,13 +283,13 @@
281
283
  return false;
282
284
  }
283
285
  }
284
- function M(e) {
285
- M = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
286
+ function N(e) {
287
+ N = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
286
288
  return t.__proto__ || Object.getPrototypeOf(t);
287
289
  };
288
- return M(e);
290
+ return N(e);
289
291
  }
290
- function q(e, t, n) {
292
+ function M(e, t, n) {
291
293
  if (t in e) {
292
294
  Object.defineProperty(e, t, {
293
295
  value: n,
@@ -300,14 +302,14 @@
300
302
  }
301
303
  return e;
302
304
  }
303
- var E = /^[a-z0-9]+:/;
304
- var U = /^\/\//;
305
- var D = /^\//;
306
- var L = function e(t) {
307
- return t != null && D.test(t);
305
+ var q = /^[a-z0-9]+:/;
306
+ var E = /^\/\//;
307
+ var U = /^\//;
308
+ var D = function e(t) {
309
+ return t != null && U.test(t);
308
310
  };
309
311
  var z = function e(t) {
310
- return t != null && !E.test(t) && !U.test(t);
312
+ return t != null && !q.test(t) && !E.test(t);
311
313
  };
312
314
  var H = {
313
315
  /** @private */
@@ -339,13 +341,14 @@
339
341
  var r;
340
342
  x(this, n);
341
343
  r = t.call(this, e);
342
- q(T(r), "el", null);
343
- q(T(r), "handleMount", (function(e) {
344
+ M(T(r), "el", null);
345
+ M(T(r), "handleMount", (function(e) {
344
346
  r.el = e;
345
- g(r.props.elementRef, e);
347
+ k(r.props.elementRef, e);
346
348
  }));
347
- q(T(r), "createHandleOnClick", (function(e) {
348
- return function(t) {
349
+ M(T(r), "createHandleOnClick", (function() {
350
+ var e = r.context, t = e.onClick, n = e.onLinkClick;
351
+ return function(e) {
349
352
  if (A(r.props)) {
350
353
  // when user command-click on mac or ctrl-click on other platforms, and
351
354
  // Tag is an <a>, let the click pass through, let the <a> to achieve user's
@@ -353,31 +356,37 @@
353
356
  // on mac, ctrl-click will be caught and open option menu even before hitting
354
357
  // the DOM, so we're safe to check both metaKey and ctrlKey here
355
358
  // without platform sniffing
356
- if ((t.metaKey || t.ctrlKey) && r.props.to) {
359
+ if ((e.metaKey || e.ctrlKey) && r.props.to) {
357
360
  return;
358
361
  }
359
362
  }
360
363
  if (r.props.onClick) {
361
- r.props.onClick(t);
362
- } else if (A(r.props) && e) {
363
- var n = r.props.navigationLabel;
364
- if (!n && u()(r.props.children)) {
365
- n = r.props.children;
364
+ r.props.onClick(e);
365
+ }
366
+ var o = r.props.onClick == null && t != null;
367
+ if (A(r.props) && (o || n != null)) {
368
+ var i = r.props.navigationLabel;
369
+ if (!i && u()(r.props.children)) {
370
+ i = r.props.children;
366
371
  }
367
- e(t, {
372
+ var l = {
368
373
  to: r.getTransformedUrl(r.props.to),
369
374
  originalTo: r.props.to,
370
375
  openInNewContext: r.props.openInNewContext,
371
- label: n
372
- });
376
+ label: i
377
+ };
378
+ if (o) {
379
+ t(e, l);
380
+ }
381
+ n === null || n === void 0 ? void 0 : n(e, l);
373
382
  }
374
383
  };
375
384
  }));
376
- q(T(r), "getTransformedUrl", (function(e) {
385
+ M(T(r), "getTransformedUrl", (function(e) {
377
386
  var t = r.context.transformUrl;
378
387
  return t != null ? t(e, {
379
388
  isInternal: z(e),
380
- isRootRelative: L(e)
389
+ isRootRelative: D(e)
381
390
  }) : e;
382
391
  }));
383
392
  if (false) {}
@@ -395,53 +404,52 @@
395
404
  }, {
396
405
  key: "render",
397
406
  value: function e() {
398
- var t = this.context.onClick;
399
- var n = this.createHandleOnClick(t);
407
+ var t = this.createHandleOnClick();
400
408
  // Only set the href attribute when enabled, and therefore using an <a> tag
401
409
  if (A(this.props)) {
402
- var o = this.props, i = o.children, l = o.openInNewContext, a = o.to, u = C(o, [ "children", "openInNewContext", "to" ]);
403
- var c = l ? "_blank" : undefined;
404
- var s = l && z(a) ? "noopener noreferrer" : undefined;
410
+ var n = this.props, o = n.children, i = n.openInNewContext, l = n.to, a = O(n, [ "children", "openInNewContext", "to" ]);
411
+ var u = i ? "_blank" : undefined;
412
+ var c = i && z(l) ? "noopener noreferrer" : undefined;
405
413
 
406
- return r().createElement(v, O({
414
+ return r().createElement(b, C({
407
415
  "data-test": "clickable",
408
416
  ref: this.handleMount,
409
417
  href: this.getTransformedUrl(this.props.to),
410
- target: c,
411
- rel: s,
412
- onClick: n
413
- }, f()(u, "disabled", "elementRef", "onClick")), i);
418
+ target: u,
419
+ rel: c,
420
+ onClick: t
421
+ }, f()(a, "disabled", "elementRef", "onClick")), o);
414
422
  }
415
423
  if (this.props.allowDisabledLink) {
416
- var p = this.props, d = p.children, b = C(p, [ "children" ]);
424
+ var s = this.props, p = s.children, d = O(s, [ "children" ]);
417
425
  if (this.props.disabled && this.props.to != null) {
418
426
 
419
- return r().createElement(v, O({
427
+ return r().createElement(b, C({
420
428
  "data-test": "clickable",
421
429
  ref: this.handleMount,
422
430
  role: "link",
423
431
  "aria-disabled": "true"
424
- }, f()(b, "href", "to", "elementRef", "onClick", "disabled")), d);
432
+ }, f()(d, "href", "to", "elementRef", "onClick", "disabled")), p);
425
433
  }
426
434
  }
427
435
  // button variant
428
- var y = this.props, h = y.children, m = y.type, g = C(y, [ "children", "type" ]);
436
+ var v = this.props, y = v.children, h = v.type, m = O(v, [ "children", "type" ]);
429
437
 
430
- return r().createElement(v, O({
438
+ return r().createElement(b, C({
431
439
  as: "button",
432
440
  "data-test": "clickable",
433
441
  ref: this.handleMount,
434
- type: m || "button",
435
- onClick: n
436
- }, f()(g, "elementRef", "onClick", "openInNewContext", "to")), h);
442
+ type: h || "button",
443
+ onClick: t
444
+ }, f()(m, "elementRef", "onClick", "openInNewContext", "to")), y);
437
445
  }
438
446
  } ]);
439
447
  return n;
440
448
  }(n.Component);
441
- q(B, "contextType", h);
442
- q(B, "propTypes", H);
443
- q(B, "defaultProps", K);
444
- q(B, s.legacyRefMode, true);
449
+ M(B, "contextType", h);
450
+ M(B, "propTypes", H);
451
+ M(B, "defaultProps", K);
452
+ M(B, s.legacyRefMode, true);
445
453
  /* harmony default export */ const F = B;
446
454
  // CONCATENATED MODULE: ./src/Clickable/index.ts
447
455
  module.exports = t;
package/TabBar.js CHANGED
@@ -114,9 +114,9 @@
114
114
  var k = e.n(x);
115
115
  // CONCATENATED MODULE: external "@splunk/react-ui/ScreenReaderContent"
116
116
  const w = require("@splunk/react-ui/ScreenReaderContent");
117
- var C = e.n(w);
117
+ var S = e.n(w);
118
118
  // CONCATENATED MODULE: external "@splunk/ui-utils/id"
119
- const S = require("@splunk/ui-utils/id");
119
+ const C = require("@splunk/ui-utils/id");
120
120
  // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
121
121
  const O = require("@splunk/react-ui/Clickable");
122
122
  var T = e.n(O);
@@ -261,7 +261,7 @@
261
261
  var D = s().span.withConfig({
262
262
  displayName: "TabStyles__StyledCount",
263
263
  componentId: "sc-1ry8mzj-6"
264
- })([ "display:inline-block;border-radius:18px;color:", ";font-size:", ";line-height:10px;padding:", ";margin-inline-start:", ";", " &[disabled]{background:", ";color:", ";}" ], c.variables.contentColorDefault, (0,
264
+ })([ "display:inline-block;border-radius:18px;color:", ";font-size:", ";line-height:10px;padding:", ";margin-inline-start:", ";", " &[disabled]{color:", ";}" ], c.variables.contentColorDefault, (0,
265
265
  c.pick)({
266
266
  enterprise: "inherit",
267
267
  prisma: "10px"
@@ -274,7 +274,7 @@
274
274
  }), (0, c.pick)({
275
275
  enterprise: (0, l.css)([ "&::before{content:'(';}&::after{content:')';}" ]),
276
276
  prisma: (0, l.css)([ "background:", ";" ], c.variables.neutral100)
277
- }), c.variables.interactiveColorBackgroundDisabled, c.variables.contentColorDisabled);
277
+ }), c.variables.contentColorDisabled);
278
278
  var R = s().div.withConfig({
279
279
  displayName: "TabStyles__StyledTooltipContent",
280
280
  componentId: "sc-1ry8mzj-7"
@@ -553,9 +553,9 @@
553
553
  re(Z(n), "handleBlur", (function() {
554
554
  n.handleTooltipClose();
555
555
  }));
556
- n.popoverId = (0, S.createDOMID)("popover");
557
- n.ariaId = (0, S.createDOMID)("aria-id");
558
- n.menuDescription = (0, S.createDOMID)("menu-description");
556
+ n.popoverId = (0, C.createDOMID)("popover");
557
+ n.ariaId = (0, C.createDOMID)("aria-id");
558
+ n.menuDescription = (0, C.createDOMID)("menu-description");
559
559
  n.state = {
560
560
  open: false,
561
561
  anchor: null
@@ -572,7 +572,7 @@
572
572
  key: "render",
573
573
  value: function e() {
574
574
  var t = this.props, r = t.active, i = t.ariaControls, a = t.count, o = t.disabled, l = t.icon, s = t.label, c = t.tabId, u = t.maxCount, p = t.splunkTheme, v = t.to, h = t.tooltip, m = t.menu, x = t.tabKey, w = U(t, [ "active", "ariaControls", "count", "disabled", "icon", "label", "tabId", "maxCount", "splunkTheme", "to", "tooltip", "menu", "tabKey" ]);
575
- var S = this.state, O = S.anchor, T = S.open;
575
+ var C = this.state, O = C.anchor, T = C.open;
576
576
  var I = this.context, j = I.appearance, q = I.disabled, A = I.iconSize, V = I.layout, B = I.width, F = I.onMenuOpen, W = I.onMenuClose, L = I.isMenuOpen, H = I.focusedTabKey;
577
577
  var Y = w.style;
578
578
  var G = q || o || false;
@@ -650,10 +650,10 @@
650
650
  $withUnderline: j === "navigation"
651
651
  }, l && n().createElement(E, {
652
652
  $iconSize: J
653
- }, l), s, !m && (a === 0 || a) && n().createElement(n().Fragment, null, n().createElement(C(), null, " "), n().createElement(D, {
653
+ }, l), s, !m && (a === 0 || a) && n().createElement(n().Fragment, null, n().createElement(S(), null, " "), n().createElement(D, {
654
654
  "data-test": "count",
655
655
  disabled: G
656
- }, u ? K(a, u) : a)), !!m && n().createElement(C(), {
656
+ }, u ? K(a, u) : a)), !!m && n().createElement(S(), {
657
657
  "aria-hidden": true,
658
658
  id: this.menuDescription
659
659
  }, (0, f._)("Press Shift + F10 to open the tab’s menu")))), n().createElement(M, {
@@ -671,7 +671,7 @@
671
671
  id: this.popoverId,
672
672
  open: !!O && T,
673
673
  align: "center"
674
- }, n().createElement(R, null, h)), h && n().createElement(C(), {
674
+ }, n().createElement(R, null, h)), h && n().createElement(S(), {
675
675
  "aria-hidden": "true",
676
676
  id: this.ariaId
677
677
  }, h));
@@ -813,8 +813,8 @@
813
813
  function ke(e) {
814
814
  var t = e.activeTabId, i = e.autoActivate, a = e.appearance, l = a === void 0 ? "navigation" : a, s = e.children, c = e.disabled, p = c === void 0 ? false : c, d = e.elementRef, f = e.iconSize, v = f === void 0 ? "inline" : f, b = e.layout, h = b === void 0 ? "horizontal" : b, y = e.onChange, m = e.tabWidth, g = ye(e, [ "activeTabId", "autoActivate", "appearance", "children", "disabled", "elementRef", "iconSize", "layout", "onChange", "tabWidth" ]);
815
815
  // @docs-props-type TabBarPropsBase
816
- var x = (0, r.useState)(false), k = pe(x, 2), w = k[0], C = k[1];
817
- var S = (0, r.useState)(0), O = pe(S, 2), T = O[0], I = O[1];
816
+ var x = (0, r.useState)(false), k = pe(x, 2), w = k[0], S = k[1];
817
+ var C = (0, r.useState)(0), O = pe(C, 2), T = O[0], I = O[1];
818
818
  var j = (0, r.useRef)([]);
819
819
  var z = h === "vertical" ? "down" : "right";
820
820
  var M = h === "vertical" ? "up" : "left";
@@ -868,7 +868,7 @@
868
868
  } else if (t === "end") {
869
869
  r = ce(j.current, T, j.current.length - 1);
870
870
  } else if (h === "horizontal" && e.shiftKey && t === "f10") {
871
- C((function(e) {
871
+ S((function(e) {
872
872
  if (e) {
873
873
  var t;
874
874
  // if we're closing, we want to shift focus to the tab
@@ -878,7 +878,7 @@
878
878
  return !e;
879
879
  }));
880
880
  } else if (h === "horizontal" && t === "down") {
881
- C(true);
881
+ S(true);
882
882
  }
883
883
  if (r != null) {
884
884
  var n;
@@ -889,13 +889,13 @@
889
889
  var R = (0, r.useCallback)((function(e) {
890
890
  // prevent clicking on the menu icon from changing the active tab
891
891
  e.stopPropagation();
892
- C(true);
892
+ S(true);
893
893
  }), []);
894
894
  var q = (0, r.useCallback)((function(e) {
895
895
  var t = e.event;
896
896
  // prevent content clicks/enter key from changing the active tab
897
897
  t === null || t === void 0 ? void 0 : t.stopPropagation();
898
- C(false);
898
+ S(false);
899
899
  }), []);
900
900
  var A = (0, r.useMemo)((function() {
901
901
  return {
package/Text.js CHANGED
@@ -309,14 +309,8 @@
309
309
  var U = N().span.withConfig({
310
310
  displayName: "TextStyles__StyledInputWrapper",
311
311
  componentId: "eg7n6t-3"
312
- })([ "", ";flex-grow:1;min-height:", ";position:relative;overflow:hidden;border:1px solid ", ";border-radius:", ";box-sizing:border-box;background-color:", ";box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);padding:", ";align-items:center;", " ", " &:hover:not([disabled]){border-color:", ";}&:focus-within:not([disabled]){box-shadow:", ";color:", ";}", " ", " ", " ", "" ], A.mixins.reset("inline-flex"), A.variables.inputHeight, (0,
312
+ })([ "", ";flex-grow:1;min-height:", ";position:relative;overflow:hidden;border:1px solid ", ";border-radius:", ";box-sizing:border-box;background-color:", ";box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);padding:", ";align-items:center;", " ", " &:hover:not([disabled]){border-color:", ";}&:focus-within:not([disabled]){box-shadow:", ";color:", ";}", " ", " ", " ", "" ], A.mixins.reset("inline-flex"), A.variables.inputHeight, A.variables.interactiveColorBorder, A.variables.borderRadius, (0,
313
313
  A.pick)({
314
- enterprise: {
315
- light: A.variables.gray60,
316
- dark: A.variables.gray20
317
- },
318
- prisma: A.variables.interactiveColorBorder
319
- }), A.variables.borderRadius, (0, A.pick)({
320
314
  enterprise: {
321
315
  light: A.variables.white,
322
316
  dark: A.variables.gray22
@@ -331,13 +325,7 @@
331
325
  }), (function(e) {
332
326
  var t = e.$hasStartAdornment;
333
327
  return t && (0, D.css)([ "padding-left:0;" ]);
334
- }), (0, A.pick)({
335
- enterprise: {
336
- light: A.variables.gray60,
337
- dark: A.variables.gray20
338
- },
339
- prisma: A.variables.interactiveColorBorderHover
340
- }), A.variables.focusShadow, A.variables.contentColorActive, (function(e) {
328
+ }), A.variables.interactiveColorBorderHover, A.variables.focusShadow, A.variables.contentColorActive, (function(e) {
341
329
  var t = e.$error;
342
330
  return t && (0, D.css)([ "&,&:hover:not([disabled]){border-color:", ";}&:focus-within:not([disabled]){box-shadow:", ";color:", ";}" ], A.variables.accentColorNegative, A.variables.focusShadow, A.variables.contentColorActive);
343
331
  }), (function(e) {
@@ -348,13 +336,9 @@
348
336
  return t && (0, D.css)([ "border-top-left-radius:0;border-bottom-left-radius:0;" ]);
349
337
  }), (function(e) {
350
338
  var t = e.disabled;
351
- return t && (0, D.css)([ "", " box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);" ], (0,
339
+ return t && (0, D.css)([ "border-color:", ";box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);", "" ], A.variables.interactiveColorBorderDisabled, (0,
352
340
  A.pick)({
353
- enterprise: {
354
- light: (0, D.css)([ "background-color:", ";border-color:", ";" ], A.variables.gray96, A.variables.gray92),
355
- dark: (0, D.css)([ "background-color:", ";border-color:", ";" ], A.variables.gray22, A.variables.gray30)
356
- },
357
- prisma: (0, D.css)([ "border-color:", ";" ], A.variables.interactiveColorBorderDisabled)
341
+ enterprise: (0, D.css)([ "background-color:", ";" ], A.variables.interactiveColorBackgroundDisabled)
358
342
  }));
359
343
  }));
360
344
  /* Some of these need greater specificity than input[type=text] */ var J = N().input.withConfig({
@@ -938,7 +922,8 @@
938
922
  if (!k) {
939
923
 
940
924
  return n().createElement(re, m, n().createElement(K, {
941
- $disabled: l
925
+ $disabled: l,
926
+ "data-test": "search-icon"
942
927
  }, n().createElement(g(), {
943
928
  screenReaderText: null,
944
929
  hideDefaultTooltip: true,
@@ -959,6 +944,7 @@
959
944
  }),
960
945
  onClick: i.handleClear
961
946
  }), n().createElement(K, {
947
+ "data-test": "search-icon",
962
948
  $disabled: l
963
949
  }, u ? n().createElement(g(), {
964
950
  screenReaderText: null,
@@ -1007,6 +993,7 @@
1007
993
  if (l && t === "search") {
1008
994
 
1009
995
  return n().createElement(re, p, n().createElement(K, {
996
+ "data-test": "search-icon",
1010
997
  $disabled: o
1011
998
  }, n().createElement(w(), {
1012
999
  "aria-label": "Search",