@splunk/react-ui 4.17.1 → 4.19.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 (122) hide show
  1. package/Accordion.js +6 -6
  2. package/Anchor.js +2 -2
  3. package/Animation.js +2 -2
  4. package/AnimationToggle.js +5 -5
  5. package/Box.js +2 -2
  6. package/Button.js +4 -4
  7. package/ButtonGroup.js +2 -2
  8. package/ButtonSimple.js +2 -2
  9. package/CHANGELOG.md +28 -2
  10. package/Calendar.js +8 -8
  11. package/Card.js +8 -8
  12. package/CardLayout.js +2 -2
  13. package/Chip.js +23 -16
  14. package/Clickable.js +11 -11
  15. package/CloseButton.js +2 -2
  16. package/Code.js +12 -12
  17. package/CollapsiblePanel.js +4 -4
  18. package/Color.js +209 -182
  19. package/ColumnLayout.js +6 -6
  20. package/ComboBox.js +14 -14
  21. package/Concertina.js +10 -10
  22. package/ControlGroup.js +2 -2
  23. package/Date.js +13 -13
  24. package/DefinitionList.js +2 -2
  25. package/Divider.js +2 -2
  26. package/Dropdown.js +13 -13
  27. package/DualListbox.js +9 -6
  28. package/EventListener.js +4 -4
  29. package/File.js +13 -13
  30. package/FormRows.js +264 -103
  31. package/Heading.js +50 -50
  32. package/Image.js +15 -15
  33. package/JSONTree.js +38 -36
  34. package/Layer.js +10 -10
  35. package/Link.js +2 -2
  36. package/List.js +9 -6
  37. package/MIGRATION.mdx +295 -0
  38. package/Markdown.js +24 -19
  39. package/Menu.js +12 -12
  40. package/Message.js +4 -4
  41. package/MessageBar.js +2 -2
  42. package/Modal.js +4 -4
  43. package/ModalLayer.js +4 -4
  44. package/Monogram.js +3 -3
  45. package/Multiselect.js +33 -33
  46. package/Number.js +7 -6
  47. package/Paginator.js +6 -6
  48. package/Paragraph.js +2 -2
  49. package/Popover.js +31 -27
  50. package/Progress.js +4 -4
  51. package/RadioBar.js +4 -4
  52. package/RadioList.js +2 -2
  53. package/Resize.js +6 -6
  54. package/ResultsMenu.js +8 -8
  55. package/ScreenReaderContent.js +2 -2
  56. package/Scroll.js +6 -6
  57. package/ScrollContainerContext.js +2 -2
  58. package/Search.js +14 -14
  59. package/Select.js +12 -12
  60. package/SidePanel.js +2 -2
  61. package/Slider.js +10 -10
  62. package/SlidingPanels.js +8 -8
  63. package/SplitButton.js +4 -4
  64. package/StaticContent.js +2 -2
  65. package/StepBar.js +2 -2
  66. package/Switch.js +2 -2
  67. package/TabBar.js +68 -51
  68. package/TabLayout.js +6 -6
  69. package/Table.js +51 -50
  70. package/Text.js +25 -23
  71. package/TextArea.js +24 -22
  72. package/Tooltip.js +11 -11
  73. package/TransitionOpen.js +2 -2
  74. package/Typography.js +4 -4
  75. package/WaitSpinner.js +2 -2
  76. package/cypress/support/component-index.html +12 -0
  77. package/cypress/support/component.ts +27 -0
  78. package/cypress.config.ts +19 -0
  79. package/package.json +14 -19
  80. package/stubs-dependencies.d.ts +0 -9
  81. package/types/src/Button/Button.d.ts +5 -3
  82. package/types/src/Clickable/Clickable.d.ts +2 -1
  83. package/types/src/Clickable/docs/examples/Basic.d.ts +2 -2
  84. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -0
  85. package/types/src/Color/Color.d.ts +6 -6
  86. package/types/src/Color/Palette.d.ts +46 -0
  87. package/types/src/Concertina/Panel.d.ts +1 -0
  88. package/types/src/FormRows/FormRows.d.ts +1 -2
  89. package/types/src/FormRows/Row.d.ts +3 -12
  90. package/types/src/FormRows/RowInternal.d.ts +19 -0
  91. package/types/src/FormRows/SortableList.d.ts +8 -2
  92. package/types/src/FormRows/SortableRow.d.ts +20 -0
  93. package/types/src/Heading/Heading.d.ts +8 -3
  94. package/types/src/JSONTree/JSONTree.d.ts +2 -1
  95. package/types/src/Layer/Layer.d.ts +2 -0
  96. package/types/src/List/List.d.ts +9 -1
  97. package/types/src/List/docs/examples/CustomizedList.d.ts +2 -0
  98. package/types/src/List/docs/examples/OrderedList.d.ts +2 -0
  99. package/types/src/List/docs/examples/UnorderedList.d.ts +2 -0
  100. package/types/src/Markdown/Markdown.d.ts +1 -0
  101. package/types/src/Markdown/renderers/MarkdownList.d.ts +2 -0
  102. package/types/src/Number/Number.d.ts +9 -4
  103. package/types/src/Popover/Popover.d.ts +2 -0
  104. package/types/src/TabBar/Tab.d.ts +2 -0
  105. package/types/src/Table/Head.d.ts +1 -0
  106. package/types/src/Table/HeadCell.d.ts +1 -0
  107. package/types/src/Table/HeadDropdownCell.d.ts +1 -0
  108. package/types/src/Table/Table.d.ts +3 -1
  109. package/types/src/Text/Text.d.ts +3 -1
  110. package/types/src/TextArea/TextArea.d.ts +2 -0
  111. package/useForceUpdate.js +2 -2
  112. package/useKeyPress.js +2 -2
  113. package/usePrevious.js +2 -2
  114. package/useRovingFocus.js +2 -2
  115. package/MIGRATION.md +0 -49
  116. package/cypress/plugins/index.ts +0 -15
  117. package/cypress/support/index.ts +0 -10
  118. package/cypress.json +0 -13
  119. package/types/src/List/docs/examples/Decimal.d.ts +0 -2
  120. package/types/src/List/docs/examples/Disc.d.ts +0 -2
  121. package/types/src/List/docs/examples/LowerAlpha.d.ts +0 -2
  122. package/types/src/List/docs/examples/UpperAlpha.d.ts +0 -2
