@splunk/react-ui 4.9.0 → 4.12.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 (143) 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 +24 -48
  7. package/ButtonGroup.js +6 -27
  8. package/ButtonSimple.js +4 -4
  9. package/CHANGELOG.md +63 -6
  10. package/Calendar.js +39 -39
  11. package/Card.js +54 -68
  12. package/CardLayout.js +14 -35
  13. package/Chip.js +19 -19
  14. package/Clickable.js +28 -13
  15. package/CloseButton.js +15 -15
  16. package/Code.js +8 -5
  17. package/CollapsiblePanel.js +6 -6
  18. package/Color.js +21 -21
  19. package/ColumnLayout.js +7 -7
  20. package/ComboBox.js +19 -14
  21. package/Concertina.js +13 -13
  22. package/ControlGroup.js +28 -18
  23. package/Date.js +10 -10
  24. package/DefinitionList.js +2 -2
  25. package/Dropdown.js +6 -6
  26. package/EventListener.js +4 -4
  27. package/File.js +31 -31
  28. package/FormRows.js +11 -11
  29. package/Heading.js +2 -2
  30. package/Image.js +21 -21
  31. package/JSONTree.js +40 -22
  32. package/Layer.js +72 -22
  33. package/Link.js +9 -9
  34. package/List.js +2 -2
  35. package/Markdown.js +26 -29
  36. package/Menu.js +53 -53
  37. package/Message.js +33 -33
  38. package/MessageBar.js +46 -39
  39. package/Modal.js +8 -8
  40. package/ModalLayer.js +16 -7
  41. package/Monogram.js +27 -15
  42. package/Multiselect.js +101 -97
  43. package/Number.js +6 -6
  44. package/Paginator.js +46 -49
  45. package/Paragraph.js +2 -2
  46. package/Popover.js +18 -13
  47. package/Progress.js +8 -8
  48. package/RadioBar.js +145 -41
  49. package/RadioList.js +2 -2
  50. package/Resize.js +4 -4
  51. package/ResultsMenu.js +62 -41
  52. package/ScreenReaderContent.js +2 -2
  53. package/Scroll.js +6 -6
  54. package/ScrollContainerContext.js +2 -2
  55. package/Search.js +19 -18
  56. package/Select.js +81 -79
  57. package/SidePanel.js +4 -4
  58. package/Slider.js +8 -8
  59. package/SlidingPanels.js +16 -7
  60. package/StaticContent.js +2 -2
  61. package/StepBar.js +8 -8
  62. package/Switch.js +8 -8
  63. package/TabBar.js +15 -15
  64. package/TabLayout.js +4 -4
  65. package/Table.js +119 -92
  66. package/Text.js +121 -241
  67. package/TextArea.js +1444 -0
  68. package/Tooltip.js +17 -6
  69. package/TransitionOpen.js +20 -10
  70. package/Typography.js +225 -0
  71. package/WaitSpinner.js +4 -4
  72. package/cypress.json +1 -0
  73. package/package.json +21 -8
  74. package/stubs-splunkui.d.ts +13 -0
  75. package/test-runner-jest.config.js +38 -0
  76. package/types/src/Accordion/AccordionContext.d.ts +0 -1
  77. package/types/src/Button/Button.d.ts +0 -2
  78. package/types/src/ButtonGroup/ButtonGroupContext.d.ts +0 -1
  79. package/types/src/Card/Body.d.ts +6 -1
  80. package/types/src/Card/Card.d.ts +0 -2
  81. package/types/src/CardLayout/CardLayoutContext.d.ts +0 -1
  82. package/types/src/Clickable/Clickable.d.ts +5 -0
  83. package/types/src/ComboBox/ComboBox.d.ts +15 -5
  84. package/types/src/Concertina/ConcertinaContext.d.ts +0 -1
  85. package/types/src/ControlGroup/ControlGroup.d.ts +9 -2
  86. package/types/src/Date/Date.d.ts +3 -3
  87. package/types/src/File/FileContext.d.ts +0 -1
  88. package/types/src/FormRows/FormRows.d.ts +1 -1
  89. package/types/src/FormRows/FormRowsContext.d.ts +0 -1
  90. package/types/src/FormRows/Row.d.ts +1 -1
  91. package/types/src/JSONTree/JSONTree.d.ts +2 -2
  92. package/types/src/JSONTree/TreeNode.d.ts +1 -1
  93. package/types/src/JSONTree/docs/examples/WithShiftModifier.d.ts +1 -0
  94. package/types/src/Layer/LayerStack.d.ts +8 -2
  95. package/types/src/Markdown/Markdown.d.ts +2 -3
  96. package/types/src/Menu/MenuContext.d.ts +0 -1
  97. package/types/src/Modal/ModalContext.d.ts +0 -1
  98. package/types/src/ModalLayer/ModalLayer.d.ts +2 -0
  99. package/types/src/Monogram/Monogram.d.ts +2 -2
  100. package/types/src/Multiselect/Compact.d.ts +11 -4
  101. package/types/src/Multiselect/Multiselect.d.ts +14 -5
  102. package/types/src/Multiselect/Normal.d.ts +11 -4
  103. package/types/src/Number/Number.d.ts +3 -3
  104. package/types/src/Popover/Popover.d.ts +1 -0
  105. package/types/src/Popover/PopoverContext.d.ts +0 -1
  106. package/types/src/RadioBar/Option.d.ts +10 -2
  107. package/types/src/RadioBar/RadioBar.d.ts +4 -1
  108. package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
  109. package/types/src/RadioList/RadioListContext.d.ts +0 -1
  110. package/types/src/ResultsMenu/ResultsMenu.d.ts +8 -2
  111. package/types/src/Search/Search.d.ts +4 -0
  112. package/types/src/Select/Select.d.ts +13 -4
  113. package/types/src/Select/SelectBase.d.ts +12 -4
  114. package/types/src/SidePanel/SidePanel.d.ts +2 -1
  115. package/types/src/Slider/Slider.d.ts +3 -3
  116. package/types/src/SlidingPanels/SlidingPanels.d.ts +2 -0
  117. package/types/src/StepBar/StepBarContext.d.ts +0 -1
  118. package/types/src/TabBar/TabBarContext.d.ts +0 -1
  119. package/types/src/Table/HeadCell.d.ts +7 -3
  120. package/types/src/Table/Table.d.ts +2 -3
  121. package/types/src/Table/TableContext.d.ts +5 -0
  122. package/types/src/Text/Text.d.ts +22 -12
  123. package/types/src/TextArea/TextArea.d.ts +190 -0
  124. package/types/src/TextArea/docs/examples/Basic.d.ts +2 -0
  125. package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -0
  126. package/types/src/TextArea/docs/examples/Error.d.ts +2 -0
  127. package/types/src/TextArea/docs/examples/Inline.d.ts +2 -0
  128. package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -0
  129. package/types/src/TextArea/index.d.ts +2 -0
  130. package/types/src/{Text → TextArea}/syncHeightWithShadow.d.ts +1 -2
  131. package/types/src/Tooltip/Tooltip.d.ts +8 -5
  132. package/types/src/TransitionOpen/TransitionOpen.d.ts +3 -0
  133. package/types/src/TransitionOpen/index.d.ts +1 -0
  134. package/types/src/Typography/Typography.d.ts +78 -0
  135. package/types/src/Typography/docs/examples/Basic.d.ts +2 -0
  136. package/types/src/Typography/docs/examples/Variants.d.ts +2 -0
  137. package/types/src/Typography/index.d.ts +2 -0
  138. package/types/src/Typography/test/Typography.unit.d.ts +1 -0
  139. package/types/src/fixtures/FetchOptions.d.ts +82 -2
  140. package/usePrevious.js +2 -2
  141. package/FetchOptions.js +0 -359
  142. package/types/src/FetchOptions/FetchOptions.d.ts +0 -82
  143. package/types/src/FetchOptions/index.d.ts +0 -2
