@splunk/react-ui 4.32.0 → 4.34.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.
Files changed (80) hide show
  1. package/Button.js +59 -65
  2. package/ButtonGroup.js +20 -23
  3. package/ButtonSimple.js +374 -339
  4. package/CHANGELOG.md +54 -0
  5. package/Card.js +56 -44
  6. package/Chip.js +2 -6
  7. package/Clickable.js +21 -19
  8. package/CollapsiblePanel.js +281 -264
  9. package/Color.js +88 -86
  10. package/Concertina.js +7 -7
  11. package/ControlGroup.js +18 -18
  12. package/DualListbox.js +8 -11
  13. package/File.js +25 -30
  14. package/FormRows.js +232 -210
  15. package/Image.js +13 -13
  16. package/JSONTree.js +22 -22
  17. package/MIGRATION.mdx +99 -0
  18. package/Markdown.js +12 -12
  19. package/Menu.js +505 -719
  20. package/Message.js +205 -204
  21. package/MessageBar.js +104 -104
  22. package/Modal.js +158 -133
  23. package/Multiselect.js +81 -70
  24. package/Paginator.js +8 -8
  25. package/Popover.js +53 -54
  26. package/Progress.js +45 -46
  27. package/RadioBar.js +117 -115
  28. package/RadioList.js +8 -5
  29. package/ResultsMenu.js +256 -261
  30. package/Search.js +21 -24
  31. package/Select.js +265 -246
  32. package/Slider.js +9 -9
  33. package/SplitButton.js +1 -4
  34. package/StaticContent.js +1 -1
  35. package/StepBar.js +1 -1
  36. package/Switch.js +169 -171
  37. package/TabBar.js +14 -6
  38. package/Table.js +65 -67
  39. package/Text.js +30 -37
  40. package/TextArea.js +162 -163
  41. package/Tooltip.js +1 -1
  42. package/package.json +9 -9
  43. package/stubs-splunkui.d.ts +11 -0
  44. package/types/src/Button/Button.d.ts +4 -4
  45. package/types/src/ButtonSimple/ButtonSimple.d.ts +8 -6
  46. package/types/src/ButtonSimple/mixin.d.ts +2 -2
  47. package/types/src/Card/Card.d.ts +3 -1
  48. package/types/src/Card/Header.d.ts +22 -3
  49. package/types/src/Clickable/Clickable.d.ts +3 -2
  50. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +5 -0
  51. package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +1 -3
  52. package/types/src/Date/Date.d.ts +2 -2
  53. package/types/src/Menu/Item.d.ts +3 -1
  54. package/types/src/Menu/Menu.d.ts +16 -21
  55. package/types/src/Menu/MenuContext.d.ts +3 -2
  56. package/types/src/Number/Number.d.ts +2 -2
  57. package/types/src/RadioBar/Option.d.ts +4 -1
  58. package/types/src/RadioBar/RadioBar.d.ts +6 -4
  59. package/types/src/RadioBar/docs/examples/MenuBar.d.ts +2 -0
  60. package/types/src/ResultsMenu/ResultsMenu.d.ts +5 -22
  61. package/types/src/Select/Select.d.ts +8 -4
  62. package/types/src/Select/SelectBase.d.ts +8 -4
  63. package/types/src/Slider/Slider.d.ts +2 -2
  64. package/types/src/Table/Body.d.ts +0 -4
  65. package/types/src/Text/docs/examples/Basic.d.ts +1 -9
  66. package/types/src/Text/docs/examples/Error.d.ts +2 -10
  67. package/types/src/Text/docs/examples/Inline.d.ts +1 -9
  68. package/types/src/Text/docs/examples/Multiline.d.ts +1 -9
  69. package/types/src/Text/docs/examples/Password.d.ts +1 -9
  70. package/types/src/Text/docs/examples/Search.d.ts +1 -9
  71. package/useRovingFocus.js +26 -40
  72. package/types/src/Button/docs/examples/prisma/Basic.d.ts +0 -2
  73. package/types/src/Button/docs/examples/prisma/Block.d.ts +0 -2
  74. package/types/src/Button/docs/examples/prisma/Disabled.d.ts +0 -2
  75. package/types/src/Button/docs/examples/prisma/Icons.d.ts +0 -2
  76. package/types/src/Button/docs/examples/prisma/Menus.d.ts +0 -2
  77. package/types/src/Button/docs/examples/prisma/To.d.ts +0 -2
  78. package/types/src/Button/docs/examples/prisma/Truncated.d.ts +0 -2
  79. package/types/src/Select/docs/examples/prisma/Appearance.d.ts +0 -14
  80. /package/types/src/{Button/docs/examples/prisma → Clickable/docs/examples}/Dimmed.d.ts +0 -0
