@splunk/react-ui 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/Accordion.js +59 -59
  2. package/Avatar.js +20 -20
  3. package/Breadcrumbs.js +46 -46
  4. package/Button.js +24 -24
  5. package/CHANGELOG.md +21 -2
  6. package/Calendar.js +69 -69
  7. package/Card.js +68 -68
  8. package/Chip.js +16 -16
  9. package/Clickable.js +29 -29
  10. package/Code.js +654 -519
  11. package/CollapsiblePanel.js +112 -112
  12. package/Color.js +107 -107
  13. package/ColumnLayout.js +35 -35
  14. package/ComboBox.js +190 -206
  15. package/ControlGroup.js +128 -120
  16. package/Date.js +148 -146
  17. package/DefinitionList.js +26 -26
  18. package/DualListbox.js +701 -717
  19. package/File.js +403 -403
  20. package/FormRows.js +66 -63
  21. package/Image.js +15 -15
  22. package/JSONTree.js +458 -357
  23. package/Layer.js +60 -72
  24. package/Markdown.js +66 -66
  25. package/Menu.js +44 -44
  26. package/Modal.js +49 -49
  27. package/ModalLayer.js +6 -6
  28. package/Monogram.js +16 -16
  29. package/Multiselect.js +622 -624
  30. package/Number.js +100 -100
  31. package/Paginator.js +7 -7
  32. package/Popover.js +453 -407
  33. package/Progress.js +12 -12
  34. package/Prose.js +6 -6
  35. package/RadioBar.js +180 -166
  36. package/RadioList.js +80 -79
  37. package/ResultsMenu.js +15 -15
  38. package/Scroll.js +50 -50
  39. package/Search.js +148 -164
  40. package/Select.js +668 -670
  41. package/Slider.js +30 -30
  42. package/SlidingPanels.js +24 -24
  43. package/SplitButton.js +50 -50
  44. package/StepBar.js +100 -100
  45. package/Switch.js +45 -45
  46. package/TabBar.js +196 -196
  47. package/TabLayout.js +16 -16
  48. package/Table.js +1207 -1193
  49. package/Text.js +65 -65
  50. package/TextArea.js +108 -93
  51. package/Tooltip.js +203 -197
  52. package/Tree.js +464 -366
  53. package/package.json +6 -6
  54. package/stubs-dependencies.d.ts +0 -70
  55. package/stubs-splunkui.d.ts +4 -0
  56. package/types/src/Code/Code.d.ts +17 -1
  57. package/types/src/Code/LineHighlights.d.ts +11 -0
  58. package/types/src/Code/LineNumbers.d.ts +6 -0
  59. package/types/src/Code/docs/examples/LineHighlights.d.ts +3 -0
  60. package/types/src/Code/docs/examples/LineNumbers.d.ts +3 -0
  61. package/types/src/Code/docs/examples/LineNumbersCustomStart.d.ts +3 -0
  62. package/types/src/Date/Date.d.ts +6 -1
  63. package/types/src/DefinitionList/DefinitionList.d.ts +6 -6
  64. package/types/src/FormRows/FormRows.d.ts +1 -1
  65. package/types/src/JSONTree/JSONTreeItem.d.ts +5 -2
  66. package/types/src/Markdown/Markdown.d.ts +1 -1
  67. package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +1 -1
  68. package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +1 -1
  69. package/types/src/Markdown/renderers/index.d.ts +1 -1
  70. package/types/src/Popover/Popover.d.ts +1 -1
  71. package/types/src/RadioBar/Option.d.ts +1 -1
  72. package/types/src/RadioBar/RadioBar.d.ts +13 -6
  73. package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
  74. package/types/src/RadioList/RadioList.d.ts +2 -1
  75. package/types/src/ScreenReaderContent/docs/examples/SkipLink.d.ts +3 -0
  76. package/types/src/Scroll/Inner.d.ts +1 -1
  77. package/types/src/Select/Option.d.ts +1 -1
  78. package/types/src/Select/Select.d.ts +1 -1
  79. package/types/src/Slider/docs/examples/Controlled.d.ts +1 -1
  80. package/types/src/TabLayout/Panel.d.ts +0 -1
  81. package/types/src/Table/Head.d.ts +1 -0
  82. package/types/src/Table/HeadCell.d.ts +2 -3
  83. package/types/src/Table/HeadDropdownCell.d.ts +2 -2
  84. package/types/src/Table/HeadInner.d.ts +4 -4
  85. package/types/src/Table/KeyboardSensor.d.ts +1 -1
  86. package/types/src/Table/RowDragCell.d.ts +1 -1
  87. package/types/src/Tooltip/Tooltip.d.ts +10 -5
  88. package/types/src/Tree/Item.d.ts +63 -0
  89. package/types/src/Tree/Tree.d.ts +13 -6
  90. package/types/src/Tree/TreeContext.d.ts +1 -1
  91. package/types/src/Tree/index.d.ts +1 -1
  92. package/types/src/useControlled/useControlled.d.ts +3 -1
  93. package/useControlled.js +29 -13
  94. package/types/src/Tree/TreeItem.d.ts +0 -44
package/Popover.js CHANGED
@@ -61,49 +61,49 @@
61
61
  e.r(t);
62
62
  // EXPORTS
63
63
  e.d(t, {
64
- PopoverContext: () => /* reexport */ ue,
65
- PopoverMenuContext: () => /* reexport */ nt,
66
- PopoverProvider: () => /* reexport */ se,
67
- default: () => /* reexport */ rt
64
+ PopoverContext: () => /* reexport */ ve,
65
+ PopoverMenuContext: () => /* reexport */ lt,
66
+ PopoverProvider: () => /* reexport */ he,
67
+ default: () => /* reexport */ it
68
68
  });
69
69
  // CONCATENATED MODULE: external "react"
70
70
  const r = require("react");
71
71
  var n = e.n(r);
72
- // CONCATENATED MODULE: external "prop-types"
73
- const o = require("prop-types");
74
- var a = e.n(o);
75
72
  // CONCATENATED MODULE: external "lodash/clamp"
76
- const i = require("lodash/clamp");
77
- var l = e.n(i);
73
+ const o = require("lodash/clamp");
74
+ var a = e.n(o);
78
75
  // CONCATENATED MODULE: external "lodash/defer"
79
- const c = require("lodash/defer");
80
- var u = e.n(c);
76
+ const i = require("lodash/defer");
77
+ var l = e.n(i);
81
78
  // CONCATENATED MODULE: external "lodash/every"
82
- const f = require("lodash/every");
83
- var s = e.n(f);
79
+ const c = require("lodash/every");
80
+ var u = e.n(c);
84
81
  // CONCATENATED MODULE: external "lodash/has"
85
- const p = require("lodash/has");
86
- var v = e.n(p);
82
+ const f = require("lodash/has");
83
+ var s = e.n(f);
87
84
  // CONCATENATED MODULE: external "lodash/intersection"
88
- const d = require("lodash/intersection");
89
- var h = e.n(d);
85
+ const p = require("lodash/intersection");
86
+ var v = e.n(p);
90
87
  // CONCATENATED MODULE: external "lodash/isFinite"
91
- const m = require("lodash/isFinite");
92
- var b = e.n(m);
88
+ const d = require("lodash/isFinite");
89
+ var h = e.n(d);
93
90
  // CONCATENATED MODULE: external "lodash/isFunction"
94
- const y = require("lodash/isFunction");
95
- var g = e.n(y);
91
+ const m = require("lodash/isFunction");
92
+ var b = e.n(m);
96
93
  // CONCATENATED MODULE: external "lodash/omit"
97
- const w = require("lodash/omit");
98
- var S = e.n(w);
94
+ const g = require("lodash/omit");
95
+ var y = e.n(g);
99
96
  // CONCATENATED MODULE: external "lodash/throttle"
100
- const O = require("lodash/throttle");
101
- var P = e.n(O);
97
+ const w = require("lodash/throttle");
98
+ var S = e.n(w);
99
+ // CONCATENATED MODULE: external "prop-types"
100
+ const P = require("prop-types");
101
+ var O = e.n(P);
102
102
  // CONCATENATED MODULE: external "@splunk/react-ui/Animation"
103
- const j = require("@splunk/react-ui/Animation");
103
+ const C = require("@splunk/react-ui/Animation");
104
104
  // CONCATENATED MODULE: external "@splunk/react-ui/EventListener"
105
- const C = require("@splunk/react-ui/EventListener");
106
- var E = e.n(C);
105
+ const E = require("@splunk/react-ui/EventListener");
106
+ var j = e.n(E);
107
107
  // CONCATENATED MODULE: external "@splunk/react-ui/Layer"
108
108
  const x = require("@splunk/react-ui/Layer");
109
109
  var A = e.n(x);
@@ -206,7 +206,33 @@
206
206
  throw new Error("".concat(a, " is not a valid placement value. Valid options are: 'above', 'below', 'left', or 'right'"));
207
207
  }
208
208
  }