package/Clickable.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 = 136);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 12:
104
+ /***/ 11:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -128,7 +128,7 @@ function updateReactRef(ref, current) {
128
128
 
129
129
  /***/ }),
130
130
 
131
- /***/ 140:
131
+ /***/ 136:
132
132
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
133
133
 
134
134
  "use strict";
@@ -153,7 +153,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
153
153
  var external_lodash_ = __webpack_require__(4);
154
154
 
155
155
  // EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
156
- var Dropdown_ = __webpack_require__(19);
156
+ var Dropdown_ = __webpack_require__(20);
157
157
 
158
158
  // EXTERNAL MODULE: external "styled-components"
159
159
  var external_styled_components_ = __webpack_require__(3);
@@ -202,7 +202,7 @@ function NavigationProvider(_ref) {
202
202
  NavigationProvider.propTypes = propTypes;
203
203
 
204
204
  // EXTERNAL MODULE: ./src/utils/updateReactRef.ts
205
- var updateReactRef = __webpack_require__(12);
205
+ var updateReactRef = __webpack_require__(11);
206
206
 
207
207
  // CONCATENATED MODULE: ./src/Clickable/Clickable.tsx
208
208
  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); }
@@ -249,6 +249,8 @@ var isInternalLink = function isInternalLink(to) {
249
249
  return to != null && !WITH_SCHEME.test(to) && !SCHEME_RELATIVE.test(to);
250
250
  };
