@splunk/react-ui 4.38.0 → 4.40.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 (172) hide show
  1. package/Accordion.js +131 -153
  2. package/Anchor.js +50 -58
  3. package/Animation.js +64 -59
  4. package/AnimationToggle.js +59 -61
  5. package/Box.js +59 -67
  6. package/Breadcrumbs.js +113 -127
  7. package/Button.js +151 -169
  8. package/ButtonGroup.js +41 -49
  9. package/ButtonSimple.js +264 -295
  10. package/CHANGELOG.md +49 -0
  11. package/Calendar.js +353 -414
  12. package/Card.js +186 -244
  13. package/CardLayout.js +86 -83
  14. package/Chip.js +136 -146
  15. package/Clickable.js +180 -198
  16. package/CloseButton.js +52 -60
  17. package/Code.js +24 -31
  18. package/CollapsiblePanel.js +172 -202
  19. package/Color.js +371 -412
  20. package/ColumnLayout.js +72 -96
  21. package/ComboBox.js +266 -303
  22. package/Concertina.js +406 -454
  23. package/ControlGroup.js +178 -210
  24. package/Date.js +116 -131
  25. package/DefinitionList.js +125 -149
  26. package/Divider.js +81 -79
  27. package/Dropdown.js +226 -237
  28. package/DualListbox.js +150 -186
  29. package/EventListener.js +4 -1
  30. package/File.js +1032 -955
  31. package/FormRows.js +281 -334
  32. package/Heading.js +27 -35
  33. package/Image.js +101 -116
  34. package/JSONTree.js +301 -344
  35. package/Layer.js +118 -126
  36. package/Link.js +141 -159
  37. package/List.js +61 -77
  38. package/MIGRATION.mdx +123 -38
  39. package/Markdown.js +288 -347
  40. package/Menu.js +506 -532
  41. package/Message.js +197 -207
  42. package/MessageBar.js +58 -66
  43. package/Modal.js +241 -290
  44. package/ModalLayer.js +130 -148
  45. package/Monogram.js +138 -138
  46. package/Multiselect.js +3137 -3433
  47. package/Number.js +164 -178
  48. package/Paginator.js +296 -335
  49. package/Paragraph.js +24 -32
  50. package/Popover.js +450 -442
  51. package/Progress.js +65 -75
  52. package/RadioBar.js +301 -303
  53. package/RadioList.js +77 -119
  54. package/Resize.js +105 -127
  55. package/ResultsMenu.js +373 -385
  56. package/ScreenReaderContent.js +50 -58
  57. package/Scroll.js +209 -244
  58. package/Search.js +379 -391
  59. package/Select.js +2085 -2345
  60. package/SidePanel.js +122 -142
  61. package/Slider.js +132 -145
  62. package/SlidingPanels.js +238 -270
  63. package/SplitButton.d.ts +2 -0
  64. package/SplitButton.js +222 -245
  65. package/StaticContent.js +68 -76
  66. package/StepBar.js +206 -205
  67. package/Switch.js +176 -205
  68. package/TabBar.js +235 -268
  69. package/TabLayout.js +122 -141
  70. package/Table.js +2103 -2261
  71. package/Text.js +379 -493
  72. package/TextArea.js +411 -441
  73. package/Tooltip.js +116 -132
  74. package/TransitionOpen.js +160 -178
  75. package/Tree.js +268 -287
  76. package/Typography.js +48 -52
  77. package/WaitSpinner.js +61 -69
  78. package/cypress/support/commands.ts +9 -0
  79. package/cypress/support/index.d.ts +6 -0
  80. package/cypress/tsconfig.cypress.json +1 -0
  81. package/docker-compose.yml +0 -1
  82. package/package.json +15 -15
  83. package/types/src/Button/Button.d.ts +5 -1
  84. package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -2
  85. package/types/src/Card/Card.d.ts +1 -0
  86. package/types/src/Card/Footer.d.ts +1 -0
  87. package/types/src/Chip/Chip.d.ts +3 -6
  88. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -1
  89. package/types/src/Color/Color.d.ts +2 -2
  90. package/types/src/Color/Palette.d.ts +4 -2
  91. package/types/src/ComboBox/ComboBox.d.ts +1 -1
  92. package/types/src/ComboBox/Option.d.ts +1 -1
  93. package/types/src/ControlGroup/ControlGroup.d.ts +1 -2
  94. package/types/src/Date/Date.d.ts +2 -2
  95. package/types/src/File/File.d.ts +2 -3
  96. package/types/src/File/Retry.d.ts +1 -2
  97. package/types/src/Menu/Item.d.ts +18 -5
  98. package/types/src/Menu/Menu.d.ts +3 -3
  99. package/types/src/Menu/docs/examples/Adornments.d.ts +2 -0
  100. package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -0
  101. package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
  102. package/types/src/Multiselect/Compact.d.ts +1 -1
  103. package/types/src/Multiselect/Multiselect.d.ts +1 -1
  104. package/types/src/Multiselect/Normal.d.ts +1 -1
  105. package/types/src/Multiselect/Option.d.ts +2 -0
  106. package/types/src/Number/Number.d.ts +3 -3
  107. package/types/src/Popover/Popover.d.ts +3 -4
  108. package/types/src/RadioBar/RadioBar.d.ts +2 -2
  109. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
  110. package/types/src/ScrollContainerContext/ScrollContainerContext.d.ts +2 -2
  111. package/types/src/Search/Option.d.ts +9 -3
  112. package/types/src/Select/Option.d.ts +3 -1
  113. package/types/src/Select/OptionBase.d.ts +7 -5
  114. package/types/src/Select/Select.d.ts +4 -2
  115. package/types/src/Select/SelectAllOption.d.ts +4 -4
  116. package/types/src/Select/SelectBase.d.ts +104 -66
  117. package/types/src/Select/docs/examples/Appearance.d.ts +0 -2
  118. package/types/src/SidePanel/SidePanel.d.ts +1 -1
  119. package/types/src/Slider/Slider.d.ts +2 -2
  120. package/types/src/SlidingPanels/SlidingPanels.d.ts +1 -1
  121. package/types/src/StepBar/Step.d.ts +1 -2
  122. package/types/src/Switch/Switch.d.ts +0 -1
  123. package/types/src/TabBar/Tab.d.ts +1 -1
  124. package/types/src/TabBar/TabBar.d.ts +3 -1
  125. package/types/src/TabLayout/TabLayout.d.ts +2 -0
  126. package/types/src/Table/Cell.d.ts +0 -2
  127. package/types/src/Table/HeadDropdownCell.d.ts +2 -0
  128. package/types/src/Table/HeadInner.d.ts +5 -1
  129. package/types/src/Table/Table.d.ts +0 -1
  130. package/types/src/Table/docs/examples/StripeRows.d.ts +2 -0
  131. package/types/src/Text/IconOutlinedHide.d.ts +1 -2
  132. package/types/src/Text/IconOutlinedView.d.ts +1 -2
  133. package/types/src/Text/Text.d.ts +2 -2
  134. package/types/src/TextArea/TextArea.d.ts +2 -2
  135. package/types/src/Tooltip/Tooltip.d.ts +4 -4
  136. package/types/src/TransitionOpen/TransitionOpen.d.ts +1 -1
  137. package/types/src/WaitSpinner/WaitSpinner.d.ts +0 -1
  138. package/types/src/useControlled/index.d.ts +2 -0
  139. package/types/src/useControlled/useControlled.d.ts +21 -0
  140. package/types/src/useResizeObserver/index.d.ts +2 -0
  141. package/types/src/useResizeObserver/useResizeObserver.d.ts +12 -0
  142. package/useControlled.js +112 -0
  143. package/useForceUpdate.js +30 -32
  144. package/useKeyPress.d.ts +2 -0
  145. package/useKeyPress.js +1 -1
  146. package/useResizeObserver.d.ts +2 -0
  147. package/useResizeObserver.js +137 -0
  148. package/types/src/ButtonGroup/docs/examples/prisma/Basic.d.ts +0 -1
  149. package/types/src/Chip/docs/examples/Basic.d.ts +0 -2
  150. package/types/src/Chip/docs/examples/prisma/Appearance.d.ts +0 -2
  151. package/types/src/Color/docs/examples/prisma/Controlled.d.ts +0 -2
  152. package/types/src/Color/docs/examples/prisma/ThemeVariables.d.ts +0 -1
  153. package/types/src/Color/docs/examples/prisma/Uncontrolled.d.ts +0 -2
  154. package/types/src/Dropdown/docs/examples/prisma/Basic.d.ts +0 -2
  155. package/types/src/Dropdown/docs/examples/prisma/BasicMenu.d.ts +0 -2
  156. package/types/src/Dropdown/docs/examples/prisma/ControlledDropdown.d.ts +0 -2
  157. package/types/src/Dropdown/docs/examples/prisma/Dialog.d.ts +0 -2
  158. package/types/src/Dropdown/docs/examples/prisma/OtherToggles.d.ts +0 -2
  159. package/types/src/Dropdown/docs/examples/prisma/ScrollingMenu.d.ts +0 -2
  160. package/types/src/File/docs/examples/prisma/Disabled.d.ts +0 -12
  161. package/types/src/File/docs/examples/prisma/Error.d.ts +0 -1
  162. package/types/src/Menu/docs/examples/Icons.d.ts +0 -2
  163. package/types/src/Menu/docs/examples/SelectableWithIcons.d.ts +0 -2
  164. package/types/src/Message/docs/examples/prisma/Title.d.ts +0 -2
  165. package/types/src/TabBar/docs/examples/prisma/Context.d.ts +0 -2
  166. package/types/src/TabLayout/docs/examples/prisma/Context.d.ts +0 -2
  167. package/types/src/Table/docs/examples/prisma/Basic.d.ts +0 -2
  168. package/types/src/WaitSpinner/docs/examples/prisma/Basic.d.ts +0 -2
  169. /package/types/src/Color/docs/examples/{prisma/CustomizedPalette.d.ts → CustomizedPalette.d.ts} +0 -0
  170. /package/types/src/Color/docs/examples/{prisma/HideInput.d.ts → HideInput.d.ts} +0 -0
  171. /package/types/src/StepBar/docs/examples/{prisma/Error.d.ts → Error.d.ts} +0 -0
  172. /package/types/src/TabBar/docs/examples/{prisma/Disabled.d.ts → Disabled.d.ts} +0 -0
