@splunk/react-ui 4.8.0 → 4.11.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 +4 -4
- package/Anchor.js +2 -2
- package/Animation.js +2 -2
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +5 -29
- package/ButtonGroup.js +6 -27
- package/ButtonSimple.js +4 -4
- package/CHANGELOG.md +42 -5
- package/Calendar.js +12 -12
- package/Card.js +48 -62
- package/CardLayout.js +14 -35
- package/Chip.js +4 -4
- package/Clickable.js +23 -8
- package/CloseButton.js +2 -2
- package/Code.js +8 -5
- package/CollapsiblePanel.js +4 -4
- package/Color.js +10 -10
- package/ColumnLayout.js +2 -2
- package/ComboBox.js +9 -5
- package/Concertina.js +13 -13
- package/ControlGroup.js +26 -16
- package/Date.js +6 -6
- package/DefinitionList.js +2 -2
- package/Dropdown.js +4 -4
- package/EventListener.js +4 -4
- package/File.js +15 -15
- package/FormRows.js +11 -11
- package/Heading.js +2 -2
- package/Image.js +8 -8
- package/JSONTree.js +40 -22
- package/Layer.js +72 -22
- package/Link.js +4 -4
- package/List.js +2 -2
- package/Markdown.js +62 -30
- package/Menu.js +42 -42
- package/Message.js +18 -18
- package/MessageBar.js +28 -21
- package/Modal.js +6 -6
- package/ModalLayer.js +16 -7
- package/Monogram.js +27 -15
- package/Multiselect.js +12 -12
- package/Number.js +4 -4
- package/Paginator.js +21 -24
- package/Paragraph.js +2 -2
- package/Popover.js +16 -11
- package/Progress.js +2 -2
- package/RadioBar.js +143 -39
- package/RadioList.js +2 -2
- package/Resize.js +4 -4
- package/ResultsMenu.js +20 -20
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +4 -4
- package/ScrollContainerContext.js +2 -2
- package/Search.js +6 -6
- package/Select.js +9 -9
- package/SidePanel.js +4 -4
- package/Slider.js +4 -4
- package/SlidingPanels.js +16 -7
- package/StaticContent.js +2 -2
- package/StepBar.js +2 -2
- package/Switch.js +4 -4
- package/TabBar.js +11 -11
- package/TabLayout.js +4 -4
- package/Table.js +26 -31
- package/Text.js +18 -10
- package/Tooltip.js +21 -6
- package/TransitionOpen.js +14 -5
- package/WaitSpinner.js +2 -2
- package/package.json +12 -9
- package/stubs-splunkui.d.ts +13 -0
- package/types/src/Accordion/AccordionContext.d.ts +0 -1
- package/types/src/Button/Button.d.ts +0 -2
- package/types/src/ButtonGroup/ButtonGroupContext.d.ts +0 -1
- package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -6
- package/types/src/Card/Body.d.ts +6 -1
- package/types/src/Card/Card.d.ts +0 -2
- package/types/src/CardLayout/CardLayoutContext.d.ts +0 -1
- package/types/src/Clickable/Clickable.d.ts +5 -0
- package/types/src/ComboBox/ComboBox.d.ts +2 -1
- package/types/src/Concertina/ConcertinaContext.d.ts +0 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +9 -2
- package/types/src/Date/Date.d.ts +3 -3
- package/types/src/File/FileContext.d.ts +0 -1
- package/types/src/FormRows/FormRows.d.ts +1 -1
- package/types/src/FormRows/FormRowsContext.d.ts +0 -1
- package/types/src/FormRows/Row.d.ts +1 -1
- package/types/src/JSONTree/JSONTree.d.ts +2 -2
- package/types/src/JSONTree/TreeNode.d.ts +1 -1
- package/types/src/JSONTree/docs/examples/WithShiftModifier.d.ts +1 -0
- package/types/src/Layer/LayerStack.d.ts +8 -2
- package/types/src/Markdown/Markdown.d.ts +9 -4
- package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +15 -0
- package/types/src/Markdown/renderers/index.d.ts +2 -1
- package/types/src/Menu/MenuContext.d.ts +0 -1
- package/types/src/Modal/ModalContext.d.ts +0 -1
- package/types/src/ModalLayer/ModalLayer.d.ts +2 -0
- package/types/src/Monogram/Monogram.d.ts +2 -2
- package/types/src/Number/Number.d.ts +3 -3
- package/types/src/Popover/Popover.d.ts +1 -0
- package/types/src/Popover/PopoverContext.d.ts +0 -1
- package/types/src/RadioBar/Option.d.ts +10 -2
- package/types/src/RadioBar/RadioBar.d.ts +4 -1
- package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
- package/types/src/RadioList/RadioListContext.d.ts +0 -1
- package/types/src/Slider/Slider.d.ts +3 -3
- package/types/src/SlidingPanels/SlidingPanels.d.ts +2 -0
- package/types/src/StepBar/StepBarContext.d.ts +0 -1
- package/types/src/TabBar/TabBarContext.d.ts +0 -1
- package/types/src/Text/Text.d.ts +4 -3
- package/types/src/Tooltip/Tooltip.d.ts +15 -10
- package/types/src/TransitionOpen/TransitionOpen.d.ts +2 -0
- package/types/src/fixtures/FetchOptions.d.ts +82 -2
- package/usePrevious.js +2 -2
- package/FetchOptions.js +0 -359
- package/types/src/FetchOptions/FetchOptions.d.ts +0 -82
- package/types/src/FetchOptions/index.d.ts +0 -2
package/RadioBar.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 = 124);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,14 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 12:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/react-ui/Clickable");
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 124:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -130,13 +130,12 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
130
130
|
// EXTERNAL MODULE: external "lodash"
|
|
131
131
|
var external_lodash_ = __webpack_require__(4);
|
|
132
132
|
|
|
133
|
+
// EXTERNAL MODULE: external "@splunk/ui-utils/keyboard"
|
|
134
|
+
var keyboard_ = __webpack_require__(9);
|
|
135
|
+
|
|
133
136
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
134
137
|
var themes_ = __webpack_require__(0);
|
|
135
138
|
|
|
136
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/Box"
|
|
137
|
-
var Box_ = __webpack_require__(8);
|
|
138
|
-
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
|
|
139
|
-
|
|
140
139
|
// EXTERNAL MODULE: external "@splunk/react-ui/Button"
|
|
141
140
|
var Button_ = __webpack_require__(17);
|
|
142
141
|
var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
|
|
@@ -146,7 +145,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
146
145
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
147
146
|
|
|
148
147
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
149
|
-
var Clickable_ = __webpack_require__(
|
|
148
|
+
var Clickable_ = __webpack_require__(12);
|
|
150
149
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
151
150
|
|
|
152
151
|
// CONCATENATED MODULE: ./src/RadioBar/OptionStyles.ts
|
|
@@ -156,10 +155,10 @@ var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
|
156
155
|
var StyledClickable = external_styled_components_default()(Clickable_default.a).withConfig({
|
|
157
156
|
displayName: "OptionStyles__StyledClickable",
|
|
158
157
|
componentId: "fyq77p-0"
|
|
159
|
-
})(["border-radius:3px;flex:1 1 auto;display:flex;justify-content:center;align-items:center;color:", ";padding:2px 12px;height:calc(", " - 6px);position:relative;gap:
|
|
158
|
+
})(["border-radius:3px;flex:1 1 auto;display:flex;justify-content:center;align-items:center;color:", ";padding:2px 12px;height:calc(", " - 6px);position:relative;gap:", ";& + &{margin-left:2px;}", " ", " &:focus{color:", ";box-shadow:", ";z-index:2;&:active{background-color:", ";}}", " ", ""], themes_["variables"].contentColorDefault, themes_["variables"].inputHeight, themes_["variables"].spacingXSmall, function (_ref) {
|
|
160
159
|
var $selected = _ref.$selected;
|
|
161
160
|
return $selected && Object(external_styled_components_["css"])(["color:", ";background-color:", ";box-shadow:", ";"], themes_["variables"].contentColorActive, Object(themes_["pick"])({
|
|
162
|
-
dark:
|
|
161
|
+
dark: themes_["variables"].interactiveColorOverlaySelected,
|
|
163
162
|
light: themes_["variables"].white
|
|
164
163
|
}), themes_["variables"].embossShadow);
|
|
165
164
|
}, function (_ref2) {
|
|
@@ -181,13 +180,15 @@ var StyledIcon = external_styled_components_default.a.div.withConfig({
|
|
|
181
180
|
var StyledLabel = external_styled_components_default.a.div.withConfig({
|
|
182
181
|
displayName: "OptionStyles__StyledLabel",
|
|
183
182
|
componentId: "fyq77p-2"
|
|
184
|
-
})(["flex:0 1 auto;", "
|
|
185
|
-
enterprise:
|
|
183
|
+
})(["", " flex:0 1 auto;", ""], themes_["mixins"].ellipsis, Object(themes_["pick"])({
|
|
184
|
+
enterprise: Object(external_styled_components_["css"])(["&:not(:first-child){margin-left:", ";}"], themes_["variables"].spacingXSmall)
|
|
186
185
|
}));
|
|
187
186
|
var StyledAdornment = external_styled_components_default.a.div.withConfig({
|
|
188
187
|
displayName: "OptionStyles__StyledAdornment",
|
|
189
188
|
componentId: "fyq77p-3"
|
|
190
|
-
})(["flex:0 0 auto;"])
|
|
189
|
+
})(["flex:0 0 auto;", ""], Object(themes_["pick"])({
|
|
190
|
+
enterprise: Object(external_styled_components_["css"])(["&:not(:first-child){margin-left:", ";}"], themes_["variables"].spacingXSmall)
|
|
191
|
+
}));
|
|
191
192
|
|
|
192
193
|
// CONCATENATED MODULE: ./src/RadioBar/RadioBarContext.tsx
|
|
193
194
|
|
|
@@ -234,10 +235,25 @@ function Option(_ref) {
|
|
|
234
235
|
var _useContext = Object(external_react_["useContext"])(RadioBar_RadioBarContext),
|
|
235
236
|
onClickContext = _useContext.onClick,
|
|
236
237
|
appearanceContext = _useContext.appearance,
|
|
237
|
-
errorContext = _useContext.error
|
|
238
|
+
errorContext = _useContext.error,
|
|
239
|
+
onKeyDownContext = _useContext.onKeyDown,
|
|
240
|
+
firstValueContext = _useContext.firstValue,
|
|
241
|
+
selectedValueContext = _useContext.selectedValue;
|
|
238
242
|
|
|
239
243
|
if (false) {}
|
|
240
244
|
|
|
245
|
+
var tabIndex = -1;
|
|
246
|
+
|
|
247
|
+
if (selectedValueContext) {
|
|
248
|
+
if (value === selectedValueContext) {
|
|
249
|
+
tabIndex = 0;
|
|
250
|
+
}
|
|
251
|
+
} else if (value === firstValueContext) {
|
|
252
|
+
tabIndex = 0;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
var focusedTabIndex = tabIndex;
|
|
256
|
+
|
|
241
257
|
if (appearanceContext === 'prisma') {
|
|
242
258
|
return /*#__PURE__*/external_react_default.a.createElement(StyledClickable, _extends({
|
|
243
259
|
"data-test": "option",
|
|
@@ -252,8 +268,14 @@ function Option(_ref) {
|
|
|
252
268
|
role: "radio",
|
|
253
269
|
"aria-checked": selected,
|
|
254
270
|
$selected: selected,
|
|
255
|
-
tabIndex:
|
|
256
|
-
disabled: disabled
|
|
271
|
+
tabIndex: focusedTabIndex,
|
|
272
|
+
disabled: disabled,
|
|
273
|
+
onKeyDown: function onKeyDown(e) {
|
|
274
|
+
return onKeyDownContext === null || onKeyDownContext === void 0 ? void 0 : onKeyDownContext(e, {
|
|
275
|
+
value: value,
|
|
276
|
+
label: label
|
|
277
|
+
});
|
|
278
|
+
}
|
|
257
279
|
}), icon && /*#__PURE__*/external_react_default.a.createElement(StyledIcon, null, icon), startAdornment && /*#__PURE__*/external_react_default.a.createElement(StyledAdornment, null, startAdornment), label && /*#__PURE__*/external_react_default.a.createElement(StyledLabel, null, label), endAdornment && /*#__PURE__*/external_react_default.a.createElement(StyledAdornment, null, endAdornment));
|
|
258
280
|
}
|
|
259
281
|
|
|
@@ -275,12 +297,22 @@ function Option(_ref) {
|
|
|
275
297
|
},
|
|
276
298
|
role: "radio",
|
|
277
299
|
"aria-checked": selected,
|
|
278
|
-
tabIndex:
|
|
300
|
+
tabIndex: focusedTabIndex,
|
|
301
|
+
onKeyDown: function onKeyDown(e) {
|
|
302
|
+
return onKeyDownContext === null || onKeyDownContext === void 0 ? void 0 : onKeyDownContext(e, {
|
|
303
|
+
value: value,
|
|
304
|
+
label: label
|
|
305
|
+
});
|
|
306
|
+
}
|
|
279
307
|
}), startAdornment && /*#__PURE__*/external_react_default.a.createElement(StyledAdornment, null, startAdornment), label && /*#__PURE__*/external_react_default.a.createElement(StyledLabel, null, label), endAdornment && /*#__PURE__*/external_react_default.a.createElement(StyledAdornment, null, endAdornment));
|
|
280
308
|
}
|
|
281
309
|
|
|
282
310
|
Option.propTypes = propTypes;
|
|
283
311
|
/* harmony default export */ var RadioBar_Option = (Option);
|
|
312
|
+
// EXTERNAL MODULE: external "@splunk/react-ui/Box"
|
|
313
|
+
var Box_ = __webpack_require__(8);
|
|
314
|
+
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
|
|
315
|
+
|
|
284
316
|
// CONCATENATED MODULE: ./src/RadioBar/RadioBarStyles.ts
|
|
285
317
|
|
|
286
318
|
|
|
@@ -288,13 +320,18 @@ Option.propTypes = propTypes;
|
|
|
288
320
|
var StyledRadioBar = external_styled_components_default()(Box_default.a).withConfig({
|
|
289
321
|
displayName: "RadioBarStyles__StyledRadioBar",
|
|
290
322
|
componentId: "gg1b79-0"
|
|
291
|
-
})(["height:", ";
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
323
|
+
})(["height:", ";", " [data-inline] + &{margin-left:", ";}"], themes_["variables"].inputHeight, Object(themes_["pick"])({
|
|
324
|
+
prisma: Object(external_styled_components_["css"])(["padding:2px;border-radius:", ";border:1px solid ", ";background:", ";"], themes_["variables"].borderRadius, function (_ref) {
|
|
325
|
+
var $error = _ref.$error;
|
|
326
|
+
return $error ? themes_["variables"].accentColorNegative : 'transparent';
|
|
327
|
+
}, function (_ref2) {
|
|
328
|
+
var $disabled = _ref2.$disabled;
|
|
329
|
+
return $disabled ? themes_["variables"].interactiveColorBackgroundDisabled : themes_["variables"].interactiveColorBackground;
|
|
330
|
+
})
|
|
331
|
+
}), Object(themes_["pick"])({
|
|
332
|
+
enterprise: themes_["variables"].spacingHalf,
|
|
333
|
+
prisma: themes_["variables"].spacingSmall
|
|
334
|
+
}));
|
|
298
335
|
|
|
299
336
|
// CONCATENATED MODULE: ./src/RadioBar/RadioBar.tsx
|
|
300
337
|
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); }
|
|
@@ -372,6 +409,7 @@ var RadioBar_RadioBar = /*#__PURE__*/function (_Component) {
|
|
|
372
409
|
var _super = _createSuper(RadioBar);
|
|
373
410
|
|
|
374
411
|
// @docs-props-type RadioBarPropsBase
|
|
412
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
375
413
|
function RadioBar(props) {
|
|
376
414
|
var _this;
|
|
377
415
|
|
|
@@ -381,15 +419,66 @@ var RadioBar_RadioBar = /*#__PURE__*/function (_Component) {
|
|
|
381
419
|
|
|
382
420
|
_defineProperty(_assertThisInitialized(_this), "controlledExternally", void 0);
|
|
383
421
|
|
|
422
|
+
_defineProperty(_assertThisInitialized(_this), "filteredValues", []);
|
|
423
|
+
|
|
384
424
|
_defineProperty(_assertThisInitialized(_this), "handleClick", function (e, data) {
|
|
385
|
-
|
|
425
|
+
_this.handleOnChange(e, data);
|
|
426
|
+
});
|
|
427
|
+
|
|
428
|
+
_defineProperty(_assertThisInitialized(_this), "handleOnKeyDown", function (e, _ref) {
|
|
429
|
+
var value = _ref.value,
|
|
430
|
+
label = _ref.label;
|
|
431
|
+
var eventKeyCode = Object(keyboard_["keycode"])(e.nativeEvent);
|
|
432
|
+
var myTarget = e.currentTarget;
|
|
433
|
+
var nextTarget = null;
|
|
434
|
+
var nextIndex = 0;
|
|
435
|
+
|
|
436
|
+
var currentIndex = _this.filteredValues.indexOf(value);
|
|
437
|
+
|
|
438
|
+
if (eventKeyCode === 'down' || eventKeyCode === 'right') {
|
|
439
|
+
var _myTarget$parentEleme;
|
|
440
|
+
|
|
441
|
+
e.preventDefault();
|
|
442
|
+
nextIndex = currentIndex + 1;
|
|
386
443
|
|
|
444
|
+
if (nextIndex > _this.filteredValues.length - 1) {
|
|
445
|
+
nextIndex = 0;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
nextTarget = myTarget.nextSibling ? myTarget.nextSibling : (_myTarget$parentEleme = myTarget.parentElement) === null || _myTarget$parentEleme === void 0 ? void 0 : _myTarget$parentEleme.firstElementChild;
|
|
449
|
+
} else if (eventKeyCode === 'up' || eventKeyCode === 'left') {
|
|
450
|
+
var _myTarget$parentEleme2;
|
|
451
|
+
|
|
452
|
+
e.preventDefault();
|
|
453
|
+
nextIndex = currentIndex - 1;
|
|
454
|
+
|
|
455
|
+
if (nextIndex < 0) {
|
|
456
|
+
nextIndex = _this.filteredValues.length - 1;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
nextTarget = myTarget.previousSibling ? myTarget.previousSibling : (_myTarget$parentEleme2 = myTarget.parentElement) === null || _myTarget$parentEleme2 === void 0 ? void 0 : _myTarget$parentEleme2.lastElementChild;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
if (nextTarget) {
|
|
463
|
+
var _nextTarget;
|
|
464
|
+
|
|
465
|
+
(_nextTarget = nextTarget) === null || _nextTarget === void 0 ? void 0 : _nextTarget.focus();
|
|
466
|
+
var nextValue = _this.filteredValues[nextIndex];
|
|
467
|
+
|
|
468
|
+
_this.handleOnChange(e, {
|
|
469
|
+
value: nextValue,
|
|
470
|
+
label: label
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
|
|
475
|
+
_defineProperty(_assertThisInitialized(_this), "handleOnChange", function (e, data) {
|
|
387
476
|
if (_this.props.value !== data.value) {
|
|
388
477
|
var _this$props$onChange, _this$props;
|
|
389
478
|
|
|
390
|
-
(_this$props$onChange = (_this$props = _this.props).onChange) === null || _this$props$onChange === void 0 ? void 0 : _this$props$onChange.call(_this$props, e, _objectSpread(
|
|
391
|
-
name: name
|
|
392
|
-
}));
|
|
479
|
+
(_this$props$onChange = (_this$props = _this.props).onChange) === null || _this$props$onChange === void 0 ? void 0 : _this$props$onChange.call(_this$props, e, _objectSpread({
|
|
480
|
+
name: _this.props.name
|
|
481
|
+
}, data));
|
|
393
482
|
|
|
394
483
|
if (!_this.isControlled()) {
|
|
395
484
|
_this.setState({
|
|
@@ -427,6 +516,8 @@ var RadioBar_RadioBar = /*#__PURE__*/function (_Component) {
|
|
|
427
516
|
}, {
|
|
428
517
|
key: "render",
|
|
429
518
|
value: function render() {
|
|
519
|
+
var _this2 = this;
|
|
520
|
+
|
|
430
521
|
var _this$props2 = this.props,
|
|
431
522
|
appearance = _this$props2.appearance,
|
|
432
523
|
children = _this$props2.children,
|
|
@@ -442,13 +533,11 @@ var RadioBar_RadioBar = /*#__PURE__*/function (_Component) {
|
|
|
442
533
|
var selectedValue = this.isControlled() ? value : this.state.value;
|
|
443
534
|
var isPrisma = splunkTheme.isPrisma;
|
|
444
535
|
var disabled = true;
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
var childrenFormatted = external_react_["Children"].toArray(children).filter(external_react_["isValidElement"]).map(function (item, i, _ref) {
|
|
451
|
-
var length = _ref.length;
|
|
536
|
+
this.filteredValues = [];
|
|
537
|
+
var childrenFormatted = external_react_["Children"].toArray(children).filter(external_react_["isValidElement"]).map(function (item, i, _ref2) {
|
|
538
|
+
var length = _ref2.length;
|
|
539
|
+
|
|
540
|
+
_this2.filteredValues.push(item.props.value);
|
|
452
541
|
|
|
453
542
|
if (item.props && !item.props.disabled) {
|
|
454
543
|
disabled = false;
|
|
@@ -461,16 +550,24 @@ var RadioBar_RadioBar = /*#__PURE__*/function (_Component) {
|
|
|
461
550
|
prepend: i > 0
|
|
462
551
|
});
|
|
463
552
|
});
|
|
464
|
-
var
|
|
465
|
-
|
|
553
|
+
var firstItemValue = this.filteredValues[0];
|
|
554
|
+
var contextValue = {
|
|
555
|
+
appearance: isPrisma ? 'prisma' : appearance,
|
|
556
|
+
onClick: this.handleClick,
|
|
557
|
+
error: isPrisma ? false : error,
|
|
558
|
+
onKeyDown: this.handleOnKeyDown,
|
|
559
|
+
firstValue: firstItemValue,
|
|
560
|
+
selectedValue: selectedValue
|
|
561
|
+
};
|
|
562
|
+
return /*#__PURE__*/external_react_default.a.createElement(StyledRadioBar, RadioBar_extends({
|
|
563
|
+
flex: true,
|
|
466
564
|
$disabled: disabled,
|
|
467
565
|
$error: error,
|
|
468
566
|
"data-test": "radio-bar",
|
|
469
567
|
"data-test-value": selectedValue,
|
|
470
568
|
role: "radiogroup",
|
|
471
569
|
"aria-labelledby": labelledBy,
|
|
472
|
-
"aria-describedby": describedBy
|
|
473
|
-
flex: true
|
|
570
|
+
"aria-describedby": describedBy
|
|
474
571
|
}, Object(external_lodash_["omit"])(otherProps, 'onChange')), /*#__PURE__*/external_react_default.a.createElement(RadioBar_RadioBarContext.Provider, {
|
|
475
572
|
value: contextValue
|
|
476
573
|
}, childrenFormatted));
|
|
@@ -531,6 +628,13 @@ module.exports = require("lodash");
|
|
|
531
628
|
|
|
532
629
|
module.exports = require("@splunk/react-ui/Box");
|
|
533
630
|
|
|
631
|
+
/***/ }),
|
|
632
|
+
|
|
633
|
+
/***/ 9:
|
|
634
|
+
/***/ (function(module, exports) {
|
|
635
|
+
|
|
636
|
+
module.exports = require("@splunk/ui-utils/keyboard");
|
|
637
|
+
|
|
534
638
|
/***/ })
|
|
535
639
|
|
|
536
640
|
/******/ });
|
package/RadioList.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 = 125);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,7 +108,7 @@ module.exports = require("@splunk/ui-utils/id");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 125:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
package/Resize.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 = 163);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 11:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -142,7 +142,7 @@ module.exports = require("@splunk/react-ui/EventListener");
|
|
|
142
142
|
|
|
143
143
|
/***/ }),
|
|
144
144
|
|
|
145
|
-
/***/
|
|
145
|
+
/***/ 163:
|
|
146
146
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
147
147
|
|
|
148
148
|
"use strict";
|
|
@@ -267,7 +267,7 @@ var StyledResize = external_styled_components_default.a.button.withConfig({
|
|
|
267
267
|
}));
|
|
268
268
|
|
|
269
269
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
270
|
-
var updateReactRef = __webpack_require__(
|
|
270
|
+
var updateReactRef = __webpack_require__(11);
|
|
271
271
|
|
|
272
272
|
// CONCATENATED MODULE: ./src/Resize/Resize.tsx
|
|
273
273
|
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/ResultsMenu.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 = 164);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,21 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
105
|
-
/***/ (function(module, exports) {
|
|
106
|
-
|
|
107
|
-
module.exports = require("@splunk/ui-utils/userAgent");
|
|
108
|
-
|
|
109
|
-
/***/ }),
|
|
110
|
-
|
|
111
|
-
/***/ 103:
|
|
112
|
-
/***/ (function(module, exports) {
|
|
113
|
-
|
|
114
|
-
module.exports = require("@splunk/react-ui/WaitSpinner");
|
|
115
|
-
|
|
116
|
-
/***/ }),
|
|
117
|
-
|
|
118
|
-
/***/ 12:
|
|
104
|
+
/***/ 11:
|
|
119
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
120
106
|
|
|
121
107
|
"use strict";
|
|
@@ -149,7 +135,7 @@ module.exports = require("@splunk/react-ui/Menu");
|
|
|
149
135
|
|
|
150
136
|
/***/ }),
|
|
151
137
|
|
|
152
|
-
/***/
|
|
138
|
+
/***/ 164:
|
|
153
139
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
154
140
|
|
|
155
141
|
"use strict";
|
|
@@ -174,7 +160,7 @@ var external_lodash_ = __webpack_require__(4);
|
|
|
174
160
|
var i18n_ = __webpack_require__(5);
|
|
175
161
|
|
|
176
162
|
// EXTERNAL MODULE: external "@splunk/ui-utils/userAgent"
|
|
177
|
-
var userAgent_ = __webpack_require__(
|
|
163
|
+
var userAgent_ = __webpack_require__(98);
|
|
178
164
|
|
|
179
165
|
// EXTERNAL MODULE: external "@splunk/react-ui/Menu"
|
|
180
166
|
var Menu_ = __webpack_require__(13);
|
|
@@ -185,7 +171,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
185
171
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
186
172
|
|
|
187
173
|
// EXTERNAL MODULE: external "@splunk/react-ui/WaitSpinner"
|
|
188
|
-
var WaitSpinner_ = __webpack_require__(
|
|
174
|
+
var WaitSpinner_ = __webpack_require__(99);
|
|
189
175
|
var WaitSpinner_default = /*#__PURE__*/__webpack_require__.n(WaitSpinner_);
|
|
190
176
|
|
|
191
177
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -246,7 +232,7 @@ var StyledLoadingMessage = external_styled_components_default.a.div.withConfig({
|
|
|
246
232
|
}));
|
|
247
233
|
|
|
248
234
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
249
|
-
var updateReactRef = __webpack_require__(
|
|
235
|
+
var updateReactRef = __webpack_require__(11);
|
|
250
236
|
|
|
251
237
|
// CONCATENATED MODULE: ./src/ResultsMenu/ResultsMenu.tsx
|
|
252
238
|
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); }
|
|
@@ -551,6 +537,20 @@ module.exports = require("lodash");
|
|
|
551
537
|
|
|
552
538
|
module.exports = require("@splunk/ui-utils/i18n");
|
|
553
539
|
|
|
540
|
+
/***/ }),
|
|
541
|
+
|
|
542
|
+
/***/ 98:
|
|
543
|
+
/***/ (function(module, exports) {
|
|
544
|
+
|
|
545
|
+
module.exports = require("@splunk/ui-utils/userAgent");
|
|
546
|
+
|
|
547
|
+
/***/ }),
|
|
548
|
+
|
|
549
|
+
/***/ 99:
|
|
550
|
+
/***/ (function(module, exports) {
|
|
551
|
+
|
|
552
|
+
module.exports = require("@splunk/react-ui/WaitSpinner");
|
|
553
|
+
|
|
554
554
|
/***/ })
|
|
555
555
|
|
|
556
556
|
/******/ });
|
package/ScreenReaderContent.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 = 165);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 165:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
package/Scroll.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 = 140);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 11:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -128,7 +128,7 @@ function updateReactRef(ref, current) {
|
|
|
128
128
|
|
|
129
129
|
/***/ }),
|
|
130
130
|
|
|
131
|
-
/***/
|
|
131
|
+
/***/ 140:
|
|
132
132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
133
133
|
|
|
134
134
|
"use strict";
|
|
@@ -170,7 +170,7 @@ var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
|
170
170
|
var ScrollContainerContext_ = __webpack_require__(35);
|
|
171
171
|
|
|
172
172
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
173
|
-
var updateReactRef = __webpack_require__(
|
|
173
|
+
var updateReactRef = __webpack_require__(11);
|
|
174
174
|
|
|
175
175
|
// CONCATENATED MODULE: ./src/Scroll/Inner.tsx
|
|
176
176
|
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); }
|
|
@@ -82,12 +82,12 @@ 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 = 176);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 176:
|
|
91
91
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
package/Search.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 = 166);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,14 +101,14 @@ module.exports = require("@splunk/ui-utils/id");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 100:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/react-ui/usePrevious");
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 11:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -149,7 +149,7 @@ module.exports = require("@splunk/react-ui/Popover");
|
|
|
149
149
|
|
|
150
150
|
/***/ }),
|
|
151
151
|
|
|
152
|
-
/***/
|
|
152
|
+
/***/ 166:
|
|
153
153
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
154
154
|
|
|
155
155
|
"use strict";
|
|
@@ -186,7 +186,7 @@ var keyboard_ = __webpack_require__(9);
|
|
|
186
186
|
var Menu_ = __webpack_require__(13);
|
|
187
187
|
|
|
188
188
|
// EXTERNAL MODULE: external "@splunk/react-ui/usePrevious"
|
|
189
|
-
var usePrevious_ = __webpack_require__(
|
|
189
|
+
var usePrevious_ = __webpack_require__(100);
|
|
190
190
|
var usePrevious_default = /*#__PURE__*/__webpack_require__.n(usePrevious_);
|
|
191
191
|
|
|
192
192
|
// EXTERNAL MODULE: external "@splunk/react-ui/Popover"
|
|
@@ -337,7 +337,7 @@ _defineProperty(Option_Option, "defaultProps", defaultProps);
|
|
|
337
337
|
|
|
338
338
|
/* harmony default export */ var Search_Option = (Option_Option);
|
|
339
339
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
340
|
-
var updateReactRef = __webpack_require__(
|
|
340
|
+
var updateReactRef = __webpack_require__(11);
|
|
341
341
|
|
|
342
342
|
// CONCATENATED MODULE: ./src/Search/Search.tsx
|
|
343
343
|
function Search_extends() { Search_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Search_extends.apply(this, arguments); }
|
package/Select.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 = 167);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -115,14 +115,7 @@ module.exports = require("@splunk/react-ui/Menu");
|
|
|
115
115
|
|
|
116
116
|
/***/ }),
|
|
117
117
|
|
|
118
|
-
/***/
|
|
119
|
-
/***/ (function(module, exports) {
|
|
120
|
-
|
|
121
|
-
module.exports = require("@splunk/react-ui/Button");
|
|
122
|
-
|
|
123
|
-
/***/ }),
|
|
124
|
-
|
|
125
|
-
/***/ 171:
|
|
118
|
+
/***/ 167:
|
|
126
119
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
127
120
|
|
|
128
121
|
"use strict";
|
|
@@ -464,6 +457,13 @@ Select_defineProperty(Select_Select, "Divider", SelectBase["a" /* Divider */]);
|
|
|
464
457
|
|
|
465
458
|
|
|
466
459
|
|
|
460
|
+
/***/ }),
|
|
461
|
+
|
|
462
|
+
/***/ 17:
|
|
463
|
+
/***/ (function(module, exports) {
|
|
464
|
+
|
|
465
|
+
module.exports = require("@splunk/react-ui/Button");
|
|
466
|
+
|
|
467
467
|
/***/ }),
|
|
468
468
|
|
|
469
469
|
/***/ 19:
|
package/SidePanel.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 = 168);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 168:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -123,7 +123,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
123
123
|
var external_lodash_ = __webpack_require__(4);
|
|
124
124
|
|
|
125
125
|
// EXTERNAL MODULE: external "@splunk/react-ui/ModalLayer"
|
|
126
|
-
var ModalLayer_ = __webpack_require__(
|
|
126
|
+
var ModalLayer_ = __webpack_require__(76);
|
|
127
127
|
var ModalLayer_default = /*#__PURE__*/__webpack_require__.n(ModalLayer_);
|
|
128
128
|
|
|
129
129
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -372,7 +372,7 @@ module.exports = require("@splunk/react-ui/TransitionOpen");
|
|
|
372
372
|
|
|
373
373
|
/***/ }),
|
|
374
374
|
|
|
375
|
-
/***/
|
|
375
|
+
/***/ 76:
|
|
376
376
|
/***/ (function(module, exports) {
|
|
377
377
|
|
|
378
378
|
module.exports = require("@splunk/react-ui/ModalLayer");
|