package/Slider.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 = 232);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 233);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,24 +101,24 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 10:
104
+ /***/ 11:
105
105
  /***/ (function(module, exports) {
106
106
 
107
107
  module.exports = require("lodash/has");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 15:
111
+ /***/ 154:
112
112
  /***/ (function(module, exports) {
113
113
 
114
- module.exports = require("@splunk/react-ui/EventListener");
114
+ module.exports = require("decimal.js-light");
115
115
 
116
116
  /***/ }),
117
117
 
118
- /***/ 153:
118
+ /***/ 16:
119
119
  /***/ (function(module, exports) {
120
120
 
121
- module.exports = require("decimal.js-light");
121
+ module.exports = require("@splunk/react-ui/EventListener");
122
122
 
123
123
  /***/ }),
124
124
 
@@ -136,7 +136,7 @@ module.exports = require("@splunk/react-ui/Popover");
136
136
 
137
137
  /***/ }),
138
138
 
139
- /***/ 232:
139
+ /***/ 233:
140
140
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
141
141
 
142
142
  "use strict";
@@ -155,11 +155,11 @@ var external_prop_types_ = __webpack_require__(1);
155
155
  var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
156
156
 
157
157
  // EXTERNAL MODULE: external "decimal.js-light"
158
- var external_decimal_js_light_ = __webpack_require__(153);
158
+ var external_decimal_js_light_ = __webpack_require__(154);
159
159
  var external_decimal_js_light_default = /*#__PURE__*/__webpack_require__.n(external_decimal_js_light_);
160
160
 
161
161
  // EXTERNAL MODULE: external "lodash/has"
162
- var has_ = __webpack_require__(10);
162
+ var has_ = __webpack_require__(11);
163
163
  var has_default = /*#__PURE__*/__webpack_require__.n(has_);
164
164
 
165
165
  // EXTERNAL MODULE: external "lodash/keys"
@@ -177,7 +177,7 @@ var keyboard_ = __webpack_require__(7);
177
177
  var themes_ = __webpack_require__(0);
178
178
 
179
179
  // EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
180
- var EventListener_ = __webpack_require__(15);
180
+ var EventListener_ = __webpack_require__(16);
181
181
  var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
182
182
 
183
183
  // EXTERNAL MODULE: external "@splunk/react-ui/Popover"
package/SlidingPanels.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 = 204);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 205);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 11:
104
+ /***/ 10:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -128,14 +128,14 @@ function updateReactRef(ref, current) {
128
128
 
129
129
  /***/ }),
130
130
 
131
- /***/ 154:
131
+ /***/ 155:
132
132
  /***/ (function(module, exports) {
133
133
 
134
134
  module.exports = require("lodash/filter");
135
135
 
136
136
  /***/ }),
