@splunk/react-ui 5.0.0-beta.5 → 5.0.0-rc.2

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 (52) hide show
  1. package/ButtonSimple.js +92 -168
  2. package/{CHANGELOG.v5.mdx → CHANGELOG.v5.md} +43 -0
  3. package/Calendar.js +148 -151
  4. package/Card.js +139 -139
  5. package/Code.js +197 -167
  6. package/CollapsiblePanel.js +172 -164
  7. package/Color.js +584 -506
  8. package/ComboBox.js +51 -51
  9. package/ControlGroup.js +132 -127
  10. package/Date.js +137 -150
  11. package/Dropdown.js +97 -96
  12. package/DualListbox.js +468 -469
  13. package/FetchOptions.d.ts +2 -2
  14. package/FormRows.js +158 -157
  15. package/JSONTree.js +354 -360
  16. package/{MIGRATION.mdx → MIGRATION.md} +13 -43
  17. package/{MIGRATION.v5.mdx → MIGRATION.v5.md} +67 -1
  18. package/Markdown.js +3 -4
  19. package/Menu.js +194 -195
  20. package/Modal.js +18 -18
  21. package/ModalLayer.js +171 -217
  22. package/Multiselect.js +785 -778
  23. package/Number.js +103 -102
  24. package/Popover.js +48 -46
  25. package/RadioBar.js +144 -146
  26. package/Resize.js +149 -151
  27. package/ResultsMenu.js +112 -114
  28. package/Search.js +49 -49
  29. package/Select.js +455 -457
  30. package/Slider.js +328 -331
  31. package/Switch.js +251 -178
  32. package/TabBar.js +277 -280
  33. package/Table.js +1212 -1178
  34. package/Text.js +45 -46
  35. package/Tooltip.js +192 -189
  36. package/Tree.js +177 -188
  37. package/package.json +10 -9
  38. package/types/src/Code/Code.d.ts +1 -1
  39. package/types/src/Color/Color.d.ts +2 -2
  40. package/types/src/ControlGroup/ControlGroup.d.ts +1 -2
  41. package/types/src/Dropdown/Dropdown.d.ts +5 -2
  42. package/types/src/Layer/Layer.d.ts +2 -1
  43. package/types/src/Layer/index.d.ts +1 -0
  44. package/types/src/ModalLayer/ModalLayer.d.ts +16 -21
  45. package/types/src/Number/Number.d.ts +1 -1
  46. package/types/src/Popover/Popover.d.ts +5 -2
  47. package/types/src/Table/HeadCell.d.ts +6 -1
  48. package/types/src/Table/HeadInner.d.ts +3 -1
  49. package/types/src/Tooltip/Tooltip.d.ts +7 -7
  50. package/types/src/fixtures/useFetchOptions.d.ts +33 -0
  51. package/useRovingFocus.js +20 -23
  52. package/types/src/fixtures/FetchOptions.d.ts +0 -76
package/Table.js CHANGED
@@ -61,14 +61,14 @@
61
61
  e.r(n);
62
62
  // EXPORTS
63
63
  e.d(n, {
64
- Body: () => /* reexport */ Z,
65
- Caption: () => /* reexport */ ve,
66
- Cell: () => /* reexport */ ke,
67
- Head: () => /* reexport */ nr,
68
- HeadCell: () => /* reexport */ Dn,
69
- HeadDropdownCell: () => /* reexport */ Sr,
70
- Row: () => /* reexport */ Mt,
71
- default: () => /* reexport */ Zo
64
+ Body: () => /* reexport */ Q,
65
+ Caption: () => /* reexport */ fe,
66
+ Cell: () => /* reexport */ Se,
67
+ Head: () => /* reexport */ Zt,
68
+ HeadCell: () => /* reexport */ _n,
69
+ HeadDropdownCell: () => /* reexport */ Cr,
70
+ Row: () => /* reexport */ _t,
71
+ default: () => /* reexport */ Jo
72
72
  });
73
73
  // CONCATENATED MODULE: external "react"
74
74
  const t = require("react");
@@ -92,8 +92,8 @@
92
92
  const v = require("lodash/indexOf");
93
93
  var p = e.n(v);
94
94
  // CONCATENATED MODULE: external "lodash/isEqual"
95
- const b = require("lodash/isEqual");
96
- var m = e.n(b);
95
+ const m = require("lodash/isEqual");
96
+ var b = e.n(m);
97
97
  // CONCATENATED MODULE: external "lodash/isNumber"
98
98
  const h = require("lodash/isNumber");
99
99
  // CONCATENATED MODULE: external "lodash/omit"
@@ -110,33 +110,31 @@
110
110
  var O = e.n(k);
111
111
  // CONCATENATED MODULE: external "@splunk/ui-utils/id"
112
112
  const R = require("@splunk/ui-utils/id");
113
- // CONCATENATED MODULE: external "@splunk/ui-utils/keyboard"
114
- const E = require("@splunk/ui-utils/keyboard");
115
113
  // CONCATENATED MODULE: external "@splunk/react-ui/ScrollContainerContext"
116
- const I = require("@splunk/react-ui/ScrollContainerContext");
114
+ const E = require("@splunk/react-ui/ScrollContainerContext");
117
115
  // CONCATENATED MODULE: external "@splunk/react-ui/usePrevious"
118
- const T = require("@splunk/react-ui/usePrevious");
119
- var j = e.n(T);
116
+ const I = require("@splunk/react-ui/usePrevious");
117
+ var T = e.n(I);
120
118
  // CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
121
- const D = require("@splunk/ui-utils/i18n");
119
+ const j = require("@splunk/ui-utils/i18n");
122
120
  // CONCATENATED MODULE: external "@splunk/ui-utils/format"
123
- const q = require("@splunk/ui-utils/format");
121
+ const D = require("@splunk/ui-utils/format");
124
122
  // CONCATENATED MODULE: external "lodash/includes"
125
- const A = require("lodash/includes");
126
- var P = e.n(A);
123
+ const q = require("lodash/includes");
124
+ var A = e.n(q);
127
125
  // CONCATENATED MODULE: external "lodash/without"
128
- const _ = require("lodash/without");
129
- var z = e.n(_);
126
+ const P = require("lodash/without");
127
+ var _ = e.n(P);
130
128
  // CONCATENATED MODULE: external "styled-components"
131
- const M = require("styled-components");
132
- var $ = e.n(M);
129
+ const z = require("styled-components");
130
+ var M = e.n(z);
133
131
  // CONCATENATED MODULE: external "@splunk/themes"
134
- const N = require("@splunk/themes");
132
+ const $ = require("@splunk/themes");
135
133
  // CONCATENATED MODULE: ./src/Table/BodyStyles.ts
136
- var W = $().tbody.withConfig({
134
+ var N = M().tbody.withConfig({
137
135
  displayName: "BodyStyles__Styled",
138
136
  componentId: "sc-1k5p6pq-0"
139
- })([ "", " z-index:0;" ], N.mixins.reset("table-row-group"));
137
+ })([ "", " z-index:0;" ], $.mixins.reset("table-row-group"));
140
138
  // CONCATENATED MODULE: ./src/utils/updateReactRef.ts
141
139
  /**
142
140
  * Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
@@ -144,7 +142,7 @@
144
142
  * @param ref - The React callback or object ref. Can be `null` or `undefined`.
145
143
  * @param current - The new value of the ref.
146
144
  */