251
251
  var Clickable_propTypes = {
252
+ /** @private */
253
+ allowDisabledLink: external_prop_types_default.a.bool,
252
254
  children: external_prop_types_default.a.node,
253
255
  disabled: external_prop_types_default.a.bool,
254
256
  elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
@@ -375,13 +377,26 @@ var Clickable_Clickable = /*#__PURE__*/function (_Component) {
375
377
  rel: rel,
376
378
  onClick: handleOnClick
377
379
  }, Object(external_lodash_["omit"])(_otherProps, 'disabled', 'elementRef', 'onClick')), _children);
380
+ }
381
+
382
+ if (this.props.allowDisabledLink) {
383
+ var _ref = this.props,
384
+ _children2 = _ref.children,
385
+ _otherProps2 = _objectWithoutProperties(_ref, ["children"]);
386
+
387
+ if (this.props.disabled && this.props.to != null) {
388
+ return /*#__PURE__*/external_react_default.a.createElement(StyledA, _extends({
389
+ "data-test": "clickable",
390
+ ref: this.handleMount
391
+ }, Object(external_lodash_["omit"])(_otherProps2, 'href', 'elementRef', 'onClick')), _children2);
392
+ }
378
393
  } // button variant
379
394
 
380
395
 
381
- var _ref = this.props,
382
- children = _ref.children,
383
- type = _ref.type,
384
- otherProps = _objectWithoutProperties(_ref, ["children", "type"]);
396
+ var _ref2 = this.props,
397
+ children = _ref2.children,
398
+ type = _ref2.type,
399
+ otherProps = _objectWithoutProperties(_ref2, ["children", "type"]);
385
400
 
386
401
  return /*#__PURE__*/external_react_default.a.createElement(StyledA, _extends({
387
402
  as: "button",
@@ -412,17 +427,17 @@ _defineProperty(Clickable_Clickable, Dropdown_["legacyRefMode"], true);
412
427
 
413
428
  /***/ }),
414
429
 
415
- /***/ 19:
430
+ /***/ 2:
416
431
  /***/ (function(module, exports) {
417
432
 
418
- module.exports = require("@splunk/react-ui/Dropdown");
433
+ module.exports = require("react");
419
434
 
420
435
  /***/ }),
421
436
 
422
- /***/ 2:
437
+ /***/ 20:
423
438
  /***/ (function(module, exports) {
424
439
 
425
- module.exports = require("react");
440
+ module.exports = require("@splunk/react-ui/Dropdown");
426
441
 
427
442
  /***/ }),
428
443
 
package/CloseButton.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 = 155);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 152);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 155:
104
+ /***/ 152:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -123,14 +123,14 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
123
123
  var i18n_ = __webpack_require__(5);
124
124
 
125
125
  // EXTERNAL MODULE: ./src/icons/CrossMark.tsx
126
- var CrossMark = __webpack_require__(20);
126
+ var CrossMark = __webpack_require__(19);
127
127
 
128
128
  // EXTERNAL MODULE: external "styled-components"
129
129
  var external_styled_components_ = __webpack_require__(3);
130
130
  var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
131
131
 
132
132
  // EXTERNAL MODULE: external "@splunk/react-ui/ButtonSimple"