137
137
 
138
- /***/ 155:
138
+ /***/ 156:
139
139
  /***/ (function(module, exports) {
140
140
 
141
141
  module.exports = require("lodash/values");
@@ -149,7 +149,7 @@ module.exports = require("react");
149
149
 
150
150
  /***/ }),
151
151
 
152
- /***/ 204:
152
+ /***/ 205:
153
153
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
154
154
 
155
155
  "use strict";
@@ -169,7 +169,7 @@ var external_prop_types_ = __webpack_require__(1);
169
169
  var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
170
170
 
171
171
  // EXTERNAL MODULE: external "lodash/filter"
172
- var filter_ = __webpack_require__(154);
172
+ var filter_ = __webpack_require__(155);
173
173
  var filter_default = /*#__PURE__*/__webpack_require__.n(filter_);
174
174
 
175
175
  // EXTERNAL MODULE: external "lodash/keys"
@@ -181,7 +181,7 @@ var omit_ = __webpack_require__(5);
181
181
  var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
182
182
 
183
183
  // EXTERNAL MODULE: external "lodash/values"
184
- var values_ = __webpack_require__(155);
184
+ var values_ = __webpack_require__(156);
185
185
  var values_default = /*#__PURE__*/__webpack_require__.n(values_);
186
186
 
187
187
  // EXTERNAL MODULE: external "react-spring"
@@ -216,7 +216,7 @@ var Styled = external_styled_components_default()(external_react_spring_["animat
216
216
  })(["", ";", ";"], themes_["mixins"].reset('block'), themes_["mixins"].clearfix());
217
217
 
218
218
  // EXTERNAL MODULE: ./src/utils/updateReactRef.ts
219
- var updateReactRef = __webpack_require__(11);
219
+ var updateReactRef = __webpack_require__(10);
220
220
 
221
221
  // CONCATENATED MODULE: ./src/SlidingPanels/Panel.tsx
222
222
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
package/SplitButton.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 = 205);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 206);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/react-ui/Menu");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 156:
111
+ /***/ 157:
112
112
  /***/ (function(module, exports) {
113
113
 
114
114
  module.exports = require("@splunk/react-icons/enterprise/ChevronDown");
@@ -129,7 +129,7 @@ module.exports = require("react");
129
129
 
130
130
  /***/ }),
131
131
 
132
- /***/ 205:
132
+ /***/ 206:
133
133
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
134
134
 
135
135
  "use strict";
@@ -149,7 +149,7 @@ var external_prop_types_ = __webpack_require__(1);
149
149
  var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
150
150
 
151
151
  // EXTERNAL MODULE: external "@splunk/react-icons/enterprise/ChevronDown"
152
- var ChevronDown_ = __webpack_require__(156);
152
+ var ChevronDown_ = __webpack_require__(157);
153
153
  var ChevronDown_default = /*#__PURE__*/__webpack_require__.n(ChevronDown_);
154
154
 
155
155
  // EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
package/StaticContent.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 = 233);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 234);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("react");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 233:
111
+ /***/ 234:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
package/StepBar.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 = 187);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 189);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 187:
104
+ /***/ 189:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
package/Switch.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 = 206);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 207);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -122,7 +122,7 @@ module.exports = require("react");
122
122
 
123
123
  /***/ }),
124
124
 
125
- /***/ 206:
125
+ /***/ 207:
126
126
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
127
127
 
128
128
  "use strict";
package/TabBar.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 = 182);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 184);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 11:
104
+ /***/ 10:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -142,7 +142,7 @@ module.exports = require("@splunk/react-ui/ScreenReaderContent");
142
142
 
143
143
  /***/ }),
144
144
 
145
- /***/ 182:
145
+ /***/ 184:
146
146
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
147
147
 
148
148
  "use strict";
@@ -194,9 +194,6 @@ var Styled = external_styled_components_default.a.div.withConfig({
194
194
  }
195
195
  }));
196
196
 
197
- // EXTERNAL MODULE: external "@splunk/ui-utils/id"
198
- var id_ = __webpack_require__(8);
199
-
200
197
  // EXTERNAL MODULE: external "@splunk/react-ui/Popover"
201
198
  var Popover_ = __webpack_require__(21);
202
199
  var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
@@ -205,6 +202,9 @@ var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
205
202
  var ScreenReaderContent_ = __webpack_require__(14);
206
203
  var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
207
204
 
205
+ // EXTERNAL MODULE: external "@splunk/ui-utils/id"
206
+ var id_ = __webpack_require__(8);
207
+
208
208
  // EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