package/Table.js CHANGED
@@ -211,9 +211,9 @@
211
211
  function U(e) {
212
212
  var t = Y();
213
213
  return function n() {
214
- var r = Q(e), o;
214
+ var r = J(e), o;
215
215
  if (t) {
216
- var i = Q(this).constructor;
216
+ var i = J(this).constructor;
217
217
  o = Reflect.construct(r, arguments, i);
218
218
  } else {
219
219
  o = r.apply(this, arguments);
@@ -244,13 +244,13 @@
244
244
  return false;
245
245
  }
246
246
  }
247
- function Q(e) {
248
- Q = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
247
+ function J(e) {
248
+ J = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
249
249
  return t.__proto__ || Object.getPrototypeOf(t);
250
250
  };
251
- return Q(e);
251
+ return J(e);
252
252
  }
253
- function J(e, t, n) {
253
+ function Q(e, t, n) {
254
254
  if (t in e) {
255
255
  Object.defineProperty(e, t, {
256
256
  value: n,
@@ -447,20 +447,12 @@
447
447
  F(n, e);
448
448
  var t = U(n);
449
449
  function n() {
450
- var e;
451
450
  W(this, n);
452
- for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) {
453
- o[i] = arguments[i];
454
- }
455
- e = t.call.apply(t, [ this ].concat(o));
456
- J(X(e), "el", null);
457
- J(X(e), "rect", void 0);
458
- J(X(e), "rowHeight", void 0);
459
- J(X(e), "rows", void 0);
460
- return e;
451
+ return t.apply(this, arguments);
461
452
  }
462
453
  B(n, [ {
463
454
  key: "render",
455
+ // @docs-props-type BodyPropsBase
464
456
  value: function e() {
465
457
 
466
458
  return r().createElement(ue, this.props);
@@ -468,9 +460,9 @@
468
460
  } ]);
469
461
  return n;
470
462
  }(n.Component);
471
- J(de, "splunkUiType", "Table.Body");
472
- J(de, "propTypes", ce);
473
- J(de, "defaultProps", se);
463
+ Q(de, "splunkUiType", "Table.Body");
464
+ Q(de, "propTypes", ce);
465
+ Q(de, "defaultProps", se);
474
466
  /* harmony default export */ const fe = de;
475
467
  // exporting the base component for testing purpose
476
468
  // CONCATENATED MODULE: ./src/Table/TableStyles.ts
@@ -501,7 +493,7 @@
501
493
  displayName: "TableStyles__StyledTableCaption",
502
494
  componentId: "sc-1cmfss7-5"
503
495
  })([ "padding:", ";font-size:", ";caption-side:", ";" ], (0, M.pick)({
504
- enterprise: "".concat(M.variables.spacingQuarter, " 0"),
496
+ enterprise: "".concat(M.variables.spacingXSmall, " 0"),
505
497
  prisma: "5px 0"
506
498
  }), M.variables.fontSizeLarge, (function(e) {
507
499
  var t = e.side;
@@ -613,7 +605,13 @@
613
605
  prisma: (0, z.css)([ "color:", ";*:hover > &&{cursor:pointer;}" ], M.variables.contentColorDefault)
614
606
  },
615
607
  link: {
616
- enterprise: (0, z.css)([ "color:", ";&:hover{cursor:pointer;color:{dark:variables.accentColorL20,light:variables.linkColor,};box-shadow:", ";}&:focus{color:{dark:variables.accentColorL20,light:variables.focusColor,};box-shadow:", ";}" ], M.variables.linkColor, M.variables.focusShadowInset, M.variables.focusShadowInset)
608
+ enterprise: (0, z.css)([ "color:", ";&:hover{cursor:pointer;", " box-shadow:", ";}&:focus{", " box-shadow:", ";}" ], M.variables.linkColor, (0,
609
+ M.pick)({
610
+ dark: (0, z.css)([ "color:", ";" ], M.variables.accentColorL20)
611
+ }), M.variables.focusShadowInset, (0, M.pick)({
612
+ dark: (0, z.css)([ "color:", ";" ], M.variables.accentColorL20),
613
+ light: (0, z.css)([ "color:", ";" ], M.variables.focusColor)
614
+ }), M.variables.focusShadowInset)
617
615
  }
618
616
  }), (function(e) {
619
617
  var t = e.$clickable, n = e.$focusWithin;
@@ -878,10 +876,10 @@
878
876
  var Xe = e.n(Ge);
879
877
  // CONCATENATED MODULE: external "lodash/isString"
880
878
  const Ye = require("lodash/isString");
881
- var Qe = e.n(Ye);
879
+ var Je = e.n(Ye);
882
880
  // CONCATENATED MODULE: external "lodash/merge"
883
- const Je = require("lodash/merge");
884
- var Ze = e.n(Je);
881
+ const Qe = require("lodash/merge");
882
+ var Ze = e.n(Qe);
885
883
  // CONCATENATED MODULE: external "@splunk/react-icons/ArrowDown"
886
884
  const et = require("@splunk/react-icons/ArrowDown");
887
885
  var tt = e.n(et);
@@ -1397,8 +1395,8 @@
1397
1395
  truncate: i().bool,
1398
1396
  width: i().oneOfType([ i().number, i().oneOf([ "auto" ]) ])
1399
1397
  };
1400
- var Qt = new Set([ "none", "asc", "desc" ]);
1401
- var Jt = Object.freeze({
1398
+ var Jt = new Set([ "none", "asc", "desc" ]);
1399
+ var Qt = Object.freeze({
1402
1400
  none: (0, D._)("Click to sort"),
1403
1401
  asc: (0, D._)("Press to sort descending"),
1404
1402
  desc: (0, D._)("Press to sort ascending")
@@ -1422,7 +1420,7 @@
1422
1420
  var H = (0, n.useState)(false), L = Wt(H, 2), N = L[0], $ = L[1];
1423
1421
  var W = (0, n.useState)(false), K = Wt(W, 2), B = K[0], F = K[1];
1424
1422
  var V = (0, n.useState)(0), U = Wt(V, 2), G = U[0], X = U[1];
1425
- var Y = (0, n.useState)(0), Q = Wt(Y, 2), J = Q[0], Z = Q[1];
1423
+ var Y = (0, n.useState)(0), J = Wt(Y, 2), Q = J[0], Z = J[1];
1426
1424
  var ee = (0, n.useRef)(null);
1427
1425
  // Cleanup dragend, and unmount during drag
1428
1426
  (0, n.useEffect)((function() {
@@ -1433,10 +1431,10 @@
1433
1431
  var te;
1434
1432
  var ne;
1435
1433
  var re;
1436
- if (C !== undefined && Qt.has(C)) {
1434
+ if (C !== undefined && Jt.has(C)) {
1437
1435
  var oe = j ? Zt : en;
1438
1436
  ne = oe[C];
1439
- re = Jt[C];
1437
+ re = Qt[C];
1440
1438
  }
1441
1439
  if (a === "auto") {
1442
1440
  var ie;
@@ -1505,7 +1503,7 @@
1505
1503
  };
1506
1504
  var ue = function e(n) {
1507
1505
  var r = G - n.clientX;
1508
- var a = Math.max(J - r, 16);
1506
+ var a = Math.max(Q - r, 16);
1509
1507
  if (t !== undefined) {
1510
1508
  b === null || b === void 0 ? void 0 : b(n, {
1511
1509
  index: t,
@@ -1916,7 +1914,7 @@
1916
1914
  ref: c,
1917
1915
  "aria-sort": y && (this.sortDirAriaMapping[w] || "none"),
1918
1916
  "data-test": "head-cell",
1919
- "data-test-label": Qe()(a) ? a : undefined,
1917
+ "data-test-label": Je()(a) ? a : undefined,
1920
1918
  "data-test-sort-dir": y && w,
1921
1919
  id: S ? u : undefined,
1922
1920
  onClick: y || j ? this.handleClick : undefined,
@@ -2059,7 +2057,7 @@
2059
2057
  title: o ? (0, D._)("Collapse row") : (0, D._)("Expand row")
2060
2058
  }, u);
2061
2059
  };
2062
- var Qn = H()(Yn).withConfig({
2060
+ var Jn = H()(Yn).withConfig({
2063
2061
  displayName: "ExpansionRow__StyledExpansionRowIcon",
2064
2062
  componentId: "sc-1b6vao4-0"
2065
2063
  })([ "transition:transform ", ";", "" ], (0, M.pick)({
@@ -2068,8 +2066,8 @@
2068
2066
  }), (function(e) {
2069
2067
  return e.expanded && (0, z.css)([ "transform:rotate(90deg);" ]);
2070
2068
  }));
2071
- Qn.propTypes = Xn;
2072
- /* harmony default export */ const Jn = Qn;
2069
+ Jn.propTypes = Xn;
2070
+ /* harmony default export */ const Qn = Jn;
2073
2071
  // CONCATENATED MODULE: ./src/Table/RowDragCellStyles.ts
2074
2072
  var Zn = H().td.withConfig({
2075
2073
  displayName: "RowDragCellStyles__StyledCell",
@@ -2632,7 +2630,7 @@
2632
2630
  L(e);
2633
2631
  }
2634
2632
  }
2635
- var Q = !w ? n.Children.toArray(c).map((function(e) {
2633
+ var J = !w ? n.Children.toArray(c).map((function(e) {
2636
2634
 
2637
2635
  return (0, n.cloneElement)(e, {
2638
2636
  disabled: d
@@ -2644,15 +2642,15 @@
2644
2642
  disabled: d
2645
2643
  });
2646
2644
  }));
2647
- var J;
2645
+ var Q;
2648
2646
  if (O) {
2649
- J = O;
2650
- } else if ((t = Q[S]) === null || t === void 0 ? void 0 : t.props.children) {
2647
+ Q = O;
2648
+ } else if ((t = J[S]) === null || t === void 0 ? void 0 : t.props.children) {
2651
2649
  var Z;
2652
- J = "".concat((Z = Q[S]) === null || Z === void 0 ? void 0 : Z.props.children);
2650
+ Q = "".concat((Z = J[S]) === null || Z === void 0 ? void 0 : Z.props.children);
2653
2651
  } else {
2654
2652
  var ee;
2655
- J = "".concat((ee = Q[0]) === null || ee === void 0 ? void 0 : ee.props.children);
2653
+ Q = "".concat((ee = J[0]) === null || ee === void 0 ? void 0 : ee.props.children);
2656
2654
  if (false) {}
2657
2655
  }
2658
2656
  var te = (0, T.sprintf)((0, D._)("%(selected)s"), {
@@ -2682,7 +2680,7 @@
2682
2680
  style: W
2683
2681
  }), f && b != null && r().createElement(ar, Nr({
2684
2682
  "aria-label": (0, T.sprintf)((0, D._)("Reorder %(rowLabelValue)s"), {
2685
- rowLabelValue: J
2683
+ rowLabelValue: Q
2686
2684
  }),
2687
2685
  setActivatorNodeRef: $,
2688
2686
  listeners: z
@@ -2697,7 +2695,7 @@
2697
2695
  "data-test": "toggle"
2698
2696
  }, r().createElement(kr, {
2699
2697
  "aria-label": (0, T.sprintf)((0, D._)("%(rowLabelValue)s %(selectedString)s"), {
2700
- rowLabelValue: J,
2698
+ rowLabelValue: Q,
2701
2699
  selectedString: te
2702
2700
  }),
2703
2701
  disabled: d,
@@ -2714,12 +2712,12 @@
2714
2712
  onClick: U,
2715
2713
  rowSpan: re,
2716
2714
  variant: "expand"
2717
- }, r().createElement(Jn, {
2715
+ }, r().createElement(Qn, {
2718
2716
  expanded: h
2719
2717
  })), v && !y && r().createElement(dr, {
2720
2718
  variant: "expand",
2721
2719
  "data-movable-column": oe
2722
- }), Q, o && !i && !a && r().createElement(Fe, {
2720
+ }), J, o && !i && !a && r().createElement(Fe, {
2723
2721
  align: "right",
2724
2722
  appearance: d ? "data" : "rowLink",
2725
2723
  "data-test": "row-actions",
@@ -2777,7 +2775,7 @@
2777
2775
  enterprise: "32px",
2778
2776
  prisma: "40px"
2779
2777
  }));
2780
- var Qr = H()(In).withConfig({
2778
+ var Jr = H()(In).withConfig({
2781
2779
  displayName: "HeadStyles__StyledDragRow",
2782
2780
  componentId: "iap21t-3"
2783
2781
  })([ "width:", ";" ], (0, M.pick)({
@@ -2785,18 +2783,18 @@
2785
2783
  prisma: "40px"
2786
2784
  }));
2787
2785
  // CONCATENATED MODULE: ./src/Table/Head.tsx
2788
- function Jr(e) {
2786
+ function Qr(e) {
2789
2787
  "@babel/helpers - typeof";
2790
2788
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
2791
- Jr = function e(t) {
2789
+ Qr = function e(t) {
2792
2790
  return typeof t;
2793
2791
  };
2794
2792
  } else {
2795
- Jr = function e(t) {
2793
+ Qr = function e(t) {
2796
2794
  return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2797
2795
  };
2798
2796
  }
2799
- return Jr(e);
2797
+ return Qr(e);
2800
2798
  }
2801
2799
  function Zr() {
2802
2800
  Zr = Object.assign || function(e) {
@@ -2865,7 +2863,7 @@
2865
2863
  };
2866
2864
  }
2867
2865
  function ao(e, t) {
2868
- if (t && (Jr(t) === "object" || typeof t === "function")) {
2866
+ if (t && (Qr(t) === "object" || typeof t === "function")) {
2869
2867
  return t;
2870
2868
  }
2871
2869
  return lo(e);
@@ -3220,7 +3218,7 @@
3220
3218
  return r().createElement(Gr, Zr({
3221
3219
  ref: this.handleMount,
3222
3220
  "data-test": I
3223
- }, g()(this.props, Xe()(o.propTypes))), r().createElement(Ur, null, s && r().createElement(Qr, {
3221
+ }, g()(this.props, Xe()(o.propTypes))), r().createElement(Ur, null, s && r().createElement(Jr, {
3224
3222
  key: "drag_rows_head_cell",
3225
3223
  "data-test": "drag-rows-head-cell",
3226
3224
  align: "center",
@@ -3755,12 +3753,12 @@
3755
3753
  /* harmony default export */ const Go = Uo;
3756
3754
  // CONCATENATED MODULE: ./src/Table/KeyboardSensor.ts
3757
3755
  function Xo(e, t) {
3758
- return Jo(e) || Qo(e, t) || ti(e, t) || Yo();
3756
+ return Qo(e) || Jo(e, t) || ti(e, t) || Yo();
3759
3757
  }
3760
3758
  function Yo() {
3761
3759
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3762
3760
  }
3763
- function Qo(e, t) {
3761
+ function Jo(e, t) {
3764
3762
  if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(e))) return;
3765
3763
  var n = [];
3766
3764
  var r = true;
@@ -3783,7 +3781,7 @@
3783
3781
  }
3784
3782
  return n;
3785
3783
  }
3786
- function Jo(e) {
3784
+ function Qo(e) {
3787
3785
  if (Array.isArray(e)) return e;
3788
3786
  }
3789
3787
  function Zo(e) {
@@ -4567,12 +4565,12 @@
4567
4565
  }
4568
4566
  return Yi(e);
4569
4567
  }
4570
- function Qi(e, t) {
4568
+ function Ji(e, t) {
4571
4569
  if (!(e instanceof t)) {
4572
4570
  throw new TypeError("Cannot call a class as a function");
4573
4571
  }
4574
4572
  }
4575
- function Ji(e, t) {
4573
+ function Qi(e, t) {
4576
4574
  for (var n = 0; n < t.length; n++) {
4577
4575
  var r = t[n];
4578
4576
  r.enumerable = r.enumerable || false;
@@ -4582,8 +4580,8 @@
4582
4580
  }
4583
4581
  }
4584
4582
  function Zi(e, t, n) {
4585
- if (t) Ji(e.prototype, t);
4586
- if (n) Ji(e, n);
4583
+ if (t) Qi(e.prototype, t);
4584
+ if (n) Qi(e, n);
4587
4585
  return e;
4588
4586
  }
4589
4587
  function ea(e, t) {
@@ -4874,7 +4872,7 @@
4874
4872
  var H = (0, n.useState)([]), M = pa(H, 2), L = M[0], N = M[1];
4875
4873
  var $ = (0, n.useState)(), W = pa($, 2), K = W[0], B = W[1];
4876
4874
  var F = (0, n.useState)(), V = pa(F, 2), U = V[0], G = V[1];
4877
- var X = (0, n.useState)(), Y = pa(X, 2), Q = Y[0], J = Y[1];
4875
+ var X = (0, n.useState)(), Y = pa(X, 2), J = Y[0], Q = Y[1];
4878
4876
  var Z = (0, n.useState)(), ee = pa(Z, 2), te = ee[0], ne = ee[1];
4879
4877
  // states are used with dragging effect
4880
4878
  var re = (0, n.useState)(), oe = pa(re, 2), ie = oe[0], ae = oe[1];
@@ -4912,7 +4910,7 @@
4912
4910
  ne(t === null || t === void 0 ? void 0 : t.clientWidth);
4913
4911
  G(r === null || r === void 0 ? void 0 : r.clientWidth);
4914
4912
  N(o);
4915
- J(l);
4913
+ Q(l);
4916
4914
  }), [ c, p ]);
4917
4915
  (0, n.useEffect)((function() {
4918
4916
  var e = we.current;
@@ -5118,7 +5116,7 @@
5118
5116
  }, i);
5119
5117
  return l;
5120
5118
  };
5121
- var Qe = function e(r) {
5119
+ var Je = function e(r) {
5122
5120
  var o = (t === null || t === void 0 ? void 0 : t.filter(n.isValidElement)) || [];
5123
5121
  n.Children.toArray(r === null || r === void 0 ? void 0 : r.props.children).filter(n.isValidElement).forEach((function(e, t) {
5124
5122
  var r;
@@ -5139,7 +5137,7 @@
5139
5137
  stripeRows: q
5140
5138
  }, Ie);
5141
5139
  };
5142
- var Je = function e() {
5140
+ var Qe = function e() {
5143
5141
  var t = Re.current;
5144
5142
  var n = zt();
5145
5143
  if (!Sa(p) || !Oe.current || !we.current || !t) {
@@ -5158,12 +5156,12 @@
5158
5156
  return r.bottom > t.innerHeight && r.top < t.innerHeight;
5159
5157
  };
5160
5158
  var et = function e(t, o) {
5161
- if (Je()) {
5159
+ if (Qe()) {
5162
5160
  // FIXME: handle inline
5163
5161
  // Save the current head focus state so that it can be applied to the docked version
5164
5162
  // after the `HeadTable` mounts.
5165
5163
  xe.current = Ea(we.current);
5166
- if (L === undefined || U === undefined || Q === undefined || te === undefined) {
5164
+ if (L === undefined || U === undefined || J === undefined || te === undefined) {
5167
5165
  return false;
5168
5166
  }
5169
5167
  var i = (0, n.cloneElement)(t, {
@@ -5176,7 +5174,7 @@
5176
5174
  cellWidths: L,
5177
5175
  horizontalOffset: K,
5178
5176
  tableWidth: U,
5179
- top: Q,
5177
+ top: J,
5180
5178
  width: te,
5181
5179
  tableStyle: A,
5182
5180
  isFixedColumn: o,
@@ -5249,7 +5247,7 @@
5249
5247
  }));
5250
5248
  }
5251
5249
  } else if (t === "Table.Body") {
5252
- ot = Qe(e);
5250
+ ot = Je(e);
5253
5251
  } else if (t === "Table.Caption") {
5254
5252
  // the html spec mandates that a caption must be the first table child.
5255
5253
  // catch the caption here so that it can be placed first later. note: a
@@ -5357,7 +5355,7 @@
5357
5355
  ea(n, e);
5358
5356
  var t = na(n);
5359
5357
  function n() {
5360
- Qi(this, n);
5358
+ Ji(this, n);
5361
5359
  return t.apply(this, arguments);
5362
5360
  }
5363
5361
  Zi(n, [ {
package/Text.js CHANGED
@@ -290,11 +290,7 @@
290
290
  var G = N()(V()).withConfig({
291
291
  displayName: "TextStyles__StyledBox",
292
292
  componentId: "eg7n6t-2"
293
- })([ "display:flex;justify-content:space-between;flex-grow:1;flex-shrink:1;position:relative;&[data-inline]{width:230px;flex-basis:230px;[data-inline] + &{margin-left:", ";}}&:focus-within:not([disabled]){", "{", "}", "{visibility:visible;display:block;}}", "" ], (0,
294
- A.pick)({
295
- enterprise: A.variables.spacingHalf,
296
- prisma: A.variables.spacingSmall
297
- }),
293
+ })([ "display:flex;justify-content:space-between;flex-grow:1;flex-shrink:1;position:relative;&[data-inline]{width:230px;flex-basis:230px;[data-inline] + &{margin-left:", ";}}&:focus-within:not([disabled]){", "{", "}", "{visibility:visible;display:block;}}", "" ], A.variables.spacingSmall,
298
294
  /* sc-sel */
299
295
  K, (0, A.pick)({
300
296
  enterprise: (0, D.css)([ "display:none;" ])
@@ -317,8 +313,8 @@
317
313
  },
318
314
  prisma: A.variables.transparent
319
315
  }), (0, A.pick)({
320
- enterprise: "0px 10px",
321
- prisma: "0px 12px"
316
+ enterprise: "0 10px",
317
+ prisma: "0 12px"
322
318
  }), (function(e) {
323
319
  var t = e.$hasEndAdornment;
324
320
  return t && (0, D.css)([ "padding-right:0;" ]);
@@ -355,7 +351,7 @@
355
351
  compact: "20px"
356
352
  }
357
353
  }), (0, A.pick)({
358
- enterprise: A.variables.spacingHalf,
354
+ enterprise: A.variables.spacingSmall,
359
355
  prisma: "14px"
360
356
  }), A.variables.contentColorMuted, (function(e) {
361
357
  var t = e.$error;
@@ -906,7 +902,7 @@
906
902
  var h = i.state.hideVisibility ? n().createElement(B, null) : n().createElement($, null);
907
903
 
908
904
  return n().createElement(re, m, n().createElement(Q, {
909
- appearance: p ? "secondary" : "pill",
905
+ appearance: "subtle",
910
906
  "data-test": "password-toggle",
911
907
  inline: false,
912
908
  onClick: i.handleVisibilityToggle,
@@ -917,9 +913,9 @@
917
913
  var b = i.context;
918
914
  var C = (e = b.labelAttrs) === null || e === void 0 ? void 0 : e.text;
919
915
  var x = C ? (0, T._)("Clear ".concat(C, " text field")) : (0, T._)("Clear text field");
920
- var k = i.getDisplayValue();
921
- if (!p && r === "search") {
922
- if (!k) {
916
+ var w = i.getDisplayValue();
917
+ if (u && r === "search") {
918
+ if (!w) {
923
919
 
924
920
  return n().createElement(re, m, n().createElement(K, {
925
921
  $disabled: l,
@@ -933,40 +929,36 @@
933
929
  }
934
930
 
935
931
  return n().createElement(re, m, !l && n().createElement(H, {
936
- appearance: p ? "secondary" : "pill",
932
+ appearance: "subtle",
937
933
  "data-test": "clear",
938
934
  inline: false,
939
- icon: u ? n().createElement(y(), {
935
+ "aria-label": x,
936
+ icon: n().createElement(y(), {
940
937
  size: 1,
941
- screenReaderText: x
942
- }) : n().createElement(v(), {
943
- "aria-label": x
938
+ screenReaderText: null
944
939
  }),
945
940
  onClick: i.handleClear
946
941
  }), n().createElement(K, {
947
942
  "data-test": "search-icon",
948
943
  $disabled: l
949
- }, u ? n().createElement(g(), {
944
+ }, n().createElement(g(), {
950
945
  screenReaderText: null,
951
946
  hideDefaultTooltip: true,
952
947
  size: "16px",
953
948
  inline: false
954
- }) : n().createElement(w(), {
955
- width: f,
956
- height: f
957
949
  })));
958
950
  }
959
- if (!!k && (p && r === "search" || s)) {
951
+ if (!!w && (p && r === "search" || s)) {
960
952
 
961
953
  return n().createElement(re, m, !l && n().createElement(H, {
962
954
  "data-test": "clear",
963
- appearance: p ? "secondary" : "pill",
955
+ appearance: "subtle",
956
+ "aria-label": x,
964
957
  onClick: i.handleClear,
965
958
  icon: u ? n().createElement(y(), {
966
959
  inline: false,
967
- screenReaderText: x
960
+ screenReaderText: null
968
961
  }) : n().createElement(v(), {
969
- "aria-label": x,
970
962
  height: f,
971
963
  inline: false,
972
964
  width: f
@@ -996,7 +988,6 @@
996
988
  "data-test": "search-icon",
997
989
  $disabled: o
998
990
  }, n().createElement(w(), {
999
- "aria-label": "Search",
1000
991
  height: c,
1001
992
  width: c
1002
993
  })));
@@ -1118,8 +1109,10 @@
1118
1109
  var H = _ === "password" || A ? undefined : q;
1119
1110
  // Firefox hack (SUI-2716). Remove when fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=1427173
1120
1111
  var K = _ === "time";
1121
- var Q = !!this.renderEndAdornment();
1122
- var Y = !!this.renderStartAdornment();
1112
+ var Q = this.renderStartAdornment();
1113
+ var Y = this.renderEndAdornment();
1114
+ var re = !!Q;
1115
+ var ne = !!Y;
1123
1116
  if (w) {
1124
1117
 
1125
1118
  return n().createElement(E(), this.props);
@@ -1134,11 +1127,11 @@
1134
1127
  elementRef: v,
1135
1128
  flex: true,
1136
1129
  inline: y
1137
- }, N), this.renderStartAdornment(), n().createElement(U, ae({
1138
- $hasEndAdornment: Q,
1139
- $hasStartAdornment: Y,
1130
+ }, N), Q, n().createElement(U, ae({
1131
+ $hasEndAdornment: ne,
1132
+ $hasStartAdornment: re,
1140
1133
  disabled: m
1141
- }, V), Y && n().createElement(ee, {
1134
+ }, V), re && n().createElement(ee, {
1142
1135
  $width: this.state.startAdornmentWidth
1143
1136
  }), m ? n().createElement(J, ae({
1144
1137
  className: (0, O.toClassName)(p, u),
@@ -1152,15 +1145,15 @@
1152
1145
  onClick: this.handleInputClick
1153
1146
  })), F && n().createElement(L(), null, T), F && n().createElement(X, {
1154
1147
  $endAdornmentWidth: this.state.endAdornmentWidth,
1155
- $hasBothAdornment: Y && Q,
1156
- $hasEndAdornment: Q,
1157
- $hasStartAdornment: Y,
1148
+ $hasBothAdornment: re && ne,
1149
+ $hasEndAdornment: ne,
1150
+ $hasStartAdornment: re,
1158
1151
  $startAdornmentWidth: this.state.startAdornmentWidth,
1159
1152
  "aria-hidden": true,
1160
1153
  "data-role": "placeholder"
1161
- }, T), s, Q && n().createElement(te, {
1154
+ }, T), s, ne && n().createElement(te, {
1162
1155
  $width: this.state.endAdornmentWidth
1163
- })), this.renderEndAdornment());
1156
+ })), Y);
1164
1157
  }
1165
1158
  } ]);
1166
1159
  return r;