@splunk/react-ui 4.18.0 → 4.20.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 +6 -6
- package/Anchor.js +2 -2
- package/Animation.js +4 -4
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Breadcrumbs.d.ts +2 -0
- package/Breadcrumbs.js +299 -0
- package/Button.js +17 -17
- package/ButtonGroup.js +2 -2
- package/ButtonSimple.js +2 -2
- package/CHANGELOG.md +25 -1
- package/Calendar.js +17 -17
- package/Card.js +10 -10
- package/CardLayout.js +2 -2
- package/Chip.js +32 -25
- package/Clickable.js +16 -14
- package/CloseButton.js +8 -8
- package/Code.js +40 -15
- package/CollapsiblePanel.js +10 -10
- package/Color.js +33 -33
- package/ColumnLayout.js +8 -8
- package/ComboBox.js +28 -28
- package/Concertina.js +18 -18
- package/ControlGroup.js +13 -13
- package/Date.js +29 -29
- package/DefinitionList.js +2 -2
- package/Divider.js +2 -2
- package/Dropdown.js +21 -21
- package/DualListbox.js +24 -24
- package/EventListener.js +4 -4
- package/File.js +23 -23
- package/FormRows.js +266 -105
- package/Heading.js +45 -49
- package/Image.js +23 -23
- package/JSONTree.js +20 -20
- package/Layer.js +14 -14
- package/Link.js +7 -7
- package/List.js +2 -2
- package/Markdown.js +19 -20
- package/Menu.js +252 -232
- package/Message.js +43 -43
- package/MessageBar.js +39 -39
- package/Modal.js +20 -20
- package/ModalLayer.js +6 -6
- package/Monogram.js +3 -3
- package/Multiselect.js +2987 -2493
- package/Number.js +8 -8
- package/Paginator.js +16 -16
- package/Paragraph.js +2 -2
- package/Popover.js +113 -50
- package/Progress.js +10 -10
- package/RadioBar.js +4 -4
- package/RadioList.js +2 -2
- package/Resize.js +4 -4
- package/ResultsMenu.js +43 -22
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +8 -8
- package/ScrollContainerContext.js +4 -4
- package/Search.js +25 -25
- package/Select.js +517 -120
- package/SidePanel.js +6 -6
- package/Slider.js +8 -8
- package/SlidingPanels.js +10 -10
- package/SplitButton.js +4 -4
- package/StaticContent.js +2 -2
- package/StepBar.js +8 -8
- package/Switch.js +6 -6
- package/TabBar.js +6 -6
- package/TabLayout.js +6 -6
- package/Table.js +145 -111
- package/Text.js +40 -38
- package/TextArea.js +42 -40
- package/Tooltip.js +15 -15
- package/TransitionOpen.js +11 -11
- package/Typography.js +4 -4
- package/WaitSpinner.js +5 -5
- package/cypress/support/component-index.html +12 -0
- package/cypress/support/component.ts +27 -0
- package/cypress.config.ts +19 -0
- package/package.json +17 -17
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +25 -0
- package/types/src/Breadcrumbs/Item.d.ts +42 -0
- package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -0
- package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -0
- package/types/src/Breadcrumbs/index.d.ts +2 -0
- package/types/src/Clickable/docs/examples/Basic.d.ts +2 -2
- package/types/src/Code/Code.d.ts +1 -1
- package/types/src/FormRows/FormRows.d.ts +1 -2
- package/types/src/FormRows/Row.d.ts +2 -12
- package/types/src/FormRows/RowInternal.d.ts +19 -0
- package/types/src/FormRows/SortableList.d.ts +8 -2
- package/types/src/FormRows/SortableRow.d.ts +20 -0
- package/types/src/Heading/Heading.d.ts +1 -1
- package/types/src/Link/Link.d.ts +5 -0
- package/types/src/Multiselect/Compact.d.ts +4 -0
- package/types/src/Multiselect/Multiselect.d.ts +5 -0
- package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -0
- package/types/src/Select/SelectAllOption.d.ts +14 -0
- package/types/src/Select/SelectBase.d.ts +11 -3
- package/types/src/Table/Table.d.ts +4 -0
- package/types/src/Text/Text.d.ts +3 -3
- package/types/src/TextArea/TextArea.d.ts +3 -3
- package/useForceUpdate.js +2 -2
- package/useKeyPress.js +2 -2
- package/usePrevious.js +2 -2
- package/useRovingFocus.js +4 -4
- package/cypress/plugins/index.ts +0 -15
- package/cypress/support/index.ts +0 -10
- package/cypress.json +0 -13
- package/types/src/Typography/docs/examples/Variants.d.ts +0 -2
package/RadioBar.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 188);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 11:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("lodash/has");
|
|
@@ -122,7 +122,7 @@ module.exports = require("@splunk/react-ui/Button");
|
|
|
122
122
|
|
|
123
123
|
/***/ }),
|
|
124
124
|
|
|
125
|
-
/***/
|
|
125
|
+
/***/ 188:
|
|
126
126
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
127
127
|
|
|
128
128
|
"use strict";
|
|
@@ -142,7 +142,7 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
142
142
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
143
143
|
|
|
144
144
|
// EXTERNAL MODULE: external "lodash/has"
|
|
145
|
-
var has_ = __webpack_require__(
|
|
145
|
+
var has_ = __webpack_require__(11);
|
|
146
146
|
var has_default = /*#__PURE__*/__webpack_require__.n(has_);
|
|
147
147
|
|
|
148
148
|
// EXTERNAL MODULE: external "lodash/omit"
|
package/RadioList.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 189);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 189:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
package/Resize.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 229);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 10:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -149,7 +149,7 @@ module.exports = require("react");
|
|
|
149
149
|
|
|
150
150
|
/***/ }),
|
|
151
151
|
|
|
152
|
-
/***/
|
|
152
|
+
/***/ 229:
|
|
153
153
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
154
154
|
|
|
155
155
|
"use strict";
|
|
@@ -279,7 +279,7 @@ var StyledResize = external_styled_components_default.a.button.withConfig({
|
|
|
279
279
|
}));
|
|
280
280
|
|
|
281
281
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
282
|
-
var updateReactRef = __webpack_require__(
|
|
282
|
+
var updateReactRef = __webpack_require__(10);
|
|
283
283
|
|
|
284
284
|
// CONCATENATED MODULE: ./src/Resize/Resize.tsx
|
|
285
285
|
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); }
|
package/ResultsMenu.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 230);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 10:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -135,14 +135,14 @@ module.exports = require("@splunk/react-ui/Menu");
|
|
|
135
135
|
|
|
136
136
|
/***/ }),
|
|
137
137
|
|
|
138
|
-
/***/
|
|
138
|
+
/***/ 153:
|
|
139
139
|
/***/ (function(module, exports) {
|
|
140
140
|
|
|
141
141
|
module.exports = require("@splunk/ui-utils/userAgent");
|
|
142
142
|
|
|
143
143
|
/***/ }),
|
|
144
144
|
|
|
145
|
-
/***/
|
|
145
|
+
/***/ 154:
|
|
146
146
|
/***/ (function(module, exports) {
|
|
147
147
|
|
|
148
148
|
module.exports = require("@splunk/react-ui/WaitSpinner");
|
|
@@ -156,7 +156,7 @@ module.exports = require("react");
|
|
|
156
156
|
|
|
157
157
|
/***/ }),
|
|
158
158
|
|
|
159
|
-
/***/
|
|
159
|
+
/***/ 230:
|
|
160
160
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
161
161
|
|
|
162
162
|
"use strict";
|
|
@@ -178,6 +178,10 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
178
178
|
var keys_ = __webpack_require__(9);
|
|
179
179
|
var keys_default = /*#__PURE__*/__webpack_require__.n(keys_);
|
|
180
180
|
|
|
181
|
+
// EXTERNAL MODULE: external "lodash/memoize"
|
|
182
|
+
var memoize_ = __webpack_require__(40);
|
|
183
|
+
var memoize_default = /*#__PURE__*/__webpack_require__.n(memoize_);
|
|
184
|
+
|
|
181
185
|
// EXTERNAL MODULE: external "lodash/omit"
|
|
182
186
|
var omit_ = __webpack_require__(5);
|
|
183
187
|
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
@@ -186,7 +190,7 @@ var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
|
186
190
|
var i18n_ = __webpack_require__(4);
|
|
187
191
|
|
|
188
192
|
// EXTERNAL MODULE: external "@splunk/ui-utils/userAgent"
|
|
189
|
-
var userAgent_ = __webpack_require__(
|
|
193
|
+
var userAgent_ = __webpack_require__(153);
|
|
190
194
|
|
|
191
195
|
// EXTERNAL MODULE: external "@splunk/react-ui/Menu"
|
|
192
196
|
var Menu_ = __webpack_require__(13);
|
|
@@ -197,7 +201,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
197
201
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
198
202
|
|
|
199
203
|
// EXTERNAL MODULE: external "@splunk/react-ui/WaitSpinner"
|
|
200
|
-
var WaitSpinner_ = __webpack_require__(
|
|
204
|
+
var WaitSpinner_ = __webpack_require__(154);
|
|
201
205
|
var WaitSpinner_default = /*#__PURE__*/__webpack_require__.n(WaitSpinner_);
|
|
202
206
|
|
|
203
207
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -238,17 +242,17 @@ var StyledFooter = external_styled_components_default.a.div.withConfig({
|
|
|
238
242
|
var StyledLoading = external_styled_components_default.a.li.withConfig({
|
|
239
243
|
displayName: "ResultsMenuStyles__StyledLoading",
|
|
240
244
|
componentId: "avbhl8-2"
|
|
241
|
-
})(["", ";padding:", ";"], themes_["mixins"].reset('flex'), Object(themes_["pick"])({
|
|
245
|
+
})(["", ";padding:", ";gap:", ";"], themes_["mixins"].reset('flex'), Object(themes_["pick"])({
|
|
242
246
|
prisma: {
|
|
243
247
|
comfortable: '10px 16px',
|
|
244
248
|
compact: '6px 16px'
|
|
245
249
|
},
|
|
246
250
|
enterprise: '6px 10px'
|
|
247
|
-
}));
|
|
251
|
+
}), themes_["variables"].spacingXSmall);
|
|
248
252
|
var StyledWait = external_styled_components_default()(WaitSpinner_default.a).withConfig({
|
|
249
253
|
displayName: "ResultsMenuStyles__StyledWait",
|
|
250
254
|
componentId: "avbhl8-3"
|
|
251
|
-
})(["
|
|
255
|
+
})(["flex:0 0 auto;"]);
|
|
252
256
|
var StyledLoadingMessage = external_styled_components_default.a.div.withConfig({
|
|
253
257
|
displayName: "ResultsMenuStyles__StyledLoadingMessage",
|
|
254
258
|
componentId: "avbhl8-4"
|
|
@@ -258,7 +262,7 @@ var StyledLoadingMessage = external_styled_components_default.a.div.withConfig({
|
|
|
258
262
|
}));
|
|
259
263
|
|
|
260
264
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
261
|
-
var updateReactRef = __webpack_require__(
|
|
265
|
+
var updateReactRef = __webpack_require__(10);
|
|
262
266
|
|
|
263
267
|
// CONCATENATED MODULE: ./src/ResultsMenu/ResultsMenu.tsx
|
|
264
268
|
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); }
|
|
@@ -296,6 +300,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
296
300
|
|
|
297
301
|
|
|
298
302
|
|
|
303
|
+
|
|
299
304
|
var propTypes = {
|
|
300
305
|
animateLoading: external_prop_types_default.a.bool,
|
|
301
306
|
children: external_prop_types_default.a.node,
|
|
@@ -319,6 +324,21 @@ var defaultProps = {
|
|
|
319
324
|
loadingMessage: Object(i18n_["_"])('Loading...'),
|
|
320
325
|
noOptionsMessage: Object(i18n_["_"])('No matches')
|
|
321
326
|
};
|
|
327
|
+
var menuContextRole = {
|
|
328
|
+
role: 'listbox'
|
|
329
|
+
};
|
|
330
|
+
var getMenuInlineStyle = memoize_default()(function (menuMaxHeight) {
|
|
331
|
+
return {
|
|
332
|
+
overflow: 'auto',
|
|
333
|
+
maxHeight: menuMaxHeight || 'calc(100vh - 20px)',
|
|
334
|
+
flexDirection: 'column'
|
|
335
|
+
};
|
|
336
|
+
});
|
|
337
|
+
var getMenuBottomInlineStyle = memoize_default()(function (height) {
|
|
338
|
+
return {
|
|
339
|
+
height: height
|
|
340
|
+
};
|
|
341
|
+
});
|
|
322
342
|
|
|
323
343
|
// @docs-props-type ResultsMenuPropsBase
|
|
324
344
|
var ResultsMenu_ResultsMenu = /*#__PURE__*/function (_Component) {
|
|
@@ -505,6 +525,8 @@ var ResultsMenu_ResultsMenu = /*#__PURE__*/function (_Component) {
|
|
|
505
525
|
return !(type === Menu_["Divider"] && type.filterFirst || (type === Menu_["Divider"] || type === Menu_["Heading"]) && (type.filterLast || type.filterConsecutive));
|
|
506
526
|
});
|
|
507
527
|
var fullHeight = this.checkFullHeight();
|
|
528
|
+
var menuInlineStyle = getMenuInlineStyle(this.state.menuMaxHeight);
|
|
529
|
+
var menuBottomInlineStyle = getMenuBottomInlineStyle(this.state.scrollBottomTriggered ? this.state.numberOfItemsLoaded * this.itemMinHeight || 0 : 0);
|
|
508
530
|
/* eslint-disable jsx-a11y/aria-role */
|
|
509
531
|
|
|
510
532
|
return /*#__PURE__*/external_react_default.a.createElement(Styled, _extends({
|
|
@@ -515,16 +537,10 @@ var ResultsMenu_ResultsMenu = /*#__PURE__*/function (_Component) {
|
|
|
515
537
|
onMouseEnter: onScrollBottom ? this.handleMouseEnter : undefined,
|
|
516
538
|
onMouseLeave: onScrollBottom ? this.handleMouseLeave : undefined
|
|
517
539
|
}, omit_default()(otherProps, 'tabIndex')), placement !== 'above' && childrenStart, placement === 'above' && this.renderFooterMessage(), /*#__PURE__*/external_react_default.a.createElement(Menu_["MenuContext"].Provider, {
|
|
518
|
-
value:
|
|
519
|
-
role: 'listbox'
|
|
520
|
-
}
|
|
540
|
+
value: menuContextRole
|
|
521
541
|
}, /*#__PURE__*/external_react_default.a.createElement(Menu_default.a, {
|
|
522
542
|
key: "menu",
|
|
523
|
-
style:
|
|
524
|
-
overflow: 'auto',
|
|
525
|
-
maxHeight: this.state.menuMaxHeight || 'calc(100vh - 20px)',
|
|
526
|
-
flexDirection: 'column'
|
|
527
|
-
},
|
|
543
|
+
style: menuInlineStyle,
|
|
528
544
|
controlledExternally: controlledExternally,
|
|
529
545
|
elementRef: this.handleMenuMount,
|
|
530
546
|
onScroll: this.handleScroll,
|
|
@@ -538,9 +554,7 @@ var ResultsMenu_ResultsMenu = /*#__PURE__*/function (_Component) {
|
|
|
538
554
|
// Bottom spacer fills in the space of new items being loaded by using the minimum possible height x menuItems.
|
|
539
555
|
external_react_default.a.createElement("div", {
|
|
540
556
|
"data-test": "results-menu-bottom-spacer",
|
|
541
|
-
style:
|
|
542
|
-
height: this.state.scrollBottomTriggered ? this.state.numberOfItemsLoaded * this.itemMinHeight || 0 : 0
|
|
543
|
-
}
|
|
557
|
+
style: menuBottomInlineStyle
|
|
544
558
|
}), isLoading && /*#__PURE__*/external_react_default.a.createElement(StyledLoading, null, animateLoading && /*#__PURE__*/external_react_default.a.createElement(StyledWait, null), /*#__PURE__*/external_react_default.a.createElement(StyledLoadingMessage, null, loadingMessage)))), placement !== 'above' && this.renderFooterMessage(), placement === 'above' && childrenStart);
|
|
545
559
|
}
|
|
546
560
|
}]);
|
|
@@ -573,6 +587,13 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
573
587
|
|
|
574
588
|
/***/ }),
|
|
575
589
|
|
|
590
|
+
/***/ 40:
|
|
591
|
+
/***/ (function(module, exports) {
|
|
592
|
+
|
|
593
|
+
module.exports = require("lodash/memoize");
|
|
594
|
+
|
|
595
|
+
/***/ }),
|
|
596
|
+
|
|
576
597
|
/***/ 5:
|
|
577
598
|
/***/ (function(module, exports) {
|
|
578
599
|
|
package/ScreenReaderContent.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 231);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,7 +108,7 @@ module.exports = require("react");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 231:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
package/Scroll.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 206);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 10:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -149,7 +149,7 @@ module.exports = require("react");
|
|
|
149
149
|
|
|
150
150
|
/***/ }),
|
|
151
151
|
|
|
152
|
-
/***/
|
|
152
|
+
/***/ 206:
|
|
153
153
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
154
154
|
|
|
155
155
|
"use strict";
|
|
@@ -172,7 +172,7 @@ var isFinite_ = __webpack_require__(19);
|
|
|
172
172
|
var isFinite_default = /*#__PURE__*/__webpack_require__.n(isFinite_);
|
|
173
173
|
|
|
174
174
|
// EXTERNAL MODULE: external "@splunk/react-ui/Animation"
|
|
175
|
-
var Animation_ = __webpack_require__(
|
|
175
|
+
var Animation_ = __webpack_require__(43);
|
|
176
176
|
|
|
177
177
|
// EXTERNAL MODULE: external "styled-components"
|
|
178
178
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -197,10 +197,10 @@ var EventListener_ = __webpack_require__(16);
|
|
|
197
197
|
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
198
198
|
|
|
199
199
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
200
|
-
var ScrollContainerContext_ = __webpack_require__(
|
|
200
|
+
var ScrollContainerContext_ = __webpack_require__(53);
|
|
201
201
|
|
|
202
202
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
203
|
-
var updateReactRef = __webpack_require__(
|
|
203
|
+
var updateReactRef = __webpack_require__(10);
|
|
204
204
|
|
|
205
205
|
// CONCATENATED MODULE: ./src/Scroll/Inner.tsx
|
|
206
206
|
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); }
|
|
@@ -586,7 +586,7 @@ module.exports = require("styled-components");
|
|
|
586
586
|
|
|
587
587
|
/***/ }),
|
|
588
588
|
|
|
589
|
-
/***/
|
|
589
|
+
/***/ 43:
|
|
590
590
|
/***/ (function(module, exports) {
|
|
591
591
|
|
|
592
592
|
module.exports = require("@splunk/react-ui/Animation");
|
|
@@ -600,7 +600,7 @@ module.exports = require("lodash/omit");
|
|
|
600
600
|
|
|
601
601
|
/***/ }),
|
|
602
602
|
|
|
603
|
-
/***/
|
|
603
|
+
/***/ 53:
|
|
604
604
|
/***/ (function(module, exports) {
|
|
605
605
|
|
|
606
606
|
module.exports = require("@splunk/react-ui/ScrollContainerContext");
|
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 242);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -93,7 +93,7 @@ module.exports =
|
|
|
93
93
|
"use strict";
|
|
94
94
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getWindow; });
|
|
95
95
|
/* unused harmony export ssrWindow */
|
|
96
|
-
/* harmony import */ var _ssrDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
96
|
+
/* harmony import */ var _ssrDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
|
|
97
97
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
98
98
|
|
|
99
99
|
var ssrWindow = {
|
|
@@ -170,7 +170,7 @@ module.exports = require("react");
|
|
|
170
170
|
|
|
171
171
|
/***/ }),
|
|
172
172
|
|
|
173
|
-
/***/
|
|
173
|
+
/***/ 242:
|
|
174
174
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
175
175
|
|
|
176
176
|
"use strict";
|
|
@@ -215,7 +215,7 @@ var ScrollContainerProvider = ScrollContainerContext.Provider;
|
|
|
215
215
|
|
|
216
216
|
/***/ }),
|
|
217
217
|
|
|
218
|
-
/***/
|
|
218
|
+
/***/ 28:
|
|
219
219
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
220
220
|
|
|
221
221
|
"use strict";
|
package/Search.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 232);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -95,13 +95,6 @@ module.exports = require("prop-types");
|
|
|
95
95
|
/***/ }),
|
|
96
96
|
|
|
97
97
|
/***/ 10:
|
|
98
|
-
/***/ (function(module, exports) {
|
|
99
|
-
|
|
100
|
-
module.exports = require("lodash/has");
|
|
101
|
-
|
|
102
|
-
/***/ }),
|
|
103
|
-
|
|
104
|
-
/***/ 11:
|
|
105
98
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
99
|
|
|
107
100
|
"use strict";
|
|
@@ -126,6 +119,13 @@ function updateReactRef(ref, current) {
|
|
|
126
119
|
|
|
127
120
|
|
|
128
121
|
|
|
122
|
+
/***/ }),
|
|
123
|
+
|
|
124
|
+
/***/ 11:
|
|
125
|
+
/***/ (function(module, exports) {
|
|
126
|
+
|
|
127
|
+
module.exports = require("lodash/has");
|
|
128
|
+
|
|
129
129
|
/***/ }),
|
|
130
130
|
|
|
131
131
|
/***/ 13:
|
|
@@ -135,7 +135,7 @@ module.exports = require("@splunk/react-ui/Menu");
|
|
|
135
135
|
|
|
136
136
|
/***/ }),
|
|
137
137
|
|
|
138
|
-
/***/
|
|
138
|
+
/***/ 155:
|
|
139
139
|
/***/ (function(module, exports) {
|
|
140
140
|
|
|
141
141
|
module.exports = require("@splunk/react-ui/usePrevious");
|
|
@@ -156,7 +156,7 @@ module.exports = require("@splunk/react-ui/Popover");
|
|
|
156
156
|
|
|
157
157
|
/***/ }),
|
|
158
158
|
|
|
159
|
-
/***/
|
|
159
|
+
/***/ 232:
|
|
160
160
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
161
161
|
|
|
162
162
|
"use strict";
|
|
@@ -178,11 +178,11 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
178
178
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
179
179
|
|
|
180
180
|
// EXTERNAL MODULE: external "lodash/extend"
|
|
181
|
-
var extend_ = __webpack_require__(
|
|
181
|
+
var extend_ = __webpack_require__(52);
|
|
182
182
|
var extend_default = /*#__PURE__*/__webpack_require__.n(extend_);
|
|
183
183
|
|
|
184
184
|
// EXTERNAL MODULE: external "lodash/has"
|
|
185
|
-
var has_ = __webpack_require__(
|
|
185
|
+
var has_ = __webpack_require__(11);
|
|
186
186
|
var has_default = /*#__PURE__*/__webpack_require__.n(has_);
|
|
187
187
|
|
|
188
188
|
// EXTERNAL MODULE: external "lodash/omit"
|
|
@@ -190,7 +190,7 @@ var omit_ = __webpack_require__(5);
|
|
|
190
190
|
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
191
191
|
|
|
192
192
|
// EXTERNAL MODULE: external "lodash/pick"
|
|
193
|
-
var pick_ = __webpack_require__(
|
|
193
|
+
var pick_ = __webpack_require__(44);
|
|
194
194
|
var pick_default = /*#__PURE__*/__webpack_require__.n(pick_);
|
|
195
195
|
|
|
196
196
|
// EXTERNAL MODULE: external "@splunk/ui-utils/id"
|
|
@@ -206,7 +206,7 @@ var keyboard_ = __webpack_require__(7);
|
|
|
206
206
|
var Menu_ = __webpack_require__(13);
|
|
207
207
|
|
|
208
208
|
// EXTERNAL MODULE: external "@splunk/react-ui/usePrevious"
|
|
209
|
-
var usePrevious_ = __webpack_require__(
|
|
209
|
+
var usePrevious_ = __webpack_require__(155);
|
|
210
210
|
var usePrevious_default = /*#__PURE__*/__webpack_require__.n(usePrevious_);
|
|
211
211
|
|
|
212
212
|
// EXTERNAL MODULE: external "@splunk/react-ui/Popover"
|
|
@@ -214,11 +214,11 @@ var Popover_ = __webpack_require__(21);
|
|
|
214
214
|
var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
|
|
215
215
|
|
|
216
216
|
// EXTERNAL MODULE: external "@splunk/react-ui/ResultsMenu"
|
|
217
|
-
var ResultsMenu_ = __webpack_require__(
|
|
217
|
+
var ResultsMenu_ = __webpack_require__(47);
|
|
218
218
|
var ResultsMenu_default = /*#__PURE__*/__webpack_require__.n(ResultsMenu_);
|
|
219
219
|
|
|
220
220
|
// EXTERNAL MODULE: external "@splunk/react-ui/Text"
|
|
221
|
-
var Text_ = __webpack_require__(
|
|
221
|
+
var Text_ = __webpack_require__(32);
|
|
222
222
|
var Text_default = /*#__PURE__*/__webpack_require__.n(Text_);
|
|
223
223
|
|
|
224
224
|
// CONCATENATED MODULE: ./src/Search/Option.tsx
|
|
@@ -359,7 +359,7 @@ _defineProperty(Option_Option, "type", Menu_["Item"]);
|
|
|
359
359
|
|
|
360
360
|
/* harmony default export */ var Search_Option = (Option_Option);
|
|
361
361
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
362
|
-
var updateReactRef = __webpack_require__(
|
|
362
|
+
var updateReactRef = __webpack_require__(10);
|
|
363
363
|
|
|
364
364
|
// CONCATENATED MODULE: ./src/Search/Search.tsx
|
|
365
365
|
function Search_extends() { Search_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 Search_extends.apply(this, arguments); }
|
|
@@ -652,7 +652,7 @@ function Search(_ref2) {
|
|
|
652
652
|
var handleRequestClose = function handleRequestClose(_ref4) {
|
|
653
653
|
var event = _ref4.event,
|
|
654
654
|
reason = _ref4.reason;
|
|
655
|
-
var shouldClose = reason === 'offScreen' || reason === 'escapeKey' || reason === 'clickAway' &&
|
|
655
|
+
var shouldClose = reason === 'offScreen' || reason === 'escapeKey' || reason === 'clickAway' && anchorRef.current && !containsEvent(anchorRef.current, event);
|
|
656
656
|
|
|
657
657
|
if (shouldClose) {
|
|
658
658
|
requestClose();
|
|
@@ -778,7 +778,7 @@ Search.Heading = Menu_["Heading"];
|
|
|
778
778
|
|
|
779
779
|
/***/ }),
|
|
780
780
|
|
|
781
|
-
/***/
|
|
781
|
+
/***/ 32:
|
|
782
782
|
/***/ (function(module, exports) {
|
|
783
783
|
|
|
784
784
|
module.exports = require("@splunk/react-ui/Text");
|
|
@@ -792,31 +792,31 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
792
792
|
|
|
793
793
|
/***/ }),
|
|
794
794
|
|
|
795
|
-
/***/
|
|
795
|
+
/***/ 44:
|
|
796
796
|
/***/ (function(module, exports) {
|
|
797
797
|
|
|
798
798
|
module.exports = require("lodash/pick");
|
|
799
799
|
|
|
800
800
|
/***/ }),
|
|
801
801
|
|
|
802
|
-
/***/
|
|
802
|
+
/***/ 47:
|
|
803
803
|
/***/ (function(module, exports) {
|
|
804
804
|
|
|
805
805
|
module.exports = require("@splunk/react-ui/ResultsMenu");
|
|
806
806
|
|
|
807
807
|
/***/ }),
|
|
808
808
|
|
|
809
|
-
/***/
|
|
809
|
+
/***/ 5:
|
|
810
810
|
/***/ (function(module, exports) {
|
|
811
811
|
|
|
812
|
-
module.exports = require("lodash/
|
|
812
|
+
module.exports = require("lodash/omit");
|
|
813
813
|
|
|
814
814
|
/***/ }),
|
|
815
815
|
|
|
816
|
-
/***/
|
|
816
|
+
/***/ 52:
|
|
817
817
|
/***/ (function(module, exports) {
|
|
818
818
|
|
|
819
|
-
module.exports = require("lodash/
|
|
819
|
+
module.exports = require("lodash/extend");
|
|
820
820
|
|
|
821
821
|
/***/ }),
|
|
822
822
|
|