133
- var ButtonSimple_ = __webpack_require__(45);
133
+ var ButtonSimple_ = __webpack_require__(46);
134
134
  var ButtonSimple_default = /*#__PURE__*/__webpack_require__.n(ButtonSimple_);
135
135
 
136
136
  // EXTERNAL MODULE: external "@splunk/themes"
@@ -187,21 +187,14 @@ CloseButton.propTypes = propTypes;
187
187
 
188
188
  /***/ }),
189
189
 
190
- /***/ 2:
191
- /***/ (function(module, exports) {
192
-
193
- module.exports = require("react");
194
-
195
- /***/ }),
196
-
197
- /***/ 20:
190
+ /***/ 19:
198
191
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
199
192
 
200
193
  "use strict";
201
194
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CrossMark; });
202
195
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
203
196
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
204
- /* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22);
197
+ /* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
205
198
  /* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__);
206
199
  /* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
207
200
  /* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
@@ -244,7 +237,14 @@ function CrossMark(props) {
244
237
 
245
238
  /***/ }),
246
239
 
247
- /***/ 22:
240
+ /***/ 2:
241
+ /***/ (function(module, exports) {
242
+
243
+ module.exports = require("react");
244
+
245
+ /***/ }),
246
+
247
+ /***/ 21:
248
248
  /***/ (function(module, exports) {
249
249
 
250
250
  module.exports = require("@splunk/react-icons/Close");
@@ -258,7 +258,7 @@ module.exports = require("styled-components");
258
258
 
259
259
  /***/ }),
260
260
 
261
- /***/ 45:
261
+ /***/ 46:
262
262
  /***/ (function(module, exports) {
263
263
 
264
264
  module.exports = require("@splunk/react-ui/ButtonSimple");
package/Code.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 = 156);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 153);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 156:
104
+ /***/ 153:
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 external_lodash_ = __webpack_require__(4);
124
124
 
125
125
  // EXTERNAL MODULE: ./src/Code/prism/prism.empty
126
- var prism_empty = __webpack_require__(82);
126
+ var prism_empty = __webpack_require__(81);
127
127
  var prism_empty_default = /*#__PURE__*/__webpack_require__.n(prism_empty);
128
128
 
129
129
  // EXTERNAL MODULE: external "styled-components"
@@ -139,10 +139,13 @@ var themes_ = __webpack_require__(0);
139
139
  var Styled = external_styled_components_default.a.pre.withConfig({
140
140
  displayName: "CodeStyles__Styled",
141
141
  componentId: "sc-1eq4k68-0"
142
- })(["", ";", " line-height:17px;text-align:left;tab-size:4;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;hyphens:none;overflow-x:auto;margin-bottom:1.3em;&:focus-visible{outline:solid ", ";}"], themes_["mixins"].reset('block'), Object(themes_["pick"])({
142
+ })(["", ";", " line-height:", ";text-align:left;tab-size:4;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;hyphens:none;overflow-x:auto;margin-bottom:1.3em;&:focus-visible{outline:solid ", ";}"], themes_["mixins"].reset('block'), Object(themes_["pick"])({
143
143
  enterprise: {
144
144
  dark: Object(external_styled_components_["css"])(["color:", ";"], themes_["variables"].gray92)
145
145
  }
146
+ }), Object(themes_["pick"])({
147
+ enterprise: '17px',
148
+ prisma: themes_["variables"].lineHeight
146
149
  }), themes_["variables"].focusColor);
147
150
  var StyledCode = external_styled_components_default.a.code.withConfig({
148
151
  displayName: "CodeStyles__StyledCode",
@@ -378,7 +381,7 @@ module.exports = require("lodash");
378
381
 
379
382
  /***/ }),
380
383
 
381
- /***/ 82:
384
+ /***/ 81:
382
385
  /***/ (function(module, exports, __webpack_require__) {
383
386
 
384
387
 
@@ -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 = 157);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 154);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,14 +108,14 @@ module.exports = require("@splunk/ui-utils/id");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 11:
111
+ /***/ 12:
112
112
  /***/ (function(module, exports) {
113
113
 
114
114
  module.exports = require("@splunk/react-ui/Clickable");
115
115
 
116
116
  /***/ }),
117
117
 
118
- /***/ 157:
118
+ /***/ 154:
119
119
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
120
120
 
121
121
  "use strict";
@@ -158,7 +158,7 @@ var Box_ = __webpack_require__(8);
158
158
  var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
159
159
 
160
160
  // EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
161
- var Clickable_ = __webpack_require__(11);
161
+ var Clickable_ = __webpack_require__(12);
162
162
  var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
163
163
 
164
164
  // EXTERNAL MODULE: external "@splunk/themes"
@@ -574,7 +574,7 @@ module.exports = require("react");
574
574
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChevronRight; });
575
575
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
576
576
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
577
- /* harmony import */ var _splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31);
577
+ /* harmony import */ var _splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(32);
578
578
  /* harmony import */ var _splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1__);