package/Tooltip.js CHANGED
@@ -61,7 +61,7 @@
61
61
  e.r(t);
62
62
  // EXPORTS
63
63
  e.d(t, {
64
- default: () => /* reexport */ X
64
+ default: () => /* reexport */ ee
65
65
  });
66
66
  // CONCATENATED MODULE: external "react"
67
67
  const n = require("react");
@@ -92,18 +92,15 @@
92
92
  var b = e.n(y);
93
93
  // CONCATENATED MODULE: ./src/Tooltip/InfoIcon.tsx
94
94
  function g() {
95
- g = Object.assign || function(e) {
95
+ return g = Object.assign ? Object.assign.bind() : function(e) {
96
96
  for (var t = 1; t < arguments.length; t++) {
97
97
  var n = arguments[t];
98
98
  for (var o in n) {
99
- if (Object.prototype.hasOwnProperty.call(n, o)) {
100
- e[o] = n[o];
101
- }
99
+ ({}).hasOwnProperty.call(n, o) && (e[o] = n[o]);
102
100
  }
103
101
  }
104
102
  return e;
105
- };
106
- return g.apply(this, arguments);
103
+ }, g.apply(null, arguments);
107
104
  }
108
105
  function C(e) {
109
106
  var t = (0, v.useSplunkTheme)(), n = t.family, r = t.density;
@@ -141,16 +138,16 @@
141
138
  const S = require("@splunk/react-ui/Clickable");
142
139
  var k = e.n(S);
143
140
  // CONCATENATED MODULE: ./src/Tooltip/TooltipStyles.ts
144
- var R = "16px";
141
+ var w = "16px";
145
142
  var P = M().span.withConfig({
146
143
  displayName: "TooltipStyles__Styled",
147
144
  componentId: "sc-67fvgm-0"
148
145
  })([ "", ";position:relative;" ], v.mixins.reset("block"));
149
- var T = M().span.withConfig({
146
+ var R = M().span.withConfig({
150
147
  displayName: "TooltipStyles__StyledInline",
151
148
  componentId: "sc-67fvgm-1"
152
149
  })([ "", ";position:relative;" ], v.mixins.reset("inline-block"));
153
- var w = M().span.withConfig({
150
+ var T = M().span.withConfig({
154
151
  displayName: "TooltipStyles__StyledToggle",
155
152
  componentId: "sc-67fvgm-2"
156
153
  })([ "display:block;" ]);
@@ -158,7 +155,7 @@
158
155
  displayName: "TooltipStyles__StyledToggleInline",
159
156
  componentId: "sc-67fvgm-3"
160
157
  })([ "display:inline-block;" ]);
161
- var x = M().div.withConfig({
158
+ var L = M().div.withConfig({
162
159
  displayName: "TooltipStyles__StyledContent",
163
160
  componentId: "sc-67fvgm-4"
164
161
  })([ "padding:", ";font-size:", ";line-height:", ";user-select:none;" ], (0, v.pick)({
@@ -177,11 +174,11 @@
177
174
  true: "18px"
178
175
  })
179
176
  }));
180
- var L = M()(k()).withConfig({
177
+ var x = M()(k()).withConfig({
181
178
  displayName: "TooltipStyles__StyledButton",
182
179
  componentId: "sc-67fvgm-5"
183
180
  })([ "cursor:default;", " ", " &:focus{box-shadow:", ";}" ], (0, v.pick)({
184
- enterprise: (0, O.css)([ "display:inline-block;width:", ";height:", ";border:2px solid ", ";border-radius:", ";font-size:", ";font-weight:", ";line-height:calc(", " - 2px);text-align:center;color:", ";vertical-align:baseline;&:not([disabled]){&:hover{text-decoration:none;}}" ], R, R, v.variables.linkColor, R, v.variables.fontSizeSmall, v.variables.fontWeightSemiBold, R, v.variables.linkColor),
181
+ enterprise: (0, O.css)([ "display:inline-block;width:", ";height:", ";border:2px solid ", ";border-radius:", ";font-size:", ";font-weight:", ";line-height:calc(", " - 2px);text-align:center;color:", ";vertical-align:baseline;&:not([disabled]){&:hover{text-decoration:none;}}" ], w, w, v.variables.linkColor, w, v.variables.fontSizeSmall, v.variables.fontWeightSemiBold, w, v.variables.linkColor),
185
182
  prisma: (0, O.css)([ "color:", ";border-radius:50%;display:inline-block;vertical-align:middle;&:hover,&:focus{color:", ";background:", ";}" ], v.variables.contentColorMuted, v.variables.contentColorActive, v.variables.interactiveColorOverlayHover)
186
183
  }), (0, v.pick)({
187
184
  prisma: {
@@ -192,153 +189,136 @@
192
189
  // CONCATENATED MODULE: ./src/Tooltip/Tooltip.tsx
193
190
  function _(e) {
194
191
  "@babel/helpers - typeof";
195
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
196
- _ = function e(t) {
197
- return typeof t;
198
- };
199
- } else {
200
- _ = function e(t) {
201
- return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
202
- };
203
- }
204
- return _(e);
192
+ return _ = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
193
+ return typeof e;
194
+ } : function(e) {
195
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
196
+ }, _(e);
205
197
  }
206
- function I() {
207
- I = Object.assign || function(e) {
198
+ function j() {
199
+ return j = Object.assign ? Object.assign.bind() : function(e) {
208
200
  for (var t = 1; t < arguments.length; t++) {
209
201
  var n = arguments[t];
210
202
  for (var o in n) {
211
- if (Object.prototype.hasOwnProperty.call(n, o)) {
212
- e[o] = n[o];
213
- }
203
+ ({}).hasOwnProperty.call(n, o) && (e[o] = n[o]);
214
204
  }
215
205
  }
216
206
  return e;
217
- };
218
- return I.apply(this, arguments);
207
+ }, j.apply(null, arguments);
219
208
  }
220
- function A(e, t) {
221
- if (e == null) return {};
222
- var n = j(e, t);
223
- var o, r;
209
+ function I(e, t) {
210
+ if (null == e) return {};
211
+ var n, o, r = A(e, t);
224
212
  if (Object.getOwnPropertySymbols) {
225
213
  var a = Object.getOwnPropertySymbols(e);
226
- for (r = 0; r < a.length; r++) {
227
- o = a[r];
228
- if (t.indexOf(o) >= 0) continue;
229
- if (!Object.prototype.propertyIsEnumerable.call(e, o)) continue;
230
- n[o] = e[o];
214
+ for (o = 0; o < a.length; o++) {
215
+ n = a[o], t.includes(n) || {}.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
231
216
  }
232
217
  }
233
- return n;
218
+ return r;
234
219
  }
235
- function j(e, t) {
236
- if (e == null) return {};
220
+ function A(e, t) {
221
+ if (null == e) return {};
237
222
  var n = {};
238
- var o = Object.keys(e);
239
- var r, a;
240
- for (a = 0; a < o.length; a++) {
241
- r = o[a];
242
- if (t.indexOf(r) >= 0) continue;
243
- n[r] = e[r];
223
+ for (var o in e) {
224
+ if ({}.hasOwnProperty.call(e, o)) {
225
+ if (t.includes(o)) continue;
226
+ n[o] = e[o];
227
+ }
244
228
  }
245
229
  return n;
246
230
  }
247
231
  function H(e, t) {
248
- if (!(e instanceof t)) {
249
- throw new TypeError("Cannot call a class as a function");
250
- }
232
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
251
233
  }
252
234
  function D(e, t) {
253
235
  for (var n = 0; n < t.length; n++) {
254
236
  var o = t[n];
255
- o.enumerable = o.enumerable || false;
256
- o.configurable = true;
257
- if ("value" in o) o.writable = true;
258
- Object.defineProperty(e, o.key, o);
237
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0),
238
+ Object.defineProperty(e, G(o.key), o);
259
239
  }
260
240
  }
261
241
  function B(e, t, n) {
262
- if (t) D(e.prototype, t);
263
- if (n) D(e, n);
264
- return e;
242
+ return t && D(e.prototype, t), n && D(e, n), Object.defineProperty(e, "prototype", {
243
+ writable: !1
244
+ }), e;
265
245
  }
266
246
  function V(e, t) {
267
- if (typeof t !== "function" && t !== null) {
268
- throw new TypeError("Super expression must either be null or a function");
269
- }
247
+ if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
270
248
  e.prototype = Object.create(t && t.prototype, {
271
249
  constructor: {
272
250
  value: e,
273
- writable: true,
274
- configurable: true
251
+ writable: !0,
252
+ configurable: !0
275
253
  }
276
- });
277
- if (t) Z(e, t);
254
+ }), Object.defineProperty(e, "prototype", {
255
+ writable: !1
256
+ }), t && Z(e, t);
278
257
  }
279
258
  function Z(e, t) {
280
- Z = Object.setPrototypeOf || function e(t, n) {
281
- t.__proto__ = n;
282
- return t;
283
- };
284
- return Z(e, t);
259
+ return Z = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
260
+ return e.__proto__ = t, e;
261
+ }, Z(e, t);
285
262
  }
286
263
  function N(e) {
287
264
  var t = F();
288
- return function n() {
289
- var o = $(e), r;
265
+ return function() {
266
+ var n, o = $(e);
290
267
  if (t) {
291
- var a = $(this).constructor;
292
- r = Reflect.construct(o, arguments, a);
293
- } else {
294
- r = o.apply(this, arguments);
295
- }
296
- return W(this, r);
268
+ var r = $(this).constructor;
269
+ n = Reflect.construct(o, arguments, r);
270
+ } else n = o.apply(this, arguments);
271
+ return W(this, n);
297
272
  };
298
273
  }
299
274
  function W(e, t) {
300
- if (t && (_(t) === "object" || typeof t === "function")) {
301
- return t;
302
- }
275
+ if (t && ("object" == _(t) || "function" == typeof t)) return t;
276
+ if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
303
277
  return z(e);
304
278
  }
305
279
  function z(e) {
306
- if (e === void 0) {
307
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
308
- }
280
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
309
281
  return e;
310
282
  }
311
283
  function F() {
312
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
313
- if (Reflect.construct.sham) return false;
314
- if (typeof Proxy === "function") return true;
315
284
  try {
316
- Date.prototype.toString.call(Reflect.construct(Date, [], (function() {})));
317
- return true;
318
- } catch (e) {
319
- return false;
320
- }
285
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
286
+ } catch (e) {}
287
+ return (F = function t() {
288
+ return !!e;
289
+ })();
321
290
  }
322
291
  function $(e) {
323
- $ = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
324
- return t.__proto__ || Object.getPrototypeOf(t);
325
- };
326
- return $(e);
292
+ return $ = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
293
+ return e.__proto__ || Object.getPrototypeOf(e);
294
+ }, $(e);
327
295
  }
328
296
  function U(e, t, n) {
329
- if (t in e) {
330
- Object.defineProperty(e, t, {
331
- value: n,
332
- enumerable: true,
333
- configurable: true,
334
- writable: true
335
- });
336
- } else {
337
- e[t] = n;
297
+ return (t = G(t)) in e ? Object.defineProperty(e, t, {
298
+ value: n,
299
+ enumerable: !0,
300
+ configurable: !0,
301
+ writable: !0
302
+ }) : e[t] = n, e;
303
+ }
304
+ function G(e) {
305
+ var t = K(e, "string");
306
+ return "symbol" == _(t) ? t : t + "";
307
+ }
308
+ function K(e, t) {
309
+ if ("object" != _(e) || !e) return e;
310
+ var n = e[Symbol.toPrimitive];
311
+ if (void 0 !== n) {
312
+ var o = n.call(e, t || "default");
313
+ if ("object" != _(o)) return o;
314
+ throw new TypeError("@@toPrimitive must return a primitive value.");
338
315
  }
339
- return e;
316
+ return ("string" === t ? String : Number)(e);
340
317
  }
341
- var G = {
318
+ /** @public */
319
+ /** @public */
320
+ /** @public */
321
+ /** @public */ var J = {
342
322
  /** @private */
343
323
  appearance: a().string,
344
324
  children: a().node,
@@ -357,8 +337,7 @@
357
337
  /** @private */
358
338
  splunkTheme: a().object
359
339
  };
360
- var K = {
361
- appearance: "inverted",
340
+ var Q = {
362
341
  closeDelay: 300,
363
342
  closeWhen: "default",
364
343
  contentRelationship: "description",
@@ -369,7 +348,7 @@
369
348
  /**
370
349
  * The Tooltip component wraps arbitrary content to be displayed when the target element is hovered
371
350
  * or focused.
372
- */ var J = function(e) {
351
+ */ var X = function(e) {
373
352
  V(r, e);
374
353
  var t = N(r);
375
354
  // @docs-props-type TooltipPropsBase
@@ -558,28 +537,32 @@
558
537
  }, {
559
538
  key: "render",
560
539
  value: function e() {
561
- var t = this.props, r = t.appearance, a = t.children, i = t.content, l = t.defaultPlacement, s = t.elementRef, u = t.inline, c = t.onRequestClose, d = t.onRequestOpen, v = t.splunkTheme, h = t.contentRelationship, y = A(t, [ "appearance", "children", "content", "defaultPlacement", "elementRef", "inline", "onRequestClose", "onRequestOpen", "splunkTheme", "contentRelationship" ]);
540
+ var t = this.props, r = t.appearance, a = t.children, i = t.content, l = t.defaultPlacement, s = t.elementRef, u = t.inline, c = t.onRequestClose, d = t.onRequestOpen, v = t.splunkTheme, h = t.contentRelationship, y = I(t, [ "appearance", "children", "content", "defaultPlacement", "elementRef", "inline", "onRequestClose", "onRequestOpen", "splunkTheme", "contentRelationship" ]);
562
541
  var b = this.state.anchorEl;
563
542
  var g = !!i;
564
543
  var C = this.isOpen();
565
- var O = u ? T : P;
566
- var M = u ? q : w;
567
- var S = v.isPrisma;
568
- var k = S ? "below" : "above";
569
- var R;
544
+ var O = u ? R : P;
545
+ var M = u ? q : T;
546
+ var S = v.isEnterprise;
547
+ var k = S ? "above" : "below";
548
+ var w = r;
549
+ if (r === undefined) {
550
+ w = S ? "inverted" : "normal";
551
+ }
552
+ var _;
570
553
  if (h === "label") {
571
- R = {
554
+ _ = {
572
555
  labelledBy: this.ariaId,
573
556
  "aria-labelledby": this.ariaId
574
557
  };
575
558
  } else if (h === "description") {
576
- R = {
559
+ _ = {
577
560
  describedBy: this.ariaId,
578
561
  "aria-describedby": this.ariaId
579
562
  };
580
563
  }
581
564
 
582
- return o().createElement(O, I({
565
+ return o().createElement(O, j({
583
566
  "data-test": "tooltip",
584
567
  "data-test-open": C,
585
568
  "data-test-popover-id": this.popoverId,
@@ -590,18 +573,18 @@
590
573
  onBlur: this.handleBlur,
591
574
  ref: this.handleMount,
592
575
  "data-test": "toggle"
593
- }, g && (0, n.isValidElement)(a) ? (0, n.cloneElement)(a, R) : a, g && !a && o().createElement(L, {
576
+ }, g && (0, n.isValidElement)(a) ? (0, n.cloneElement)(a, _) : a, g && !a && o().createElement(x, {
594
577
  "aria-describedby": this.ariaId
595
- }, S ? o().createElement(E, {
578
+ }, S ? o().createElement(o().Fragment, null, o().createElement("span", {
579
+ "aria-hidden": "true"
580
+ }, "?"), o().createElement(f(), null, (0, m._)("More info"))) : o().createElement(E, {
596
581
  hideDefaultTooltip: true,
597
582
  screenReaderText: (0, m._)("More info"),
598
583
  style: {
599
584
  height: "22px",
600
585
  width: "22px"
601
586
  }
602
- }) : o().createElement(o().Fragment, null, o().createElement("span", {
603
- "aria-hidden": "true"
604
- }, "?"), o().createElement(f(), null, (0, m._)("More info")))), g && o().createElement(f(), {
587
+ })), g && o().createElement(f(), {
605
588
  "aria-hidden": "true",
606
589
  id: this.ariaId
607
590
  }, i)), o().createElement(p(), {
@@ -611,7 +594,7 @@
611
594
  animationConfig: {
612
595
  tension: 400
613
596
  },
614
- appearance: r,
597
+ appearance: w,
615
598
  closeReasons: [ "offScreen", "escapeKey" ],
616
599
  defaultPlacement: l === "theme" ? k : l,
617
600
  id: this.popoverId,
@@ -620,18 +603,19 @@
620
603
  elementRef: this.handlePopoverMount,
621
604
  hitAreaRef: this.handleHitAreaMount,
622
605
  outerRef: this.handlePopoverOuterMount
623
- }, o().createElement(x, {
606
+ }, o().createElement(L, {
624
607
  $isLabel: h === "label"
625
608
  }, i)));
626
609
  }
627
610
  } ]);
628
611
  return r;
629
612
  }(n.Component);
630
- U(J, "propTypes", G);
631
- U(J, "defaultProps", K);
632
- var Q = (0, v.withSplunkTheme)(J);
633
- Q.propTypes = J.propTypes;
634
- /* harmony default export */ const X = Q;
635
- // CONCATENATED MODULE: ./src/Tooltip/index.ts
613
+ U(X, "propTypes", J);
614
+ U(X, "defaultProps", Q);
615
+ var Y = (0, v.withSplunkTheme)(X);
616
+ Y.propTypes = X.propTypes;
617
+ /* harmony default export */ const ee = Y;
618
+ // only for styled components using Tooltip
619
+ // CONCATENATED MODULE: ./src/Tooltip/index.ts
636
620
  module.exports = t;
637
621
  /******/})();