209
- function _(e) {
209
+ var _ = function e(t) {
210
+ var r = t.align, n = t.anchorPos, o = t.outerContainerEl, a = t.padding;
211
+ if (r === "edge") {
212
+ return n.left + o.offsetWidth - a;
213
+ }
214
+ if (r === "end") {
215
+ return n.right + a;
216
+ }
217
+ return n.middle + o.offsetWidth / 2;
218
+ };
219
+ var N = function e(t) {
220
+ var r = t.align, n = t.anchorPos, o = t.outerContainerEl, a = t.padding;
221
+ if (r === "edge") return n.left - a;
222
+ if (r === "end") return n.right - o.offsetWidth + a;
223
+ return n.middle - o.offsetWidth / 2;
224
+ };
225
+ var V = function e(t) {
226
+ var r = t.align, n = t.anchorPos, o = t.outerContainerEl, a = t.padding;
227
+ if (r === "edge") return n.top - a;
228
+ return n.top - o.offsetHeight / 2;
229
+ };
230
+ var z = function e(t) {
231
+ var r = t.align, n = t.anchorPos, o = t.outerContainerEl, a = t.padding;
232
+ if (r === "edge") return n.top + o.offsetHeight - a;
233
+ return n.bottom + o.offsetHeight / 2;
234
+ };
235
+ function K(e) {
210
236
  var t = e.align, r = e.anchorPos, n = e.scrollContainerPos, o = e.canCoverAnchor, a = e.defaultPlacement, i = e.outerContainerEl, l = e.padding, c = e.repositionMode, u = e.windowHeight, f = e.windowWidth;
211
237
  var s = c === "flip";
212
238
  var p = c === "any";
@@ -226,79 +252,99 @@
226
252
  outerContainerEl: i,
227
253
  padding: l,
228
254
  placement: h
229
- }), b = m.top, y = m.left;
230
- var g = "auto";
255
+ }), b = m.top, g = m.left;
256
+ var y = "auto";
231
257
  var w = f;
232
258
  var S = u;
233
- var O = h;
259
+ var P = h;
234
260
  // Boolean convenience variables to simplify positioning logic.
235
- var P = r.top - i.offsetHeight > 0;
236
- var j = r.bottom + i.offsetHeight < u;
237
- var C = r.left - i.offsetWidth > 0;
238
- var E = r.right + i.offsetWidth < f;
261
+ var O = r.top - i.offsetHeight > 0;
262
+ var C = r.bottom + i.offsetHeight < u;
263
+ var E = r.left - i.offsetWidth > 0;
264
+ var j = r.right + i.offsetWidth < f;
239
265
  var x = r.top * .7 > u - r.bottom;
240
- var A = (t === "edge" ? r.left + i.offsetWidth - l : r.middle + i.offsetWidth / 2) > f;
241
- var k = (t === "edge" ? r.left - l : r.middle - i.offsetWidth / 2) < 0;
242
- var T = (t === "edge" ? r.top - l : r.top - i.offsetHeight / 2) < 0;
243
- var R = (t === "edge" ? r.top + i.offsetHeight - l : r.bottom + i.offsetHeight / 2) > u;
266
+ var A = _({
267
+ align: t,
268
+ anchorPos: r,
269
+ outerContainerEl: i,
270
+ padding: l
271
+ }) > f;
272
+ var k = N({
273
+ align: t,
274
+ anchorPos: r,
275
+ outerContainerEl: i,
276
+ padding: l
277
+ }) < 0;
278
+ var T = V({
279
+ align: t,
280
+ anchorPos: r,
281
+ outerContainerEl: i,
282
+ padding: l
283
+ }) < 0;
284
+ var R = z({
285
+ align: t,
286
+ anchorPos: r,
287
+ outerContainerEl: i,
288
+ padding: l
289
+ }) > u;
244
290
  // Handle each of the four placement options individually.