579
579
  /* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
580
580
  /* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
@@ -624,7 +624,7 @@ module.exports = require("styled-components");
624
624
 
625
625
  /***/ }),
626
626
 
627
- /***/ 31:
627
+ /***/ 32:
628
628
  /***/ (function(module, exports) {
629
629
 
630
630
  module.exports = require("@splunk/react-icons/ChevronRight");
package/Color.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 = 136);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 131);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,14 +101,14 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 11:
104
+ /***/ 12:
105
105
  /***/ (function(module, exports) {
106
106
 
107
107
  module.exports = require("@splunk/react-ui/Clickable");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 136:
111
+ /***/ 131:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
@@ -132,41 +132,41 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
132
132
  var external_lodash_ = __webpack_require__(4);
133
133
 
134
134
  // EXTERNAL MODULE: external "@splunk/themes/SplunkThemeProvider"
135
- var SplunkThemeProvider_ = __webpack_require__(85);
135
+ var SplunkThemeProvider_ = __webpack_require__(84);
136
136
  var SplunkThemeProvider_default = /*#__PURE__*/__webpack_require__.n(SplunkThemeProvider_);
137
137
 
138
138
  // EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
139
139
  var i18n_ = __webpack_require__(5);
140
140
 
141
141
  // EXTERNAL MODULE: external "@splunk/ui-utils/color"
142
- var color_ = __webpack_require__(33);
142
+ var color_ = __webpack_require__(35);
143
143
 
144
144
  // EXTERNAL MODULE: external "@splunk/ui-utils/keyboard"
145
145
  var keyboard_ = __webpack_require__(9);
146
146
 
147
147
  // EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
148
- var Dropdown_ = __webpack_require__(19);
148
+ var Dropdown_ = __webpack_require__(20);
149
149
  var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
150
150
 
151
151
  // EXTERNAL MODULE: external "@splunk/themes"
152
152
  var themes_ = __webpack_require__(0);
153
153
 
154
154
  // EXTERNAL MODULE: external "tinycolor2"
155
- var external_tinycolor2_ = __webpack_require__(46);
155
+ var external_tinycolor2_ = __webpack_require__(47);
156
156
  var external_tinycolor2_default = /*#__PURE__*/__webpack_require__.n(external_tinycolor2_);
157
157
 
158
158
  // EXTERNAL MODULE: ./src/icons/Check.tsx
159
159
  var Check = __webpack_require__(53);
160
160
 
161
161
  // EXTERNAL MODULE: ./src/icons/ChevronDown.tsx
162
- var ChevronDown = __webpack_require__(66);
162
+ var ChevronDown = __webpack_require__(64);
163
163
 
164
164
  // EXTERNAL MODULE: external "styled-components"
165
165
  var external_styled_components_ = __webpack_require__(3);
166
166
  var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
167
167
 
168
168
  // EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
169
- var Clickable_ = __webpack_require__(11);
169
+ var Clickable_ = __webpack_require__(12);
170
170
  var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
171
171
 
172
172
  // EXTERNAL MODULE: external "@splunk/react-ui/Text"
@@ -1106,17 +1106,17 @@ module.exports = require("@splunk/react-ui/ScreenReaderContent");
1106
1106
 
1107
1107
  /***/ }),
1108
1108
 
