@splunk/react-ui 4.12.1 → 4.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/Accordion.js +4 -4
  2. package/Anchor.js +2 -2
  3. package/Animation.js +4 -4
  4. package/AnimationToggle.js +2 -2
  5. package/Box.js +2 -2
  6. package/Button.js +9 -9
  7. package/ButtonGroup.js +2 -2
  8. package/ButtonSimple.js +7 -7
  9. package/CHANGELOG.md +18 -0
  10. package/Calendar.js +31 -31
  11. package/Card.js +13 -13
  12. package/CardLayout.js +2 -2
  13. package/Chip.js +11 -11
  14. package/Clickable.js +7 -7
  15. package/CloseButton.js +11 -11
  16. package/Code.js +4 -4
  17. package/CollapsiblePanel.js +4 -4
  18. package/Color.js +21 -21
  19. package/ColumnLayout.js +4 -4
  20. package/ComboBox.js +2 -2
  21. package/Concertina.js +2 -2
  22. package/ControlGroup.js +4 -4
  23. package/Date.js +4 -4
  24. package/DefinitionList.js +2 -2
  25. package/Dropdown.js +6 -2
  26. package/EventListener.js +4 -4
  27. package/File.js +15 -15
  28. package/FormRows.js +4 -4
  29. package/Heading.js +2 -2
  30. package/Image.js +15 -15
  31. package/JSONTree.js +2 -2
  32. package/Layer.js +4 -4
  33. package/Link.js +9 -9
  34. package/List.js +2 -2
  35. package/Markdown.js +16 -16
  36. package/Menu.js +29 -30
  37. package/Message.js +17 -17
  38. package/MessageBar.js +15 -15
  39. package/Modal.js +4 -4
  40. package/ModalLayer.js +6 -6
  41. package/Monogram.js +2 -2
  42. package/Multiselect.js +87 -78
  43. package/Number.js +2 -2
  44. package/Paginator.js +39 -39
  45. package/Paragraph.js +2 -2
  46. package/Popover.js +16 -7
  47. package/Progress.js +4 -4
  48. package/RadioBar.js +2 -2
  49. package/RadioList.js +2 -2
  50. package/Resize.js +2 -2
  51. package/ResultsMenu.js +12 -12
  52. package/ScreenReaderContent.js +2 -2
  53. package/Scroll.js +4 -4
  54. package/ScrollContainerContext.js +2 -2
  55. package/Search.js +11 -11
  56. package/Select.js +85 -76
  57. package/SidePanel.js +4 -4
  58. package/Slider.js +4 -4
  59. package/SlidingPanels.js +4 -4
  60. package/SplitButton.js +511 -0
  61. package/StaticContent.js +2 -2
  62. package/StepBar.js +6 -6
  63. package/Switch.js +2 -2
  64. package/TabBar.js +2 -2
  65. package/TabLayout.js +4 -4
  66. package/Table.js +57 -40
  67. package/Text.js +29 -21
  68. package/TextArea.js +21 -13
  69. package/Tooltip.js +2 -2
  70. package/TransitionOpen.js +4 -4
  71. package/Typography.js +4 -4
  72. package/WaitSpinner.js +68 -2
  73. package/package.json +3 -3
  74. package/types/src/Button/Button.d.ts +1 -1
  75. package/types/src/Dropdown/Dropdown.d.ts +11 -3
  76. package/types/src/Popover/Popover.d.ts +5 -1
  77. package/types/src/Popover/getPlacement.d.ts +1 -1
  78. package/types/src/SplitButton/Item.d.ts +45 -0
  79. package/types/src/SplitButton/SplitButton.d.ts +41 -0
  80. package/types/src/SplitButton/docs/examples/Basic.d.ts +1 -0
  81. package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +1 -0
  82. package/types/src/SplitButton/docs/examples/Disabled.d.ts +1 -0
  83. package/types/src/SplitButton/docs/examples/prisma/Basic.d.ts +1 -0
  84. package/types/src/SplitButton/docs/examples/prisma/Disabled.d.ts +1 -0
  85. package/types/src/SplitButton/index.d.ts +2 -0
  86. package/types/src/Table/HeadCell.d.ts +4 -1
  87. package/types/src/Table/HeadDropdownCell.d.ts +10 -3
  88. package/types/src/Text/Text.d.ts +5 -1
  89. package/types/src/TextArea/TextArea.d.ts +5 -1
  90. package/types/src/WaitSpinner/WaitSpinner.d.ts +1 -1
  91. package/types/src/useForceUpdate/index.d.ts +2 -0
  92. package/types/src/useForceUpdate/useForceUpdate.d.ts +9 -0
  93. package/types/src/useIsSsr/index.d.ts +2 -0
  94. package/types/src/useIsSsr/useIsSsr.d.ts +8 -0
  95. package/useForceUpdate.js +151 -0
  96. package/useIsSsr.js +153 -0
  97. package/usePrevious.js +2 -2