209
209
  var Clickable_ = __webpack_require__(12);
210
210
  var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
@@ -348,7 +348,7 @@ var maxCountValue = function maxCountValue(count, maxCount) {
348
348
  return count;
349
349
  };
350
350
  // EXTERNAL MODULE: ./src/utils/updateReactRef.ts
351
- var updateReactRef = __webpack_require__(11);
351
+ var updateReactRef = __webpack_require__(10);
352
352
 
353
353
  // CONCATENATED MODULE: ./src/TabBar/Tab.tsx
354
354
  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); }
@@ -429,6 +429,8 @@ var Tab_Tab = /*#__PURE__*/function (_Component) {
429
429
 
430
430
  _defineProperty(_assertThisInitialized(_this), "popoverId", void 0);
431
431
 
432
+ _defineProperty(_assertThisInitialized(_this), "ariaId", void 0);
433
+
432
434
  _defineProperty(_assertThisInitialized(_this), "handleMount", function (el) {
433
435
  _this.setState({
434
436
  anchor: el
@@ -484,6 +486,7 @@ var Tab_Tab = /*#__PURE__*/function (_Component) {
484
486
  });
485
487
 
486
488
  _this.popoverId = Object(id_["createDOMID"])('popover');
489
+ _this.ariaId = Object(id_["createDOMID"])('aria-id');
487
490
  _this.state = {
488
491
  open: false,
489
492
  anchor: null
@@ -524,55 +527,69 @@ var Tab_Tab = /*#__PURE__*/function (_Component) {
524
527
  layout = _this$context.layout,
525
528
  widthContext = _this$context.width;
526
529
  var style = otherProps.style;
527
- var disabledValue = disabledContext || disabled;
530
+ var disabledValue = disabledContext || disabled || false;
528
531
  var iconSizeValue = iconSize || 'inline';
529
532
  var layoutValue = layout || 'horizontal';
530
533
  var styleValue = widthContext ? {
531
534
  width: widthContext
532
535
  } : style;
533
- return /*#__PURE__*/external_react_default.a.createElement(StyledClickable, _extends({
534
- "aria-controls": ariaControls,
535
- "aria-selected": active,
536
- "data-test": "tab",
537
- "data-test-tab-id": tabId,
538
- "data-test-popover-id": tooltip ? this.popoverId : undefined,
539
- $layout: layoutValue,
540
- $icon: icon && iconSizeValue !== 'inline' ? true : undefined,
541
- disabled: disabledValue,
542
- elementRef: this.handleMount,
543
- style: styleValue
544
- }, otherProps, {
545
- onClick: this.handleClick,
546
- onFocus: this.handleFocus,
547
- onMouseEnter: this.handleTooltipOpen,
548
- onBlur: this.handleTooltipClose,
549
- onMouseLeave: this.handleTooltipClose,
550
- role: "tab",
551
- tabIndex: active ? undefined : -1 // @ts-expect-error - this is problematic, since the label
552
- // prop is of type React.ReactNode, which means title
553
- // can end up showing as "[object Object]"
554
- ,
555
- title: label,
556
- to: to
557
- }), /*#__PURE__*/external_react_default.a.createElement(StyledLabel, {
558
- "data-test": "label",
559
- $withUnderline: appearance === 'navigation'
560
- }, icon && /*#__PURE__*/external_react_default.a.createElement(StyledIcon, {
561
- $iconSize: iconSizeValue
562
- }, icon), label, (count === 0 || count) && /*#__PURE__*/external_react_default.a.createElement(StyledCount, {
563
- "data-test": "count",
564
- disabled: disabledValue
565
- }, maxCount ? maxCountValue(count, maxCount) : count)), /*#__PURE__*/external_react_default.a.createElement(StyledUnderline, {
566
- $layout: layoutValue,
567
- $withUnderline: appearance === 'navigation'
568
- }), !disabled && tooltip && /*#__PURE__*/external_react_default.a.createElement(Popover_default.a, {
569
- anchor: anchor,
570
- appearance: "inverted",
571
- closeReasons: [],
572
- defaultPlacement: layoutValue === 'vertical' ? 'right' : 'above',
573
- id: this.popoverId,
574
- open: !!anchor && open
575
- }, /*#__PURE__*/external_react_default.a.createElement(StyledTooltipContent, null, tooltip)), tooltip && /*#__PURE__*/external_react_default.a.createElement(ScreenReaderContent_default.a, null, tooltip));
536
+ return (
537
+ /*#__PURE__*/
538
+ // TODO: Fix the ts error: https://splunk.atlassian.net/browse/SUI-5569
539
+ // eslint-disable-next-line
540
+ // @ts-ignore-next-line
541
+ external_react_default.a.createElement(StyledClickable, _extends({
542
+ "aria-controls": ariaControls,
543
+ "aria-selected": active,
544
+ "aria-labelledby": this.ariaId,
545
+ "data-test": "tab",
546
+ "data-test-tab-id": tabId,
547
+ "data-test-popover-id": tooltip ? this.popoverId : undefined,
548
+ $layout: layoutValue,
549
+ $icon: icon && iconSizeValue !== 'inline' ? true : undefined,
550
+ disabled: disabledValue,
551
+ elementRef: this.handleMount,
552
+ style: styleValue
553
+ }, otherProps, {
554
+ onClick: this.handleClick,
555
+ onFocus: this.handleFocus,
556
+ onMouseEnter: this.handleTooltipOpen,
557
+ onBlur: this.handleTooltipClose,
558
+ onMouseLeave: this.handleTooltipClose,
559
+ role: "tab",
560
+ tabIndex: active ? undefined : -1,
561
+ to: to
562
+ }), /*#__PURE__*/external_react_default.a.createElement(StyledLabel, {
563
+ "data-test": "label",
564
+ $withUnderline: appearance === 'navigation'
565
+ }, icon && /*#__PURE__*/external_react_default.a.createElement(StyledIcon, {
566
+ $iconSize: iconSizeValue
567
+ }, icon), label, (count === 0 || count) && /*#__PURE__*/external_react_default.a.createElement(StyledCount, {
568
+ "data-test": "count",
569
+ disabled: disabledValue
570
+ }, maxCount ? maxCountValue(count, maxCount) : count)), /*#__PURE__*/external_react_default.a.createElement(StyledUnderline, {
571
+ $layout: layoutValue,
572
+ $withUnderline: appearance === 'navigation'
573
+ }), !disabled && tooltip && /*#__PURE__*/external_react_default.a.createElement(Popover_default.a, {
574
+ role: "tooltip",
575
+ anchor: anchor // override Popover's default animation to make it faster
576
+ // this keeps the overall amount of time the Tooltip is on-screen the same
577
+ // even with the increased default closeDelay to address SUI-5116
578
+ ,
579
+ animationConfig: {
580
+ tension: 400
581
+ },
582
+ appearance: "inverted",
583
+ closeReasons: ['offScreen', 'escapeKey'],
584
+ defaultPlacement: layoutValue === 'vertical' ? 'right' : 'above',
585
+ id: this.popoverId,
586
+ open: !!anchor && open,
587
+ align: "center"
588
+ }, /*#__PURE__*/external_react_default.a.createElement(StyledTooltipContent, null, tooltip)), tooltip && /*#__PURE__*/external_react_default.a.createElement(ScreenReaderContent_default.a, {
589
+ "aria-hidden": "true",
590
+ id: this.ariaId
591
+ }, tooltip))
592
+ );
576
593
  }
577
594
  }]);
578
595
 
package/TabLayout.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 = 207);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 208);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,14 +101,14 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 10:
104
+ /***/ 11:
105
105
  /***/ (function(module, exports) {
106
106
 
107
107
  module.exports = require("lodash/has");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 120:
111
+ /***/ 121:
112
112
  /***/ (function(module, exports) {
113
113
 
114
114
  module.exports = require("@splunk/react-ui/TabBar");
@@ -122,7 +122,7 @@ module.exports = require("react");
122
122
 
123
123
  /***/ }),
124
124
 
125
- /***/ 207:
125
+ /***/ 208:
126
126
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
127
127
 
128
128
  "use strict";
@@ -142,7 +142,7 @@ var external_prop_types_ = __webpack_require__(1);
142
142
  var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
143
143
 
144
144
  // EXTERNAL MODULE: external "lodash/has"
145
- var has_ = __webpack_require__(10);
145
+ var has_ = __webpack_require__(11);
146
146
  var has_default = /*#__PURE__*/__webpack_require__.n(has_);
147
147
 
148
148
  // EXTERNAL MODULE: external "lodash/keys"
@@ -157,7 +157,7 @@ var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
157
157
  var id_ = __webpack_require__(8);
158
158
 
159
159
  // EXTERNAL MODULE: external "@splunk/react-ui/TabBar"
160
- var TabBar_ = __webpack_require__(120);
160
+ var TabBar_ = __webpack_require__(121);
161
161
  var TabBar_default = /*#__PURE__*/__webpack_require__.n(TabBar_);
162
162
 
163
163
  // EXTERNAL MODULE: external "styled-components"