1109
- /***/ 19:
1109
+ /***/ 2:
1110
1110
  /***/ (function(module, exports) {
1111
1111
 
1112
- module.exports = require("@splunk/react-ui/Dropdown");
1112
+ module.exports = require("react");
1113
1113
 
1114
1114
  /***/ }),
1115
1115
 
1116
- /***/ 2:
1116
+ /***/ 20:
1117
1117
  /***/ (function(module, exports) {
1118
1118
 
1119
- module.exports = require("react");
1119
+ module.exports = require("@splunk/react-ui/Dropdown");
1120
1120
 
1121
1121
  /***/ }),
1122
1122
 
@@ -1134,7 +1134,7 @@ module.exports = require("styled-components");
1134
1134
 
1135
1135
  /***/ }),
1136
1136
 
1137
- /***/ 33:
1137
+ /***/ 35:
1138
1138
  /***/ (function(module, exports) {
1139
1139
 
1140
1140
  module.exports = require("@splunk/ui-utils/color");
@@ -1148,14 +1148,14 @@ module.exports = require("lodash");
1148
1148
 
1149
1149
  /***/ }),
1150
1150
 
1151
- /***/ 46:
1151
+ /***/ 47:
1152
1152
  /***/ (function(module, exports) {
1153
1153
 
1154
1154
  module.exports = require("tinycolor2");
1155
1155
 
1156
1156
  /***/ }),
1157
1157
 
1158
- /***/ 47:
1158
+ /***/ 48:
1159
1159
  /***/ (function(module, exports) {
1160
1160
 
1161
1161
  module.exports = require("@splunk/react-icons/Check");
@@ -1176,7 +1176,7 @@ module.exports = require("@splunk/ui-utils/i18n");
1176
1176
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Check; });
1177
1177
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
1178
1178
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1179
- /* harmony import */ var _splunk_react_icons_Check__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(47);
1179
+ /* harmony import */ var _splunk_react_icons_Check__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(48);
1180
1180
  /* harmony import */ var _splunk_react_icons_Check__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Check__WEBPACK_IMPORTED_MODULE_1__);
1181
1181
  /* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
1182
1182
  /* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
@@ -1244,14 +1244,14 @@ function SVG(props) {
1244
1244
 
1245
1245
  /***/ }),
1246
1246
 
1247
- /***/ 66:
1247
+ /***/ 64:
1248
1248
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1249
1249
 
1250
1250
  "use strict";
1251
1251
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChevronDown; });
1252
1252
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
1253
1253
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1254
- /* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67);
1254
+ /* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65);
1255
1255
  /* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__);
1256
1256
  /* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
1257
1257
  /* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
@@ -1294,7 +1294,7 @@ function ChevronDown(props) {
1294
1294
 
1295
1295
  /***/ }),
1296
1296
 
1297
- /***/ 67:
1297
+ /***/ 65:
1298
1298
  /***/ (function(module, exports) {
1299
1299
 
1300
1300
  module.exports = require("@splunk/react-icons/ChevronDown");
@@ -1419,7 +1419,7 @@ Icon.defaultProps = defaultProps;
1419
1419
 
1420
1420
  /***/ }),
1421
1421
 
1422
- /***/ 85:
1422
+ /***/ 84:
1423
1423
  /***/ (function(module, exports) {
1424
1424
 
1425
1425
  module.exports = require("@splunk/themes/SplunkThemeProvider");
package/ColumnLayout.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 = 123);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 119);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 123:
104
+ /***/ 119:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -122,7 +122,7 @@ var external_prop_types_ = __webpack_require__(1);
122
122
  var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
123
123
 
124
124
  // EXTERNAL MODULE: external "@splunk/themes/useSplunkTheme"
125
- var useSplunkTheme_ = __webpack_require__(38);
125
+ var useSplunkTheme_ = __webpack_require__(40);
126
126
  var useSplunkTheme_default = /*#__PURE__*/__webpack_require__.n(useSplunkTheme_);
127
127
 
128
128
  // EXTERNAL MODULE: external "lodash"
@@ -428,17 +428,17 @@ module.exports = require("styled-components");
428
428
 
429
429
  /***/ }),
430
430
 
431
- /***/ 38:
431
+ /***/ 4:
432
432
  /***/ (function(module, exports) {
433
433
 
434
- module.exports = require("@splunk/themes/useSplunkTheme");
434
+ module.exports = require("lodash");
435
435
 
436
436
  /***/ }),
