@splunk/react-ui 4.41.0 → 4.43.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 +1 -3
- package/CHANGELOG.md +47 -0
- package/Code.js +611 -426
- package/ComboBox.js +25 -32
- package/Date.js +21 -26
- package/Dropdown.js +33 -32
- package/JSONTree.js +30 -24
- package/Layer.js +115 -97
- package/Link.js +19 -21
- package/MIGRATION.mdx +48 -53
- package/Menu.js +7 -2
- package/MessageBar.js +54 -56
- package/Multiselect.js +1051 -1035
- package/Number.js +424 -395
- package/Paginator.js +269 -251
- package/Popover.js +595 -526
- package/RadioList.js +44 -43
- package/Resize.js +61 -61
- package/ResultsMenu.d.ts +2 -0
- package/ResultsMenu.js +4 -4
- package/Scroll.js +482 -475
- package/Search.js +56 -65
- package/Select.js +532 -513
- package/TabBar.js +4 -0
- package/Table.js +1519 -1437
- package/Text.js +29 -17
- package/TextArea.js +37 -37
- package/Tooltip.js +300 -207
- package/TransitionOpen.js +16 -14
- package/Tree.js +20 -14
- package/package.json +7 -7
- package/types/src/Button/Button.d.ts +1 -0
- package/types/src/ButtonGroup/ButtonGroup.d.ts +0 -4
- 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 +0 -1
- package/types/src/Dropdown/Dropdown.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +2 -0
- package/types/src/Layer/Layer.d.ts +2 -1
- package/types/src/Link/Link.d.ts +0 -2
- package/types/src/Multiselect/Multiselect.d.ts +2 -0
- package/types/src/Number/Number.d.ts +11 -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 +18 -12
- 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/Resize/Resize.d.ts +0 -11
- package/types/src/Scroll/Inner.d.ts +17 -19
- package/types/src/Select/SelectBase.d.ts +7 -5
- 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/Table/ExpandButton.d.ts +8 -0
- package/types/src/Table/HeadDropdownCell.d.ts +2 -0
- package/types/src/Table/HeadInner.d.ts +5 -1
- package/types/src/Table/Row.d.ts +8 -2
- 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/types/src/Tooltip/Tooltip.d.ts +38 -5
- package/types/src/Tooltip/docs/examples/CustomProps.d.ts +2 -0
- package/types/src/Tooltip/docs/examples/Toggletip.d.ts +2 -0
- package/types/src/useControlled/useControlled.d.ts +5 -4
- package/useControlled.js +37 -15
- package/usePrevious.js +62 -30
- package/useResizeObserver.js +122 -90
- package/useRovingFocus.js +5 -4
- package/types/src/Dropdown/docs/examples/OtherToggles.d.ts +0 -2
- package/types/src/Popover/PopoverContext.d.ts +0 -6
- package/types/src/Table/icons/ExpansionRow.d.ts +0 -6
- package/types/src/Tooltip/docs/examples/CustomContent.d.ts +0 -2
package/Popover.js
CHANGED
|
@@ -61,8 +61,10 @@
|
|
|
61
61
|
e.r(t);
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(t, {
|
|
64
|
-
PopoverContext: () => /* reexport */
|
|
65
|
-
|
|
64
|
+
PopoverContext: () => /* reexport */ z,
|
|
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");
|
|
@@ -76,11 +78,11 @@
|
|
|
76
78
|
const l = require("lodash/clamp");
|
|
77
79
|
var c = e.n(l);
|
|
78
80
|
// CONCATENATED MODULE: external "lodash/defer"
|
|
79
|
-
const
|
|
80
|
-
var
|
|
81
|
+
const u = require("lodash/defer");
|
|
82
|
+
var f = e.n(u);
|
|
81
83
|
// CONCATENATED MODULE: external "lodash/every"
|
|
82
|
-
const
|
|
83
|
-
var p = e.n(
|
|
84
|
+
const s = require("lodash/every");
|
|
85
|
+
var p = e.n(s);
|
|
84
86
|
// CONCATENATED MODULE: external "lodash/has"
|
|
85
87
|
const h = require("lodash/has");
|
|
86
88
|
var d = e.n(h);
|
|
@@ -103,33 +105,33 @@
|
|
|
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
111
|
const A = require("@splunk/themes");
|
|
110
112
|
// CONCATENATED MODULE: external "@splunk/react-ui/Animation"
|
|
111
113
|
const T = require("@splunk/react-ui/Animation");
|
|
112
114
|
// CONCATENATED MODULE: external "@splunk/react-ui/EventListener"
|
|
113
|
-
const
|
|
114
|
-
var
|
|
115
|
+
const W = require("@splunk/react-ui/EventListener");
|
|
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);
|
|
121
123
|
// CONCATENATED MODULE: external "@splunk/ui-utils/focus"
|
|
122
|
-
const
|
|
124
|
+
const D = require("@splunk/ui-utils/focus");
|
|
123
125
|
// CONCATENATED MODULE: ./src/Popover/getPlacement.ts
|
|
124
|
-
function
|
|
126
|
+
function I(e) {
|
|
125
127
|
"@babel/helpers - typeof";
|
|
126
|
-
return
|
|
128
|
+
return I = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
127
129
|
return typeof e;
|
|
128
130
|
} : function(e) {
|
|
129
131
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
130
|
-
},
|
|
132
|
+
}, I(e);
|
|
131
133
|
}
|
|
132
|
-
function
|
|
134
|
+
function L(e, t) {
|
|
133
135
|
var r = Object.keys(e);
|
|
134
136
|
if (Object.getOwnPropertySymbols) {
|
|
135
137
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -139,18 +141,18 @@
|
|
|
139
141
|
}
|
|
140
142
|
return r;
|
|
141
143
|
}
|
|
142
|
-
function
|
|
144
|
+
function F(e) {
|
|
143
145
|
for (var t = 1; t < arguments.length; t++) {
|
|
144
146
|
var r = null != arguments[t] ? arguments[t] : {};
|
|
145
|
-
t % 2 ?
|
|
146
|
-
|
|
147
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
147
|
+
t % 2 ? L(Object(r), !0).forEach((function(t) {
|
|
148
|
+
N(e, t, r[t]);
|
|
149
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : L(Object(r)).forEach((function(t) {
|
|
148
150
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
149
151
|
}));
|
|
150
152
|
}
|
|
151
153
|
return e;
|
|
152
154
|
}
|
|
153
|
-
function
|
|
155
|
+
function N(e, t, r) {
|
|
154
156
|
return (t = $(t)) in e ? Object.defineProperty(e, t, {
|
|
155
157
|
value: r,
|
|
156
158
|
enumerable: !0,
|
|
@@ -159,20 +161,20 @@
|
|
|
159
161
|
}) : e[t] = r, e;
|
|
160
162
|
}
|
|
161
163
|
function $(e) {
|
|
162
|
-
var t =
|
|
163
|
-
return "symbol" ==
|
|
164
|
+
var t = V(e, "string");
|
|
165
|
+
return "symbol" == I(t) ? t : t + "";
|
|
164
166
|
}
|
|
165
|
-
function
|
|
166
|
-
if ("object" !=
|
|
167
|
+
function V(e, t) {
|
|
168
|
+
if ("object" != I(e) || !e) return e;
|
|
167
169
|
var r = e[Symbol.toPrimitive];
|
|
168
170
|
if (void 0 !== r) {
|
|
169
171
|
var n = r.call(e, t || "default");
|
|
170
|
-
if ("object" !=
|
|
172
|
+
if ("object" != I(n)) return n;
|
|
171
173
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
172
174
|
}
|
|
173
175
|
return ("string" === t ? String : Number)(e);
|
|
174
176
|
}
|
|
175
|
-
function
|
|
177
|
+
function B(e) {
|
|
176
178
|
var t = e.align, r = e.anchorPos, n = e.outerContainerEl, o = e.padding, a = e.placement;
|
|
177
179
|
switch (a) {
|
|
178
180
|
case "above":
|
|
@@ -211,21 +213,21 @@
|
|
|
211
213
|
throw new Error("".concat(a, " is not a valid placement value. Valid options are: 'above', 'below', 'left', or 'right'"));
|
|
212
214
|
}
|
|
213
215
|
}
|
|
214
|
-
function
|
|
215
|
-
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,
|
|
216
|
-
var
|
|
216
|
+
function U(e) {
|
|
217
|
+
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;
|
|
218
|
+
var s = c === "flip";
|
|
217
219
|
var p = c === "any";
|
|
218
|
-
var h =
|
|
220
|
+
var h = s || p;
|
|
219
221
|
var d = e.placement || a;
|
|
220
222
|
// Translate vertical/horizontal to above/below/left/right
|
|
221
223
|
if (a === "vertical") {
|
|
222
|
-
d = r.top >
|
|
224
|
+
d = r.top > u - r.bottom ? "above" : "below";
|
|
223
225
|
} else if (a === "horizontal") {
|
|
224
|
-
d = r.left >
|
|
226
|
+
d = r.left > f - r.right ? "left" : "right";
|
|
225
227
|
}
|
|
226
228
|
var v = d;
|
|
227
229
|
// Initialize the result variables. These will be mutated as needed and returned.
|
|
228
|
-
var m =
|
|
230
|
+
var m = B({
|
|
229
231
|
align: t,
|
|
230
232
|
anchorPos: r,
|
|
231
233
|
outerContainerEl: i,
|
|
@@ -233,34 +235,34 @@
|
|
|
233
235
|
placement: v
|
|
234
236
|
}), b = m.top, y = m.left;
|
|
235
237
|
var g = "auto";
|
|
236
|
-
var w =
|
|
237
|
-
var S =
|
|
238
|
+
var w = f;
|
|
239
|
+
var S = u;
|
|
238
240
|
var O = v;
|
|
239
241
|
// Boolean convenience variables to simplify positioning logic.
|
|
240
242
|
var P = r.top - i.offsetHeight > 0;
|
|
241
|
-
var E = r.bottom + i.offsetHeight <
|
|
243
|
+
var E = r.bottom + i.offsetHeight < u;
|
|
242
244
|
var C = r.left - i.offsetWidth > 0;
|
|
243
|
-
var j = r.right + i.offsetWidth <
|
|
244
|
-
var
|
|
245
|
-
var
|
|
245
|
+
var j = r.right + i.offsetWidth < f;
|
|
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;
|
|
246
248
|
var A = (t === "edge" ? r.left - l : r.middle - i.offsetWidth / 2) < 0;
|
|
247
249
|
var T = (t === "edge" ? r.top - l : r.top - i.offsetHeight / 2) < 0;
|
|
248
|
-
var
|
|
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") {
|
|
251
253
|
if (!P && h) {
|
|
252
254
|
if (E) {
|
|
253
|
-
return
|
|
255
|
+
return U(F(F({}, e), {}, {
|
|
254
256
|
placement: "below"
|
|
255
257
|
}));
|
|
256
258
|
}
|
|
257
259
|
if (p && j) {
|
|
258
|
-
return
|
|
260
|
+
return U(F(F({}, e), {}, {
|
|
259
261
|
placement: "right"
|
|
260
262
|
}));
|
|
261
263
|
}
|
|
262
264
|
if (p && C) {
|
|
263
|
-
return
|
|
265
|
+
return U(F(F({}, e), {}, {
|
|
264
266
|
placement: "left"
|
|
265
267
|
}));
|
|
266
268
|
}
|
|
@@ -270,14 +272,14 @@
|
|
|
270
272
|
}
|
|
271
273
|
}
|
|
272
274
|
if (O !== "misaligned") {
|
|
273
|
-
g =
|
|
275
|
+
g = u - b - i.offsetHeight;
|
|
274
276
|
if (n) {
|
|
275
|
-
g = Math.min(g,
|
|
277
|
+
g = Math.min(g, u - n.top);
|
|
276
278
|
}
|
|
277
279
|
b = "auto";
|
|
278
280
|
}
|
|
279
|
-
if (
|
|
280
|
-
y = Math.max(
|
|
281
|
+
if (k) {
|
|
282
|
+
y = Math.max(f - i.offsetWidth, 0);
|
|
281
283
|
} else if (A) {
|
|
282
284
|
y = 0;
|
|
283
285
|
}
|
|
@@ -287,18 +289,18 @@
|
|
|
287
289
|
}
|
|
288
290
|
if (O === "below") {
|
|
289
291
|
if (!E && h) {
|
|
290
|
-
if (P &&
|
|
291
|
-
return
|
|
292
|
+
if (P && x) {
|
|
293
|
+
return U(F(F({}, e), {}, {
|
|
292
294
|
placement: "above"
|
|
293
295
|
}));
|
|
294
296
|
}
|
|
295
297
|
if (p && j) {
|
|
296
|
-
return
|
|
298
|
+
return U(F(F({}, e), {}, {
|
|
297
299
|
placement: "right"
|
|
298
300
|
}));
|
|
299
301
|
}
|
|
300
302
|
if (p && C) {
|
|
301
|
-
return
|
|
303
|
+
return U(F(F({}, e), {}, {
|
|
302
304
|
placement: "left"
|
|
303
305
|
}));
|
|
304
306
|
}
|
|
@@ -310,29 +312,29 @@
|
|
|
310
312
|
if (n) {
|
|
311
313
|
b = Math.min(b, n.bottom);
|
|
312
314
|
}
|
|
313
|
-
if (
|
|
314
|
-
y = Math.max(
|
|
315
|
+
if (k) {
|
|
316
|
+
y = Math.max(f - i.offsetWidth, 0);
|
|
315
317
|
} else if (A) {
|
|
316
318
|
y = 0;
|
|
317
319
|
}
|
|
318
320
|
if (!o) {
|
|
319
|
-
S =
|
|
321
|
+
S = u - r.bottom;
|
|
320
322
|
}
|
|
321
323
|
}
|
|
322
324
|
if (O === "left") {
|
|
323
325
|
if (!C && h) {
|
|
324
326
|
if (j) {
|
|
325
|
-
return
|
|
327
|
+
return U(F(F({}, e), {}, {
|
|
326
328
|
placement: "right"
|
|
327
329
|
}));
|
|
328
330
|
}
|
|
329
331
|
if (p && E) {
|
|
330
|
-
return
|
|
332
|
+
return U(F(F({}, e), {}, {
|
|
331
333
|
placement: "below"
|
|
332
334
|
}));
|
|
333
335
|
}
|
|
334
336
|
if (p && P) {
|
|
335
|
-
return
|
|
337
|
+
return U(F(F({}, e), {}, {
|
|
336
338
|
placement: "above"
|
|
337
339
|
}));
|
|
338
340
|
}
|
|
@@ -343,8 +345,8 @@
|
|
|
343
345
|
}
|
|
344
346
|
if (T) {
|
|
345
347
|
b = 0;
|
|
346
|
-
} else if (
|
|
347
|
-
b = Math.max(
|
|
348
|
+
} else if (W) {
|
|
349
|
+
b = Math.max(u - i.offsetHeight, 0);
|
|
348
350
|
}
|
|
349
351
|
if (!o) {
|
|
350
352
|
w = r.left;
|
|
@@ -353,17 +355,17 @@
|
|
|
353
355
|
if (O === "right") {
|
|
354
356
|
if (!j && h) {
|
|
355
357
|
if (C) {
|
|
356
|
-
return
|
|
358
|
+
return U(F(F({}, e), {}, {
|
|
357
359
|
placement: "left"
|
|
358
360
|
}));
|
|
359
361
|
}
|
|
360
362
|
if (p && E) {
|
|
361
|
-
return
|
|
363
|
+
return U(F(F({}, e), {}, {
|
|
362
364
|
placement: "below"
|
|
363
365
|
}));
|
|
364
366
|
}
|
|
365
367
|
if (p && P) {
|
|
366
|
-
return
|
|
368
|
+
return U(F(F({}, e), {}, {
|
|
367
369
|
placement: "above"
|
|
368
370
|
}));
|
|
369
371
|
}
|
|
@@ -374,11 +376,11 @@
|
|
|
374
376
|
}
|
|
375
377
|
if (T) {
|
|
376
378
|
b = 0;
|
|
377
|
-
} else if (
|
|
378
|
-
b = Math.max(
|
|
379
|
+
} else if (W) {
|
|
380
|
+
b = Math.max(u - i.offsetHeight, 0);
|
|
379
381
|
}
|
|
380
382
|
if (!o) {
|
|
381
|
-
w =
|
|
383
|
+
w = f - r.left;
|
|
382
384
|
}
|
|
383
385
|
}
|
|
384
386
|
return {
|
|
@@ -392,33 +394,56 @@
|
|
|
392
394
|
}
|
|
393
395
|
};
|
|
394
396
|
}
|
|
395
|
-
// CONCATENATED MODULE: ./src/Popover/
|
|
396
|
-
var
|
|
397
|
+
// CONCATENATED MODULE: ./src/Popover/PopoverProvider.tsx
|
|
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
430
|
})([ "position:fixed;z-index:", ";left:-300%;top:-300%;" ], A.variables.zindexPopover);
|
|
411
|
-
|
|
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
449
|
})([ "border-radius:", ";background-color:", ";color:", ";", "" ], A.variables.borderRadius, (0,
|
|
@@ -429,11 +454,7 @@
|
|
|
429
454
|
light: A.variables.gray20,
|
|
430
455
|
dark: A.variables.white
|
|
431
456
|
},
|
|
432
|
-
|
|
433
|
-
prisma: {
|
|
434
|
-
light: "#27292e",
|
|
435
|
-
dark: A.variables.white
|
|
436
|
-
}
|
|
457
|
+
prisma: te
|
|
437
458
|
}
|
|
438
459
|
}), (0, A.pickVariant)("$appearance", {
|
|
439
460
|
normal: A.variables.contentColorDefault,
|
|
@@ -445,63 +466,75 @@
|
|
|
445
466
|
prisma: A.variables.contentColorInverted
|
|
446
467
|
}
|
|
447
468
|
}), (0, A.pickVariant)("$appearance", {
|
|
448
|
-
normal: (0,
|
|
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
|
-
A.
|
|
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
|
|
473
|
-
displayName: "PopoverStyles__StyledLowerRightCorner",
|
|
474
|
-
componentId: "sc-1nahsvw-4"
|
|
475
|
-
})([ "position:fixed;right:0;bottom:0;" ]);
|
|
476
|
-
var re = Y().svg.withConfig({
|
|
509
|
+
var ae = Q().svg.withConfig({
|
|
477
510
|
displayName: "PopoverStyles__StyledHitArea",
|
|
478
|
-
componentId: "sc-1nahsvw-
|
|
511
|
+
componentId: "sc-1nahsvw-4"
|
|
479
512
|
})([ "position:fixed;pointer-events:none;path{pointer-events:auto;stroke-width:0;stroke:transparent;fill:transparent;}" ]);
|
|
480
513
|
// CONCATENATED MODULE: ./src/Popover/PopoverHitArea.tsx
|
|
481
|
-
function
|
|
482
|
-
return
|
|
514
|
+
function ie(e, t) {
|
|
515
|
+
return se(e) || fe(e, t) || ce(e, t) || le();
|
|
483
516
|
}
|
|
484
|
-
function
|
|
517
|
+
function le() {
|
|
485
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.");
|
|
486
519
|
}
|
|
487
|
-
function
|
|
520
|
+
function ce(e, t) {
|
|
488
521
|
if (e) {
|
|
489
|
-
if ("string" == typeof e) return
|
|
522
|
+
if ("string" == typeof e) return ue(e, t);
|
|
490
523
|
var r = {}.toString.call(e).slice(8, -1);
|
|
491
|
-
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;
|
|
492
525
|
}
|
|
493
526
|
}
|
|
494
|
-
function
|
|
527
|
+
function ue(e, t) {
|
|
495
528
|
(null == t || t > e.length) && (t = e.length);
|
|
496
529
|
for (var r = 0, n = Array(t); r < t; r++) {
|
|
497
530
|
n[r] = e[r];
|
|
498
531
|
}
|
|
499
532
|
return n;
|
|
500
533
|
}
|
|
501
|
-
function
|
|
534
|
+
function fe(e, t) {
|
|
502
535
|
var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
503
536
|
if (null != r) {
|
|
504
|
-
var n, o, a, i, l = [], c = !0,
|
|
537
|
+
var n, o, a, i, l = [], c = !0, u = !1;
|
|
505
538
|
try {
|
|
506
539
|
if (a = (r = r.call(e)).next, 0 === t) {
|
|
507
540
|
if (Object(r) !== r) return;
|
|
@@ -509,26 +542,26 @@
|
|
|
509
542
|
} else for (;!(c = (n = a.call(r)).done) && (l.push(n.value), l.length !== t); c = !0) {
|
|
510
543
|
}
|
|
511
544
|
} catch (e) {
|
|
512
|
-
|
|
545
|
+
u = !0, o = e;
|
|
513
546
|
} finally {
|
|
514
547
|
try {
|
|
515
548
|
if (!c && null != r["return"] && (i = r["return"](), Object(i) !== i)) return;
|
|
516
549
|
} finally {
|
|
517
|
-
if (
|
|
550
|
+
if (u) throw o;
|
|
518
551
|
}
|
|
519
552
|
}
|
|
520
553
|
return l;
|
|
521
554
|
}
|
|
522
555
|
}
|
|
523
|
-
function
|
|
556
|
+
function se(e) {
|
|
524
557
|
if (Array.isArray(e)) return e;
|
|
525
558
|
}
|
|
526
|
-
var
|
|
559
|
+
var pe = {
|
|
527
560
|
anchorRect: a().object,
|
|
528
561
|
popoverEl: a().object,
|
|
529
562
|
popoverPlacement: a().oneOf([ "above", "below", "left", "right", "misaligned" ])
|
|
530
563
|
};
|
|
531
|
-
var
|
|
564
|
+
var he = function e(t) {
|
|
532
565
|
var r = t.anchorRect, n = t.popoverEl, o = t.popoverPlacement;
|
|
533
566
|
if (r != null && n != null && o != null) {
|
|
534
567
|
var a = n.getBoundingClientRect();
|
|
@@ -540,13 +573,13 @@
|
|
|
540
573
|
l = 0;
|
|
541
574
|
c = r.height;
|
|
542
575
|
}
|
|
543
|
-
var
|
|
544
|
-
var
|
|
545
|
-
var
|
|
576
|
+
var u = "0 ".concat(l);
|
|
577
|
+
var f = "".concat(a.width, " ").concat(l);
|
|
578
|
+
var s = "".concat(i, " ").concat(l);
|
|
546
579
|
var p = "".concat(i, " ").concat(c);
|
|
547
580
|
var h = "".concat(i + r.width, " ").concat(l);
|
|
548
581
|
var d = "".concat(i + r.width, " ").concat(c);
|
|
549
|
-
var v = "\n M ".concat(
|
|
582
|
+
var v = "\n M ".concat(u, "\n S ").concat(s, " , ").concat(p, "\n L ").concat(s, "\n L ").concat(h, "\n L ").concat(d, "\n S ").concat(h, " , ").concat(f, "\n ");
|
|
550
583
|
return {
|
|
551
584
|
hitAreaPath: v,
|
|
552
585
|
hitAreaStyle: {
|
|
@@ -588,36 +621,36 @@
|
|
|
588
621
|
hitAreaStyle: {}
|
|
589
622
|
};
|
|
590
623
|
};
|
|
591
|
-
var
|
|
624
|
+
var de = n().forwardRef((function(e, t) {
|
|
592
625
|
var o = e.anchorRect, a = e.popoverEl, i = e.popoverPlacement;
|
|
593
|
-
var l = (0, r.useState)(null), c =
|
|
594
|
-
var
|
|
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];
|
|
595
628
|
(0, r.useEffect)((function() {
|
|
596
|
-
var e =
|
|
629
|
+
var e = he({
|
|
597
630
|
anchorRect: o,
|
|
598
631
|
popoverEl: a,
|
|
599
632
|
popoverPlacement: i
|
|
600
633
|
}), t = e.hitAreaPath, r = e.hitAreaStyle;
|
|
601
|
-
|
|
634
|
+
f(t);
|
|
602
635
|
d(r);
|
|
603
636
|
}), [ o, a, i ]);
|
|
604
|
-
if (
|
|
637
|
+
if (u != null) {
|
|
605
638
|
|
|
606
|
-
return n().createElement(
|
|
639
|
+
return n().createElement(ae, {
|
|
607
640
|
"data-test": "popover-hit-area",
|
|
608
641
|
style: h
|
|
609
642
|
}, n().createElement("path", {
|
|
610
|
-
d:
|
|
643
|
+
d: u,
|
|
611
644
|
ref: t
|
|
612
645
|
}));
|
|
613
646
|
}
|
|
614
647
|
return null;
|
|
615
648
|
}));
|
|
616
|
-
|
|
617
|
-
/* harmony default export */ const
|
|
649
|
+
de.propTypes = pe;
|
|
650
|
+
/* harmony default export */ const ve = de;
|
|
618
651
|
// CONCATENATED MODULE: ./src/utils/ssrDocument.ts
|
|
619
652
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
620
|
-
var
|
|
653
|
+
var me = {
|
|
621
654
|
body: {
|
|
622
655
|
appendChild: function e() {
|
|
623
656
|
return [];
|
|
@@ -671,14 +704,14 @@
|
|
|
671
704
|
search: ""
|
|
672
705
|
}
|
|
673
706
|
};
|
|
674
|
-
function
|
|
675
|
-
var e = typeof document !== "undefined" ? document :
|
|
707
|
+
function be() {
|
|
708
|
+
var e = typeof document !== "undefined" ? document : me;
|
|
676
709
|
return e;
|
|
677
710
|
}
|
|
678
711
|
// CONCATENATED MODULE: ./src/utils/ssrWindow.ts
|
|
679
712
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
680
|
-
var
|
|
681
|
-
document:
|
|
713
|
+
var ye = {
|
|
714
|
+
document: me,
|
|
682
715
|
navigator: {
|
|
683
716
|
userAgent: ""
|
|
684
717
|
},
|
|
@@ -732,20 +765,20 @@
|
|
|
732
765
|
clearTimeout(t);
|
|
733
766
|
}
|
|
734
767
|
};
|
|
735
|
-
function
|
|
736
|
-
var e = typeof window !== "undefined" ? window :
|
|
768
|
+
function ge() {
|
|
769
|
+
var e = typeof window !== "undefined" ? window : ye;
|
|
737
770
|
return e;
|
|
738
771
|
}
|
|
739
772
|
// CONCATENATED MODULE: ./src/utils/getBoundingClientRect.ts
|
|
740
|
-
function
|
|
773
|
+
function we(e) {
|
|
741
774
|
"@babel/helpers - typeof";
|
|
742
|
-
return
|
|
775
|
+
return we = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
743
776
|
return typeof e;
|
|
744
777
|
} : function(e) {
|
|
745
778
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
746
|
-
},
|
|
779
|
+
}, we(e);
|
|
747
780
|
}
|
|
748
|
-
function
|
|
781
|
+
function Se(e, t) {
|
|
749
782
|
var r = Object.keys(e);
|
|
750
783
|
if (Object.getOwnPropertySymbols) {
|
|
751
784
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -755,46 +788,46 @@
|
|
|
755
788
|
}
|
|
756
789
|
return r;
|
|
757
790
|
}
|
|
758
|
-
function
|
|
791
|
+
function Oe(e) {
|
|
759
792
|
for (var t = 1; t < arguments.length; t++) {
|
|
760
793
|
var r = null != arguments[t] ? arguments[t] : {};
|
|
761
|
-
t % 2 ?
|
|
762
|
-
|
|
763
|
-
})) : 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) {
|
|
764
797
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
765
798
|
}));
|
|
766
799
|
}
|
|
767
800
|
return e;
|
|
768
801
|
}
|
|
769
|
-
function
|
|
770
|
-
return (t =
|
|
802
|
+
function Pe(e, t, r) {
|
|
803
|
+
return (t = Ee(t)) in e ? Object.defineProperty(e, t, {
|
|
771
804
|
value: r,
|
|
772
805
|
enumerable: !0,
|
|
773
806
|
configurable: !0,
|
|
774
807
|
writable: !0
|
|
775
808
|
}) : e[t] = r, e;
|
|
776
809
|
}
|
|
777
|
-
function
|
|
778
|
-
var t =
|
|
779
|
-
return "symbol" ==
|
|
810
|
+
function Ee(e) {
|
|
811
|
+
var t = Ce(e, "string");
|
|
812
|
+
return "symbol" == we(t) ? t : t + "";
|
|
780
813
|
}
|
|
781
|
-
function
|
|
782
|
-
if ("object" !=
|
|
814
|
+
function Ce(e, t) {
|
|
815
|
+
if ("object" != we(e) || !e) return e;
|
|
783
816
|
var r = e[Symbol.toPrimitive];
|
|
784
817
|
if (void 0 !== r) {
|
|
785
818
|
var n = r.call(e, t || "default");
|
|
786
|
-
if ("object" !=
|
|
819
|
+
if ("object" != we(n)) return n;
|
|
787
820
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
788
821
|
}
|
|
789
822
|
return ("string" === t ? String : Number)(e);
|
|
790
823
|
}
|
|
791
824
|
// Checks if browser is Safari
|
|
792
|
-
function
|
|
825
|
+
function je() {
|
|
793
826
|
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
794
827
|
}
|
|
795
828
|
// Formats return value to DOMRect
|
|
796
|
-
function
|
|
797
|
-
return
|
|
829
|
+
function xe(e) {
|
|
830
|
+
return Oe(Oe({}, e), {}, {
|
|
798
831
|
top: e.y,
|
|
799
832
|
left: e.x,
|
|
800
833
|
right: e.x + e.width,
|
|
@@ -808,20 +841,20 @@
|
|
|
808
841
|
* @param {boolean} offsets - Use when position of element relative to the layout viewport offsets are needed for Safari.
|
|
809
842
|
* @returns {Omit<DOMRect, 'toJSON'>}
|
|
810
843
|
* @public
|
|
811
|
-
*/ function
|
|
844
|
+
*/ function ke(e, t) {
|
|
812
845
|
var r, n;
|
|
813
846
|
var o = e.getBoundingClientRect();
|
|
814
|
-
var a =
|
|
847
|
+
var a = je();
|
|
815
848
|
if (!t || !a) {
|
|
816
849
|
return o;
|
|
817
850
|
}
|
|
818
|
-
var i =
|
|
851
|
+
var i = ge();
|
|
819
852
|
var l = o.left + (((r = i.visualViewport) === null || r === void 0 ? void 0 : r.offsetLeft) || 0);
|
|
820
853
|
var c = o.top + (((n = i.visualViewport) === null || n === void 0 ? void 0 : n.offsetTop) || 0);
|
|
821
|
-
var
|
|
822
|
-
return
|
|
823
|
-
width:
|
|
824
|
-
height:
|
|
854
|
+
var u = o.width, f = o.height;
|
|
855
|
+
return xe({
|
|
856
|
+
width: u,
|
|
857
|
+
height: f,
|
|
825
858
|
x: l,
|
|
826
859
|
y: c
|
|
827
860
|
});
|
|
@@ -833,7 +866,7 @@
|
|
|
833
866
|
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
834
867
|
* @param current - The new value of the ref.
|
|
835
868
|
*/
|
|
836
|
-
function
|
|
869
|
+
function Ae(e, t) {
|
|
837
870
|
if (e) {
|
|
838
871
|
if (typeof e === "function") {
|
|
839
872
|
e(t);
|
|
@@ -846,16 +879,16 @@
|
|
|
846
879
|
}
|
|
847
880
|
}
|
|
848
881
|
// CONCATENATED MODULE: ./src/Popover/Popover.tsx
|
|
849
|
-
function
|
|
882
|
+
function Te(e) {
|
|
850
883
|
"@babel/helpers - typeof";
|
|
851
|
-
return
|
|
884
|
+
return Te = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
852
885
|
return typeof e;
|
|
853
886
|
} : function(e) {
|
|
854
887
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
855
|
-
},
|
|
888
|
+
}, Te(e);
|
|
856
889
|
}
|
|
857
|
-
function
|
|
858
|
-
return
|
|
890
|
+
function We() {
|
|
891
|
+
return We = Object.assign ? Object.assign.bind() : function(e) {
|
|
859
892
|
for (var t = 1; t < arguments.length; t++) {
|
|
860
893
|
var r = arguments[t];
|
|
861
894
|
for (var n in r) {
|
|
@@ -863,21 +896,21 @@
|
|
|
863
896
|
}
|
|
864
897
|
}
|
|
865
898
|
return e;
|
|
866
|
-
},
|
|
899
|
+
}, We.apply(null, arguments);
|
|
867
900
|
}
|
|
868
|
-
function
|
|
869
|
-
return
|
|
901
|
+
function Me(e) {
|
|
902
|
+
return He(e) || Re(e) || Fe(e) || qe();
|
|
870
903
|
}
|
|
871
|
-
function
|
|
904
|
+
function qe() {
|
|
872
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.");
|
|
873
906
|
}
|
|
874
|
-
function
|
|
907
|
+
function Re(e) {
|
|
875
908
|
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
|
|
876
909
|
}
|
|
877
|
-
function
|
|
878
|
-
if (Array.isArray(e)) return
|
|
910
|
+
function He(e) {
|
|
911
|
+
if (Array.isArray(e)) return Ne(e);
|
|
879
912
|
}
|
|
880
|
-
function
|
|
913
|
+
function _e(e, t) {
|
|
881
914
|
var r = Object.keys(e);
|
|
882
915
|
if (Object.getOwnPropertySymbols) {
|
|
883
916
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -887,41 +920,41 @@
|
|
|
887
920
|
}
|
|
888
921
|
return r;
|
|
889
922
|
}
|
|
890
|
-
function
|
|
923
|
+
function De(e) {
|
|
891
924
|
for (var t = 1; t < arguments.length; t++) {
|
|
892
925
|
var r = null != arguments[t] ? arguments[t] : {};
|
|
893
|
-
t % 2 ?
|
|
894
|
-
|
|
895
|
-
})) : 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) {
|
|
896
929
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
897
930
|
}));
|
|
898
931
|
}
|
|
899
932
|
return e;
|
|
900
933
|
}
|
|
901
|
-
function
|
|
902
|
-
return
|
|
934
|
+
function Ie(e, t) {
|
|
935
|
+
return Ve(e) || $e(e, t) || Fe(e, t) || Le();
|
|
903
936
|
}
|
|
904
|
-
function
|
|
937
|
+
function Le() {
|
|
905
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.");
|
|
906
939
|
}
|
|
907
|
-
function
|
|
940
|
+
function Fe(e, t) {
|
|
908
941
|
if (e) {
|
|
909
|
-
if ("string" == typeof e) return
|
|
942
|
+
if ("string" == typeof e) return Ne(e, t);
|
|
910
943
|
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) ?
|
|
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;
|
|
912
945
|
}
|
|
913
946
|
}
|
|
914
|
-
function
|
|
947
|
+
function Ne(e, t) {
|
|
915
948
|
(null == t || t > e.length) && (t = e.length);
|
|
916
949
|
for (var r = 0, n = Array(t); r < t; r++) {
|
|
917
950
|
n[r] = e[r];
|
|
918
951
|
}
|
|
919
952
|
return n;
|
|
920
953
|
}
|
|
921
|
-
function
|
|
954
|
+
function $e(e, t) {
|
|
922
955
|
var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
923
956
|
if (null != r) {
|
|
924
|
-
var n, o, a, i, l = [], c = !0,
|
|
957
|
+
var n, o, a, i, l = [], c = !0, u = !1;
|
|
925
958
|
try {
|
|
926
959
|
if (a = (r = r.call(e)).next, 0 === t) {
|
|
927
960
|
if (Object(r) !== r) return;
|
|
@@ -929,36 +962,36 @@
|
|
|
929
962
|
} else for (;!(c = (n = a.call(r)).done) && (l.push(n.value), l.length !== t); c = !0) {
|
|
930
963
|
}
|
|
931
964
|
} catch (e) {
|
|
932
|
-
|
|
965
|
+
u = !0, o = e;
|
|
933
966
|
} finally {
|
|
934
967
|
try {
|
|
935
968
|
if (!c && null != r["return"] && (i = r["return"](), Object(i) !== i)) return;
|
|
936
969
|
} finally {
|
|
937
|
-
if (
|
|
970
|
+
if (u) throw o;
|
|
938
971
|
}
|
|
939
972
|
}
|
|
940
973
|
return l;
|
|
941
974
|
}
|
|
942
975
|
}
|
|
943
|
-
function
|
|
976
|
+
function Ve(e) {
|
|
944
977
|
if (Array.isArray(e)) return e;
|
|
945
978
|
}
|
|
946
|
-
function
|
|
979
|
+
function Be(e, t) {
|
|
947
980
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
948
981
|
}
|
|
949
|
-
function
|
|
982
|
+
function Ue(e, t) {
|
|
950
983
|
for (var r = 0; r < t.length; r++) {
|
|
951
984
|
var n = t[r];
|
|
952
985
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0),
|
|
953
|
-
Object.defineProperty(e,
|
|
986
|
+
Object.defineProperty(e, tt(n.key), n);
|
|
954
987
|
}
|
|
955
988
|
}
|
|
956
989
|
function ze(e, t, r) {
|
|
957
|
-
return t &&
|
|
990
|
+
return t && Ue(e.prototype, t), r && Ue(e, r), Object.defineProperty(e, "prototype", {
|
|
958
991
|
writable: !1
|
|
959
992
|
}), e;
|
|
960
993
|
}
|
|
961
|
-
function
|
|
994
|
+
function Ke(e, t) {
|
|
962
995
|
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
|
963
996
|
e.prototype = Object.create(t && t.prototype, {
|
|
964
997
|
constructor: {
|
|
@@ -968,64 +1001,64 @@
|
|
|
968
1001
|
}
|
|
969
1002
|
}), Object.defineProperty(e, "prototype", {
|
|
970
1003
|
writable: !1
|
|
971
|
-
}), t &&
|
|
1004
|
+
}), t && Xe(e, t);
|
|
972
1005
|
}
|
|
973
|
-
function
|
|
974
|
-
return
|
|
1006
|
+
function Xe(e, t) {
|
|
1007
|
+
return Xe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
975
1008
|
return e.__proto__ = t, e;
|
|
976
|
-
},
|
|
1009
|
+
}, Xe(e, t);
|
|
977
1010
|
}
|
|
978
|
-
function
|
|
979
|
-
var t =
|
|
1011
|
+
function Ye(e) {
|
|
1012
|
+
var t = Qe();
|
|
980
1013
|
return function() {
|
|
981
|
-
var r, n =
|
|
1014
|
+
var r, n = Ze(e);
|
|
982
1015
|
if (t) {
|
|
983
|
-
var o =
|
|
1016
|
+
var o = Ze(this).constructor;
|
|
984
1017
|
r = Reflect.construct(n, arguments, o);
|
|
985
1018
|
} else r = n.apply(this, arguments);
|
|
986
|
-
return
|
|
1019
|
+
return Ge(this, r);
|
|
987
1020
|
};
|
|
988
1021
|
}
|
|
989
|
-
function
|
|
990
|
-
if (t && ("object" ==
|
|
1022
|
+
function Ge(e, t) {
|
|
1023
|
+
if (t && ("object" == Te(t) || "function" == typeof t)) return t;
|
|
991
1024
|
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
992
|
-
return
|
|
1025
|
+
return Je(e);
|
|
993
1026
|
}
|
|
994
|
-
function
|
|
1027
|
+
function Je(e) {
|
|
995
1028
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
996
1029
|
return e;
|
|
997
1030
|
}
|
|
998
|
-
function
|
|
1031
|
+
function Qe() {
|
|
999
1032
|
try {
|
|
1000
1033
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
1001
1034
|
} catch (e) {}
|
|
1002
|
-
return (
|
|
1035
|
+
return (Qe = function t() {
|
|
1003
1036
|
return !!e;
|
|
1004
1037
|
})();
|
|
1005
1038
|
}
|
|
1006
|
-
function
|
|
1007
|
-
return
|
|
1039
|
+
function Ze(e) {
|
|
1040
|
+
return Ze = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
1008
1041
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
1009
|
-
},
|
|
1042
|
+
}, Ze(e);
|
|
1010
1043
|
}
|
|
1011
|
-
function
|
|
1012
|
-
return (t =
|
|
1044
|
+
function et(e, t, r) {
|
|
1045
|
+
return (t = tt(t)) in e ? Object.defineProperty(e, t, {
|
|
1013
1046
|
value: r,
|
|
1014
1047
|
enumerable: !0,
|
|
1015
1048
|
configurable: !0,
|
|
1016
1049
|
writable: !0
|
|
1017
1050
|
}) : e[t] = r, e;
|
|
1018
1051
|
}
|
|
1019
|
-
function
|
|
1020
|
-
var t =
|
|
1021
|
-
return "symbol" ==
|
|
1052
|
+
function tt(e) {
|
|
1053
|
+
var t = rt(e, "string");
|
|
1054
|
+
return "symbol" == Te(t) ? t : t + "";
|
|
1022
1055
|
}
|
|
1023
|
-
function
|
|
1024
|
-
if ("object" !=
|
|
1056
|
+
function rt(e, t) {
|
|
1057
|
+
if ("object" != Te(e) || !e) return e;
|
|
1025
1058
|
var r = e[Symbol.toPrimitive];
|
|
1026
1059
|
if (void 0 !== r) {
|
|
1027
1060
|
var n = r.call(e, t || "default");
|
|
1028
|
-
if ("object" !=
|
|
1061
|
+
if ("object" != Te(n)) return n;
|
|
1029
1062
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1030
1063
|
}
|
|
1031
1064
|
return ("string" === t ? String : Number)(e);
|
|
@@ -1034,8 +1067,8 @@
|
|
|
1034
1067
|
/** @public */
|
|
1035
1068
|
/** @public */
|
|
1036
1069
|
/** @public */
|
|
1037
|
-
/** @public */ var
|
|
1038
|
-
var
|
|
1070
|
+
/** @public */ var nt = [ "clickAway", "escapeKey", "offScreen", "tabKey" ];
|
|
1071
|
+
var ot = {
|
|
1039
1072
|
align: a().oneOf([ "center", "edge", "theme", "end" ]),
|
|
1040
1073
|
anchor: a().object,
|
|
1041
1074
|
animation: a().bool,
|
|
@@ -1044,10 +1077,11 @@
|
|
|
1044
1077
|
autoCloseWhenOffScreen: a().bool,
|
|
1045
1078
|
canCoverAnchor: a().bool,
|
|
1046
1079
|
children: a().oneOfType([ a().node, a().func ]),
|
|
1047
|
-
closeReasons: a().arrayOf(a().oneOf(
|
|
1080
|
+
closeReasons: a().arrayOf(a().oneOf(nt)),
|
|
1048
1081
|
defaultPlacement: a().oneOf([ "above", "below", "left", "right", "vertical", "horizontal" ]),
|
|
1049
1082
|
elementRef: a().oneOfType([ a().func, a().object ]),
|
|
1050
1083
|
id: a().string,
|
|
1084
|
+
hideArrow: a().bool,
|
|
1051
1085
|
hitAreaRef: a().oneOfType([ a().func, a().object ]),
|
|
1052
1086
|
onRequestClose: a().func,
|
|
1053
1087
|
open: a().bool,
|
|
@@ -1061,22 +1095,26 @@
|
|
|
1061
1095
|
takeFocus: a().bool,
|
|
1062
1096
|
splunkTheme: a().object
|
|
1063
1097
|
};
|
|
1064
|
-
var
|
|
1098
|
+
var at = {
|
|
1065
1099
|
align: "theme",
|
|
1066
1100
|
animation: true,
|
|
1067
1101
|
animationConfig: {},
|
|
1068
1102
|
appearance: "normal",
|
|
1069
1103
|
autoCloseWhenOffScreen: true,
|
|
1070
1104
|
canCoverAnchor: false,
|
|
1071
|
-
closeReasons:
|
|
1105
|
+
closeReasons: nt,
|
|
1072
1106
|
defaultPlacement: "below",
|
|
1073
1107
|
open: false,
|
|
1074
1108
|
repositionMode: "flip",
|
|
1075
1109
|
retainFocus: true,
|
|
1076
1110
|
takeFocus: false
|
|
1077
1111
|
};
|
|
1112
|
+
var it = {
|
|
1113
|
+
passive: false,
|
|
1114
|
+
capture: true
|
|
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,77 +1123,116 @@
|
|
|
1085
1123
|
return t[n] === e;
|
|
1086
1124
|
}));
|
|
1087
1125
|
}
|
|
1088
|
-
function
|
|
1126
|
+
function ct(e) {
|
|
1127
|
+
var t = e.anchorPos, r = e.placement, n = e.outerContainerStyle, o = e.outerContainerEl;
|
|
1128
|
+
if (r === "misaligned") {
|
|
1129
|
+
return [ {
|
|
1130
|
+
display: "none"
|
|
1131
|
+
} ];
|
|
1132
|
+
}
|
|
1133
|
+
var a = {
|
|
1134
|
+
display: "block"
|
|
1135
|
+
};
|
|
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 = {
|
|
1148
|
+
left: {
|
|
1149
|
+
translateX: Z / 2,
|
|
1150
|
+
translateY: f,
|
|
1151
|
+
rotate: 90
|
|
1152
|
+
},
|
|
1153
|
+
right: {
|
|
1154
|
+
translateX: -Z / 2,
|
|
1155
|
+
translateY: f,
|
|
1156
|
+
rotate: -90
|
|
1157
|
+
},
|
|
1158
|
+
above: {
|
|
1159
|
+
translateX: d,
|
|
1160
|
+
translateY: 0,
|
|
1161
|
+
rotate: 180
|
|
1162
|
+
},
|
|
1163
|
+
below: {
|
|
1164
|
+
translateX: d,
|
|
1165
|
+
translateY: 0,
|
|
1166
|
+
rotate: 0
|
|
1167
|
+
}
|
|
1168
|
+
};
|
|
1169
|
+
var m = v[r];
|
|
1170
|
+
a.transform = "translate(".concat(m.translateX, "px, ").concat(m.translateY, "px) rotate(").concat(m.rotate, "deg)");
|
|
1171
|
+
// set new positions
|
|
1172
|
+
var b = {
|
|
1173
|
+
left: "right",
|
|
1174
|
+
right: "left",
|
|
1175
|
+
above: "bottom",
|
|
1176
|
+
below: "top"
|
|
1177
|
+
};
|
|
1178
|
+
a[b[r]] = "1px";
|
|
1179
|
+
var y = {
|
|
1180
|
+
left: "top",
|
|
1181
|
+
right: "top",
|
|
1182
|
+
above: "left",
|
|
1183
|
+
below: "left"
|
|
1184
|
+
};
|
|
1185
|
+
a[y[r]] = "50%";
|
|
1186
|
+
return [ a, m ];
|
|
1187
|
+
}
|
|
1188
|
+
function ut(e) {
|
|
1189
|
+
var t = e.anchorEl, r = e.offsets, n = r === void 0 ? false : r, o = e.pointTo;
|
|
1190
|
+
var a = ke(t, n);
|
|
1191
|
+
var i = {
|
|
1192
|
+
// these are rounded to avoid causing visual regressions
|
|
1193
|
+
// they were previously clientWidth and clientHeight which were already rounded
|
|
1194
|
+
width: Math.round(a.width),
|
|
1195
|
+
height: Math.round(a.height)
|
|
1196
|
+
};
|
|
1197
|
+
var l = o && d()(o, "x");
|
|
1198
|
+
var c = o && d()(o, "y");
|
|
1199
|
+
i.left = l ? a.left + ((o === null || o === void 0 ? void 0 : o.x) || 0) : a.left;
|
|
1200
|
+
i.top = c ? a.top + ((o === null || o === void 0 ? void 0 : o.y) || 0) : a.top;
|
|
1201
|
+
i.right = l ? i.left + i.width : a.left + i.width || a.right;
|
|
1202
|
+
i.bottom = c ? i.top + i.height : a.top + i.height || a.bottom;
|
|
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;
|
|
1208
|
+
i.center = c ? i.top : a.top + (i.bottom - a.top) / 2;
|
|
1209
|
+
return i;
|
|
1210
|
+
}
|
|
1211
|
+
function ft(e) {
|
|
1089
1212
|
return e !== window && e !== window.document;
|
|
1090
1213
|
}
|
|
1214
|
+
function st(e, t) {
|
|
1215
|
+
var r = ge();
|
|
1216
|
+
if (e.top < 0 || e.top > r.innerHeight || e.left < 0 || e.left > r.innerWidth) {
|
|
1217
|
+
return true;
|
|
1218
|
+
}
|
|
1219
|
+
if (t) {
|
|
1220
|
+
if (e.height + e.top < t.top || e.top > t.bottom || e.width + e.left < t.left || e.left > t.right) {
|
|
1221
|
+
return true;
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
return false;
|
|
1225
|
+
}
|
|
1091
1226
|
/**
|
|
1092
1227
|
* `Popover` is used to create layovers such as dropdowns, contextual menus, or tooltips. Use
|
|
1093
1228
|
* this only when the other components don't provide sufficient functionality or control. A controlled
|
|
1094
1229
|
* `Dropdown` covers use cases where you might consider using `Popover` directly.
|
|
1095
|
-
*/ var
|
|
1096
|
-
|
|
1097
|
-
var t =
|
|
1230
|
+
*/ var pt = function(e) {
|
|
1231
|
+
Ke(r, e);
|
|
1232
|
+
var t = Ye(r);
|
|
1098
1233
|
ze(r, null, [ {
|
|
1099
|
-
key: "getArrowStyle",
|
|
1100
|
-
// @docs-props-type PopoverPropsBase
|
|
1101
|
-
value: function e(t) {
|
|
1102
|
-
var r = t.anchorPos, n = t.arrowHeight, o = t.placement, a = t.outerContainerStyle, i = t.outerContainerEl;
|
|
1103
|
-
if (o === "misaligned") {
|
|
1104
|
-
return [ {
|
|
1105
|
-
display: "none"
|
|
1106
|
-
} ];
|
|
1107
|
-
}
|
|
1108
|
-
var l = {
|
|
1109
|
-
display: "block"
|
|
1110
|
-
};
|
|
1111
|
-
var s = i.offsetHeight / 2 - 22;
|
|
1112
|
-
var u = -(i.offsetHeight / 2 - 15);
|
|
1113
|
-
var f = r.center - (a.top + i.offsetHeight / 2) - n / 2;
|
|
1114
|
-
var p = c()(f, u, s);
|
|
1115
|
-
var h = r.middle - (a.left + i.offsetWidth / 2) - n;
|
|
1116
|
-
var d = {
|
|
1117
|
-
left: {
|
|
1118
|
-
translateX: n / 2,
|
|
1119
|
-
translateY: p,
|
|
1120
|
-
rotate: 90
|
|
1121
|
-
},
|
|
1122
|
-
right: {
|
|
1123
|
-
translateX: -n / 2,
|
|
1124
|
-
translateY: p,
|
|
1125
|
-
rotate: -90
|
|
1126
|
-
},
|
|
1127
|
-
above: {
|
|
1128
|
-
translateX: h,
|
|
1129
|
-
translateY: 0,
|
|
1130
|
-
rotate: 180
|
|
1131
|
-
},
|
|
1132
|
-
below: {
|
|
1133
|
-
translateX: h,
|
|
1134
|
-
translateY: 0,
|
|
1135
|
-
rotate: 0
|
|
1136
|
-
}
|
|
1137
|
-
};
|
|
1138
|
-
var v = d[o];
|
|
1139
|
-
l.transform = "translate(".concat(v.translateX, "px, ").concat(v.translateY, "px) rotate(").concat(v.rotate, "deg)");
|
|
1140
|
-
// set new positions
|
|
1141
|
-
var m = {
|
|
1142
|
-
left: "right",
|
|
1143
|
-
right: "left",
|
|
1144
|
-
above: "bottom",
|
|
1145
|
-
below: "top"
|
|
1146
|
-
};
|
|
1147
|
-
l[m[o]] = "1px";
|
|
1148
|
-
var b = {
|
|
1149
|
-
left: "top",
|
|
1150
|
-
right: "top",
|
|
1151
|
-
above: "left",
|
|
1152
|
-
below: "left"
|
|
1153
|
-
};
|
|
1154
|
-
l[b[o]] = "50%";
|
|
1155
|
-
return [ l, v ];
|
|
1156
|
-
}
|
|
1157
|
-
}, {
|
|
1158
1234
|
key: "getDerivedStateFromProps",
|
|
1235
|
+
// @docs-props-type PopoverPropsBase
|
|
1159
1236
|
value: function e(t, r) {
|
|
1160
1237
|
if (t.open !== r.prevOpen) {
|
|
1161
1238
|
return {
|
|
@@ -1167,131 +1244,134 @@
|
|
|
1167
1244
|
}
|
|
1168
1245
|
} ]);
|
|
1169
1246
|
function r(e) {
|
|
1170
|
-
var
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
Je(
|
|
1174
|
-
Je(
|
|
1175
|
-
Je(
|
|
1176
|
-
Je(
|
|
1177
|
-
Je(
|
|
1178
|
-
Je(
|
|
1179
|
-
Je(
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
height: e.offsetHeight
|
|
1186
|
-
};
|
|
1187
|
-
var a = o.props.pointTo;
|
|
1188
|
-
var i = a && d()(a, "x");
|
|
1189
|
-
var l = a && d()(a, "y");
|
|
1190
|
-
n.left = i ? r.left + ((a === null || a === void 0 ? void 0 : a.x) || 0) : r.left;
|
|
1191
|
-
n.top = l ? r.top + ((a === null || a === void 0 ? void 0 : a.y) || 0) : r.top;
|
|
1192
|
-
n.right = i ? n.left + n.width : r.left + n.width || r.right;
|
|
1193
|
-
n.bottom = l ? n.top + n.height : r.top + n.height || r.bottom;
|
|
1194
|
-
n.middle = i ? n.left : r.left + (n.right - r.left) / 2;
|
|
1195
|
-
n.center = l ? n.top : r.top + (n.bottom - r.top) / 2;
|
|
1196
|
-
return n;
|
|
1197
|
-
}));
|
|
1198
|
-
Je(Xe(o), "setPlacement", (function(e) {
|
|
1199
|
-
var t = me();
|
|
1200
|
-
o.setState((function(n) {
|
|
1201
|
-
var a;
|
|
1202
|
-
var i = o.props, l = i.align, c = i.anchor, s = i.autoCloseWhenOffScreen, u = i.canCoverAnchor, f = i.defaultPlacement, p = i.open, h = i.repositionMode, d = i.splunkTheme;
|
|
1203
|
-
var v = o.context || t;
|
|
1204
|
-
var m = d.isPrisma;
|
|
1247
|
+
var n;
|
|
1248
|
+
Be(this, r);
|
|
1249
|
+
n = t.call(this, e);
|
|
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();
|
|
1258
|
+
n.setState((function(r) {
|
|
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;
|
|
1205
1262
|
// If these conditions are not met, we cannot set the popover.
|
|
1206
|
-
if (!
|
|
1263
|
+
if (!f || !n.outerContainerEl || !i || !r.anchorEl) {
|
|
1207
1264
|
if (false) {}
|
|
1208
1265
|
return null;
|
|
1209
1266
|
}
|
|
1210
|
-
var
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1267
|
+
var m = ut({
|
|
1268
|
+
anchorEl: r.anchorEl,
|
|
1269
|
+
pointTo: s
|
|
1270
|
+
});
|
|
1271
|
+
var b = ut({
|
|
1272
|
+
anchorEl: r.anchorEl,
|
|
1273
|
+
offsets: true,
|
|
1274
|
+
pointTo: s
|
|
1275
|
+
});
|
|
1276
|
+
var y = ft(d) ? ut({
|
|
1277
|
+
anchorEl: d,
|
|
1278
|
+
pointTo: s
|
|
1279
|
+
}) : undefined;
|
|
1280
|
+
if (e && l) {
|
|
1281
|
+
if (n.autoCloseWhenOffScreen(m, y)) {
|
|
1215
1282
|
return null;
|
|
1216
1283
|
}
|
|
1217
1284
|
}
|
|
1218
|
-
var
|
|
1219
|
-
var
|
|
1220
|
-
var
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
var
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
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,
|
|
1294
|
+
outerContainerEl: n.outerContainerEl,
|
|
1295
|
+
padding: g,
|
|
1296
|
+
windowWidth: t.innerWidth,
|
|
1297
|
+
windowHeight: t.innerHeight
|
|
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
|
+
}
|
|
1243
1316
|
// If none of the position data has changed, do not set state.
|
|
1244
|
-
if (
|
|
1317
|
+
if (x && k) {
|
|
1245
1318
|
return null;
|
|
1246
1319
|
}
|
|
1247
1320
|
return {
|
|
1248
|
-
anchorPos:
|
|
1249
|
-
arrowStyle:
|
|
1250
|
-
arrowStyleTransformMeta:
|
|
1251
|
-
outerContainerStyle:
|
|
1252
|
-
placement:
|
|
1253
|
-
maxHeight:
|
|
1254
|
-
maxWidth:
|
|
1321
|
+
anchorPos: b,
|
|
1322
|
+
arrowStyle: A,
|
|
1323
|
+
arrowStyleTransformMeta: T,
|
|
1324
|
+
outerContainerStyle: P,
|
|
1325
|
+
placement: O,
|
|
1326
|
+
maxHeight: E,
|
|
1327
|
+
maxWidth: C
|
|
1255
1328
|
};
|
|
1256
1329
|
}));
|
|
1257
1330
|
}));
|
|
1258
|
-
Je(
|
|
1259
|
-
|
|
1331
|
+
et(Je(n), "handleArrowMount", (function(e) {
|
|
1332
|
+
n.arrow = e;
|
|
1333
|
+
}));
|
|
1334
|
+
et(Je(n), "handleNewAnchor", (function(e) {
|
|
1335
|
+
var t = n.props.pointTo;
|
|
1336
|
+
var r;
|
|
1260
1337
|
if (e && !(e instanceof HTMLElement)) {
|
|
1261
1338
|
if (false) {}
|
|
1262
|
-
|
|
1339
|
+
r = (0, i.findDOMNode)(e);
|
|
1263
1340
|
// eslint-disable-line react/no-find-dom-node
|
|
1264
1341
|
} else {
|
|
1265
|
-
|
|
1342
|
+
r = e !== null && e !== void 0 ? e : undefined;
|
|
1266
1343
|
}
|
|
1267
|
-
var
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1344
|
+
var o = r ? ut({
|
|
1345
|
+
anchorEl: r,
|
|
1346
|
+
pointTo: t
|
|
1347
|
+
}) : undefined;
|
|
1348
|
+
n.setState({
|
|
1349
|
+
anchorEl: r,
|
|
1350
|
+
anchorPos: o
|
|
1271
1351
|
});
|
|
1272
1352
|
// eslint-disable-line react/no-unused-state
|
|
1273
1353
|
}));
|
|
1274
|
-
Je(
|
|
1275
|
-
|
|
1276
|
-
if (e &&
|
|
1277
|
-
|
|
1354
|
+
et(Je(n), "handleInnerContainerMount", (function(e) {
|
|
1355
|
+
n.innerContainerEl = e;
|
|
1356
|
+
if (e && n.props.takeFocus) {
|
|
1357
|
+
f()(D.takeFocus, e);
|
|
1278
1358
|
}
|
|
1279
|
-
|
|
1359
|
+
Ae(n.props.elementRef, e);
|
|
1280
1360
|
}));
|
|
1281
|
-
Je(
|
|
1282
|
-
|
|
1283
|
-
|
|
1361
|
+
et(Je(n), "handleOuterContainerMount", (function(e) {
|
|
1362
|
+
n.outerContainerEl = e;
|
|
1363
|
+
Ae(n.props.outerRef, e);
|
|
1284
1364
|
}));
|
|
1285
|
-
Je(
|
|
1286
|
-
if (
|
|
1287
|
-
if (
|
|
1288
|
-
(0,
|
|
1289
|
-
} else if ((0,
|
|
1290
|
-
var t = (0,
|
|
1365
|
+
et(Je(n), "handleTab", (function(e) {
|
|
1366
|
+
if (n.innerContainerEl) {
|
|
1367
|
+
if (n.props.retainFocus) {
|
|
1368
|
+
(0, D.handleTab)(n.innerContainerEl, e);
|
|
1369
|
+
} else if ((0, D.isTabKey)(e)) {
|
|
1370
|
+
var t = (0, D.getSortedTabbableElements)(n.innerContainerEl);
|
|
1291
1371
|
if (t.length > 0) {
|
|
1292
1372
|
var r = e.shiftKey ? t[0] : t[t.length - 1];
|
|
1293
1373
|
if (r === e.target) {
|
|
1294
|
-
|
|
1374
|
+
n.handleRequestClose({
|
|
1295
1375
|
event: e,
|
|
1296
1376
|
reason: "tabKey"
|
|
1297
1377
|
});
|
|
@@ -1300,99 +1380,28 @@
|
|
|
1300
1380
|
}
|
|
1301
1381
|
}
|
|
1302
1382
|
}));
|
|
1303
|
-
Je(
|
|
1304
|
-
if (
|
|
1305
|
-
|
|
1383
|
+
et(Je(n), "handleRequestClose", (function(e) {
|
|
1384
|
+
if (n.props.open) {
|
|
1385
|
+
n.requestClose(e);
|
|
1306
1386
|
}
|
|
1307
1387
|
}));
|
|
1308
|
-
Je(
|
|
1309
|
-
if (
|
|
1310
|
-
|
|
1388
|
+
et(Je(n), "handleAnimationEnd", (function() {
|
|
1389
|
+
if (n.allowAnimationUpdates) {
|
|
1390
|
+
n.setState({
|
|
1311
1391
|
animating: false
|
|
1312
1392
|
});
|
|
1313
1393
|
}
|
|
1314
1394
|
}));
|
|
1315
|
-
Je(
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
var b = f.isPrisma;
|
|
1319
|
-
var y = o.state, g = y.maxHeight, S = y.maxWidth;
|
|
1320
|
-
// eslint-disable-line prefer-const
|
|
1321
|
-
// Accommodate the arrow in the maxHeight and maxWidth.
|
|
1322
|
-
if (i !== "none") {
|
|
1323
|
-
if (w()(g)) {
|
|
1324
|
-
g -= 20;
|
|
1325
|
-
}
|
|
1326
|
-
if (w()(S)) {
|
|
1327
|
-
S -= 20;
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
var P = {
|
|
1331
|
-
anchorHeight: h ? h.height : null,
|
|
1332
|
-
anchorWidth: h ? h.width : null,
|
|
1333
|
-
placement: m || null,
|
|
1334
|
-
maxHeight: g || null,
|
|
1335
|
-
maxWidth: S || null
|
|
1336
|
-
};
|
|
1337
|
-
var C = t ? {
|
|
1338
|
-
opacity: s ? 1 : 0
|
|
1339
|
-
} : {
|
|
1340
|
-
opacity: 1
|
|
1341
|
-
};
|
|
1342
|
-
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
1343
|
-
return n().createElement(T.Spring, {
|
|
1344
|
-
from: {
|
|
1345
|
-
opacity: t ? 0 : 1
|
|
1346
|
-
},
|
|
1347
|
-
to: C,
|
|
1348
|
-
config: Re({
|
|
1349
|
-
tension: 300,
|
|
1350
|
-
friction: 20,
|
|
1351
|
-
clamp: true
|
|
1352
|
-
}, a),
|
|
1353
|
-
onRest: o.handleAnimationEnd
|
|
1354
|
-
}, (function(e) {
|
|
1355
|
-
|
|
1356
|
-
return n().createElement(J, {
|
|
1357
|
-
"data-test": "outer-popover",
|
|
1358
|
-
style: Re(Re({}, v), e),
|
|
1359
|
-
ref: o.handleOuterContainerMount
|
|
1360
|
-
}, (s || o.state.animating) && n().createElement(Q, xe({
|
|
1361
|
-
$appearance: i,
|
|
1362
|
-
$open: s,
|
|
1363
|
-
"data-test": "popover",
|
|
1364
|
-
ref: o.handleInnerContainerMount,
|
|
1365
|
-
id: c,
|
|
1366
|
-
onKeyDown: o.handleTab
|
|
1367
|
-
}, j()(o.props, [ "anchor" ].concat(Ae(E()(r.propTypes))))), n().createElement(U.Provider, {
|
|
1368
|
-
value: {
|
|
1369
|
-
retainFocus: u
|
|
1370
|
-
}
|
|
1371
|
-
}, n().createElement(n().Fragment, null, i === "none" && l, i !== "none" && !b && n().createElement(ee, {
|
|
1372
|
-
$appearance: i,
|
|
1373
|
-
ref: function e(t) {
|
|
1374
|
-
o.arrow = t;
|
|
1375
|
-
},
|
|
1376
|
-
style: d
|
|
1377
|
-
}), i !== "none" && n().createElement(Z, {
|
|
1378
|
-
$appearance: i
|
|
1379
|
-
}, O()(l) ? l(P) : l)))), n().createElement(te, {
|
|
1380
|
-
ref: function e(t) {
|
|
1381
|
-
o.windowSizeMeasurementEl = t;
|
|
1382
|
-
}
|
|
1383
|
-
}));
|
|
1384
|
-
}));
|
|
1385
|
-
/* eslint-enable jsx-a11y/no-static-element-interactions */ }));
|
|
1386
|
-
o.handleScroll = x()(o.setPlacement.bind(Xe(o), true), 0);
|
|
1387
|
-
o.handleWindowScroll = x()(o.setPlacement.bind(Xe(o), true), 0);
|
|
1388
|
-
o.setPlacement = x()(o.setPlacement, 0, {
|
|
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, {
|
|
1389
1398
|
leading: false
|
|
1390
1399
|
});
|
|
1391
|
-
|
|
1400
|
+
n.state = {
|
|
1392
1401
|
animating: false,
|
|
1393
1402
|
prevOpen: e.open
|
|
1394
1403
|
};
|
|
1395
|
-
return
|
|
1404
|
+
return n;
|
|
1396
1405
|
}
|
|
1397
1406
|
ze(r, [ {
|
|
1398
1407
|
key: "componentDidMount",
|
|
@@ -1414,7 +1423,7 @@
|
|
|
1414
1423
|
// this prevents bugs like #4 in SUI-2054 where popover contents re-rendering due to animation
|
|
1415
1424
|
// causes the popover contents to receive focus even though the popover closing
|
|
1416
1425
|
if (!t.open && this.props.open && this.props.takeFocus) {
|
|
1417
|
-
(0,
|
|
1426
|
+
(0, D.takeFocus)(this.innerContainerEl);
|
|
1418
1427
|
}
|
|
1419
1428
|
}
|
|
1420
1429
|
}
|
|
@@ -1426,25 +1435,26 @@
|
|
|
1426
1435
|
this.handleScroll.cancel();
|
|
1427
1436
|
this.allowAnimationUpdates = false;
|
|
1428
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
|
+
}
|
|
1429
1448
|
}, {
|
|
1430
1449
|
key: "autoCloseWhenOffScreen",
|
|
1431
1450
|
value: function e(t, r) {
|
|
1432
|
-
var n =
|
|
1433
|
-
if (
|
|
1451
|
+
var n = st(t, r);
|
|
1452
|
+
if (n) {
|
|
1434
1453
|
this.requestClose({
|
|
1435
1454
|
reason: "offScreen"
|
|
1436
1455
|
});
|
|
1437
|
-
return true;
|
|
1438
1456
|
}
|
|
1439
|
-
|
|
1440
|
-
if (t.height + t.top < r.top || t.top > r.bottom || t.width + t.left < r.left || t.left > r.right) {
|
|
1441
|
-
this.requestClose({
|
|
1442
|
-
reason: "offScreen"
|
|
1443
|
-
});
|
|
1444
|
-
return true;
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
return false;
|
|
1457
|
+
return n;
|
|
1448
1458
|
}
|
|
1449
1459
|
}, {
|
|
1450
1460
|
key: "requestClose",
|
|
@@ -1457,60 +1467,119 @@
|
|
|
1457
1467
|
}, {
|
|
1458
1468
|
key: "render",
|
|
1459
1469
|
value: function e() {
|
|
1460
|
-
var t =
|
|
1461
|
-
var
|
|
1462
|
-
var
|
|
1463
|
-
var
|
|
1464
|
-
|
|
1465
|
-
|
|
1470
|
+
var t = this;
|
|
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;
|
|
1474
|
+
// eslint-disable-line prefer-const
|
|
1475
|
+
// Accommodate the arrow in the maxHeight and maxWidth.
|
|
1476
|
+
if (l !== "none") {
|
|
1477
|
+
if (w()(C)) {
|
|
1478
|
+
C -= 20;
|
|
1479
|
+
}
|
|
1480
|
+
if (w()(x)) {
|
|
1481
|
+
x -= 20;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
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
|
|
1490
|
+
};
|
|
1491
|
+
var A = a ? {
|
|
1492
|
+
opacity: p ? 1 : 0
|
|
1493
|
+
} : {
|
|
1494
|
+
opacity: 1
|
|
1495
|
+
};
|
|
1496
|
+
var W = ge();
|
|
1497
|
+
var q = p || m;
|
|
1498
|
+
var H = this.context || W;
|
|
1499
|
+
var _ = H !== W;
|
|
1500
|
+
// EventListeners only need to be rendered when open,
|
|
1466
1501
|
// otherwise leads to negative performance impacts
|
|
1467
|
-
var
|
|
1468
|
-
target:
|
|
1502
|
+
var D = q ? [ _ && n().createElement(M(), {
|
|
1503
|
+
target: H,
|
|
1469
1504
|
eventType: "scroll",
|
|
1470
1505
|
listener: this.handleScroll,
|
|
1471
|
-
options:
|
|
1472
|
-
passive: false,
|
|
1473
|
-
capture: true
|
|
1474
|
-
},
|
|
1506
|
+
options: it,
|
|
1475
1507
|
key: "eventListener"
|
|
1476
|
-
}), n().createElement(
|
|
1477
|
-
target:
|
|
1508
|
+
}), n().createElement(M(), {
|
|
1509
|
+
target: W,
|
|
1478
1510
|
eventType: "resize",
|
|
1479
1511
|
listener: this.setPlacement,
|
|
1480
1512
|
key: "eventListenerOnWindowResize"
|
|
1481
|
-
}), n().createElement(
|
|
1482
|
-
target:
|
|
1513
|
+
}), n().createElement(M(), {
|
|
1514
|
+
target: W,
|
|
1483
1515
|
eventType: "scroll",
|
|
1484
1516
|
listener: this.handleWindowScroll,
|
|
1485
|
-
options:
|
|
1486
|
-
passive: false,
|
|
1487
|
-
capture: true
|
|
1488
|
-
},
|
|
1517
|
+
options: it,
|
|
1489
1518
|
key: "eventListenerOnWindowScroll"
|
|
1490
1519
|
}) ] : [];
|
|
1491
|
-
return [].concat(
|
|
1492
|
-
closeReasons: y()(
|
|
1520
|
+
return [].concat(D, [ n().createElement(R(), {
|
|
1521
|
+
closeReasons: y()(u.filter((function(e) {
|
|
1493
1522
|
return e !== "offScreen";
|
|
1494
1523
|
})), R().possibleCloseReasons),
|
|
1495
|
-
open:
|
|
1524
|
+
open: q,
|
|
1496
1525
|
onRequestClose: this.handleRequestClose,
|
|
1497
1526
|
key: "Layer"
|
|
1498
|
-
},
|
|
1499
|
-
anchorRect:
|
|
1527
|
+
}, q && this.innerContainerEl && f && n().createElement(ve, {
|
|
1528
|
+
anchorRect: v,
|
|
1500
1529
|
popoverEl: this.innerContainerEl,
|
|
1501
|
-
popoverPlacement:
|
|
1502
|
-
ref:
|
|
1503
|
-
}),
|
|
1530
|
+
popoverPlacement: S,
|
|
1531
|
+
ref: f
|
|
1532
|
+
}), q && n().createElement(T.Spring, {
|
|
1533
|
+
from: {
|
|
1534
|
+
opacity: a ? 0 : 1
|
|
1535
|
+
},
|
|
1536
|
+
to: A,
|
|
1537
|
+
config: De({
|
|
1538
|
+
tension: 300,
|
|
1539
|
+
friction: 20,
|
|
1540
|
+
clamp: true
|
|
1541
|
+
}, i),
|
|
1542
|
+
onRest: this.handleAnimationEnd
|
|
1543
|
+
}, (function(e) {
|
|
1544
|
+
|
|
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
|
+
}));
|
|
1572
|
+
}))) ]);
|
|
1504
1573
|
}
|
|
1505
1574
|
} ]);
|
|
1506
1575
|
return r;
|
|
1507
1576
|
}(r.Component);
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
var
|
|
1512
|
-
|
|
1513
|
-
/* 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;
|
|
1514
1583
|
// CONCATENATED MODULE: ./src/Popover/index.ts
|
|
1515
1584
|
module.exports = t;
|
|
1516
1585
|
/******/})();
|