@splunk/react-ui 4.23.0 → 4.24.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 (36) hide show
  1. package/Breadcrumbs.js +99 -124
  2. package/CHANGELOG.md +11 -0
  3. package/ComboBox.js +49 -37
  4. package/JSONTree.js +210 -177
  5. package/Menu.js +643 -472
  6. package/Modal.js +261 -222
  7. package/Multiselect.js +634 -620
  8. package/ResultsMenu.js +863 -148
  9. package/Search.js +3 -1
  10. package/Select.js +427 -416
  11. package/TabBar.js +2 -2
  12. package/Table.js +2 -2
  13. package/Tree.js +617 -0
  14. package/package.json +1 -1
  15. package/types/src/Breadcrumbs/Breadcrumbs.d.ts +7 -1
  16. package/types/src/Breadcrumbs/Item.d.ts +8 -2
  17. package/types/src/ComboBox/ComboBox.d.ts +6 -0
  18. package/types/src/JSONTree/JSONTree.d.ts +2 -1
  19. package/types/src/Menu/Menu.d.ts +14 -1
  20. package/types/src/Modal/Modal.d.ts +6 -0
  21. package/types/src/Multiselect/Compact.d.ts +6 -0
  22. package/types/src/Multiselect/Multiselect.d.ts +7 -0
  23. package/types/src/ResultsMenu/ResultsMenu.d.ts +53 -1
  24. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedItem.d.ts +9 -0
  25. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +33 -0
  26. package/types/src/ResultsMenu/VirtualizedResultsMenu/groupChildren.d.ts +16 -0
  27. package/types/src/ResultsMenu/VirtualizedResultsMenu/index.d.ts +3 -0
  28. package/types/src/ResultsMenu/VirtualizedResultsMenu/injectVirtualizedItem.d.ts +21 -0
  29. package/types/src/ResultsMenu/index.d.ts +2 -1
  30. package/types/src/Select/Select.d.ts +2 -0
  31. package/types/src/Select/SelectBase.d.ts +6 -0
  32. package/types/src/Tree/Tree.d.ts +24 -0
  33. package/types/src/Tree/TreeContext.d.ts +13 -0
  34. package/types/src/Tree/TreeItem.d.ts +31 -0
  35. package/types/src/Tree/index.d.ts +3 -0
  36. package/types/src/Tree/treeUtils.d.ts +29 -0
package/Breadcrumbs.js CHANGED
@@ -61,33 +61,33 @@
61
61
  e.r(r);
62
62
  // EXPORTS
63
63
  e.d(r, {
64
- Item: () => /* reexport */ j,
65
- default: () => /* reexport */ I
64
+ Item: () => /* reexport */ h,
65
+ default: () => /* reexport */ q
66
66
  });
67
67
  // CONCATENATED MODULE: external "react"
68
68
  const t = require("react");
69
69
  var n = e.n(t);
70
70
  // CONCATENATED MODULE: external "prop-types"
71
- const o = require("prop-types");
72
- var a = e.n(o);
71
+ const a = require("prop-types");
72
+ var o = e.n(a);
73
73
  // CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
74
- const i = require("@splunk/ui-utils/i18n");
74
+ const l = require("@splunk/ui-utils/i18n");
75
75
  // CONCATENATED MODULE: external "styled-components"
76
- const l = require("styled-components");
77
- var c = e.n(l);
76
+ const i = require("styled-components");
77
+ var s = e.n(i);
78
78
  // CONCATENATED MODULE: external "@splunk/themes"
79
- const s = require("@splunk/themes");
79
+ const u = require("@splunk/themes");
80
80
  // CONCATENATED MODULE: external "@splunk/react-ui/Link"
81
- const u = require("@splunk/react-ui/Link");
82
- var f = e.n(u);
81
+ const c = require("@splunk/react-ui/Link");
82
+ var f = e.n(c);
83
83
  // CONCATENATED MODULE: ./src/Breadcrumbs/ItemStyles.ts