437
437
 
438
- /***/ 4:
438
+ /***/ 40:
439
439
  /***/ (function(module, exports) {
440
440
 
441
- module.exports = require("lodash");
441
+ module.exports = require("@splunk/themes/useSplunkTheme");
442
442
 
443
443
  /***/ }),
444
444
 
package/ComboBox.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 = 158);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 155);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("@splunk/ui-utils/id");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 12:
104
+ /***/ 11:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -135,7 +135,7 @@ module.exports = require("@splunk/react-ui/Menu");
135
135
 
136
136
  /***/ }),
137
137
 
138
- /***/ 158:
138
+ /***/ 155:
139
139
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
140
140
 
141
141
  "use strict";
@@ -175,11 +175,11 @@ var keyboard_ = __webpack_require__(9);
175
175
  var Menu_ = __webpack_require__(13);
176
176
 
177
177
  // EXTERNAL MODULE: external "@splunk/react-ui/Popover"
178
- var Popover_ = __webpack_require__(16);
178
+ var Popover_ = __webpack_require__(17);
179
179
  var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
180
180
 
181
181
  // EXTERNAL MODULE: external "@splunk/react-ui/ResultsMenu"
182
- var ResultsMenu_ = __webpack_require__(32);
182
+ var ResultsMenu_ = __webpack_require__(33);
183
183
  var ResultsMenu_default = /*#__PURE__*/__webpack_require__.n(ResultsMenu_);
184
184
 
185
185
  // EXTERNAL MODULE: external "@splunk/react-ui/Text"
@@ -326,7 +326,7 @@ _defineProperty(Option_Option, "defaultProps", defaultProps);
326
326
 
327
327
  /* harmony default export */ var ComboBox_Option = (Option_Option);
328
328
  // EXTERNAL MODULE: ./src/utils/updateReactRef.ts
329
- var updateReactRef = __webpack_require__(12);
329
+ var updateReactRef = __webpack_require__(11);
330
330
 
331
331
  // CONCATENATED MODULE: ./src/ComboBox/ComboBox.tsx
332
332
  function ComboBox_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { ComboBox_typeof = function _typeof(obj) { return typeof obj; }; } else { ComboBox_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return ComboBox_typeof(obj); }