package/MessageBar.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 = 160);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 163);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -115,7 +115,7 @@ module.exports = require("@splunk/react-ui/ScreenReaderContent");
115
115
 
116
116
  /***/ }),
117
117
 
118
- /***/ 160:
118
+ /***/ 163:
119
119
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
120
120
 
121
121
  "use strict";
@@ -144,7 +144,7 @@ var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReade
144
144
  var AlertFilled = __webpack_require__(71);
145
145
 
146
146
  // EXTERNAL MODULE: ./src/icons/CrossMark.tsx
147
- var CrossMark = __webpack_require__(19);
147
+ var CrossMark = __webpack_require__(20);
148
148
 
149
149
  // EXTERNAL MODULE: ./src/icons/InfoFilled.tsx
150
150
  var InfoFilled = __webpack_require__(72);
@@ -377,7 +377,14 @@ MessageBar.propTypes = propTypes;
377
377
 
378
378
  /***/ }),
379
379
 
380
- /***/ 19:
380
+ /***/ 2:
381
+ /***/ (function(module, exports) {
382
+
383
+ module.exports = require("react");
384
+
385
+ /***/ }),
386
+
387
+ /***/ 20:
381
388
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
382
389
 
383
390
  "use strict";
@@ -427,13 +434,6 @@ function CrossMark(props) {
427
434
 
428
435
  /***/ }),
429
436
 
430
- /***/ 2:
431
- /***/ (function(module, exports) {
432
-
433
- module.exports = require("react");
434
-
435
- /***/ }),
436
-
437
437
  /***/ 21:
438
438
  /***/ (function(module, exports) {
439
439
 
@@ -455,14 +455,14 @@ module.exports = require("@splunk/ui-utils/i18n");
455
455
 
456
456
  /***/ }),
457
457
 
458
- /***/ 50:
458
+ /***/ 51:
459
459
  /***/ (function(module, exports) {
460
460
 
461
461
  module.exports = require("@splunk/react-icons/Error");
462
462
 
463
463
  /***/ }),
464
464
 
465
- /***/ 51:
465
+ /***/ 52:
466
466
  /***/ (function(module, exports) {
467
467
 
468
468
  module.exports = require("@splunk/react-icons/Success");
@@ -619,7 +619,7 @@ Icon.defaultProps = defaultProps;
619
619
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AlertFilled; });
620
620
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
621
621
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
622
- /* harmony import */ var _splunk_react_icons_Error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50);
622
+ /* harmony import */ var _splunk_react_icons_Error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51);
623
623
  /* harmony import */ var _splunk_react_icons_Error__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Error__WEBPACK_IMPORTED_MODULE_1__);
624
624
  /* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
625
625
  /* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
@@ -706,7 +706,7 @@ module.exports = require("@splunk/react-icons/InfoCircle");
706
706
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SuccessFilled; });
707
707
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
708
708
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
709
- /* harmony import */ var _splunk_react_icons_Success__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51);
709
+ /* harmony import */ var _splunk_react_icons_Success__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52);
710
710
  /* harmony import */ var _splunk_react_icons_Success__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Success__WEBPACK_IMPORTED_MODULE_1__);
