@splunk/react-ui 4.20.0 → 4.21.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/Accordion.js +114 -230
- package/Anchor.js +74 -150
- package/Animation.js +52 -124
- package/AnimationToggle.js +86 -146
- package/Box.js +77 -153
- package/Breadcrumbs.js +105 -197
- package/Button.js +168 -316
- package/ButtonGroup.js +84 -168
- package/ButtonSimple.js +224 -324
- package/CHANGELOG.md +21 -0
- package/Calendar.js +264 -462
- package/Card.js +223 -371
- package/CardLayout.js +87 -163
- package/Chip.js +199 -323
- package/Clickable.js +128 -246
- package/CloseButton.js +92 -200
- package/Code.js +162 -250
- package/CollapsiblePanel.js +214 -370
- package/Color.js +267 -495
- package/ColumnLayout.js +152 -254
- package/ComboBox.js +197 -371
- package/Concertina.js +214 -374
- package/ControlGroup.js +164 -288
- package/Date.js +154 -304
- package/DefinitionList.js +104 -180
- package/Divider.js +80 -156
- package/Dropdown.js +121 -263
- package/DualListbox.js +408 -601
- package/EventListener.js +70 -138
- package/File.js +343 -547
- package/FormRows.js +232 -414
- package/Heading.js +94 -164
- package/Image.js +167 -323
- package/JSONTree.js +166 -314
- package/Layer.js +221 -388
- package/Link.js +133 -239
- package/List.js +85 -161
- package/Markdown.js +230 -354
- package/Menu.js +489 -760
- package/Message.js +248 -437
- package/MessageBar.js +220 -408
- package/Modal.js +201 -365
- package/ModalLayer.js +96 -196
- package/Monogram.js +112 -204
- package/Multiselect.js +1135 -1761
- package/Number.js +178 -334
- package/Paginator.js +170 -336
- package/Paragraph.js +77 -153
- package/Popover.js +370 -620
- package/Progress.js +139 -255
- package/RadioBar.js +156 -280
- package/RadioList.js +182 -282
- package/Resize.js +173 -307
- package/ResultsMenu.js +161 -303
- package/ScreenReaderContent.js +75 -151
- package/Scroll.js +125 -267
- package/ScrollContainerContext.js +129 -201
- package/Search.js +188 -354
- package/Select.js +1028 -1430
- package/SidePanel.js +106 -214
- package/Slider.js +198 -348
- package/SlidingPanels.js +138 -280
- package/SplitButton.js +141 -273
- package/StaticContent.js +84 -168
- package/StepBar.js +138 -246
- package/Switch.js +261 -385
- package/TabBar.js +261 -398
- package/TabLayout.js +122 -238
- package/Table.js +943 -1448
- package/Text.js +335 -549
- package/TextArea.js +315 -537
- package/Tooltip.js +152 -292
- package/TransitionOpen.js +118 -242
- package/Typography.js +81 -157
- package/WaitSpinner.js +117 -209
- package/package.json +14 -15
- package/stubs-splunkui.d.ts +4 -1
- package/types/src/ComboBox/Option.d.ts +1 -1
- package/types/src/Concertina/Concertina.d.ts +4 -0
- package/types/src/Link/Link.d.ts +7 -3
- package/types/src/Link/docs/examples/NewWindow.d.ts +2 -0
- package/types/src/Markdown/Markdown.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
- package/types/src/Menu/Item.d.ts +1 -1
- package/types/src/Menu/Menu.d.ts +1 -0
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -0
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Search/Option.d.ts +1 -1
- package/types/src/Select/Option.d.ts +1 -1
- package/types/src/Select/OptionBase.d.ts +1 -1
- package/types/src/fixtures/FetchOptions.d.ts +2 -8
- package/useForceUpdate.js +46 -110
- package/useKeyPress.js +50 -107
- package/usePrevious.js +47 -111
- package/useRovingFocus.js +53 -133
- package/types/src/Link/docs/examples/NewTab.d.ts +0 -2
- /package/types/src/Table/docs/examples/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
- /package/types/src/Table/docs/examples/prisma/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
package/Popover.js
CHANGED
|
@@ -1,339 +1,117 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
3
|
-
/******/ // The
|
|
4
|
-
/******/ var
|
|
5
|
-
/******/
|
|
6
|
-
|
|
7
|
-
/******/
|
|
8
|
-
/******/
|
|
9
|
-
/******/ //
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
/******/
|
|
16
|
-
/******/
|
|
17
|
-
/******/
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ (() => {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = (module) => {
|
|
11
|
+
/******/ var getter = module && module.__esModule ?
|
|
12
|
+
/******/ () => (module['default']) :
|
|
13
|
+
/******/ () => (module);
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ })();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ (() => {
|
|
21
|
+
/******/ // define getter functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
23
|
+
/******/ for(var key in definition) {
|
|
24
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ }
|
|
18
28
|
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/
|
|
21
|
-
/******/
|
|
22
|
-
/******/
|
|
23
|
-
/******/
|
|
24
|
-
/******/
|
|
25
|
-
/******/
|
|
26
|
-
/******/
|
|
27
|
-
/******/
|
|
28
|
-
/******/
|
|
29
|
-
/******/
|
|
30
|
-
/******/
|
|
31
|
-
/******/
|
|
32
|
-
/******/
|
|
33
|
-
/******/
|
|
34
|
-
/******/
|
|
35
|
-
/******/
|
|
36
|
-
/******/
|
|
37
|
-
/******/ // define getter function for harmony exports
|
|
38
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
-
/******/ }
|
|
42
|
-
/******/ };
|
|
43
|
-
/******/
|
|
44
|
-
/******/ // define __esModule on exports
|
|
45
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
-
/******/ }
|
|
49
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
-
/******/ };
|
|
51
|
-
/******/
|
|
52
|
-
/******/ // create a fake namespace object
|
|
53
|
-
/******/ // mode & 1: value is a module id, require it
|
|
54
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
-
/******/ // mode & 4: return value when already ns object
|
|
56
|
-
/******/ // mode & 8|1: behave like require
|
|
57
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
-
/******/ if(mode & 8) return value;
|
|
60
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
-
/******/ var ns = Object.create(null);
|
|
62
|
-
/******/ __webpack_require__.r(ns);
|
|
63
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
-
/******/ return ns;
|
|
66
|
-
/******/ };
|
|
67
|
-
/******/
|
|
68
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
-
/******/ __webpack_require__.n = function(module) {
|
|
70
|
-
/******/ var getter = module && module.__esModule ?
|
|
71
|
-
/******/ function getDefault() { return module['default']; } :
|
|
72
|
-
/******/ function getModuleExports() { return module; };
|
|
73
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
-
/******/ return getter;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
-
/******/
|
|
80
|
-
/******/ // __webpack_public_path__
|
|
81
|
-
/******/ __webpack_require__.p = "";
|
|
82
|
-
/******/
|
|
83
|
-
/******/
|
|
84
|
-
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = 185);
|
|
86
|
-
/******/ })
|
|
29
|
+
/******/ })();
|
|
30
|
+
/******/
|
|
31
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
32
|
+
/******/ (() => {
|
|
33
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
34
|
+
/******/ })();
|
|
35
|
+
/******/
|
|
36
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
37
|
+
/******/ (() => {
|
|
38
|
+
/******/ // define __esModule on exports
|
|
39
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
40
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
41
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
42
|
+
/******/ }
|
|
43
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
44
|
+
/******/ };
|
|
45
|
+
/******/ })();
|
|
46
|
+
/******/
|
|
87
47
|
/************************************************************************/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/***/ 0:
|
|
91
|
-
/***/ (function(module, exports) {
|
|
92
|
-
|
|
93
|
-
module.exports = require("@splunk/themes");
|
|
94
|
-
|
|
95
|
-
/***/ }),
|
|
96
|
-
|
|
97
|
-
/***/ 1:
|
|
98
|
-
/***/ (function(module, exports) {
|
|
99
|
-
|
|
100
|
-
module.exports = require("prop-types");
|
|
101
|
-
|
|
102
|
-
/***/ }),
|
|
103
|
-
|
|
104
|
-
/***/ 10:
|
|
105
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
|
-
|
|
107
|
-
"use strict";
|
|
108
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return updateReactRef; });
|
|
109
|
-
/**
|
|
110
|
-
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
111
|
-
*
|
|
112
|
-
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
113
|
-
* @param current - The new value of the ref.
|
|
114
|
-
*/
|
|
115
|
-
function updateReactRef(ref, current) {
|
|
116
|
-
if (ref) {
|
|
117
|
-
if (typeof ref === 'function') {
|
|
118
|
-
ref(current);
|
|
119
|
-
} else {
|
|
120
|
-
// the public signature of this util uses React.Ref<T> to mirror the way React types refs.
|
|
121
|
-
// the intention here is to signal "we will take care of setting 'current', not you".
|
|
122
|
-
ref.current = current; // eslint-disable-line no-param-reassign
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
/***/ }),
|
|
130
|
-
|
|
131
|
-
/***/ 11:
|
|
132
|
-
/***/ (function(module, exports) {
|
|
133
|
-
|
|
134
|
-
module.exports = require("lodash/has");
|
|
135
|
-
|
|
136
|
-
/***/ }),
|
|
137
|
-
|
|
138
|
-
/***/ 15:
|
|
139
|
-
/***/ (function(module, exports) {
|
|
140
|
-
|
|
141
|
-
module.exports = require("lodash/includes");
|
|
142
|
-
|
|
143
|
-
/***/ }),
|
|
144
|
-
|
|
145
|
-
/***/ 150:
|
|
146
|
-
/***/ (function(module, exports) {
|
|
147
|
-
|
|
148
|
-
module.exports = require("lodash/clamp");
|
|
149
|
-
|
|
150
|
-
/***/ }),
|
|
151
|
-
|
|
152
|
-
/***/ 151:
|
|
153
|
-
/***/ (function(module, exports) {
|
|
154
|
-
|
|
155
|
-
module.exports = require("lodash/every");
|
|
156
|
-
|
|
157
|
-
/***/ }),
|
|
158
|
-
|
|
159
|
-
/***/ 152:
|
|
160
|
-
/***/ (function(module, exports) {
|
|
161
|
-
|
|
162
|
-
module.exports = require("lodash/intersection");
|
|
163
|
-
|
|
164
|
-
/***/ }),
|
|
165
|
-
|
|
166
|
-
/***/ 16:
|
|
167
|
-
/***/ (function(module, exports) {
|
|
168
|
-
|
|
169
|
-
module.exports = require("@splunk/react-ui/EventListener");
|
|
170
|
-
|
|
171
|
-
/***/ }),
|
|
172
|
-
|
|
173
|
-
/***/ 18:
|
|
174
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
175
|
-
|
|
176
|
-
"use strict";
|
|
177
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getWindow; });
|
|
178
|
-
/* unused harmony export ssrWindow */
|
|
179
|
-
/* harmony import */ var _ssrDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
|
|
180
|
-
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
181
|
-
|
|
182
|
-
var ssrWindow = {
|
|
183
|
-
document: _ssrDocument__WEBPACK_IMPORTED_MODULE_0__[/* ssrDocument */ "b"],
|
|
184
|
-
navigator: {
|
|
185
|
-
userAgent: ''
|
|
186
|
-
},
|
|
187
|
-
location: {
|
|
188
|
-
hash: '',
|
|
189
|
-
host: '',
|
|
190
|
-
hostname: '',
|
|
191
|
-
href: '',
|
|
192
|
-
origin: '',
|
|
193
|
-
pathname: '',
|
|
194
|
-
protocol: '',
|
|
195
|
-
search: ''
|
|
196
|
-
},
|
|
197
|
-
history: {
|
|
198
|
-
replaceState: function replaceState() {},
|
|
199
|
-
pushState: function pushState() {},
|
|
200
|
-
go: function go() {},
|
|
201
|
-
back: function back() {}
|
|
202
|
-
},
|
|
203
|
-
CustomEvent: function CustomEvent() {
|
|
204
|
-
return this;
|
|
205
|
-
},
|
|
206
|
-
addEventListener: function addEventListener() {},
|
|
207
|
-
removeEventListener: function removeEventListener() {},
|
|
208
|
-
getComputedStyle: function getComputedStyle() {
|
|
209
|
-
return {
|
|
210
|
-
getPropertyValue: function getPropertyValue() {
|
|
211
|
-
return '';
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
},
|
|
215
|
-
Image: function Image() {},
|
|
216
|
-
Date: function Date() {},
|
|
217
|
-
screen: {},
|
|
218
|
-
setTimeout: function setTimeout() {},
|
|
219
|
-
clearTimeout: function clearTimeout() {},
|
|
220
|
-
matchMedia: function matchMedia() {
|
|
221
|
-
return {};
|
|
222
|
-
},
|
|
223
|
-
requestAnimationFrame: function requestAnimationFrame(callback) {
|
|
224
|
-
if (typeof setTimeout === 'undefined') {
|
|
225
|
-
callback();
|
|
226
|
-
return null;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
return setTimeout(callback, 0);
|
|
230
|
-
},
|
|
231
|
-
cancelAnimationFrame: function cancelAnimationFrame(id) {
|
|
232
|
-
if (typeof setTimeout === 'undefined') {
|
|
233
|
-
return;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
clearTimeout(id);
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
function getWindow() {
|
|
241
|
-
var win = typeof window !== 'undefined' ? window : ssrWindow;
|
|
242
|
-
return win;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
/***/ }),
|
|
248
|
-
|
|
249
|
-
/***/ 185:
|
|
250
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
251
|
-
|
|
252
|
-
"use strict";
|
|
48
|
+
var __webpack_exports__ = {};
|
|
253
49
|
// ESM COMPAT FLAG
|
|
254
50
|
__webpack_require__.r(__webpack_exports__);
|
|
255
51
|
|
|
256
52
|
// EXPORTS
|
|
257
|
-
__webpack_require__.d(__webpack_exports__,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
var external_react_ = __webpack_require__(2);
|
|
262
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
263
|
-
|
|
264
|
-
// EXTERNAL MODULE: external "prop-types"
|
|
265
|
-
var external_prop_types_ = __webpack_require__(1);
|
|
266
|
-
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
267
|
-
|
|
268
|
-
// EXTERNAL MODULE: external "react-dom"
|
|
269
|
-
var external_react_dom_ = __webpack_require__(93);
|
|
270
|
-
|
|
271
|
-
// EXTERNAL MODULE: external "lodash/clamp"
|
|
272
|
-
var clamp_ = __webpack_require__(150);
|
|
273
|
-
var clamp_default = /*#__PURE__*/__webpack_require__.n(clamp_);
|
|
274
|
-
|
|
275
|
-
// EXTERNAL MODULE: external "lodash/defer"
|
|
276
|
-
var defer_ = __webpack_require__(58);
|
|
277
|
-
var defer_default = /*#__PURE__*/__webpack_require__.n(defer_);
|
|
278
|
-
|
|
279
|
-
// EXTERNAL MODULE: external "lodash/every"
|
|
280
|
-
var every_ = __webpack_require__(151);
|
|
281
|
-
var every_default = /*#__PURE__*/__webpack_require__.n(every_);
|
|
282
|
-
|
|
283
|
-
// EXTERNAL MODULE: external "lodash/has"
|
|
284
|
-
var has_ = __webpack_require__(11);
|
|
285
|
-
var has_default = /*#__PURE__*/__webpack_require__.n(has_);
|
|
286
|
-
|
|
287
|
-
// EXTERNAL MODULE: external "lodash/includes"
|
|
288
|
-
var includes_ = __webpack_require__(15);
|
|
289
|
-
var includes_default = /*#__PURE__*/__webpack_require__.n(includes_);
|
|
290
|
-
|
|
291
|
-
// EXTERNAL MODULE: external "lodash/intersection"
|
|
292
|
-
var intersection_ = __webpack_require__(152);
|
|
293
|
-
var intersection_default = /*#__PURE__*/__webpack_require__.n(intersection_);
|
|
294
|
-
|
|
295
|
-
// EXTERNAL MODULE: external "lodash/isFinite"
|
|
296
|
-
var isFinite_ = __webpack_require__(19);
|
|
297
|
-
var isFinite_default = /*#__PURE__*/__webpack_require__.n(isFinite_);
|
|
298
|
-
|
|
299
|
-
// EXTERNAL MODULE: external "lodash/isFunction"
|
|
300
|
-
var isFunction_ = __webpack_require__(71);
|
|
301
|
-
var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction_);
|
|
302
|
-
|
|
303
|
-
// EXTERNAL MODULE: external "lodash/keys"
|
|
304
|
-
var keys_ = __webpack_require__(9);
|
|
305
|
-
var keys_default = /*#__PURE__*/__webpack_require__.n(keys_);
|
|
306
|
-
|
|
307
|
-
// EXTERNAL MODULE: external "lodash/omit"
|
|
308
|
-
var omit_ = __webpack_require__(5);
|
|
309
|
-
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
310
|
-
|
|
311
|
-
// EXTERNAL MODULE: external "lodash/throttle"
|
|
312
|
-
var throttle_ = __webpack_require__(33);
|
|
313
|
-
var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
|
|
314
|
-
|
|
315
|
-
// EXTERNAL MODULE: external "@splunk/themes"
|
|
316
|
-
var themes_ = __webpack_require__(0);
|
|
317
|
-
|
|
318
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/Animation"
|
|
319
|
-
var Animation_ = __webpack_require__(43);
|
|
320
|
-
|
|
321
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
322
|
-
var EventListener_ = __webpack_require__(16);
|
|
323
|
-
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
324
|
-
|
|
325
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/Layer"
|
|
326
|
-
var Layer_ = __webpack_require__(85);
|
|
327
|
-
var Layer_default = /*#__PURE__*/__webpack_require__.n(Layer_);
|
|
328
|
-
|
|
329
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
330
|
-
var ScrollContainerContext_ = __webpack_require__(53);
|
|
331
|
-
var ScrollContainerContext_default = /*#__PURE__*/__webpack_require__.n(ScrollContainerContext_);
|
|
332
|
-
|
|
333
|
-
// EXTERNAL MODULE: external "@splunk/ui-utils/focus"
|
|
334
|
-
var focus_ = __webpack_require__(31);
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
PopoverContext: () => (/* reexport */ PopoverContext),
|
|
55
|
+
"default": () => (/* reexport */ Popover_Popover)
|
|
56
|
+
});
|
|
335
57
|
|
|
336
|
-
|
|
58
|
+
;// CONCATENATED MODULE: external "react"
|
|
59
|
+
const external_react_namespaceObject = require("react");
|
|
60
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
|
|
61
|
+
;// CONCATENATED MODULE: external "prop-types"
|
|
62
|
+
const external_prop_types_namespaceObject = require("prop-types");
|
|
63
|
+
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
|
|
64
|
+
;// CONCATENATED MODULE: external "react-dom"
|
|
65
|
+
const external_react_dom_namespaceObject = require("react-dom");
|
|
66
|
+
;// CONCATENATED MODULE: external "lodash/clamp"
|
|
67
|
+
const clamp_namespaceObject = require("lodash/clamp");
|
|
68
|
+
var clamp_default = /*#__PURE__*/__webpack_require__.n(clamp_namespaceObject);
|
|
69
|
+
;// CONCATENATED MODULE: external "lodash/defer"
|
|
70
|
+
const defer_namespaceObject = require("lodash/defer");
|
|
71
|
+
var defer_default = /*#__PURE__*/__webpack_require__.n(defer_namespaceObject);
|
|
72
|
+
;// CONCATENATED MODULE: external "lodash/every"
|
|
73
|
+
const every_namespaceObject = require("lodash/every");
|
|
74
|
+
var every_default = /*#__PURE__*/__webpack_require__.n(every_namespaceObject);
|
|
75
|
+
;// CONCATENATED MODULE: external "lodash/has"
|
|
76
|
+
const has_namespaceObject = require("lodash/has");
|
|
77
|
+
var has_default = /*#__PURE__*/__webpack_require__.n(has_namespaceObject);
|
|
78
|
+
;// CONCATENATED MODULE: external "lodash/includes"
|
|
79
|
+
const includes_namespaceObject = require("lodash/includes");
|
|
80
|
+
var includes_default = /*#__PURE__*/__webpack_require__.n(includes_namespaceObject);
|
|
81
|
+
;// CONCATENATED MODULE: external "lodash/intersection"
|
|
82
|
+
const intersection_namespaceObject = require("lodash/intersection");
|
|
83
|
+
var intersection_default = /*#__PURE__*/__webpack_require__.n(intersection_namespaceObject);
|
|
84
|
+
;// CONCATENATED MODULE: external "lodash/isFinite"
|
|
85
|
+
const isFinite_namespaceObject = require("lodash/isFinite");
|
|
86
|
+
var isFinite_default = /*#__PURE__*/__webpack_require__.n(isFinite_namespaceObject);
|
|
87
|
+
;// CONCATENATED MODULE: external "lodash/isFunction"
|
|
88
|
+
const isFunction_namespaceObject = require("lodash/isFunction");
|
|
89
|
+
var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction_namespaceObject);
|
|
90
|
+
;// CONCATENATED MODULE: external "lodash/keys"
|
|
91
|
+
const keys_namespaceObject = require("lodash/keys");
|
|
92
|
+
var keys_default = /*#__PURE__*/__webpack_require__.n(keys_namespaceObject);
|
|
93
|
+
;// CONCATENATED MODULE: external "lodash/omit"
|
|
94
|
+
const omit_namespaceObject = require("lodash/omit");
|
|
95
|
+
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_namespaceObject);
|
|
96
|
+
;// CONCATENATED MODULE: external "lodash/throttle"
|
|
97
|
+
const throttle_namespaceObject = require("lodash/throttle");
|
|
98
|
+
var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_namespaceObject);
|
|
99
|
+
;// CONCATENATED MODULE: external "@splunk/themes"
|
|
100
|
+
const themes_namespaceObject = require("@splunk/themes");
|
|
101
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Animation"
|
|
102
|
+
const Animation_namespaceObject = require("@splunk/react-ui/Animation");
|
|
103
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/EventListener"
|
|
104
|
+
const EventListener_namespaceObject = require("@splunk/react-ui/EventListener");
|
|
105
|
+
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_namespaceObject);
|
|
106
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Layer"
|
|
107
|
+
const Layer_namespaceObject = require("@splunk/react-ui/Layer");
|
|
108
|
+
var Layer_default = /*#__PURE__*/__webpack_require__.n(Layer_namespaceObject);
|
|
109
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
110
|
+
const ScrollContainerContext_namespaceObject = require("@splunk/react-ui/ScrollContainerContext");
|
|
111
|
+
var ScrollContainerContext_default = /*#__PURE__*/__webpack_require__.n(ScrollContainerContext_namespaceObject);
|
|
112
|
+
;// CONCATENATED MODULE: external "@splunk/ui-utils/focus"
|
|
113
|
+
const focus_namespaceObject = require("@splunk/ui-utils/focus");
|
|
114
|
+
;// CONCATENATED MODULE: ./src/Popover/getPlacement.ts
|
|
337
115
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
338
116
|
|
|
339
117
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
@@ -608,89 +386,87 @@ function getPlacement(args) {
|
|
|
608
386
|
}
|
|
609
387
|
};
|
|
610
388
|
}
|
|
611
|
-
|
|
389
|
+
;// CONCATENATED MODULE: ./src/Popover/PopoverContext.tsx
|
|
612
390
|
|
|
613
|
-
var PopoverContext = /*#__PURE__*/
|
|
391
|
+
var PopoverContext = /*#__PURE__*/(0,external_react_namespaceObject.createContext)({});
|
|
614
392
|
|
|
615
|
-
|
|
616
|
-
|
|
393
|
+
;// CONCATENATED MODULE: external "react-spring"
|
|
394
|
+
const external_react_spring_namespaceObject = require("react-spring");
|
|
395
|
+
;// CONCATENATED MODULE: external "styled-components"
|
|
396
|
+
const external_styled_components_namespaceObject = require("styled-components");
|
|
397
|
+
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
|
|
398
|
+
;// CONCATENATED MODULE: ./src/Popover/PopoverStyles.ts
|
|
617
399
|
|
|
618
|
-
// EXTERNAL MODULE: external "styled-components"
|
|
619
|
-
var external_styled_components_ = __webpack_require__(3);
|
|
620
|
-
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
621
400
|
|
|
622
|
-
// CONCATENATED MODULE: ./src/Popover/PopoverStyles.ts
|
|
623
401
|
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
var PopoverStyles_arrowHeight = Object(themes_["pick"])({
|
|
402
|
+
var arrowHeight = (0,themes_namespaceObject.pick)({
|
|
627
403
|
enterprise: '8px',
|
|
628
404
|
prisma: 0
|
|
629
405
|
});
|
|
630
|
-
var Styled = external_styled_components_default()(
|
|
406
|
+
var Styled = external_styled_components_default()(external_react_spring_namespaceObject.animated.div).withConfig({
|
|
631
407
|
displayName: "PopoverStyles__Styled",
|
|
632
408
|
componentId: "sc-1nahsvw-0"
|
|
633
|
-
})(["position:fixed;z-index:", ";left:-300%;top:-300%;"],
|
|
634
|
-
var StyledBox = external_styled_components_default.
|
|
409
|
+
})(["position:fixed;z-index:", ";left:-300%;top:-300%;"], themes_namespaceObject.variables.zindexPopover);
|
|
410
|
+
var StyledBox = external_styled_components_default().div.withConfig({
|
|
635
411
|
displayName: "PopoverStyles__StyledBox",
|
|
636
412
|
componentId: "sc-1nahsvw-1"
|
|
637
|
-
})(["", ";", ";", ";"],
|
|
413
|
+
})(["", ";", ";", ";"], themes_namespaceObject.mixins.reset('block'), function (_ref) {
|
|
638
414
|
var $open = _ref.$open;
|
|
639
|
-
return !$open &&
|
|
415
|
+
return !$open && (0,external_styled_components_namespaceObject.css)(["pointer-events:none;"]);
|
|
640
416
|
}, function (_ref2) {
|
|
641
417
|
var $appearance = _ref2.$appearance;
|
|
642
|
-
return $appearance !== 'none' &&
|
|
418
|
+
return $appearance !== 'none' && (0,external_styled_components_namespaceObject.css)(["padding:8px;"]);
|
|
643
419
|
});
|
|
644
|
-
var StyledContent = external_styled_components_default.
|
|
420
|
+
var StyledContent = external_styled_components_default().div.withConfig({
|
|
645
421
|
displayName: "PopoverStyles__StyledContent",
|
|
646
422
|
componentId: "sc-1nahsvw-2"
|
|
647
|
-
})(["", ""],
|
|
648
|
-
normal:
|
|
423
|
+
})(["", ""], (0,themes_namespaceObject.pickVariant)('$appearance', {
|
|
424
|
+
normal: (0,external_styled_components_namespaceObject.css)(["background-color:", ";color:", ";border:", ";box-shadow:", ";border-radius:", ";"], themes_namespaceObject.variables.backgroundColorPopup, themes_namespaceObject.variables.contentColorDefault, (0,themes_namespaceObject.pick)({
|
|
649
425
|
enterprise: {
|
|
650
|
-
light:
|
|
651
|
-
dark:
|
|
426
|
+
light: themes_namespaceObject.variables.border,
|
|
427
|
+
dark: themes_namespaceObject.variables.border
|
|
652
428
|
},
|
|
653
429
|
prisma: 'none'
|
|
654
|
-
}),
|
|
430
|
+
}), (0,themes_namespaceObject.pick)({
|
|
655
431
|
enterprise: {
|
|
656
|
-
light:
|
|
432
|
+
light: (0,external_styled_components_namespaceObject.css)(["0 2px 2px ", ""], themes_namespaceObject.mixins.colorWithAlpha(themes_namespaceObject.variables.gray20, 0.1)),
|
|
657
433
|
dark: '0 1px 2px #000'
|
|
658
434
|
},
|
|
659
|
-
prisma:
|
|
660
|
-
}),
|
|
435
|
+
prisma: themes_namespaceObject.variables.overlayShadow
|
|
436
|
+
}), themes_namespaceObject.variables.borderRadius),
|
|
661
437
|
// Enterprise Only
|
|
662
|
-
inverted:
|
|
663
|
-
light:
|
|
664
|
-
dark:
|
|
665
|
-
}),
|
|
666
|
-
light:
|
|
667
|
-
dark:
|
|
438
|
+
inverted: (0,external_styled_components_namespaceObject.css)(["background-color:", ";color:", ";"], (0,themes_namespaceObject.pick)({
|
|
439
|
+
light: themes_namespaceObject.variables.gray20,
|
|
440
|
+
dark: themes_namespaceObject.variables.white
|
|
441
|
+
}), (0,themes_namespaceObject.pick)({
|
|
442
|
+
light: themes_namespaceObject.variables.white,
|
|
443
|
+
dark: themes_namespaceObject.variables.gray30
|
|
668
444
|
}))
|
|
669
445
|
})); // Enterprise Only
|
|
670
446
|
|
|
671
|
-
var StyledArrow = external_styled_components_default.
|
|
447
|
+
var StyledArrow = external_styled_components_default().div.withConfig({
|
|
672
448
|
displayName: "PopoverStyles__StyledArrow",
|
|
673
449
|
componentId: "sc-1nahsvw-3"
|
|
674
|
-
})(["width:0;height:0;border-left:", " solid transparent;border-right:", " solid transparent;position:absolute;border-bottom-width:", ";border-bottom-style:solid;", ""],
|
|
675
|
-
normal:
|
|
676
|
-
light:
|
|
677
|
-
dark:
|
|
678
|
-
}),
|
|
679
|
-
inverted:
|
|
680
|
-
light:
|
|
681
|
-
dark:
|
|
450
|
+
})(["width:0;height:0;border-left:", " solid transparent;border-right:", " solid transparent;position:absolute;border-bottom-width:", ";border-bottom-style:solid;", ""], arrowHeight, arrowHeight, arrowHeight, (0,themes_namespaceObject.pickVariant)('$appearance', {
|
|
451
|
+
normal: (0,external_styled_components_namespaceObject.css)(["border-bottom-color:", ";&::before{content:'';display:block;width:0;height:0;border-left:", " solid transparent;border-right:", " solid transparent;border-bottom:", " solid ", ";position:absolute;top:1px;left:0;margin-left:-", ";}"], (0,themes_namespaceObject.pick)({
|
|
452
|
+
light: themes_namespaceObject.variables.borderColor,
|
|
453
|
+
dark: themes_namespaceObject.variables.black
|
|
454
|
+
}), arrowHeight, arrowHeight, arrowHeight, themes_namespaceObject.variables.backgroundColor, arrowHeight),
|
|
455
|
+
inverted: (0,external_styled_components_namespaceObject.css)(["border-bottom-color:", ";"], (0,themes_namespaceObject.pick)({
|
|
456
|
+
light: themes_namespaceObject.variables.gray20,
|
|
457
|
+
dark: themes_namespaceObject.variables.white
|
|
682
458
|
}))
|
|
683
459
|
}));
|
|
684
|
-
var StyledLowerRightCorner = external_styled_components_default.
|
|
460
|
+
var StyledLowerRightCorner = external_styled_components_default().div.withConfig({
|
|
685
461
|
displayName: "PopoverStyles__StyledLowerRightCorner",
|
|
686
462
|
componentId: "sc-1nahsvw-4"
|
|
687
463
|
})(["position:fixed;right:0;bottom:0;"]);
|
|
688
|
-
var StyledHitArea = external_styled_components_default.
|
|
464
|
+
var StyledHitArea = external_styled_components_default().svg.withConfig({
|
|
689
465
|
displayName: "PopoverStyles__StyledHitArea",
|
|
690
466
|
componentId: "sc-1nahsvw-5"
|
|
691
467
|
})(["position:fixed;pointer-events:none;path{pointer-events:auto;stroke-width:0;stroke:transparent;fill:transparent;}"]);
|
|
692
468
|
|
|
693
|
-
|
|
469
|
+
;// CONCATENATED MODULE: ./src/Popover/PopoverHitArea.tsx
|
|
694
470
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
695
471
|
|
|
696
472
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -707,9 +483,9 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
707
483
|
|
|
708
484
|
|
|
709
485
|
var propTypes = {
|
|
710
|
-
anchorRect: external_prop_types_default.
|
|
711
|
-
popoverEl: external_prop_types_default.
|
|
712
|
-
popoverPlacement: external_prop_types_default.
|
|
486
|
+
anchorRect: (external_prop_types_default()).object,
|
|
487
|
+
popoverEl: (external_prop_types_default()).object,
|
|
488
|
+
popoverPlacement: external_prop_types_default().oneOf(['above', 'below', 'left', 'right', 'misaligned'])
|
|
713
489
|
};
|
|
714
490
|
|
|
715
491
|
var getHitAreaSettings = function getHitAreaSettings(_ref) {
|
|
@@ -790,22 +566,22 @@ var getHitAreaSettings = function getHitAreaSettings(_ref) {
|
|
|
790
566
|
};
|
|
791
567
|
};
|
|
792
568
|
|
|
793
|
-
var PopoverHitArea = /*#__PURE__*/external_react_default.
|
|
569
|
+
var PopoverHitArea = /*#__PURE__*/external_react_default().forwardRef(function (_ref2, ref) {
|
|
794
570
|
var anchorRect = _ref2.anchorRect,
|
|
795
571
|
popoverEl = _ref2.popoverEl,
|
|
796
572
|
popoverPlacement = _ref2.popoverPlacement;
|
|
797
573
|
|
|
798
|
-
var _useState =
|
|
574
|
+
var _useState = (0,external_react_namespaceObject.useState)(null),
|
|
799
575
|
_useState2 = _slicedToArray(_useState, 2),
|
|
800
576
|
hitAreaPathState = _useState2[0],
|
|
801
577
|
setHitAreaPathState = _useState2[1];
|
|
802
578
|
|
|
803
|
-
var _useState3 =
|
|
579
|
+
var _useState3 = (0,external_react_namespaceObject.useState)({}),
|
|
804
580
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
805
581
|
hitAreaStyleState = _useState4[0],
|
|
806
582
|
setHitAreaStyleState = _useState4[1];
|
|
807
583
|
|
|
808
|
-
|
|
584
|
+
(0,external_react_namespaceObject.useEffect)(function () {
|
|
809
585
|
var _getHitAreaSettings = getHitAreaSettings({
|
|
810
586
|
anchorRect: anchorRect,
|
|
811
587
|
popoverEl: popoverEl,
|
|
@@ -819,10 +595,10 @@ var PopoverHitArea = /*#__PURE__*/external_react_default.a.forwardRef(function (
|
|
|
819
595
|
}, [anchorRect, popoverEl, popoverPlacement]);
|
|
820
596
|
|
|
821
597
|
if (hitAreaPathState != null) {
|
|
822
|
-
return /*#__PURE__*/external_react_default.
|
|
598
|
+
return /*#__PURE__*/external_react_default().createElement(StyledHitArea, {
|
|
823
599
|
"data-test": "popover-hit-area",
|
|
824
600
|
style: hitAreaStyleState
|
|
825
|
-
}, /*#__PURE__*/external_react_default.
|
|
601
|
+
}, /*#__PURE__*/external_react_default().createElement("path", {
|
|
826
602
|
d: hitAreaPathState,
|
|
827
603
|
ref: ref
|
|
828
604
|
}));
|
|
@@ -831,11 +607,138 @@ var PopoverHitArea = /*#__PURE__*/external_react_default.a.forwardRef(function (
|
|
|
831
607
|
return null;
|
|
832
608
|
});
|
|
833
609
|
PopoverHitArea.propTypes = propTypes;
|
|
834
|
-
/* harmony default export */
|
|
835
|
-
|
|
836
|
-
|
|
610
|
+
/* harmony default export */ const Popover_PopoverHitArea = (PopoverHitArea);
|
|
611
|
+
;// CONCATENATED MODULE: ./src/utils/ssrDocument.ts
|
|
612
|
+
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
613
|
+
var ssrDocument = {
|
|
614
|
+
body: {
|
|
615
|
+
appendChild: function appendChild() {
|
|
616
|
+
return [];
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
addEventListener: function addEventListener() {},
|
|
620
|
+
removeEventListener: function removeEventListener() {},
|
|
621
|
+
activeElement: {
|
|
622
|
+
blur: function blur() {},
|
|
623
|
+
nodeName: ''
|
|
624
|
+
},
|
|
625
|
+
querySelector: function querySelector() {
|
|
626
|
+
return null;
|
|
627
|
+
},
|
|
628
|
+
querySelectorAll: function querySelectorAll() {
|
|
629
|
+
return [];
|
|
630
|
+
},
|
|
631
|
+
getElementById: function getElementById() {
|
|
632
|
+
return null;
|
|
633
|
+
},
|
|
634
|
+
createEvent: function createEvent() {
|
|
635
|
+
return {
|
|
636
|
+
initEvent: function initEvent() {}
|
|
637
|
+
};
|
|
638
|
+
},
|
|
639
|
+
createElement: function createElement() {
|
|
640
|
+
return {
|
|
641
|
+
children: [],
|
|
642
|
+
childNodes: [],
|
|
643
|
+
style: {},
|
|
644
|
+
setAttribute: function setAttribute() {},
|
|
645
|
+
getElementsByTagName: function getElementsByTagName() {
|
|
646
|
+
return [];
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
},
|
|
650
|
+
createElementNS: function createElementNS() {
|
|
651
|
+
return {};
|
|
652
|
+
},
|
|
653
|
+
importNode: function importNode() {
|
|
654
|
+
return null;
|
|
655
|
+
},
|
|
656
|
+
location: {
|
|
657
|
+
hash: '',
|
|
658
|
+
host: '',
|
|
659
|
+
hostname: '',
|
|
660
|
+
href: '',
|
|
661
|
+
origin: '',
|
|
662
|
+
pathname: '',
|
|
663
|
+
protocol: '',
|
|
664
|
+
search: ''
|
|
665
|
+
}
|
|
666
|
+
};
|
|
837
667
|
|
|
838
|
-
|
|
668
|
+
function getDocument() {
|
|
669
|
+
var doc = typeof document !== 'undefined' ? document : ssrDocument;
|
|
670
|
+
return doc;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
;// CONCATENATED MODULE: ./src/utils/ssrWindow.ts
|
|
675
|
+
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
676
|
+
|
|
677
|
+
var ssrWindow = {
|
|
678
|
+
document: ssrDocument,
|
|
679
|
+
navigator: {
|
|
680
|
+
userAgent: ''
|
|
681
|
+
},
|
|
682
|
+
location: {
|
|
683
|
+
hash: '',
|
|
684
|
+
host: '',
|
|
685
|
+
hostname: '',
|
|
686
|
+
href: '',
|
|
687
|
+
origin: '',
|
|
688
|
+
pathname: '',
|
|
689
|
+
protocol: '',
|
|
690
|
+
search: ''
|
|
691
|
+
},
|
|
692
|
+
history: {
|
|
693
|
+
replaceState: function replaceState() {},
|
|
694
|
+
pushState: function pushState() {},
|
|
695
|
+
go: function go() {},
|
|
696
|
+
back: function back() {}
|
|
697
|
+
},
|
|
698
|
+
CustomEvent: function CustomEvent() {
|
|
699
|
+
return this;
|
|
700
|
+
},
|
|
701
|
+
addEventListener: function addEventListener() {},
|
|
702
|
+
removeEventListener: function removeEventListener() {},
|
|
703
|
+
getComputedStyle: function getComputedStyle() {
|
|
704
|
+
return {
|
|
705
|
+
getPropertyValue: function getPropertyValue() {
|
|
706
|
+
return '';
|
|
707
|
+
}
|
|
708
|
+
};
|
|
709
|
+
},
|
|
710
|
+
Image: function Image() {},
|
|
711
|
+
Date: function Date() {},
|
|
712
|
+
screen: {},
|
|
713
|
+
setTimeout: function setTimeout() {},
|
|
714
|
+
clearTimeout: function clearTimeout() {},
|
|
715
|
+
matchMedia: function matchMedia() {
|
|
716
|
+
return {};
|
|
717
|
+
},
|
|
718
|
+
requestAnimationFrame: function requestAnimationFrame(callback) {
|
|
719
|
+
if (typeof setTimeout === 'undefined') {
|
|
720
|
+
callback();
|
|
721
|
+
return null;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
return setTimeout(callback, 0);
|
|
725
|
+
},
|
|
726
|
+
cancelAnimationFrame: function cancelAnimationFrame(id) {
|
|
727
|
+
if (typeof setTimeout === 'undefined') {
|
|
728
|
+
return;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
clearTimeout(id);
|
|
732
|
+
}
|
|
733
|
+
};
|
|
734
|
+
|
|
735
|
+
function getWindow() {
|
|
736
|
+
var win = typeof window !== 'undefined' ? window : ssrWindow;
|
|
737
|
+
return win;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
;// CONCATENATED MODULE: ./src/utils/getBoundingClientRect.ts
|
|
839
742
|
function getBoundingClientRect_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
840
743
|
|
|
841
744
|
function getBoundingClientRect_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { getBoundingClientRect_ownKeys(Object(source), true).forEach(function (key) { getBoundingClientRect_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { getBoundingClientRect_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
@@ -877,7 +780,7 @@ function getBoundingClientRect(element, offsets) {
|
|
|
877
780
|
return clientRect;
|
|
878
781
|
}
|
|
879
782
|
|
|
880
|
-
var window =
|
|
783
|
+
var window = getWindow();
|
|
881
784
|
var x = clientRect.left + (((_window$visualViewpor = window.visualViewport) === null || _window$visualViewpor === void 0 ? void 0 : _window$visualViewpor.offsetLeft) || 0);
|
|
882
785
|
var y = clientRect.top + (((_window$visualViewpor2 = window.visualViewport) === null || _window$visualViewpor2 === void 0 ? void 0 : _window$visualViewpor2.offsetTop) || 0);
|
|
883
786
|
var width = clientRect.width,
|
|
@@ -891,10 +794,27 @@ function getBoundingClientRect(element, offsets) {
|
|
|
891
794
|
}
|
|
892
795
|
|
|
893
796
|
|
|
894
|
-
|
|
895
|
-
|
|
797
|
+
;// CONCATENATED MODULE: ./src/utils/updateReactRef.ts
|
|
798
|
+
/**
|
|
799
|
+
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
800
|
+
*
|
|
801
|
+
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
802
|
+
* @param current - The new value of the ref.
|
|
803
|
+
*/
|
|
804
|
+
function updateReactRef(ref, current) {
|
|
805
|
+
if (ref) {
|
|
806
|
+
if (typeof ref === 'function') {
|
|
807
|
+
ref(current);
|
|
808
|
+
} else {
|
|
809
|
+
// the public signature of this util uses React.Ref<T> to mirror the way React types refs.
|
|
810
|
+
// the intention here is to signal "we will take care of setting 'current', not you".
|
|
811
|
+
ref.current = current; // eslint-disable-line no-param-reassign
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
}
|
|
896
815
|
|
|
897
|
-
|
|
816
|
+
|
|
817
|
+
;// CONCATENATED MODULE: ./src/Popover/Popover.tsx
|
|
898
818
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
899
819
|
|
|
900
820
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -976,30 +896,30 @@ function Popover_defineProperty(obj, key, value) { if (key in obj) { Object.defi
|
|
|
976
896
|
|
|
977
897
|
var possibleCloseReasons = ['clickAway', 'escapeKey', 'offScreen', 'tabKey'];
|
|
978
898
|
var Popover_propTypes = {
|
|
979
|
-
align: external_prop_types_default.
|
|
980
|
-
anchor: external_prop_types_default.
|
|
981
|
-
animation: external_prop_types_default.
|
|
982
|
-
animationConfig: external_prop_types_default.
|
|
983
|
-
appearance: external_prop_types_default.
|
|
984
|
-
autoCloseWhenOffScreen: external_prop_types_default.
|
|
985
|
-
canCoverAnchor: external_prop_types_default.
|
|
986
|
-
children: external_prop_types_default.
|
|
987
|
-
closeReasons: external_prop_types_default.
|
|
988
|
-
defaultPlacement: external_prop_types_default.
|
|
989
|
-
elementRef: external_prop_types_default.
|
|
990
|
-
id: external_prop_types_default.
|
|
991
|
-
hitAreaRef: external_prop_types_default.
|
|
992
|
-
onRequestClose: external_prop_types_default.
|
|
993
|
-
open: external_prop_types_default.
|
|
994
|
-
outerRef: external_prop_types_default.
|
|
995
|
-
pointTo: external_prop_types_default.
|
|
996
|
-
x: external_prop_types_default.
|
|
997
|
-
y: external_prop_types_default.
|
|
899
|
+
align: external_prop_types_default().oneOf(['center', 'edge', 'theme', 'end']),
|
|
900
|
+
anchor: (external_prop_types_default()).object,
|
|
901
|
+
animation: (external_prop_types_default()).bool,
|
|
902
|
+
animationConfig: (external_prop_types_default()).object,
|
|
903
|
+
appearance: external_prop_types_default().oneOf(['normal', 'inverted', 'none']),
|
|
904
|
+
autoCloseWhenOffScreen: (external_prop_types_default()).bool,
|
|
905
|
+
canCoverAnchor: (external_prop_types_default()).bool,
|
|
906
|
+
children: external_prop_types_default().oneOfType([(external_prop_types_default()).node, (external_prop_types_default()).func]),
|
|
907
|
+
closeReasons: external_prop_types_default().arrayOf(external_prop_types_default().oneOf(possibleCloseReasons)),
|
|
908
|
+
defaultPlacement: external_prop_types_default().oneOf(['above', 'below', 'left', 'right', 'vertical', 'horizontal']),
|
|
909
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
910
|
+
id: (external_prop_types_default()).string,
|
|
911
|
+
hitAreaRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
912
|
+
onRequestClose: (external_prop_types_default()).func,
|
|
913
|
+
open: (external_prop_types_default()).bool,
|
|
914
|
+
outerRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
915
|
+
pointTo: external_prop_types_default().shape({
|
|
916
|
+
x: (external_prop_types_default()).number,
|
|
917
|
+
y: (external_prop_types_default()).number
|
|
998
918
|
}),
|
|
999
|
-
repositionMode: external_prop_types_default.
|
|
1000
|
-
retainFocus: external_prop_types_default.
|
|
1001
|
-
takeFocus: external_prop_types_default.
|
|
1002
|
-
splunkTheme: external_prop_types_default.
|
|
919
|
+
repositionMode: external_prop_types_default().oneOf(['none', 'flip', 'any']),
|
|
920
|
+
retainFocus: (external_prop_types_default()).bool,
|
|
921
|
+
takeFocus: (external_prop_types_default()).bool,
|
|
922
|
+
splunkTheme: (external_prop_types_default()).object
|
|
1003
923
|
};
|
|
1004
924
|
var defaultProps = {
|
|
1005
925
|
align: 'theme',
|
|
@@ -1038,7 +958,7 @@ function isHTMLElement(container) {
|
|
|
1038
958
|
*/
|
|
1039
959
|
|
|
1040
960
|
|
|
1041
|
-
var
|
|
961
|
+
var Popover = /*#__PURE__*/function (_Component) {
|
|
1042
962
|
_inherits(Popover, _Component);
|
|
1043
963
|
|
|
1044
964
|
var _super = _createSuper(Popover);
|
|
@@ -1151,7 +1071,7 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
1151
1071
|
});
|
|
1152
1072
|
|
|
1153
1073
|
Popover_defineProperty(_assertThisInitialized(_this), "setPlacement", function (scrolling) {
|
|
1154
|
-
var window =
|
|
1074
|
+
var window = getWindow();
|
|
1155
1075
|
|
|
1156
1076
|
_this.setState(function (state) {
|
|
1157
1077
|
var _state$arrowStyleTran;
|
|
@@ -1244,7 +1164,7 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
1244
1164
|
if (anchor && !(anchor instanceof HTMLElement)) {
|
|
1245
1165
|
if (false) {}
|
|
1246
1166
|
|
|
1247
|
-
anchorEl =
|
|
1167
|
+
anchorEl = (0,external_react_dom_namespaceObject.findDOMNode)(anchor); // eslint-disable-line react/no-find-dom-node
|
|
1248
1168
|
} else {
|
|
1249
1169
|
anchorEl = anchor !== null && anchor !== void 0 ? anchor : undefined;
|
|
1250
1170
|
}
|
|
@@ -1262,23 +1182,23 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
1262
1182
|
_this.innerContainerEl = el;
|
|
1263
1183
|
|
|
1264
1184
|
if (el && _this.props.takeFocus) {
|
|
1265
|
-
defer_default()(
|
|
1185
|
+
defer_default()(focus_namespaceObject.takeFocus, el);
|
|
1266
1186
|
}
|
|
1267
1187
|
|
|
1268
|
-
|
|
1188
|
+
updateReactRef(_this.props.elementRef, el);
|
|
1269
1189
|
});
|
|
1270
1190
|
|
|
1271
1191
|
Popover_defineProperty(_assertThisInitialized(_this), "handleOuterContainerMount", function (el) {
|
|
1272
1192
|
_this.outerContainerEl = el;
|
|
1273
|
-
|
|
1193
|
+
updateReactRef(_this.props.outerRef, el);
|
|
1274
1194
|
});
|
|
1275
1195
|
|
|
1276
1196
|
Popover_defineProperty(_assertThisInitialized(_this), "handleTab", function (e) {
|
|
1277
1197
|
if (_this.innerContainerEl) {
|
|
1278
1198
|
if (_this.props.retainFocus) {
|
|
1279
|
-
|
|
1280
|
-
} else if (
|
|
1281
|
-
var tabbableElements =
|
|
1199
|
+
(0,focus_namespaceObject.handleTab)(_this.innerContainerEl, e);
|
|
1200
|
+
} else if ((0,focus_namespaceObject.isTabKey)(e)) {
|
|
1201
|
+
var tabbableElements = (0,focus_namespaceObject.getSortedTabbableElements)(_this.innerContainerEl);
|
|
1282
1202
|
|
|
1283
1203
|
if (tabbableElements.length > 0) {
|
|
1284
1204
|
var finalTabbale = e.shiftKey ? tabbableElements[0] : tabbableElements[tabbableElements.length - 1];
|
|
@@ -1354,7 +1274,7 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
1354
1274
|
};
|
|
1355
1275
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
1356
1276
|
|
|
1357
|
-
return /*#__PURE__*/external_react_default.
|
|
1277
|
+
return /*#__PURE__*/external_react_default().createElement(Animation_namespaceObject.Spring, {
|
|
1358
1278
|
from: {
|
|
1359
1279
|
opacity: animation ? 0 : 1
|
|
1360
1280
|
},
|
|
@@ -1365,11 +1285,11 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
1365
1285
|
}, animationConfig),
|
|
1366
1286
|
onRest: _this.handleAnimationEnd
|
|
1367
1287
|
}, function (interpolatedStyles) {
|
|
1368
|
-
return /*#__PURE__*/external_react_default.
|
|
1288
|
+
return /*#__PURE__*/external_react_default().createElement(Styled, {
|
|
1369
1289
|
"data-test": "outer-popover",
|
|
1370
1290
|
style: Popover_objectSpread(Popover_objectSpread({}, outerContainerStyle), interpolatedStyles),
|
|
1371
1291
|
ref: _this.handleOuterContainerMount
|
|
1372
|
-
}, (open || _this.state.animating) && /*#__PURE__*/external_react_default.
|
|
1292
|
+
}, (open || _this.state.animating) && /*#__PURE__*/external_react_default().createElement(StyledBox, _extends({
|
|
1373
1293
|
$appearance: displayAppearance,
|
|
1374
1294
|
$open: open,
|
|
1375
1295
|
"data-test": "popover",
|
|
@@ -1378,19 +1298,19 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
1378
1298
|
id: id,
|
|
1379
1299
|
onKeyDown: _this.handleTab // TODO: remove anchor once prop type generation is fixed
|
|
1380
1300
|
|
|
1381
|
-
}, omit_default()(_this.props, ['anchor'].concat(_toConsumableArray(keys_default()(Popover.propTypes))))), /*#__PURE__*/external_react_default.
|
|
1301
|
+
}, omit_default()(_this.props, ['anchor'].concat(_toConsumableArray(keys_default()(Popover.propTypes))))), /*#__PURE__*/external_react_default().createElement(PopoverContext.Provider, {
|
|
1382
1302
|
value: {
|
|
1383
1303
|
retainFocus: retainFocus
|
|
1384
1304
|
}
|
|
1385
|
-
}, /*#__PURE__*/external_react_default.
|
|
1305
|
+
}, /*#__PURE__*/external_react_default().createElement((external_react_default()).Fragment, null, appearance === 'none' && children, appearance !== 'none' && !isPrisma && /*#__PURE__*/external_react_default().createElement(StyledArrow, {
|
|
1386
1306
|
$appearance: displayAppearance,
|
|
1387
1307
|
ref: function ref(arrow) {
|
|
1388
1308
|
_this.arrow = arrow;
|
|
1389
1309
|
},
|
|
1390
1310
|
style: arrowStyle
|
|
1391
|
-
}), appearance !== 'none' && /*#__PURE__*/external_react_default.
|
|
1311
|
+
}), appearance !== 'none' && /*#__PURE__*/external_react_default().createElement(StyledContent, {
|
|
1392
1312
|
$appearance: displayAppearance
|
|
1393
|
-
}, isFunction_default()(children) ? children(childData) : children)))), /*#__PURE__*/external_react_default.
|
|
1313
|
+
}, isFunction_default()(children) ? children(childData) : children)))), /*#__PURE__*/external_react_default().createElement(StyledLowerRightCorner, {
|
|
1394
1314
|
ref: function ref(el) {
|
|
1395
1315
|
_this.windowSizeMeasurementEl = el;
|
|
1396
1316
|
}
|
|
@@ -1434,7 +1354,7 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
1434
1354
|
// causes the popover contents to receive focus even though the popover closing
|
|
1435
1355
|
|
|
1436
1356
|
if (!prevProps.open && this.props.open && this.props.takeFocus) {
|
|
1437
|
-
|
|
1357
|
+
(0,focus_namespaceObject.takeFocus)(this.innerContainerEl);
|
|
1438
1358
|
}
|
|
1439
1359
|
}
|
|
1440
1360
|
}
|
|
@@ -1449,7 +1369,7 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
1449
1369
|
}, {
|
|
1450
1370
|
key: "autoCloseWhenOffScreen",
|
|
1451
1371
|
value: function autoCloseWhenOffScreen(anchorPosition, scrollContainerPosition) {
|
|
1452
|
-
var window =
|
|
1372
|
+
var window = getWindow();
|
|
1453
1373
|
|
|
1454
1374
|
if (anchorPosition.top < 0 || anchorPosition.top > window.innerHeight || anchorPosition.left < 0 || anchorPosition.left > window.innerWidth) {
|
|
1455
1375
|
this.requestClose({
|
|
@@ -1481,7 +1401,7 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
1481
1401
|
}, {
|
|
1482
1402
|
key: "render",
|
|
1483
1403
|
value: function render() {
|
|
1484
|
-
var window =
|
|
1404
|
+
var window = getWindow();
|
|
1485
1405
|
var open = this.props.open || this.state.animating;
|
|
1486
1406
|
var scrollContainer = this.context || window;
|
|
1487
1407
|
var hasCustomizedScrollContainer = scrollContainer !== window;
|
|
@@ -1490,7 +1410,7 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
1490
1410
|
placement = _this$state3.placement; // EventListeners only need to be rendered when open,
|
|
1491
1411
|
// otherwise leads to negative performance impacts
|
|
1492
1412
|
|
|
1493
|
-
var eventListeners = open ? [hasCustomizedScrollContainer && /*#__PURE__*/external_react_default.
|
|
1413
|
+
var eventListeners = open ? [hasCustomizedScrollContainer && /*#__PURE__*/external_react_default().createElement((EventListener_default()), {
|
|
1494
1414
|
target: scrollContainer,
|
|
1495
1415
|
eventType: "scroll",
|
|
1496
1416
|
listener: this.handleScroll,
|
|
@@ -1499,12 +1419,12 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
1499
1419
|
capture: true
|
|
1500
1420
|
},
|
|
1501
1421
|
key: "eventListener"
|
|
1502
|
-
}), /*#__PURE__*/external_react_default.
|
|
1422
|
+
}), /*#__PURE__*/external_react_default().createElement((EventListener_default()), {
|
|
1503
1423
|
target: window,
|
|
1504
1424
|
eventType: "resize",
|
|
1505
1425
|
listener: this.setPlacement,
|
|
1506
1426
|
key: "eventListenerOnWindowResize"
|
|
1507
|
-
}), /*#__PURE__*/external_react_default.
|
|
1427
|
+
}), /*#__PURE__*/external_react_default().createElement((EventListener_default()), {
|
|
1508
1428
|
target: window,
|
|
1509
1429
|
eventType: "scroll",
|
|
1510
1430
|
listener: this.handleWindowScroll,
|
|
@@ -1514,14 +1434,14 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
1514
1434
|
},
|
|
1515
1435
|
key: "eventListenerOnWindowScroll"
|
|
1516
1436
|
})] : [];
|
|
1517
|
-
return [].concat(eventListeners, [/*#__PURE__*/external_react_default.
|
|
1437
|
+
return [].concat(eventListeners, [/*#__PURE__*/external_react_default().createElement((Layer_default()), {
|
|
1518
1438
|
closeReasons: intersection_default()(this.props.closeReasons.filter(function (reason) {
|
|
1519
1439
|
return reason !== 'offScreen';
|
|
1520
|
-
}), Layer_default.
|
|
1440
|
+
}), (Layer_default()).possibleCloseReasons),
|
|
1521
1441
|
open: open,
|
|
1522
1442
|
onRequestClose: this.handleRequestClose,
|
|
1523
1443
|
key: "Layer"
|
|
1524
|
-
}, open && this.innerContainerEl && this.props.hitAreaRef && /*#__PURE__*/external_react_default.
|
|
1444
|
+
}, open && this.innerContainerEl && this.props.hitAreaRef && /*#__PURE__*/external_react_default().createElement(Popover_PopoverHitArea, {
|
|
1525
1445
|
anchorRect: anchorPos,
|
|
1526
1446
|
popoverEl: this.innerContainerEl,
|
|
1527
1447
|
popoverPlacement: placement,
|
|
@@ -1531,15 +1451,15 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
1531
1451
|
}]);
|
|
1532
1452
|
|
|
1533
1453
|
return Popover;
|
|
1534
|
-
}(
|
|
1454
|
+
}(external_react_namespaceObject.Component);
|
|
1535
1455
|
|
|
1536
|
-
Popover_defineProperty(
|
|
1456
|
+
Popover_defineProperty(Popover, "contextType", (ScrollContainerContext_default()));
|
|
1537
1457
|
|
|
1538
|
-
Popover_defineProperty(
|
|
1458
|
+
Popover_defineProperty(Popover, "defaultProps", defaultProps);
|
|
1539
1459
|
|
|
1540
|
-
Popover_defineProperty(
|
|
1460
|
+
Popover_defineProperty(Popover, "propTypes", Popover_propTypes);
|
|
1541
1461
|
|
|
1542
|
-
Popover_defineProperty(
|
|
1462
|
+
Popover_defineProperty(Popover, "getDerivedStateFromProps", function (props, state) {
|
|
1543
1463
|
if (props.open !== state.prevOpen) {
|
|
1544
1464
|
return {
|
|
1545
1465
|
animating: props.animation,
|
|
@@ -1550,183 +1470,13 @@ Popover_defineProperty(Popover_Popover, "getDerivedStateFromProps", function (pr
|
|
|
1550
1470
|
return null;
|
|
1551
1471
|
});
|
|
1552
1472
|
|
|
1553
|
-
var PopoverWithTheme =
|
|
1554
|
-
PopoverWithTheme.propTypes =
|
|
1555
|
-
/* harmony default export */
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
/***/ }),
|
|
1562
|
-
|
|
1563
|
-
/***/ 19:
|
|
1564
|
-
/***/ (function(module, exports) {
|
|
1565
|
-
|
|
1566
|
-
module.exports = require("lodash/isFinite");
|
|
1567
|
-
|
|
1568
|
-
/***/ }),
|
|
1569
|
-
|
|
1570
|
-
/***/ 2:
|
|
1571
|
-
/***/ (function(module, exports) {
|
|
1572
|
-
|
|
1573
|
-
module.exports = require("react");
|
|
1574
|
-
|
|
1575
|
-
/***/ }),
|
|
1576
|
-
|
|
1577
|
-
/***/ 24:
|
|
1578
|
-
/***/ (function(module, exports) {
|
|
1579
|
-
|
|
1580
|
-
module.exports = require("react-spring");
|
|
1581
|
-
|
|
1582
|
-
/***/ }),
|
|
1583
|
-
|
|
1584
|
-
/***/ 28:
|
|
1585
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1586
|
-
|
|
1587
|
-
"use strict";
|
|
1588
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getDocument; });
|
|
1589
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ssrDocument; });
|
|
1590
|
-
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
1591
|
-
var ssrDocument = {
|
|
1592
|
-
body: {
|
|
1593
|
-
appendChild: function appendChild() {
|
|
1594
|
-
return [];
|
|
1595
|
-
}
|
|
1596
|
-
},
|
|
1597
|
-
addEventListener: function addEventListener() {},
|
|
1598
|
-
removeEventListener: function removeEventListener() {},
|
|
1599
|
-
activeElement: {
|
|
1600
|
-
blur: function blur() {},
|
|
1601
|
-
nodeName: ''
|
|
1602
|
-
},
|
|
1603
|
-
querySelector: function querySelector() {
|
|
1604
|
-
return null;
|
|
1605
|
-
},
|
|
1606
|
-
querySelectorAll: function querySelectorAll() {
|
|
1607
|
-
return [];
|
|
1608
|
-
},
|
|
1609
|
-
getElementById: function getElementById() {
|
|
1610
|
-
return null;
|
|
1611
|
-
},
|
|
1612
|
-
createEvent: function createEvent() {
|
|
1613
|
-
return {
|
|
1614
|
-
initEvent: function initEvent() {}
|
|
1615
|
-
};
|
|
1616
|
-
},
|
|
1617
|
-
createElement: function createElement() {
|
|
1618
|
-
return {
|
|
1619
|
-
children: [],
|
|
1620
|
-
childNodes: [],
|
|
1621
|
-
style: {},
|
|
1622
|
-
setAttribute: function setAttribute() {},
|
|
1623
|
-
getElementsByTagName: function getElementsByTagName() {
|
|
1624
|
-
return [];
|
|
1625
|
-
}
|
|
1626
|
-
};
|
|
1627
|
-
},
|
|
1628
|
-
createElementNS: function createElementNS() {
|
|
1629
|
-
return {};
|
|
1630
|
-
},
|
|
1631
|
-
importNode: function importNode() {
|
|
1632
|
-
return null;
|
|
1633
|
-
},
|
|
1634
|
-
location: {
|
|
1635
|
-
hash: '',
|
|
1636
|
-
host: '',
|
|
1637
|
-
hostname: '',
|
|
1638
|
-
href: '',
|
|
1639
|
-
origin: '',
|
|
1640
|
-
pathname: '',
|
|
1641
|
-
protocol: '',
|
|
1642
|
-
search: ''
|
|
1643
|
-
}
|
|
1644
|
-
};
|
|
1645
|
-
|
|
1646
|
-
function getDocument() {
|
|
1647
|
-
var doc = typeof document !== 'undefined' ? document : ssrDocument;
|
|
1648
|
-
return doc;
|
|
1649
|
-
}
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
/***/ }),
|
|
1654
|
-
|
|
1655
|
-
/***/ 3:
|
|
1656
|
-
/***/ (function(module, exports) {
|
|
1657
|
-
|
|
1658
|
-
module.exports = require("styled-components");
|
|
1659
|
-
|
|
1660
|
-
/***/ }),
|
|
1661
|
-
|
|
1662
|
-
/***/ 31:
|
|
1663
|
-
/***/ (function(module, exports) {
|
|
1664
|
-
|
|
1665
|
-
module.exports = require("@splunk/ui-utils/focus");
|
|
1666
|
-
|
|
1667
|
-
/***/ }),
|
|
1668
|
-
|
|
1669
|
-
/***/ 33:
|
|
1670
|
-
/***/ (function(module, exports) {
|
|
1671
|
-
|
|
1672
|
-
module.exports = require("lodash/throttle");
|
|
1673
|
-
|
|
1674
|
-
/***/ }),
|
|
1675
|
-
|
|
1676
|
-
/***/ 43:
|
|
1677
|
-
/***/ (function(module, exports) {
|
|
1678
|
-
|
|
1679
|
-
module.exports = require("@splunk/react-ui/Animation");
|
|
1680
|
-
|
|
1681
|
-
/***/ }),
|
|
1682
|
-
|
|
1683
|
-
/***/ 5:
|
|
1684
|
-
/***/ (function(module, exports) {
|
|
1685
|
-
|
|
1686
|
-
module.exports = require("lodash/omit");
|
|
1687
|
-
|
|
1688
|
-
/***/ }),
|
|
1689
|
-
|
|
1690
|
-
/***/ 53:
|
|
1691
|
-
/***/ (function(module, exports) {
|
|
1692
|
-
|
|
1693
|
-
module.exports = require("@splunk/react-ui/ScrollContainerContext");
|
|
1694
|
-
|
|
1695
|
-
/***/ }),
|
|
1696
|
-
|
|
1697
|
-
/***/ 58:
|
|
1698
|
-
/***/ (function(module, exports) {
|
|
1699
|
-
|
|
1700
|
-
module.exports = require("lodash/defer");
|
|
1701
|
-
|
|
1702
|
-
/***/ }),
|
|
1703
|
-
|
|
1704
|
-
/***/ 71:
|
|
1705
|
-
/***/ (function(module, exports) {
|
|
1706
|
-
|
|
1707
|
-
module.exports = require("lodash/isFunction");
|
|
1708
|
-
|
|
1709
|
-
/***/ }),
|
|
1710
|
-
|
|
1711
|
-
/***/ 85:
|
|
1712
|
-
/***/ (function(module, exports) {
|
|
1713
|
-
|
|
1714
|
-
module.exports = require("@splunk/react-ui/Layer");
|
|
1715
|
-
|
|
1716
|
-
/***/ }),
|
|
1717
|
-
|
|
1718
|
-
/***/ 9:
|
|
1719
|
-
/***/ (function(module, exports) {
|
|
1720
|
-
|
|
1721
|
-
module.exports = require("lodash/keys");
|
|
1722
|
-
|
|
1723
|
-
/***/ }),
|
|
1724
|
-
|
|
1725
|
-
/***/ 93:
|
|
1726
|
-
/***/ (function(module, exports) {
|
|
1473
|
+
var PopoverWithTheme = (0,themes_namespaceObject.withSplunkTheme)(Popover);
|
|
1474
|
+
PopoverWithTheme.propTypes = Popover.propTypes;
|
|
1475
|
+
/* harmony default export */ const Popover_Popover = (PopoverWithTheme);
|
|
1476
|
+
;// CONCATENATED MODULE: ./src/Popover/index.ts
|
|
1727
1477
|
|
|
1728
|
-
module.exports = require("react-dom");
|
|
1729
1478
|
|
|
1730
|
-
/***/ })
|
|
1731
1479
|
|
|
1732
|
-
|
|
1480
|
+
module.exports = __webpack_exports__;
|
|
1481
|
+
/******/ })()
|
|
1482
|
+
;
|