@splunk/react-ui 4.42.0 → 4.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ButtonGroup.js +10 -11
- package/ButtonSimple.js +209 -209
- package/CHANGELOG.md +41 -0
- package/Clickable.js +1 -1
- package/Code.js +611 -426
- package/ComboBox.js +25 -32
- package/Date.js +42 -27
- package/Dropdown.js +1 -1
- package/DualListbox.js +1 -1
- package/JSONTree.js +30 -24
- package/MIGRATION.mdx +70 -54
- package/Menu.js +13 -9
- package/Multiselect.js +1 -1
- package/Number.js +345 -317
- package/Paginator.js +269 -251
- package/Popover.js +412 -345
- package/RadioList.js +44 -43
- package/ResultsMenu.d.ts +2 -0
- package/Search.js +56 -65
- package/Select.js +1 -1
- package/Slider.js +17 -13
- package/StaticContent.js +15 -13
- package/TabBar.js +4 -0
- package/Table.js +162 -153
- package/TransitionOpen.js +16 -14
- package/Tree.d.ts +2 -0
- package/Tree.js +20 -14
- package/package.json +6 -6
- package/types/src/Button/Button.d.ts +1 -0
- package/types/src/Code/Code.d.ts +1 -1
- package/types/src/ComboBox/ComboBox.d.ts +6 -3
- package/types/src/Date/Date.d.ts +3 -3
- package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +2 -0
- package/types/src/Multiselect/Multiselect.d.ts +2 -0
- package/types/src/Number/Number.d.ts +4 -10
- package/types/src/Number/utils.d.ts +29 -0
- package/types/src/Paginator/Paginator.d.ts +15 -2
- package/types/src/Paginator/docs/examples/CustomPages.d.ts +2 -0
- package/types/src/Popover/Popover.d.ts +17 -8
- package/types/src/Popover/PopoverMenuContext.d.ts +6 -0
- package/types/src/Popover/PopoverProvider.d.ts +23 -0
- package/types/src/Popover/index.d.ts +2 -1
- package/types/src/RadioList/RadioList.d.ts +1 -1
- package/types/src/Select/SelectBase.d.ts +1 -1
- package/types/src/Select/docs/examples/Appearance.d.ts +1 -11
- package/types/src/Select/docs/examples/Basic.d.ts +1 -9
- package/types/src/Select/docs/examples/Children.d.ts +1 -9
- package/types/src/Select/docs/examples/Descriptions.d.ts +1 -9
- package/types/src/Select/docs/examples/Fetching.d.ts +1 -22
- package/types/src/Select/docs/examples/Filter.d.ts +1 -9
- package/types/src/Select/docs/examples/Headings.d.ts +1 -9
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +1 -24
- package/types/src/Select/docs/examples/Prefix.d.ts +1 -9
- package/types/src/Select/docs/examples/Truncate.d.ts +1 -9
- package/types/src/Slider/Slider.d.ts +1 -1
- package/types/src/StaticContent/StaticContent.d.ts +3 -1
- package/types/src/Table/docs/examples/Click.d.ts +2 -16
- package/types/src/Table/docs/examples/ClickRows.d.ts +2 -16
- package/types/src/Table/docs/examples/Complex.d.ts +2 -50
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +1 -13
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +1 -17
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +2 -21
- package/types/src/Table/docs/examples/ReorderRows.d.ts +2 -21
- package/types/src/Table/docs/examples/Resizable.d.ts +2 -23
- package/types/src/Table/docs/examples/ResizableFill.d.ts +2 -23
- package/types/src/Table/docs/examples/RowActions.d.ts +2 -39
- package/types/src/Table/docs/examples/Selectable.d.ts +2 -18
- package/types/src/Table/docs/examples/SortableColumns.d.ts +1 -11
- package/useResizeObserver.js +122 -90
- package/types/src/Dropdown/docs/examples/OtherToggles.d.ts +0 -2
- package/types/src/Popover/PopoverContext.d.ts +0 -6
package/Popover.js
CHANGED
|
@@ -62,7 +62,9 @@
|
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(t, {
|
|
64
64
|
PopoverContext: () => /* reexport */ z,
|
|
65
|
-
|
|
65
|
+
PopoverMenuContext: () => /* reexport */ Y,
|
|
66
|
+
PopoverProvider: () => /* reexport */ X,
|
|
67
|
+
default: () => /* reexport */ dt
|
|
66
68
|
});
|
|
67
69
|
// CONCATENATED MODULE: external "react"
|
|
68
70
|
const r = require("react");
|
|
@@ -103,18 +105,18 @@
|
|
|
103
105
|
const C = require("lodash/omit");
|
|
104
106
|
var j = e.n(C);
|
|
105
107
|
// CONCATENATED MODULE: external "lodash/throttle"
|
|
106
|
-
const
|
|
107
|
-
var
|
|
108
|
+
const x = require("lodash/throttle");
|
|
109
|
+
var k = e.n(x);
|
|
108
110
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
109
|
-
const
|
|
111
|
+
const A = require("@splunk/themes");
|
|
110
112
|
// CONCATENATED MODULE: external "@splunk/react-ui/Animation"
|
|
111
|
-
const
|
|
113
|
+
const T = require("@splunk/react-ui/Animation");
|
|
112
114
|
// CONCATENATED MODULE: external "@splunk/react-ui/EventListener"
|
|
113
115
|
const W = require("@splunk/react-ui/EventListener");
|
|
114
|
-
var
|
|
116
|
+
var M = e.n(W);
|
|
115
117
|
// CONCATENATED MODULE: external "@splunk/react-ui/Layer"
|
|
116
|
-
const
|
|
117
|
-
var R = e.n(
|
|
118
|
+
const q = require("@splunk/react-ui/Layer");
|
|
119
|
+
var R = e.n(q);
|
|
118
120
|
// CONCATENATED MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
119
121
|
const H = require("@splunk/react-ui/ScrollContainerContext");
|
|
120
122
|
var _ = e.n(H);
|
|
@@ -241,10 +243,10 @@
|
|
|
241
243
|
var E = r.bottom + i.offsetHeight < u;
|
|
242
244
|
var C = r.left - i.offsetWidth > 0;
|
|
243
245
|
var j = r.right + i.offsetWidth < f;
|
|
244
|
-
var
|
|
245
|
-
var
|
|
246
|
-
var
|
|
247
|
-
var
|
|
246
|
+
var x = r.top * .7 > u - r.bottom;
|
|
247
|
+
var k = (t === "edge" ? r.left + i.offsetWidth - l : r.middle + i.offsetWidth / 2) > f;
|
|
248
|
+
var A = (t === "edge" ? r.left - l : r.middle - i.offsetWidth / 2) < 0;
|
|
249
|
+
var T = (t === "edge" ? r.top - l : r.top - i.offsetHeight / 2) < 0;
|
|
248
250
|
var W = (t === "edge" ? r.top + i.offsetHeight - l : r.bottom + i.offsetHeight / 2) > u;
|
|
249
251
|
// Handle each of the four placement options individually.
|
|
250
252
|
if (O === "above") {
|
|
@@ -276,9 +278,9 @@
|
|
|
276
278
|
}
|
|
277
279
|
b = "auto";
|
|
278
280
|
}
|
|
279
|
-
if (
|
|
281
|
+
if (k) {
|
|
280
282
|
y = Math.max(f - i.offsetWidth, 0);
|
|
281
|
-
} else if (
|
|
283
|
+
} else if (A) {
|
|
282
284
|
y = 0;
|
|
283
285
|
}
|
|
284
286
|
if (!o) {
|
|
@@ -287,7 +289,7 @@
|
|
|
287
289
|
}
|
|
288
290
|
if (O === "below") {
|
|
289
291
|
if (!E && h) {
|
|
290
|
-
if (P &&
|
|
292
|
+
if (P && x) {
|
|
291
293
|
return U(F(F({}, e), {}, {
|
|
292
294
|
placement: "above"
|
|
293
295
|
}));
|
|
@@ -310,9 +312,9 @@
|
|
|
310
312
|
if (n) {
|
|
311
313
|
b = Math.min(b, n.bottom);
|
|
312
314
|
}
|
|
313
|
-
if (
|
|
315
|
+
if (k) {
|
|
314
316
|
y = Math.max(f - i.offsetWidth, 0);
|
|
315
|
-
} else if (
|
|
317
|
+
} else if (A) {
|
|
316
318
|
y = 0;
|
|
317
319
|
}
|
|
318
320
|
if (!o) {
|
|
@@ -341,7 +343,7 @@
|
|
|
341
343
|
b = 0;
|
|
342
344
|
}
|
|
343
345
|
}
|
|
344
|
-
if (
|
|
346
|
+
if (T) {
|
|
345
347
|
b = 0;
|
|
346
348
|
} else if (W) {
|
|
347
349
|
b = Math.max(u - i.offsetHeight, 0);
|
|
@@ -372,7 +374,7 @@
|
|
|
372
374
|
b = 0;
|
|
373
375
|
}
|
|
374
376
|
}
|
|
375
|
-
if (
|
|
377
|
+
if (T) {
|
|
376
378
|
b = 0;
|
|
377
379
|
} else if (W) {
|
|
378
380
|
b = Math.max(u - i.offsetHeight, 0);
|
|
@@ -392,109 +394,144 @@
|
|
|
392
394
|
}
|
|
393
395
|
};
|
|
394
396
|
}
|
|
395
|
-
// CONCATENATED MODULE: ./src/Popover/
|
|
397
|
+
// CONCATENATED MODULE: ./src/Popover/PopoverProvider.tsx
|
|
396
398
|
var z = (0, r.createContext)({});
|
|
399
|
+
var K = {
|
|
400
|
+
children: a().node,
|
|
401
|
+
hideArrow: a().bool
|
|
402
|
+
};
|
|
403
|
+
/**
|
|
404
|
+
* Provides a method for controlling certain `Popover` props in components that use `Popover`.
|
|
405
|
+
*/ var X = function e(t) {
|
|
406
|
+
var o = t.children, a = t.hideArrow;
|
|
407
|
+
var i = (0, r.useMemo)((function() {
|
|
408
|
+
return {
|
|
409
|
+
hideArrow: a
|
|
410
|
+
};
|
|
411
|
+
}), [ a ]);
|
|
412
|
+
|
|
413
|
+
return n().createElement(z.Provider, {
|
|
414
|
+
value: i
|
|
415
|
+
}, o);
|
|
416
|
+
};
|
|
417
|
+
X.propTypes = K;
|
|
418
|
+
// CONCATENATED MODULE: ./src/Popover/PopoverMenuContext.tsx
|
|
419
|
+
var Y = (0, r.createContext)({});
|
|
397
420
|
// CONCATENATED MODULE: external "react-spring"
|
|
398
|
-
const
|
|
421
|
+
const G = require("react-spring");
|
|
399
422
|
// CONCATENATED MODULE: external "styled-components"
|
|
400
|
-
const
|
|
401
|
-
var
|
|
423
|
+
const J = require("styled-components");
|
|
424
|
+
var Q = e.n(J);
|
|
402
425
|
// CONCATENATED MODULE: ./src/Popover/PopoverStyles.ts
|
|
403
|
-
var
|
|
404
|
-
|
|
405
|
-
prisma: 0
|
|
406
|
-
});
|
|
407
|
-
var J = Y()(K.animated.div).withConfig({
|
|
426
|
+
var Z = 8;
|
|
427
|
+
var ee = Q()(G.animated.div).withConfig({
|
|
408
428
|
displayName: "PopoverStyles__Styled",
|
|
409
429
|
componentId: "sc-1nahsvw-0"
|
|
410
|
-
})([ "position:fixed;z-index:", ";left:-300%;top:-300%;" ],
|
|
411
|
-
|
|
430
|
+
})([ "position:fixed;z-index:", ";left:-300%;top:-300%;" ], A.variables.zindexPopover);
|
|
431
|
+
// These hex codes are the inverted values of variables.backgroundColorPopup which are not exposed as tokens
|
|
432
|
+
var te = (0, J.css)([ "", "" ], (0, A.pick)({
|
|
433
|
+
light: "#27292e",
|
|
434
|
+
dark: A.variables.white
|
|
435
|
+
}));
|
|
436
|
+
var re = Q().div.withConfig({
|
|
412
437
|
displayName: "PopoverStyles__StyledBox",
|
|
413
438
|
componentId: "sc-1nahsvw-1"
|
|
414
|
-
})([ "", ";", ";", ";" ],
|
|
439
|
+
})([ "", ";", ";", ";" ], A.mixins.reset("block"), (function(e) {
|
|
415
440
|
var t = e.$open;
|
|
416
|
-
return !t && (0,
|
|
441
|
+
return !t && (0, J.css)([ "pointer-events:none;" ]);
|
|
417
442
|
}), (function(e) {
|
|
418
443
|
var t = e.$appearance;
|
|
419
|
-
return t !== "none" && (0,
|
|
444
|
+
return t !== "none" && (0, J.css)([ "padding:8px;" ]);
|
|
420
445
|
}));
|
|
421
|
-
var
|
|
446
|
+
var ne = Q().div.withConfig({
|
|
422
447
|
displayName: "PopoverStyles__StyledContent",
|
|
423
448
|
componentId: "sc-1nahsvw-2"
|
|
424
|
-
})([ "border-radius:", ";background-color:", ";color:", ";", "" ],
|
|
425
|
-
|
|
426
|
-
normal:
|
|
449
|
+
})([ "border-radius:", ";background-color:", ";color:", ";", "" ], A.variables.borderRadius, (0,
|
|
450
|
+
A.pickVariant)("$appearance", {
|
|
451
|
+
normal: A.variables.backgroundColorPopup,
|
|
427
452
|
inverted: {
|
|
428
453
|
enterprise: {
|
|
429
|
-
light:
|
|
430
|
-
dark:
|
|
454
|
+
light: A.variables.gray20,
|
|
455
|
+
dark: A.variables.white
|
|
431
456
|
},
|
|
432
|
-
|
|
433
|
-
prisma: {
|
|
434
|
-
light: "#27292e",
|
|
435
|
-
dark: T.variables.white
|
|
436
|
-
}
|
|
457
|
+
prisma: te
|
|
437
458
|
}
|
|
438
|
-
}), (0,
|
|
439
|
-
normal:
|
|
459
|
+
}), (0, A.pickVariant)("$appearance", {
|
|
460
|
+
normal: A.variables.contentColorDefault,
|
|
440
461
|
inverted: {
|
|
441
462
|
enterprise: {
|
|
442
|
-
light:
|
|
443
|
-
dark:
|
|
463
|
+
light: A.variables.white,
|
|
464
|
+
dark: A.variables.gray30
|
|
444
465
|
},
|
|
445
|
-
prisma:
|
|
466
|
+
prisma: A.variables.contentColorInverted
|
|
446
467
|
}
|
|
447
|
-
}), (0,
|
|
448
|
-
normal: (0,
|
|
468
|
+
}), (0, A.pickVariant)("$appearance", {
|
|
469
|
+
normal: (0, J.css)([ "", ";" ], (0, A.pick)({
|
|
449
470
|
enterprise: {
|
|
450
|
-
light: (0,
|
|
451
|
-
dark: (0,
|
|
471
|
+
light: (0, J.css)([ "box-shadow:0 2px 2px ", ";border:", ";" ], A.mixins.colorWithAlpha(A.variables.gray20, .1), A.variables.border),
|
|
472
|
+
dark: (0, J.css)([ "box-shadow:0 1px 2px #000;border:", ";" ], A.variables.border)
|
|
452
473
|
},
|
|
453
|
-
prisma: (0,
|
|
474
|
+
prisma: (0, J.css)([ "box-shadow:", ";" ], A.variables.overlayShadow)
|
|
454
475
|
}))
|
|
455
476
|
}));
|
|
456
|
-
|
|
457
|
-
var ee = Y().div.withConfig({
|
|
477
|
+
var oe = Q().div.withConfig({
|
|
458
478
|
displayName: "PopoverStyles__StyledArrow",
|
|
459
479
|
componentId: "sc-1nahsvw-3"
|
|
460
|
-
})([ "width:0;height:0;border-left:", " solid transparent;border-right:", " solid transparent;position:absolute;border-bottom-width:", ";border-bottom-style:solid;", "" ],
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
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;", ";" ], Z, Z, Z, (function(e) {
|
|
481
|
+
var t = e.$appearance;
|
|
482
|
+
return t !== "none" && (0, J.css)([ "border-bottom-color:", ";&::before{content:'';display:block;width:0;height:0;border-left:", "px solid transparent;border-right:", "px solid transparent;border-bottom:", "px solid;border-bottom-color:", ";position:absolute;top:1px;left:0;margin-left:-", "px;}" ], (0,
|
|
483
|
+
A.pickVariant)("$appearance", {
|
|
484
|
+
normal: {
|
|
485
|
+
enterprise: {
|
|
486
|
+
light: A.variables.borderColor,
|
|
487
|
+
dark: A.variables.black
|
|
488
|
+
},
|
|
489
|
+
prisma: A.variables.backgroundColorPopup
|
|
490
|
+
},
|
|
491
|
+
inverted: {
|
|
492
|
+
enterprise: {
|
|
493
|
+
light: A.variables.gray20,
|
|
494
|
+
dark: A.variables.white
|
|
495
|
+
},
|
|
496
|
+
prisma: te
|
|
497
|
+
}
|
|
498
|
+
}), Z, Z, Z, (0, A.pickVariant)("$appearance", {
|
|
499
|
+
normal: A.variables.backgroundColorPopup,
|
|
500
|
+
inverted: {
|
|
501
|
+
enterprise: {
|
|
502
|
+
light: A.variables.gray20,
|
|
503
|
+
dark: A.variables.white
|
|
504
|
+
},
|
|
505
|
+
prisma: te
|
|
506
|
+
}
|
|
507
|
+
}), Z);
|
|
471
508
|
}));
|
|
472
|
-
var
|
|
509
|
+
var ae = Q().svg.withConfig({
|
|
473
510
|
displayName: "PopoverStyles__StyledHitArea",
|
|
474
511
|
componentId: "sc-1nahsvw-4"
|
|
475
512
|
})([ "position:fixed;pointer-events:none;path{pointer-events:auto;stroke-width:0;stroke:transparent;fill:transparent;}" ]);
|
|
476
513
|
// CONCATENATED MODULE: ./src/Popover/PopoverHitArea.tsx
|
|
477
|
-
function
|
|
478
|
-
return
|
|
514
|
+
function ie(e, t) {
|
|
515
|
+
return se(e) || fe(e, t) || ce(e, t) || le();
|
|
479
516
|
}
|
|
480
|
-
function
|
|
517
|
+
function le() {
|
|
481
518
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
482
519
|
}
|
|
483
|
-
function
|
|
520
|
+
function ce(e, t) {
|
|
484
521
|
if (e) {
|
|
485
|
-
if ("string" == typeof e) return
|
|
522
|
+
if ("string" == typeof e) return ue(e, t);
|
|
486
523
|
var r = {}.toString.call(e).slice(8, -1);
|
|
487
|
-
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) ?
|
|
524
|
+
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) ? ue(e, t) : void 0;
|
|
488
525
|
}
|
|
489
526
|
}
|
|
490
|
-
function
|
|
527
|
+
function ue(e, t) {
|
|
491
528
|
(null == t || t > e.length) && (t = e.length);
|
|
492
529
|
for (var r = 0, n = Array(t); r < t; r++) {
|
|
493
530
|
n[r] = e[r];
|
|
494
531
|
}
|
|
495
532
|
return n;
|
|
496
533
|
}
|
|
497
|
-
function
|
|
534
|
+
function fe(e, t) {
|
|
498
535
|
var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
499
536
|
if (null != r) {
|
|
500
537
|
var n, o, a, i, l = [], c = !0, u = !1;
|
|
@@ -516,15 +553,15 @@
|
|
|
516
553
|
return l;
|
|
517
554
|
}
|
|
518
555
|
}
|
|
519
|
-
function
|
|
556
|
+
function se(e) {
|
|
520
557
|
if (Array.isArray(e)) return e;
|
|
521
558
|
}
|
|
522
|
-
var
|
|
559
|
+
var pe = {
|
|
523
560
|
anchorRect: a().object,
|
|
524
561
|
popoverEl: a().object,
|
|
525
562
|
popoverPlacement: a().oneOf([ "above", "below", "left", "right", "misaligned" ])
|
|
526
563
|
};
|
|
527
|
-
var
|
|
564
|
+
var he = function e(t) {
|
|
528
565
|
var r = t.anchorRect, n = t.popoverEl, o = t.popoverPlacement;
|
|
529
566
|
if (r != null && n != null && o != null) {
|
|
530
567
|
var a = n.getBoundingClientRect();
|
|
@@ -584,12 +621,12 @@
|
|
|
584
621
|
hitAreaStyle: {}
|
|
585
622
|
};
|
|
586
623
|
};
|
|
587
|
-
var
|
|
624
|
+
var de = n().forwardRef((function(e, t) {
|
|
588
625
|
var o = e.anchorRect, a = e.popoverEl, i = e.popoverPlacement;
|
|
589
|
-
var l = (0, r.useState)(null), c =
|
|
590
|
-
var s = (0, r.useState)({}), p =
|
|
626
|
+
var l = (0, r.useState)(null), c = ie(l, 2), u = c[0], f = c[1];
|
|
627
|
+
var s = (0, r.useState)({}), p = ie(s, 2), h = p[0], d = p[1];
|
|
591
628
|
(0, r.useEffect)((function() {
|
|
592
|
-
var e =
|
|
629
|
+
var e = he({
|
|
593
630
|
anchorRect: o,
|
|
594
631
|
popoverEl: a,
|
|
595
632
|
popoverPlacement: i
|
|
@@ -599,7 +636,7 @@
|
|
|
599
636
|
}), [ o, a, i ]);
|
|
600
637
|
if (u != null) {
|
|
601
638
|
|
|
602
|
-
return n().createElement(
|
|
639
|
+
return n().createElement(ae, {
|
|
603
640
|
"data-test": "popover-hit-area",
|
|
604
641
|
style: h
|
|
605
642
|
}, n().createElement("path", {
|
|
@@ -609,11 +646,11 @@
|
|
|
609
646
|
}
|
|
610
647
|
return null;
|
|
611
648
|
}));
|
|
612
|
-
|
|
613
|
-
/* harmony default export */ const
|
|
649
|
+
de.propTypes = pe;
|
|
650
|
+
/* harmony default export */ const ve = de;
|
|
614
651
|
// CONCATENATED MODULE: ./src/utils/ssrDocument.ts
|
|
615
652
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
616
|
-
var
|
|
653
|
+
var me = {
|
|
617
654
|
body: {
|
|
618
655
|
appendChild: function e() {
|
|
619
656
|
return [];
|
|
@@ -667,14 +704,14 @@
|
|
|
667
704
|
search: ""
|
|
668
705
|
}
|
|
669
706
|
};
|
|
670
|
-
function
|
|
671
|
-
var e = typeof document !== "undefined" ? document :
|
|
707
|
+
function be() {
|
|
708
|
+
var e = typeof document !== "undefined" ? document : me;
|
|
672
709
|
return e;
|
|
673
710
|
}
|
|
674
711
|
// CONCATENATED MODULE: ./src/utils/ssrWindow.ts
|
|
675
712
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
676
|
-
var
|
|
677
|
-
document:
|
|
713
|
+
var ye = {
|
|
714
|
+
document: me,
|
|
678
715
|
navigator: {
|
|
679
716
|
userAgent: ""
|
|
680
717
|
},
|
|
@@ -728,20 +765,20 @@
|
|
|
728
765
|
clearTimeout(t);
|
|
729
766
|
}
|
|
730
767
|
};
|
|
731
|
-
function
|
|
732
|
-
var e = typeof window !== "undefined" ? window :
|
|
768
|
+
function ge() {
|
|
769
|
+
var e = typeof window !== "undefined" ? window : ye;
|
|
733
770
|
return e;
|
|
734
771
|
}
|
|
735
772
|
// CONCATENATED MODULE: ./src/utils/getBoundingClientRect.ts
|
|
736
|
-
function
|
|
773
|
+
function we(e) {
|
|
737
774
|
"@babel/helpers - typeof";
|
|
738
|
-
return
|
|
775
|
+
return we = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
739
776
|
return typeof e;
|
|
740
777
|
} : function(e) {
|
|
741
778
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
742
|
-
},
|
|
779
|
+
}, we(e);
|
|
743
780
|
}
|
|
744
|
-
function
|
|
781
|
+
function Se(e, t) {
|
|
745
782
|
var r = Object.keys(e);
|
|
746
783
|
if (Object.getOwnPropertySymbols) {
|
|
747
784
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -751,46 +788,46 @@
|
|
|
751
788
|
}
|
|
752
789
|
return r;
|
|
753
790
|
}
|
|
754
|
-
function
|
|
791
|
+
function Oe(e) {
|
|
755
792
|
for (var t = 1; t < arguments.length; t++) {
|
|
756
793
|
var r = null != arguments[t] ? arguments[t] : {};
|
|
757
|
-
t % 2 ?
|
|
758
|
-
|
|
759
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
794
|
+
t % 2 ? Se(Object(r), !0).forEach((function(t) {
|
|
795
|
+
Pe(e, t, r[t]);
|
|
796
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Se(Object(r)).forEach((function(t) {
|
|
760
797
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
761
798
|
}));
|
|
762
799
|
}
|
|
763
800
|
return e;
|
|
764
801
|
}
|
|
765
|
-
function
|
|
766
|
-
return (t =
|
|
802
|
+
function Pe(e, t, r) {
|
|
803
|
+
return (t = Ee(t)) in e ? Object.defineProperty(e, t, {
|
|
767
804
|
value: r,
|
|
768
805
|
enumerable: !0,
|
|
769
806
|
configurable: !0,
|
|
770
807
|
writable: !0
|
|
771
808
|
}) : e[t] = r, e;
|
|
772
809
|
}
|
|
773
|
-
function
|
|
774
|
-
var t =
|
|
775
|
-
return "symbol" ==
|
|
810
|
+
function Ee(e) {
|
|
811
|
+
var t = Ce(e, "string");
|
|
812
|
+
return "symbol" == we(t) ? t : t + "";
|
|
776
813
|
}
|
|
777
|
-
function
|
|
778
|
-
if ("object" !=
|
|
814
|
+
function Ce(e, t) {
|
|
815
|
+
if ("object" != we(e) || !e) return e;
|
|
779
816
|
var r = e[Symbol.toPrimitive];
|
|
780
817
|
if (void 0 !== r) {
|
|
781
818
|
var n = r.call(e, t || "default");
|
|
782
|
-
if ("object" !=
|
|
819
|
+
if ("object" != we(n)) return n;
|
|
783
820
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
784
821
|
}
|
|
785
822
|
return ("string" === t ? String : Number)(e);
|
|
786
823
|
}
|
|
787
824
|
// Checks if browser is Safari
|
|
788
|
-
function
|
|
825
|
+
function je() {
|
|
789
826
|
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
790
827
|
}
|
|
791
828
|
// Formats return value to DOMRect
|
|
792
|
-
function
|
|
793
|
-
return
|
|
829
|
+
function xe(e) {
|
|
830
|
+
return Oe(Oe({}, e), {}, {
|
|
794
831
|
top: e.y,
|
|
795
832
|
left: e.x,
|
|
796
833
|
right: e.x + e.width,
|
|
@@ -804,18 +841,18 @@
|
|
|
804
841
|
* @param {boolean} offsets - Use when position of element relative to the layout viewport offsets are needed for Safari.
|
|
805
842
|
* @returns {Omit<DOMRect, 'toJSON'>}
|
|
806
843
|
* @public
|
|
807
|
-
*/ function
|
|
844
|
+
*/ function ke(e, t) {
|
|
808
845
|
var r, n;
|
|
809
846
|
var o = e.getBoundingClientRect();
|
|
810
|
-
var a =
|
|
847
|
+
var a = je();
|
|
811
848
|
if (!t || !a) {
|
|
812
849
|
return o;
|
|
813
850
|
}
|
|
814
|
-
var i =
|
|
851
|
+
var i = ge();
|
|
815
852
|
var l = o.left + (((r = i.visualViewport) === null || r === void 0 ? void 0 : r.offsetLeft) || 0);
|
|
816
853
|
var c = o.top + (((n = i.visualViewport) === null || n === void 0 ? void 0 : n.offsetTop) || 0);
|
|
817
854
|
var u = o.width, f = o.height;
|
|
818
|
-
return
|
|
855
|
+
return xe({
|
|
819
856
|
width: u,
|
|
820
857
|
height: f,
|
|
821
858
|
x: l,
|
|
@@ -829,7 +866,7 @@
|
|
|
829
866
|
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
830
867
|
* @param current - The new value of the ref.
|
|
831
868
|
*/
|
|
832
|
-
function
|
|
869
|
+
function Ae(e, t) {
|
|
833
870
|
if (e) {
|
|
834
871
|
if (typeof e === "function") {
|
|
835
872
|
e(t);
|
|
@@ -842,16 +879,16 @@
|
|
|
842
879
|
}
|
|
843
880
|
}
|
|
844
881
|
// CONCATENATED MODULE: ./src/Popover/Popover.tsx
|
|
845
|
-
function
|
|
882
|
+
function Te(e) {
|
|
846
883
|
"@babel/helpers - typeof";
|
|
847
|
-
return
|
|
884
|
+
return Te = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
848
885
|
return typeof e;
|
|
849
886
|
} : function(e) {
|
|
850
887
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
851
|
-
},
|
|
888
|
+
}, Te(e);
|
|
852
889
|
}
|
|
853
|
-
function
|
|
854
|
-
return
|
|
890
|
+
function We() {
|
|
891
|
+
return We = Object.assign ? Object.assign.bind() : function(e) {
|
|
855
892
|
for (var t = 1; t < arguments.length; t++) {
|
|
856
893
|
var r = arguments[t];
|
|
857
894
|
for (var n in r) {
|
|
@@ -859,21 +896,21 @@
|
|
|
859
896
|
}
|
|
860
897
|
}
|
|
861
898
|
return e;
|
|
862
|
-
},
|
|
899
|
+
}, We.apply(null, arguments);
|
|
863
900
|
}
|
|
864
|
-
function
|
|
865
|
-
return
|
|
901
|
+
function Me(e) {
|
|
902
|
+
return He(e) || Re(e) || Fe(e) || qe();
|
|
866
903
|
}
|
|
867
|
-
function
|
|
904
|
+
function qe() {
|
|
868
905
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
869
906
|
}
|
|
870
|
-
function
|
|
907
|
+
function Re(e) {
|
|
871
908
|
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
|
|
872
909
|
}
|
|
873
|
-
function
|
|
874
|
-
if (Array.isArray(e)) return
|
|
910
|
+
function He(e) {
|
|
911
|
+
if (Array.isArray(e)) return Ne(e);
|
|
875
912
|
}
|
|
876
|
-
function
|
|
913
|
+
function _e(e, t) {
|
|
877
914
|
var r = Object.keys(e);
|
|
878
915
|
if (Object.getOwnPropertySymbols) {
|
|
879
916
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -883,38 +920,38 @@
|
|
|
883
920
|
}
|
|
884
921
|
return r;
|
|
885
922
|
}
|
|
886
|
-
function
|
|
923
|
+
function De(e) {
|
|
887
924
|
for (var t = 1; t < arguments.length; t++) {
|
|
888
925
|
var r = null != arguments[t] ? arguments[t] : {};
|
|
889
|
-
t % 2 ?
|
|
890
|
-
|
|
891
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
926
|
+
t % 2 ? _e(Object(r), !0).forEach((function(t) {
|
|
927
|
+
et(e, t, r[t]);
|
|
928
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : _e(Object(r)).forEach((function(t) {
|
|
892
929
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
893
930
|
}));
|
|
894
931
|
}
|
|
895
932
|
return e;
|
|
896
933
|
}
|
|
897
|
-
function
|
|
898
|
-
return
|
|
934
|
+
function Ie(e, t) {
|
|
935
|
+
return Ve(e) || $e(e, t) || Fe(e, t) || Le();
|
|
899
936
|
}
|
|
900
|
-
function
|
|
937
|
+
function Le() {
|
|
901
938
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
902
939
|
}
|
|
903
|
-
function
|
|
940
|
+
function Fe(e, t) {
|
|
904
941
|
if (e) {
|
|
905
|
-
if ("string" == typeof e) return
|
|
942
|
+
if ("string" == typeof e) return Ne(e, t);
|
|
906
943
|
var r = {}.toString.call(e).slice(8, -1);
|
|
907
|
-
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) ?
|
|
944
|
+
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) ? Ne(e, t) : void 0;
|
|
908
945
|
}
|
|
909
946
|
}
|
|
910
|
-
function
|
|
947
|
+
function Ne(e, t) {
|
|
911
948
|
(null == t || t > e.length) && (t = e.length);
|
|
912
949
|
for (var r = 0, n = Array(t); r < t; r++) {
|
|
913
950
|
n[r] = e[r];
|
|
914
951
|
}
|
|
915
952
|
return n;
|
|
916
953
|
}
|
|
917
|
-
function
|
|
954
|
+
function $e(e, t) {
|
|
918
955
|
var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
919
956
|
if (null != r) {
|
|
920
957
|
var n, o, a, i, l = [], c = !0, u = !1;
|
|
@@ -936,25 +973,25 @@
|
|
|
936
973
|
return l;
|
|
937
974
|
}
|
|
938
975
|
}
|
|
939
|
-
function
|
|
976
|
+
function Ve(e) {
|
|
940
977
|
if (Array.isArray(e)) return e;
|
|
941
978
|
}
|
|
942
|
-
function
|
|
979
|
+
function Be(e, t) {
|
|
943
980
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
944
981
|
}
|
|
945
|
-
function
|
|
982
|
+
function Ue(e, t) {
|
|
946
983
|
for (var r = 0; r < t.length; r++) {
|
|
947
984
|
var n = t[r];
|
|
948
985
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0),
|
|
949
|
-
Object.defineProperty(e,
|
|
986
|
+
Object.defineProperty(e, tt(n.key), n);
|
|
950
987
|
}
|
|
951
988
|
}
|
|
952
|
-
function
|
|
953
|
-
return t &&
|
|
989
|
+
function ze(e, t, r) {
|
|
990
|
+
return t && Ue(e.prototype, t), r && Ue(e, r), Object.defineProperty(e, "prototype", {
|
|
954
991
|
writable: !1
|
|
955
992
|
}), e;
|
|
956
993
|
}
|
|
957
|
-
function
|
|
994
|
+
function Ke(e, t) {
|
|
958
995
|
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
|
959
996
|
e.prototype = Object.create(t && t.prototype, {
|
|
960
997
|
constructor: {
|
|
@@ -964,64 +1001,64 @@
|
|
|
964
1001
|
}
|
|
965
1002
|
}), Object.defineProperty(e, "prototype", {
|
|
966
1003
|
writable: !1
|
|
967
|
-
}), t &&
|
|
1004
|
+
}), t && Xe(e, t);
|
|
968
1005
|
}
|
|
969
|
-
function
|
|
970
|
-
return
|
|
1006
|
+
function Xe(e, t) {
|
|
1007
|
+
return Xe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
971
1008
|
return e.__proto__ = t, e;
|
|
972
|
-
},
|
|
1009
|
+
}, Xe(e, t);
|
|
973
1010
|
}
|
|
974
|
-
function
|
|
975
|
-
var t =
|
|
1011
|
+
function Ye(e) {
|
|
1012
|
+
var t = Qe();
|
|
976
1013
|
return function() {
|
|
977
|
-
var r, n =
|
|
1014
|
+
var r, n = Ze(e);
|
|
978
1015
|
if (t) {
|
|
979
|
-
var o =
|
|
1016
|
+
var o = Ze(this).constructor;
|
|
980
1017
|
r = Reflect.construct(n, arguments, o);
|
|
981
1018
|
} else r = n.apply(this, arguments);
|
|
982
|
-
return
|
|
1019
|
+
return Ge(this, r);
|
|
983
1020
|
};
|
|
984
1021
|
}
|
|
985
|
-
function
|
|
986
|
-
if (t && ("object" ==
|
|
1022
|
+
function Ge(e, t) {
|
|
1023
|
+
if (t && ("object" == Te(t) || "function" == typeof t)) return t;
|
|
987
1024
|
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
988
|
-
return
|
|
1025
|
+
return Je(e);
|
|
989
1026
|
}
|
|
990
|
-
function
|
|
1027
|
+
function Je(e) {
|
|
991
1028
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
992
1029
|
return e;
|
|
993
1030
|
}
|
|
994
|
-
function
|
|
1031
|
+
function Qe() {
|
|
995
1032
|
try {
|
|
996
1033
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
997
1034
|
} catch (e) {}
|
|
998
|
-
return (
|
|
1035
|
+
return (Qe = function t() {
|
|
999
1036
|
return !!e;
|
|
1000
1037
|
})();
|
|
1001
1038
|
}
|
|
1002
|
-
function
|
|
1003
|
-
return
|
|
1039
|
+
function Ze(e) {
|
|
1040
|
+
return Ze = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
1004
1041
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
1005
|
-
},
|
|
1042
|
+
}, Ze(e);
|
|
1006
1043
|
}
|
|
1007
|
-
function
|
|
1008
|
-
return (t =
|
|
1044
|
+
function et(e, t, r) {
|
|
1045
|
+
return (t = tt(t)) in e ? Object.defineProperty(e, t, {
|
|
1009
1046
|
value: r,
|
|
1010
1047
|
enumerable: !0,
|
|
1011
1048
|
configurable: !0,
|
|
1012
1049
|
writable: !0
|
|
1013
1050
|
}) : e[t] = r, e;
|
|
1014
1051
|
}
|
|
1015
|
-
function
|
|
1016
|
-
var t =
|
|
1017
|
-
return "symbol" ==
|
|
1052
|
+
function tt(e) {
|
|
1053
|
+
var t = rt(e, "string");
|
|
1054
|
+
return "symbol" == Te(t) ? t : t + "";
|
|
1018
1055
|
}
|
|
1019
|
-
function
|
|
1020
|
-
if ("object" !=
|
|
1056
|
+
function rt(e, t) {
|
|
1057
|
+
if ("object" != Te(e) || !e) return e;
|
|
1021
1058
|
var r = e[Symbol.toPrimitive];
|
|
1022
1059
|
if (void 0 !== r) {
|
|
1023
1060
|
var n = r.call(e, t || "default");
|
|
1024
|
-
if ("object" !=
|
|
1061
|
+
if ("object" != Te(n)) return n;
|
|
1025
1062
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1026
1063
|
}
|
|
1027
1064
|
return ("string" === t ? String : Number)(e);
|
|
@@ -1030,8 +1067,8 @@
|
|
|
1030
1067
|
/** @public */
|
|
1031
1068
|
/** @public */
|
|
1032
1069
|
/** @public */
|
|
1033
|
-
/** @public */ var
|
|
1034
|
-
var
|
|
1070
|
+
/** @public */ var nt = [ "clickAway", "escapeKey", "offScreen", "tabKey" ];
|
|
1071
|
+
var ot = {
|
|
1035
1072
|
align: a().oneOf([ "center", "edge", "theme", "end" ]),
|
|
1036
1073
|
anchor: a().object,
|
|
1037
1074
|
animation: a().bool,
|
|
@@ -1040,10 +1077,11 @@
|
|
|
1040
1077
|
autoCloseWhenOffScreen: a().bool,
|
|
1041
1078
|
canCoverAnchor: a().bool,
|
|
1042
1079
|
children: a().oneOfType([ a().node, a().func ]),
|
|
1043
|
-
closeReasons: a().arrayOf(a().oneOf(
|
|
1080
|
+
closeReasons: a().arrayOf(a().oneOf(nt)),
|
|
1044
1081
|
defaultPlacement: a().oneOf([ "above", "below", "left", "right", "vertical", "horizontal" ]),
|
|
1045
1082
|
elementRef: a().oneOfType([ a().func, a().object ]),
|
|
1046
1083
|
id: a().string,
|
|
1084
|
+
hideArrow: a().bool,
|
|
1047
1085
|
hitAreaRef: a().oneOfType([ a().func, a().object ]),
|
|
1048
1086
|
onRequestClose: a().func,
|
|
1049
1087
|
open: a().bool,
|
|
@@ -1057,26 +1095,26 @@
|
|
|
1057
1095
|
takeFocus: a().bool,
|
|
1058
1096
|
splunkTheme: a().object
|
|
1059
1097
|
};
|
|
1060
|
-
var
|
|
1098
|
+
var at = {
|
|
1061
1099
|
align: "theme",
|
|
1062
1100
|
animation: true,
|
|
1063
1101
|
animationConfig: {},
|
|
1064
1102
|
appearance: "normal",
|
|
1065
1103
|
autoCloseWhenOffScreen: true,
|
|
1066
1104
|
canCoverAnchor: false,
|
|
1067
|
-
closeReasons:
|
|
1105
|
+
closeReasons: nt,
|
|
1068
1106
|
defaultPlacement: "below",
|
|
1069
1107
|
open: false,
|
|
1070
1108
|
repositionMode: "flip",
|
|
1071
1109
|
retainFocus: true,
|
|
1072
1110
|
takeFocus: false
|
|
1073
1111
|
};
|
|
1074
|
-
var
|
|
1112
|
+
var it = {
|
|
1075
1113
|
passive: false,
|
|
1076
1114
|
capture: true
|
|
1077
1115
|
};
|
|
1078
1116
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1079
|
-
function
|
|
1117
|
+
function lt(e, t) {
|
|
1080
1118
|
var r = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
1081
1119
|
return !!e && !!t && p()(e, (function(e, n) {
|
|
1082
1120
|
if (w()(e)) {
|
|
@@ -1085,65 +1123,71 @@
|
|
|
1085
1123
|
return t[n] === e;
|
|
1086
1124
|
}));
|
|
1087
1125
|
}
|
|
1088
|
-
function
|
|
1089
|
-
var t = e.anchorPos, r = e.
|
|
1090
|
-
if (
|
|
1126
|
+
function ct(e) {
|
|
1127
|
+
var t = e.anchorPos, r = e.placement, n = e.outerContainerStyle, o = e.outerContainerEl;
|
|
1128
|
+
if (r === "misaligned") {
|
|
1091
1129
|
return [ {
|
|
1092
1130
|
display: "none"
|
|
1093
1131
|
} ];
|
|
1094
1132
|
}
|
|
1095
|
-
var
|
|
1133
|
+
var a = {
|
|
1096
1134
|
display: "block"
|
|
1097
1135
|
};
|
|
1098
|
-
var
|
|
1099
|
-
var
|
|
1100
|
-
var
|
|
1101
|
-
var
|
|
1102
|
-
|
|
1103
|
-
|
|
1136
|
+
var i = o.offsetHeight / 2 - 22;
|
|
1137
|
+
var l = -(o.offsetHeight / 2 - 15);
|
|
1138
|
+
var u = t.center - (n.top + o.offsetHeight / 2) - Z / 2;
|
|
1139
|
+
var f = c()(u, l, i);
|
|
1140
|
+
// 26px is 16px arrow width + 8px padding + half of 3px or 4px border-radius
|
|
1141
|
+
// 11px is 16px arrow width - 8px padding + half of 3px or 4px border-radius
|
|
1142
|
+
var s = o.offsetWidth / 2 - 26;
|
|
1143
|
+
var p = -(o.offsetWidth / 2 - 11);
|
|
1144
|
+
// const initHorizontalDiff = -arrowHeight;
|
|
1145
|
+
var h = t.middle - (n.left + o.offsetWidth / 2) - Z;
|
|
1146
|
+
var d = c()(h, p, s);
|
|
1147
|
+
var v = {
|
|
1104
1148
|
left: {
|
|
1105
|
-
translateX:
|
|
1106
|
-
translateY:
|
|
1149
|
+
translateX: Z / 2,
|
|
1150
|
+
translateY: f,
|
|
1107
1151
|
rotate: 90
|
|
1108
1152
|
},
|
|
1109
1153
|
right: {
|
|
1110
|
-
translateX: -
|
|
1111
|
-
translateY:
|
|
1154
|
+
translateX: -Z / 2,
|
|
1155
|
+
translateY: f,
|
|
1112
1156
|
rotate: -90
|
|
1113
1157
|
},
|
|
1114
1158
|
above: {
|
|
1115
|
-
translateX:
|
|
1159
|
+
translateX: d,
|
|
1116
1160
|
translateY: 0,
|
|
1117
1161
|
rotate: 180
|
|
1118
1162
|
},
|
|
1119
1163
|
below: {
|
|
1120
|
-
translateX:
|
|
1164
|
+
translateX: d,
|
|
1121
1165
|
translateY: 0,
|
|
1122
1166
|
rotate: 0
|
|
1123
1167
|
}
|
|
1124
1168
|
};
|
|
1125
|
-
var
|
|
1126
|
-
|
|
1169
|
+
var m = v[r];
|
|
1170
|
+
a.transform = "translate(".concat(m.translateX, "px, ").concat(m.translateY, "px) rotate(").concat(m.rotate, "deg)");
|
|
1127
1171
|
// set new positions
|
|
1128
|
-
var
|
|
1172
|
+
var b = {
|
|
1129
1173
|
left: "right",
|
|
1130
1174
|
right: "left",
|
|
1131
1175
|
above: "bottom",
|
|
1132
1176
|
below: "top"
|
|
1133
1177
|
};
|
|
1134
|
-
|
|
1135
|
-
var
|
|
1178
|
+
a[b[r]] = "1px";
|
|
1179
|
+
var y = {
|
|
1136
1180
|
left: "top",
|
|
1137
1181
|
right: "top",
|
|
1138
1182
|
above: "left",
|
|
1139
1183
|
below: "left"
|
|
1140
1184
|
};
|
|
1141
|
-
|
|
1142
|
-
return [
|
|
1185
|
+
a[y[r]] = "50%";
|
|
1186
|
+
return [ a, m ];
|
|
1143
1187
|
}
|
|
1144
|
-
function
|
|
1188
|
+
function ut(e) {
|
|
1145
1189
|
var t = e.anchorEl, r = e.offsets, n = r === void 0 ? false : r, o = e.pointTo;
|
|
1146
|
-
var a =
|
|
1190
|
+
var a = ke(t, n);
|
|
1147
1191
|
var i = {
|
|
1148
1192
|
// these are rounded to avoid causing visual regressions
|
|
1149
1193
|
// they were previously clientWidth and clientHeight which were already rounded
|
|
@@ -1156,15 +1200,19 @@
|
|
|
1156
1200
|
i.top = c ? a.top + ((o === null || o === void 0 ? void 0 : o.y) || 0) : a.top;
|
|
1157
1201
|
i.right = l ? i.left + i.width : a.left + i.width || a.right;
|
|
1158
1202
|
i.bottom = c ? i.top + i.height : a.top + i.height || a.bottom;
|
|
1159
|
-
|
|
1203
|
+
// when pointTo is set, the middle (horizontal) and center (vertical)
|
|
1204
|
+
// these values are set to the upper left corner of the anchor
|
|
1205
|
+
// which causes the whole Popover to be aligned to the upper left corner
|
|
1206
|
+
// (ignoring the "align" prop) and then shifted by the value of "pointTo"
|
|
1207
|
+
i.middle = l ? i.left : a.left + (i.right - a.left) / 2;
|
|
1160
1208
|
i.center = c ? i.top : a.top + (i.bottom - a.top) / 2;
|
|
1161
1209
|
return i;
|
|
1162
1210
|
}
|
|
1163
|
-
function
|
|
1211
|
+
function ft(e) {
|
|
1164
1212
|
return e !== window && e !== window.document;
|
|
1165
1213
|
}
|
|
1166
|
-
function
|
|
1167
|
-
var r =
|
|
1214
|
+
function st(e, t) {
|
|
1215
|
+
var r = ge();
|
|
1168
1216
|
if (e.top < 0 || e.top > r.innerHeight || e.left < 0 || e.left > r.innerWidth) {
|
|
1169
1217
|
return true;
|
|
1170
1218
|
}
|
|
@@ -1179,10 +1227,10 @@
|
|
|
1179
1227
|
* `Popover` is used to create layovers such as dropdowns, contextual menus, or tooltips. Use
|
|
1180
1228
|
* this only when the other components don't provide sufficient functionality or control. A controlled
|
|
1181
1229
|
* `Dropdown` covers use cases where you might consider using `Popover` directly.
|
|
1182
|
-
*/ var
|
|
1183
|
-
|
|
1184
|
-
var t =
|
|
1185
|
-
|
|
1230
|
+
*/ var pt = function(e) {
|
|
1231
|
+
Ke(r, e);
|
|
1232
|
+
var t = Ye(r);
|
|
1233
|
+
ze(r, null, [ {
|
|
1186
1234
|
key: "getDerivedStateFromProps",
|
|
1187
1235
|
// @docs-props-type PopoverPropsBase
|
|
1188
1236
|
value: function e(t, r) {
|
|
@@ -1197,88 +1245,93 @@
|
|
|
1197
1245
|
} ]);
|
|
1198
1246
|
function r(e) {
|
|
1199
1247
|
var n;
|
|
1200
|
-
|
|
1248
|
+
Be(this, r);
|
|
1201
1249
|
n = t.call(this, e);
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
var t =
|
|
1250
|
+
et(Je(n), "outerContainerEl", null);
|
|
1251
|
+
et(Je(n), "innerContainerEl", null);
|
|
1252
|
+
et(Je(n), "arrow", null);
|
|
1253
|
+
et(Je(n), "handleScroll", void 0);
|
|
1254
|
+
et(Je(n), "handleWindowScroll", void 0);
|
|
1255
|
+
et(Je(n), "allowAnimationUpdates", true);
|
|
1256
|
+
et(Je(n), "setPlacement", (function(e) {
|
|
1257
|
+
var t = ge();
|
|
1210
1258
|
n.setState((function(r) {
|
|
1211
|
-
var o;
|
|
1212
|
-
var
|
|
1213
|
-
var v =
|
|
1214
|
-
var m = d.isPrisma;
|
|
1259
|
+
var o = n.props, a = o.align, i = o.anchor, l = o.autoCloseWhenOffScreen, c = o.canCoverAnchor, u = o.defaultPlacement, f = o.open, s = o.pointTo, p = o.repositionMode, h = o.splunkTheme;
|
|
1260
|
+
var d = n.context || t;
|
|
1261
|
+
var v = h.isPrisma;
|
|
1215
1262
|
// If these conditions are not met, we cannot set the popover.
|
|
1216
|
-
if (!
|
|
1263
|
+
if (!f || !n.outerContainerEl || !i || !r.anchorEl) {
|
|
1217
1264
|
if (false) {}
|
|
1218
1265
|
return null;
|
|
1219
1266
|
}
|
|
1220
|
-
var
|
|
1267
|
+
var m = ut({
|
|
1221
1268
|
anchorEl: r.anchorEl,
|
|
1222
|
-
pointTo:
|
|
1269
|
+
pointTo: s
|
|
1223
1270
|
});
|
|
1224
|
-
var
|
|
1271
|
+
var b = ut({
|
|
1225
1272
|
anchorEl: r.anchorEl,
|
|
1226
1273
|
offsets: true,
|
|
1227
|
-
pointTo:
|
|
1274
|
+
pointTo: s
|
|
1228
1275
|
});
|
|
1229
|
-
var
|
|
1230
|
-
anchorEl:
|
|
1231
|
-
pointTo:
|
|
1276
|
+
var y = ft(d) ? ut({
|
|
1277
|
+
anchorEl: d,
|
|
1278
|
+
pointTo: s
|
|
1232
1279
|
}) : undefined;
|
|
1233
|
-
if (e &&
|
|
1234
|
-
if (n.autoCloseWhenOffScreen(
|
|
1280
|
+
if (e && l) {
|
|
1281
|
+
if (n.autoCloseWhenOffScreen(m, y)) {
|
|
1235
1282
|
return null;
|
|
1236
1283
|
}
|
|
1237
1284
|
}
|
|
1238
|
-
var
|
|
1239
|
-
var
|
|
1240
|
-
var
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
repositionMode: h,
|
|
1285
|
+
var g = 8;
|
|
1286
|
+
var w = v ? "edge" : "center";
|
|
1287
|
+
var S = U({
|
|
1288
|
+
align: a === "theme" ? w : a,
|
|
1289
|
+
anchorPos: b,
|
|
1290
|
+
scrollContainerPos: y,
|
|
1291
|
+
canCoverAnchor: c,
|
|
1292
|
+
defaultPlacement: u,
|
|
1293
|
+
repositionMode: p,
|
|
1248
1294
|
outerContainerEl: n.outerContainerEl,
|
|
1249
|
-
padding:
|
|
1295
|
+
padding: g,
|
|
1250
1296
|
windowWidth: t.innerWidth,
|
|
1251
1297
|
windowHeight: t.innerHeight
|
|
1252
|
-
}),
|
|
1253
|
-
var
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1298
|
+
}), O = S.placement, P = S.outerContainerStyle, E = S.maxHeight, C = S.maxWidth;
|
|
1299
|
+
var x = lt(b, r.anchorPos) && lt(P, r.outerContainerStyle) && O === r.placement && E === r.maxHeight && C === r.maxWidth;
|
|
1300
|
+
var k = true;
|
|
1301
|
+
var A = {};
|
|
1302
|
+
var T;
|
|
1303
|
+
if (n.arrow) {
|
|
1304
|
+
var W, M;
|
|
1305
|
+
var q = ct({
|
|
1306
|
+
anchorPos: b,
|
|
1307
|
+
outerContainerStyle: P,
|
|
1308
|
+
placement: O,
|
|
1309
|
+
outerContainerEl: n.outerContainerEl
|
|
1310
|
+
});
|
|
1311
|
+
var R = Ie(q, 2);
|
|
1312
|
+
A = R[0];
|
|
1313
|
+
T = R[1];
|
|
1314
|
+
k = lt(j()(A, "transform"), j()(r.arrowStyle, "transform")) && lt((W = T) !== null && W !== void 0 ? W : {}, (M = r.arrowStyleTransformMeta) !== null && M !== void 0 ? M : {});
|
|
1315
|
+
}
|
|
1263
1316
|
// If none of the position data has changed, do not set state.
|
|
1264
|
-
if (
|
|
1317
|
+
if (x && k) {
|
|
1265
1318
|
return null;
|
|
1266
1319
|
}
|
|
1267
1320
|
return {
|
|
1268
|
-
anchorPos:
|
|
1269
|
-
arrowStyle:
|
|
1270
|
-
arrowStyleTransformMeta:
|
|
1271
|
-
outerContainerStyle:
|
|
1272
|
-
placement:
|
|
1273
|
-
maxHeight:
|
|
1274
|
-
maxWidth:
|
|
1321
|
+
anchorPos: b,
|
|
1322
|
+
arrowStyle: A,
|
|
1323
|
+
arrowStyleTransformMeta: T,
|
|
1324
|
+
outerContainerStyle: P,
|
|
1325
|
+
placement: O,
|
|
1326
|
+
maxHeight: E,
|
|
1327
|
+
maxWidth: C
|
|
1275
1328
|
};
|
|
1276
1329
|
}));
|
|
1277
1330
|
}));
|
|
1278
|
-
|
|
1331
|
+
et(Je(n), "handleArrowMount", (function(e) {
|
|
1279
1332
|
n.arrow = e;
|
|
1280
1333
|
}));
|
|
1281
|
-
|
|
1334
|
+
et(Je(n), "handleNewAnchor", (function(e) {
|
|
1282
1335
|
var t = n.props.pointTo;
|
|
1283
1336
|
var r;
|
|
1284
1337
|
if (e && !(e instanceof HTMLElement)) {
|
|
@@ -1288,7 +1341,7 @@
|
|
|
1288
1341
|
} else {
|
|
1289
1342
|
r = e !== null && e !== void 0 ? e : undefined;
|
|
1290
1343
|
}
|
|
1291
|
-
var o = r ?
|
|
1344
|
+
var o = r ? ut({
|
|
1292
1345
|
anchorEl: r,
|
|
1293
1346
|
pointTo: t
|
|
1294
1347
|
}) : undefined;
|
|
@@ -1298,18 +1351,18 @@
|
|
|
1298
1351
|
});
|
|
1299
1352
|
// eslint-disable-line react/no-unused-state
|
|
1300
1353
|
}));
|
|
1301
|
-
|
|
1354
|
+
et(Je(n), "handleInnerContainerMount", (function(e) {
|
|
1302
1355
|
n.innerContainerEl = e;
|
|
1303
1356
|
if (e && n.props.takeFocus) {
|
|
1304
1357
|
f()(D.takeFocus, e);
|
|
1305
1358
|
}
|
|
1306
|
-
|
|
1359
|
+
Ae(n.props.elementRef, e);
|
|
1307
1360
|
}));
|
|
1308
|
-
|
|
1361
|
+
et(Je(n), "handleOuterContainerMount", (function(e) {
|
|
1309
1362
|
n.outerContainerEl = e;
|
|
1310
|
-
|
|
1363
|
+
Ae(n.props.outerRef, e);
|
|
1311
1364
|
}));
|
|
1312
|
-
|
|
1365
|
+
et(Je(n), "handleTab", (function(e) {
|
|
1313
1366
|
if (n.innerContainerEl) {
|
|
1314
1367
|
if (n.props.retainFocus) {
|
|
1315
1368
|
(0, D.handleTab)(n.innerContainerEl, e);
|
|
@@ -1327,21 +1380,21 @@
|
|
|
1327
1380
|
}
|
|
1328
1381
|
}
|
|
1329
1382
|
}));
|
|
1330
|
-
|
|
1383
|
+
et(Je(n), "handleRequestClose", (function(e) {
|
|
1331
1384
|
if (n.props.open) {
|
|
1332
1385
|
n.requestClose(e);
|
|
1333
1386
|
}
|
|
1334
1387
|
}));
|
|
1335
|
-
|
|
1388
|
+
et(Je(n), "handleAnimationEnd", (function() {
|
|
1336
1389
|
if (n.allowAnimationUpdates) {
|
|
1337
1390
|
n.setState({
|
|
1338
1391
|
animating: false
|
|
1339
1392
|
});
|
|
1340
1393
|
}
|
|
1341
1394
|
}));
|
|
1342
|
-
n.handleScroll =
|
|
1343
|
-
n.handleWindowScroll =
|
|
1344
|
-
n.setPlacement =
|
|
1395
|
+
n.handleScroll = k()(n.setPlacement.bind(Je(n), true), 0);
|
|
1396
|
+
n.handleWindowScroll = k()(n.setPlacement.bind(Je(n), true), 0);
|
|
1397
|
+
n.setPlacement = k()(n.setPlacement, 0, {
|
|
1345
1398
|
leading: false
|
|
1346
1399
|
});
|
|
1347
1400
|
n.state = {
|
|
@@ -1350,7 +1403,7 @@
|
|
|
1350
1403
|
};
|
|
1351
1404
|
return n;
|
|
1352
1405
|
}
|
|
1353
|
-
|
|
1406
|
+
ze(r, [ {
|
|
1354
1407
|
key: "componentDidMount",
|
|
1355
1408
|
value: function e() {
|
|
1356
1409
|
this.handleNewAnchor(this.props.anchor);
|
|
@@ -1382,10 +1435,20 @@
|
|
|
1382
1435
|
this.handleScroll.cancel();
|
|
1383
1436
|
this.allowAnimationUpdates = false;
|
|
1384
1437
|
}
|
|
1438
|
+
}, {
|
|
1439
|
+
key: "shouldRenderArrow",
|
|
1440
|
+
value: function e(t) {
|
|
1441
|
+
var r;
|
|
1442
|
+
var n = this.props, o = n.appearance, a = n.hideArrow, i = n.splunkTheme;
|
|
1443
|
+
var l = i.isPrisma;
|
|
1444
|
+
// if hideArrow or hideArrowContext isn't set, default it to true in Prisma themes
|
|
1445
|
+
var c = (r = a !== null && a !== void 0 ? a : t) !== null && r !== void 0 ? r : l;
|
|
1446
|
+
return o !== "none" && !c;
|
|
1447
|
+
}
|
|
1385
1448
|
}, {
|
|
1386
1449
|
key: "autoCloseWhenOffScreen",
|
|
1387
1450
|
value: function e(t, r) {
|
|
1388
|
-
var n =
|
|
1451
|
+
var n = st(t, r);
|
|
1389
1452
|
if (n) {
|
|
1390
1453
|
this.requestClose({
|
|
1391
1454
|
reason: "offScreen"
|
|
@@ -1405,74 +1468,73 @@
|
|
|
1405
1468
|
key: "render",
|
|
1406
1469
|
value: function e() {
|
|
1407
1470
|
var t = this;
|
|
1408
|
-
var o = this.props, a = o.animation, i = o.animationConfig, l = o.appearance, c = o.children, u = o.closeReasons, f = o.hitAreaRef, s = o.id, p = o.open, h = o.retainFocus
|
|
1409
|
-
var
|
|
1410
|
-
var C =
|
|
1411
|
-
var k = this.state, x = k.maxHeight, T = k.maxWidth;
|
|
1471
|
+
var o = this.props, a = o.animation, i = o.animationConfig, l = o.appearance, c = o.children, u = o.closeReasons, f = o.hitAreaRef, s = o.id, p = o.open, h = o.retainFocus;
|
|
1472
|
+
var d = this.state, v = d.anchorPos, m = d.animating, b = d.arrowStyle, g = d.outerContainerStyle, S = d.placement;
|
|
1473
|
+
var P = this.state, C = P.maxHeight, x = P.maxWidth;
|
|
1412
1474
|
// eslint-disable-line prefer-const
|
|
1413
1475
|
// Accommodate the arrow in the maxHeight and maxWidth.
|
|
1414
1476
|
if (l !== "none") {
|
|
1477
|
+
if (w()(C)) {
|
|
1478
|
+
C -= 20;
|
|
1479
|
+
}
|
|
1415
1480
|
if (w()(x)) {
|
|
1416
1481
|
x -= 20;
|
|
1417
1482
|
}
|
|
1418
|
-
if (w()(T)) {
|
|
1419
|
-
T -= 20;
|
|
1420
|
-
}
|
|
1421
1483
|
}
|
|
1422
|
-
var
|
|
1423
|
-
anchorHeight:
|
|
1424
|
-
anchorWidth:
|
|
1425
|
-
placement:
|
|
1426
|
-
maxHeight:
|
|
1427
|
-
maxWidth:
|
|
1484
|
+
var k = {
|
|
1485
|
+
anchorHeight: v ? v.height : null,
|
|
1486
|
+
anchorWidth: v ? v.width : null,
|
|
1487
|
+
placement: S || null,
|
|
1488
|
+
maxHeight: C || null,
|
|
1489
|
+
maxWidth: x || null
|
|
1428
1490
|
};
|
|
1429
|
-
var
|
|
1491
|
+
var A = a ? {
|
|
1430
1492
|
opacity: p ? 1 : 0
|
|
1431
1493
|
} : {
|
|
1432
1494
|
opacity: 1
|
|
1433
1495
|
};
|
|
1434
|
-
var
|
|
1435
|
-
var
|
|
1436
|
-
var
|
|
1437
|
-
var
|
|
1496
|
+
var W = ge();
|
|
1497
|
+
var q = p || m;
|
|
1498
|
+
var H = this.context || W;
|
|
1499
|
+
var _ = H !== W;
|
|
1438
1500
|
// EventListeners only need to be rendered when open,
|
|
1439
1501
|
// otherwise leads to negative performance impacts
|
|
1440
|
-
var
|
|
1441
|
-
target:
|
|
1502
|
+
var D = q ? [ _ && n().createElement(M(), {
|
|
1503
|
+
target: H,
|
|
1442
1504
|
eventType: "scroll",
|
|
1443
1505
|
listener: this.handleScroll,
|
|
1444
|
-
options:
|
|
1506
|
+
options: it,
|
|
1445
1507
|
key: "eventListener"
|
|
1446
|
-
}), n().createElement(
|
|
1447
|
-
target:
|
|
1508
|
+
}), n().createElement(M(), {
|
|
1509
|
+
target: W,
|
|
1448
1510
|
eventType: "resize",
|
|
1449
1511
|
listener: this.setPlacement,
|
|
1450
1512
|
key: "eventListenerOnWindowResize"
|
|
1451
|
-
}), n().createElement(
|
|
1452
|
-
target:
|
|
1513
|
+
}), n().createElement(M(), {
|
|
1514
|
+
target: W,
|
|
1453
1515
|
eventType: "scroll",
|
|
1454
1516
|
listener: this.handleWindowScroll,
|
|
1455
|
-
options:
|
|
1517
|
+
options: it,
|
|
1456
1518
|
key: "eventListenerOnWindowScroll"
|
|
1457
1519
|
}) ] : [];
|
|
1458
|
-
return [].concat(
|
|
1520
|
+
return [].concat(D, [ n().createElement(R(), {
|
|
1459
1521
|
closeReasons: y()(u.filter((function(e) {
|
|
1460
1522
|
return e !== "offScreen";
|
|
1461
1523
|
})), R().possibleCloseReasons),
|
|
1462
|
-
open:
|
|
1524
|
+
open: q,
|
|
1463
1525
|
onRequestClose: this.handleRequestClose,
|
|
1464
1526
|
key: "Layer"
|
|
1465
|
-
},
|
|
1466
|
-
anchorRect:
|
|
1527
|
+
}, q && this.innerContainerEl && f && n().createElement(ve, {
|
|
1528
|
+
anchorRect: v,
|
|
1467
1529
|
popoverEl: this.innerContainerEl,
|
|
1468
|
-
popoverPlacement:
|
|
1530
|
+
popoverPlacement: S,
|
|
1469
1531
|
ref: f
|
|
1470
|
-
}),
|
|
1532
|
+
}), q && n().createElement(T.Spring, {
|
|
1471
1533
|
from: {
|
|
1472
1534
|
opacity: a ? 0 : 1
|
|
1473
1535
|
},
|
|
1474
|
-
to:
|
|
1475
|
-
config:
|
|
1536
|
+
to: A,
|
|
1537
|
+
config: De({
|
|
1476
1538
|
tension: 300,
|
|
1477
1539
|
friction: 20,
|
|
1478
1540
|
clamp: true
|
|
@@ -1480,39 +1542,44 @@
|
|
|
1480
1542
|
onRest: this.handleAnimationEnd
|
|
1481
1543
|
}, (function(e) {
|
|
1482
1544
|
|
|
1483
|
-
return n().createElement(
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1545
|
+
return n().createElement(z.Consumer, null, (function(o) {
|
|
1546
|
+
var a = o.hideArrow;
|
|
1547
|
+
|
|
1548
|
+
return n().createElement(ee, {
|
|
1549
|
+
"data-test": "outer-popover",
|
|
1550
|
+
style: De(De({}, g), e),
|
|
1551
|
+
ref: t.handleOuterContainerMount
|
|
1552
|
+
}, n().createElement(re, We({
|
|
1553
|
+
$appearance: l,
|
|
1554
|
+
$open: p,
|
|
1555
|
+
"data-test": "popover",
|
|
1556
|
+
ref: t.handleInnerContainerMount,
|
|
1557
|
+
id: s,
|
|
1558
|
+
onKeyDown: t.handleTab
|
|
1559
|
+
}, j()(t.props, [ "anchor" ].concat(Me(E()(r.propTypes))))), n().createElement(Y.Provider, {
|
|
1560
|
+
value: {
|
|
1561
|
+
retainFocus: h
|
|
1562
|
+
}
|
|
1563
|
+
}, n().createElement(n().Fragment, null, l === "none" && c, t.shouldRenderArrow(a) && n().createElement(oe, {
|
|
1564
|
+
"data-test": "popover-arrow",
|
|
1565
|
+
$appearance: l,
|
|
1566
|
+
ref: t.handleArrowMount,
|
|
1567
|
+
style: b
|
|
1568
|
+
}), l !== "none" && n().createElement(ne, {
|
|
1569
|
+
$appearance: l
|
|
1570
|
+
}, O()(c) ? c(k) : c)))));
|
|
1571
|
+
}));
|
|
1505
1572
|
}))) ]);
|
|
1506
1573
|
}
|
|
1507
1574
|
} ]);
|
|
1508
1575
|
return r;
|
|
1509
1576
|
}(r.Component);
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
var
|
|
1514
|
-
|
|
1515
|
-
/* harmony default export */ const
|
|
1577
|
+
et(pt, "contextType", _());
|
|
1578
|
+
et(pt, "defaultProps", at);
|
|
1579
|
+
et(pt, "propTypes", ot);
|
|
1580
|
+
var ht = (0, A.withSplunkTheme)(pt);
|
|
1581
|
+
ht.propTypes = pt.propTypes;
|
|
1582
|
+
/* harmony default export */ const dt = ht;
|
|
1516
1583
|
// CONCATENATED MODULE: ./src/Popover/index.ts
|
|
1517
1584
|
module.exports = t;
|
|
1518
1585
|
/******/})();
|