711
711
  /* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
712
712
  /* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
package/Modal.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 = 114);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 116);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/ui-utils/id");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 114:
111
+ /***/ 116:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
@@ -428,7 +428,7 @@ function Header(_ref) {
428
428
  Header.propTypes = Header_propTypes;
429
429
  /* harmony default export */ var Modal_Header = (Header);
430
430
  // EXTERNAL MODULE: external "react-spring"
431
- var external_react_spring_ = __webpack_require__(18);
431
+ var external_react_spring_ = __webpack_require__(19);
432
432
 
433
433
  // CONCATENATED MODULE: ./src/Modal/ModalStyles.ts
434
434
 
@@ -688,7 +688,7 @@ _defineProperty(Modal_Modal, "Footer", Modal_Footer);
688
688
 
689
689
  /***/ }),
690
690
 
691
- /***/ 18:
691
+ /***/ 19:
692
692
  /***/ (function(module, exports) {
693
693
 
694
694
  module.exports = require("react-spring");
package/ModalLayer.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 = 161);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 164);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 161:
104
+ /***/ 164:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -123,7 +123,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
123
123
  var Animation_ = __webpack_require__(31);
124
124
 
125
125
  // EXTERNAL MODULE: external "@splunk/react-ui/Layer"
126
- var Layer_ = __webpack_require__(57);
126
+ var Layer_ = __webpack_require__(58);
127
127
  var Layer_default = /*#__PURE__*/__webpack_require__.n(Layer_);
128
128
 
129
129
  // EXTERNAL MODULE: external "styled-components"
@@ -131,7 +131,7 @@ var external_styled_components_ = __webpack_require__(3);
131
131
  var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
132
132
 
133
133
  // EXTERNAL MODULE: external "react-spring"
134
- var external_react_spring_ = __webpack_require__(18);
134
+ var external_react_spring_ = __webpack_require__(19);
135
135
 
136
136
  // EXTERNAL MODULE: external "@splunk/themes"
137
137
  var themes_ = __webpack_require__(0);
@@ -310,7 +310,7 @@ _defineProperty(ModalLayer_ModalLayer, "getDerivedStateFromProps", function (pro
310
310
 
311
311
  /***/ }),
312
312
 
313
- /***/ 18:
313
+ /***/ 19:
314
314
  /***/ (function(module, exports) {
315
315
 
316
316
  module.exports = require("react-spring");
@@ -338,7 +338,7 @@ module.exports = require("@splunk/react-ui/Animation");
338
338
 
339
339
  /***/ }),
340
340
 
341
- /***/ 57:
341
+ /***/ 58:
342
342
  /***/ (function(module, exports) {
343
343
 
344
344
  module.exports = require("@splunk/react-ui/Layer");
package/Monogram.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 = 162);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 165);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/react-ui/Clickable");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 162:
111
+ /***/ 165:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
package/Multiselect.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 = 124);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 126);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -135,7 +135,7 @@ function updateReactRef(ref, current) {
135
135
 
136
136
  /***/ }),
137
137
 
138
- /***/ 124:
138
+ /***/ 126:
139
139
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
140
140
 
141
141
  "use strict";
@@ -472,7 +472,7 @@ var id_ = __webpack_require__(10);
472
472
  var keyboard_ = __webpack_require__(9);
473
473
 
474
474
  // EXTERNAL MODULE: external "@splunk/react-ui/Chip"
475
- var Chip_ = __webpack_require__(97);
475
+ var Chip_ = __webpack_require__(99);
476
476
  var Chip_default = /*#__PURE__*/__webpack_require__.n(Chip_);
477
477
 
478
478
  // EXTERNAL MODULE: external "@splunk/react-ui/ResultsMenu"
@@ -1471,17 +1471,17 @@ module.exports = require("@splunk/react-ui/Popover");
1471
1471
 