84
- var p = c()(f()).withConfig({
84
+ var d = s()(f()).withConfig({
85
85
  displayName: "ItemStyles__StyledLink",
86
86
  componentId: "sc-1ywtawf-0"
87
- })([ "display:flex;align-items:center;gap:", ";white-space:nowrap;color:", ";&:where(:hover,:focus):not([disabled],[aria-disabled='true']){color:", ";}" ], s.variables.spacingXSmall, s.variables.contentColorDefault, s.variables.contentColorActive);
87
+ })([ "display:flex;align-items:center;gap:", ";white-space:nowrap;color:", ";&:where(:hover,:focus):not([disabled],[aria-disabled='true']){color:", ";}" ], u.variables.spacingXSmall, u.variables.contentColorDefault, u.variables.contentColorActive);
88
88
  // CONCATENATED MODULE: ./src/Breadcrumbs/Item.tsx
89
- function d() {
90
- d = Object.assign || function(e) {
89
+ function p() {
90
+ p = Object.assign || function(e) {
91
91
  for (var r = 1; r < arguments.length; r++) {
92
92
  var t = arguments[r];
93
93
  for (var n in t) {
@@ -98,57 +98,16 @@
98
98
  }
99
99
  return e;
100
100
  };
101
- return d.apply(this, arguments);
101
+ return p.apply(this, arguments);
102
102
  }
103
103
  function b(e, r) {
104
- var t = Object.keys(e);
105
- if (Object.getOwnPropertySymbols) {
106
- var n = Object.getOwnPropertySymbols(e);
107
- if (r) n = n.filter((function(r) {
108
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
109
- }));
110
- t.push.apply(t, n);
111
- }
112
- return t;
113
- }
114
- function y(e) {
115
- for (var r = 1; r < arguments.length; r++) {
116
- var t = arguments[r] != null ? arguments[r] : {};
117
- if (r % 2) {
118
- b(Object(t), true).forEach((function(r) {
119
- m(e, r, t[r]);
120
- }));
121
- } else if (Object.getOwnPropertyDescriptors) {
122
- Object.defineProperties(e, Object.getOwnPropertyDescriptors(t));
123
- } else {
124
- b(Object(t)).forEach((function(r) {
125
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
126
- }));
127
- }
128
- }
129
- return e;
130
- }
131
- function m(e, r, t) {
132
- if (r in e) {
133
- Object.defineProperty(e, r, {
134
- value: t,
135
- enumerable: true,
136
- configurable: true,
137
- writable: true
138
- });
139
- } else {
140
- e[r] = t;
141
- }
142
- return e;
143
- }
144
- function v(e, r) {
145
104
  if (e == null) return {};
146
- var t = O(e, r);
147
- var n, o;
105
+ var t = m(e, r);
106
+ var n, a;
148
107
  if (Object.getOwnPropertySymbols) {
149
- var a = Object.getOwnPropertySymbols(e);
150
- for (o = 0; o < a.length; o++) {
151
- n = a[o];
108
+ var o = Object.getOwnPropertySymbols(e);
109
+ for (a = 0; a < o.length; a++) {
110
+ n = o[a];
152
111
  if (r.indexOf(n) >= 0) continue;
153
112
  if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
154
113
  t[n] = e[n];
@@ -156,62 +115,72 @@
156
115
  }
157
116
  return t;
158
117
  }
159
- function O(e, r) {
118
+ function m(e, r) {
160
119
  if (e == null) return {};
161
120
  var t = {};
162
121
  var n = Object.keys(e);
163
- var o, a;
164
- for (a = 0; a < n.length; a++) {
165
- o = n[a];
166
- if (r.indexOf(o) >= 0) continue;
167
- t[o] = e[o];
122
+ var a, o;
123
+ for (o = 0; o < n.length; o++) {
124
+ a = n[o];
125
+ if (r.indexOf(a) >= 0) continue;
126
+ t[a] = e[a];
168
127
  }
169
128
  return t;
170
129
  }
130
+ var v = Object.freeze({
131
+ allowDisabledLink: true,
132
+ disabled: true,
133
+ to: ""
134
+ });
135
+ var y = {
136
+ elementRef: o().oneOfType([ o().func, o().object ]),
137
+ enableCurrentPage: o().bool,
138
+ endAdornment: o().node,
139
+ isCurrent: o().bool,
140
+ label: o().string.isRequired,
141
+ startAdornment: o().node,
142
+ to: o().string.isRequired
143
+ };
171
144
  var g = {
172
- elementRef: a().oneOfType([ a().func, a().object ]),
173
- endAdornment: a().node,
174
- isCurrent: a().bool,
175
- label: a().string.isRequired,
176
- startAdornment: a().node,
177
- to: a().string.isRequired
145
+ enableCurrentPage: false,
146
+ isCurrent: false
178
147
  };
179
- function h(e) {
180
- var r = e.endAdornment, t = e.isCurrent, o = t === void 0 ? false : t, a = e.label, i = e.startAdornment, l = e.to, c = v(e, [ "endAdornment", "isCurrent", "label", "startAdornment", "to" ]);
148
+ function O(e) {
149
+ var r = e.enableCurrentPage, t = e.endAdornment, a = e.isCurrent, o = e.label, l = e.startAdornment, i = e.to, s = b(e, [ "enableCurrentPage", "endAdornment", "isCurrent", "label", "startAdornment", "to" ]);
181
150
  // @docs-props-type ItemPropsBase
182
- var s = {
183
- to: l
151
+ var u = {
152
+ to: i
184
153
  };
185
- var u = {
186
- "aria-current": "page",
187
- allowDisabledLink: true,
188
- disabled: true,
189
- to: ""
190
- };
191
- var f = o ? y(y({}, s), u) : s;
154
+ if (a) {
155
+ u["aria-current"] = "page";
156
+ if (!r) {
157
+ Object.assign(u, v);
158
+ }
159
+ }
192
160
 
193
- return n().createElement(p, d({
161
+ return n().createElement(d, p({
194
162
  "data-test": "item"
195
- }, f, c), i && i, a, r && r);
163
+ }, u, s), l && l, o, t && t);
196
164
  }
197
- h.propTypes = g;
198
- /* harmony default export */ const j = h;
165
+ O.propTypes = y;
166
+ O.defaultProps = g;
167
+ /* harmony default export */ const h = O;
199
168
  // CONCATENATED MODULE: ./src/Breadcrumbs/BreadcrumbsStyles.ts
200
- var w = c().ol.withConfig({
169
+ var C = s().ol.withConfig({
201
170
  displayName: "BreadcrumbsStyles__StyledList",
202
171
  componentId: "sc-1maeyfk-0"
203
- })([ "", " flex-wrap:wrap;" ], s.mixins.reset("flex"));
204
- var S = c().li.withConfig({
172
+ })([ "", " flex-wrap:wrap;" ], u.mixins.reset("flex"));
173
+ var w = s().li.withConfig({
205
174
  displayName: "BreadcrumbsStyles__StyledListItem",
206
175
  componentId: "sc-1maeyfk-1"
207
- })([ "display:flex;min-width:max-content;a[aria-current]{font-weight:", ";color:", ";cursor:default;}" ], s.variables.fontWeightSemiBold, s.variables.contentColorActive);
208
- var P = c().span.withConfig({
176
+ })([ "display:flex;min-width:max-content;a[aria-current]{font-weight:", ";color:", ";cursor:default;}" ], u.variables.fontWeightSemiBold, u.variables.contentColorActive);
177
+ var P = s().span.withConfig({
209
178
  displayName: "BreadcrumbsStyles__StyledSeparator",
210
179
  componentId: "sc-1maeyfk-2"
211
- })([ "cursor:default;padding:0 ", ";color:", ";" ], s.variables.spacingSmall, s.variables.contentColorDefault);
180
+ })([ "cursor:default;padding:0 ", ";color:", ";" ], u.variables.spacingSmall, u.variables.contentColorDefault);
212
181
  // CONCATENATED MODULE: ./src/Breadcrumbs/Breadcrumbs.tsx
213
- function C() {
214
- C = Object.assign || function(e) {
182
+ function S() {
183
+ S = Object.assign || function(e) {
215
184
  for (var r = 1; r < arguments.length; r++) {
216
185
  var t = arguments[r];
217
186
  for (var n in t) {
@@ -222,16 +191,16 @@
222
191
  }
223
192
  return e;
224
193
  };
225
- return C.apply(this, arguments);
194
+ return S.apply(this, arguments);
226
195
  }
227
- function k(e, r) {
196
+ function j(e, r) {
228
197
  if (e == null) return {};
229
198
  var t = _(e, r);
230
- var n, o;
199
+ var n, a;
231
200
  if (Object.getOwnPropertySymbols) {
232
- var a = Object.getOwnPropertySymbols(e);
233
- for (o = 0; o < a.length; o++) {
234
- n = a[o];
201
+ var o = Object.getOwnPropertySymbols(e);
202
+ for (a = 0; a < o.length; a++) {
203
+ n = o[a];
235
204
  if (r.indexOf(n) >= 0) continue;
236
205
  if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
237
206
  t[n] = e[n];
@@ -243,47 +212,53 @@
243
212
  if (e == null) return {};
244
213
  var t = {};
245
214
  var n = Object.keys(e);
246
- var o, a;
247
- for (a = 0; a < n.length; a++) {
248
- o = n[a];
249
- if (r.indexOf(o) >= 0) continue;
250
- t[o] = e[o];
215
+ var a, o;
216
+ for (o = 0; o < n.length; o++) {
217
+ a = n[o];
218
+ if (r.indexOf(a) >= 0) continue;
219
+ t[a] = e[a];
251
220
  }
252
221
  return t;
253
222
  }
223
+ var k = {
224
+ children: o().node.isRequired,
225
+ elementRef: o().oneOfType([ o().func, o().object ]),
226
+ enableCurrentPage: o().bool
227
+ };
254
228
  var x = {
255
- children: a().node.isRequired,
256
- elementRef: a().oneOfType([ a().func, a().object ])
229
+ enableCurrentPage: false
257
230
  };
258
- function E(e) {
259
- var r = e.children, o = e.elementRef, a = k(e, [ "children", "elementRef" ]);
231
+ function I(e) {
232
+ var r = e.children, a = e.elementRef, o = e.enableCurrentPage, i = j(e, [ "children", "elementRef", "enableCurrentPage" ]);
260
233
  // @docs-props-type BreadcrumbsPropsBase
261
- var l;
262
- var c = t.Children.toArray(r).filter(t.isValidElement).map((function(e, o) {
234
+ var s;
235
+ var u = t.Children.toArray(r).filter(t.isValidElement).map((function(e, a) {
263
236
  if (false) {}
264
237
  if (false) {}
265
238
  // Set the last child as the current Breadcrumb.Item
266
- var a = o === t.Children.count(r) - 1;
239
+ var l = a === t.Children.count(r) - 1;
267
240
  var i = (0, t.cloneElement)(e, {
268
- isCurrent: a
241
+ isCurrent: l,
242
+ enableCurrentPage: o
269
243
  });
270
244
 
271
- return n().createElement(S, {
245
+ return n().createElement(w, {
272
246
  key: e.props.to
273
- }, i, !a && n().createElement(P, {
247
+ }, i, !l && n().createElement(P, {
274
248
  "aria-hidden": "true"
275
249
  }, "/"));
276
250
  }));
277
251
 
278
- return n().createElement("nav", C({
252
+ return n().createElement("nav", S({
279
253
  "data-test": "breadcrumbs",
280
- "aria-label": (0, i._)("Breadcrumb"),
281
- ref: o
282
- }, a), n().createElement(w, null, c));
254
+ "aria-label": (0, l._)("Breadcrumb"),
255
+ ref: a
256
+ }, i), n().createElement(C, null, u));
283
257
  }
284
- E.propTypes = x;
285
- E.Item = j;
286
- /* harmony default export */ const I = E;
258
+ I.propTypes = k;
259
+ I.defaultProps = x;
260
+ I.Item = h;
261
+ /* harmony default export */ const q = I;
287
262
  // CONCATENATED MODULE: ./src/Breadcrumbs/index.ts
288
263
  module.exports = r;
289
264
  /******/})();
package/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Change Log
2
2
  ============
3
3
 
4
+ 4.24.0 - Jan 9, 2024
5
+ ----------
6
+ New Features:
7
+ * `Breadcrumbs` now supports `enableCurrentPage` which enables the current page link (SUI-5910).
8
+
9
+ Bug Fixes:
10
+ * Disabled `Option`s for `ComboBox` and `Search` are no longer selectable with keyboard navigation (SUI-5905).
11
+ * Fixed a `styled-components` specificity issue where `Table`'s cursor would incorrectly be set to `pointer` in some cases (SUI-5914).
12
+ * `TabBar` no longer shows a duplicate browser tooltip (SUI-5916).
13
+
4
14
  4.23.0 - Dec 5, 2023
5
15
  ----------
6
16
  New Features:
@@ -8,6 +18,7 @@ New Features:
8
18
 
9
19
  Bug Fixes:
10
20
  * The system color picker for `Color` no longer closes unexpectedly during color selection in Safari (SUI-5831).
21
+ * `ComboBox`'s options are no longer clickable while closing (SUI-5825).
11
22
 
12
23
  Deprecations:
13
24
  * `JSONTree`'s `expandChildren="withShiftModifier"` value has been deprecated and will be removed in a future major version. Use the `expandChildrenOnShiftKey` prop instead (SUI-5771).
package/ComboBox.js CHANGED
@@ -206,9 +206,9 @@
206
206
  function T(e) {
207
207
  var t = H();
208
208
  return function n() {
209
- var o = K(e), r;
209
+ var o = z(e), r;
210
210
  if (t) {
211
- var i = K(this).constructor;
211
+ var i = z(this).constructor;
212
212
  r = Reflect.construct(o, arguments, i);
213
213
  } else {
214
214
  r = o.apply(this, arguments);
@@ -239,13 +239,13 @@
239
239
  return false;
240
240
  }
241
241
  }
242
- function K(e) {
243
- K = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
242
+ function z(e) {
243
+ z = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
244
244
  return t.__proto__ || Object.getPrototypeOf(t);
245
245
  };
246
- return K(e);
246
+ return z(e);
247
247
  }
248
- function N(e, t, n) {
248
+ function K(e, t, n) {
249
249
  if (t in e) {
250
250
  Object.defineProperty(e, t, {
251
251
  value: n,
@@ -258,7 +258,7 @@
258
258
  }
259
259
  return e;
260
260
  }
261
- var z = {
261
+ var N = {
262
262
  /** @private */
263
263
  active: i().bool,
264
264
  description: i().string,
@@ -295,8 +295,8 @@
295
295
  r[i] = arguments[i];
296
296
  }
297
297
  e = t.call.apply(t, [ this ].concat(r));
298
- N(F(e), "item", null);
299
- N(F(e), "handleClick", (function(t) {
298
+ K(F(e), "item", null);
299
+ K(F(e), "handleClick", (function(t) {
300
300
  var n = e.props, o = n.disabled, r = n.onClick, i = n.value;
301
301
  if (!o) {
302
302
  r === null || r === void 0 ? void 0 : r(t, {
@@ -335,8 +335,8 @@
335
335
  } ]);
336
336
  return n;
337
337
  }(n.PureComponent);
338
- N(U, "propTypes", z);
339
- N(U, "defaultProps", W);
338
+ K(U, "propTypes", N);
339
+ K(U, "defaultProps", W);
340
340
  /* harmony default export */ const X = U;
341
341
  // CONCATENATED MODULE: ./src/utils/updateReactRef.ts
342
342
  /**
@@ -537,7 +537,9 @@
537
537
  placeholder: i().string,
538
538
  prepend: i().bool,
539
539
  size: i().oneOf([ "small", "medium", "large" ]),
540
- value: i().string
540
+ value: i().string,
541
+ /** @private. */
542
+ virtualization: i().number
541
543
  };
542
544
  var fe = {
543
545
  animateLoading: false,
@@ -614,6 +616,7 @@
614
616
  ce(ae(i), "handleChange", (function(e, t) {
615
617
  var n, o;
616
618
  var r = t.value, a = t.selectedOption;
619
+ e.stopPropagation();
617
620
  var l = i.props.name;
618
621
  var u = a ? undefined : r;
619
622
  if (i.isControlled()) {
@@ -713,41 +716,41 @@
713
716
  }));
714
717
  ce(ae(i), "renderMenu", (function(e) {
715
718
  var t = e.anchorWidth, r = e.maxHeight;
716
- var a = i.props, l = a.children, u = a.controlledFilter, s = a.isLoadingOptions, f = a.menuStyle, p = a.onScrollBottom;
717
- var d = i.state, v = d.activeIndex, y = d.typedValue;
718
- var g = i.getValue();
719
- var S = n.Children.toArray(l).filter(n.isValidElement);
720
- var C = b()(S, (function(e) {
719
+ var a = i.props, l = a.children, u = a.controlledFilter, s = a.isLoadingOptions, f = a.menuStyle, p = a.onScrollBottom, d = a.virtualization;
720
+ var v = i.state, y = v.activeIndex, g = v.typedValue;
721
+ var S = i.getValue();
722
+ var C = n.Children.toArray(l).filter(n.isValidElement);
723
+ var w = b()(C, (function(e) {
721
724
  if (e.type === I.Heading) {
722
725
  return false;
723
726
  }
724
727
  if (e.props.label === undefined) {
725
- return e.props.value === g;
728
+ return e.props.value === S;
726
729
  }
727
- if (e.props.label !== undefined && y !== undefined) {
728
- return e.props.label === g;
730
+ if (e.props.label !== undefined && g !== undefined) {
731
+ return e.props.label === S;
729
732
  }
730
- return e.props.value === g;
733
+ return e.props.value === S;
731
734
  }));
732
- if (!C && g) {
733
- S.unshift( o().createElement(X, {
735
+ if (!w && S) {
736
+ C.unshift( o().createElement(X, {
734
737
  description: (0, O._)("(New value)"),
735
738
  descriptionPosition: "right",
736
739
  key: "currentValueOption",
737
- value: g,
738
- "data-test-current-value-option": g
740
+ value: S,
741
+ "data-test-current-value-option": S
739
742
  }));
740
743
  }
741
744
  // Highlight Active
742
745
  i.availableOptionCount = 0;
743
746
  i.activeValue = undefined;
744
- var w = (0, m.stringToKeywords)(y ? g : i.getDisplayValue());
745
- i.options = (u ? S : S.filter((function(e) {
747
+ var j = (0, m.stringToKeywords)(g ? S : i.getDisplayValue());
748
+ i.options = (u ? C : C.filter((function(e) {
746
749
  if (e.props.label !== undefined) {
747
- return (0, m.testPhrase)(e.props.label, w);
750
+ return (0, m.testPhrase)(e.props.label, j);
748
751
  }
749
752
  if (e.props.value !== undefined) {
750
- return (0, m.testPhrase)(e.props.value, w);
753
+ return (0, m.testPhrase)(e.props.value, j);
751
754
  }
752
755
  return true;
753
756
  // Keep all headers and non-interactive options
@@ -756,13 +759,15 @@
756
759
  // ignore Headings and Dividers
757
760
  return e;
758
761
  }
759
- var o = i.availableOptionCount === v;
762
+ var o = i.availableOptionCount === y;
760
763
  i.availableOptionCount += 1;
761
764
  var r = e.props.label !== undefined ? e.props.label : e.props.value;
762
765
  var a = e.props.matchRanges;
763
- var l = !u && g && (C || t > 0) ? (0, m.keywordLocations)(r, w) || undefined : undefined;
766
+ var l = !u && S && (w || t > 0) ? (0, m.keywordLocations)(r, j) || undefined : undefined;
764
767
  if (o) {
765
- i.activeValue = e.props.value;
768
+ if (!e.props.disabled) {
769
+ i.activeValue = e.props.value;
770
+ }
766
771
 
767
772
  return (0, n.cloneElement)(e, {
768
773
  ref: i.handleActiveOptionMount,
@@ -778,18 +783,25 @@
778
783
  matchRanges: a || l
779
784
  });
780
785
  }));
781
- var k = de({
786
+ var x = de({
782
787
  anchorWidth: t,
783
788
  maxHeight: r,
784
789
  menuStyle: f
785
790
  });
786
-
787
- return o().createElement(P(), J({
788
- style: k,
791
+ var R = Z({
792
+ style: x,
789
793
  controlledExternally: true,
790
794
  onScrollBottom: p ? i.handleScrollBottom : undefined,
791
795
  isLoading: s
792
- }, h()(i.props, "className", "noOptionsMessage", "footerMessage", "animateLoading", "loadingMessage", "onScroll")), i.options);
796
+ }, h()(i.props, "className", "noOptionsMessage", "footerMessage", "animateLoading", "loadingMessage", "onScroll"));
797
+ if (d) {
798
+
799
+ return o().createElement(k.VirtualizedResultsMenu, J({
800
+ virtualization: d
801
+ }, R), i.options);
802
+ }
803
+
804
+ return o().createElement(P(), R, i.options);
793
805
  }));
794
806
  i.state = {
795
807
  activeIndex: 0,