245
- if (O === "above") {
246
- if (!P && v) {
247
- if (j) {
248
- return _(I(I({}, e), {}, {
291
+ if (P === "above") {
292
+ if (!O && v) {
293
+ if (C) {
294
+ return K(I(I({}, e), {}, {
249
295
  placement: "below"
250
296
  }));
251
297
  }
252
- if (p && E) {
253
- return _(I(I({}, e), {}, {
298
+ if (p && j) {
299
+ return K(I(I({}, e), {}, {
254
300
  placement: "right"
255
301
  }));
256
302
  }
257
- if (p && C) {
258
- return _(I(I({}, e), {}, {
303
+ if (p && E) {
304
+ return K(I(I({}, e), {}, {
259
305
  placement: "left"
260
306
  }));
261
307
  }
262
308
  if (o) {
263
- O = "misaligned";
309
+ P = "misaligned";
264
310
  b = 0;
265
311
  }
266
312
  }
267
- if (O !== "misaligned") {
268
- g = u - b - i.offsetHeight;
313
+ if (P !== "misaligned") {
314
+ y = u - b - i.offsetHeight;
269
315
  if (n) {
270
- g = Math.min(g, u - n.top);
316
+ y = Math.min(y, u - n.top);
271
317
  }
272
318
  b = "auto";
273
319
  }
274
320
  if (A) {
275
- y = Math.max(f - i.offsetWidth, 0);
321
+ g = Math.max(f - i.offsetWidth, 0);
276
322
  } else if (k) {
277
- y = 0;
323
+ g = 0;
278
324
  }
279
325
  if (!o) {
280
326
  S = r.top;
281
327
  }
282
328
  }
283
- if (O === "below") {
284
- if (!j && v) {
285
- if (P && x) {
286
- return _(I(I({}, e), {}, {
329
+ if (P === "below") {
330
+ if (!C && v) {
331
+ if (O && x) {
332
+ return K(I(I({}, e), {}, {
287
333
  placement: "above"
288
334
  }));
289
335
  }
290
- if (p && E) {
291
- return _(I(I({}, e), {}, {
336
+ if (p && j) {
337
+ return K(I(I({}, e), {}, {
292
338
  placement: "right"
293
339
  }));
294
340
  }
295
- if (p && C) {
296
- return _(I(I({}, e), {}, {
341
+ if (p && E) {
342
+ return K(I(I({}, e), {}, {
297
343
  placement: "left"
298
344
  }));
299
345
  }
300
346
  if (o) {
301
- O = "misaligned";
347
+ P = "misaligned";
302
348
  b = 0;
303
349
  }
304
350
  }
@@ -306,33 +352,33 @@
306
352
  b = Math.min(b, n.bottom);
307
353
  }
308
354
  if (A) {
309
- y = Math.max(f - i.offsetWidth, 0);
355
+ g = Math.max(f - i.offsetWidth, 0);
310
356
  } else if (k) {
311
- y = 0;
357
+ g = 0;
312
358
  }
313
359
  if (!o) {
314
360
  S = u - r.bottom;
315
361
  }
316
362
  }
317
- if (O === "left") {
318
- if (!C && v) {
319
- if (E) {
320
- return _(I(I({}, e), {}, {
363
+ if (P === "left") {
364
+ if (!E && v) {
365
+ if (j) {
366
+ return K(I(I({}, e), {}, {
321
367
  placement: "right"
322
368
  }));
323
369
  }
324
- if (p && j) {
325
- return _(I(I({}, e), {}, {
370
+ if (p && C) {
371
+ return K(I(I({}, e), {}, {
326
372
  placement: "below"
327
373
  }));
328
374
  }
329
- if (p && P) {
330
- return _(I(I({}, e), {}, {
375
+ if (p && O) {
376
+ return K(I(I({}, e), {}, {
331
377
  placement: "above"
332
378
  }));
333
379
  }
334
380
  if (o) {
335
- O = "misaligned";
381
+ P = "misaligned";
336
382
  b = 0;
337
383
  }
338
384
  }
@@ -345,25 +391,25 @@
345
391
  w = r.left;
346
392
  }
347
393
  }
348
- if (O === "right") {
349
- if (!E && v) {
350
- if (C) {
351
- return _(I(I({}, e), {}, {
394
+ if (P === "right") {
395
+ if (!j && v) {
396
+ if (E) {
397
+ return K(I(I({}, e), {}, {
352
398
  placement: "left"
353
399
  }));
354
400
  }
355
- if (p && j) {
356
- return _(I(I({}, e), {}, {
401
+ if (p && C) {
402
+ return K(I(I({}, e), {}, {
357
403
  placement: "below"
358
404
  }));
359
405
  }
360
- if (p && P) {
361
- return _(I(I({}, e), {}, {
406
+ if (p && O) {
407
+ return K(I(I({}, e), {}, {
362
408
  placement: "above"
363
409
  }));
364
410
  }
365
411
  if (o) {
366
- O = "misaligned";
412
+ P = "misaligned";
367
413
  b = 0;
368
414
  }
369
415
  }
@@ -377,93 +423,93 @@
377
423
  }
378
424
  }
379
425
  return {
380
- placement: O,
426
+ placement: P,
381
427
  maxHeight: S,
382
428
  maxWidth: w,
383
429
  outerContainerStyle: {
384
430
  top: b,
385
- left: y,
386
- bottom: g
431
+ left: g,
432
+ bottom: y
387
433
  }
388
434
  };
389
435
  }
390
436
  // CONCATENATED MODULE: external "@react-spring/web"
391
- const N = require("@react-spring/web");
437
+ const X = require("@react-spring/web");
392
438
  // CONCATENATED MODULE: external "styled-components"
393
- const V = require("styled-components");
394
- var z = e.n(V);
439
+ const B = require("styled-components");
440
+ var Y = e.n(B);
395
441
  // CONCATENATED MODULE: external "@splunk/themes"
396
- const K = require("@splunk/themes");
442
+ const U = require("@splunk/themes");
397
443
  // CONCATENATED MODULE: ./src/Popover/PopoverStyles.ts
398
- var X = 8;
399
- var B = z()(N.animated.div).withConfig({
444
+ var G = 8;
445
+ var J = Y()(X.animated.div).withConfig({
400
446
  displayName: "PopoverStyles__Styled",
401
447
  componentId: "sc-1nahsvw-0"
402
- })([ "position:fixed;z-index:", ";left:-300%;top:-300%;" ], K.variables.zindexPopover);
448
+ })([ "position:fixed;z-index:", ";left:-300%;top:-300%;" ], U.variables.zindexPopover);
403
449
  // These hex codes are the inverted values of variables.backgroundColorPopup which are not exposed as tokens
404
- var Y = (0, V.css)([ "", "" ], (0, K.pick)({
450
+ var Q = (0, B.css)([ "", "" ], (0, U.pick)({
405
451
  light: "#27292e",
406
- dark: K.variables.white
452
+ dark: U.variables.white
407
453
  }));
408
- var U = z().div.withConfig({
454
+ var Z = Y().div.withConfig({
409
455
  displayName: "PopoverStyles__StyledBox",
410
456
  componentId: "sc-1nahsvw-1"
411
- })([ "", ";", ";", ";" ], K.mixins.reset("block"), (function(e) {
457
+ })([ "", ";", ";", ";" ], U.mixins.reset("block"), (function(e) {
412
458
  var t = e.$open;
413
- return !t && (0, V.css)([ "pointer-events:none;" ]);
459
+ return !t && (0, B.css)([ "pointer-events:none;" ]);
414
460
  }), (function(e) {
415
461
  var t = e.$appearance, r = e.$boxPadding;
416
- return t !== "none" && (0, V.css)([ "padding:", "px;" ], r);
462
+ return t !== "none" && (0, B.css)([ "padding:", "px;" ], r);
417
463
  }));
418
- var G = z().div.withConfig({
464
+ var ee = Y().div.withConfig({
419
465
  displayName: "PopoverStyles__StyledContent",
420
466
  componentId: "sc-1nahsvw-2"
421
- })([ "border-radius:", ";background-color:", ";color:", ";", "" ], K.variables.borderRadius, (0,
422
- K.pickVariant)("$appearance", {
423
- normal: K.variables.backgroundColorPopup,
424
- inverted: Y
425
- }), (0, K.pickVariant)("$appearance", {
426
- normal: K.variables.contentColorDefault,
427
- inverted: K.variables.contentColorInverted
428
- }), (0, K.pickVariant)("$appearance", {
429
- normal: (0, V.css)([ "box-shadow:", ";" ], K.variables.overlayShadow)
467
+ })([ "border-radius:", ";background-color:", ";color:", ";", "" ], U.variables.borderRadius, (0,
468
+ U.pickVariant)("$appearance", {
469
+ normal: U.variables.backgroundColorPopup,
470
+ inverted: Q
471
+ }), (0, U.pickVariant)("$appearance", {
472
+ normal: U.variables.contentColorDefault,
473
+ inverted: U.variables.contentColorInverted
474
+ }), (0, U.pickVariant)("$appearance", {
475
+ normal: (0, B.css)([ "box-shadow:", ";" ], U.variables.overlayShadow)
430
476
  }));
431
- var J = z().div.withConfig({
477
+ var te = Y().div.withConfig({
432
478
  displayName: "PopoverStyles__StyledArrow",
433
479
  componentId: "sc-1nahsvw-3"
434
- })([ "width:0;height:0;border-left:", "px solid transparent;border-right:", "px solid transparent;position:absolute;border-bottom-width:", "px;border-bottom-style:solid;", ";" ], X, X, X, (function(e) {
480
+ })([ "width:0;height:0;border-left:", "px solid transparent;border-right:", "px solid transparent;position:absolute;border-bottom-width:", "px;border-bottom-style:solid;", ";" ], G, G, G, (function(e) {
435
481
  var t = e.$appearance;
436
- return t !== "none" && (0, V.css)([ "border-bottom-color:", ";" ], (0, K.pickVariant)("$appearance", {
437
- normal: K.variables.backgroundColorPopup,
438
- inverted: Y
482
+ return t !== "none" && (0, B.css)([ "border-bottom-color:", ";" ], (0, U.pickVariant)("$appearance", {
483
+ normal: U.variables.backgroundColorPopup,
484
+ inverted: Q
439
485
  }));
440
486
  }));
441
- var Q = z().svg.withConfig({
487
+ var re = Y().svg.withConfig({
442
488
  displayName: "PopoverStyles__StyledHitArea",
443
489
  componentId: "sc-1nahsvw-4"
444
490
  })([ "position:fixed;pointer-events:none;path{pointer-events:auto;stroke-width:0;stroke:transparent;fill:transparent;}" ]);
445
491
  // CONCATENATED MODULE: ./src/Popover/PopoverHitArea.tsx
446
- function Z(e, t) {
447
- return oe(e) || ne(e, t) || te(e, t) || ee();
492
+ function ne(e, t) {
493
+ return ce(e) || le(e, t) || ae(e, t) || oe();
448
494
  }
449
- function ee() {
495
+ function oe() {
450
496
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
451
497
  }
452
- function te(e, t) {
498
+ function ae(e, t) {
453
499
  if (e) {
454
- if ("string" == typeof e) return re(e, t);
500
+ if ("string" == typeof e) return ie(e, t);
455
501
  var r = {}.toString.call(e).slice(8, -1);
456
- return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? re(e, t) : void 0;
502
+ return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? ie(e, t) : void 0;
457
503
  }
458
504
  }
459
- function re(e, t) {
505
+ function ie(e, t) {
460
506
  (null == t || t > e.length) && (t = e.length);
461
507
  for (var r = 0, n = Array(t); r < t; r++) {
462
508
  n[r] = e[r];
463
509
  }
464
510
  return n;
465
511
  }
466
- function ne(e, t) {
512
+ function le(e, t) {
467
513
  var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
468
514
  if (null != r) {
469
515
  var n, o, a, i, l = [], c = !0, u = !1;
@@ -485,15 +531,15 @@
485
531
  return l;
486
532
  }
487
533
  }
488
- function oe(e) {
534
+ function ce(e) {
489
535
  if (Array.isArray(e)) return e;
490
536
  }
491
- var ae = {
492
- anchorRect: a().object,
493
- popoverEl: a().object,
494
- popoverPlacement: a().oneOf([ "above", "below", "left", "right", "misaligned" ])
537
+ var ue = {
538
+ anchorRect: O().object,
539
+ popoverEl: O().object,
540
+ popoverPlacement: O().oneOf([ "above", "below", "left", "right", "misaligned" ])
495
541
  };
496
- var ie = function e(t) {
542
+ var fe = function e(t) {
497
543
  var r = t.anchorRect, n = t.popoverEl, o = t.popoverPlacement;
498
544
  if (r != null && n != null && o != null) {
499
545
  var a = n.getBoundingClientRect();
@@ -525,20 +571,20 @@
525
571
  if (o === "left" || o === "right") {
526
572
  var m = r.top - a.top;
527
573
  var b = 0;
528
- var y = r.width;
574
+ var g = r.width;
529
575
  if (o === "right") {
530
576
  b = r.width;
531
- y = 0;
577
+ g = 0;
532
578
  }
533
- var g = "".concat(b, " 0");
579
+ var y = "".concat(b, " 0");
534
580
  var w = "".concat(b, " ").concat(a.height);
535
581
  var S = "".concat(b, " ").concat(m);
536
- var O = "".concat(y, " ").concat(m);
537
- var P = "".concat(b, " ").concat(m + r.height);
538
- var j = "".concat(y, " ").concat(m + r.height);
539
- var C = "\n M ".concat(g, "\n S ").concat(S, " , ").concat(O, "\n L ").concat(S, "\n L ").concat(P, "\n L ").concat(j, "\n S ").concat(P, " , ").concat(w, "\n ");
582
+ var P = "".concat(g, " ").concat(m);
583
+ var O = "".concat(b, " ").concat(m + r.height);
584
+ var C = "".concat(g, " ").concat(m + r.height);
585
+ var E = "\n M ".concat(y, "\n S ").concat(S, " , ").concat(P, "\n L ").concat(S, "\n L ").concat(O, "\n L ").concat(C, "\n S ").concat(O, " , ").concat(w, "\n ");
540
586
  return {
541
- hitAreaPath: C,
587
+ hitAreaPath: E,
542
588
  hitAreaStyle: {
543
589
  left: r.left,
544
590
  top: a.top,
@@ -553,12 +599,12 @@
553
599
  hitAreaStyle: {}
554
600
  };
555
601
  };
556
- var le = n().forwardRef((function(e, t) {
602
+ var se = n().forwardRef((function(e, t) {
557
603
  var o = e.anchorRect, a = e.popoverEl, i = e.popoverPlacement;
558
- var l = (0, r.useState)(null), c = Z(l, 2), u = c[0], f = c[1];
559
- var s = (0, r.useState)({}), p = Z(s, 2), v = p[0], d = p[1];
604
+ var l = (0, r.useState)(null), c = ne(l, 2), u = c[0], f = c[1];
605
+ var s = (0, r.useState)({}), p = ne(s, 2), v = p[0], d = p[1];
560
606
  (0, r.useEffect)((function() {
561
- var e = ie({
607
+ var e = fe({
562
608
  anchorRect: o,
563
609
  popoverEl: a,
564
610
  popoverPlacement: i
@@ -568,7 +614,7 @@
568
614
  }), [ o, a, i ]);
569
615
  if (u != null) {
570
616
 
571
- return n().createElement(Q, {
617
+ return n().createElement(re, {
572
618
  "data-test": "popover-hit-area",
573
619
  style: v
574
620
  }, n().createElement("path", {
@@ -578,17 +624,17 @@
578
624
  }
579
625
  return null;
580
626
  }));
581
- le.propTypes = ae;
582
- /* harmony default export */ const ce = le;
627
+ se.propTypes = ue;
628
+ /* harmony default export */ const pe = se;
583
629
  // CONCATENATED MODULE: ./src/Popover/PopoverProvider.tsx
584
- var ue = (0, r.createContext)({});
585
- var fe = {
586
- children: a().node,
587
- hideArrow: a().bool
630
+ var ve = (0, r.createContext)({});
631
+ var de = {
632
+ children: O().node,
633
+ hideArrow: O().bool
588
634
  };
589
635
  /**
590
636
  * Provides a method for controlling certain `Popover` props in components that use `Popover`.
591
- */ var se = function e(t) {
637
+ */ var he = function e(t) {
592
638
  var o = t.children, a = t.hideArrow;
593
639
  var i = (0, r.useMemo)((function() {
594
640
  return {
@@ -596,14 +642,14 @@
596
642
  };
597
643
  }), [ a ]);
598
644
 
599
- return n().createElement(ue.Provider, {
645
+ return n().createElement(ve.Provider, {
600
646
  value: i
601
647
  }, o);
602
648
  };
603
- se.propTypes = fe;
649
+ he.propTypes = de;
604
650
  // CONCATENATED MODULE: ./src/utils/ssrDocument.ts
605
651
  /* eslint-disable @typescript-eslint/no-empty-function */
606
- var pe = {
652
+ var me = {
607
653
  body: {
608
654
  appendChild: function e() {
609
655
  return [];
@@ -657,16 +703,16 @@
657
703
  search: ""
658
704
  }
659
705
  };
660
- function ve() {
661
- var e = typeof document !== "undefined" ? document : pe;
706
+ function be() {
707
+ var e = typeof document !== "undefined" ? document : me;
662
708
  return e;
663
709
  }
664
- var de = ve();
665
- /* harmony default export */ const he = /* unused pure expression or super */ null && de;
710
+ var ge = be();
711
+ /* harmony default export */ const ye = /* unused pure expression or super */ null && ge;
666
712
  // CONCATENATED MODULE: ./src/utils/ssrWindow.ts
667
713
  /* eslint-disable @typescript-eslint/no-empty-function */
668
- var me = {
669
- document: pe,
714
+ var we = {
715
+ document: me,
670
716
  navigator: {
671
717
  userAgent: ""
672
718
  },
@@ -720,22 +766,22 @@
720
766
  clearTimeout(t);
721
767
  }
722
768
  };
723
- function be() {
724
- var e = typeof window !== "undefined" ? window : me;
769
+ function Se() {
770
+ var e = typeof window !== "undefined" ? window : we;
725
771
  return e;
726
772
  }
727
- var ye = be();
728
- /* harmony default export */ const ge = /* unused pure expression or super */ null && ye;
773
+ var Pe = Se();
774
+ /* harmony default export */ const Oe = /* unused pure expression or super */ null && Pe;
729
775
  // CONCATENATED MODULE: ./src/utils/getBoundingClientRect.ts
730
- function we(e) {
776
+ function Ce(e) {
731
777
  "@babel/helpers - typeof";
732
- return we = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
778
+ return Ce = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
733
779
  return typeof e;
734
780
  } : function(e) {
735
781
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
736
- }, we(e);
782
+ }, Ce(e);
737
783
  }
738
- function Se(e, t) {
784
+ function Ee(e, t) {
739
785
  var r = Object.keys(e);
740
786
  if (Object.getOwnPropertySymbols) {
741
787
  var n = Object.getOwnPropertySymbols(e);
@@ -745,46 +791,46 @@
745
791
  }
746
792
  return r;
747
793
  }
748
- function Oe(e) {
794
+ function je(e) {
749
795
  for (var t = 1; t < arguments.length; t++) {
750
796
  var r = null != arguments[t] ? arguments[t] : {};
751
- t % 2 ? Se(Object(r), !0).forEach((function(t) {
752
- Pe(e, t, r[t]);
753
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Se(Object(r)).forEach((function(t) {
797
+ t % 2 ? Ee(Object(r), !0).forEach((function(t) {
798
+ xe(e, t, r[t]);
799
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ee(Object(r)).forEach((function(t) {
754
800
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
755
801
  }));
756
802
  }
757
803
  return e;
758
804
  }
759
- function Pe(e, t, r) {
760
- return (t = je(t)) in e ? Object.defineProperty(e, t, {
805
+ function xe(e, t, r) {
806
+ return (t = Ae(t)) in e ? Object.defineProperty(e, t, {
761
807
  value: r,
762
808
  enumerable: !0,
763
809
  configurable: !0,
764
810
  writable: !0
765
811
  }) : e[t] = r, e;
766
812
  }
767
- function je(e) {
768
- var t = Ce(e, "string");
769
- return "symbol" == we(t) ? t : t + "";
813
+ function Ae(e) {
814
+ var t = ke(e, "string");
815
+ return "symbol" == Ce(t) ? t : t + "";
770
816
  }
771
- function Ce(e, t) {
772
- if ("object" != we(e) || !e) return e;
817
+ function ke(e, t) {
818
+ if ("object" != Ce(e) || !e) return e;
773
819
  var r = e[Symbol.toPrimitive];
774
820
  if (void 0 !== r) {
775
821
  var n = r.call(e, t || "default");
776
- if ("object" != we(n)) return n;
822
+ if ("object" != Ce(n)) return n;
777
823
  throw new TypeError("@@toPrimitive must return a primitive value.");
778
824
  }
779
825
  return ("string" === t ? String : Number)(e);
780
826
  }
781
827
  // Checks if browser is Safari
782
- function Ee() {
828
+ function Te() {
783
829
  return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
784
830
  }
785
831
  // Formats return value to DOMRect
786
- function xe(e) {
787
- return Oe(Oe({}, e), {}, {
832
+ function Re(e) {
833
+ return je(je({}, e), {}, {
788
834
  top: e.y,
789
835
  left: e.x,
790
836
  right: e.x + e.width,
@@ -798,18 +844,18 @@
798
844
  * @param {boolean} offsets - Use when position of element relative to the layout viewport offsets are needed for Safari.
799
845
  * @returns {Omit<DOMRect, 'toJSON'>}
800
846
  * @public
801
- */ function Ae(e, t) {
847
+ */ function Me(e, t) {
802
848
  var r, n;
803
849
  var o = e.getBoundingClientRect();
804
- var a = Ee();
850
+ var a = Te();
805
851
  if (!t || !a) {
806
852
  return o;
807
853
  }
808
- var i = be();
854
+ var i = Se();
809
855
  var l = o.left + (((r = i.visualViewport) === null || r === void 0 ? void 0 : r.offsetLeft) || 0);
810
856
  var c = o.top + (((n = i.visualViewport) === null || n === void 0 ? void 0 : n.offsetTop) || 0);
811
857
  var u = o.width, f = o.height;
812
- return xe({
858
+ return Re({
813
859
  width: u,
814
860
  height: f,
815
861
  x: l,
@@ -823,7 +869,7 @@
823
869
  * @param ref - The React callback or object ref. Can be `null` or `undefined`.
824
870
  * @param current - The new value of the ref.
825
871
  */
826
- function ke(e, t) {
872
+ function We(e, t) {
827
873
  if (e) {
828
874
  if (typeof e === "function") {
829
875
  e(t);
@@ -836,16 +882,16 @@
836
882
  }
837
883
  }
838
884
  // CONCATENATED MODULE: ./src/Popover/Popover.tsx
839
- function Te(e) {
885
+ function qe(e) {
840
886
  "@babel/helpers - typeof";
841
- return Te = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
887
+ return qe = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
842
888
  return typeof e;
843
889
  } : function(e) {
844
890
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
845
- }, Te(e);
891
+ }, qe(e);
846
892
  }
847
- function Re() {
848
- return Re = Object.assign ? Object.assign.bind() : function(e) {
893
+ function He() {
894
+ return He = Object.assign ? Object.assign.bind() : function(e) {
849
895
  for (var t = 1; t < arguments.length; t++) {
850
896
  var r = arguments[t];
851
897
  for (var n in r) {
@@ -853,9 +899,9 @@
853
899
  }
854
900
  }
855
901
  return e;
856
- }, Re.apply(null, arguments);
902
+ }, He.apply(null, arguments);
857
903
  }
858
- function Me(e, t) {
904
+ function Ie(e, t) {
859
905
  var r = Object.keys(e);
860
906
  if (Object.getOwnPropertySymbols) {
861
907
  var n = Object.getOwnPropertySymbols(e);
@@ -865,60 +911,60 @@
865
911
  }
866
912
  return r;
867
913
  }
868
- function We(e) {
914
+ function Le(e) {
869
915
  for (var t = 1; t < arguments.length; t++) {
870
916
  var r = null != arguments[t] ? arguments[t] : {};
871
- t % 2 ? Me(Object(r), !0).forEach((function(t) {
872
- qe(e, t, r[t]);
873
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Me(Object(r)).forEach((function(t) {
917
+ t % 2 ? Ie(Object(r), !0).forEach((function(t) {
918
+ De(e, t, r[t]);
919
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ie(Object(r)).forEach((function(t) {
874
920
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
875
921
  }));
876
922
  }
877
923
  return e;
878
924
  }
879
- function qe(e, t, r) {
880
- return (t = He(t)) in e ? Object.defineProperty(e, t, {
925
+ function De(e, t, r) {
926
+ return (t = Fe(t)) in e ? Object.defineProperty(e, t, {
881
927
  value: r,
882
928
  enumerable: !0,
883
929
  configurable: !0,
884
930
  writable: !0
885
931
  }) : e[t] = r, e;
886
932
  }
887
- function He(e) {
888
- var t = Ie(e, "string");
889
- return "symbol" == Te(t) ? t : t + "";
933
+ function Fe(e) {
934
+ var t = $e(e, "string");
935
+ return "symbol" == qe(t) ? t : t + "";
890
936
  }
891
- function Ie(e, t) {
892
- if ("object" != Te(e) || !e) return e;
937
+ function $e(e, t) {
938
+ if ("object" != qe(e) || !e) return e;
893
939
  var r = e[Symbol.toPrimitive];
894
940
  if (void 0 !== r) {
895
941
  var n = r.call(e, t || "default");
896
- if ("object" != Te(n)) return n;
942
+ if ("object" != qe(n)) return n;
897
943
  throw new TypeError("@@toPrimitive must return a primitive value.");
898
944
  }
899
945
  return ("string" === t ? String : Number)(e);
900
946
  }
901
- function Le(e, t) {
902
- return Ne(e) || _e(e, t) || Fe(e, t) || De();
947
+ function _e(e, t) {
948
+ return Xe(e) || Ke(e, t) || Ve(e, t) || Ne();
903
949
  }
904
- function De() {
950
+ function Ne() {
905
951
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
906
952
  }
907
- function Fe(e, t) {
953
+ function Ve(e, t) {
908
954
  if (e) {
909
- if ("string" == typeof e) return $e(e, t);
955
+ if ("string" == typeof e) return ze(e, t);
910
956
  var r = {}.toString.call(e).slice(8, -1);
911
- return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? $e(e, t) : void 0;
957
+ return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? ze(e, t) : void 0;
912
958
  }
913
959
  }
914
- function $e(e, t) {
960
+ function ze(e, t) {
915
961
  (null == t || t > e.length) && (t = e.length);
916
962
  for (var r = 0, n = Array(t); r < t; r++) {
917
963
  n[r] = e[r];
918
964
  }
919
965
  return n;
920
966
  }
921
- function _e(e, t) {
967
+ function Ke(e, t) {
922
968
  var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
923
969
  if (null != r) {
924
970
  var n, o, a, i, l = [], c = !0, u = !1;
@@ -940,12 +986,12 @@
940
986
  return l;
941
987
  }
942
988
  }
943
- function Ne(e) {
989
+ function Xe(e) {
944
990
  if (Array.isArray(e)) return e;
945
991
  }
946
- function Ve(e, t) {
992
+ function Be(e, t) {
947
993
  if (null == e) return {};
948
- var r, n, o = ze(e, t);
994
+ var r, n, o = Ye(e, t);
949
995
  if (Object.getOwnPropertySymbols) {
950
996
  var a = Object.getOwnPropertySymbols(e);
951
997
  for (n = 0; n < a.length; n++) {
@@ -954,7 +1000,7 @@
954
1000
  }
955
1001
  return o;
956
1002
  }
957
- function ze(e, t) {
1003
+ function Ye(e, t) {
958
1004
  if (null == e) return {};
959
1005
  var r = {};
960
1006
  for (var n in e) {
@@ -969,78 +1015,78 @@
969
1015
  /** @public */
970
1016
  /** @public */
971
1017
  /** @public */
972
- /** @public */ var Ke = [ "clickAway", "escapeKey", "offScreen", "tabKey" ];
973
- var Xe = {
974
- align: a().oneOf([ "center", "edge", "end" ]),
975
- anchor: a().object,
976
- animation: a().bool,
977
- animationConfig: a().object,
978
- appearance: a().oneOf([ "normal", "inverted", "none" ]),
979
- autoCloseWhenOffScreen: a().bool,
980
- canCoverAnchor: a().bool,
981
- children: a().oneOfType([ a().node, a().func ]),
982
- closeReasons: a().arrayOf(a().oneOf(Ke)),
983
- defaultPlacement: a().oneOf([ "above", "below", "left", "right", "vertical", "horizontal" ]),
984
- elementRef: a().oneOfType([ a().func, a().object ]),
985
- id: a().string,
986
- hideArrow: a().bool,
987
- hitAreaRef: a().oneOfType([ a().func, a().object ]),
988
- onRequestClose: a().func,
989
- open: a().bool,
990
- outerRef: a().oneOfType([ a().func, a().object ]),
991
- pointTo: a().shape({
992
- x: a().number,
993
- y: a().number
1018
+ /** @public */ var Ue = [ "clickAway", "escapeKey", "offScreen", "tabKey" ];
1019
+ var Ge = {
1020
+ align: O().oneOf([ "center", "edge", "end" ]),
1021
+ anchor: O().object,
1022
+ animation: O().bool,
1023
+ animationConfig: O().object,
1024
+ appearance: O().oneOf([ "normal", "inverted", "none" ]),
1025
+ autoCloseWhenOffScreen: O().bool,
1026
+ canCoverAnchor: O().bool,
1027
+ children: O().oneOfType([ O().node, O().func ]),
1028
+ closeReasons: O().arrayOf(O().oneOf(Ue)),
1029
+ defaultPlacement: O().oneOf([ "above", "below", "left", "right", "vertical", "horizontal" ]),
1030
+ elementRef: O().oneOfType([ O().func, O().object ]),
1031
+ id: O().string,
1032
+ hideArrow: O().bool,
1033
+ hitAreaRef: O().oneOfType([ O().func, O().object ]),
1034
+ onRequestClose: O().func,
1035
+ open: O().bool,
1036
+ outerRef: O().oneOfType([ O().func, O().object ]),
1037
+ pointTo: O().shape({
1038
+ x: O().number,
1039
+ y: O().number
994
1040
  }),
995
- repositionMode: a().oneOf([ "none", "flip", "any" ]),
996
- retainFocus: a().bool,
997
- takeFocus: a().bool,
998
- splunkTheme: a().object
1041
+ repositionMode: O().oneOf([ "none", "flip", "any" ]),
1042
+ retainFocus: O().bool,
1043
+ takeFocus: O().bool,
1044
+ splunkTheme: O().object
999
1045
  };
1000
- var Be = {
1046
+ var Je = {
1001
1047
  passive: false,
1002
1048
  capture: true
1003
1049
  };
1004
- function Ye(e, t) {
1050
+ function Qe(e, t) {
1005
1051
  var r = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
1006
- return !!e && !!t && s()(e, (function(e, n) {
1007
- if (b()(e)) {
1052
+ return !!e && !!t && u()(e, (function(e, n) {
1053
+ if (h()(e)) {
1008
1054
  return Math.abs(t[n] - e) <= r;
1009
1055
  }
1010
1056
  return t[n] === e;
1011
1057
  }));
1012
1058
  }
1013
- function Ue(e) {
1014
- var t = e.anchorPos, r = e.borderRadius, n = e.placement, o = e.outerContainerStyle, a = e.outerContainerEl;
1059
+ function Ze(e) {
1060
+ var t = e.anchorPos, r = e.borderRadius, n = e.placement, o = e.outerContainerStyle, i = e.outerContainerEl;
1015
1061
  if (n === "misaligned") {
1016
1062
  return [ {
1017
1063
  display: "none"
1018
1064
  } ];
1019
1065
  }
1020
- var i = {
1066
+ var l = {
1021
1067
  display: "block"
1022
1068
  };
1023
- var c = X * 2;
1069
+ var c = G * 2;
1024
1070
  // bottom edge
1025
- var u = a.offsetHeight / 2 - (X * 2 + r + X / 2);
1071
+ var u = i.offsetHeight / 2 - (G * 2 + r + G / 2);
1026
1072
  // top edge
1027
- var f = -(a.offsetHeight / 2 - (X + r + X / 2));
1028
- var s = t.center - (o.top + a.offsetHeight / 2) - X / 2;
1029
- var p = l()(s, f, u);
1073
+ var f = -(i.offsetHeight / 2 - (G + r + G / 2));
1074
+ var s = t.center - (o.top + i.offsetHeight / 2) - G / 2;
1075
+ var p = a()(s, f, u);
1030
1076
  // right edge
1031
- var v = a.offsetWidth / 2 - (c + X + r);
1077
+ var v = i.offsetWidth / 2 - (c + G + r);
1032
1078
  // left edge
1033
- var d = -(a.offsetWidth / 2 - (X + r));
1034
- var h = t.middle - (o.left + a.offsetWidth / 2) - X;
1035
- var m = l()(h, d, v);
1079
+ var d = -(i.offsetWidth / 2 - (G + r));
1080
+ var h = t.middle - (o.left + i.offsetWidth / 2) - G;
1081
+ var m = a()(h, d, v);
1036
1082
  var b = {
1037
1083
  left: {
1038
- translateX: X / 2,
1084
+ translateX: G / 2,
1039
1085
  translateY: p,
1040
1086
  rotate: 90
1041
1087
  },
1042
1088
  right: {
1043
- translateX: -X / 2,
1089
+ translateX: -G / 2,
1044
1090
  translateY: p,
1045
1091
  rotate: -90
1046
1092
  },
@@ -1055,36 +1101,36 @@
1055
1101
  rotate: 0
1056
1102
  }
1057
1103
  };
1058
- var y = b[n];
1059
- i.transform = "translate(".concat(y.translateX, "px, ").concat(y.translateY, "px) rotate(").concat(y.rotate, "deg)");
1104
+ var g = b[n];
1105
+ l.transform = "translate(".concat(g.translateX, "px, ").concat(g.translateY, "px) rotate(").concat(g.rotate, "deg)");
1060
1106
  // set new positions
1061
- var g = {
1107
+ var y = {
1062
1108
  left: "right",
1063
1109
  right: "left",
1064
1110
  above: "bottom",
1065
1111
  below: "top"
1066
1112
  };
1067
- i[g[n]] = "0";
1113
+ l[y[n]] = "0";
1068
1114
  var w = {
1069
1115
  left: "top",
1070
1116
  right: "top",
1071
1117
  above: "left",
1072
1118
  below: "left"
1073
1119
  };
1074
- i[w[n]] = "50%";
1075
- return [ i, y ];
1120
+ l[w[n]] = "50%";
1121
+ return [ l, g ];
1076
1122
  }
1077
- function Ge(e) {
1123
+ function et(e) {
1078
1124
  var t = e.anchorEl, r = e.offsets, n = r === void 0 ? false : r, o = e.pointTo;
1079
- var a = Ae(t, n);
1125
+ var a = Me(t, n);
1080
1126
  var i = {
1081
1127
  // these are rounded to avoid causing visual regressions
1082
1128
  // they were previously clientWidth and clientHeight which were already rounded
1083
1129
  width: Math.round(a.width),
1084
1130
  height: Math.round(a.height)
1085
1131
  };
1086
- var l = o && v()(o, "x");
1087
- var c = o && v()(o, "y");
1132
+ var l = o && s()(o, "x");
1133
+ var c = o && s()(o, "y");
1088
1134
  i.left = l ? a.left + ((o === null || o === void 0 ? void 0 : o.x) || 0) : a.left;
1089
1135
  i.top = c ? a.top + ((o === null || o === void 0 ? void 0 : o.y) || 0) : a.top;
1090
1136
  i.right = l ? i.left + i.width : a.left + i.width || a.right;
@@ -1097,11 +1143,11 @@
1097
1143
  i.center = c ? i.top : a.top + (i.bottom - a.top) / 2;
1098
1144
  return i;
1099
1145
  }
1100
- function Je(e) {
1146
+ function tt(e) {
1101
1147
  return e !== window && e !== window.document;
1102
1148
  }
1103
- function Qe(e, t) {
1104
- var r = be();
1149
+ function rt(e, t) {
1150
+ var r = Se();
1105
1151
  if (e.top < 0 || e.top > r.innerHeight || e.left < 0 || e.left > r.innerWidth) {
1106
1152
  return true;
1107
1153
  }
@@ -1112,24 +1158,24 @@
1112
1158
  }
1113
1159
  return false;
1114
1160
  }
1115
- function Ze(e, t) {
1161
+ function nt(e, t) {
1116
1162
  // this accomodates the arrow height
1117
1163
  // and provides some spacing between the end of the Popover and the edge of the window
1118
- var r = X * 2;
1119
- return t !== "none" && e != null && b()(e) ? e - r : e || null;
1164
+ var r = G * 2;
1165
+ return t !== "none" && e != null && h()(e) ? e - r : e || null;
1120
1166
  }
1121
- var et = {};
1167
+ var ot = {};
1122
1168
  /**
1123
1169
  * `Popover` is used to create layovers such as dropdowns, contextual menus, or tooltips. Use
1124
1170
  * this only when the other components don't provide sufficient functionality or control. A controlled
1125
1171
  * `Dropdown` covers use cases where you might consider using `Popover` directly.
1126
- */ function tt(e) {
1172
+ */ function at(e) {
1127
1173
  var t, o;
1128
- var a = e.align, i = a === void 0 ? "center" : a, l = e.anchor, c = e.animation, f = c === void 0 ? true : c, s = e.animationConfig, p = s === void 0 ? et : s, v = e.appearance, d = v === void 0 ? "normal" : v, m = e.autoCloseWhenOffScreen, b = m === void 0 ? true : m, y = e.canCoverAnchor, w = e.children, O = e.closeReasons, C = O === void 0 ? Ke : O, x = e.defaultPlacement, k = x === void 0 ? "below" : x, R = e.elementRef, q = e.hideArrow, H = e.hitAreaRef, I = e.id, L = e.onRequestClose, D = e.open, F = e.outerRef, $ = e.pointTo, N = e.repositionMode, V = N === void 0 ? "flip" : N, z = e.retainFocus, K = z === void 0 ? true : z, Y = e.takeFocus, Q = e.toggleId, Z = Ve(e, [ "align", "anchor", "animation", "animationConfig", "appearance", "autoCloseWhenOffScreen", "canCoverAnchor", "children", "closeReasons", "defaultPlacement", "elementRef", "hideArrow", "hitAreaRef", "id", "onRequestClose", "open", "outerRef", "pointTo", "repositionMode", "retainFocus", "takeFocus", "toggleId" ]);
1174
+ var a = e.align, i = a === void 0 ? "center" : a, c = e.anchor, u = e.animation, f = u === void 0 ? true : u, s = e.animationConfig, p = s === void 0 ? ot : s, d = e.appearance, h = d === void 0 ? "normal" : d, m = e.autoCloseWhenOffScreen, g = m === void 0 ? true : m, w = e.canCoverAnchor, P = e.children, O = e.closeReasons, E = O === void 0 ? Ue : O, x = e.defaultPlacement, k = x === void 0 ? "below" : x, R = e.elementRef, q = e.hideArrow, H = e.hitAreaRef, I = e.id, L = e.onRequestClose, D = e.open, F = e.outerRef, $ = e.pointTo, _ = e.repositionMode, N = _ === void 0 ? "flip" : _, V = e.retainFocus, z = V === void 0 ? true : V, X = e.takeFocus, B = e.toggleId, Y = Be(e, [ "align", "anchor", "animation", "animationConfig", "appearance", "autoCloseWhenOffScreen", "canCoverAnchor", "children", "closeReasons", "defaultPlacement", "elementRef", "hideArrow", "hitAreaRef", "id", "onRequestClose", "open", "outerRef", "pointTo", "repositionMode", "retainFocus", "takeFocus", "toggleId" ]);
1129
1175
  // @docs-props-type PopoverPropsBase
1130
1176
  if (false) {}
1131
- var ee = (0, r.useState)(D), te = Le(ee, 2), re = te[0], ne = te[1];
1132
- var oe = (0, r.useState)(false), ae = Le(oe, 2), ie = ae[0], le = ae[1];
1177
+ var U = (0, r.useState)(D), Q = _e(U, 2), re = Q[0], ne = Q[1];
1178
+ var oe = (0, r.useState)(false), ae = _e(oe, 2), ie = ae[0], le = ae[1];
1133
1179
  if (D !== ie) {
1134
1180
  // formerly implemented by componentWillReceiveProps
1135
1181
  // we can't use prevOpen here since that's a ref behind the scenes
@@ -1141,113 +1187,113 @@
1141
1187
  }
1142
1188
  // this is a single state object because all these properties
1143
1189
  // are updated at the same time by setPlacement
1144
- var fe = (0, r.useState)({}), se = Le(fe, 2), pe = se[0], ve = se[1];
1190
+ var ce = (0, r.useState)({}), ue = _e(ce, 2), fe = ue[0], se = ue[1];
1145
1191
  var de = (0, r.useRef)(true);
1146
1192
  var he = (0, r.useRef)(false);
1147
1193
  var me = (0, r.useRef)(null);
1148
- var ye = (0, r.useRef)(null);
1194
+ var be = (0, r.useRef)(null);
1149
1195
  var ge = (0, r.useRef)(null);
1150
- var we = {
1151
- anchorHeight: ((t = pe.anchorPos) === null || t === void 0 ? void 0 : t.height) || null,
1152
- anchorWidth: ((o = pe.anchorPos) === null || o === void 0 ? void 0 : o.width) || null,
1153
- placement: pe.placement || null,
1154
- maxHeight: Ze(pe.maxHeight, d),
1155
- maxWidth: Ze(pe.maxWidth, d),
1156
- toggleId: Q
1196
+ var ye = {
1197
+ anchorHeight: ((t = fe.anchorPos) === null || t === void 0 ? void 0 : t.height) || null,
1198
+ anchorWidth: ((o = fe.anchorPos) === null || o === void 0 ? void 0 : o.width) || null,
1199
+ placement: fe.placement || null,
1200
+ maxHeight: nt(fe.maxHeight, h),
1201
+ maxWidth: nt(fe.maxWidth, h),
1202
+ toggleId: B
1157
1203
  };
1158
- var Se = (0, r.useMemo)((function() {
1204
+ var we = (0, r.useMemo)((function() {
1159
1205
  return f ? {
1160
1206
  opacity: D ? 1 : 0
1161
1207
  } : {
1162
1208
  opacity: 1
1163
1209
  };
1164
1210
  }), [ f, D ]);
1165
- var Oe = be();
1166
- var Pe = D || re;
1167
- var je = (0, r.useContext)(T()) || Oe;
1168
- var Ce = je !== Oe;
1169
- var Ee = (0, r.useContext)(ue), xe = Ee.hideArrow;
1211
+ var Pe = Se();
1212
+ var Oe = D || re;
1213
+ var Ce = (0, r.useContext)(T()) || Pe;
1214
+ var Ee = Ce !== Pe;
1215
+ var je = (0, r.useContext)(ve), xe = je.hideArrow;
1170
1216
  var Ae = q !== null && q !== void 0 ? q : xe;
1171
1217
  (0, r.useEffect)((function() {
1172
1218
  if (false) {}
1173
- }), [ l ]);
1174
- var Te = (0, r.useCallback)((function(e) {
1175
- if (D && (C === null || C === void 0 ? void 0 : C.includes(e.reason))) {
1219
+ }), [ c ]);
1220
+ var ke = (0, r.useCallback)((function(e) {
1221
+ if (D && (E === null || E === void 0 ? void 0 : E.includes(e.reason))) {
1176
1222
  L === null || L === void 0 ? void 0 : L(e);
1177
1223
  }
1178
- }), [ C, D, L ]);
1179
- var Me = (0, r.useCallback)((function(e, t) {
1180
- var r = Qe(e, t);
1224
+ }), [ E, D, L ]);
1225
+ var Te = (0, r.useCallback)((function(e, t) {
1226
+ var r = rt(e, t);
1181
1227
  if (r) {
1182
- Te({
1228
+ ke({
1183
1229
  reason: "offScreen"
1184
1230
  });
1185
1231
  }
1186
1232
  return r;
1187
- }), [ Te ]);
1188
- var qe = M()(), He = qe.borderRadius, Ie = qe.spacingXSmall;
1189
- var De = parseInt(He, 10);
1190
- var Fe = parseInt(Ie, 10);
1233
+ }), [ ke ]);
1234
+ var Re = M()(), Me = Re.borderRadius, qe = Re.spacingXSmall;
1235
+ var Ie = parseInt(Me, 10);
1236
+ var De = parseInt(qe, 10);
1191
1237
  // this is intentionally smaller when the arrow is hidden to address SUI-5452
1192
- var $e = Ae ? Fe : X;
1238
+ var Fe = Ae ? De : G;
1193
1239
  // do not call this directly - use setPlacement (the throttled version) instead
1194
- var _e = (0, r.useCallback)((function(e) {
1195
- ve((function(t) {
1240
+ var $e = (0, r.useCallback)((function(e) {
1241
+ se((function(t) {
1196
1242
  var r, n;
1197
1243
  // If these conditions are not met, we cannot set the popover.
1198
- if (!D || !ge.current || !l) {
1244
+ if (!D || !ge.current || !c) {
1199
1245
  // if (__DEV__ && !anchor && open) {
1200
1246
  // throw new Error(`Invalid anchor ${anchor} provided to Popover.`);
1201
1247
  // }
1202
1248
  return t;
1203
1249
  }
1204
- var o = Ge({
1205
- anchorEl: l,
1250
+ var o = et({
1251
+ anchorEl: c,
1206
1252
  pointTo: $
1207
1253
  });
1208
- var a = Ge({
1209
- anchorEl: l,
1254
+ var a = et({
1255
+ anchorEl: c,
1210
1256
  offsets: true,
1211
1257
  pointTo: $
1212
1258
  });
1213
- var c = Je(je) ? Ge({
1214
- anchorEl: je,
1259
+ var l = tt(Ce) ? et({
1260
+ anchorEl: Ce,
1215
1261
  pointTo: $
1216
1262
  }) : undefined;
1217
- if (e && b) {
1218
- if (Me(o, c)) {
1263
+ if (e && g) {
1264
+ if (Te(o, l)) {
1219
1265
  return t;
1220
1266
  }
1221
1267
  }
1222
- var u = _({
1268
+ var u = K({
1223
1269
  align: i,
1224
1270
  anchorPos: a,
1225
- scrollContainerPos: c,
1226
- canCoverAnchor: y,
1271
+ scrollContainerPos: l,
1272
+ canCoverAnchor: w,
1227
1273
  defaultPlacement: k,
1228
- repositionMode: V,
1274
+ repositionMode: N,
1229
1275
  outerContainerEl: ge.current,
1230
- padding: $e,
1231
- windowWidth: Oe.innerWidth,
1232
- windowHeight: Oe.innerHeight
1276
+ padding: Fe,
1277
+ windowWidth: Pe.innerWidth,
1278
+ windowHeight: Pe.innerHeight
1233
1279
  }), f = u.placement, s = u.outerContainerStyle, p = u.maxHeight, v = u.maxWidth;
1234
- var d = Ye(a, t.anchorPos) && Ye(s, t.outerContainerStyle) && f === t.placement && p === t.maxHeight && v === t.maxWidth;
1280
+ var d = Qe(a, t.anchorPos) && Qe(s, t.outerContainerStyle) && f === t.placement && p === t.maxHeight && v === t.maxWidth;
1235
1281
  var h = true;
1236
1282
  var m = {};
1237
- var g;
1283
+ var b;
1238
1284
  if (me.current) {
1239
- var w = Ue({
1285
+ var S = Ze({
1240
1286
  anchorPos: a,
1241
- borderRadius: De,
1287
+ borderRadius: Ie,
1242
1288
  outerContainerStyle: s,
1243
1289
  placement: f,
1244
1290
  outerContainerEl: ge.current
1245
1291
  });
1246
- var O = Le(w, 2);
1247
- m = O[0];
1248
- g = O[1];
1292
+ var P = _e(S, 2);
1293
+ m = P[0];
1294
+ b = P[1];
1249
1295
  }
1250
- h = Ye(S()(m, "transform"), S()(t.arrowStyle, "transform")) && Ye((r = g) !== null && r !== void 0 ? r : {}, (n = t.arrowStyleTransformMeta) !== null && n !== void 0 ? n : {});
1296
+ h = Qe(y()(m, "transform"), y()(t.arrowStyle, "transform")) && Qe((r = b) !== null && r !== void 0 ? r : {}, (n = t.arrowStyleTransformMeta) !== null && n !== void 0 ? n : {});
1251
1297
  // If none of the position data has changed, do not set state.
1252
1298
  if (d && h) {
1253
1299
  return t;
@@ -1255,50 +1301,50 @@
1255
1301
  return {
1256
1302
  anchorPos: a,
1257
1303
  arrowStyle: m,
1258
- arrowStyleTransformMeta: g,
1304
+ arrowStyleTransformMeta: b,
1259
1305
  outerContainerStyle: s,
1260
1306
  placement: f,
1261
1307
  maxHeight: p,
1262
1308
  maxWidth: v
1263
1309
  };
1264
1310
  }));
1265
- }), [ i, l, b, De, $e, y, Me, k, D, $, V, je, Oe.innerHeight, Oe.innerWidth ]);
1311
+ }), [ i, c, g, Ie, Fe, w, Te, k, D, $, N, Ce, Pe.innerHeight, Pe.innerWidth ]);
1266
1312
  // these are useMemo rather than useCallback so that ESLint can correctly analyze the dependencies
1267
1313
  // see https://github.com/facebook/react/issues/19240#issuecomment-652945246
1268
1314
  var Ne = (0, r.useMemo)((function() {
1269
- return P()(_e.bind(null, true), 0);
1270
- }), [ _e ]);
1315
+ return S()($e.bind(null, true), 0);
1316
+ }), [ $e ]);
1317
+ var Ve = (0, r.useMemo)((function() {
1318
+ return S()($e.bind(null, true), 0);
1319
+ }), [ $e ]);
1271
1320
  var ze = (0, r.useMemo)((function() {
1272
- return P()(_e.bind(null, true), 0);
1273
- }), [ _e ]);
1274
- var Xe = (0, r.useMemo)((function() {
1275
- return P()(_e, 0, {
1321
+ return S()($e, 0, {
1276
1322
  leading: false
1277
1323
  });
1278
- }), [ _e ]);
1324
+ }), [ $e ]);
1279
1325
  // this needs to run on every render - equivalent to componentDidUpdate
1280
1326
  (0, r.useEffect)((function() {
1281
- if (!ye.current) {
1327
+ if (!be.current) {
1282
1328
  return;
1283
1329
  }
1284
1330
  if (D || re) {
1285
- Xe();
1331
+ ze();
1286
1332
  }
1287
1333
  }));
1288
1334
  (0, r.useEffect)((function() {
1289
- if (Y && D && ye.current && pe.placement != null && !he.current) {
1335
+ if (X && D && be.current && fe.placement != null && !he.current) {
1290
1336
  he.current = true;
1291
- (0, W.takeFocus)(ye.current);
1337
+ (0, W.takeFocus)(be.current);
1292
1338
  }
1293
- }), [ D, pe.placement, Y ]);
1339
+ }), [ D, fe.placement, X ]);
1294
1340
  (0, r.useEffect)((function() {
1295
1341
  // we need to set this to true on every mount because React.StrictMode will call the effect twice
1296
1342
  // and we need to ensure that allowAnimationUpdates is true while the component is mounted
1297
1343
  de.current = true;
1298
1344
  return function() {
1299
- Xe.cancel();
1300
- Ne.cancel();
1301
1345
  ze.cancel();
1346
+ Ne.cancel();
1347
+ Ve.cancel();
1302
1348
  de.current = false;
1303
1349
  };
1304
1350
  // no dependencies here since this is equivalent to componentDidMount and componentWillUnmount
@@ -1306,51 +1352,51 @@
1306
1352
  }), []);
1307
1353
  // EventListeners only need to be rendered when open,
1308
1354
  // otherwise leads to negative performance impacts
1309
- var tt = Pe ? n().createElement(n().Fragment, null, Ce && n().createElement(E(), {
1310
- target: je,
1355
+ var Ke = Oe ? n().createElement(n().Fragment, null, Ee && n().createElement(j(), {
1356
+ target: Ce,
1311
1357
  eventType: "scroll",
1312
1358
  listener: Ne,
1313
- options: Be,
1359
+ options: Je,
1314
1360
  key: "eventListener"
1315
- }), n().createElement(E(), {
1316
- target: Oe,
1361
+ }), n().createElement(j(), {
1362
+ target: Pe,
1317
1363
  eventType: "resize",
1318
- listener: Xe,
1364
+ listener: ze,
1319
1365
  key: "eventListenerOnWindowResize"
1320
- }), n().createElement(E(), {
1321
- target: Oe,
1366
+ }), n().createElement(j(), {
1367
+ target: Pe,
1322
1368
  eventType: "scroll",
1323
- listener: ze,
1324
- options: Be,
1369
+ listener: Ve,
1370
+ options: Je,
1325
1371
  key: "eventListenerOnWindowScroll"
1326
1372
  })) : null;
1327
- var rt = (0, r.useCallback)((function() {
1373
+ var Xe = (0, r.useCallback)((function() {
1328
1374
  // checking allowAnimationUpdates avoids trying to update state after the component has been unmounted - see SUI-3666
1329
1375
  if (de.current) {
1330
1376
  ne(false);
1331
1377
  }
1332
1378
  }), []);
1333
- var nt = (0, r.useCallback)((function(e) {
1334
- ye.current = e;
1335
- if (e && Y) {
1336
- u()(W.takeFocus, e);
1379
+ var Ye = (0, r.useCallback)((function(e) {
1380
+ be.current = e;
1381
+ if (e && X) {
1382
+ l()(W.takeFocus, e);
1337
1383
  }
1338
- ke(R, e);
1339
- }), [ R, Y ]);
1340
- var ot = (0, r.useCallback)((function(e) {
1384
+ We(R, e);
1385
+ }), [ R, X ]);
1386
+ var Ge = (0, r.useCallback)((function(e) {
1341
1387
  ge.current = e;
1342
- ke(F, e);
1388
+ We(F, e);
1343
1389
  }), [ F ]);
1344
1390
  var at = (0, r.useCallback)((function(e) {
1345
- if (ye.current) {
1346
- if (K) {
1347
- (0, W.handleTab)(ye.current, e);
1391
+ if (be.current) {
1392
+ if (z) {
1393
+ (0, W.handleTab)(be.current, e);
1348
1394
  } else if ((0, W.isTabKey)(e)) {
1349
- var t = (0, W.getSortedTabbableElements)(ye.current);
1395
+ var t = (0, W.getSortedTabbableElements)(be.current);
1350
1396
  if (t.length > 0) {
1351
1397
  var r = e.shiftKey ? t[0] : t[t.length - 1];
1352
1398
  if (r === e.target) {
1353
- Te({
1399
+ ke({
1354
1400
  event: e,
1355
1401
  reason: "tabKey"
1356
1402
  });
@@ -1358,73 +1404,73 @@
1358
1404
  }
1359
1405
  }
1360
1406
  }
1361
- }), [ Te, K ]);
1407
+ }), [ ke, z ]);
1362
1408
  var it = (0, r.useMemo)((function() {
1363
1409
  return {
1364
1410
  opacity: f ? 0 : 1
1365
1411
  };
1366
1412
  }), [ f ]);
1367
1413
  var lt = (0, r.useMemo)((function() {
1368
- return We({
1414
+ return Le({
1369
1415
  tension: 300,
1370
1416
  friction: 20,
1371
1417
  clamp: true
1372
1418
  }, p);
1373
1419
  }), [ p ]);
1374
- var ct = (0, j.useAnimation)({
1420
+ var ct = (0, C.useAnimation)({
1375
1421
  from: it,
1376
- to: Se,
1422
+ to: we,
1377
1423
  // Setting clamp to true will stop animating at the point it hit's it's goal value.
1378
1424
  // This will prevent click through while animating out (SUI-6618).
1379
1425
  config: lt,
1380
- onRest: rt
1426
+ onRest: Xe
1381
1427
  });
1382
1428
  var ut = (0, r.useMemo)((function() {
1383
- return We(We({}, pe.outerContainerStyle), ct);
1384
- }), [ pe.outerContainerStyle, ct ]);
1429
+ return Le(Le({}, fe.outerContainerStyle), ct);
1430
+ }), [ fe.outerContainerStyle, ct ]);
1385
1431
  var ft = (0, r.useMemo)((function() {
1386
- return h()(C === null || C === void 0 ? void 0 : C.filter((function(e) {
1432
+ return v()(E === null || E === void 0 ? void 0 : E.filter((function(e) {
1387
1433
  return e !== "offScreen";
1388
1434
  })), A().possibleCloseReasons);
1389
- }), [ C ]);
1390
- var st = g()(w) ? w(we) : w;
1435
+ }), [ E ]);
1436
+ var st = b()(P) ? P(ye) : P;
1391
1437
 
1392
- return n().createElement(n().Fragment, null, tt, n().createElement(A(), {
1438
+ return n().createElement(n().Fragment, null, Ke, n().createElement(A(), {
1393
1439
  closeReasons: ft,
1394
- open: Pe,
1395
- onRequestClose: Te,
1440
+ open: Oe,
1441
+ onRequestClose: ke,
1396
1442
  key: "Layer"
1397
- }, Pe && ye.current && H && n().createElement(ce, {
1398
- anchorRect: pe.anchorPos,
1399
- popoverEl: ye.current,
1400
- popoverPlacement: pe.placement,
1443
+ }, Oe && be.current && H && n().createElement(pe, {
1444
+ anchorRect: fe.anchorPos,
1445
+ popoverEl: be.current,
1446
+ popoverPlacement: fe.placement,
1401
1447
  ref: H
1402
- }), Pe && n().createElement(B, {
1448
+ }), Oe && n().createElement(J, {
1403
1449
  "data-test": "outer-popover",
1404
1450
  style: ut,
1405
- ref: ot
1406
- }, n().createElement(U, Re({
1407
- $appearance: d,
1408
- $boxPadding: $e,
1451
+ ref: Ge
1452
+ }, n().createElement(Z, He({
1453
+ $appearance: h,
1454
+ $boxPadding: Fe,
1409
1455
  $open: D,
1410
1456
  "data-test": "popover",
1411
- ref: nt,
1457
+ ref: Ye,
1412
1458
  id: I,
1413
1459
  onKeyDown: at
1414
- }, Z), n().createElement(n().Fragment, null, d === "none" && st, d !== "none" && !Ae && n().createElement(J, {
1460
+ }, Y), n().createElement(n().Fragment, null, h === "none" && st, h !== "none" && !Ae && n().createElement(te, {
1415
1461
  "data-test": "popover-arrow",
1416
- $appearance: d,
1462
+ $appearance: h,
1417
1463
  ref: me,
1418
- style: pe.arrowStyle
1419
- }), d !== "none" && n().createElement(G, {
1420
- $appearance: d
1464
+ style: fe.arrowStyle
1465
+ }), h !== "none" && n().createElement(ee, {
1466
+ $appearance: h
1421
1467
  }, st))))));
1422
1468
  }
1423
- tt.propTypes = Xe;
1424
- tt.possibleCloseReasons = Ke;
1425
- /* harmony default export */ const rt = tt;
1469
+ at.propTypes = Ge;
1470
+ at.possibleCloseReasons = Ue;
1471
+ /* harmony default export */ const it = at;
1426
1472
  // CONCATENATED MODULE: ./src/Popover/PopoverMenuContext.tsx
1427
- var nt = (0, r.createContext)({});
1473
+ var lt = (0, r.createContext)({});
1428
1474
  // CONCATENATED MODULE: ./src/Popover/index.ts
1429
1475
  module.exports = t;
1430
1476
  /******/})();