1472
1472
  /***/ }),
1473
1473
 
1474
- /***/ 2:
1474
+ /***/ 18:
1475
1475
  /***/ (function(module, exports) {
1476
1476
 
1477
- module.exports = require("react");
1477
+ module.exports = require("@splunk/react-ui/Dropdown");
1478
1478
 
1479
1479
  /***/ }),
1480
1480
 
1481
- /***/ 20:
1481
+ /***/ 2:
1482
1482
  /***/ (function(module, exports) {
1483
1483
 
1484
- module.exports = require("@splunk/react-ui/Dropdown");
1484
+ module.exports = require("react");
1485
1485
 
1486
1486
  /***/ }),
1487
1487
 
@@ -1841,7 +1841,7 @@ var i18n_ = __webpack_require__(5);
1841
1841
  var keyboard_ = __webpack_require__(9);
1842
1842
 
1843
1843
  // EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
1844
- var Dropdown_ = __webpack_require__(20);
1844
+ var Dropdown_ = __webpack_require__(18);
1845
1845
  var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
1846
1846
 
1847
1847
  // EXTERNAL MODULE: external "@splunk/react-ui/Link"
@@ -2203,15 +2203,15 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
2203
2203
  return;
2204
2204
  }
2205
2205
 
2206
- var values = Object(external_lodash_["uniq"])(((_this$getCurrentValue = _this.getCurrentValues()) !== null && _this$getCurrentValue !== void 0 ? _this$getCurrentValue : []).concat(_this.displayedValues));
2206
+ var currentValues = (_this$getCurrentValue = _this.getCurrentValues()) !== null && _this$getCurrentValue !== void 0 ? _this$getCurrentValue : [];
2207
+ var values = Object(external_lodash_["uniq"])(currentValues.concat(_this.displayedValues));
2208
+ values = external_react_default.a.Children.toArray(children).filter(function (child) {
2209
+ return isOption(child) && Object(external_lodash_["includes"])(values, child.props.value) && (!child.props.disabled || Object(external_lodash_["includes"])(currentValues, child.props.value));
2210
+ }).map(function (child) {
2211
+ return child.props.value;
2212
+ });
2207
2213
 
2208
2214
  if (!_this.isControlled()) {
2209
- values = external_react_default.a.Children.toArray(children).filter(function (child) {
2210
- return isOption(child) && Object(external_lodash_["includes"])(values, child.props.value) && !child.props.disabled;
2211
- }).map(function (child) {
2212
- return child.props.value;
2213
- });
2214
-
2215
2215
  _this.setState({
2216
2216
  values: values
2217
2217
  });
@@ -2224,16 +2224,25 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
2224
2224
  });
2225
2225
 