@@ -397,6 +397,7 @@ var ComboBox_propTypes = {
397
397
  onFocus: external_prop_types_default.a.func,
398
398
  onKeyDown: external_prop_types_default.a.func,
399
399
  onOpen: external_prop_types_default.a.func,
400
+ onScroll: external_prop_types_default.a.func,
400
401
  onScrollBottom: external_prop_types_default.a.func,
401
402
  placeholder: external_prop_types_default.a.string,
402
403
  prepend: external_prop_types_default.a.bool,
@@ -467,12 +468,15 @@ var ComboBox_ComboBox = /*#__PURE__*/function (_Component) {
467
468
 
468
469
  ComboBox_defineProperty(ComboBox_assertThisInitialized(_this), "handleInputMount", function (el) {
469
470
  _this.textInput = el;
471
+ Object(updateReactRef["a" /* updateReactRef */])(_this.props.inputRef, el);
472
+ });
470
473
 
474
+ ComboBox_defineProperty(ComboBox_assertThisInitialized(_this), "handleAnchorMount", function (el) {
471
475
  _this.setState({
472
476
  anchor: el
473
477
  });
474
478
 
475
- Object(updateReactRef["a" /* updateReactRef */])(_this.props.inputRef, el);
479
+ Object(updateReactRef["a" /* updateReactRef */])(_this.props.elementRef, el);
476
480
  });
477
481
 
478
482
  ComboBox_defineProperty(ComboBox_assertThisInitialized(_this), "handleActiveOptionMount", function (c) {
@@ -573,7 +577,7 @@ var ComboBox_ComboBox = /*#__PURE__*/function (_Component) {
573
577
  var beforeLastChild = external_react_["Children"].count(children) - 2;
574
578
 
575
579
  if (_this.state.activeIndex === beforeLastChild) {
576
- onScrollBottom();
580
+ _this.handleScrollBottom(e);
577
581
  }
578
582
  }
579
583
 
@@ -615,11 +619,11 @@ var ComboBox_ComboBox = /*#__PURE__*/function (_Component) {
615
619
  }
616
620
  });
617
621
 
618
- ComboBox_defineProperty(ComboBox_assertThisInitialized(_this), "handleScrollBottom", function () {
622
+ ComboBox_defineProperty(ComboBox_assertThisInitialized(_this), "handleScrollBottom", function (e) {
619
623
  if (_this.state.open && !_this.props.isLoadingOptions) {
620
624
  var _this$props$onScrollB, _this$props4;
621
625
 
622
- (_this$props$onScrollB = (_this$props4 = _this.props).onScrollBottom) === null || _this$props$onScrollB === void 0 ? void 0 : _this$props$onScrollB.call(_this$props4);
626
+ (_this$props$onScrollB = (_this$props4 = _this.props).onScrollBottom) === null || _this$props$onScrollB === void 0 ? void 0 : _this$props$onScrollB.call(_this$props4, e);
623
627
  }
624
628
  });
625
629
 
@@ -715,7 +719,7 @@ var ComboBox_ComboBox = /*#__PURE__*/function (_Component) {
715
719
  maxHeight: maxHeight !== null && maxHeight !== void 0 ? maxHeight : undefined,
716
720
  onScrollBottom: onScrollBottom ? _this.handleScrollBottom : undefined,
717
721
  isLoading: isLoadingOptions
718
- }, Object(external_lodash_["pick"])(_this.props, 'className', 'noOptionsMessage', 'footerMessage', 'animateLoading', 'loadingMessage')), _this.options);
722
+ }, Object(external_lodash_["pick"])(_this.props, 'className', 'noOptionsMessage', 'footerMessage', 'animateLoading', 'loadingMessage', 'onScroll')), _this.options);
719
723
  });
720
724
 
721
725
  _this.state = {
@@ -824,7 +828,7 @@ var ComboBox_ComboBox = /*#__PURE__*/function (_Component) {
824
828
  spellCheck: false,
825
829
  canClear: true,
826
830
  "data-test": "combo-box"
827
- }, Object(external_lodash_["omit"])(this.props, 'animateLoading', 'className', 'controlledFilter', 'defaultValue', 'footerMessage', 'isLoadingOptions', 'loadingMessage', 'menuStyle', 'noOptionsMessage', 'onClose', 'onOpen', 'onScrollBottom', 'spellCheck'), {
831
+ }, Object(external_lodash_["omit"])(this.props, 'animateLoading', 'className', 'controlledFilter', 'defaultValue', 'footerMessage', 'isLoadingOptions', 'loadingMessage', 'menuStyle', 'noOptionsMessage', 'onClose', 'onOpen', 'onScroll', 'onScrollBottom', 'spellCheck'), {
828
832
  "data-test-popover-id": this.popoverId,
829
833
  "data-test-label": currentDisplayValue,
830
834
  "data-test-value": currentValue,
@@ -834,6 +838,7 @@ var ComboBox_ComboBox = /*#__PURE__*/function (_Component) {
834
838
  onChange: this.handleChange,
835
839
  onKeyDown: this.handleInputKeyDown,
836
840
  inputRef: this.handleInputMount,
841
+ elementRef: this.handleAnchorMount,
837
842
  role: "combobox",
838
843
  value: currentDisplayValue,
839
844
  "aria-activedescendant": this.activeItemId,
@@ -875,7 +880,7 @@ ComboBox_defineProperty(ComboBox_ComboBox, "Heading", Menu_["Heading"]);
875
880
 
876
881
  /***/ }),
877
882
 
878
- /***/ 16:
883
+ /***/ 17:
879
884
  /***/ (function(module, exports) {
880
885
 
881
886
  module.exports = require("@splunk/react-ui/Popover");
@@ -903,7 +908,7 @@ module.exports = require("@splunk/ui-utils/filter");
903
908
 
904
909
  /***/ }),
905
910
 
906
- /***/ 32:
911
+ /***/ 33:
907
912
  /***/ (function(module, exports) {
908
913
 
909
914
  module.exports = require("@splunk/react-ui/ResultsMenu");