@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.
- package/Accordion.js +6 -6
- package/Anchor.js +2 -2
- package/Animation.js +2 -2
- package/AnimationToggle.js +5 -5
- package/Box.js +2 -2
- package/Button.js +4 -4
- package/ButtonGroup.js +2 -2
- package/ButtonSimple.js +2 -2
- package/CHANGELOG.md +28 -2
- package/Calendar.js +8 -8
- package/Card.js +8 -8
- package/CardLayout.js +2 -2
- package/Chip.js +23 -16
- package/Clickable.js +11 -11
- package/CloseButton.js +2 -2
- package/Code.js +12 -12
- package/CollapsiblePanel.js +4 -4
- package/Color.js +209 -182
- package/ColumnLayout.js +6 -6
- package/ComboBox.js +14 -14
- package/Concertina.js +10 -10
- package/ControlGroup.js +2 -2
- package/Date.js +13 -13
- package/DefinitionList.js +2 -2
- package/Divider.js +2 -2
- package/Dropdown.js +13 -13
- package/DualListbox.js +9 -6
- package/EventListener.js +4 -4
- package/File.js +13 -13
- package/FormRows.js +264 -103
- package/Heading.js +50 -50
- package/Image.js +15 -15
- package/JSONTree.js +38 -36
- package/Layer.js +10 -10
- package/Link.js +2 -2
- package/List.js +9 -6
- package/MIGRATION.mdx +295 -0
- package/Markdown.js +24 -19
- package/Menu.js +12 -12
- package/Message.js +4 -4
- package/MessageBar.js +2 -2
- package/Modal.js +4 -4
- package/ModalLayer.js +4 -4
- package/Monogram.js +3 -3
- package/Multiselect.js +33 -33
- package/Number.js +7 -6
- package/Paginator.js +6 -6
- package/Paragraph.js +2 -2
- package/Popover.js +31 -27
- package/Progress.js +4 -4
- package/RadioBar.js +4 -4
- package/RadioList.js +2 -2
- package/Resize.js +6 -6
- package/ResultsMenu.js +8 -8
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +6 -6
- package/ScrollContainerContext.js +2 -2
- package/Search.js +14 -14
- package/Select.js +12 -12
- package/SidePanel.js +2 -2
- package/Slider.js +10 -10
- package/SlidingPanels.js +8 -8
- package/SplitButton.js +4 -4
- package/StaticContent.js +2 -2
- package/StepBar.js +2 -2
- package/Switch.js +2 -2
- package/TabBar.js +68 -51
- package/TabLayout.js +6 -6
- package/Table.js +51 -50
- package/Text.js +25 -23
- package/TextArea.js +24 -22
- package/Tooltip.js +11 -11
- package/TransitionOpen.js +2 -2
- package/Typography.js +4 -4
- package/WaitSpinner.js +2 -2
- package/cypress/support/component-index.html +12 -0
- package/cypress/support/component.ts +27 -0
- package/cypress.config.ts +19 -0
- package/package.json +14 -19
- package/stubs-dependencies.d.ts +0 -9
- package/types/src/Button/Button.d.ts +5 -3
- package/types/src/Clickable/Clickable.d.ts +2 -1
- package/types/src/Clickable/docs/examples/Basic.d.ts +2 -2
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -0
- package/types/src/Color/Color.d.ts +6 -6
- package/types/src/Color/Palette.d.ts +46 -0
- package/types/src/Concertina/Panel.d.ts +1 -0
- package/types/src/FormRows/FormRows.d.ts +1 -2
- package/types/src/FormRows/Row.d.ts +3 -12
- package/types/src/FormRows/RowInternal.d.ts +19 -0
- package/types/src/FormRows/SortableList.d.ts +8 -2
- package/types/src/FormRows/SortableRow.d.ts +20 -0
- package/types/src/Heading/Heading.d.ts +8 -3
- package/types/src/JSONTree/JSONTree.d.ts +2 -1
- package/types/src/Layer/Layer.d.ts +2 -0
- package/types/src/List/List.d.ts +9 -1
- package/types/src/List/docs/examples/CustomizedList.d.ts +2 -0
- package/types/src/List/docs/examples/OrderedList.d.ts +2 -0
- package/types/src/List/docs/examples/UnorderedList.d.ts +2 -0
- package/types/src/Markdown/Markdown.d.ts +1 -0
- package/types/src/Markdown/renderers/MarkdownList.d.ts +2 -0
- package/types/src/Number/Number.d.ts +9 -4
- package/types/src/Popover/Popover.d.ts +2 -0
- package/types/src/TabBar/Tab.d.ts +2 -0
- package/types/src/Table/Head.d.ts +1 -0
- package/types/src/Table/HeadCell.d.ts +1 -0
- package/types/src/Table/HeadDropdownCell.d.ts +1 -0
- package/types/src/Table/Table.d.ts +3 -1
- package/types/src/Text/Text.d.ts +3 -1
- package/types/src/TextArea/TextArea.d.ts +2 -0
- package/useForceUpdate.js +2 -2
- package/useKeyPress.js +2 -2
- package/usePrevious.js +2 -2
- package/useRovingFocus.js +2 -2
- package/MIGRATION.md +0 -49
- package/cypress/plugins/index.ts +0 -15
- package/cypress/support/index.ts +0 -10
- package/cypress.json +0 -13
- package/types/src/List/docs/examples/Decimal.d.ts +0 -2
- package/types/src/List/docs/examples/Disc.d.ts +0 -2
- package/types/src/List/docs/examples/LowerAlpha.d.ts +0 -2
- 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 =
|
|
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
|
-
/***/
|
|
104
|
+
/***/ 11:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("lodash/has");
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 154:
|
|
112
112
|
/***/ (function(module, exports) {
|
|
113
113
|
|
|
114
|
-
module.exports = require("
|
|
114
|
+
module.exports = require("decimal.js-light");
|
|
115
115
|
|
|
116
116
|
/***/ }),
|
|
117
117
|
|
|
118
|
-
/***/
|
|
118
|
+
/***/ 16:
|
|
119
119
|
/***/ (function(module, exports) {
|
|
120
120
|
|
|
121
|
-
module.exports = require("
|
|
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
|
-
/***/
|
|
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__(
|
|
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__(
|
|
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__(
|
|
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 =
|
|
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
|
-
/***/
|
|
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
|
-
/***/
|
|
131
|
+
/***/ 155:
|
|
132
132
|
/***/ (function(module, exports) {
|
|
133
133
|
|
|
134
134
|
module.exports = require("lodash/filter");
|
|
135
135
|
|
|
136
136
|
/***/ }),
|
|
137
137
|
|
|
138
|
-
/***/
|
|
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
|
-
/***/
|
|
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__(
|
|
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__(
|
|
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__(
|
|
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 =
|
|
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
|
-
/***/
|
|
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
|
-
/***/
|
|
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__(
|
|
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 =
|
|
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
|
-
/***/
|
|
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 =
|
|
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
|
-
/***/
|
|
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 =
|
|
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
|
-
/***/
|
|
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 =
|
|
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
|
-
/***/
|
|
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
|
-
/***/
|
|
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__(
|
|
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
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
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 =
|
|
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
|
-
/***/
|
|
104
|
+
/***/ 11:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("lodash/has");
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
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
|
-
/***/
|
|
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__(
|
|
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__(
|
|
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"
|