2226
2226
  _defineProperty(_assertThisInitialized(_this), "handleClearAll", function (e) {
2227
- var _this$props$onChange2, _this$props3;
2227
+ var _this$getCurrentValue2, _this$props$onChange2, _this$props4;
2228
+
2229
+ var _this$props3 = _this.props,
2230
+ name = _this$props3.name,
2231
+ children = _this$props3.children,
2232
+ multiple = _this$props3.multiple; // this doesn't make sense if we can't select multiple values
2228
2233
 
2229
- // this doesn't make sense if we can't select multiple values
2230
- if (!_this.props.multiple) {
2234
+ if (!multiple) {
2231
2235
  return;
2232
- } // Clear the filtered items, items when filtering. Else clear all the items.
2236
+ }
2233
2237
 
2238
+ var currentValues = (_this$getCurrentValue2 = _this.getCurrentValues()) !== null && _this$getCurrentValue2 !== void 0 ? _this$getCurrentValue2 : [];
2239
+ var hiddenCurrentValues = external_lodash_["without"].apply(void 0, [currentValues].concat(_toConsumableArray(_this.displayedValues))); // this will unselect all selected values unless those values are disabled or hidden by the filter
2234
2240
 
2235
- var values = _this.state.filterKeyword ? external_lodash_["without"].apply(void 0, [_this.getCurrentValues()].concat(_toConsumableArray(_this.displayedValues))) : [];
2236
- var name = _this.props.name;
2241
+ var values = external_react_default.a.Children.toArray(children).filter(function (child) {
2242
+ return isOption(child) && (Object(external_lodash_["includes"])(currentValues, child.props.value) && child.props.disabled || Object(external_lodash_["includes"])(hiddenCurrentValues, child.props.value));
2243
+ }).map(function (child) {
2244
+ return child.props.value;
2245
+ });
2237
2246
 
2238
2247
  if (!_this.isControlled()) {
2239
2248
  _this.setState({
@@ -2241,17 +2250,17 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
2241
2250
  });
2242
2251
  }
2243
2252
 
2244
- (_this$props$onChange2 = (_this$props3 = _this.props).onChange) === null || _this$props$onChange2 === void 0 ? void 0 : _this$props$onChange2.call(_this$props3, e, {
2253
+ (_this$props$onChange2 = (_this$props4 = _this.props).onChange) === null || _this$props$onChange2 === void 0 ? void 0 : _this$props$onChange2.call(_this$props4, e, {
2245
2254
  values: values,
2246
2255
  name: name
2247
2256
  });
2248
2257
  });
2249
2258
 
2250
2259
  _defineProperty(_assertThisInitialized(_this), "handleTextKeyDown", function (e) {
2251
- var _this$props4 = _this.props,
2252
- children = _this$props4.children,
2253
- onScrollBottom = _this$props4.onScrollBottom,
2254
- tabConfirmsNewValue = _this$props4.tabConfirmsNewValue;
2260
+ var _this$props5 = _this.props,
2261
+ children = _this$props5.children,
2262
+ onScrollBottom = _this$props5.onScrollBottom,
2263
+ tabConfirmsNewValue = _this$props5.tabConfirmsNewValue;
2255
2264
  var eventKeyCode = Object(keyboard_["keycode"])(e.nativeEvent);
2256
2265
 
2257
2266
  if (eventKeyCode === 'tab') {
@@ -2276,9 +2285,9 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
2276
2285
  });
2277
2286
 
2278
2287
  if (children && onScrollBottom) {
2279
- var _this$getCurrentValue2;
2288
+ var _this$getCurrentValue3;
2280
2289
 
2281
- var beforeLastChild = external_react_["Children"].toArray(children).length - (2 + ((_this$getCurrentValue2 = _this.getCurrentValues()) !== null && _this$getCurrentValue2 !== void 0 ? _this$getCurrentValue2 : []).length);
2290
+ var beforeLastChild = external_react_["Children"].toArray(children).length - (2 + ((_this$getCurrentValue3 = _this.getCurrentValues()) !== null && _this$getCurrentValue3 !== void 0 ? _this$getCurrentValue3 : []).length);
2282
2291
 
2283
2292
  if (_this.state.activeIndex === beforeLastChild) {
2284
2293
  _this.handleScrollBottom(e);
@@ -2371,7 +2380,7 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
2371
2380
  });
2372
2381
 
2373
2382
  _defineProperty(_assertThisInitialized(_this), "handleTextChange", function (e, _ref2) {
2374
- var _this$props$onFilterC, _this$props5;
2383
+ var _this$props$onFilterC, _this$props6;
2375
2384
 
2376
2385
  var value = _ref2.value;
2377
2386
 
@@ -2381,7 +2390,7 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
2381
2390
  activeIndex: 0
2382
2391
  });
2383
2392
 
2384
- (_this$props$onFilterC = (_this$props5 = _this.props).onFilterChange) === null || _this$props$onFilterC === void 0 ? void 0 : _this$props$onFilterC.call(_this$props5, e, {
2393
+ (_this$props$onFilterC = (_this$props6 = _this.props).onFilterChange) === null || _this$props$onFilterC === void 0 ? void 0 : _this$props$onFilterC.call(_this$props6, e, {
2385
2394
  keyword: value
2386
2395
  });
2387
2396
  });
@@ -2411,9 +2420,9 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
2411
2420
  var oldFilterKeyword = _this.state.filterKeyword;
2412
2421
 
2413
2422
  _this.setState(newState, function () {
2414
- var _this$props$onOpen, _this$props6;
2423
+ var _this$props$onOpen, _this$props7;
2415
2424
 
2416
- (_this$props$onOpen = (_this$props6 = _this.props).onOpen) === null || _this$props$onOpen === void 0 ? void 0 : _this$props$onOpen.call(_this$props6);
2425
+ (_this$props$onOpen = (_this$props7 = _this.props).onOpen) === null || _this$props$onOpen === void 0 ? void 0 : _this$props$onOpen.call(_this$props7);
2417
2426
 
2418
2427
  if (_this.firstSelectedEnabledOption && !_this.hasFilter()) {
2419
2428
  _this.firstSelectedEnabledOption.focus();
@@ -2426,9 +2435,9 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
2426
2435
  }
2427
2436
 
2428
2437
  if (oldFilterKeyword !== _this.state.filterKeyword) {
2429
- var _this$props$onFilterC2, _this$props7;
2438
+ var _this$props$onFilterC2, _this$props8;
2430
2439
 
2431
- (_this$props$onFilterC2 = (_this$props7 = _this.props).onFilterChange) === null || _this$props$onFilterC2 === void 0 ? void 0 : _this$props$onFilterC2.call(_this$props7, e, {
2440
+ (_this$props$onFilterC2 = (_this$props8 = _this.props).onFilterChange) === null || _this$props$onFilterC2 === void 0 ? void 0 : _this$props$onFilterC2.call(_this$props8, e, {
2432
2441
  keyword: _this.state.filterKeyword
2433
2442
  });
2434
2443
  }
@@ -2440,18 +2449,18 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
2440
2449
  open: false,
2441
2450
  activeIndex: 0
2442
2451
  }, function () {
2443
- var _this$props$onClose, _this$props8;
2452
+ var _this$props$onClose, _this$props9;
2444
2453
 
2445
2454
  _this.previousActiveIndex = null;
2446
- (_this$props$onClose = (_this$props8 = _this.props).onClose) === null || _this$props$onClose === void 0 ? void 0 : _this$props$onClose.call(_this$props8);
2455
+ (_this$props$onClose = (_this$props9 = _this.props).onClose) === null || _this$props$onClose === void 0 ? void 0 : _this$props$onClose.call(_this$props9);
2447
2456
  });
2448
2457
  });
2449
2458
 
2450
2459
  _defineProperty(_assertThisInitialized(_this), "handleScrollBottom", function (e) {
2451
2460
  if (_this.state.open && !_this.props.isLoadingOptions) {
2452
- var _this$props$onScrollB, _this$props9;
2461
+ var _this$props$onScrollB, _this$props10;
2453
2462
 
2454
- (_this$props$onScrollB = (_this$props9 = _this.props).onScrollBottom) === null || _this$props$onScrollB === void 0 ? void 0 : _this$props$onScrollB.call(_this$props9, e);
2463
+ (_this$props$onScrollB = (_this$props10 = _this.props).onScrollBottom) === null || _this$props$onScrollB === void 0 ? void 0 : _this$props$onScrollB.call(_this$props10, e);
2455
2464
  }
2456
2465
  });
2457
2466
 
@@ -2478,14 +2487,14 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
2478
2487
  filterKeyword = _this$state.filterKeyword,
2479
2488
  textHasFocus = _this$state.textHasFocus,
2480
2489
  topValuesState = _this$state.topValues;
2481
- var _this$props10 = _this.props,
2482
- allowKeyMatching = _this$props10.allowKeyMatching,
2483
- allowNewValues = _this$props10.allowNewValues,
2484
- filter = _this$props10.filter,
2485
- multiple = _this$props10.multiple,
2486
- showSelectedValuesFirst = _this$props10.showSelectedValuesFirst,
2487
- isLoadingOptions = _this$props10.isLoadingOptions,
2488
- onScrollBottom = _this$props10.onScrollBottom;
2490
+ var _this$props11 = _this.props,
2491
+ allowKeyMatching = _this$props11.allowKeyMatching,
2492
+ allowNewValues = _this$props11.allowNewValues,
2493
+ filter = _this$props11.filter,
2494
+ multiple = _this$props11.multiple,
2495
+ showSelectedValuesFirst = _this$props11.showSelectedValuesFirst,
2496
+ isLoadingOptions = _this$props11.isLoadingOptions,
2497
+ onScrollBottom = _this$props11.onScrollBottom;
2489
2498
 
2490
2499
  var currentValues = _this.getCurrentValues();
2491
2500
 
@@ -2748,10 +2757,10 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
2748
2757
  }, {
2749
2758
  key: "getTopValues",
2750
2759
  value: function getTopValues() {
2751
- var _this$getCurrentValue3;
2760
+ var _this$getCurrentValue4;
2752
2761
 
2753
2762
  // in non-multiple mode, don't move values to the top of the list
2754
- return this.props.multiple && this.props.showSelectedValuesFirst !== 'never' ? (_this$getCurrentValue3 = this.getCurrentValues()) !== null && _this$getCurrentValue3 !== void 0 ? _this$getCurrentValue3 : [] : [];
2763
+ return this.props.multiple && this.props.showSelectedValuesFirst !== 'never' ? (_this$getCurrentValue4 = this.getCurrentValues()) !== null && _this$getCurrentValue4 !== void 0 ? _this$getCurrentValue4 : [] : [];
2755
2764
  }
2756
2765
  }, {
2757
2766
  key: "isControlled",
@@ -2766,13 +2775,13 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
2766
2775
  }, {
2767
2776
  key: "toggleValue",
2768
2777
  value: function toggleValue(e, value) {
2769
- var _this$getCurrentValue4, _this$props$onChange3, _this$props12;
2778
+ var _this$getCurrentValue5, _this$props$onChange3, _this$props13;
2770
2779
 
2771
- var values = (_this$getCurrentValue4 = this.getCurrentValues()) !== null && _this$getCurrentValue4 !== void 0 ? _this$getCurrentValue4 : [];
2780
+ var values = (_this$getCurrentValue5 = this.getCurrentValues()) !== null && _this$getCurrentValue5 !== void 0 ? _this$getCurrentValue5 : [];
2772
2781
  var currentIndex = values.indexOf(value);
2773
- var _this$props11 = this.props,
2774
- name = _this$props11.name,
2775
- multiple = _this$props11.multiple;
2782
+ var _this$props12 = this.props,
2783
+ name = _this$props12.name,
2784
+ multiple = _this$props12.multiple;
2776
2785
  var newValues;
2777
2786
 
2778
2787
  if (multiple) {
@@ -2810,7 +2819,7 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
2810
2819
  this.focus();
2811
2820
  }
2812
2821
 
2813
- (_this$props$onChange3 = (_this$props12 = this.props).onChange) === null || _this$props$onChange3 === void 0 ? void 0 : _this$props$onChange3.call(_this$props12, e, {
2822
+ (_this$props$onChange3 = (_this$props13 = this.props).onChange) === null || _this$props$onChange3 === void 0 ? void 0 : _this$props$onChange3.call(_this$props13, e, {
2814
2823
  values: newValues,
2815
2824
  name: name
2816
2825
  });
@@ -2832,10 +2841,10 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
2832
2841
  var hasChildren = _ref4.hasChildren,
2833
2842
  placement = _ref4.placement;
2834
2843
  var filterKeyword = this.state.filterKeyword;
2835
- var _this$props13 = this.props,
2836
- inputId = _this$props13.inputId,
2837
- inputRef = _this$props13.inputRef,
2838
- multiple = _this$props13.multiple; // only visually disable these as opposed to fully disabling to avoid losing keyboard focus - see SUI-2731
2844
+ var _this$props14 = this.props,
2845
+ inputId = _this$props14.inputId,
2846
+ inputRef = _this$props14.inputRef,
2847
+ multiple = _this$props14.multiple; // only visually disable these as opposed to fully disabling to avoid losing keyboard focus - see SUI-2731
2839
2848
 
2840
2849
  var selectControls = /*#__PURE__*/external_react_default.a.createElement(StyledToggleAllControls, {
2841
2850
  $placement: placement,
@@ -2887,33 +2896,33 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
2887
2896
  }, {
2888
2897
  key: "render",
2889
2898
  value: function render() {
2890
- var _this$getCurrentValue5,
2899
+ var _this$getCurrentValue6,
2891
2900
  _this2 = this;
2892
2901
 
2893
- var _this$props14 = this.props,
2894
- appearance = _this$props14.appearance,
2895
- children = _this$props14.children,
2896
- defaultPlacement = _this$props14.defaultPlacement,
2897
- describedBy = _this$props14.describedBy,
2898
- disabled = _this$props14.disabled,
2899
- elementRef = _this$props14.elementRef,
2900
- error = _this$props14.error,
2901
- inline = _this$props14.inline,
2902
- inputId = _this$props14.inputId,
2903
- labelledBy = _this$props14.labelledBy,
2904
- labelText = _this$props14.labelText,
2905
- multiple = _this$props14.multiple,
2906
- placeholder = _this$props14.placeholder,
2907
- prefixLabel = _this$props14.prefixLabel,
2908
- repositionMode = _this$props14.repositionMode,
2909
- suffixLabel = _this$props14.suffixLabel;
2902
+ var _this$props15 = this.props,
2903
+ appearance = _this$props15.appearance,
2904
+ children = _this$props15.children,
2905
+ defaultPlacement = _this$props15.defaultPlacement,
2906
+ describedBy = _this$props15.describedBy,
2907
+ disabled = _this$props15.disabled,
2908
+ elementRef = _this$props15.elementRef,
2909
+ error = _this$props15.error,
2910
+ inline = _this$props15.inline,
2911
+ inputId = _this$props15.inputId,
2912
+ labelledBy = _this$props15.labelledBy,
2913
+ labelText = _this$props15.labelText,
2914
+ multiple = _this$props15.multiple,
2915
+ placeholder = _this$props15.placeholder,
2916
+ prefixLabel = _this$props15.prefixLabel,
2917
+ repositionMode = _this$props15.repositionMode,
2918
+ suffixLabel = _this$props15.suffixLabel;
2910
2919
  var icon;
2911
2920
  var label;
2912
2921
  var filterEnabled = this.hasFilter();
2913
2922
  var isAnyValueSelected = false; // Generate buttonLabels
2914
2923
 
2915
2924
  var childrenArray = external_react_["Children"].toArray(children);
2916
- var currentValues = (_this$getCurrentValue5 = this.getCurrentValues()) !== null && _this$getCurrentValue5 !== void 0 ? _this$getCurrentValue5 : [];
2925
+ var currentValues = (_this$getCurrentValue6 = this.getCurrentValues()) !== null && _this$getCurrentValue6 !== void 0 ? _this$getCurrentValue6 : [];
2917
2926
  var valuesLabel = currentValues.reduce(function (acc, value, index, orig) {
2918
2927
  var matchedItem = Object(external_lodash_["find"])(childrenArray, function (item) {
2919
2928
  return isOption(item) && item.props.value === value;
@@ -3246,7 +3255,7 @@ module.exports = require("@splunk/ui-utils/keyboard");
3246
3255
 
3247
3256
  /***/ }),
3248
3257
 
3249
- /***/ 97:
3258
+ /***/ 99:
3250
3259
  /***/ (function(module, exports) {
3251
3260
 
3252
3261
  module.exports = require("@splunk/react-ui/Chip");
package/Number.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 = 140);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 142);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/react-ui/Clickable");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 140:
111
+ /***/ 142:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";