147
- function L(e, n) {
145
+ function W(e, n) {
148
146
  if (e) {
149
147
  if (typeof e === "function") {
150
148
  e(n);
@@ -157,8 +155,8 @@
157
155
  }
158
156
  }
159
157
  // CONCATENATED MODULE: ./src/Table/Body.tsx
160
- function H() {
161
- return H = Object.assign ? Object.assign.bind() : function(e) {
158
+ function L() {
159
+ return L = Object.assign ? Object.assign.bind() : function(e) {
162
160
  for (var n = 1; n < arguments.length; n++) {
163
161
  var t = arguments[n];
164
162
  for (var r in t) {
@@ -166,29 +164,29 @@
166
164
  }
167
165
  }
168
166
  return e;
169
- }, H.apply(null, arguments);
167
+ }, L.apply(null, arguments);
170
168
  }
171
- function K(e, n) {
172
- return X(e) || U(e, n) || V(e, n) || B();
169
+ function H(e, n) {
170
+ return U(e) || F(e, n) || B(e, n) || K();
173
171
  }
174
- function B() {
172
+ function K() {
175
173
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
176
174
  }
177
- function V(e, n) {
175
+ function B(e, n) {
178
176
  if (e) {
179
- if ("string" == typeof e) return F(e, n);
177
+ if ("string" == typeof e) return V(e, n);
180
178
  var t = {}.toString.call(e).slice(8, -1);
181
- return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? F(e, n) : void 0;
179
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? V(e, n) : void 0;
182
180
  }
183
181
  }
184
- function F(e, n) {
182
+ function V(e, n) {
185
183
  (null == n || n > e.length) && (n = e.length);
186
184
  for (var t = 0, r = Array(n); t < n; t++) {
187
185
  r[t] = e[t];
188
186
  }
189
187
  return r;
190
188
  }
191
- function U(e, n) {
189
+ function F(e, n) {
192
190
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
193
191
  if (null != t) {
194
192
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -210,12 +208,12 @@
210
208
  return l;
211
209
  }
212
210
  }
213
- function X(e) {
211
+ function U(e) {
214
212
  if (Array.isArray(e)) return e;
215
213
  }
216
- function Y(e, n) {
214
+ function X(e, n) {
217
215
  if (null == e) return {};
218
- var t, r, o = G(e, n);
216
+ var t, r, o = Y(e, n);
219
217
  if (Object.getOwnPropertySymbols) {
220
218
  var i = Object.getOwnPropertySymbols(e);
221
219
  for (r = 0; r < i.length; r++) {
@@ -224,7 +222,7 @@
224
222
  }
225
223
  return o;
226
224
  }
227
- function G(e, n) {
225
+ function Y(e, n) {
228
226
  if (null == e) return {};
229
227
  var t = {};
230
228
  for (var r in e) {
@@ -235,7 +233,7 @@
235
233
  }
236
234
  return t;
237
235
  }
238
- var J = {
236
+ var G = {
239
237
  /** @private. Generally passed by Table rather than added directly. */
240
238
  actions: i().bool,
241
239
  children: i().node,
@@ -251,27 +249,27 @@
251
249
  /** @private. Generally passed by Table rather than added directly. */
252
250
  stripeRows: i().bool
253
251
  };
254
- function Q(e) {
255
- var n = e.actions, o = e.children, i = e.elementRef, a = e.movableColumns, l = e.onRequestMoveRow, u = e.rowExpansion, s = u === void 0 ? "none" : u, c = e.primaryColumnIndex, d = e.stripeRows, f = Y(e, [ "actions", "children", "elementRef", "movableColumns", "onRequestMoveRow", "rowExpansion", "primaryColumnIndex", "stripeRows" ]);
252
+ function J(e) {
253
+ var n = e.actions, o = e.children, i = e.elementRef, a = e.movableColumns, l = e.onRequestMoveRow, u = e.rowExpansion, s = u === void 0 ? "none" : u, c = e.primaryColumnIndex, d = e.stripeRows, f = X(e, [ "actions", "children", "elementRef", "movableColumns", "onRequestMoveRow", "rowExpansion", "primaryColumnIndex", "stripeRows" ]);
256
254
  // @docs-props-type BodyPropsBase
257
255
  var v = [];
258
- var p = (0, t.useState)([]), b = K(p, 2), m = b[0], h = b[1];
256
+ var p = (0, t.useState)([]), m = H(p, 2), b = m[0], h = m[1];
259
257
  var y = (0, t.useRef)(null);
260
258
  var g = (0, t.useCallback)((function(e) {
261
259
  y.current = e;
262
- L(i, e);
260
+ W(i, e);
263
261
  }), [ i, y ]);
264
262
  var w = function e(n, t, r) {
265
- var o = m;
263
+ var o = b;
266
264
  if (s === "single") {
267
- if (P()(o, t)) {
265
+ if (A()(o, t)) {
268
266
  h([]);
269
267
  } else {
270
268
  h([ t ]);
271
269
  }
272
270
  } else if (s === "multi") {
273
- if (P()(o, t)) {
274
- h(z()(o, t));
271
+ if (A()(o, t)) {
272
+ h(_()(o, t));
275
273
  } else {
276
274
  h(o === null || o === void 0 ? void 0 : o.concat(t));
277
275
  }
@@ -279,7 +277,7 @@
279
277
  r === null || r === void 0 ? void 0 : r(n);
280
278
  };
281
279
  var C = t.Children.toArray(o).filter(t.isValidElement);
282
- var x = (0, t.useState)(new Map), S = K(x, 2), k = S[0], O = S[1];
280
+ var x = (0, t.useState)(new Map), S = H(x, 2), k = S[0], O = S[1];
283
281
  r().useEffect((function() {
284
282
  O((function(e) {
285
283
  var n = new Map(e);
@@ -309,7 +307,7 @@
309
307
  var u = (o = e.key) !== null && o !== void 0 ? o : r;
310
308
  var f = r % 2 ? "even" : "odd";
311
309
  var p = d ? f : "none";
312
- var b = s === "controlled" ? e.props.expanded : P()(m, u);
310
+ var m = s === "controlled" ? e.props.expanded : A()(b, u);
313
311
  var h = function n(t) {
314
312
  w(t, u, e.props.onExpansion);
315
313
  };
@@ -317,7 +315,7 @@
317
315
  v.push( (0, t.cloneElement)(e, {
318
316
  stripe: p,
319
317
  actions: n,
320
- expanded: b,
318
+ expanded: m,
321
319
  expansionRowIds: y,
322
320
  expandable: s !== "none",
323
321
  isDraggable: !!l,
@@ -326,7 +324,7 @@
326
324
  onExpansion: h,
327
325
  key: e.key || r
328
326
  }));
329
- if (b && e.props.expansionRow) {
327
+ if (m && e.props.expansionRow) {
330
328
  t.Children.forEach(e.props.expansionRow, (function(e, n) {
331
329
  var r;
332
330
  var o = (r = k.get(u)) === null || r === void 0 ? void 0 : r[n];
@@ -345,60 +343,60 @@
345
343
  return null;
346
344
  }
347
345
 
348
- return r().createElement(W, H({
346
+ return r().createElement(N, L({
349
347
  "data-test": "body"
350
348
  }, f, {
351
349
  ref: g
352
350
  }), v);
353
351
  }
354
- Q.propTypes = J;
355
- Q.splunkUiType = "Table.Body";
356
- /* harmony default export */ const Z = Q;
352
+ J.propTypes = G;
353
+ J.splunkUiType = "Table.Body";
354
+ /* harmony default export */ const Q = J;
357
355
  // CONCATENATED MODULE: ./src/Table/TableStyles.ts
358
- var ee = $().div.withConfig({
356
+ var Z = M().div.withConfig({
359
357
  displayName: "TableStyles__Styled",
360
358
  componentId: "sc-1cmfss7-0"
361
- })([ "", ";max-width:100%;position:relative;z-index:1;@media print{max-height:none !important;}" ], N.mixins.reset("block"));
362
- var ne = $().div.withConfig({
359
+ })([ "", ";max-width:100%;position:relative;z-index:1;@media print{max-height:none !important;}" ], $.mixins.reset("block"));
360
+ var ee = M().div.withConfig({
363
361
  displayName: "TableStyles__StyledTableContainer",
364
362
  componentId: "sc-1cmfss7-1"
365
363
  })([ "overflow:auto;", " &::before{content:'';width:100%;height:0;top:0;position:absolute;}" ], (function(e) {
366
364
  var n = e.$dragging;
367
- return n && (0, M.css)([ "overflow:hidden;" ]);
365
+ return n && (0, z.css)([ "overflow:hidden;" ]);
368
366
  }));
369
- var te = $().table.withConfig({
367
+ var ne = M().table.withConfig({
370
368
  displayName: "TableStyles__StyledTable",
371
369
  componentId: "sc-1cmfss7-2"
372
- })([ "", ";position:relative;border-collapse:collapse;border-spacing:0;min-width:100%;z-index:0;height:1px;&[data-fixed-column='true']{table-layout:fixed;min-width:0;width:0;}", " @media print{width:100%;max-width:100%;table-layout:auto;}" ], N.mixins.reset("table"), (function(e) {
370
+ })([ "", ";position:relative;border-collapse:collapse;border-spacing:0;min-width:100%;z-index:0;height:1px;&[data-fixed-column='true']{table-layout:fixed;min-width:0;width:0;}", " @media print{width:100%;max-width:100%;table-layout:auto;}" ], $.mixins.reset("table"), (function(e) {
373
371
  var n = e.$resizableFillLayout;
374
- return n && (0, M.css)([ "width:100%;min-width:100%;table-layout:fixed;" ]);
372
+ return n && (0, z.css)([ "width:100%;min-width:100%;table-layout:fixed;" ]);
375
373
  }));
376
- var re = $().div.withConfig({
374
+ var te = M().div.withConfig({
377
375
  displayName: "TableStyles__StyledDockedScrollbar",
378
376
  componentId: "sc-1cmfss7-3"
379
- })([ "position:fixed;bottom:0;overflow:auto;z-index:calc(", " + 1);" ], N.variables.zindexFixedNavbar);
380
- var oe = $().div.withConfig({
377
+ })([ "position:fixed;bottom:0;overflow:auto;z-index:calc(", " + 1);" ], $.variables.zindexFixedNavbar);
378
+ var re = M().div.withConfig({
381
379
  displayName: "TableStyles__StyledDockedScrollbarContent",
382
380
  componentId: "sc-1cmfss7-4"
383
381
  })([ "height:1px;" ]);
384
- var ie = $().caption.withConfig({
382
+ var oe = M().caption.withConfig({
385
383
  displayName: "TableStyles__StyledTableCaption",
386
384
  componentId: "sc-1cmfss7-5"
387
- })([ "padding:", " 0;font-size:", ";caption-side:", ";" ], N.variables.spacingXSmall, N.variables.fontSizeLarge, (function(e) {
385
+ })([ "padding:", " 0;font-size:", ";caption-side:", ";" ], $.variables.spacingXSmall, $.variables.fontSizeLarge, (function(e) {
388
386
  var n = e.side;
389
387
  return n;
390
388
  }));
391
- var ae = $().table.withConfig({
389
+ var ie = M().table.withConfig({
392
390
  displayName: "TableStyles__StyledDragShadowTable",
393
391
  componentId: "sc-1cmfss7-6"
394
- })([ "display:block;background:", ";border-collapse:collapse;height:", ";width:", ";" ], N.variables.interactiveColorOverlayDrag, (function(e) {
392
+ })([ "display:block;background:", ";border-collapse:collapse;height:", ";width:", ";" ], $.variables.interactiveColorOverlayDrag, (function(e) {
395
393
  var n = e.$height;
396
394
  return "".concat(n, "px");
397
395
  }), (function(e) {
398
396
  var n = e.$width;
399
397
  return "".concat(n, "px");
400
398
  }));
401
- var le = $().div.withConfig({
399
+ var ae = M().div.withConfig({
402
400
  displayName: "TableStyles__StyledGuideLine",
403
401
  componentId: "sc-1cmfss7-7"
404
402
  })([ "position:absolute;width:1px;left:", ";top:0;height:", ";pointer-events:none;background-color:", ";" ], (function(e) {
@@ -407,10 +405,10 @@
407
405
  }), (function(e) {
408
406
  var n = e.$height;
409
407
  return "".concat(n, "px");
410
- }), N.variables.interactiveColorAccent);
408
+ }), $.variables.interactiveColorAccent);
411
409
  // CONCATENATED MODULE: ./src/Table/Caption.tsx
412
- function ue() {
413
- return ue = Object.assign ? Object.assign.bind() : function(e) {
410
+ function le() {
411
+ return le = Object.assign ? Object.assign.bind() : function(e) {
414
412
  for (var n = 1; n < arguments.length; n++) {
415
413
  var t = arguments[n];
416
414
  for (var r in t) {
@@ -418,11 +416,11 @@
418
416
  }
419
417
  }
420
418
  return e;
421
- }, ue.apply(null, arguments);
419
+ }, le.apply(null, arguments);
422
420
  }
423
- function se(e, n) {
421
+ function ue(e, n) {
424
422
  if (null == e) return {};
425
- var t, r, o = ce(e, n);
423
+ var t, r, o = se(e, n);
426
424
  if (Object.getOwnPropertySymbols) {
427
425
  var i = Object.getOwnPropertySymbols(e);
428
426
  for (r = 0; r < i.length; r++) {
@@ -431,7 +429,7 @@
431
429
  }
432
430
  return o;
433
431
  }
434
- function ce(e, n) {
432
+ function se(e, n) {
435
433
  if (null == e) return {};
436
434
  var t = {};
437
435
  for (var r in e) {
@@ -442,70 +440,73 @@
442
440
  }
443
441
  return t;
444
442
  }
445
- var de = {
443
+ var ce = {
446
444
  children: i().node.isRequired,
447
445
  side: i().oneOf([ "top", "bottom" ])
448
446
  };
449
447
  /**
450
448
  * Tables that use a docked header must place the caption on the bottom side.
451
449
  * Tables that use a fixed header cannot use captions.
452
- */ function fe(e) {
453
- var n = e.children, t = e.side, o = t === void 0 ? "top" : t, i = se(e, [ "children", "side" ]);
450
+ */ function de(e) {
451
+ var n = e.children, t = e.side, o = t === void 0 ? "top" : t, i = ue(e, [ "children", "side" ]);
454
452
  // @docs-props-type CaptionPropsBase
455
453
 
456
- return r().createElement(ie, ue({
454
+ return r().createElement(oe, le({
457
455
  "data-test": "caption",
458
456
  side: o
459
457
  }, i), n);
460
458
  }
461
- fe.propTypes = de;
462
- fe.splunkUiType = "Table.Caption";
463
- /* harmony default export */ const ve = fe;
459
+ de.propTypes = ce;
460
+ de.splunkUiType = "Table.Caption";
461
+ /* harmony default export */ const fe = de;
464
462
  // CONCATENATED MODULE: external "@splunk/react-ui/ButtonSimple"
465
- const pe = require("@splunk/react-ui/ButtonSimple");
463
+ const ve = require("@splunk/react-ui/ButtonSimple");
466
464
  // CONCATENATED MODULE: ./src/Table/CellStyles.ts
467
- var be = "2px";
468
- var me = (0, M.css)([ "box-shadow:", ";" ], N.variables.focusShadowInset);
469
- var he = $().td.withConfig({
465
+ var pe = "2px";
466
+ var me = (0, z.css)([ "box-shadow:", ";" ], $.variables.focusShadowInset);
467
+ var be = M().td.withConfig({
470
468
  displayName: "CellStyles__Styled",
471
469
  componentId: "sc-1955xk2-0"
472
- })([ "", " padding:", " ", ";border-left:0 solid transparent;border-right:0 solid transparent;color:", ";word-wrap:break-word;line-height:20px;vertical-align:top;*:where(button):focus,&& *:is(:has(> input:focus)):not([disabled]){box-shadow:", ";}", " ", " ", " [data-expansion-row='true'] > &:first-child{padding-top:8px;}[data-expansion-row='true'] > &:last-child{padding-bottom:14px;}" ], N.mixins.reset("table-cell"), be, N.variables.spacingSmall, N.variables.contentColorDefault, N.variables.focusShadowInset, (0,
473
- N.pickVariant)("$variant", {
474
- expand: (0, M.css)([ "padding:0;vertical-align:top;height:100%;" ]),
475
- toggle: (0, M.css)([ "padding:0;vertical-align:top;height:100%;" ])
470
+ })([ "", " padding:", " ", ";border-left:0 solid transparent;border-right:0 solid transparent;color:", ";word-wrap:break-word;line-height:20px;vertical-align:top;*:where(button):focus,&& *:is(:has(> input:focus)):not([disabled]){box-shadow:", ";}padding-block:", ";padding-inline:", ";", " ", " ", " [data-expansion-row='true'] > &:first-child{padding-top:8px;}[data-expansion-row='true'] > &:last-child{padding-bottom:14px;}" ], $.mixins.reset("table-cell"), pe, $.variables.spacingSmall, $.variables.contentColorDefault, $.variables.focusShadowInset, (0,
471
+ $.pick)({
472
+ comfortable: "8px",
473
+ compact: "6px"
474
+ }), $.variables.spacingSmall, (0, $.pickVariant)("$variant", {
475
+ expand: (0, z.css)([ "height:100%;padding:0;" ]),
476
+ toggle: (0, z.css)([ "height:100%;padding:0;" ])
476
477
  }), (function(e) {
477
478
  var n = e.$variant, t = e.$isPrimaryCell;
478
- return (0, N.pickVariant)("$appearance", {
479
- data: (0, M.css)([ "", "" ], n === "actions" && (0, M.css)([ "cursor:default;*:where(button){", " &:focus{box-shadow:", ";}}" ], (0,
480
- pe.buttonMixin)("subtle", {
481
- color: N.variables.contentColorDefault
482
- }), N.variables.focusShadowInset)),
483
- rowLink: (0, M.css)([ "color:", ";*:hover > &&{cursor:pointer;", "}" ], N.variables.contentColorActive, t && (0,
484
- M.css)([ "text-decoration:underline;" ])),
485
- link: (0, M.css)([ "color:", ";&:hover{cursor:pointer;text-decoration:underline;}&:focus{text-decoration:underline;box-shadow:", ";}" ], N.variables.contentColorLink, N.variables.focusShadowInset)
479
+ return (0, $.pickVariant)("$appearance", {
480
+ data: (0, z.css)([ "", "" ], n === "actions" && (0, z.css)([ "cursor:default;padding-block:", ";padding-inline:", ";*:where(button){", " &:focus{box-shadow:", ";}}" ], pe, $.variables.spacingSmall, (0,
481
+ ve.buttonMixin)("subtle", {
482
+ color: $.variables.contentColorDefault
483
+ }), $.variables.focusShadowInset)),
484
+ rowLink: (0, z.css)([ "color:", ";*:hover > &&{cursor:pointer;", "}" ], $.variables.contentColorActive, t && (0,
485
+ z.css)([ "text-decoration:underline;" ])),
486
+ link: (0, z.css)([ "color:", ";&:hover{cursor:pointer;text-decoration:underline;}&:focus{text-decoration:underline;box-shadow:", ";}" ], $.variables.contentColorLink, $.variables.focusShadowInset)
486
487
  });
487
488
  }), (function(e) {
488
489
  var n = e.$clickable, t = e.$focusWithin, r = e.$stripe;
489
- return n && (0, M.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{", " background-color:", ";}", "" ], r === "even" ? N.variables.neutral300 : N.variables.neutral100, me, r === "even" ? N.variables.neutral300 : N.variables.neutral100, t && (0,
490
- M.css)([ "&:focus-within{", " background-color:", ";}" ], me, r === "even" ? N.variables.neutral300 : N.variables.neutral100));
490
+ return n && (0, z.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{", " background-color:", ";}", "" ], r === "even" ? $.variables.neutral300 : $.variables.neutral100, me, r === "even" ? $.variables.neutral300 : $.variables.neutral100, t && (0,
491
+ z.css)([ "&:focus-within{", " background-color:", ";}" ], me, r === "even" ? $.variables.neutral300 : $.variables.neutral100));
491
492
  }));
492
493
  /*
493
494
  * A wrapper ensures that the Table Cell contents align to the top while staying within the height of inputHeight.
494
495
  * This allows text to align properly with expand and select icons when other cell contents are larger.
495
- */ var ye = $().div.withConfig({
496
+ */ var he = M().div.withConfig({
496
497
  displayName: "CellStyles__StyledCellContent",
497
498
  componentId: "sc-1955xk2-1"
498
- })([ "display:flex;align-items:center;word-break:break-word;min-height:", ";", " ", "" ], N.variables.inputHeight, (0,
499
- N.pickVariant)("$variant", {
500
- expand: (0, M.css)([ "height:100%;" ]),
501
- toggle: (0, M.css)([ "height:100%;" ])
499
+ })([ "display:flex;align-items:flex-start;word-break:break-word;", " ", "" ], (0,
500
+ $.pickVariant)("$variant", {
501
+ expand: (0, z.css)([ "height:100%;" ]),
502
+ toggle: (0, z.css)([ "height:100%;" ])
502
503
  }), (function(e) {
503
504
  var n = e.$variant, t = e.$align;
504
- return n ? (0, M.css)([ "display:block;text-align:", ";" ], t) : (0, M.css)([ "justify-content:", ";text-align:", ";" ], t, t);
505
+ return n ? (0, z.css)([ "display:block;text-align:", ";" ], t) : (0, z.css)([ "justify-content:", ";text-align:", ";" ], t, t);
505
506
  }));
506
507
  // CONCATENATED MODULE: ./src/Table/Cell.tsx
507
- function ge() {
508
- return ge = Object.assign ? Object.assign.bind() : function(e) {
508
+ function ye() {
509
+ return ye = Object.assign ? Object.assign.bind() : function(e) {
509
510
  for (var n = 1; n < arguments.length; n++) {
510
511
  var t = arguments[n];
511
512
  for (var r in t) {
@@ -513,11 +514,11 @@
513
514
  }
514
515
  }
515
516
  return e;
516
- }, ge.apply(null, arguments);
517
+ }, ye.apply(null, arguments);
517
518
  }
518
- function we(e, n) {
519
+ function ge(e, n) {
519
520
  if (null == e) return {};
520
- var t, r, o = Ce(e, n);
521
+ var t, r, o = we(e, n);
521
522
  if (Object.getOwnPropertySymbols) {
522
523
  var i = Object.getOwnPropertySymbols(e);
523
524
  for (r = 0; r < i.length; r++) {
@@ -526,7 +527,7 @@
526
527
  }
527
528
  return o;
528
529
  }
529
- function Ce(e, n) {
530
+ function we(e, n) {
530
531
  if (null == e) return {};
531
532
  var t = {};
532
533
  for (var r in e) {
@@ -537,7 +538,7 @@
537
538
  }
538
539
  return t;
539
540
  }
540
- /** @public */ var xe = {
541
+ /** @public */ var Ce = {
541
542
  align: i().oneOf([ "left", "center", "right" ]),
542
543
  /** @private */
543
544
  appearance: i().oneOf([ "data", "link", "rowLink" ]),
@@ -560,30 +561,30 @@
560
561
  /** @private. */
561
562
  variant: i().oneOf([ "toggle", "expand", "drag", "actions" ])
562
563
  };
563
- function Se(e) {
564
- var n = e.align, o = n === void 0 ? "left" : n, i = e.appearance, a = e.appearClickable, l = e.children, u = e.data, s = e.disabled, c = e.elementRef, d = e.isPrimaryCell, f = e.onClick, v = e.onKeyDown, p = e.stripe, b = e.variant, m = we(e, [ "align", "appearance", "appearClickable", "children", "data", "disabled", "elementRef", "isPrimaryCell", "onClick", "onKeyDown", "stripe", "variant" ]);
564
+ function xe(e) {
565
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.appearance, a = e.appearClickable, l = e.children, u = e.data, s = e.disabled, c = e.elementRef, d = e.isPrimaryCell, f = e.onClick, v = e.onKeyDown, p = e.stripe, m = e.variant, b = ge(e, [ "align", "appearance", "appearClickable", "children", "data", "disabled", "elementRef", "isPrimaryCell", "onClick", "onKeyDown", "stripe", "variant" ]);
565
566
  // @docs-props-type CellPropsBase
566
567
  var h = f !== undefined;
567
568
  var y = a || h;
568
569
  var g = y ? "link" : "data";
569
570
  var w = (0, t.useCallback)((function(e) {
570
- L(c, e);
571
+ W(c, e);
571
572
  }), [ c ]);
572
573
  var C = (0, t.useCallback)((function(e) {
573
- if (b === "actions") {
574
+ if (m === "actions") {
574
575
  // Action buttons have their own onClicks inside the cell so we don't want Row onClick to fire
575
576
  e.stopPropagation();
576
577
  }
577
578
  f === null || f === void 0 ? void 0 : f(e, u);
578
- }), [ u, f, b ]);
579
+ }), [ u, f, m ]);
579
580
  var x = (0, t.useCallback)((function(e) {
580
- if ((0, E.keycode)(e.nativeEvent) === "enter") {
581
+ if (e.key === "Enter") {
581
582
  f === null || f === void 0 ? void 0 : f(e, u);
582
583
  }
583
584
  v === null || v === void 0 ? void 0 : v(e);
584
585
  }), [ u, f, v ]);
585
586
 
586
- return r().createElement(he, ge({
587
+ return r().createElement(be, ye({
587
588
  "data-test": "cell",
588
589
  $appearance: i || g,
589
590
  $clickable: y ? true : undefined,
@@ -591,94 +592,106 @@
591
592
  $focusWithin: a,
592
593
  $isPrimaryCell: d,
593
594
  $stripe: p,
594
- $variant: b,
595
+ $variant: m,
595
596
  onClick: C,
596
597
  onKeyDown: x,
597
598
  ref: w,
598
599
  tabIndex: h ? 0 : undefined
599
- }, m), r().createElement(ye, {
600
+ }, b), r().createElement(he, {
600
601
  $align: o,
601
- $variant: b
602
+ $variant: m
602
603
  }, l));
603
604
  }
604
- Se.propTypes = xe;
605
- Se.splunkUiType = "Table.Cell";
606
- /* harmony default export */ const ke = Se;
605
+ xe.propTypes = Ce;
606
+ xe.splunkUiType = "Table.Cell";
607
+ /* harmony default export */ const Se = xe;
607
608
  // CONCATENATED MODULE: external "lodash/isString"
608
- const Oe = require("lodash/isString");
609
- var Re = e.n(Oe);
609
+ const ke = require("lodash/isString");
610
+ var Oe = e.n(ke);
610
611
  // CONCATENATED MODULE: external "lodash/merge"
611
- const Ee = require("lodash/merge");
612
- var Ie = e.n(Ee);
612
+ const Re = require("lodash/merge");
613
+ var Ee = e.n(Re);
613
614
  // CONCATENATED MODULE: external "@splunk/react-icons/ParallelDots"
614
- const Te = require("@splunk/react-icons/ParallelDots");
615
- var je = e.n(Te);
615
+ const Ie = require("@splunk/react-icons/ParallelDots");
616
+ var Te = e.n(Ie);
617
+ // CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
618
+ const je = require("@splunk/react-ui/Tooltip");
619
+ var De = e.n(je);
616
620
  // CONCATENATED MODULE: external "@splunk/react-icons/ArrowDown"
617
- const De = require("@splunk/react-icons/ArrowDown");
618
- var qe = e.n(De);
621
+ const qe = require("@splunk/react-icons/ArrowDown");
622
+ var Ae = e.n(qe);
619
623
  // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUp"
620
- const Ae = require("@splunk/react-icons/ArrowUp");
621
- var Pe = e.n(Ae);
624
+ const Pe = require("@splunk/react-icons/ArrowUp");
625
+ var _e = e.n(Pe);
622
626
  // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUpDown"
623
- const _e = require("@splunk/react-icons/ArrowUpDown");
624
- var ze = e.n(_e);
627
+ const ze = require("@splunk/react-icons/ArrowUpDown");
628
+ var Me = e.n(ze);
625
629
  // CONCATENATED MODULE: external "@splunk/react-icons/CaretSmallDown"
626
- const Me = require("@splunk/react-icons/CaretSmallDown");
627
- var $e = e.n(Me);
630
+ const $e = require("@splunk/react-icons/CaretSmallDown");
631
+ var Ne = e.n($e);
632
+ // CONCATENATED MODULE: external "@splunk/react-icons/InformationCircle"
633
+ const We = require("@splunk/react-icons/InformationCircle");
634
+ var Le = e.n(We);
628
635
  // CONCATENATED MODULE: external "@splunk/react-ui/Divider"
629
- const Ne = require("@splunk/react-ui/Divider");
630
- var We = e.n(Ne);
636
+ const He = require("@splunk/react-ui/Divider");
637
+ var Ke = e.n(He);
631
638
  // CONCATENATED MODULE: ./src/Table/HeadInnerStyles.ts
632
- var Le = "2px";
633
- var He = $().span.withConfig({
634
- displayName: "HeadInnerStyles__StyledMenuIcon",
639
+ var Be = (0, z.css)([ "display:inline-flex;align-items:center;grid-row:1;height:1lh;" ]);
640
+ var Ve = M().span.withConfig({
641
+ displayName: "HeadInnerStyles__StyledIcon",
635
642
  componentId: "sc-1sa0wng-0"
636
- })([ "position:relative;color:", ";" ], N.variables.contentColorDefault);
637
- var Ke = $().span.withConfig({
638
- displayName: "HeadInnerStyles__StyledLabel",
643
+ })([ "", " grid-column:icon;" ], Be);
644
+ var Fe = M().span.withConfig({
645
+ displayName: "HeadInnerStyles__StyledTooltipIcon",
639
646
  componentId: "sc-1sa0wng-1"
640
- })([ "display:flex;flex:0 1 auto;position:relative;word-wrap:break-word;word-break:break-word;", " ", " ", " ", "" ], (0,
641
- N.pickVariant)("$truncate", {
642
- true: (0, M.css)([ "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;" ])
643
- }), (0, N.pickVariant)("$fill", {
644
- true: (0, M.css)([ "flex:1 0 0px;" ])
645
- }), (0, N.pickVariant)("$align", {
646
- right: (0, M.css)([ "& > &{text-align:right;}" ]),
647
- left: (0, M.css)([ "& > &{text-align:left;}" ]),
648
- center: (0, M.css)([ "& > &{text-align:center;}" ])
649
- }), (function(e) {
647
+ })([ "", " grid-column:tooltip;" ], Be);
648
+ var Ue = M().span.withConfig({
649
+ displayName: "HeadInnerStyles__StyledLabel",
650
+ componentId: "sc-1sa0wng-2"
651
+ })([ "grid-column:label;grid-row:1 / -1;position:relative;word-wrap:break-word;word-break:break-word;height:100%;", " ", " ", "" ], (function(e) {
650
652
  var n = e.$variant;
651
- return n === "toggleAll" && (0, M.css)([ "width:100%;" ]);
653
+ return n === "toggleAll" && (0, z.css)([ "grid-column:1 / -1;" ]);
654
+ }), (0, $.pickVariant)("$truncate", {
655
+ true: (0, z.css)([ "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;" ])
656
+ }), (0, $.pickVariant)("$align", {
657
+ right: (0, z.css)([ "& > &{text-align:right;}" ]),
658
+ left: (0, z.css)([ "& > &{text-align:left;}" ]),
659
+ center: (0, z.css)([ "& > &{text-align:center;}" ])
652
660
  }));
653
- var Be = $().span.withConfig({
654
- displayName: "HeadInnerStyles__StyledSortIcon",
655
- componentId: "sc-1sa0wng-2"
656
- })([ "color:", ";" ], N.variables.contentColorDefault);
657
- var Ve = (0, M.css)([ "box-shadow:", ";outline:none;color:", ";text-decoration:underline;", ",", "{color:", ";}" ], N.variables.focusShadowInset, N.variables.contentColorActive, /* sc-sel */ Be, /* sc-sel */ He, N.variables.contentColorActive);
658
- var Fe = $().div.withConfig({
661
+ var Xe = (0, z.css)([ "box-shadow:", ";outline:none;color:", ";text-decoration:underline;" ], $.variables.focusShadowInset, $.variables.contentColorActive);
662
+ var Ye = M().div.withConfig({
659
663
  displayName: "HeadInnerStyles__Styled",
660
664
  componentId: "sc-1sa0wng-3"
661
- })([ "", ";", ";", ";position:relative;flex-grow:1;justify-content:", ";gap:", ";padding:", " ", ";min-height:calc(", " + ", "*2);align-items:center;", " @media print{background-image:none;}", "" ], N.mixins.reset("flex"), N.mixins.clearfix(), N.mixins.typography("body", {
665
+ })([ "", ";", ";", ";position:relative;", " grid-template-rows:1lh auto;align-items:start;flex-grow:1;height:100%;padding-block:", ";padding-inline:", ";justify-content:", ";", " ", " @media print{background-image:none;}", "" ], $.mixins.reset("grid"), $.mixins.clearfix(), $.mixins.typography("body", {
662
666
  weight: "bold"
663
- }), (0, N.pickVariant)("$align", {
667
+ }), (function(e) {
668
+ var n = e.$hasTooltip, t = e.$hasIcon;
669
+ return (0, z.css)([ "grid-template-columns:[label] auto ", " ", ";column-gap:", ";" ], n ? "[tooltip] min-content" : "", t ? "[icon] min-content" : "", n || t ? $.variables.spacingXSmall : 0);
670
+ }), (0, $.pick)({
671
+ comfortable: "8px",
672
+ compact: "6px"
673
+ }), $.variables.spacingSmall, (0, $.pickVariant)("$align", {
664
674
  center: "center",
665
675
  left: "flex-start",
666
676
  right: "flex-end"
667
- }), N.variables.spacingXSmall, Le, N.variables.spacingSmall, N.variables.inputHeight, Le, (function(e) {
677
+ }), (function(e) {
668
678
  var n = e.$variant;
669
- return n === "toggleAll" && (0, M.css)([ "padding:0;" ]);
679
+ return n && (0, z.css)([ "grid-template-columns:1fr;grid-template-rows:1fr;" ]);
680
+ }), (0, $.pickVariant)("$variant", {
681
+ toggleAll: (0, z.css)([ "padding:0;" ]),
682
+ actions: (0, z.css)([ "padding-block:2px;" ])
670
683
  }), (function(e) {
671
684
  var n = e.$clickable, t = e.$focusWithin;
672
- return n && (0, M.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;text-decoration:underline;color:", ";", ",", "{color:", ";}}" ], Ve, t && (0,
673
- M.css)([ "&:focus-within{", "}" ], Ve), N.variables.contentColorActive, /* sc-sel */ Be, /* sc-sel */ He, N.variables.contentColorActive);
685
+ return n && (0, z.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;text-decoration:underline;color:", ";}" ], Xe, t && (0,
686
+ z.css)([ "&:focus-within{", "}" ], Xe), $.variables.contentColorActive);
674
687
  }));
675
- var Ue = $()(We()).withConfig({
688
+ var Ge = M()(Ke()).withConfig({
676
689
  displayName: "HeadInnerStyles__StyledResize",
677
690
  componentId: "sc-1sa0wng-4"
678
- })([ "", ";position:absolute;right:-5px;width:9px;top:0;bottom:0;z-index:1;cursor:col-resize;th:last-child > div > ", " > &{right:0;width:4px;}&:hover{outline:none;&::before{content:'';background:", ";position:absolute;left:4px;width:1px;top:0;bottom:0;}}&:focus{outline:none;&::before{content:'';position:absolute;background:", ";box-shadow:", ";left:4px;width:1px;top:0;bottom:0;}}" ], N.mixins.reset("block"), /* sc-sel */ Fe, N.variables.borderColorStrong, N.variables.focusColor, N.variables.focusShadow);
691
+ })([ "", ";position:absolute;right:-5px;width:9px;top:0;bottom:0;z-index:1;cursor:col-resize;th:last-child > div > ", " > &{right:0;width:4px;}&:hover{outline:none;&::before{content:'';background:", ";position:absolute;left:4px;width:1px;top:0;bottom:0;}}&:focus{outline:none;&::before{content:'';position:absolute;background:", ";box-shadow:", ";left:4px;width:1px;top:0;bottom:0;}}" ], $.mixins.reset("block"), /* sc-sel */ Ye, $.variables.borderColorStrong, $.variables.focusColor, $.variables.focusShadow);
679
692
  // CONCATENATED MODULE: ./src/utils/ssrDocument.ts
680
693
  /* eslint-disable @typescript-eslint/no-empty-function */
681
- var Xe = {
694
+ var Je = {
682
695
  body: {
683
696
  appendChild: function e() {
684
697
  return [];
@@ -732,16 +745,16 @@
732
745
  search: ""
733
746
  }
734
747
  };
735
- function Ye() {
736
- var e = typeof document !== "undefined" ? document : Xe;
748
+ function Qe() {
749
+ var e = typeof document !== "undefined" ? document : Je;
737
750
  return e;
738
751
  }
739
- var Ge = Ye();
740
- /* harmony default export */ const Je = /* unused pure expression or super */ null && Ge;
752
+ var Ze = Qe();
753
+ /* harmony default export */ const en = /* unused pure expression or super */ null && Ze;
741
754
  // CONCATENATED MODULE: ./src/utils/ssrWindow.ts
742
755
  /* eslint-disable @typescript-eslint/no-empty-function */
743
- var Qe = {
744
- document: Xe,
756
+ var nn = {
757
+ document: Je,
745
758
  navigator: {
746
759
  userAgent: ""
747
760
  },
@@ -795,15 +808,15 @@
795
808
  clearTimeout(n);
796
809
  }
797
810
  };
798
- function Ze() {
799
- var e = typeof window !== "undefined" ? window : Qe;
811
+ function tn() {
812
+ var e = typeof window !== "undefined" ? window : nn;
800
813
  return e;
801
814
  }
802
- var en = Ze();
803
- /* harmony default export */ const nn = /* unused pure expression or super */ null && en;
815
+ var rn = tn();
816
+ /* harmony default export */ const on = /* unused pure expression or super */ null && rn;
804
817
  // CONCATENATED MODULE: ./src/Table/HeadInner.tsx
805
- function tn() {
806
- return tn = Object.assign ? Object.assign.bind() : function(e) {
818
+ function an() {
819
+ return an = Object.assign ? Object.assign.bind() : function(e) {
807
820
  for (var n = 1; n < arguments.length; n++) {
808
821
  var t = arguments[n];
809
822
  for (var r in t) {
@@ -811,41 +824,41 @@
811
824
  }
812
825
  }
813
826
  return e;
814
- }, tn.apply(null, arguments);
827
+ }, an.apply(null, arguments);
815
828
  }
816
- function rn(e) {
817
- return ln(e) || an(e) || cn(e) || on();
829
+ function ln(e) {
830
+ return cn(e) || sn(e) || vn(e) || un();
818
831
  }
819
- function on() {
832
+ function un() {
820
833
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
821
834
  }
822
- function an(e) {
835
+ function sn(e) {
823
836
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
824
837
  }
825
- function ln(e) {
826
- if (Array.isArray(e)) return dn(e);
838
+ function cn(e) {
839
+ if (Array.isArray(e)) return pn(e);
827
840
  }
828
- function un(e, n) {
829
- return vn(e) || fn(e, n) || cn(e, n) || sn();
841
+ function dn(e, n) {
842
+ return bn(e) || mn(e, n) || vn(e, n) || fn();
830
843
  }
831
- function sn() {
844
+ function fn() {
832
845
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
833
846
  }
834
- function cn(e, n) {
847
+ function vn(e, n) {
835
848
  if (e) {
836
- if ("string" == typeof e) return dn(e, n);
849
+ if ("string" == typeof e) return pn(e, n);
837
850
  var t = {}.toString.call(e).slice(8, -1);
838
- return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? dn(e, n) : void 0;
851
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? pn(e, n) : void 0;
839
852
  }
840
853
  }
841
- function dn(e, n) {
854
+ function pn(e, n) {
842
855
  (null == n || n > e.length) && (n = e.length);
843
856
  for (var t = 0, r = Array(n); t < n; t++) {
844
857
  r[t] = e[t];
845
858
  }
846
859
  return r;
847
860
  }
848
- function fn(e, n) {
861
+ function mn(e, n) {
849
862
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
850
863
  if (null != t) {
851
864
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -867,12 +880,12 @@
867
880
  return l;
868
881
  }
869
882
  }
870
- function vn(e) {
883
+ function bn(e) {
871
884
  if (Array.isArray(e)) return e;
872
885
  }
873
- function pn(e, n) {
886
+ function hn(e, n) {
874
887
  if (null == e) return {};
875
- var t, r, o = bn(e, n);
888
+ var t, r, o = yn(e, n);
876
889
  if (Object.getOwnPropertySymbols) {
877
890
  var i = Object.getOwnPropertySymbols(e);
878
891
  for (r = 0; r < i.length; r++) {
@@ -881,7 +894,7 @@
881
894
  }
882
895
  return o;
883
896
  }
884
- function bn(e, n) {
897
+ function yn(e, n) {
885
898
  if (null == e) return {};
886
899
  var t = {};
887
900
  for (var r in e) {
@@ -892,12 +905,13 @@
892
905
  }
893
906
  return t;
894
907
  }
895
- var mn = {
908
+ var gn = {
896
909
  align: i().oneOf([ "left", "center", "right" ]),
897
910
  clickable: i().bool,
898
911
  columnId: i().string,
899
912
  elementRef: i().oneOfType([ i().func, i().object ]),
900
913
  focusWithin: i().bool,
914
+ hasTooltip: i().bool,
901
915
  id: i().string,
902
916
  index: i().number,
903
917
  isMenu: i().bool,
@@ -910,95 +924,95 @@
910
924
  width: i().oneOfType([ i().number, i().oneOf([ "auto" ]) ]),
911
925
  variant: i().oneOf([ "toggleAll", "info", "actions" ])
912
926
  };
913
- var hn = new Set([ "none", "asc", "desc" ]);
914
- var yn = Object.freeze({
915
- none: (0, D._)("Click to sort"),
916
- asc: (0, D._)("Press to sort descending"),
917
- desc: (0, D._)("Press to sort ascending")
927
+ var wn = new Set([ "none", "asc", "desc" ]);
928
+ var Cn = Object.freeze({
929
+ none: (0, j._)("Click to sort"),
930
+ asc: (0, j._)("Press to sort descending"),
931
+ desc: (0, j._)("Press to sort ascending")
918
932
  });
919
- var gn = Object.freeze({
920
- none: ze(),
921
- asc: Pe(),
922
- desc: qe()
933
+ var xn = Object.freeze({
934
+ none: Me(),
935
+ asc: _e(),
936
+ desc: Ae()
923
937
  });
924
- function wn(e) {
925
- var n = e.align, o = n === void 0 ? "left" : n, i = e.clickable, a = e.columnId, l = e.elementRef, u = e.focusWithin, s = e.id, c = e.index, d = e.isMenu, f = d === void 0 ? false : d, v = e.label, p = e.onAutosizeColumn, b = e.onRequestResize, m = e.resizable, h = m === void 0 ? true : m, y = e.sortDir, w = e.truncate, C = w === void 0 ? true : w, x = e.variant, k = e.width, O = pn(e, [ "align", "clickable", "columnId", "elementRef", "focusWithin", "id", "index", "isMenu", "label", "onAutosizeColumn", "onRequestResize", "resizable", "sortDir", "truncate", "variant", "width" ]);
938
+ function Sn(e) {
939
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.clickable, a = e.columnId, l = e.elementRef, u = e.focusWithin, s = e.hasTooltip, c = e.id, d = e.index, f = e.isMenu, v = f === void 0 ? false : f, p = e.label, m = e.onAutosizeColumn, b = e.onRequestResize, h = e.resizable, y = h === void 0 ? true : h, w = e.sortDir, C = e.truncate, x = C === void 0 ? true : C, k = e.variant, O = e.width, R = hn(e, [ "align", "clickable", "columnId", "elementRef", "focusWithin", "hasTooltip", "id", "index", "isMenu", "label", "onAutosizeColumn", "onRequestResize", "resizable", "sortDir", "truncate", "variant", "width" ]);
926
940
  if (false) {}
927
- var R = (0, D._)("Click to open menu");
928
- var I = (0, t.useState)(false), T = un(I, 2), j = T[0], A = T[1];
929
- var P = (0, t.useState)(0), _ = un(P, 2), z = _[0], M = _[1];
930
- var $ = (0, t.useState)(0), N = un($, 2), W = N[0], H = N[1];
941
+ var E = (0, j._)("Click to open menu");
942
+ var I = (0, t.useState)(false), T = dn(I, 2), q = T[0], A = T[1];
943
+ var P = (0, t.useState)(0), _ = dn(P, 2), z = _[0], M = _[1];
944
+ var $ = (0, t.useState)(0), N = dn($, 2), L = N[0], H = N[1];
931
945
  var K = (0, t.useRef)(null);
932
- var B = (0, t.useRef)(k === "auto" ? undefined : k);
946
+ var B = (0, t.useRef)(O === "auto" ? undefined : O);
933
947
  var V;
934
948
  var F;
935
- if (y !== undefined && hn.has(y)) {
936
- V = gn[y];
937
- F = yn[y];
949
+ if (w !== undefined && wn.has(w)) {
950
+ V = xn[w];
951
+ F = Cn[w];
938
952
  }
939
- if (k === "auto") {
953
+ if (O === "auto") {
940
954
  var U;
941
955
  var X = K.current;
942
956
  var Y = X === null || X === void 0 ? void 0 : (U = X.parentElement) === null || U === void 0 ? void 0 : U.getBoundingClientRect();
943
957
  B.current = Y === null || Y === void 0 ? void 0 : Y.width;
944
958
  } else {
945
- B.current = k;
959
+ B.current = O;
946
960
  }
947
961
  var G = (0, t.useCallback)((function(e) {
948
962
  K.current = e;
949
- L(l, e);
963
+ W(l, e);
950
964
  }), [ l, K ]);
951
965
  var J = (0, t.useCallback)((function(e) {
952
- var n = (0, E.keycode)(e.nativeEvent);
953
- if (b === undefined || c === undefined) {
966
+ var n = e.key;
967
+ if (b === undefined || d === undefined) {
954
968
  return;
955
969
  }
956
- if (k === "auto") {
970
+ if (O === "auto") {
957
971
  var t;
958
972
  var r = K.current;
959
973
  var o = r === null || r === void 0 ? void 0 : (t = r.parentElement) === null || t === void 0 ? void 0 : t.getBoundingClientRect();
960
974
  B.current = o === null || o === void 0 ? void 0 : o.width;
961
975
  } else {
962
- B.current = k;
976
+ B.current = O;
963
977
  }
964
978
  if (B.current === undefined) {
965
979
  return;
966
980
  }
967
- if (n === "left") {
981
+ if (n === "ArrowLeft") {
968
982
  e.preventDefault();
969
983
  // prevent text selection
970
984
  var i = Math.max(B.current - 10, 20);
971
985
  b(e, {
972
- index: c,
986
+ index: d,
973
987
  columnId: a,
974
- id: s,
988
+ id: c,
975
989
  width: i
976
990
  });
977
991
  }
978
- if (n === "right") {
992
+ if (n === "ArrowRight") {
979
993
  e.preventDefault();
980
994
  // prevent text selection
981
995
  var l = B.current + 10;
982
996
  b(e, {
983
- index: c,
997
+ index: d,
984
998
  columnId: a,
985
- id: s,
999
+ id: c,
986
1000
  width: l
987
1001
  });
988
1002
  }
989
- if (n === "enter") {
1003
+ if (n === "Enter") {
990
1004
  e.preventDefault();
991
1005
  // SUI-7320: prevent sorting and dropdown opening
992
1006
  }
993
- }), [ a, s, c, b, k ]);
1007
+ }), [ a, c, d, b, O ]);
994
1008
  var Q = (0, t.useCallback)((function(e) {
995
- if (k === "auto") {
1009
+ if (O === "auto") {
996
1010
  var n;
997
1011
  var t = K.current;
998
1012
  var r = t === null || t === void 0 ? void 0 : (n = t.parentElement) === null || n === void 0 ? void 0 : n.getBoundingClientRect();
999
1013
  B.current = r === null || r === void 0 ? void 0 : r.width;
1000
1014
  } else {
1001
- B.current = k;
1015
+ B.current = O;
1002
1016
  }
1003
1017
  if (B.current === undefined) {
1004
1018
  return;
@@ -1008,15 +1022,15 @@
1008
1022
  M(e.clientX);
1009
1023
  H(B.current || 0);
1010
1024
  A(true);
1011
- }), [ k ]);
1025
+ }), [ O ]);
1012
1026
  var Z = function e(n) {
1013
1027
  var t = z - n.clientX;
1014
- var r = Math.max(W - t, 16);
1015
- if (c !== undefined) {
1028
+ var r = Math.max(L - t, 16);
1029
+ if (d !== undefined) {
1016
1030
  b === null || b === void 0 ? void 0 : b(n, {
1017
- index: c,
1031
+ index: d,
1018
1032
  columnId: a,
1019
- id: s,
1033
+ id: c,
1020
1034
  width: r
1021
1035
  });
1022
1036
  }
@@ -1025,29 +1039,31 @@
1025
1039
  A(false);
1026
1040
  };
1027
1041
  var ne = (0, t.useCallback)((function(e) {
1028
- if (c !== undefined) {
1029
- p === null || p === void 0 ? void 0 : p(e, {
1030
- index: c,
1042
+ if (d !== undefined) {
1043
+ m === null || m === void 0 ? void 0 : m(e, {
1044
+ index: d,
1031
1045
  columnId: a
1032
1046
  });
1033
1047
  }
1034
- }), [ a, c, p ]);
1035
- var te = Ze();
1036
- var re = B.current ? (0, q.sprintf)((0, D._)("%(width)d pixels"), {
1048
+ }), [ a, d, m ]);
1049
+ var te = tn();
1050
+ var re = B.current ? (0, D.sprintf)((0, j._)("%(width)d pixels"), {
1037
1051
  width: B.current
1038
1052
  }) : undefined;
1039
1053
  var oe = a ? {
1040
1054
  ariaControls: a
1041
1055
  } : {};
1042
1056
 
1043
- return r().createElement(Fe, tn({
1057
+ return r().createElement(Ye, an({
1044
1058
  as: i ? "button" : "div",
1045
1059
  ref: G,
1046
1060
  $align: o,
1047
1061
  $clickable: i,
1048
1062
  $focusWithin: u,
1049
- $variant: x
1050
- }, g()(O, [].concat(rn(Object.keys(wn.propTypes)), [ "id" ]))), j && r().createElement(r().Fragment, null, r().createElement(S(), {
1063
+ $hasIcon: !!v || !!w,
1064
+ $hasTooltip: !!s,
1065
+ $variant: k
1066
+ }, g()(R, [].concat(ln(Object.keys(Sn.propTypes)), [ "id" ]))), q && r().createElement(r().Fragment, null, r().createElement(S(), {
1051
1067
  target: te,
1052
1068
  eventType: "mouseup",
1053
1069
  listener: ee
@@ -1055,9 +1071,9 @@
1055
1071
  target: te,
1056
1072
  eventType: "mousemove",
1057
1073
  listener: Z
1058
- })), b && h && r().createElement(Ue, tn({
1059
- "aria-label": (0, q.sprintf)((0, D._)("Resize %(label)s"), {
1060
- label: v
1074
+ })), b && y && r().createElement(Ge, an({
1075
+ "aria-label": (0, D.sprintf)((0, j._)("Resize %(label)s"), {
1076
+ label: p
1061
1077
  })
1062
1078
  }, oe, {
1063
1079
  "aria-valuetext": re,
@@ -1067,54 +1083,60 @@
1067
1083
  onKeyDown: J,
1068
1084
  orientation: "vertical",
1069
1085
  tabIndex: 0
1070
- })), r().createElement(Ke, {
1086
+ })), r().createElement(Ue, {
1071
1087
  $align: o,
1072
- $truncate: C,
1073
- $fill: !!f,
1074
- $variant: x
1075
- }, v, f &&
1076
-
1077
- // this icon indicates "has a menu" in all themes
1078
- r().createElement(He, null, r().createElement($e(), {
1088
+ $truncate: x,
1089
+ $variant: k
1090
+ }, p), s && r().createElement(Fe, null, r().createElement(Le(), {
1091
+ "data-test": "tooltip-icon"
1092
+ })), v && r().createElement(Ve, null, r().createElement(Ne(), {
1079
1093
  "data-test": "caret-down",
1080
- "aria-label": R
1081
- }))), y && r().createElement(Be, null, V !== undefined && r().createElement(V, {
1094
+ "aria-label": E
1095
+ })), w && r().createElement(Ve, null, V !== undefined && r().createElement(V, {
1082
1096
  "aria-hidden": false,
1083
1097
  "aria-label": F
1084
1098
  })));
1085
1099
  }
1086
- wn.propTypes = mn;
1087
- /* harmony default export */ const Cn = wn;
1100
+ Sn.propTypes = gn;
1101
+ /* harmony default export */ const kn = Sn;
1088
1102
  // CONCATENATED MODULE: ./src/Table/HeadCellStyles.ts
1089
- var xn = $().div.withConfig({
1103
+ var On = M().div.withConfig({
1090
1104
  displayName: "HeadCellStyles__StyledInnerWrapper",
1091
1105
  componentId: "sc-1hj81sa-0"
1092
- })([ "display:flex;" ]);
1093
- var Sn = $().th.withConfig({
1106
+ })([ "display:flex;height:100%;align-items:flex-start;" ]);
1107
+ var Rn = M().th.withConfig({
1094
1108
  displayName: "HeadCellStyles__Styled",
1095
1109
  componentId: "sc-1hj81sa-1"
1096
- })([ "", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";position:relative;&:not(:first-child,:has(", ")){", "{border-left:1px solid ", ";}}&:has(", "){", "{border-right:1px solid ", ";}}&:nth-last-child(2):has(", ") + &:last-child{", "{border-left:none;}}*:where(button):focus{box-shadow:", ";}", " ", " ", "" ], N.mixins.reset("table-cell"), N.variables.neutral100, (function(e) {
1110
+ })([ "", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";position:relative;height:100%;line-height:20px;&:not(:first-child,:has(", ")){", "{border-left:1px solid ", ";}}&:has(", "){", "{border-right:1px solid ", ";}}&:nth-last-child(2):has(", ") + &:last-child{", "{border-left:none;}}*:where(button):focus{box-shadow:", ";}", " ", " ", "" ], $.mixins.reset("table-cell"), $.variables.neutral100, (function(e) {
1097
1111
  var n = e.$variant;
1098
1112
  return n ? "middle" : "top";
1099
- }), Ue, /* sc-sel */ xn, N.variables.borderColorWeak, Ue, /* sc-sel */ xn, N.variables.borderColor, Ue, /* sc-sel */ xn, N.variables.focusShadowInset, (function(e) {
1113
+ }), Ge, /* sc-sel */ On, $.variables.borderColorWeak, Ge, /* sc-sel */ On, $.variables.borderColor, Ge, /* sc-sel */ On, $.variables.focusShadowInset, (function(e) {
1100
1114
  var n = e.$isDragging;
1101
- return n && (0, M.css)([ "background-color:", ";&:focus{box-shadow:none;}" ], N.variables.backgroundColorPage);
1115
+ return n && (0, z.css)([ "background-color:", ";&:focus{box-shadow:none;}" ], $.variables.backgroundColorPage);
1102
1116
  }), (function(e) {
1103
1117
  var n = e.$variant;
1104
- return n && (0, M.css)([ "&:first-child + &{", "{border-left:1px solid ", ";}}" ], xn, N.variables.borderColorWeak);
1105
- }), (0, N.pickVariant)("$variant", {
1106
- actions: (0, M.css)([ "*:where(button){", " &:focus{box-shadow:", ";}}" ], (0, pe.buttonMixin)("subtle", {
1107
- color: N.variables.contentColorDefault
1108
- }), N.variables.focusShadowInset)
1118
+ return n && (0, z.css)([ "&:first-child + &{", "{border-left:1px solid ", ";}}" ], On, $.variables.borderColorWeak);
1119
+ }), (0, $.pickVariant)("$variant", {
1120
+ actions: (0, z.css)([ "*:where(button){", " &:focus{box-shadow:", ";}}" ], (0, ve.buttonMixin)("subtle", {
1121
+ color: $.variables.contentColorDefault
1122
+ }), $.variables.focusShadowInset)
1109
1123
  }));
1124
+ var En = M().div.withConfig({
1125
+ displayName: "HeadCellStyles__StyledIcon",
1126
+ componentId: "sc-1hj81sa-2"
1127
+ })([ "display:inline-flex;align-items:center;height:1lh;" ]);
1110
1128
  // TODO(SUI-7400): Refactor the drag handler of re-order column
1111
- var kn = $().div.withConfig({
1129
+ var In = M().div.withConfig({
1112
1130
  displayName: "HeadCellStyles__StyledDragHandler",
1113
- componentId: "sc-1hj81sa-2"
1114
- })([ "display:inline-flex;align-items:center;justify-content:center;width:20px;cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none;&:hover{background:", ";color:", ";}&:focus{background:", ";box-shadow:", ";color:", ";}" ], N.variables.interactiveColorOverlayHover, N.variables.contentColorActive, N.variables.interactiveColorOverlayDrag, N.variables.focusShadowInset, N.variables.contentColorActive);
1131
+ componentId: "sc-1hj81sa-3"
1132
+ })([ "display:inline-flex;align-items:start;align-self:stretch;justify-content:center;min-width:20px;cursor:move;padding-block:", ";-webkit-user-select:none;-moz-user-select:none;user-select:none;&:hover{background:", ";color:", ";}&:focus{background:", ";box-shadow:", ";color:", ";}" ], (0,
1133
+ $.pick)({
1134
+ comfortable: "8px",
1135
+ compact: "6px"
1136
+ }), $.variables.interactiveColorOverlayHover, $.variables.contentColorActive, $.variables.interactiveColorOverlayDrag, $.variables.focusShadowInset, $.variables.contentColorActive);
1115
1137
  // CONCATENATED MODULE: ./src/Table/HeadCell.tsx
1116
- function On() {
1117
- return On = Object.assign ? Object.assign.bind() : function(e) {
1138
+ function Tn() {
1139
+ return Tn = Object.assign ? Object.assign.bind() : function(e) {
1118
1140
  for (var n = 1; n < arguments.length; n++) {
1119
1141
  var t = arguments[n];
1120
1142
  for (var r in t) {
@@ -1122,11 +1144,11 @@
1122
1144
  }
1123
1145
  }
1124
1146
  return e;
1125
- }, On.apply(null, arguments);
1147
+ }, Tn.apply(null, arguments);
1126
1148
  }
1127
- function Rn(e, n) {
1149
+ function jn(e, n) {
1128
1150
  if (null == e) return {};
1129
- var t, r, o = En(e, n);
1151
+ var t, r, o = Dn(e, n);
1130
1152
  if (Object.getOwnPropertySymbols) {
1131
1153
  var i = Object.getOwnPropertySymbols(e);
1132
1154
  for (r = 0; r < i.length; r++) {
@@ -1135,7 +1157,7 @@
1135
1157
  }
1136
1158
  return o;
1137
1159
  }
1138
- function En(e, n) {
1160
+ function Dn(e, n) {
1139
1161
  if (null == e) return {};
1140
1162
  var t = {};
1141
1163
  for (var r in e) {
@@ -1147,7 +1169,7 @@
1147
1169
  return t;
1148
1170
  }
1149
1171
  /** @public */
1150
- /** @public */ var In = {
1172
+ /** @public */ var qn = {
1151
1173
  align: i().oneOf([ "left", "center", "right" ]),
1152
1174
  /** @private Used to set the $clickable appearance without an onClick */
1153
1175
  appearClickable: i().bool,
@@ -1175,6 +1197,7 @@
1175
1197
  resizable: i().bool,
1176
1198
  sortDir: i().oneOf([ "asc", "desc", "none" ]),
1177
1199
  sortKey: i().string,
1200
+ tooltip: i().node,
1178
1201
  truncate: i().bool,
1179
1202
  /** @private. */
1180
1203
  variant: i().oneOf([ "toggleAll", "info", "actions" ]),
@@ -1186,27 +1209,27 @@
1186
1209
  visible: i().bool,
1187
1210
  width: i().oneOfType([ i().number, i().oneOf([ "auto" ]) ])
1188
1211
  };
1189
- var Tn = {
1212
+ var An = {
1190
1213
  asc: "ascending",
1191
1214
  desc: "descending",
1192
1215
  none: "none"
1193
1216
  };
1194
- function jn(e) {
1195
- var n = e.align, o = n === void 0 ? "left" : n, i = e.appearClickable, a = e.children, u = e.columnId, s = e.elementRef, c = e.dragId, d = e.headCellScreenReaderText, f = e.id, v = e.index, p = e.onAutosizeColumn, b = e.onClick, m = e.onKeyDown, h = e.onRequestMoveColumn, y = e.onRequestResize, g = e.onSort, w = e.resizable, C = w === void 0 ? true : w, x = e.sortDir, S = x === void 0 ? "none" : x, k = e.sortKey, O = e.style, R = e.truncate, E = R === void 0 ? true : R, I = e.variant, T = e.visible, j = T === void 0 ? true : T, A = e.width, P = Rn(e, [ "align", "appearClickable", "children", "columnId", "elementRef", "dragId", "headCellScreenReaderText", "id", "index", "onAutosizeColumn", "onClick", "onKeyDown", "onRequestMoveColumn", "onRequestResize", "onSort", "resizable", "sortDir", "sortKey", "style", "truncate", "variant", "visible", "width" ]);
1217
+ function Pn(e) {
1218
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.appearClickable, a = e.children, u = e.columnId, s = e.elementRef, c = e.dragId, d = e.headCellScreenReaderText, f = e.id, v = e.index, p = e.onAutosizeColumn, m = e.onClick, b = e.onKeyDown, h = e.onRequestMoveColumn, y = e.onRequestResize, g = e.onSort, w = e.resizable, C = w === void 0 ? true : w, x = e.sortDir, S = x === void 0 ? "none" : x, k = e.sortKey, O = e.style, R = e.tooltip, E = e.truncate, I = E === void 0 ? true : E, T = e.variant, q = e.visible, A = q === void 0 ? true : q, P = e.width, _ = jn(e, [ "align", "appearClickable", "children", "columnId", "elementRef", "dragId", "headCellScreenReaderText", "id", "index", "onAutosizeColumn", "onClick", "onKeyDown", "onRequestMoveColumn", "onRequestResize", "onSort", "resizable", "sortDir", "sortKey", "style", "tooltip", "truncate", "variant", "visible", "width" ]);
1196
1219
  // @docs-props-type HeadCellPropsBase
1197
- var _ = !!h;
1198
- var z = (0, l.useSortable)({
1220
+ var z = !!h;
1221
+ var M = (0, l.useSortable)({
1199
1222
  // dragId is optional in HeadCell but required by useSortable
1200
1223
  // since it is always set in Table, use a type assertion here to avoid TypeScript error
1201
1224
  id: c
1202
- }), M = z.attributes, $ = z.isDragging, N = z.listeners, W = z.setNodeRef;
1203
- var H = (0, t.useCallback)((function(e) {
1204
- L(s, e);
1205
- if (_) {
1206
- W(e);
1207
- }
1208
- }), [ _, s, W ]);
1225
+ }), $ = M.attributes, N = M.isDragging, L = M.listeners, H = M.setNodeRef;
1209
1226
  var K = (0, t.useCallback)((function(e) {
1227
+ W(s, e);
1228
+ if (z) {
1229
+ H(e);
1230
+ }
1231
+ }), [ z, s, H ]);
1232
+ var B = (0, t.useCallback)((function(e) {
1210
1233
  // ignore clicks on the resize handle
1211
1234
  if (e.target.getAttribute("data-test") !== "resize" && g && v !== undefined) {
1212
1235
  g(e, {
@@ -1217,104 +1240,113 @@
1217
1240
  index: v
1218
1241
  });
1219
1242
  }
1220
- b === null || b === void 0 ? void 0 : b();
1221
- }), [ u, f, v, b, g, S, k ]);
1222
- var B = (0, t.useCallback)((function(e) {
1243
+ m === null || m === void 0 ? void 0 : m();
1244
+ }), [ u, f, v, m, g, S, k ]);
1245
+ var V = (0, t.useCallback)((function(e) {
1223
1246
  if (v !== undefined) {
1224
- m === null || m === void 0 ? void 0 : m(e, {
1247
+ b === null || b === void 0 ? void 0 : b(e, {
1225
1248
  index: v,
1226
1249
  columnId: u
1227
1250
  });
1228
1251
  }
1229
- }), [ u, v, m ]);
1230
- var V = !!g && !!S;
1231
- var F = b !== undefined;
1232
- var U = I === "actions" ? false : E;
1233
- var X = (0, t.useMemo)((function() {
1234
- return Ie()({}, O, {
1235
- width: A
1252
+ }), [ u, v, b ]);
1253
+ var F = !!g && !!S;
1254
+ var U = m !== undefined;
1255
+ var X = T === "actions" ? false : I;
1256
+ var Y = (0, t.useMemo)((function() {
1257
+ return Ee()({}, O, {
1258
+ width: P
1236
1259
  });
1237
- }), [ O, A ]);
1238
- var Y;
1260
+ }), [ O, P ]);
1261
+ var G;
1239
1262
  if (d) {
1240
- Y = d;
1241
- } else if (Re()(a)) {
1242
- Y = a;
1263
+ G = d;
1264
+ } else if (Oe()(a)) {
1265
+ G = a;
1243
1266
  }
1267
+ var J = (0, t.useMemo)((function() {
1268
+ return {
1269
+ align: o,
1270
+ clickable: i || F || U,
1271
+ columnId: u,
1272
+ focusWithin: i,
1273
+ label: a,
1274
+ id: f,
1275
+ index: v,
1276
+ onAutosizeColumn: p,
1277
+ onClick: g || U ? B : undefined,
1278
+ onKeyDown: g || U ? V : undefined,
1279
+ onRequestResize: y,
1280
+ resizable: A && C,
1281
+ sortDir: g && S,
1282
+ truncate: X,
1283
+ variant: T,
1284
+ width: P
1285
+ };
1286
+ }), [ o, i, F, U, u, a, f, v, p, g, B, V, y, A, C, S, X, T, P ]);
1287
+ var Q = (0, t.useCallback)((function(e) {
1288
+
1289
+ return r().createElement(kn, Tn({}, e, J, {
1290
+ hasTooltip: true
1291
+ }));
1292
+ }), [ J ]);
1244
1293
 
1245
- return r().createElement(Sn, On({
1246
- style: X,
1247
- ref: H,
1248
- "aria-sort": g && (Tn[S] || "none"),
1294
+ return r().createElement(Rn, Tn({
1295
+ style: Y,
1296
+ ref: K,
1297
+ "aria-sort": g && (An[S] || "none"),
1249
1298
  "data-test": "head-cell",
1250
- "data-test-label": Re()(a) ? a : undefined,
1299
+ "data-test-label": Oe()(a) ? a : undefined,
1251
1300
  "data-test-sort-dir": g && S,
1252
- id: j ? f : undefined,
1253
- $isDragging: _ && $,
1254
- $variant: I
1255
- }, P), r().createElement(xn, null, _ && r().createElement(kn, On({
1256
- "aria-label": (0, q.sprintf)((0, D._)("Reorder %(labelString)s"), {
1257
- labelString: Y
1301
+ id: A ? f : undefined,
1302
+ $isDragging: z && N,
1303
+ $variant: T
1304
+ }, _), r().createElement(On, null, z && r().createElement(In, Tn({
1305
+ "aria-label": (0, D.sprintf)((0, j._)("Reorder %(labelString)s"), {
1306
+ labelString: G
1258
1307
  }),
1259
1308
  "data-test": "drag",
1260
1309
  draggable: true
1261
- }, M, N), r().createElement(je(), null)), r().createElement(Cn, {
1262
- align: o,
1263
- clickable: i || V || F,
1264
- columnId: u,
1265
- focusWithin: i,
1266
- label: a,
1267
- id: f,
1268
- index: v,
1269
- onAutosizeColumn: p,
1270
- onClick: g || F ? K : undefined,
1271
- onKeyDown: g || F ? B : undefined,
1272
- onRequestResize: y,
1273
- resizable: j && C,
1274
- sortDir: g && S,
1275
- truncate: U,
1276
- variant: I,
1277
- width: A
1278
- })));
1279
- }
1280
- jn.propTypes = In;
1281
- jn.splunkUiType = "Table.HeadCell";
1282
- /* harmony default export */ const Dn = jn;
1310
+ }, $, L), r().createElement(En, null, r().createElement(Te(), null))), R ? r().createElement(De(), {
1311
+ content: R,
1312
+ renderAnchor: Q
1313
+ }) : r().createElement(kn, J)));
1314
+ }
1315
+ Pn.propTypes = qn;
1316
+ Pn.splunkUiType = "Table.HeadCell";
1317
+ /* harmony default export */ const _n = Pn;
1283
1318
  // CONCATENATED MODULE: external "@dnd-kit/utilities"
1284
- const qn = require("@dnd-kit/utilities");
1319
+ const zn = require("@dnd-kit/utilities");
1285
1320
  // CONCATENATED MODULE: external "@splunk/react-icons/DotsThreeVertical"
1286
- const An = require("@splunk/react-icons/DotsThreeVertical");
1287
- var Pn = e.n(An);
1288
- // CONCATENATED MODULE: external "@splunk/react-ui/Button"
1289
- const _n = require("@splunk/react-ui/Button");
1290
- var zn = e.n(_n);
1291
- // CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
1292
- const Mn = require("@splunk/react-ui/Dropdown");
1321
+ const Mn = require("@splunk/react-icons/DotsThreeVertical");
1293
1322
  var $n = e.n(Mn);
1294
- // CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
1295
- const Nn = require("@splunk/react-ui/Tooltip");
1323
+ // CONCATENATED MODULE: external "@splunk/react-ui/Button"
1324
+ const Nn = require("@splunk/react-ui/Button");
1296
1325
  var Wn = e.n(Nn);
1297
- // CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
1298
- const Ln = require("@splunk/react-icons/ChevronRight");
1326
+ // CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
1327
+ const Ln = require("@splunk/react-ui/Dropdown");
1299
1328
  var Hn = e.n(Ln);
1329
+ // CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
1330
+ const Kn = require("@splunk/react-icons/ChevronRight");
1331
+ var Bn = e.n(Kn);
1300
1332
  // CONCATENATED MODULE: ./src/Table/ExpandButtonStyles.ts
1301
- var Kn = "2px";
1302
- var Bn = "16px";
1303
- var Vn = (0, M.css)([ "padding-top:calc((", " + ", "*2 - ", ") / 2);" ], N.variables.inputHeight, Kn, Bn);
1304
- var Fn = $().button.withConfig({
1333
+ var Vn = M().button.withConfig({
1305
1334
  displayName: "ExpandButtonStyles__StyledButton",
1306
1335
  componentId: "sc-7nlw5q-0"
1307
- })([ "", ";height:100%;width:100%;cursor:pointer;justify-content:center;padding:", ";", ";color:", " &:hover{color:", ";}&:focus{color:", ";box-shadow:", ";}" ], N.mixins.reset("flex"), N.variables.spacingXSmall, Vn, N.variables.contentColorDefault, N.variables.contentColorActive, N.variables.contentColorActive, N.variables.focusShadowInset);
1308
- var Un = $()(Hn()).withConfig({
1336
+ })([ "", ";height:100%;width:100%;cursor:pointer;justify-content:center;color:", ";&:hover{color:", ";}&:focus{color:", ";box-shadow:", ";}" ], $.mixins.reset("flex"), $.variables.contentColorDefault, $.variables.contentColorActive, $.variables.contentColorActive, $.variables.focusShadowInset);
1337
+ var Fn = M()(Bn()).withConfig({
1309
1338
  displayName: "ExpandButtonStyles__StyledChevron",
1310
1339
  componentId: "sc-7nlw5q-1"
1311
- })([ "transition:transform 200ms;", "" ], (function(e) {
1340
+ })([ "padding-block:", ";transition:transform 200ms;", "" ], (0, $.pick)({
1341
+ comfortable: "10px",
1342
+ compact: "8px"
1343
+ }), (function(e) {
1312
1344
  var n = e.$expanded;
1313
- return n && (0, M.css)([ "transform:rotate(90deg);" ]);
1345
+ return n && (0, z.css)([ "transform:rotate(90deg);" ]);
1314
1346
  }));
1315
1347
  // CONCATENATED MODULE: ./src/Table/ExpandButton.tsx
1316
- function Xn() {
1317
- return Xn = Object.assign ? Object.assign.bind() : function(e) {
1348
+ function Un() {
1349
+ return Un = Object.assign ? Object.assign.bind() : function(e) {
1318
1350
  for (var n = 1; n < arguments.length; n++) {
1319
1351
  var t = arguments[n];
1320
1352
  for (var r in t) {
@@ -1322,11 +1354,11 @@
1322
1354
  }
1323
1355
  }
1324
1356
  return e;
1325
- }, Xn.apply(null, arguments);
1357
+ }, Un.apply(null, arguments);
1326
1358
  }
1327
- function Yn(e, n) {
1359
+ function Xn(e, n) {
1328
1360
  if (null == e) return {};
1329
- var t, r, o = Gn(e, n);
1361
+ var t, r, o = Yn(e, n);
1330
1362
  if (Object.getOwnPropertySymbols) {
1331
1363
  var i = Object.getOwnPropertySymbols(e);
1332
1364
  for (r = 0; r < i.length; r++) {
@@ -1335,7 +1367,7 @@
1335
1367
  }
1336
1368
  return o;
1337
1369
  }
1338
- function Gn(e, n) {
1370
+ function Yn(e, n) {
1339
1371
  if (null == e) return {};
1340
1372
  var t = {};
1341
1373
  for (var r in e) {
@@ -1346,32 +1378,32 @@
1346
1378
  }
1347
1379
  return t;
1348
1380
  }
1349
- var Jn = {
1381
+ var Gn = {
1350
1382
  expanded: i().bool
1351
1383
  };
1352
- var Qn = function e(n) {
1353
- var t = n.expanded, o = Yn(n, [ "expanded" ]);
1384
+ var Jn = function e(n) {
1385
+ var t = n.expanded, o = Xn(n, [ "expanded" ]);
1354
1386
 
1355
- return r().createElement(Fn, Xn({
1356
- title: t ? (0, D._)("Collapse row") : (0, D._)("Expand row")
1357
- }, o), r().createElement(Un, {
1387
+ return r().createElement(Vn, Un({
1388
+ title: t ? (0, j._)("Collapse row") : (0, j._)("Expand row")
1389
+ }, o), r().createElement(Fn, {
1358
1390
  $expanded: t
1359
1391
  }));
1360
1392
  };
1361
- Qn.propTypes = Jn;
1362
- /* harmony default export */ const Zn = Qn;
1393
+ Jn.propTypes = Gn;
1394
+ /* harmony default export */ const Qn = Jn;
1363
1395
  // CONCATENATED MODULE: ./src/Table/RowDragCellStyles.ts
1364
- var et = $().td.withConfig({
1396
+ var Zn = M().td.withConfig({
1365
1397
  displayName: "RowDragCellStyles__StyledCell",
1366
1398
  componentId: "sc-9kbaj2-0"
1367
- })([ "", " cursor:move;touch-action:none;position:relative;vertical-align:middle;" ], N.mixins.reset("table-cell"));
1368
- var nt = $().div.withConfig({
1399
+ })([ "", " cursor:move;touch-action:none;position:relative;vertical-align:middle;" ], $.mixins.reset("table-cell"));
1400
+ var et = M().div.withConfig({
1369
1401
  displayName: "RowDragCellStyles__StyledDrag",
1370
1402
  componentId: "sc-9kbaj2-1"
1371
- })([ "", " ", ";justify-content:center;cursor:move;-webkit-user-drag:element;user-select:none;align-items:center;position:absolute;width:100%;top:0;bottom:0;&:focus{outline:0;box-shadow:", ";}&:hover{background-color:", ";outline:none;}&:active{background-color:", ";box-shadow:", ";}& > div{margin:0;}@media print{background-image:none;}" ], N.mixins.reset("flex"), N.mixins.clearfix(), N.variables.focusShadowInset, N.variables.interactiveColorOverlayDrag, N.variables.interactiveColorOverlayActive, N.variables.focusShadowInset);
1403
+ })([ "", " ", ";justify-content:center;cursor:move;-webkit-user-drag:element;user-select:none;align-items:center;position:absolute;width:100%;top:0;bottom:0;&:focus{outline:0;box-shadow:", ";}&:hover{background-color:", ";outline:none;}&:active{background-color:", ";box-shadow:", ";}& > div{margin:0;}@media print{background-image:none;}" ], $.mixins.reset("flex"), $.mixins.clearfix(), $.variables.focusShadowInset, $.variables.interactiveColorOverlayDrag, $.variables.interactiveColorOverlayActive, $.variables.focusShadowInset);
1372
1404
  // CONCATENATED MODULE: ./src/Table/RowDragCell.tsx
1373
- function tt() {
1374
- return tt = Object.assign ? Object.assign.bind() : function(e) {
1405
+ function nt() {
1406
+ return nt = Object.assign ? Object.assign.bind() : function(e) {
1375
1407
  for (var n = 1; n < arguments.length; n++) {
1376
1408
  var t = arguments[n];
1377
1409
  for (var r in t) {
@@ -1379,11 +1411,11 @@
1379
1411
  }
1380
1412
  }
1381
1413
  return e;
1382
- }, tt.apply(null, arguments);
1414
+ }, nt.apply(null, arguments);
1383
1415
  }
1384
- function rt(e, n) {
1416
+ function tt(e, n) {
1385
1417
  if (null == e) return {};
1386
- var t, r, o = ot(e, n);
1418
+ var t, r, o = rt(e, n);
1387
1419
  if (Object.getOwnPropertySymbols) {
1388
1420
  var i = Object.getOwnPropertySymbols(e);
1389
1421
  for (r = 0; r < i.length; r++) {
@@ -1392,7 +1424,7 @@
1392
1424
  }
1393
1425
  return o;
1394
1426
  }
1395
- function ot(e, n) {
1427
+ function rt(e, n) {
1396
1428
  if (null == e) return {};
1397
1429
  var t = {};
1398
1430
  for (var r in e) {
@@ -1403,61 +1435,63 @@
1403
1435
  }
1404
1436
  return t;
1405
1437
  }
1406
- var it = {
1438
+ var ot = {
1407
1439
  setActivatorNodeRef: i().func.isRequired,
1408
1440
  listeners: i().objectOf(i().func)
1409
1441
  };
1410
- function at(e) {
1411
- var n = e.listeners, t = e.setActivatorNodeRef, o = rt(e, [ "listeners", "setActivatorNodeRef" ]);
1442
+ function it(e) {
1443
+ var n = e.listeners, t = e.setActivatorNodeRef, o = tt(e, [ "listeners", "setActivatorNodeRef" ]);
1412
1444
 
1413
- return r().createElement(et, {
1445
+ return r().createElement(Zn, {
1414
1446
  "data-helper": true
1415
- }, r().createElement(nt, tt({
1447
+ }, r().createElement(et, nt({
1416
1448
  "data-test": "drag",
1417
1449
  draggable: true,
1418
1450
  ref: t,
1419
1451
  tabIndex: 0
1420
- }, n, o), r().createElement(je(), null)));
1452
+ }, n, o), r().createElement(Te(), null)));
1421
1453
  }
1422
- at.propTypes = it;
1423
- /* harmony default export */ const lt = at;
1454
+ it.propTypes = ot;
1455
+ /* harmony default export */ const at = it;
1424
1456
  // CONCATENATED MODULE: ./src/Table/RowStyles.ts
1425
- var ut = $().tr.withConfig({
1457
+ var lt = M().tr.withConfig({
1426
1458
  displayName: "RowStyles__StyledStripeNone",
1427
1459
  componentId: "f0igqq-0"
1428
- })([ "", ";", ";", " @media print{background-color:none;}" ], N.mixins.reset("table-row"), (function(e) {
1460
+ })([ "", ";", ";", " @media print{background-color:none;}" ], $.mixins.reset("table-row"), (function(e) {
1429
1461
  var n = e.$clickable;
1430
- return n && (0, M.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{background-color:", ";box-shadow:", ";}" ], N.variables.neutral100, N.variables.neutral100, N.variables.focusShadowInset);
1462
+ return n && (0, z.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{background-color:", ";box-shadow:", ";}" ], $.variables.neutral100, $.variables.neutral100, $.variables.focusShadowInset);
1431
1463
  }), (function(e) {
1432
1464
  var n = e.disabled, t = e.$expandable, r = e.$isDraggable;
1433
- return !n && !t && r && (0, M.css)([ "&:hover{background-color:", ";}" ], N.variables.interactiveColorOverlayHover);
1465
+ return !n && !t && r && (0, z.css)([ "&:hover{background-color:", ";}" ], $.variables.interactiveColorOverlayHover);
1434
1466
  }));
1435
- var st = $()(ut).withConfig({
1467
+ var ut = M()(lt).withConfig({
1436
1468
  displayName: "RowStyles__StyledStripeEven",
1437
1469
  componentId: "f0igqq-1"
1438
- })([ "background-color:", ";", ";" ], N.variables.neutral50, (function(e) {
1470
+ })([ "background-color:", ";", ";" ], $.variables.neutral50, (function(e) {
1439
1471
  var n = e.$clickable;
1440
- return n && (0, M.css)([ "cursor:pointer;&:hover,&:focus{background-color:", ";}" ], N.variables.neutral300);
1472
+ return n && (0, z.css)([ "cursor:pointer;&:hover,&:focus{background-color:", ";}" ], $.variables.neutral300);
1441
1473
  }));
1442
1474
  // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
1443
- const ct = require("@splunk/react-ui/Clickable");
1444
- var dt = e.n(ct);
1475
+ const st = require("@splunk/react-ui/Clickable");
1476
+ var ct = e.n(st);
1445
1477
  // CONCATENATED MODULE: external "@splunk/react-ui/NonInteractiveCheckbox"
1446
- const ft = require("@splunk/react-ui/NonInteractiveCheckbox");
1447
- var vt = e.n(ft);
1478
+ const dt = require("@splunk/react-ui/NonInteractiveCheckbox");
1479
+ var ft = e.n(dt);
1448
1480
  // CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
1449
- var pt = "2px";
1450
- var bt = $()(dt()).withConfig({
1481
+ var vt = M()(ct()).withConfig({
1451
1482
  displayName: "ToggleStyles__StyledClickable",
1452
1483
  componentId: "sc-1x3ikch-0"
1453
- })([ "height:100%;width:100%;display:flex;justify-content:center;min-height:calc(", " + ", "*2);&[disabled]{cursor:not-allowed;}" ], N.variables.inputHeight, pt);
1454
- var mt = $()(vt()).withConfig({
1484
+ })([ "height:100%;width:100%;display:flex;justify-content:center;&[disabled]{cursor:not-allowed;}" ]);
1485
+ var pt = M()(ft()).withConfig({
1455
1486
  displayName: "ToggleStyles__StyledNonInteractiveCheckbox",
1456
1487
  componentId: "sc-1x3ikch-1"
1457
- })([ "align-items:flex-start;padding-top:", ";" ], N.variables.spacingSmall);
1488
+ })([ "align-items:flex-start;padding-block:", ";" ], (0, $.pick)({
1489
+ comfortable: "8px",
1490
+ compact: "6px"
1491
+ }));
1458
1492
  // CONCATENATED MODULE: ./src/Table/Toggle.tsx
1459
- function ht() {
1460
- return ht = Object.assign ? Object.assign.bind() : function(e) {
1493
+ function mt() {
1494
+ return mt = Object.assign ? Object.assign.bind() : function(e) {
1461
1495
  for (var n = 1; n < arguments.length; n++) {
1462
1496
  var t = arguments[n];
1463
1497
  for (var r in t) {
@@ -1465,11 +1499,11 @@
1465
1499
  }
1466
1500
  }
1467
1501
  return e;
1468
- }, ht.apply(null, arguments);
1502
+ }, mt.apply(null, arguments);
1469
1503
  }
1470
- function yt(e, n) {
1504
+ function bt(e, n) {
1471
1505
  if (null == e) return {};
1472
- var t, r, o = gt(e, n);
1506
+ var t, r, o = ht(e, n);
1473
1507
  if (Object.getOwnPropertySymbols) {
1474
1508
  var i = Object.getOwnPropertySymbols(e);
1475
1509
  for (r = 0; r < i.length; r++) {
@@ -1478,7 +1512,7 @@
1478
1512
  }
1479
1513
  return o;
1480
1514
  }
1481
- function gt(e, n) {
1515
+ function ht(e, n) {
1482
1516
  if (null == e) return {};
1483
1517
  var t = {};
1484
1518
  for (var r in e) {
@@ -1489,38 +1523,38 @@
1489
1523
  }
1490
1524
  return t;
1491
1525
  }
1492
- var wt = {
1526
+ var yt = {
1493
1527
  disabled: i().bool,
1494
1528
  onClick: i().func,
1495
1529
  selected: i().oneOf([ true, false, "some" ])
1496
1530
  };
1497
- function Ct(e) {
1498
- var n = e.disabled, t = e.onClick, o = e.selected, i = yt(e, [ "disabled", "onClick", "selected" ]);
1531
+ function gt(e) {
1532
+ var n = e.disabled, t = e.onClick, o = e.selected, i = bt(e, [ "disabled", "onClick", "selected" ]);
1499
1533
  var a = n === true ? "disabled" : undefined;
1500
1534
 
1501
1535
  // Note we use a clickable around the NonInteractiveCheckbox (which can seem ironic) so that the whole table cell is clickable and we cannot use the Cell's onClick itself because of a11y issues we have faced in the past (see SUI-5958).
1502
- return r().createElement(bt, ht({
1536
+ return r().createElement(vt, mt({
1503
1537
  "aria-checked": o === "some" ? "mixed" : o,
1504
1538
  disabled: a,
1505
1539
  onClick: t,
1506
1540
  role: "checkbox"
1507
- }, i), r().createElement(mt, {
1541
+ }, i), r().createElement(pt, {
1508
1542
  disabled: !!a,
1509
1543
  selected: o
1510
1544
  }));
1511
1545
  }
1512
- Ct.propTypes = wt;
1513
- /* harmony default export */ const xt = Ct;
1546
+ gt.propTypes = yt;
1547
+ /* harmony default export */ const wt = gt;
1514
1548
  // CONCATENATED MODULE: ./src/Table/Row.tsx
1515
- function St(e) {
1549
+ function Ct(e) {
1516
1550
  "@babel/helpers - typeof";
1517
- return St = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1551
+ return Ct = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1518
1552
  return typeof e;
1519
1553
  } : function(e) {
1520
1554
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1521
- }, St(e);
1555
+ }, Ct(e);
1522
1556
  }
1523
- function kt(e, n) {
1557
+ function xt(e, n) {
1524
1558
  var t = Object.keys(e);
1525
1559
  if (Object.getOwnPropertySymbols) {
1526
1560
  var r = Object.getOwnPropertySymbols(e);
@@ -1530,42 +1564,42 @@
1530
1564
  }
1531
1565
  return t;
1532
1566
  }
1533
- function Ot(e) {
1567
+ function St(e) {
1534
1568
  for (var n = 1; n < arguments.length; n++) {
1535
1569
  var t = null != arguments[n] ? arguments[n] : {};
1536
- n % 2 ? kt(Object(t), !0).forEach((function(n) {
1537
- Rt(e, n, t[n]);
1538
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : kt(Object(t)).forEach((function(n) {
1570
+ n % 2 ? xt(Object(t), !0).forEach((function(n) {
1571
+ kt(e, n, t[n]);
1572
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : xt(Object(t)).forEach((function(n) {
1539
1573
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1540
1574
  }));
1541
1575
  }
1542
1576
  return e;
1543
1577
  }
1544
- function Rt(e, n, t) {
1545
- return (n = Et(n)) in e ? Object.defineProperty(e, n, {
1578
+ function kt(e, n, t) {
1579
+ return (n = Ot(n)) in e ? Object.defineProperty(e, n, {
1546
1580
  value: t,
1547
1581
  enumerable: !0,
1548
1582
  configurable: !0,
1549
1583
  writable: !0
1550
1584
  }) : e[n] = t, e;
1551
1585
  }
1552
- function Et(e) {
1553
- var n = It(e, "string");
1554
- return "symbol" == St(n) ? n : n + "";
1586
+ function Ot(e) {
1587
+ var n = Rt(e, "string");
1588
+ return "symbol" == Ct(n) ? n : n + "";
1555
1589
  }
1556
- function It(e, n) {
1557
- if ("object" != St(e) || !e) return e;
1590
+ function Rt(e, n) {
1591
+ if ("object" != Ct(e) || !e) return e;
1558
1592
  var t = e[Symbol.toPrimitive];
1559
1593
  if (void 0 !== t) {
1560
1594
  var r = t.call(e, n || "default");
1561
- if ("object" != St(r)) return r;
1595
+ if ("object" != Ct(r)) return r;
1562
1596
  throw new TypeError("@@toPrimitive must return a primitive value.");
1563
1597
  }
1564
1598
  return ("string" === n ? String : Number)(e);
1565
1599
  }
1566
- function Tt(e, n) {
1600
+ function Et(e, n) {
1567
1601
  if (null == e) return {};
1568
- var t, r, o = jt(e, n);
1602
+ var t, r, o = It(e, n);
1569
1603
  if (Object.getOwnPropertySymbols) {
1570
1604
  var i = Object.getOwnPropertySymbols(e);
1571
1605
  for (r = 0; r < i.length; r++) {
@@ -1574,7 +1608,7 @@
1574
1608
  }
1575
1609
  return o;
1576
1610
  }
1577
- function jt(e, n) {
1611
+ function It(e, n) {
1578
1612
  if (null == e) return {};
1579
1613
  var t = {};
1580
1614
  for (var r in e) {
@@ -1585,8 +1619,8 @@
1585
1619
  }
1586
1620
  return t;
1587
1621
  }
1588
- function Dt() {
1589
- return Dt = Object.assign ? Object.assign.bind() : function(e) {
1622
+ function Tt() {
1623
+ return Tt = Object.assign ? Object.assign.bind() : function(e) {
1590
1624
  for (var n = 1; n < arguments.length; n++) {
1591
1625
  var t = arguments[n];
1592
1626
  for (var r in t) {
@@ -1594,18 +1628,18 @@
1594
1628
  }
1595
1629
  }
1596
1630
  return e;
1597
- }, Dt.apply(null, arguments);
1631
+ }, Tt.apply(null, arguments);
1598
1632
  }
1599
- var qt = {
1600
- odd: ut,
1601
- even: st,
1602
- none: ut
1633
+ var jt = {
1634
+ odd: lt,
1635
+ even: ut,
1636
+ none: lt
1603
1637
  };
1604
1638
  /** @public */
1605
1639
  /** @public */
1606
1640
  /** @public */
1607
1641
  /** @public */
1608
- /** @public */ var At = {
1642
+ /** @public */ var Dt = {
1609
1643
  /** @private. Generally passed by Table rather than added directly. */
1610
1644
  activeElementId: i().string,
1611
1645
  actionPrimary: i().element,
@@ -1644,41 +1678,41 @@
1644
1678
  /** @private. */
1645
1679
  stripe: i().oneOf([ "odd", "even", "none" ])
1646
1680
  };
1647
- var Pt = r().createElement(Pn(), null);
1648
- var _t = r().forwardRef((function(e, n) {
1681
+ var qt = r().createElement($n(), null);
1682
+ var At = r().forwardRef((function(e, n) {
1649
1683
 
1650
- return r().createElement(Wn(), Dt({
1651
- content: (0, D._)("Actions"),
1684
+ return r().createElement(De(), Tt({
1685
+ content: (0, j._)("Actions"),
1652
1686
  contentRelationship: "label"
1653
- }, e), r().createElement(zn(), {
1687
+ }, e), r().createElement(Wn(), {
1654
1688
  appearance: "subtle",
1655
1689
  "data-test": "actions-secondary-toggle",
1656
- icon: Pt,
1690
+ icon: qt,
1657
1691
  elementRef: n
1658
1692
  }));
1659
1693
  }));
1660
- function zt(e) {
1694
+ function Pt(e) {
1661
1695
  var n;
1662
- var o = e.actions, i = e.actionPrimary, a = e.actionsSecondary, u = e.children, s = e.data, c = e.dragId, d = e.disabled, f = e.isDraggable, v = e.elementRef, p = e.expandable, b = e.expanded, m = e.expansionRowIds, h = e.expansionRow, y = e.index, w = e.movableColumns, C = e.onClick, x = e.onExpansion, S = e.onKeyDown, k = e.onRequestToggle, O = e.primaryColumnIndex, I = O === void 0 ? 0 : O, T = e.rowScreenReaderText, j = e.selected, A = e.stripe, P = A === void 0 ? "none" : A, _ = e.style, z = Tt(e, [ "actions", "actionPrimary", "actionsSecondary", "children", "data", "dragId", "disabled", "isDraggable", "elementRef", "expandable", "expanded", "expansionRowIds", "expansionRow", "index", "movableColumns", "onClick", "onExpansion", "onKeyDown", "onRequestToggle", "primaryColumnIndex", "rowScreenReaderText", "selected", "stripe", "style" ]);
1696
+ var o = e.actions, i = e.actionPrimary, a = e.actionsSecondary, u = e.children, s = e.data, c = e.dragId, d = e.disabled, f = e.isDraggable, v = e.elementRef, p = e.expandable, m = e.expanded, b = e.expansionRowIds, h = e.expansionRow, y = e.index, w = e.movableColumns, C = e.onClick, x = e.onExpansion, S = e.onKeyDown, k = e.onRequestToggle, O = e.primaryColumnIndex, E = O === void 0 ? 0 : O, I = e.rowScreenReaderText, T = e.selected, q = e.stripe, A = q === void 0 ? "none" : q, P = e.style, _ = Et(e, [ "actions", "actionPrimary", "actionsSecondary", "children", "data", "dragId", "disabled", "isDraggable", "elementRef", "expandable", "expanded", "expansionRowIds", "expansionRow", "index", "movableColumns", "onClick", "onExpansion", "onKeyDown", "onRequestToggle", "primaryColumnIndex", "rowScreenReaderText", "selected", "stripe", "style" ]);
1663
1697
  // @docs-props-type RowPropsBase
1664
- var M = (0, t.useMemo)((function() {
1698
+ var z = (0, t.useMemo)((function() {
1665
1699
  return {
1666
1700
  id: f ? c : (0, R.createGUID)(),
1667
1701
  disabled: !f
1668
1702
  };
1669
1703
  }), [ f, c ]);
1670
- var $ = (0, l.useSortable)(M), N = $.attributes, W = $.listeners, H = $.transform, K = $.transition, B = $.setNodeRef, V = $.setActivatorNodeRef;
1671
- var F = (0, t.useMemo)((function() {
1672
- return f ? Ot(Ot({}, _), {}, {
1673
- transform: qn.CSS.Translate.toString(H),
1674
- transition: K
1675
- }) : _;
1676
- }), [ f, H, K, _ ]);
1677
- var U = (0, t.useRef)(null);
1678
- var X = (0, t.useCallback)((function(e) {
1704
+ var M = (0, l.useSortable)(z), $ = M.attributes, N = M.listeners, L = M.transform, H = M.transition, K = M.setNodeRef, B = M.setActivatorNodeRef;
1705
+ var V = (0, t.useMemo)((function() {
1706
+ return f ? St(St({}, P), {}, {
1707
+ transform: zn.CSS.Translate.toString(L),
1708
+ transition: H
1709
+ }) : P;
1710
+ }), [ f, L, H, P ]);
1711
+ var F = (0, t.useRef)(null);
1712
+ var U = (0, t.useCallback)((function(e) {
1679
1713
  var n = e.target;
1680
1714
  while (n) {
1681
- if (U.current === n) {
1715
+ if (F.current === n) {
1682
1716
  break;
1683
1717
  }
1684
1718
  // Ignore clicks on row-actions
@@ -1691,23 +1725,23 @@
1691
1725
  C === null || C === void 0 ? void 0 : C(e, s);
1692
1726
  }
1693
1727
  }), [ s, C ]);
1694
- var Y = (0, t.useCallback)((function(e) {
1695
- if ((0, E.keycode)(e.nativeEvent) === "enter" && C) {
1728
+ var X = (0, t.useCallback)((function(e) {
1729
+ if (e.key === "Enter" && C) {
1696
1730
  C(e, s);
1697
1731
  }
1698
1732
  S === null || S === void 0 ? void 0 : S(e);
1699
1733
  }), [ s, C, S ]);
1700
- var G = (0, t.useCallback)((function(e) {
1734
+ var Y = (0, t.useCallback)((function(e) {
1701
1735
  if (!d) {
1702
1736
  e.preventDefault();
1703
1737
  k === null || k === void 0 ? void 0 : k(e, s);
1704
1738
  }
1705
1739
  }), [ s, d, k ]);
1706
- var J = (0, t.useCallback)((function(e) {
1740
+ var G = (0, t.useCallback)((function(e) {
1707
1741
  e.preventDefault();
1708
1742
  x === null || x === void 0 ? void 0 : x(e, s);
1709
1743
  }), [ s, x ]);
1710
- var Q = function n() {
1744
+ var J = function n() {
1711
1745
  if (i && i.props.onClick) {
1712
1746
 
1713
1747
  return (0, t.cloneElement)(i, {
@@ -1720,7 +1754,7 @@
1720
1754
  }
1721
1755
  return i;
1722
1756
  };
1723
- var Z = function n() {
1757
+ var Q = function n() {
1724
1758
  if (a && a.props.children) {
1725
1759
  var r = t.Children.toArray(a.props.children).filter(t.isValidElement);
1726
1760
  var o = r.map((function(n) {
@@ -1743,150 +1777,150 @@
1743
1777
  }
1744
1778
  return a;
1745
1779
  };
1746
- function ee(e) {
1747
- U.current = e;
1748
- L(v, e);
1780
+ function Z(e) {
1781
+ F.current = e;
1782
+ W(v, e);
1749
1783
  if (f) {
1750
- B(e);
1784
+ K(e);
1751
1785
  }
1752
1786
  }
1753
- var ne = t.Children.toArray(u).map((function(e, n) {
1787
+ var ee = t.Children.toArray(u).map((function(e, n) {
1754
1788
 
1755
1789
  return (0, t.cloneElement)(e, {
1756
1790
  appearance: C ? "rowLink" : e.props.appearance,
1757
1791
  disabled: d,
1758
- isPrimaryCell: I === n,
1759
- stripe: P
1792
+ isPrimaryCell: E === n,
1793
+ stripe: A
1760
1794
  });
1761
1795
  }));
1762
- var te;
1763
- if (T) {
1764
- te = T;
1765
- } else if ((n = ne[I]) === null || n === void 0 ? void 0 : n.props.children) {
1766
- var re;
1767
- te = "".concat((re = ne[I]) === null || re === void 0 ? void 0 : re.props.children);
1796
+ var ne;
1797
+ if (I) {
1798
+ ne = I;
1799
+ } else if ((n = ee[E]) === null || n === void 0 ? void 0 : n.props.children) {
1800
+ var te;
1801
+ ne = "".concat((te = ee[E]) === null || te === void 0 ? void 0 : te.props.children);
1768
1802
  } else {
1769
- var oe;
1770
- te = "".concat((oe = ne[0]) === null || oe === void 0 ? void 0 : oe.props.children);
1803
+ var re;
1804
+ ne = "".concat((re = ee[0]) === null || re === void 0 ? void 0 : re.props.children);
1771
1805
  if (false) {}
1772
1806
  }
1773
- var ie = (0, q.sprintf)((0, D._)("%(selected)s"), {
1774
- selected: j ? "selected" : "unselected"
1807
+ var oe = (0, D.sprintf)((0, j._)("%(selected)s"), {
1808
+ selected: T ? "selected" : "unselected"
1775
1809
  });
1776
- var ae = qt[P];
1777
- var le = b ? t.Children.count(h) + 1 : undefined;
1778
- var ue = w ? "false" : undefined;
1779
- var se = function e() {
1810
+ var ie = jt[A];
1811
+ var ae = m ? t.Children.count(h) + 1 : undefined;
1812
+ var le = w ? "false" : undefined;
1813
+ var ue = function e() {
1780
1814
 
1781
- return r().createElement(_t, null);
1815
+ return r().createElement(At, null);
1782
1816
  };
1783
- var ce = (0, q.sprintf)((0, D._)("Collapse row - %(rowLabelValue)s"), {
1784
- rowLabelValue: te
1817
+ var se = (0, D.sprintf)((0, j._)("Collapse row - %(rowLabelValue)s"), {
1818
+ rowLabelValue: ne
1785
1819
  });
1786
- var de = (0, q.sprintf)((0, D._)("Expand row - %(rowLabelValue)s"), {
1787
- rowLabelValue: te
1820
+ var ce = (0, D.sprintf)((0, j._)("Expand row - %(rowLabelValue)s"), {
1821
+ rowLabelValue: ne
1788
1822
  });
1789
1823
 
1790
- return r().createElement(ae, Dt({
1824
+ return r().createElement(ie, Tt({
1791
1825
  "data-test": "row",
1792
- "data-test-selected": k ? j : undefined,
1826
+ "data-test-selected": k ? T : undefined,
1793
1827
  $clickable: !!C,
1794
1828
  "data-has-movable-columns": w ? "true" : undefined,
1795
1829
  disabled: !!d,
1796
1830
  $expandable: !!p,
1797
1831
  $isDraggable: !!f,
1798
- ref: ee,
1832
+ ref: Z,
1799
1833
  tabIndex: C ? 0 : undefined
1800
- }, g()(z, "data"), {
1801
- onClick: C ? X : undefined,
1802
- onKeyDown: Y,
1803
- $rowSelected: !!(k && j),
1804
- style: F
1805
- }), f && y != null && r().createElement(lt, Dt({
1806
- "aria-label": (0, q.sprintf)((0, D._)("Reorder %(rowLabelValue)s"), {
1807
- rowLabelValue: te
1834
+ }, g()(_, "data"), {
1835
+ onClick: C ? U : undefined,
1836
+ onKeyDown: X,
1837
+ $rowSelected: !!(k && T),
1838
+ style: V
1839
+ }), f && y != null && r().createElement(at, Tt({
1840
+ "aria-label": (0, D.sprintf)((0, j._)("Reorder %(rowLabelValue)s"), {
1841
+ rowLabelValue: ne
1808
1842
  }),
1809
- setActivatorNodeRef: V,
1810
- listeners: W
1811
- }, N)), k && r().createElement(ke, {
1843
+ setActivatorNodeRef: B,
1844
+ listeners: N
1845
+ }, $)), k && r().createElement(Se, {
1812
1846
  align: "center",
1813
1847
  appearance: C ? "rowLink" : "data",
1814
1848
  disabled: d,
1815
1849
  variant: "toggle",
1816
- "data-movable-column": ue,
1817
- rowSpan: le,
1850
+ "data-movable-column": le,
1851
+ rowSpan: ae,
1818
1852
  "data-test": "toggle"
1819
- }, r().createElement(xt, {
1820
- "aria-label": (0, q.sprintf)((0, D._)("%(rowLabelValue)s %(selectedString)s"), {
1821
- rowLabelValue: te,
1822
- selectedString: ie
1853
+ }, r().createElement(wt, {
1854
+ "aria-label": (0, D.sprintf)((0, j._)("%(rowLabelValue)s %(selectedString)s"), {
1855
+ rowLabelValue: ne,
1856
+ selectedString: oe
1823
1857
  }),
1824
1858
  disabled: d,
1825
- onClick: G,
1826
- selected: j
1827
- })), p && h && r().createElement(ke, {
1859
+ onClick: Y,
1860
+ selected: T
1861
+ })), p && h && r().createElement(Se, {
1828
1862
  align: "center",
1829
1863
  appearance: "data",
1830
- "data-movable-column": ue,
1864
+ "data-movable-column": le,
1831
1865
  "data-test": "expand",
1832
- expand: b,
1833
- rowSpan: le,
1866
+ expand: m,
1867
+ rowSpan: ae,
1834
1868
  variant: "expand"
1835
- }, r().createElement(Zn, {
1836
- expanded: b,
1837
- onClick: J,
1838
- title: b ? ce : de,
1839
- "aria-controls": b ? m : undefined,
1840
- "aria-expanded": b
1841
- })), p && !h && r().createElement(ke, {
1869
+ }, r().createElement(Qn, {
1870
+ expanded: m,
1871
+ onClick: G,
1872
+ title: m ? se : ce,
1873
+ "aria-controls": m ? b : undefined,
1874
+ "aria-expanded": m
1875
+ })), p && !h && r().createElement(Se, {
1842
1876
  variant: "expand",
1843
- "data-movable-column": ue
1844
- }), ne, o && !i && !a && r().createElement(ke, {
1877
+ "data-movable-column": le
1878
+ }), ee, o && !i && !a && r().createElement(Se, {
1845
1879
  align: "right",
1846
1880
  appearance: C ? "rowLink" : "data",
1847
1881
  "data-test": "row-actions",
1848
1882
  variant: "actions",
1849
- "data-movable-column": ue
1850
- }), (i || a) && r().createElement(ke, {
1883
+ "data-movable-column": le
1884
+ }), (i || a) && r().createElement(Se, {
1851
1885
  align: "right",
1852
1886
  appearance: "data",
1853
1887
  "data-test": "row-actions",
1854
1888
  variant: "actions",
1855
- "data-movable-column": ue
1856
- }, i && Q(), a && r().createElement($n(), {
1857
- toggle: se()
1858
- }, Z())));
1859
- }
1860
- zt.propTypes = At;
1861
- zt.splunkUiType = "Table.Row";
1862
- /* harmony default export */ const Mt = zt;
1889
+ "data-movable-column": le
1890
+ }, i && J(), a && r().createElement(Hn(), {
1891
+ toggle: ue()
1892
+ }, Q())));
1893
+ }
1894
+ Pt.propTypes = Dt;
1895
+ Pt.splunkUiType = "Table.Row";
1896
+ /* harmony default export */ const _t = Pt;
1863
1897
  // CONCATENATED MODULE: ./src/Table/TableContext.ts
1864
- var $t = (0, t.createContext)({});
1865
- $t.displayName = "Table";
1866
- /* harmony default export */ const Nt = $t;
1898
+ var zt = (0, t.createContext)({});
1899
+ zt.displayName = "Table";
1900
+ /* harmony default export */ const Mt = zt;
1867
1901
  // CONCATENATED MODULE: ./src/Table/HeadStyles.ts
1868
- var Wt = $().thead.withConfig({
1902
+ var $t = M().thead.withConfig({
1869
1903
  displayName: "HeadStyles__Styled",
1870
1904
  componentId: "iap21t-0"
1871
- })([ "", ";", "" ], N.mixins.reset("table-header-group"), (function(e) {
1905
+ })([ "", ";", "" ], $.mixins.reset("table-header-group"), (function(e) {
1872
1906
  var n = e.$isFixed, t = e.$zIndex;
1873
- return n && (0, M.css)([ "position:sticky;top:0;z-index:", ";" ], t);
1907
+ return n && (0, z.css)([ "position:sticky;top:0;z-index:", ";" ], t);
1874
1908
  }));
1875
- var Lt = $()(Dn).withConfig({
1909
+ var Nt = M()(_n).withConfig({
1876
1910
  displayName: "HeadStyles__StyledToggleAll",
1877
1911
  componentId: "iap21t-1"
1878
- })([ "width:32px;", "{gap:0;}" ], /* sc-sel */ Fe);
1879
- var Ht = $()(Dn).withConfig({
1912
+ })([ "width:32px;" ]);
1913
+ var Wt = M()(_n).withConfig({
1880
1914
  displayName: "HeadStyles__StyledInfo",
1881
1915
  componentId: "iap21t-2"
1882
1916
  })([ "width:32px;" ]);
1883
- var Kt = $()(Dn).withConfig({
1917
+ var Lt = M()(_n).withConfig({
1884
1918
  displayName: "HeadStyles__StyledDragRow",
1885
1919
  componentId: "iap21t-3"
1886
1920
  })([ "width:32px;" ]);
1887
1921
  // CONCATENATED MODULE: ./src/Table/Head.tsx
1888
- function Bt() {
1889
- return Bt = Object.assign ? Object.assign.bind() : function(e) {
1922
+ function Ht() {
1923
+ return Ht = Object.assign ? Object.assign.bind() : function(e) {
1890
1924
  for (var n = 1; n < arguments.length; n++) {
1891
1925
  var t = arguments[n];
1892
1926
  for (var r in t) {
@@ -1894,11 +1928,11 @@
1894
1928
  }
1895
1929
  }
1896
1930
  return e;
1897
- }, Bt.apply(null, arguments);
1931
+ }, Ht.apply(null, arguments);
1898
1932
  }
1899
- function Vt(e, n) {
1933
+ function Kt(e, n) {
1900
1934
  if (null == e) return {};
1901
- var t, r, o = Ft(e, n);
1935
+ var t, r, o = Bt(e, n);
1902
1936
  if (Object.getOwnPropertySymbols) {
1903
1937
  var i = Object.getOwnPropertySymbols(e);
1904
1938
  for (r = 0; r < i.length; r++) {
@@ -1907,7 +1941,7 @@
1907
1941
  }
1908
1942
  return o;
1909
1943
  }
1910
- function Ft(e, n) {
1944
+ function Bt(e, n) {
1911
1945
  if (null == e) return {};
1912
1946
  var t = {};
1913
1947
  for (var r in e) {
@@ -1918,7 +1952,7 @@
1918
1952
  }
1919
1953
  return t;
1920
1954
  }
1921
- var Ut = {
1955
+ var Vt = {
1922
1956
  /** @private. */
1923
1957
  actions: i().arrayOf(i().node),
1924
1958
  /** @private. */
@@ -1942,18 +1976,18 @@
1942
1976
  /** @private. */
1943
1977
  rowSelection: i().oneOf([ "all", "some", "none" ])
1944
1978
  };
1945
- var Xt = 1;
1946
- var Yt = {
1979
+ var Ft = 1;
1980
+ var Ut = {
1947
1981
  all: true,
1948
1982
  none: false,
1949
1983
  some: "some"
1950
1984
  };
1951
- var Gt = (0, D._)("No rows selected");
1952
- var Jt = (0, D._)("Some rows selected");
1953
- var Qt = (0, D._)("All rows selected");
1954
- var Zt = function e(n) {
1985
+ var Xt = (0, j._)("No rows selected");
1986
+ var Yt = (0, j._)("Some rows selected");
1987
+ var Gt = (0, j._)("All rows selected");
1988
+ var Jt = function e(n) {
1955
1989
  var t, r;
1956
- var o = Ze();
1990
+ var o = tn();
1957
1991
  if (!n) {
1958
1992
  return [];
1959
1993
  }
@@ -1962,9 +1996,9 @@
1962
1996
  return e.clientWidth - parseFloat(n.getPropertyValue("padding-right")) - parseFloat(n.getPropertyValue("padding-left"));
1963
1997
  }));
1964
1998
  };
1965
- function er(e) {
1966
- var n = e.actions, o = n === void 0 ? [] : n, i = e.actionsColumnWidth, a = e.cellMinWidth, l = a === void 0 ? 60 : a, u = e.children, s = e.elementRef, c = e.hasDragColumn, d = e.hasInfoColumn, f = e.onAutosizeColumn, v = e.onRequestMoveColumn, p = e.onRequestResizeColumn, b = e.onRequestToggleAllRows, m = e.rowSelection, h = Vt(e, [ "actions", "actionsColumnWidth", "cellMinWidth", "children", "elementRef", "hasDragColumn", "hasInfoColumn", "onAutosizeColumn", "onRequestMoveColumn", "onRequestResizeColumn", "onRequestToggleAllRows", "rowSelection" ]);
1967
- var y = (0, t.useContext)(Nt), g = y.headType, w = y.tableContainerWidthWithoutBorders, C = y.resizableFillLayout;
1999
+ function Qt(e) {
2000
+ var n = e.actions, o = n === void 0 ? [] : n, i = e.actionsColumnWidth, a = e.cellMinWidth, l = a === void 0 ? 60 : a, u = e.children, s = e.elementRef, c = e.hasDragColumn, d = e.hasInfoColumn, f = e.onAutosizeColumn, v = e.onRequestMoveColumn, p = e.onRequestResizeColumn, m = e.onRequestToggleAllRows, b = e.rowSelection, h = Kt(e, [ "actions", "actionsColumnWidth", "cellMinWidth", "children", "elementRef", "hasDragColumn", "hasInfoColumn", "onAutosizeColumn", "onRequestMoveColumn", "onRequestResizeColumn", "onRequestToggleAllRows", "rowSelection" ]);
2001
+ var y = (0, t.useContext)(Mt), g = y.headType, w = y.tableContainerWidthWithoutBorders, C = y.resizableFillLayout;
1968
2002
  var x = (0, t.useRef)(null);
1969
2003
  var S = (0, t.useRef)([]);
1970
2004
  (0, t.useEffect)((function() {
@@ -1985,7 +2019,7 @@
1985
2019
  }), [ u, v ]);
1986
2020
  var O = (0, t.useCallback)((function(e, n) {
1987
2021
  var t = n.columnId, r = n.id, o = n.index, i = n.width;
1988
- var a = Zt(x.current);
2022
+ var a = Jt(x.current);
1989
2023
  if (o >= a.length) {
1990
2024
  p === null || p === void 0 ? void 0 : p(e, n);
1991
2025
  return;
@@ -2035,18 +2069,18 @@
2035
2069
  } else {
2036
2070
  // make the cell as big as we can without letting any cells go below cellMinWidth
2037
2071
  // that means all auto cells are at cellMinWidth and all the set width cells stay the same size
2038
- var b = 0;
2072
+ var m = 0;
2039
2073
  c.forEach((function(e) {
2040
2074
  if (e < a.length) {
2041
- b += Math.max(a[e] - l, 0);
2075
+ m += Math.max(a[e] - l, 0);
2042
2076
  }
2043
2077
  }));
2044
- var m = a[o] + b;
2078
+ var b = a[o] + m;
2045
2079
  p === null || p === void 0 ? void 0 : p(e, {
2046
2080
  columnId: t,
2047
2081
  id: r,
2048
2082
  index: o,
2049
- width: m
2083
+ width: b
2050
2084
  });
2051
2085
  }
2052
2086
  } else if (w != null) {
@@ -2085,7 +2119,7 @@
2085
2119
  }
2086
2120
  }), [ l, p, w ]);
2087
2121
  var R = (0, t.useCallback)((function(e) {
2088
- L(s, e);
2122
+ W(s, e);
2089
2123
  x.current = e;
2090
2124
  }), [ s ]);
2091
2125
  var E = (0, t.useMemo)((function() {
@@ -2108,16 +2142,16 @@
2108
2142
  S.current = e;
2109
2143
  return n;
2110
2144
  }), [ E, C, O, p, v, k, f ]);
2111
- var j = m === undefined ? undefined : Yt[m];
2145
+ var j = b === undefined ? undefined : Ut[b];
2112
2146
  var D = i || 48;
2113
2147
  var q = g === "fixed" ? "fixed-head" : "head";
2114
2148
  var A;
2115
2149
  if (j === "some") {
2116
- A = Jt;
2150
+ A = Yt;
2117
2151
  } else if (j) {
2118
- A = Qt;
2119
- } else {
2120
2152
  A = Gt;
2153
+ } else {
2154
+ A = Xt;
2121
2155
  }
2122
2156
  var P = (0, t.useMemo)((function() {
2123
2157
  return {
@@ -2130,33 +2164,33 @@
2130
2164
  };
2131
2165
  }), [ i ]);
2132
2166
 
2133
- return r().createElement(Wt, Bt({
2167
+ return r().createElement($t, Ht({
2134
2168
  ref: R,
2135
2169
  "data-test": q,
2136
2170
  $isFixed: g === "fixed",
2137
- $zIndex: I + Xt
2138
- }, h), r().createElement(Mt, null, c && r().createElement(Kt, {
2171
+ $zIndex: I + Ft
2172
+ }, h), r().createElement(_t, null, c && r().createElement(Lt, {
2139
2173
  key: "drag_rows_head_cell",
2140
2174
  "data-test": "drag-rows-head-cell",
2141
2175
  align: "center",
2142
2176
  resizable: false
2143
- }), b && r().createElement(Lt, {
2177
+ }), m && r().createElement(Nt, {
2144
2178
  key: "toggle_all",
2145
2179
  resizable: false,
2146
2180
  align: "center",
2147
2181
  variant: "toggleAll",
2148
2182
  truncate: false,
2149
2183
  "data-test": "toggle-all"
2150
- }, r().createElement(xt, {
2184
+ }, r().createElement(wt, {
2151
2185
  "aria-label": A,
2152
- onClick: b,
2186
+ onClick: m,
2153
2187
  selected: j
2154
- })), d && r().createElement(Ht, {
2188
+ })), d && r().createElement(Wt, {
2155
2189
  key: "more_info_head_cell",
2156
2190
  "data-test": "more-info-head-cell",
2157
2191
  resizable: false,
2158
2192
  variant: "info"
2159
- }), T, o.length > 0 && r().createElement(Dn, {
2193
+ }), T, o.length > 0 && r().createElement(_n, {
2160
2194
  key: "actions_head_cell",
2161
2195
  "data-test": "actions-head-cell",
2162
2196
  align: "right",
@@ -2164,7 +2198,7 @@
2164
2198
  width: D,
2165
2199
  style: P,
2166
2200
  variant: "actions"
2167
- }, o), o.length === 0 && i && r().createElement(Dn, {
2201
+ }, o), o.length === 0 && i && r().createElement(_n, {
2168
2202
  key: "actions_head_cell",
2169
2203
  "data-test": "actions-head-cell",
2170
2204
  align: "right",
@@ -2174,24 +2208,24 @@
2174
2208
  variant: "actions"
2175
2209
  }, " ")));
2176
2210
  }
2177
- er.propTypes = Ut;
2178
- er.splunkUiType = "Table.Head";
2179
- /* harmony default export */ const nr = er;
2211
+ Qt.propTypes = Vt;
2212
+ Qt.splunkUiType = "Table.Head";
2213
+ /* harmony default export */ const Zt = Qt;
2180
2214
  // CONCATENATED MODULE: external "lodash/isFinite"
2181
- const tr = require("lodash/isFinite");
2182
- var rr = e.n(tr);
2215
+ const er = require("lodash/isFinite");
2216
+ var nr = e.n(er);
2183
2217
  // CONCATENATED MODULE: external "lodash/isFunction"
2184
- const or = require("lodash/isFunction");
2185
- var ir = e.n(or);
2218
+ const tr = require("lodash/isFunction");
2219
+ var rr = e.n(tr);
2186
2220
  // CONCATENATED MODULE: external "@splunk/react-ui/Popover"
2187
- const ar = require("@splunk/react-ui/Popover");
2188
- var lr = e.n(ar);
2221
+ const or = require("@splunk/react-ui/Popover");
2222
+ var ir = e.n(or);
2189
2223
  // CONCATENATED MODULE: external "@splunk/react-ui/useControlled"
2190
- const ur = require("@splunk/react-ui/useControlled");
2191
- var sr = e.n(ur);
2224
+ const ar = require("@splunk/react-ui/useControlled");
2225
+ var lr = e.n(ar);
2192
2226
  // CONCATENATED MODULE: ./src/Table/HeadDropdownCell.tsx
2193
- function cr() {
2194
- return cr = Object.assign ? Object.assign.bind() : function(e) {
2227
+ function ur() {
2228
+ return ur = Object.assign ? Object.assign.bind() : function(e) {
2195
2229
  for (var n = 1; n < arguments.length; n++) {
2196
2230
  var t = arguments[n];
2197
2231
  for (var r in t) {
@@ -2199,29 +2233,29 @@
2199
2233
  }
2200
2234
  }
2201
2235
  return e;
2202
- }, cr.apply(null, arguments);
2236
+ }, ur.apply(null, arguments);
2203
2237
  }
2204
- function dr(e, n) {
2205
- return mr(e) || br(e, n) || vr(e, n) || fr();
2238
+ function sr(e, n) {
2239
+ return pr(e) || vr(e, n) || dr(e, n) || cr();
2206
2240
  }
2207
- function fr() {
2241
+ function cr() {
2208
2242
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2209
2243
  }
2210
- function vr(e, n) {
2244
+ function dr(e, n) {
2211
2245
  if (e) {
2212
- if ("string" == typeof e) return pr(e, n);
2246
+ if ("string" == typeof e) return fr(e, n);
2213
2247
  var t = {}.toString.call(e).slice(8, -1);
2214
- return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? pr(e, n) : void 0;
2248
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? fr(e, n) : void 0;
2215
2249
  }
2216
2250
  }
2217
- function pr(e, n) {
2251
+ function fr(e, n) {
2218
2252
  (null == n || n > e.length) && (n = e.length);
2219
2253
  for (var t = 0, r = Array(n); t < n; t++) {
2220
2254
  r[t] = e[t];
2221
2255
  }
2222
2256
  return r;
2223
2257
  }
2224
- function br(e, n) {
2258
+ function vr(e, n) {
2225
2259
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
2226
2260
  if (null != t) {
2227
2261
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -2243,12 +2277,12 @@
2243
2277
  return l;
2244
2278
  }
2245
2279
  }
2246
- function mr(e) {
2280
+ function pr(e) {
2247
2281
  if (Array.isArray(e)) return e;
2248
2282
  }
2249
- function hr(e, n) {
2283
+ function mr(e, n) {
2250
2284
  if (null == e) return {};
2251
- var t, r, o = yr(e, n);
2285
+ var t, r, o = br(e, n);
2252
2286
  if (Object.getOwnPropertySymbols) {
2253
2287
  var i = Object.getOwnPropertySymbols(e);
2254
2288
  for (r = 0; r < i.length; r++) {
@@ -2257,7 +2291,7 @@
2257
2291
  }
2258
2292
  return o;
2259
2293
  }
2260
- function yr(e, n) {
2294
+ function br(e, n) {
2261
2295
  if (null == e) return {};
2262
2296
  var t = {};
2263
2297
  for (var r in e) {
@@ -2270,19 +2304,19 @@
2270
2304
  }
2271
2305
  /** @public */
2272
2306
  /** @public */
2273
- /** @public */ var gr = [ "clickAway", "contentClick", "escapeKey", "offScreen", "tabKey", "toggleClick" ];
2274
- var wr = {
2307
+ /** @public */ var hr = [ "clickAway", "contentClick", "escapeKey", "offScreen", "tabKey", "toggleClick" ];
2308
+ var yr = {
2275
2309
  align: i().oneOf([ "left", "center", "right" ]),
2276
2310
  buttonRef: i().oneOfType([ i().func, i().object ]),
2277
2311
  canCoverHead: i().bool,
2278
2312
  children: i().node.isRequired,
2279
- closeReasons: i().arrayOf(i().oneOf(gr)),
2313
+ closeReasons: i().arrayOf(i().oneOf(hr)),
2280
2314
  columnId: i().string,
2281
2315
  /** @private. */
2282
2316
  dragId: i().oneOfType([ i().string, i().number ]),
2283
2317
  elementRef: i().oneOfType([ i().func, i().object ]),
2284
2318
  headCellScreenReaderText: i().string,
2285
- focusToggleReasons: i().arrayOf(i().oneOf(gr)),
2319
+ focusToggleReasons: i().arrayOf(i().oneOf(hr)),
2286
2320
  /** @private The index of the cell, skipping the info column. */
2287
2321
  index: i().number,
2288
2322
  label: i().node,
@@ -2314,33 +2348,33 @@
2314
2348
  /** @private. */
2315
2349
  variant: i().oneOf([ "toggleAll", "info", "actions" ])
2316
2350
  };
2317
- var Cr = [ "contentClick", "escapeKey", "toggleClick" ];
2318
- function xr(e) {
2319
- var n = e.align, o = n === void 0 ? "left" : n, i = e.buttonRef, a = e.canCoverHead, u = a === void 0 ? true : a, s = e.children, c = e.closeReasons, d = c === void 0 ? gr : c, f = e.columnId, v = e.dragId, p = e.elementRef, b = e.headCellScreenReaderText, m = e.focusToggleReasons, h = m === void 0 ? Cr : m, y = e.id, g = e.index, w = e.label, C = e.onAutosizeColumn, x = e.onKeyDown, S = e.onRequestClose, k = e.onRequestMoveColumn, O = e.onRequestOpen, E = e.onRequestResize, I = e.open, T = e.repositionMode, A = T === void 0 ? "flip" : T, _ = e.resizable, z = _ === void 0 ? true : _, M = e.retainFocus, $ = e.style, N = e.takeFocus, W = N === void 0 ? true : N, H = e.truncate, K = H === void 0 ? true : H, B = e.variant, V = e.visible, F = V === void 0 ? true : V, U = e.width, X = hr(e, [ "align", "buttonRef", "canCoverHead", "children", "closeReasons", "columnId", "dragId", "elementRef", "headCellScreenReaderText", "focusToggleReasons", "id", "index", "label", "onAutosizeColumn", "onKeyDown", "onRequestClose", "onRequestMoveColumn", "onRequestOpen", "onRequestResize", "open", "repositionMode", "resizable", "retainFocus", "style", "takeFocus", "truncate", "variant", "visible", "width" ]);
2351
+ var gr = [ "contentClick", "escapeKey", "toggleClick" ];
2352
+ function wr(e) {
2353
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.buttonRef, a = e.canCoverHead, u = a === void 0 ? true : a, s = e.children, c = e.closeReasons, d = c === void 0 ? hr : c, f = e.columnId, v = e.dragId, p = e.elementRef, m = e.headCellScreenReaderText, b = e.focusToggleReasons, h = b === void 0 ? gr : b, y = e.id, g = e.index, w = e.label, C = e.onAutosizeColumn, x = e.onKeyDown, S = e.onRequestClose, k = e.onRequestMoveColumn, O = e.onRequestOpen, E = e.onRequestResize, I = e.open, q = e.repositionMode, P = q === void 0 ? "flip" : q, _ = e.resizable, z = _ === void 0 ? true : _, M = e.retainFocus, $ = e.style, N = e.takeFocus, L = N === void 0 ? true : N, H = e.truncate, K = H === void 0 ? true : H, B = e.variant, V = e.visible, F = V === void 0 ? true : V, U = e.width, X = mr(e, [ "align", "buttonRef", "canCoverHead", "children", "closeReasons", "columnId", "dragId", "elementRef", "headCellScreenReaderText", "focusToggleReasons", "id", "index", "label", "onAutosizeColumn", "onKeyDown", "onRequestClose", "onRequestMoveColumn", "onRequestOpen", "onRequestResize", "open", "repositionMode", "resizable", "retainFocus", "style", "takeFocus", "truncate", "variant", "visible", "width" ]);
2320
2354
  // @docs-props-type HeadDropdownCellPropsBase
2321
- var Y = sr()({
2355
+ var Y = lr()({
2322
2356
  componentName: "HeadDropdownCell",
2323
2357
  /* eslint-disable-next-line prefer-rest-params */
2324
2358
  componentProps: arguments[0],
2325
2359
  // see SUI-7028
2326
2360
  valuePropName: "open"
2327
2361
  });
2328
- var G = (0, t.useState)(), J = dr(G, 2), Q = J[0], Z = J[1];
2329
- var ee = (0, t.useState)(null), ne = dr(ee, 2), te = ne[0], re = ne[1];
2330
- var oe = (0, t.useState)(null), ie = dr(oe, 2), ae = ie[0], le = ie[1];
2331
- var ue = (0, t.useState)(false), se = dr(ue, 2), ce = se[0], de = se[1];
2362
+ var G = (0, t.useState)(), J = sr(G, 2), Q = J[0], Z = J[1];
2363
+ var ee = (0, t.useState)(null), ne = sr(ee, 2), te = ne[0], re = ne[1];
2364
+ var oe = (0, t.useState)(null), ie = sr(oe, 2), ae = ie[0], le = ie[1];
2365
+ var ue = (0, t.useState)(false), se = sr(ue, 2), ce = se[0], de = se[1];
2332
2366
  var fe = (0, R.createDOMID)("popover");
2333
2367
  var ve = (0, R.createDOMID)("cellId");
2334
2368
  var pe = !!k;
2335
- var be = (0, l.useSortable)({
2369
+ var me = (0, l.useSortable)({
2336
2370
  // dragId is optional in HeadCell but required by useSortable
2337
2371
  // since it is always set in Table, use a type assertion here to avoid TypeScript error
2338
2372
  id: v
2339
- }), me = be.attributes, he = be.listeners, ye = be.setNodeRef, ge = be.isDragging;
2373
+ }), be = me.attributes, he = me.listeners, ye = me.setNodeRef, ge = me.isDragging;
2340
2374
  var we = (0, t.useMemo)((function() {
2341
2375
  return Y ? I : ce;
2342
2376
  }), [ Y, ce, I ]);
2343
- var Ce = j()(F);
2377
+ var Ce = T()(F);
2344
2378
  var xe = y || ve;
2345
2379
  (0, t.useEffect)((function() {
2346
2380
  if (false) {}
@@ -2357,8 +2391,8 @@
2357
2391
  r = r.parentNode;
2358
2392
  }
2359
2393
  }
2360
- if (we && P()(d, n) && g !== undefined) {
2361
- if (P()(h, n)) {
2394
+ if (we && A()(d, n) && g !== undefined) {
2395
+ if (A()(h, n)) {
2362
2396
  ae === null || ae === void 0 ? void 0 : ae.focus();
2363
2397
  }
2364
2398
  if (!Y) {
@@ -2379,7 +2413,7 @@
2379
2413
  }
2380
2414
  }), [ Se, Ce, F ]);
2381
2415
  var ke = (0, t.useCallback)((function(e) {
2382
- L(p, e);
2416
+ W(p, e);
2383
2417
  if (pe) {
2384
2418
  ye(e);
2385
2419
  }
@@ -2387,7 +2421,7 @@
2387
2421
  var Oe = (0, t.useCallback)((function(e) {
2388
2422
  le(e);
2389
2423
  re(e);
2390
- L(i, e);
2424
+ W(i, e);
2391
2425
  }), [ i ]);
2392
2426
  var Re = (0, t.useCallback)((function(e) {
2393
2427
  e.stopPropagation();
@@ -2414,7 +2448,7 @@
2414
2448
  }
2415
2449
  }
2416
2450
  }), [ f, Se, g, Y, we, O ]);
2417
- var Ee = (0, t.useCallback)((function(e) {
2451
+ var Ie = (0, t.useCallback)((function(e) {
2418
2452
  if (g !== undefined) {
2419
2453
  x === null || x === void 0 ? void 0 : x(e, {
2420
2454
  index: g,
@@ -2422,14 +2456,14 @@
2422
2456
  });
2423
2457
  }
2424
2458
  }), [ f, g, x ]);
2425
- var Te = (0, t.useCallback)((function(e) {
2459
+ var je = (0, t.useCallback)((function(e) {
2426
2460
  Se({
2427
2461
  reason: "contentClick",
2428
2462
  event: e
2429
2463
  });
2430
2464
  }), [ Se ]);
2431
2465
  var De = (0, t.useMemo)((function() {
2432
- if (Q !== undefined && rr()(Q)) {
2466
+ if (Q !== undefined && nr()(Q)) {
2433
2467
  var e;
2434
2468
  return {
2435
2469
  x: Q - ((e = te === null || te === void 0 ? void 0 : te.getBoundingClientRect().left) !== null && e !== void 0 ? e : 0)
@@ -2438,30 +2472,30 @@
2438
2472
  return undefined;
2439
2473
  }), [ Q, te ]);
2440
2474
  var qe = (0, t.useMemo)((function() {
2441
- return Ie()({}, $, {
2475
+ return Ee()({}, $, {
2442
2476
  width: U
2443
2477
  });
2444
2478
  }), [ $, U ]);
2445
2479
  var Ae;
2446
- if (b) {
2447
- Ae = b;
2480
+ if (m) {
2481
+ Ae = m;
2448
2482
  } else if (typeof w === "string") {
2449
2483
  Ae = w;
2450
2484
  }
2451
2485
 
2452
- return r().createElement(Sn, cr({
2486
+ return r().createElement(Rn, ur({
2453
2487
  style: qe,
2454
2488
  "data-test": "head-cell",
2455
2489
  $isDragging: pe && ge,
2456
2490
  $variant: B,
2457
2491
  id: F ? xe : undefined,
2458
2492
  ref: ke
2459
- }, X), r().createElement(xn, null, pe && r().createElement(kn, cr({
2460
- "aria-label": (0, q.sprintf)((0, D._)("Reorder %(labelString)s"), {
2493
+ }, X), r().createElement(On, null, pe && r().createElement(In, ur({
2494
+ "aria-label": (0, D.sprintf)((0, j._)("Reorder %(labelString)s"), {
2461
2495
  labelString: Ae
2462
2496
  }),
2463
2497
  "data-test": "drag"
2464
- }, me, he), r().createElement(je(), null)), r().createElement(Cn, {
2498
+ }, be, he), r().createElement(En, null, r().createElement(Te(), null))), r().createElement(kn, {
2465
2499
  align: o,
2466
2500
  "aria-expanded": we,
2467
2501
  "aria-haspopup": true,
@@ -2477,57 +2511,57 @@
2477
2511
  onAutosizeColumn: C,
2478
2512
  onRequestResize: E,
2479
2513
  onClick: Re,
2480
- onKeyDown: Ee,
2514
+ onKeyDown: Ie,
2481
2515
  truncate: K,
2482
2516
  width: U,
2483
2517
  "data-test": "inner"
2484
- }), r().createElement(lr(), {
2518
+ }), r().createElement(ir(), {
2485
2519
  align: "center",
2486
2520
  anchor: te,
2487
2521
  "aria-labelledby": xe,
2488
- autoCloseWhenOffScreen: P()(d, "offScreen"),
2522
+ autoCloseWhenOffScreen: A()(d, "offScreen"),
2489
2523
  canCoverAnchor: u,
2490
2524
  defaultPlacement: "below",
2491
2525
  id: fe,
2492
2526
  onRequestClose: Se,
2493
2527
  open: !!te && we,
2494
2528
  pointTo: De,
2495
- repositionMode: A,
2529
+ repositionMode: P,
2496
2530
  retainFocus: M,
2497
- takeFocus: W
2498
- }, ir()(s) ? function() {
2531
+ takeFocus: L
2532
+ }, rr()(s) ? function() {
2499
2533
 
2500
2534
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
2501
2535
  return r().createElement("div", {
2502
- onClick: Te
2536
+ onClick: je
2503
2537
  }, s.apply(void 0, arguments));
2504
2538
  } :
2505
2539
 
2506
2540
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
2507
2541
  r().createElement("div", {
2508
- onClick: Te
2542
+ onClick: je
2509
2543
  }, s))));
2510
2544
  }
2511
- xr.propTypes = wr;
2512
- xr.splunkUiType = "Table.HeadDropdownCell";
2513
- xr.possibleCloseReasons = gr;
2514
- /* harmony default export */ const Sr = xr;
2545
+ wr.propTypes = yr;
2546
+ wr.splunkUiType = "Table.HeadDropdownCell";
2547
+ wr.possibleCloseReasons = hr;
2548
+ /* harmony default export */ const Cr = wr;
2515
2549
  // CONCATENATED MODULE: ./src/Table/KeyboardSensor.ts
2516
- function kr(e) {
2550
+ function xr(e) {
2517
2551
  "@babel/helpers - typeof";
2518
- return kr = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2552
+ return xr = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2519
2553
  return typeof e;
2520
2554
  } : function(e) {
2521
2555
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2522
- }, kr(e);
2556
+ }, xr(e);
2523
2557
  }
2524
- function Or(e, n) {
2525
- return Ir(e) || Er(e, n) || Dr(e, n) || Rr();
2558
+ function Sr(e, n) {
2559
+ return Rr(e) || Or(e, n) || Tr(e, n) || kr();
2526
2560
  }
2527
- function Rr() {
2561
+ function kr() {
2528
2562
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2529
2563
  }
2530
- function Er(e, n) {
2564
+ function Or(e, n) {
2531
2565
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
2532
2566
  if (null != t) {
2533
2567
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -2549,68 +2583,68 @@
2549
2583
  return l;
2550
2584
  }
2551
2585
  }
2552
- function Ir(e) {
2586
+ function Rr(e) {
2553
2587
  if (Array.isArray(e)) return e;
2554
2588
  }
2555
- function Tr(e) {
2556
- return Ar(e) || qr(e) || Dr(e) || jr();
2589
+ function Er(e) {
2590
+ return Dr(e) || jr(e) || Tr(e) || Ir();
2557
2591
  }
2558
- function jr() {
2592
+ function Ir() {
2559
2593
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2560
2594
  }
2561
- function Dr(e, n) {
2595
+ function Tr(e, n) {
2562
2596
  if (e) {
2563
- if ("string" == typeof e) return Pr(e, n);
2597
+ if ("string" == typeof e) return qr(e, n);
2564
2598
  var t = {}.toString.call(e).slice(8, -1);
2565
- return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Pr(e, n) : void 0;
2599
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? qr(e, n) : void 0;
2566
2600
  }
2567
2601
  }
2568
- function qr(e) {
2602
+ function jr(e) {
2569
2603
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
2570
2604
  }
2571
- function Ar(e) {
2572
- if (Array.isArray(e)) return Pr(e);
2605
+ function Dr(e) {
2606
+ if (Array.isArray(e)) return qr(e);
2573
2607
  }
2574
- function Pr(e, n) {
2608
+ function qr(e, n) {
2575
2609
  (null == n || n > e.length) && (n = e.length);
2576
2610
  for (var t = 0, r = Array(n); t < n; t++) {
2577
2611
  r[t] = e[t];
2578
2612
  }
2579
2613
  return r;
2580
2614
  }
2581
- function _r(e, n) {
2615
+ function Ar(e, n) {
2582
2616
  if (!(e instanceof n)) throw new TypeError("Cannot call a class as a function");
2583
2617
  }
2584
- function zr(e, n) {
2618
+ function Pr(e, n) {
2585
2619
  for (var t = 0; t < n.length; t++) {
2586
2620
  var r = n[t];
2587
2621
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
2588
- Object.defineProperty(e, Nr(r.key), r);
2622
+ Object.defineProperty(e, Mr(r.key), r);
2589
2623
  }
2590
2624
  }
2591
- function Mr(e, n, t) {
2592
- return n && zr(e.prototype, n), t && zr(e, t), Object.defineProperty(e, "prototype", {
2625
+ function _r(e, n, t) {
2626
+ return n && Pr(e.prototype, n), t && Pr(e, t), Object.defineProperty(e, "prototype", {
2593
2627
  writable: !1
2594
2628
  }), e;
2595
2629
  }
2596
- function $r(e, n, t) {
2597
- return (n = Nr(n)) in e ? Object.defineProperty(e, n, {
2630
+ function zr(e, n, t) {
2631
+ return (n = Mr(n)) in e ? Object.defineProperty(e, n, {
2598
2632
  value: t,
2599
2633
  enumerable: !0,
2600
2634
  configurable: !0,
2601
2635
  writable: !0
2602
2636
  }) : e[n] = t, e;
2603
2637
  }
2604
- function Nr(e) {
2605
- var n = Wr(e, "string");
2606
- return "symbol" == kr(n) ? n : n + "";
2638
+ function Mr(e) {
2639
+ var n = $r(e, "string");
2640
+ return "symbol" == xr(n) ? n : n + "";
2607
2641
  }
2608
- function Wr(e, n) {
2609
- if ("object" != kr(e) || !e) return e;
2642
+ function $r(e, n) {
2643
+ if ("object" != xr(e) || !e) return e;
2610
2644
  var t = e[Symbol.toPrimitive];
2611
2645
  if (void 0 !== t) {
2612
2646
  var r = t.call(e, n || "default");
2613
- if ("object" != kr(r)) return r;
2647
+ if ("object" != xr(r)) return r;
2614
2648
  throw new TypeError("@@toPrimitive must return a primitive value.");
2615
2649
  }
2616
2650
  return ("string" === n ? String : Number)(e);
@@ -2618,21 +2652,21 @@
2618
2652
  // based on https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/sensors/keyboard/KeyboardSensor.ts
2619
2653
  // eslint-disable-next-line max-classes-per-file
2620
2654
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/sensors/utilities/Listeners.ts
2621
- var Lr = function() {
2655
+ var Nr = function() {
2622
2656
  function e(n) {
2623
2657
  var t = this;
2624
- _r(this, e);
2625
- $r(this, "listeners", []);
2626
- $r(this, "removeAll", (function() {
2658
+ Ar(this, e);
2659
+ zr(this, "listeners", []);
2660
+ zr(this, "removeAll", (function() {
2627
2661
  t.listeners.forEach((function(e) {
2628
2662
  var n;
2629
- return (n = t.target) === null || n === void 0 ? void 0 : n.removeEventListener.apply(n, Tr(e));
2663
+ return (n = t.target) === null || n === void 0 ? void 0 : n.removeEventListener.apply(n, Er(e));
2630
2664
  }));
2631
2665
  }));
2632
2666
  this.target = n;
2633
2667
  this.target = n;
2634
2668
  }
2635
- Mr(e, [ {
2669
+ _r(e, [ {
2636
2670
  key: "add",
2637
2671
  value: function e(n, t, r) {
2638
2672
  var o;
@@ -2643,7 +2677,7 @@
2643
2677
  return e;
2644
2678
  }();
2645
2679
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/transform/parseTransform.ts
2646
- function Hr(e) {
2680
+ function Wr(e) {
2647
2681
  if (e.startsWith("matrix3d(")) {
2648
2682
  var n = e.slice(9, -1).split(/, /);
2649
2683
  return {
@@ -2665,8 +2699,8 @@
2665
2699
  return null;
2666
2700
  }
2667
2701
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/transform/inverseTransform.ts
2668
- function Kr(e, n, t) {
2669
- var r = Hr(n);
2702
+ function Lr(e, n, t) {
2703
+ var r = Wr(n);
2670
2704
  if (!r) {
2671
2705
  return e;
2672
2706
  }
@@ -2684,17 +2718,17 @@
2684
2718
  left: u
2685
2719
  };
2686
2720
  }
2687
- var Br = {
2721
+ var Hr = {
2688
2722
  ignoreTransform: false
2689
2723
  };
2690
2724
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/rect/getRect.ts
2691
- function Vr(e) {
2692
- var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Br;
2725
+ function Kr(e) {
2726
+ var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Hr;
2693
2727
  var t = e.getBoundingClientRect();
2694
2728
  if (n.ignoreTransform) {
2695
- var r = (0, qn.getWindow)(e).getComputedStyle(e), o = r.transform, i = r.transformOrigin;
2729
+ var r = (0, zn.getWindow)(e).getComputedStyle(e), o = r.transform, i = r.transformOrigin;
2696
2730
  if (o) {
2697
- t = Kr(t, o, i);
2731
+ t = Lr(t, o, i);
2698
2732
  }
2699
2733
  }
2700
2734
  var a = t, l = a.top, u = a.left, s = a.width, c = a.height, d = a.bottom, f = a.right;
@@ -2707,7 +2741,7 @@
2707
2741
  right: f
2708
2742
  };
2709
2743
  }
2710
- function Fr(e) {
2744
+ function Br(e) {
2711
2745
  if (e === document.scrollingElement) {
2712
2746
  var n = window, t = n.innerWidth, r = n.innerHeight;
2713
2747
  return {
@@ -2730,19 +2764,19 @@
2730
2764
  };
2731
2765
  }
2732
2766
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/documentScrollingElement.ts
2733
- function Ur(e) {
2734
- if (!qn.canUseDOM || !e) {
2767
+ function Vr(e) {
2768
+ if (!zn.canUseDOM || !e) {
2735
2769
  return false;
2736
2770
  }
2737
2771
  return e === document.scrollingElement;
2738
2772
  }
2739
2773
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollPosition.ts
2740
- function Xr(e) {
2774
+ function Fr(e) {
2741
2775
  var n = {
2742
2776
  x: 0,
2743
2777
  y: 0
2744
2778
  };
2745
- var t = Ur(e) ? {
2779
+ var t = Vr(e) ? {
2746
2780
  height: window.innerHeight,
2747
2781
  width: window.innerWidth
2748
2782
  } : {
@@ -2767,20 +2801,20 @@
2767
2801
  };
2768
2802
  }
2769
2803
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/coordinates/constants.ts
2770
- var Yr = {
2804
+ var Ur = {
2771
2805
  x: 0,
2772
2806
  y: 0
2773
2807
  };
2774
2808
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/isFixed.ts
2775
- function Gr(e) {
2809
+ function Xr(e) {
2776
2810
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0,
2777
- qn.getWindow)(e).getComputedStyle(e);
2811
+ zn.getWindow)(e).getComputedStyle(e);
2778
2812
  return n.position === "fixed";
2779
2813
  }
2780
2814
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/isScrollable.ts
2781
- function Jr(e) {
2815
+ function Yr(e) {
2782
2816
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0,
2783
- qn.getWindow)(e).getComputedStyle(e);
2817
+ zn.getWindow)(e).getComputedStyle(e);
2784
2818
  var t = /(auto|scroll|overlay)/;
2785
2819
  var r = [ "overflow", "overflowX", "overflowY" ];
2786
2820
  return r.some((function(e) {
@@ -2789,7 +2823,7 @@
2789
2823
  }));
2790
2824
  }
2791
2825
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollableAncestors.ts
2792
- function Qr(e, n) {
2826
+ function Gr(e, n) {
2793
2827
  var t = [];
2794
2828
  function r(o) {
2795
2829
  if (n != null && t.length >= n) {
@@ -2798,23 +2832,23 @@
2798
2832
  if (!o) {
2799
2833
  return t;
2800
2834
  }
2801
- if ((0, qn.isDocument)(o) && o.scrollingElement != null && !t.includes(o.scrollingElement)) {
2835
+ if ((0, zn.isDocument)(o) && o.scrollingElement != null && !t.includes(o.scrollingElement)) {
2802
2836
  t.push(o.scrollingElement);
2803
2837
  return t;
2804
2838
  }
2805
- if (!(0, qn.isHTMLElement)(o) || (0, qn.isSVGElement)(o)) {
2839
+ if (!(0, zn.isHTMLElement)(o) || (0, zn.isSVGElement)(o)) {
2806
2840
  return t;
2807
2841
  }
2808
2842
  if (t.includes(o)) {
2809
2843
  return t;
2810
2844
  }
2811
- var i = (0, qn.getWindow)(e).getComputedStyle(o);
2845
+ var i = (0, zn.getWindow)(e).getComputedStyle(o);
2812
2846
  if (o !== e) {
2813
- if (Jr(o, i)) {
2847
+ if (Yr(o, i)) {
2814
2848
  t.push(o);
2815
2849
  }
2816
2850
  }
2817
- if (Gr(o, i)) {
2851
+ if (Xr(o, i)) {
2818
2852
  return t;
2819
2853
  }
2820
2854
  return r(o.parentNode);
@@ -2825,23 +2859,23 @@
2825
2859
  return r(e);
2826
2860
  }
2827
2861
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollableAncestors.ts
2828
- function Zr(e) {
2829
- var n = Qr(e, 1), t = Or(n, 1), r = t[0];
2862
+ function Jr(e) {
2863
+ var n = Gr(e, 1), t = Sr(n, 1), r = t[0];
2830
2864
  return r !== null && r !== void 0 ? r : null;
2831
2865
  }
2832
- var eo = {
2866
+ var Qr = {
2833
2867
  start: [ a.KeyboardCode.Space, a.KeyboardCode.Enter ],
2834
2868
  cancel: [ a.KeyboardCode.Esc ],
2835
2869
  end: [ a.KeyboardCode.Space, a.KeyboardCode.Enter ]
2836
2870
  };
2837
2871
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/scrollIntoViewIfNeeded.ts
2838
- function no(e) {
2839
- var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Vr;
2872
+ function Zr(e) {
2873
+ var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Kr;
2840
2874
  if (!e) {
2841
2875
  return;
2842
2876
  }
2843
2877
  var t = n(e), r = t.top, o = t.left, i = t.bottom, a = t.right;
2844
- var l = Zr(e);
2878
+ var l = Jr(e);
2845
2879
  if (!l) {
2846
2880
  return;
2847
2881
  }
@@ -2852,23 +2886,23 @@
2852
2886
  });
2853
2887
  }
2854
2888
  }
2855
- var to = function() {
2889
+ var eo = function() {
2856
2890
  function e(n) {
2857
- _r(this, e);
2858
- $r(this, "autoScrollEnabled", false);
2859
- $r(this, "referenceCoordinates", void 0);
2860
- $r(this, "listeners", void 0);
2861
- $r(this, "windowListeners", void 0);
2891
+ Ar(this, e);
2892
+ zr(this, "autoScrollEnabled", false);
2893
+ zr(this, "referenceCoordinates", void 0);
2894
+ zr(this, "listeners", void 0);
2895
+ zr(this, "windowListeners", void 0);
2862
2896
  this.props = n;
2863
2897
  var t = n.event.target;
2864
2898
  this.props = n;
2865
- this.listeners = new Lr((0, qn.getOwnerDocument)(t));
2866
- this.windowListeners = new Lr((0, qn.getWindow)(t));
2899
+ this.listeners = new Nr((0, zn.getOwnerDocument)(t));
2900
+ this.windowListeners = new Nr((0, zn.getWindow)(t));
2867
2901
  this.handleKeyDown = this.handleKeyDown.bind(this);
2868
2902
  this.handleCancel = this.handleCancel.bind(this);
2869
2903
  this.attach();
2870
2904
  }
2871
- Mr(e, [ {
2905
+ _r(e, [ {
2872
2906
  key: "attach",
2873
2907
  value: function e() {
2874
2908
  var n = this;
@@ -2885,16 +2919,16 @@
2885
2919
  var n = this.props, t = n.activeNode, r = n.onStart;
2886
2920
  var o = t.node.current;
2887
2921
  if (o) {
2888
- no(o);
2922
+ Zr(o);
2889
2923
  }
2890
- r(Yr);
2924
+ r(Ur);
2891
2925
  }
2892
2926
  }, {
2893
2927
  key: "handleKeyDown",
2894
2928
  value: function e(n) {
2895
- if ((0, qn.isKeyboardEvent)(n)) {
2929
+ if ((0, zn.isKeyboardEvent)(n)) {
2896
2930
  var t = this.props, r = t.active, o = t.context, i = t.options;
2897
- var l = i.keyboardCodes, u = l === void 0 ? eo : l, s = i.coordinateGetter, c = i.scrollBehavior, d = c === void 0 ? "smooth" : c;
2931
+ var l = i.keyboardCodes, u = l === void 0 ? Qr : l, s = i.coordinateGetter, c = i.scrollBehavior, d = c === void 0 ? "smooth" : c;
2898
2932
  var f = n.code;
2899
2933
  if (u.end.includes(f)) {
2900
2934
  this.handleEnd(n);
@@ -2908,17 +2942,17 @@
2908
2942
  var p = v ? {
2909
2943
  x: v.left,
2910
2944
  y: v.top
2911
- } : Yr;
2945
+ } : Ur;
2912
2946
  if (!this.referenceCoordinates) {
2913
2947
  this.referenceCoordinates = p;
2914
2948
  }
2915
- var b = s(n, {
2949
+ var m = s(n, {
2916
2950
  active: r,
2917
2951
  context: o.current,
2918
2952
  currentCoordinates: p
2919
2953
  });
2920
- if (b) {
2921
- var m = (0, qn.subtract)(b, p);
2954
+ if (m) {
2955
+ var b = (0, zn.subtract)(m, p);
2922
2956
  var h = {
2923
2957
  x: 0,
2924
2958
  y: 0
@@ -2927,19 +2961,19 @@
2927
2961
  for (var g = 0; g < y.length; g += 1) {
2928
2962
  var w = y[g];
2929
2963
  var C = n.code;
2930
- var x = Xr(w), S = x.isTop, k = x.isRight, O = x.isLeft, R = x.isBottom, E = x.maxScroll, I = x.minScroll;
2931
- var T = Fr(w);
2964
+ var x = Fr(w), S = x.isTop, k = x.isRight, O = x.isLeft, R = x.isBottom, E = x.maxScroll, I = x.minScroll;
2965
+ var T = Br(w);
2932
2966
  // isDraggableNodeVerticallyInView and isDraggableNodeHorizontallyInView are custom
2933
2967
  // we want to scroll only when a dragging node will be out of view,
2934
2968
  // originally it tries to always place a dragging node in the middle of the container
2935
- var j = T.top <= b.y && T.bottom >= b.y + ((v === null || v === void 0 ? void 0 : v.height) || 0);
2936
- var D = T.left <= b.x && T.right >= b.x + ((v === null || v === void 0 ? void 0 : v.width) || 0);
2969
+ var j = T.top <= m.y && T.bottom >= m.y + ((v === null || v === void 0 ? void 0 : v.height) || 0);
2970
+ var D = T.left <= m.x && T.right >= m.x + ((v === null || v === void 0 ? void 0 : v.width) || 0);
2937
2971
  var q = (C === a.KeyboardCode.Right && !k || C === a.KeyboardCode.Left && !O) && !D;
2938
2972
  var A = (C === a.KeyboardCode.Down && !R || C === a.KeyboardCode.Up && !S) && !j;
2939
2973
  if (q) {
2940
- var P = w.scrollLeft + m.x;
2974
+ var P = w.scrollLeft + b.x;
2941
2975
  var _ = C === a.KeyboardCode.Right && P <= E.x || C === a.KeyboardCode.Left && P >= I.x;
2942
- if (_ && !m.y) {
2976
+ if (_ && !b.y) {
2943
2977
  // We don't need to update coordinates, the scroll adjustment alone will trigger
2944
2978
  // logic to auto-detect the new container we are over
2945
2979
  w.scrollTo({
@@ -2961,9 +2995,9 @@
2961
2995
  }
2962
2996
  break;
2963
2997
  } else if (A) {
2964
- var z = w.scrollTop + m.y;
2998
+ var z = w.scrollTop + b.y;
2965
2999
  var M = C === a.KeyboardCode.Down && z <= E.y || C === a.KeyboardCode.Up && z >= I.y;
2966
- if (M && !m.x) {
3000
+ if (M && !b.x) {
2967
3001
  // We don't need to update coordinates, the scroll adjustment alone will trigger
2968
3002
  // logic to auto-detect the new container we are over
2969
3003
  w.scrollTo({
@@ -2986,7 +3020,7 @@
2986
3020
  break;
2987
3021
  }
2988
3022
  }
2989
- this.handleMove(n, (0, qn.add)((0, qn.subtract)(b, this.referenceCoordinates), h));
3023
+ this.handleMove(n, (0, zn.add)((0, zn.subtract)(m, this.referenceCoordinates), h));
2990
3024
  }
2991
3025
  }
2992
3026
  }
@@ -3022,10 +3056,10 @@
3022
3056
  } ]);
3023
3057
  return e;
3024
3058
  }();
3025
- $r(to, "activators", [ {
3059
+ zr(eo, "activators", [ {
3026
3060
  eventName: "onKeyDown",
3027
3061
  handler: function e(n, t, r) {
3028
- var o = t.keyboardCodes, i = o === void 0 ? eo : o, a = t.onActivation;
3062
+ var o = t.keyboardCodes, i = o === void 0 ? Qr : o, a = t.onActivation;
3029
3063
  var l = r.active;
3030
3064
  var u = n.nativeEvent.code;
3031
3065
  if (i.start.includes(u)) {
@@ -3043,24 +3077,24 @@
3043
3077
  }
3044
3078
  } ]);
3045
3079
  // CONCATENATED MODULE: external "lodash/extend"
3046
- const ro = require("lodash/extend");
3047
- var oo = e.n(ro);
3080
+ const no = require("lodash/extend");
3081
+ var to = e.n(no);
3048
3082
  // CONCATENATED MODULE: ./src/Table/HeadTableStyles.ts
3049
- var io = $()(te).withConfig({
3083
+ var ro = M()(ne).withConfig({
3050
3084
  displayName: "HeadTableStyles__Styled",
3051
3085
  componentId: "g85wgf-0"
3052
3086
  })([ "min-width:0;table-layout:fixed;" ]);
3053
- var ao = $().div.withConfig({
3087
+ var oo = M().div.withConfig({
3054
3088
  displayName: "HeadTableStyles__StyledDockedContainer",
3055
3089
  componentId: "g85wgf-1"
3056
- })([ "overflow:hidden;position:fixed;z-index:", ";@media print{display:none;}" ], N.variables.zindexFixedNavbar);
3057
- var lo = $()(ao).withConfig({
3090
+ })([ "overflow:hidden;position:fixed;z-index:", ";@media print{display:none;}" ], $.variables.zindexFixedNavbar);
3091
+ var io = M()(oo).withConfig({
3058
3092
  displayName: "HeadTableStyles__StyledFixedContainer",
3059
3093
  componentId: "g85wgf-2"
3060
3094
  })([ "position:absolute;box-shadow:none;z-index:1;" ]);
3061
3095
  // CONCATENATED MODULE: ./src/Table/HeadTable.tsx
3062
- function uo() {
3063
- return uo = Object.assign ? Object.assign.bind() : function(e) {
3096
+ function ao() {
3097
+ return ao = Object.assign ? Object.assign.bind() : function(e) {
3064
3098
  for (var n = 1; n < arguments.length; n++) {
3065
3099
  var t = arguments[n];
3066
3100
  for (var r in t) {
@@ -3068,11 +3102,11 @@
3068
3102
  }
3069
3103
  }
3070
3104
  return e;
3071
- }, uo.apply(null, arguments);
3105
+ }, ao.apply(null, arguments);
3072
3106
  }
3073
- function so(e, n) {
3107
+ function lo(e, n) {
3074
3108
  if (null == e) return {};
3075
- var t, r, o = co(e, n);
3109
+ var t, r, o = uo(e, n);
3076
3110
  if (Object.getOwnPropertySymbols) {
3077
3111
  var i = Object.getOwnPropertySymbols(e);
3078
3112
  for (r = 0; r < i.length; r++) {
@@ -3081,7 +3115,7 @@
3081
3115
  }
3082
3116
  return o;
3083
3117
  }
3084
- function co(e, n) {
3118
+ function uo(e, n) {
3085
3119
  if (null == e) return {};
3086
3120
  var t = {};
3087
3121
  for (var r in e) {
@@ -3092,7 +3126,7 @@
3092
3126
  }
3093
3127
  return t;
3094
3128
  }
3095
- var fo = {
3129
+ var so = {
3096
3130
  cellWidths: i().arrayOf(i().number).isRequired,
3097
3131
  dragIndex: i().number,
3098
3132
  elementRef: i().oneOfType([ i().func, i().object ]),
@@ -3113,13 +3147,13 @@
3113
3147
  * @private
3114
3148
  * HeadTable is an internal component that provides a detached table head that can
3115
3149
  * then be positioned in different ways outside of the main table.
3116
- */ function vo(e) {
3117
- var n = e.cellWidths, o = e.elementRef, i = e.hasDragColumn, a = e.hasRowExpansion, l = e.hasRowSelection, u = e.headType, s = e.horizontalOffset, c = s === void 0 ? 0 : s, d = e.isFixedColumn, f = e.tableStyle, v = e.tableWidth, p = e.tHead, b = e.top, m = e.width, h = so(e, [ "cellWidths", "elementRef", "hasDragColumn", "hasRowExpansion", "hasRowSelection", "headType", "horizontalOffset", "isFixedColumn", "tableStyle", "tableWidth", "tHead", "top", "width" ]);
3150
+ */ function co(e) {
3151
+ var n = e.cellWidths, o = e.elementRef, i = e.hasDragColumn, a = e.hasRowExpansion, l = e.hasRowSelection, u = e.headType, s = e.horizontalOffset, c = s === void 0 ? 0 : s, d = e.isFixedColumn, f = e.tableStyle, v = e.tableWidth, p = e.tHead, m = e.top, b = e.width, h = lo(e, [ "cellWidths", "elementRef", "hasDragColumn", "hasRowExpansion", "hasRowSelection", "headType", "horizontalOffset", "isFixedColumn", "tableStyle", "tableWidth", "tHead", "top", "width" ]);
3118
3152
  var y = u === "docked";
3119
- var w = y ? ao : lo;
3153
+ var w = y ? oo : io;
3120
3154
  var C = (0, t.useRef)(null);
3121
3155
  var x = (0, t.useCallback)((function(e) {
3122
- L(C, e);
3156
+ W(C, e);
3123
3157
  }), [ C ]);
3124
3158
  var S = 0;
3125
3159
  if (a) {
@@ -3143,7 +3177,7 @@
3143
3177
  return k.filter(t.isValidElement).map((function(e, r) {
3144
3178
 
3145
3179
  return (0, t.cloneElement)(e, {
3146
- style: oo()({}, e.props.style, {
3180
+ style: to()({}, e.props.style, {
3147
3181
  width: n[r + S]
3148
3182
  })
3149
3183
  });
@@ -3155,35 +3189,35 @@
3155
3189
  }, O);
3156
3190
  var E = (0, t.useMemo)((function() {
3157
3191
  return {
3158
- top: b,
3159
- width: m
3192
+ top: m,
3193
+ width: b
3160
3194
  };
3161
- }), [ b, m ]);
3195
+ }), [ m, b ]);
3162
3196
 
3163
3197
  return r().createElement(w, {
3164
3198
  style: E,
3165
3199
  ref: o
3166
- }, r().createElement(io, uo({
3200
+ }, r().createElement(ro, ao({
3167
3201
  "data-test": "".concat(u, "-head-table"),
3168
3202
  "data-fixed-column": d ? "true" : undefined,
3169
- style: oo()({}, f, {
3203
+ style: to()({}, f, {
3170
3204
  marginLeft: c,
3171
3205
  width: d ? undefined : v
3172
3206
  })
3173
3207
  }, g()(h, "dragIndex")), R));
3174
3208
  }
3175
- vo.propTypes = fo;
3176
- /* harmony default export */ const po = vo;
3209
+ co.propTypes = so;
3210
+ /* harmony default export */ const fo = co;
3177
3211
  // CONCATENATED MODULE: ./src/utils/getBoundingClientRect.ts
3178
- function bo(e) {
3212
+ function vo(e) {
3179
3213
  "@babel/helpers - typeof";
3180
- return bo = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
3214
+ return vo = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
3181
3215
  return typeof e;
3182
3216
  } : function(e) {
3183
3217
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3184
- }, bo(e);
3218
+ }, vo(e);
3185
3219
  }
3186
- function mo(e, n) {
3220
+ function po(e, n) {
3187
3221
  var t = Object.keys(e);
3188
3222
  if (Object.getOwnPropertySymbols) {
3189
3223
  var r = Object.getOwnPropertySymbols(e);
@@ -3193,46 +3227,46 @@
3193
3227
  }
3194
3228
  return t;
3195
3229
  }
3196
- function ho(e) {
3230
+ function mo(e) {
3197
3231
  for (var n = 1; n < arguments.length; n++) {
3198
3232
  var t = null != arguments[n] ? arguments[n] : {};
3199
- n % 2 ? mo(Object(t), !0).forEach((function(n) {
3200
- yo(e, n, t[n]);
3201
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : mo(Object(t)).forEach((function(n) {
3233
+ n % 2 ? po(Object(t), !0).forEach((function(n) {
3234
+ bo(e, n, t[n]);
3235
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : po(Object(t)).forEach((function(n) {
3202
3236
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
3203
3237
  }));
3204
3238
  }
3205
3239
  return e;
3206
3240
  }
3207
- function yo(e, n, t) {
3208
- return (n = go(n)) in e ? Object.defineProperty(e, n, {
3241
+ function bo(e, n, t) {
3242
+ return (n = ho(n)) in e ? Object.defineProperty(e, n, {
3209
3243
  value: t,
3210
3244
  enumerable: !0,
3211
3245
  configurable: !0,
3212
3246
  writable: !0
3213
3247
  }) : e[n] = t, e;
3214
3248
  }
3215
- function go(e) {
3216
- var n = wo(e, "string");
3217
- return "symbol" == bo(n) ? n : n + "";
3249
+ function ho(e) {
3250
+ var n = yo(e, "string");
3251
+ return "symbol" == vo(n) ? n : n + "";
3218
3252
  }
3219
- function wo(e, n) {
3220
- if ("object" != bo(e) || !e) return e;
3253
+ function yo(e, n) {
3254
+ if ("object" != vo(e) || !e) return e;
3221
3255
  var t = e[Symbol.toPrimitive];
3222
3256
  if (void 0 !== t) {
3223
3257
  var r = t.call(e, n || "default");
3224
- if ("object" != bo(r)) return r;
3258
+ if ("object" != vo(r)) return r;
3225
3259
  throw new TypeError("@@toPrimitive must return a primitive value.");
3226
3260
  }
3227
3261
  return ("string" === n ? String : Number)(e);
3228
3262
  }
3229
3263
  // Checks if browser is Safari
3230
- function Co() {
3264
+ function go() {
3231
3265
  return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
3232
3266
  }
3233
3267
  // Formats return value to DOMRect
3234
- function xo(e) {
3235
- return ho(ho({}, e), {}, {
3268
+ function wo(e) {
3269
+ return mo(mo({}, e), {}, {
3236
3270
  top: e.y,
3237
3271
  left: e.x,
3238
3272
  right: e.x + e.width,
@@ -3246,18 +3280,18 @@
3246
3280
  * @param {boolean} offsets - Use when position of element relative to the layout viewport offsets are needed for Safari.
3247
3281
  * @returns {Omit<DOMRect, 'toJSON'>}
3248
3282
  * @public
3249
- */ function So(e, n) {
3283
+ */ function Co(e, n) {
3250
3284
  var t, r;
3251
3285
  var o = e.getBoundingClientRect();
3252
- var i = Co();
3286
+ var i = go();
3253
3287
  if (!n || !i) {
3254
3288
  return o;
3255
3289
  }
3256
- var a = Ze();
3290
+ var a = tn();
3257
3291
  var l = o.left + (((t = a.visualViewport) === null || t === void 0 ? void 0 : t.offsetLeft) || 0);
3258
3292
  var u = o.top + (((r = a.visualViewport) === null || r === void 0 ? void 0 : r.offsetTop) || 0);
3259
3293
  var s = o.width, c = o.height;
3260
- return xo({
3294
+ return wo({
3261
3295
  width: s,
3262
3296
  height: c,
3263
3297
  x: l,
@@ -3274,14 +3308,14 @@
3274
3308
  // erroneously included in react-ui's public api.
3275
3309
  // see https://github.com/microsoft/TypeScript/pull/12253
3276
3310
  // see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html
3277
- function ko(e, n) {
3311
+ function xo(e, n) {
3278
3312
  if (e === undefined || e === null) {
3279
3313
  throw new Error(n !== null && n !== void 0 ? n : "Unexpected undefined or null");
3280
3314
  }
3281
3315
  }
3282
3316
  // CONCATENATED MODULE: ./src/Table/Table.tsx
3283
- function Oo() {
3284
- return Oo = Object.assign ? Object.assign.bind() : function(e) {
3317
+ function So() {
3318
+ return So = Object.assign ? Object.assign.bind() : function(e) {
3285
3319
  for (var n = 1; n < arguments.length; n++) {
3286
3320
  var t = arguments[n];
3287
3321
  for (var r in t) {
@@ -3289,41 +3323,41 @@
3289
3323
  }
3290
3324
  }
3291
3325
  return e;
3292
- }, Oo.apply(null, arguments);
3326
+ }, So.apply(null, arguments);
3293
3327
  }
3294
- function Ro(e) {
3295
- return To(e) || Io(e) || qo(e) || Eo();
3328
+ function ko(e) {
3329
+ return Eo(e) || Ro(e) || jo(e) || Oo();
3296
3330
  }
3297
- function Eo() {
3331
+ function Oo() {
3298
3332
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3299
3333
  }
3300
- function Io(e) {
3334
+ function Ro(e) {
3301
3335
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
3302
3336
  }
3303
- function To(e) {
3304
- if (Array.isArray(e)) return Ao(e);
3337
+ function Eo(e) {
3338
+ if (Array.isArray(e)) return Do(e);
3305
3339
  }
3306
- function jo(e, n) {
3307
- return _o(e) || Po(e, n) || qo(e, n) || Do();
3340
+ function Io(e, n) {
3341
+ return Ao(e) || qo(e, n) || jo(e, n) || To();
3308
3342
  }
3309
- function Do() {
3343
+ function To() {
3310
3344
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3311
3345
  }
3312
- function qo(e, n) {
3346
+ function jo(e, n) {
3313
3347
  if (e) {
3314
- if ("string" == typeof e) return Ao(e, n);
3348
+ if ("string" == typeof e) return Do(e, n);
3315
3349
  var t = {}.toString.call(e).slice(8, -1);
3316
- return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Ao(e, n) : void 0;
3350
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Do(e, n) : void 0;
3317
3351
  }
3318
3352
  }
3319
- function Ao(e, n) {
3353
+ function Do(e, n) {
3320
3354
  (null == n || n > e.length) && (n = e.length);
3321
3355
  for (var t = 0, r = Array(n); t < n; t++) {
3322
3356
  r[t] = e[t];
3323
3357
  }
3324
3358
  return r;
3325
3359
  }
3326
- function Po(e, n) {
3360
+ function qo(e, n) {
3327
3361
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
3328
3362
  if (null != t) {
3329
3363
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -3345,12 +3379,12 @@
3345
3379
  return l;
3346
3380
  }
3347
3381
  }
3348
- function _o(e) {
3382
+ function Ao(e) {
3349
3383
  if (Array.isArray(e)) return e;
3350
3384
  }
3351
- function zo(e, n) {
3385
+ function Po(e, n) {
3352
3386
  if (null == e) return {};
3353
- var t, r, o = Mo(e, n);
3387
+ var t, r, o = _o(e, n);
3354
3388
  if (Object.getOwnPropertySymbols) {
3355
3389
  var i = Object.getOwnPropertySymbols(e);
3356
3390
  for (r = 0; r < i.length; r++) {
@@ -3359,7 +3393,7 @@
3359
3393
  }
3360
3394
  return o;
3361
3395
  }
3362
- function Mo(e, n) {
3396
+ function _o(e, n) {
3363
3397
  if (null == e) return {};
3364
3398
  var t = {};
3365
3399
  for (var r in e) {
@@ -3374,7 +3408,7 @@
3374
3408
  // Internal Helper Modules
3375
3409
  /** @public */
3376
3410
  /** @public */
3377
- /** @public */ var $o = {
3411
+ /** @public */ var zo = {
3378
3412
  actions: i().arrayOf(i().element),
3379
3413
  actionsColumnWidth: i().number,
3380
3414
  children: i().node,
@@ -3396,25 +3430,25 @@
3396
3430
  onRequestResizeColumn: i().func,
3397
3431
  resizableFillLayout: i().bool
3398
3432
  };
3399
- var No = function e(n) {
3433
+ var Mo = function e(n) {
3400
3434
  return n === "inline";
3401
3435
  };
3402
- var Wo = function e(n) {
3436
+ var $o = function e(n) {
3403
3437
  return n === "docked";
3404
3438
  };
3405
- var Lo = function e(n) {
3439
+ var No = function e(n) {
3406
3440
  return n === "fixed";
3407
3441
  };
3408
- var Ho = function e(n) {
3409
- var t = Ze();
3410
- var r = So(n);
3442
+ var Wo = function e(n) {
3443
+ var t = tn();
3444
+ var r = Co(n);
3411
3445
  return {
3412
3446
  top: r.top + t.pageYOffset,
3413
3447
  left: r.left + t.pageXOffset
3414
3448
  };
3415
3449
  };
3416
- var Ko = function e(n) {
3417
- var t = Ye();
3450
+ var Lo = function e(n) {
3451
+ var t = Qe();
3418
3452
  if (n === undefined || n === null) {
3419
3453
  return undefined;
3420
3454
  }
@@ -3436,20 +3470,20 @@
3436
3470
  }
3437
3471
  return undefined;
3438
3472
  };
3439
- var Bo = function e(n, t) {
3473
+ var Ho = function e(n, t) {
3440
3474
  return n.indexOf(t) + 1;
3441
3475
  };
3442
- var Vo = function e(n, t) {
3476
+ var Ko = function e(n, t) {
3443
3477
  return n.indexOf(t) + 1;
3444
3478
  };
3445
- var Fo = {
3479
+ var Bo = {
3446
3480
  coordinateGetter: l.sortableKeyboardCoordinates
3447
3481
  };
3448
- var Uo = {
3449
- draggable: (0, D._)("To pick up a sortable row, press space or enter.\n Use the up and down arrow keys to update the position of the row.\n Press space or enter again to drop the row in its new position, or press escape to cancel.")
3482
+ var Vo = {
3483
+ draggable: (0, j._)("To pick up a sortable row, press space or enter.\n Use the up and down arrow keys to update the position of the row.\n Press space or enter again to drop the row in its new position, or press escape to cancel.")
3450
3484
  };
3451
- var Xo = {
3452
- draggable: (0, D._)("To pick up a sortable column, press space or enter.\n Use the left and right arrow keys to update the position of the column.\n Press space or enter again to drop the column in its new position, or press escape to cancel.")
3485
+ var Fo = {
3486
+ draggable: (0, j._)("To pick up a sortable column, press space or enter.\n Use the left and right arrow keys to update the position of the column.\n Press space or enter again to drop the column in its new position, or press escape to cancel.")
3453
3487
  };
3454
3488
  /**
3455
3489
  * @private
@@ -3460,7 +3494,7 @@
3460
3494
  * @param {String} headFocusState.target - Focus can be applied to a 'headCell' or a
3461
3495
  * 'resizeButton'.
3462
3496
  * @param {Number} headFocusState.index - The index of the element to set focus on.
3463
- */ function Yo(e, n) {
3497
+ */ function Uo(e, n) {
3464
3498
  var t, r;
3465
3499
  var o = n.target, i = n.index;
3466
3500
  if (false) {}
@@ -3473,149 +3507,149 @@
3473
3507
  if (false) {}
3474
3508
  (t = a) === null || t === void 0 ? void 0 : (r = t.focus) === null || r === void 0 ? void 0 : r.call(t);
3475
3509
  }
3476
- var Go = {
3510
+ var Xo = {
3477
3511
  passive: false,
3478
3512
  capture: true
3479
3513
  };
3480
- var Jo = [];
3481
- function Qo(e) {
3482
- var n = e.actions, o = n === void 0 ? Jo : n, i = e.actionsColumnWidth, s = e.children, d = e.dockOffset, v = d === void 0 ? 0 : d, p = e.dockScrollBar, b = e.elementRef, h = e.headType, y = h === void 0 ? "inline" : h, w = e.innerStyle, x = e.onRequestMoveColumn, k = e.onRequestMoveRow, T = e.onRequestResizeColumn, A = e.onRequestToggleAllRows, P = e.onScroll, _ = e.outerStyle, z = e.primaryColumnIndex, M = z === void 0 ? 0 : z, $ = e.resizableFillLayout, N = e.rowExpansion, W = N === void 0 ? "none" : N, H = e.rowSelection, K = H === void 0 ? "none" : H, B = e.stripeRows, V = e.tableStyle, F = zo(e, [ "actions", "actionsColumnWidth", "children", "dockOffset", "dockScrollBar", "elementRef", "headType", "innerStyle", "onRequestMoveColumn", "onRequestMoveRow", "onRequestResizeColumn", "onRequestToggleAllRows", "onScroll", "outerStyle", "primaryColumnIndex", "resizableFillLayout", "rowExpansion", "rowSelection", "stripeRows", "tableStyle" ]);
3514
+ var Yo = [];
3515
+ function Go(e) {
3516
+ var n = e.actions, o = n === void 0 ? Yo : n, i = e.actionsColumnWidth, s = e.children, d = e.dockOffset, v = d === void 0 ? 0 : d, p = e.dockScrollBar, m = e.elementRef, h = e.headType, y = h === void 0 ? "inline" : h, w = e.innerStyle, x = e.onRequestMoveColumn, k = e.onRequestMoveRow, I = e.onRequestResizeColumn, q = e.onRequestToggleAllRows, A = e.onScroll, P = e.outerStyle, _ = e.primaryColumnIndex, z = _ === void 0 ? 0 : _, M = e.resizableFillLayout, $ = e.rowExpansion, N = $ === void 0 ? "none" : $, L = e.rowSelection, H = L === void 0 ? "none" : L, K = e.stripeRows, B = e.tableStyle, V = Po(e, [ "actions", "actionsColumnWidth", "children", "dockOffset", "dockScrollBar", "elementRef", "headType", "innerStyle", "onRequestMoveColumn", "onRequestMoveRow", "onRequestResizeColumn", "onRequestToggleAllRows", "onScroll", "outerStyle", "primaryColumnIndex", "resizableFillLayout", "rowExpansion", "rowSelection", "stripeRows", "tableStyle" ]);
3483
3517
  // @docs-props-type TablePropsBase
3484
- var U = (0, t.useState)([]), X = jo(U, 2), Y = X[0], G = X[1];
3485
- var J = (0, t.useState)(), Q = jo(J, 2), Z = Q[0], ie = Q[1];
3486
- var ue = (0, t.useState)(), se = jo(ue, 2), ce = se[0], de = se[1];
3487
- var fe = (0, t.useState)(), ve = jo(fe, 2), pe = ve[0], be = ve[1];
3488
- var me = (0, t.useState)(), he = jo(me, 2), ye = he[0], ge = he[1];
3489
- var we = (0, t.useRef)(true);
3490
- var Ce = (0, t.useContext)(I.ScrollContainerContext);
3491
- var xe = (0, a.useSensors)((0, a.useSensor)(a.MouseSensor, {}), (0, a.useSensor)(a.TouchSensor, {}), (0,
3492
- a.useSensor)(to, Fo));
3493
- var Se = (0, t.useState)([]), ke = jo(Se, 2), Oe = ke[0], Re = ke[1];
3494
- var Ee = (0, t.useState)(-1), Ie = jo(Ee, 2), Te = Ie[0], je = Ie[1];
3518
+ var F = (0, t.useState)([]), U = Io(F, 2), X = U[0], Y = U[1];
3519
+ var G = (0, t.useState)(), J = Io(G, 2), Q = J[0], oe = J[1];
3520
+ var le = (0, t.useState)(), ue = Io(le, 2), se = ue[0], ce = ue[1];
3521
+ var de = (0, t.useState)(), fe = Io(de, 2), ve = fe[0], pe = fe[1];
3522
+ var me = (0, t.useState)(), be = Io(me, 2), he = be[0], ye = be[1];
3523
+ var ge = (0, t.useRef)(true);
3524
+ var we = (0, t.useContext)(E.ScrollContainerContext);
3525
+ var Ce = (0, a.useSensors)((0, a.useSensor)(a.MouseSensor, {}), (0, a.useSensor)(a.TouchSensor, {}), (0,
3526
+ a.useSensor)(eo, Bo));
3527
+ var xe = (0, t.useState)([]), Se = Io(xe, 2), ke = Se[0], Oe = Se[1];
3528
+ var Re = (0, t.useState)(-1), Ee = Io(Re, 2), Ie = Ee[0], Te = Ee[1];
3529
+ var je = (0, t.useRef)();
3495
3530
  var De = (0, t.useRef)();
3496
- var qe = (0, t.useRef)();
3497
- var Ae = (0, t.useState)(), Pe = jo(Ae, 2), _e = Pe[0], ze = Pe[1];
3531
+ var qe = (0, t.useState)(), Ae = Io(qe, 2), Pe = Ae[0], _e = Ae[1];
3532
+ var ze = (0, t.useRef)(null);
3498
3533
  var Me = (0, t.useRef)(null);
3499
- var $e = (0, t.useRef)(null);
3500
- var Ne = (0, t.useRef)();
3501
- var We = (0, t.useRef)(null);
3502
- var Le = (0, t.useRef)();
3534
+ var $e = (0, t.useRef)();
3535
+ var Ne = (0, t.useRef)(null);
3536
+ var We = (0, t.useRef)();
3537
+ var Le = (0, t.useRef)(null);
3503
3538
  var He = (0, t.useRef)(null);
3504
- var Ke = (0, t.useRef)(null);
3505
- var Be = j()(y);
3539
+ var Ke = T()(y);
3540
+ var Be = [];
3506
3541
  var Ve = [];
3507
3542
  var Fe = [];
3508
3543
  var Ue = [];
3509
- var Xe = [];
3510
- var Ge = (0, t.useCallback)((function() {
3544
+ var Xe = (0, t.useCallback)((function() {
3511
3545
  var e;
3512
- var n = Ze();
3513
- if (No(y)) {
3546
+ var n = tn();
3547
+ if (Mo(y)) {
3514
3548
  return;
3515
3549
  }
3516
- var t = Ke.current;
3517
- var r = $e.current;
3518
- var o = He.current;
3550
+ var t = He.current;
3551
+ var r = Me.current;
3552
+ var o = Le.current;
3519
3553
  if (!o || !r) {
3520
3554
  return;
3521
3555
  }
3522
- var i = Zt($e.current);
3523
- var a = (e = $e.current) === null || e === void 0 ? void 0 : e.clientHeight;
3524
- var l = Ho(o).top - n.pageYOffset - (a || 0) + o.offsetHeight;
3556
+ var i = Jt(Me.current);
3557
+ var a = (e = Me.current) === null || e === void 0 ? void 0 : e.clientHeight;
3558
+ var l = Wo(o).top - n.pageYOffset - (a || 0) + o.offsetHeight;
3525
3559
  var u = Math.min(l, Number(v));
3526
- ge(t === null || t === void 0 ? void 0 : t.clientWidth);
3527
- de(o === null || o === void 0 ? void 0 : o.clientWidth);
3528
- G(i);
3529
- be(u);
3560
+ ye(t === null || t === void 0 ? void 0 : t.clientWidth);
3561
+ ce(o === null || o === void 0 ? void 0 : o.clientWidth);
3562
+ Y(i);
3563
+ pe(u);
3530
3564
  }), [ v, y ]);
3531
3565
  (0, t.useEffect)((function() {
3532
- var e = $e.current;
3533
- var n = We.current;
3566
+ var e = Me.current;
3567
+ var n = Ne.current;
3534
3568
  if (e && n) {
3535
- var t = Zt($e.current);
3536
- if (!m()(Y, t)) {
3537
- Ge();
3569
+ var t = Jt(Me.current);
3570
+ if (!b()(X, t)) {
3571
+ Xe();
3538
3572
  }
3539
3573
  }
3540
- if (Be === "inline" && y === "inline") {
3541
- Ge();
3574
+ if (Ke === "inline" && y === "inline") {
3575
+ Xe();
3542
3576
  }
3543
3577
  if (false) {}
3544
- }), [ Y, y, Be, e, Ge ]);
3545
- var Je = (0, t.useCallback)((function(e) {
3546
- var n = Ke.current;
3547
- P === null || P === void 0 ? void 0 : P(e);
3548
- if ((Lo(y) || Wo(y)) && n) {
3549
- ie(-n.scrollLeft);
3550
- }
3551
- if (Me.current && Le.current !== "dockedScrollBar" && n) {
3552
- Le.current = "container";
3553
- Me.current.scrollLeft = n.scrollLeft;
3578
+ }), [ X, y, Ke, e, Xe ]);
3579
+ var Ye = (0, t.useCallback)((function(e) {
3580
+ var n = He.current;
3581
+ A === null || A === void 0 ? void 0 : A(e);
3582
+ if ((No(y) || $o(y)) && n) {
3583
+ oe(-n.scrollLeft);
3584
+ }
3585
+ if (ze.current && We.current !== "dockedScrollBar" && n) {
3586
+ We.current = "container";
3587
+ ze.current.scrollLeft = n.scrollLeft;
3554
3588
  } else {
3555
- Le.current = undefined;
3556
- }
3557
- }), [ y, P ]);
3558
- var Qe = function e() {
3559
- var n = Ke.current;
3560
- if (Le.current !== "container" && n && Me.current) {
3561
- Le.current = "dockedScrollBar";
3562
- n.scrollLeft = Me.current.scrollLeft;
3589
+ We.current = undefined;
3590
+ }
3591
+ }), [ y, A ]);
3592
+ var Ge = function e() {
3593
+ var n = He.current;
3594
+ if (We.current !== "container" && n && ze.current) {
3595
+ We.current = "dockedScrollBar";
3596
+ n.scrollLeft = ze.current.scrollLeft;
3563
3597
  } else {
3564
- Le.current = undefined;
3598
+ We.current = undefined;
3565
3599
  }
3566
3600
  };
3567
- var en = C()(Ge, 0);
3568
- var nn = C()(Ge, 50);
3569
- O()(Ke, nn);
3601
+ var Je = C()(Xe, 0);
3602
+ var Ze = C()(Xe, 50);
3603
+ O()(He, Ze);
3570
3604
  (0, t.useEffect)((function() {
3571
3605
  // Using the return value of useCallback to recreate componentWillUnmount
3572
3606
  return function() {
3573
- en.cancel();
3574
- nn.cancel();
3607
+ Je.cancel();
3608
+ Ze.cancel();
3575
3609
  };
3576
3610
  }));
3577
- var tn = function e(n) {
3611
+ var en = function e(n) {
3578
3612
  return function(e) {
3579
- $e.current = e;
3580
- L(n.props.elementRef, e);
3613
+ Me.current = e;
3614
+ W(n.props.elementRef, e);
3581
3615
  };
3582
3616
  };
3583
- var rn = function e(n) {
3617
+ var nn = function e(n) {
3584
3618
  if (n) {
3585
3619
  // On mount, focus the applicable docked head cell if a primary head cell was focused.
3586
- if (Ne.current) {
3587
- Yo(We.current, Ne.current);
3588
- Ne.current = undefined;
3620
+ if ($e.current) {
3621
+ Uo(Ne.current, $e.current);
3622
+ $e.current = undefined;
3589
3623
  }
3590
3624
  } else {
3591
3625
  // On unmount, focus the applicable primary head cell if a docked head cell was focused.
3592
- var t = Ko(We.current);
3626
+ var t = Lo(Ne.current);
3593
3627
  if (t) {
3594
- Yo($e.current, t);
3628
+ Uo(Me.current, t);
3595
3629
  }
3596
3630
  }
3597
- We.current = n;
3631
+ Ne.current = n;
3598
3632
  };
3599
- var on = function e(n) {
3600
- var t = Ke.current;
3601
- if (!We.current || !t || (0, E.keycode)(n.nativeEvent) !== "tab") {
3633
+ var rn = function e(n) {
3634
+ var t = He.current;
3635
+ if (!Ne.current || !t || n.key !== "Tab") {
3602
3636
  return;
3603
3637
  }
3604
- var r = We.current.scrollLeft;
3638
+ var r = Ne.current.scrollLeft;
3605
3639
  if (r !== 0) {
3606
- We.current.scrollLeft = 0;
3640
+ Ne.current.scrollLeft = 0;
3607
3641
  t.scrollLeft += r;
3608
3642
  }
3609
3643
  };
3610
- var an = function e(n, t) {
3644
+ var on = function e(n, t) {
3611
3645
  var r, o;
3612
3646
  var i = t.index, a = t.columnId;
3613
- var l = Ye();
3647
+ var l = Qe();
3614
3648
  if (i === undefined) {
3615
3649
  return;
3616
3650
  }
3617
- var u = W === "none" ? 1 : 2;
3618
- var s = (r = Ke.current) === null || r === void 0 ? void 0 : r.querySelectorAll("thead th:nth-child(".concat(i + u, "), tbody td:nth-child(").concat(i + u, ")"));
3651
+ var u = N === "none" ? 1 : 2;
3652
+ var s = (r = He.current) === null || r === void 0 ? void 0 : r.querySelectorAll("thead th:nth-child(".concat(i + u, "), tbody td:nth-child(").concat(i + u, ")"));
3619
3653
  var d = l.createElement("div");
3620
3654
  // TODO: find a styled-components compliant way to do this
3621
3655
  d.style["float"] = "left";
@@ -3632,74 +3666,74 @@
3632
3666
  d.appendChild(n);
3633
3667
  }));
3634
3668
  l.body.appendChild(d);
3635
- T === null || T === void 0 ? void 0 : T(n, {
3669
+ I === null || I === void 0 ? void 0 : I(n, {
3636
3670
  index: i,
3637
3671
  columnId: a,
3638
3672
  width: d.clientWidth + 1
3639
3673
  });
3640
3674
  (o = d.parentNode) === null || o === void 0 ? void 0 : o.removeChild(d);
3641
3675
  };
3642
- var ln = (0, t.useCallback)((function(e) {
3676
+ var an = (0, t.useCallback)((function(e) {
3643
3677
  var n = e.active;
3644
3678
  var t = n.id;
3645
- De.current = Xe.indexOf(t);
3646
- ze(t);
3647
- }), [ Xe ]);
3648
- var un = (0, t.useCallback)((function(e) {
3679
+ je.current = Ue.indexOf(t);
3680
+ _e(t);
3681
+ }), [ Ue ]);
3682
+ var ln = (0, t.useCallback)((function(e) {
3649
3683
  if (e.over) {
3650
3684
  var n = e.over.id;
3651
- var t = Xe.indexOf(n);
3685
+ var t = Ue.indexOf(n);
3652
3686
  var r = t;
3653
- if (De.current !== undefined && t > De.current) {
3687
+ if (je.current !== undefined && t > je.current) {
3654
3688
  r = t + 1;
3655
3689
  }
3656
- je(r);
3690
+ Te(r);
3657
3691
  } else {
3658
- je(-1);
3692
+ Te(-1);
3659
3693
  }
3660
- }), [ Xe ]);
3694
+ }), [ Ue ]);
3661
3695
  // these are useMemo rather than useCallback so that ESLint can correctly analyze the dependencies
3662
3696
  // see https://github.com/facebook/react/issues/19240#issuecomment-652945246
3663
- var sn = (0, t.useMemo)((function() {
3664
- return C()(un, 100);
3665
- }), [ un ]);
3697
+ var un = (0, t.useMemo)((function() {
3698
+ return C()(ln, 100);
3699
+ }), [ ln ]);
3666
3700
  (0, t.useEffect)((function() {
3667
3701
  return function() {
3668
- sn.cancel();
3702
+ un.cancel();
3669
3703
  };
3670
- }), [ sn ]);
3671
- var cn = (0, t.useCallback)((function(e) {
3704
+ }), [ un ]);
3705
+ var sn = (0, t.useCallback)((function(e) {
3672
3706
  var n = e.active, t = e.over;
3673
3707
  if (t && n.id !== t.id) {
3674
- var r = Xe.indexOf(n.id);
3675
- var o = Xe.indexOf(t === null || t === void 0 ? void 0 : t.id);
3708
+ var r = Ue.indexOf(n.id);
3709
+ var o = Ue.indexOf(t === null || t === void 0 ? void 0 : t.id);
3676
3710
  x === null || x === void 0 ? void 0 : x({
3677
3711
  fromIndex: r,
3678
3712
  toIndex: o
3679
3713
  });
3680
3714
  }
3681
- ze(undefined);
3682
- je(-1);
3683
- qe.current = undefined;
3715
+ _e(undefined);
3716
+ Te(-1);
3684
3717
  De.current = undefined;
3685
- }), [ Xe, x ]);
3686
- var dn = (0, t.useCallback)((function(e) {
3718
+ je.current = undefined;
3719
+ }), [ Ue, x ]);
3720
+ var cn = (0, t.useCallback)((function(e) {
3687
3721
  var n = e.active, t = e.over;
3688
- we.current = true;
3722
+ ge.current = true;
3689
3723
  if (t && n.id !== t.id) {
3690
- var r = Fe.indexOf(n.id);
3691
- var o = Fe.indexOf(t === null || t === void 0 ? void 0 : t.id);
3724
+ var r = Ve.indexOf(n.id);
3725
+ var o = Ve.indexOf(t === null || t === void 0 ? void 0 : t.id);
3692
3726
  k === null || k === void 0 ? void 0 : k({
3693
3727
  fromIndex: r,
3694
3728
  toIndex: o
3695
3729
  });
3696
3730
  }
3697
- }), [ Fe, k ]);
3698
- var fn = (0, t.useCallback)((function() {
3699
- we.current = true;
3731
+ }), [ Ve, k ]);
3732
+ var dn = (0, t.useCallback)((function() {
3733
+ ge.current = true;
3700
3734
  }), []);
3701
- var vn = (0, t.useRef)({});
3702
- var pn = function e(n) {
3735
+ var fn = (0, t.useRef)({});
3736
+ var vn = function e(n) {
3703
3737
  var r = t.Children.toArray(n.props.children).filter(t.isValidElement).map((function(e, n) {
3704
3738
  var r = e;
3705
3739
  var o = r.key || (0, R.createDOMID)("col-");
@@ -3709,15 +3743,15 @@
3709
3743
  if (!o.startsWith("col-")) {
3710
3744
  o = "col-".concat(o);
3711
3745
  }
3712
- Ue.push(r);
3713
- Xe.push(o);
3746
+ Fe.push(r);
3747
+ Ue.push(o);
3714
3748
 
3715
3749
  return (0, t.cloneElement)(r, {
3716
3750
  index: n,
3717
3751
  dragId: o,
3718
3752
  elementRef: function e(n) {
3719
- vn.current[o] = n;
3720
- L(r.props.elementRef, n);
3753
+ fn.current[o] = n;
3754
+ W(r.props.elementRef, n);
3721
3755
  }
3722
3756
  });
3723
3757
  }));
@@ -3725,41 +3759,41 @@
3725
3759
  var l = (0, t.cloneElement)(n, {
3726
3760
  actions: a,
3727
3761
  actionsColumnWidth: i,
3728
- hasInfoColumn: W !== "none",
3762
+ hasInfoColumn: N !== "none",
3729
3763
  hasDragColumn: !!k,
3730
- onAutosizeColumn: an,
3764
+ onAutosizeColumn: on,
3731
3765
  onRequestMoveColumn: x,
3732
- onRequestResizeColumn: T,
3733
- onRequestToggleAllRows: A,
3734
- elementRef: tn(n),
3735
- rowSelection: K
3766
+ onRequestResizeColumn: I,
3767
+ onRequestToggleAllRows: q,
3768
+ elementRef: en(n),
3769
+ rowSelection: H
3736
3770
  }, r);
3737
3771
  return l;
3738
3772
  };
3739
- var bn = (0, t.useMemo)((function() {
3773
+ var pn = (0, t.useMemo)((function() {
3740
3774
  var e, n;
3741
- if (Te === -1 || !$e.current || !Ke.current) return null;
3775
+ if (Ie === -1 || !Me.current || !He.current) return null;
3742
3776
  var t = !!k;
3743
- var o = W !== "none";
3744
- var i = Array.from((e = (n = $e.current.firstElementChild) === null || n === void 0 ? void 0 : n.children) !== null && e !== void 0 ? e : []).slice(o ? 1 : 0).slice(t ? 1 : 0).slice(A ? 1 : 0);
3777
+ var o = N !== "none";
3778
+ var i = Array.from((e = (n = Me.current.firstElementChild) === null || n === void 0 ? void 0 : n.children) !== null && e !== void 0 ? e : []).slice(o ? 1 : 0).slice(t ? 1 : 0).slice(q ? 1 : 0);
3745
3779
  var a;
3746
- if (Te === 0) {
3780
+ if (Ie === 0) {
3747
3781
  var l;
3748
3782
  a = ((l = i[0]) === null || l === void 0 ? void 0 : l.offsetLeft) || 0;
3749
- } else if (Te >= i.length) {
3783
+ } else if (Ie >= i.length) {
3750
3784
  var u = i[i.length - 1];
3751
3785
  a = ((u === null || u === void 0 ? void 0 : u.offsetLeft) || 0) + ((u === null || u === void 0 ? void 0 : u.offsetWidth) || 0) - 1;
3752
3786
  // -1 makes the last guideline visible
3753
3787
  } else {
3754
3788
  var s;
3755
- a = ((s = i[Te]) === null || s === void 0 ? void 0 : s.offsetLeft) || 0;
3789
+ a = ((s = i[Ie]) === null || s === void 0 ? void 0 : s.offsetLeft) || 0;
3756
3790
  }
3757
3791
 
3758
- return r().createElement(le, {
3759
- $height: Ke.current.clientHeight,
3792
+ return r().createElement(ae, {
3793
+ $height: He.current.clientHeight,
3760
3794
  $left: a
3761
3795
  });
3762
- }), [ Te, k, W, A ]);
3796
+ }), [ Ie, k, N, q ]);
3763
3797
  var mn = function e(n) {
3764
3798
  var r = (o === null || o === void 0 ? void 0 : o.filter(t.isValidElement).length) > 0;
3765
3799
  var a = false;
@@ -3775,11 +3809,11 @@
3775
3809
  if (!i.startsWith("row-")) {
3776
3810
  i = "row-".concat(i);
3777
3811
  }
3778
- Ve.push( (0, t.cloneElement)(e, {
3812
+ Be.push( (0, t.cloneElement)(e, {
3779
3813
  index: n,
3780
3814
  dragId: i
3781
3815
  }));
3782
- Fe.push(i);
3816
+ Ve.push(i);
3783
3817
  }));
3784
3818
  var l = r || a || !!i;
3785
3819
 
@@ -3787,104 +3821,104 @@
3787
3821
  actions: l,
3788
3822
  movableColumns: !!x,
3789
3823
  onRequestMoveRow: k,
3790
- primaryColumnIndex: M,
3791
- rowExpansion: W,
3792
- stripeRows: B
3793
- }, Ve);
3824
+ primaryColumnIndex: z,
3825
+ rowExpansion: N,
3826
+ stripeRows: K
3827
+ }, Be);
3794
3828
  };
3795
- var hn = function e() {
3796
- var n = Ke.current;
3797
- var t = Ze();
3798
- if (!Wo(y) || !He.current || !$e.current || !n) {
3829
+ var bn = function e() {
3830
+ var n = He.current;
3831
+ var t = tn();
3832
+ if (!$o(y) || !Le.current || !Me.current || !n) {
3799
3833
  return false;
3800
3834
  }
3801
- var r = Ho(n).top;
3835
+ var r = Wo(n).top;
3802
3836
  return t.pageYOffset >= r - (v || 0);
3803
3837
  };
3804
- var yn = function e() {
3805
- var n = Ze();
3806
- var t = Ke.current;
3807
- if (!p || !He.current || !t) {
3838
+ var hn = function e() {
3839
+ var n = tn();
3840
+ var t = He.current;
3841
+ if (!p || !Le.current || !t) {
3808
3842
  return false;
3809
3843
  }
3810
- var r = So(t);
3844
+ var r = Co(t);
3811
3845
  return r.bottom > n.innerHeight && r.top < n.innerHeight;
3812
3846
  };
3813
- var gn = function e(n, o) {
3814
- if (hn()) {
3847
+ var yn = function e(n, o) {
3848
+ if (bn()) {
3815
3849
  // FIXME: handle inline
3816
3850
  // Save the current head focus state so that it can be applied to the docked version
3817
3851
  // after the `HeadTable` mounts.
3818
- Ne.current = Ko($e.current);
3819
- if (Y === undefined || ce === undefined || pe === undefined || ye === undefined) {
3852
+ $e.current = Lo(Me.current);
3853
+ if (X === undefined || se === undefined || ve === undefined || he === undefined) {
3820
3854
  return false;
3821
3855
  }
3822
3856
  var i = (0, t.cloneElement)(n);
3823
3857
 
3824
- return r().createElement(po, {
3858
+ return r().createElement(fo, {
3825
3859
  headType: "docked",
3826
3860
  tHead: i,
3827
- cellWidths: Y,
3828
- horizontalOffset: Z,
3829
- tableWidth: ce,
3830
- top: pe,
3831
- width: ye,
3832
- tableStyle: V,
3861
+ cellWidths: X,
3862
+ horizontalOffset: Q,
3863
+ tableWidth: se,
3864
+ top: ve,
3865
+ width: he,
3866
+ tableStyle: B,
3833
3867
  isFixedColumn: o,
3834
- onKeyUp: on,
3835
- elementRef: rn,
3868
+ onKeyUp: rn,
3869
+ elementRef: nn,
3836
3870
  hasDragColumn: !!k,
3837
- hasRowExpansion: W !== "none",
3838
- hasRowSelection: !!A
3871
+ hasRowExpansion: N !== "none",
3872
+ hasRowSelection: !!q
3839
3873
  });
3840
3874
  }
3841
3875
  return false;
3842
3876
  };
3843
- var wn = (0, t.useMemo)((function() {
3877
+ var gn = (0, t.useMemo)((function() {
3844
3878
  var e, n, t;
3845
- if (!Me.current || !$e.current || !He.current) {
3879
+ if (!ze.current || !Me.current || !Le.current) {
3846
3880
  return 0;
3847
3881
  }
3848
- var r = Ze();
3849
- var o = (e = So(He.current).top) !== null && e !== void 0 ? e : 0;
3850
- var i = (n = (t = $e.current) === null || t === void 0 ? void 0 : t.offsetHeight) !== null && n !== void 0 ? n : 0;
3882
+ var r = tn();
3883
+ var o = (e = Co(Le.current).top) !== null && e !== void 0 ? e : 0;
3884
+ var i = (n = (t = Me.current) === null || t === void 0 ? void 0 : t.offsetHeight) !== null && n !== void 0 ? n : 0;
3851
3885
  var a = r.innerHeight - o - i;
3852
- return Math.min(a - Me.current.offsetHeight, 0);
3886
+ return Math.min(a - ze.current.offsetHeight, 0);
3853
3887
  }), []);
3854
- var Cn = (0, t.useMemo)((function() {
3888
+ var wn = (0, t.useMemo)((function() {
3855
3889
  return {
3856
- width: ye,
3857
- marginBottom: wn
3890
+ width: he,
3891
+ marginBottom: gn
3858
3892
  };
3859
- }), [ ye, wn ]);
3860
- var xn = (0, t.useMemo)((function() {
3893
+ }), [ he, gn ]);
3894
+ var Cn = (0, t.useMemo)((function() {
3861
3895
  return {
3862
- width: ce
3896
+ width: se
3863
3897
  };
3864
- }), [ ce ]);
3865
- var Sn = function e() {
3866
- if (!yn()) {
3898
+ }), [ se ]);
3899
+ var xn = function e() {
3900
+ if (!hn()) {
3867
3901
  return false;
3868
3902
  }
3869
3903
 
3870
- return r().createElement(re, {
3871
- style: Cn,
3872
- onScroll: Qe,
3904
+ return r().createElement(te, {
3905
+ style: wn,
3906
+ onScroll: Ge,
3873
3907
  "data-test": "docked-scroll-bar",
3874
- ref: Me
3875
- }, r().createElement(oe, {
3876
- style: xn,
3908
+ ref: ze
3909
+ }, r().createElement(re, {
3910
+ style: Cn,
3877
3911
  "data-test": "docked-scroll-content"
3878
3912
  }));
3879
3913
  };
3880
- var kn = function e() {
3881
- var n = $e.current;
3882
- var t = Ke.current;
3914
+ var Sn = function e() {
3915
+ var n = Me.current;
3916
+ var t = He.current;
3883
3917
  /**
3884
3918
  * there is slightly less space for the table than tableContainer's width,
3885
3919
  * because there is a 1 px border added to every column but the first
3886
3920
  */ if (n) {
3887
- var r = Zt($e.current);
3921
+ var r = Jt(Me.current);
3888
3922
  var o = r === null || r === void 0 ? void 0 : r.length;
3889
3923
  var i = t === null || t === void 0 ? void 0 : t.clientWidth;
3890
3924
  if (i != null) {
@@ -3894,56 +3928,56 @@
3894
3928
  }
3895
3929
  return null;
3896
3930
  };
3931
+ var kn;
3897
3932
  var On;
3898
3933
  var Rn;
3899
- var En;
3900
- var In = !!T;
3934
+ var En = !!I;
3901
3935
  t.Children.toArray(s).forEach((function(e) {
3902
3936
  var n = e.type.splunkUiType;
3903
3937
  if (n === "Table.Head") {
3904
- On = pn(e);
3905
- if (!In) {
3938
+ kn = vn(e);
3939
+ if (!En) {
3906
3940
  // if all the HeadCells are fixed width, then the table is fixed.
3907
- In = !t.Children.toArray(e.props.children).filter(t.isValidElement).some((function(e) {
3941
+ En = !t.Children.toArray(e.props.children).filter(t.isValidElement).some((function(e) {
3908
3942
  return !f()(e.props, "width");
3909
3943
  }));
3910
3944
  }
3911
3945
  } else if (n === "Table.Body") {
3912
- Rn = mn(e);
3946
+ On = mn(e);
3913
3947
  } else if (n === "Table.Caption") {
3914
3948
  // the html spec mandates that a caption must be the first table child.
3915
3949
  // catch the caption here so that it can be placed first later. note: a
3916
3950
  // caption can be placed on the bottom side of a table by adjusting the
3917
3951
  // caption's side prop.
3918
- En = e;
3952
+ Rn = e;
3919
3953
  }
3920
3954
  }));
3921
- ko(On, "A Table.Head is required.");
3922
- var Tn = gn(On, In);
3955
+ xo(kn, "A Table.Head is required.");
3956
+ var In = yn(kn, En);
3923
3957
  // When a `headTable` is used, suppress focus interactions in the primary `Head`. Focus
3924
3958
  // interactions will be handled by the overlaid `headTable` instead.
3925
- var jn = t.Children.toArray(On.props.children).filter(t.isValidElement).map((function(e) {
3959
+ var Tn = t.Children.toArray(kn.props.children).filter(t.isValidElement).map((function(e) {
3926
3960
 
3927
3961
  // TS: onClick is different for regular/dropdown head cells, that's ok
3928
3962
  return (0, t.cloneElement)(e, {
3929
- visible: !Tn
3963
+ visible: !In
3930
3964
  });
3931
3965
  }));
3932
- On = (0, t.cloneElement)(On, {}, jn);
3933
- var Dn = Ce || Ze();
3934
- var qn = Lo(y) ? Ke.current : Dn;
3935
- if ($) {
3936
- In = false;
3966
+ kn = (0, t.cloneElement)(kn, {}, Tn);
3967
+ var jn = we || tn();
3968
+ var Dn = No(y) ? He.current : jn;
3969
+ if (M) {
3970
+ En = false;
3937
3971
  }
3938
- var An = kn();
3939
- var Pn = (0, t.useMemo)((function() {
3972
+ var qn = Sn();
3973
+ var An = (0, t.useMemo)((function() {
3940
3974
  return {
3941
3975
  headType: y,
3942
- resizableFillLayout: $,
3943
- tableContainerWidthWithoutBorders: An
3976
+ resizableFillLayout: M,
3977
+ tableContainerWidthWithoutBorders: qn
3944
3978
  };
3945
- }), [ y, $, An ]);
3946
- var _n = (0, t.useMemo)((function() {
3979
+ }), [ y, M, qn ]);
3980
+ var Pn = (0, t.useMemo)((function() {
3947
3981
  if (!k) {
3948
3982
  return {
3949
3983
  onDragStart: function e() {
@@ -3966,27 +4000,27 @@
3966
4000
  if (t === undefined) {
3967
4001
  return undefined;
3968
4002
  }
3969
- var r = Bo(Fe, t);
3970
- return typeof r === "number" ? (0, q.sprintf)((0, D._)("Picked up sortable row in position %(pos)d of %(total)d."), {
4003
+ var r = Ho(Ve, t);
4004
+ return typeof r === "number" ? (0, D.sprintf)((0, j._)("Picked up sortable row in position %(pos)d of %(total)d."), {
3971
4005
  pos: r,
3972
- total: Fe.length
4006
+ total: Ve.length
3973
4007
  }) : undefined;
3974
4008
  },
3975
4009
  onDragOver: function e(n) {
3976
4010
  var t = n.active, r = n.over;
3977
- if (we.current) {
3978
- we.current = false;
4011
+ if (ge.current) {
4012
+ ge.current = false;
3979
4013
  return undefined;
3980
4014
  }
3981
4015
  if (!t.id || !(r === null || r === void 0 ? void 0 : r.id)) {
3982
4016
  return undefined;
3983
4017
  }
3984
- var o = Bo(Fe, t.id);
3985
- var i = Bo(Fe, r.id);
3986
- return (0, q.sprintf)((0, D._)("Row moved from position %(from)d to position %(to)d of %(total)d."), {
4018
+ var o = Ho(Ve, t.id);
4019
+ var i = Ho(Ve, r.id);
4020
+ return (0, D.sprintf)((0, j._)("Row moved from position %(from)d to position %(to)d of %(total)d."), {
3987
4021
  from: o,
3988
4022
  to: i,
3989
- total: Fe.length
4023
+ total: Ve.length
3990
4024
  });
3991
4025
  },
3992
4026
  onDragEnd: function e(n) {
@@ -3994,10 +4028,10 @@
3994
4028
  if (!(t === null || t === void 0 ? void 0 : t.id)) {
3995
4029
  return undefined;
3996
4030
  }
3997
- var r = Bo(Fe, t.id);
3998
- return typeof r === "number" ? (0, q.sprintf)((0, D._)("Row dropped at position %(pos)d of %(total)d."), {
4031
+ var r = Ho(Ve, t.id);
4032
+ return typeof r === "number" ? (0, D.sprintf)((0, j._)("Row dropped at position %(pos)d of %(total)d."), {
3999
4033
  pos: r,
4000
- total: Fe.length
4034
+ total: Ve.length
4001
4035
  }) : undefined;
4002
4036
  },
4003
4037
  onDragCancel: function e(n) {
@@ -4005,14 +4039,14 @@
4005
4039
  if (t === undefined) {
4006
4040
  return undefined;
4007
4041
  }
4008
- var r = Bo(Fe, t);
4009
- return typeof r === "number" ? (0, q.sprintf)((0, D._)("Row returned to its starting position of %(pos)d."), {
4042
+ var r = Ho(Ve, t);
4043
+ return typeof r === "number" ? (0, D.sprintf)((0, j._)("Row returned to its starting position of %(pos)d."), {
4010
4044
  pos: r
4011
4045
  }) : undefined;
4012
4046
  }
4013
4047
  };
4014
- }), [ Fe, k ]);
4015
- var zn = (0, t.useMemo)((function() {
4048
+ }), [ Ve, k ]);
4049
+ var _n = (0, t.useMemo)((function() {
4016
4050
  if (!x) {
4017
4051
  return {
4018
4052
  onDragStart: function e() {
@@ -4035,28 +4069,28 @@
4035
4069
  if (t === undefined) {
4036
4070
  return undefined;
4037
4071
  }
4038
- var r = Vo(Xe, t);
4039
- return typeof r === "number" ? (0, q.sprintf)((0, D._)("Picked up sortable column in position %(pos)d of %(total)d."), {
4072
+ var r = Ko(Ue, t);
4073
+ return typeof r === "number" ? (0, D.sprintf)((0, j._)("Picked up sortable column in position %(pos)d of %(total)d."), {
4040
4074
  pos: r,
4041
- total: Xe.length
4075
+ total: Ue.length
4042
4076
  }) : undefined;
4043
4077
  },
4044
4078
  onDragOver: function e(n) {
4045
4079
  var t = n.active, r = n.over;
4046
- if (we.current) {
4047
- we.current = false;
4080
+ if (ge.current) {
4081
+ ge.current = false;
4048
4082
  return undefined;
4049
4083
  }
4050
4084
  if (!t.id || !(r === null || r === void 0 ? void 0 : r.id)) {
4051
4085
  return undefined;
4052
4086
  }
4053
- var o = Vo(Xe, t.id);
4054
- var i = Vo(Xe, r.id);
4087
+ var o = Ko(Ue, t.id);
4088
+ var i = Ko(Ue, r.id);
4055
4089
  if (typeof o !== "number" || typeof i !== "number") return undefined;
4056
- return (0, q.sprintf)((0, D._)("Column moved from position %(from)d to position %(to)d of %(total)d."), {
4090
+ return (0, D.sprintf)((0, j._)("Column moved from position %(from)d to position %(to)d of %(total)d."), {
4057
4091
  from: o,
4058
4092
  to: i,
4059
- total: Xe.length
4093
+ total: Ue.length
4060
4094
  });
4061
4095
  },
4062
4096
  onDragEnd: function e(n) {
@@ -4064,10 +4098,10 @@
4064
4098
  if (!(t === null || t === void 0 ? void 0 : t.id)) {
4065
4099
  return undefined;
4066
4100
  }
4067
- var r = Vo(Xe, t.id);
4068
- return typeof r === "number" ? (0, q.sprintf)((0, D._)("Column dropped at position %(pos)d of %(total)d."), {
4101
+ var r = Ko(Ue, t.id);
4102
+ return typeof r === "number" ? (0, D.sprintf)((0, j._)("Column dropped at position %(pos)d of %(total)d."), {
4069
4103
  pos: r,
4070
- total: Xe.length
4104
+ total: Ue.length
4071
4105
  }) : undefined;
4072
4106
  },
4073
4107
  onDragCancel: function e(n) {
@@ -4075,51 +4109,51 @@
4075
4109
  if (t === undefined) {
4076
4110
  return undefined;
4077
4111
  }
4078
- var r = Vo(Xe, t);
4079
- return typeof r === "number" ? (0, q.sprintf)((0, D._)("Column returned to its starting position of %(pos)d."), {
4112
+ var r = Ko(Ue, t);
4113
+ return typeof r === "number" ? (0, D.sprintf)((0, j._)("Column returned to its starting position of %(pos)d."), {
4080
4114
  pos: r
4081
4115
  }) : undefined;
4082
4116
  }
4083
4117
  };
4084
- }), [ Xe, x ]);
4085
- var Mn = (0, t.useMemo)((function() {
4118
+ }), [ Ue, x ]);
4119
+ var zn = (0, t.useMemo)((function() {
4086
4120
  return {
4087
- screenReaderInstructions: k ? Uo : Xo,
4088
- announcements: k ? _n : zn
4121
+ screenReaderInstructions: k ? Vo : Fo,
4122
+ announcements: k ? Pn : _n
4089
4123
  };
4090
- }), [ _n, zn, k ]);
4091
- var $n = (0, t.useCallback)((function(e) {
4124
+ }), [ Pn, _n, k ]);
4125
+ var Mn = (0, t.useCallback)((function(e) {
4092
4126
  var n = e.active.id;
4093
4127
  if (n.startsWith("col-") && x) {
4094
- Re([ u.restrictToHorizontalAxis ]);
4095
- ln(e);
4128
+ Oe([ u.restrictToHorizontalAxis ]);
4129
+ an(e);
4096
4130
  } else if (n.startsWith("row-") && k) {
4097
- Re([ u.restrictToVerticalAxis ]);
4131
+ Oe([ u.restrictToVerticalAxis ]);
4098
4132
  }
4099
- }), [ x, k, ln ]);
4100
- var Nn = (0, t.useCallback)((function(e) {
4101
- Re([]);
4133
+ }), [ x, k, an ]);
4134
+ var $n = (0, t.useCallback)((function(e) {
4135
+ Oe([]);
4102
4136
  var n = e.active.id;
4103
4137
  if (n.startsWith("col-") && x) {
4104
- cn(e);
4138
+ sn(e);
4105
4139
  } else if (n.startsWith("row-") && k) {
4106
- dn(e);
4140
+ cn(e);
4107
4141
  }
4108
- }), [ cn, dn, x, k ]);
4109
- var Wn = (0, t.useCallback)((function(e) {
4142
+ }), [ sn, cn, x, k ]);
4143
+ var Nn = (0, t.useCallback)((function(e) {
4110
4144
  var n = e.active.id;
4111
4145
  if (n.startsWith("col-") && x) {
4112
- sn(e);
4146
+ un(e);
4113
4147
  }
4114
- }), [ sn, x ]);
4115
- var Ln = (0, t.useCallback)((function(e) {
4116
- Re([]);
4148
+ }), [ un, x ]);
4149
+ var Wn = (0, t.useCallback)((function(e) {
4150
+ Oe([]);
4117
4151
  var n = e.active.id;
4118
4152
  if (n.startsWith("row-") && k) {
4119
- fn();
4153
+ dn();
4120
4154
  }
4121
- }), [ fn, k ]);
4122
- var Hn = (0, t.useMemo)((function() {
4155
+ }), [ dn, k ]);
4156
+ var Ln = (0, t.useMemo)((function() {
4123
4157
  return function(e) {
4124
4158
  var n = (0, a.pointerWithin)(e);
4125
4159
  // Collision detection algorithms return an array of collisions
@@ -4130,64 +4164,64 @@
4130
4164
  return (0, a.rectIntersection)(e);
4131
4165
  };
4132
4166
  }), []);
4133
- var Kn = _e ? vn.current[_e] : null;
4134
- var Bn = Kn ? So(Kn).width : undefined;
4135
- var Vn = Ke.current ? So(Ke.current).height : undefined;
4167
+ var Hn = Pe ? fn.current[Pe] : null;
4168
+ var Kn = Hn ? Co(Hn).width : undefined;
4169
+ var Bn = He.current ? Co(He.current).height : undefined;
4136
4170
 
4137
- return r().createElement(ee, Oo({
4171
+ return r().createElement(Z, So({
4138
4172
  "data-test": "table",
4139
- ref: b,
4140
- style: _,
4141
- "data-test-row-selection": A ? K : undefined
4142
- }, g()(F, [].concat(Ro(Object.keys($o)), [ "style" ]))), r().createElement(S(), {
4143
- target: Ze(),
4173
+ ref: m,
4174
+ style: P,
4175
+ "data-test-row-selection": q ? H : undefined
4176
+ }, g()(V, [].concat(ko(Object.keys(zo)), [ "style" ]))), r().createElement(S(), {
4177
+ target: tn(),
4144
4178
  eventType: "scroll",
4145
- listener: en,
4146
- options: Go
4147
- }), r().createElement(Nt.Provider, {
4148
- value: Pn
4149
- }, Tn, r().createElement(ne, {
4150
- onScroll: Je,
4151
- ref: Ke,
4179
+ listener: Je,
4180
+ options: Xo
4181
+ }), r().createElement(Mt.Provider, {
4182
+ value: An
4183
+ }, In, r().createElement(ee, {
4184
+ onScroll: Ye,
4185
+ ref: He,
4152
4186
  style: w,
4153
- $dragging: !!_e
4154
- }, r().createElement(I.ScrollContainerProvider, {
4155
- value: qn
4187
+ $dragging: !!Pe
4188
+ }, r().createElement(E.ScrollContainerProvider, {
4189
+ value: Dn
4156
4190
  }, r().createElement(a.DndContext, {
4157
- accessibility: Mn,
4158
- collisionDetection: Hn,
4159
- modifiers: Oe,
4160
- onDragCancel: Ln,
4161
- onDragEnd: Nn,
4162
- onDragOver: Wn,
4163
- onDragStart: $n,
4164
- sensors: xe
4165
- }, r().createElement(te, {
4166
- ref: He,
4191
+ accessibility: zn,
4192
+ collisionDetection: Ln,
4193
+ modifiers: ke,
4194
+ onDragCancel: Wn,
4195
+ onDragEnd: $n,
4196
+ onDragOver: Nn,
4197
+ onDragStart: Mn,
4198
+ sensors: Ce
4199
+ }, r().createElement(ne, {
4200
+ ref: Le,
4167
4201
  "data-test": "main-table",
4168
- style: V,
4169
- "data-fixed-column": In ? "true" : undefined,
4170
- $resizableFillLayout: $
4171
- }, En, x ? r().createElement(l.SortableContext, {
4172
- items: Xe,
4202
+ style: B,
4203
+ "data-fixed-column": En ? "true" : undefined,
4204
+ $resizableFillLayout: M
4205
+ }, Rn, x ? r().createElement(l.SortableContext, {
4206
+ items: Ue,
4173
4207
  strategy: l.horizontalListSortingStrategy
4174
- }, On) : On, k ? r().createElement(l.SortableContext, {
4175
- items: Fe,
4208
+ }, kn) : kn, k ? r().createElement(l.SortableContext, {
4209
+ items: Ve,
4176
4210
  strategy: l.verticalListSortingStrategy
4177
- }, Rn) : Rn), _e && r().createElement(a.DragOverlay, null, r().createElement(ae, {
4178
- $width: Bn,
4179
- $height: Vn
4180
- })), _e && bn))), Sn()));
4181
- }
4182
- Qo.propTypes = $o;
4183
- Qo.Body = Z;
4184
- Qo.Caption = ve;
4185
- Qo.Cell = ke;
4186
- Qo.Head = nr;
4187
- Qo.HeadCell = Dn;
4188
- Qo.HeadDropdownCell = Sr;
4189
- Qo.Row = Mt;
4190
- /* harmony default export */ const Zo = Qo;
4211
+ }, On) : On), Pe && r().createElement(a.DragOverlay, null, r().createElement(ie, {
4212
+ $width: Kn,
4213
+ $height: Bn
4214
+ })), Pe && pn))), xn()));
4215
+ }
4216
+ Go.propTypes = zo;
4217
+ Go.Body = Q;
4218
+ Go.Caption = fe;
4219
+ Go.Cell = Se;
4220
+ Go.Head = Zt;
4221
+ Go.HeadCell = _n;
4222
+ Go.HeadDropdownCell = Cr;
4223
+ Go.Row = _t;
4224
+ /* harmony default export */ const Jo = Go;
4191
4225
  // CONCATENATED MODULE: ./src/Table/index.ts
4192
4226
  module.exports = n;
4193
4227
  /******/})();