@splunk/react-ui 4.9.0 → 4.10.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 +2 -2
- package/CHANGELOG.md +14 -1
- package/Calendar.js +31 -31
- package/Card.js +19 -45
- package/CardLayout.js +14 -35
- package/Chip.js +2 -2
- package/Clickable.js +2 -2
- package/CloseButton.js +2 -2
- package/Code.js +8 -5
- package/CollapsiblePanel.js +2 -2
- package/Color.js +8 -8
- package/ColumnLayout.js +2 -2
- package/ComboBox.js +2 -2
- package/Concertina.js +4 -4
- package/ControlGroup.js +10 -10
- package/Date.js +4 -4
- package/DefinitionList.js +2 -2
- package/Dropdown.js +2 -2
- package/EventListener.js +4 -4
- package/FetchOptions.js +6 -6
- package/File.js +7 -7
- package/FormRows.js +11 -11
- package/Heading.js +2 -2
- package/Image.js +6 -6
- package/JSONTree.js +38 -20
- package/Layer.js +8 -8
- package/Link.js +2 -2
- package/List.js +2 -2
- package/Markdown.js +29 -32
- package/Menu.js +14 -14
- package/Message.js +16 -16
- package/MessageBar.js +14 -14
- package/Modal.js +6 -6
- package/ModalLayer.js +14 -5
- package/Monogram.js +2 -2
- package/Multiselect.js +10 -10
- package/Number.js +2 -2
- package/Paginator.js +40 -43
- package/Paragraph.js +2 -2
- package/Popover.js +12 -7
- package/Progress.js +2 -2
- package/RadioBar.js +141 -37
- package/RadioList.js +2 -2
- package/Resize.js +2 -2
- package/ResultsMenu.js +6 -6
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +2 -2
- package/ScrollContainerContext.js +2 -2
- package/Search.js +4 -4
- package/Select.js +9 -9
- package/SidePanel.js +4 -4
- package/Slider.js +4 -4
- package/SlidingPanels.js +14 -5
- package/StaticContent.js +2 -2
- package/StepBar.js +2 -2
- package/Switch.js +2 -2
- package/TabBar.js +2 -2
- package/TabLayout.js +4 -4
- package/Table.js +28 -30
- package/Text.js +4 -4
- package/Tooltip.js +2 -2
- package/TransitionOpen.js +14 -5
- package/WaitSpinner.js +2 -2
- package/package.json +3 -3
- 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/Card/Card.d.ts +0 -2
- package/types/src/CardLayout/CardLayoutContext.d.ts +0 -1
- package/types/src/Concertina/ConcertinaContext.d.ts +0 -1
- package/types/src/File/FileContext.d.ts +0 -1
- package/types/src/FormRows/FormRowsContext.d.ts +0 -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/Markdown/Markdown.d.ts +2 -3
- 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/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/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/TransitionOpen/TransitionOpen.d.ts +2 -0
- package/usePrevious.js +2 -2
package/Paragraph.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
|
+
/***/ 163:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
package/Popover.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 = 136);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -128,7 +128,7 @@ function updateReactRef(ref, current) {
|
|
|
128
128
|
|
|
129
129
|
/***/ }),
|
|
130
130
|
|
|
131
|
-
/***/
|
|
131
|
+
/***/ 136:
|
|
132
132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
133
133
|
|
|
134
134
|
"use strict";
|
|
@@ -148,7 +148,7 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
148
148
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
149
149
|
|
|
150
150
|
// EXTERNAL MODULE: external "react-dom"
|
|
151
|
-
var external_react_dom_ = __webpack_require__(
|
|
151
|
+
var external_react_dom_ = __webpack_require__(68);
|
|
152
152
|
|
|
153
153
|
// EXTERNAL MODULE: external "lodash"
|
|
154
154
|
var external_lodash_ = __webpack_require__(4);
|
|
@@ -730,6 +730,8 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
730
730
|
|
|
731
731
|
Popover_defineProperty(_assertThisInitialized(_this), "handleWindowScroll", void 0);
|
|
732
732
|
|
|
733
|
+
Popover_defineProperty(_assertThisInitialized(_this), "allowAnimationUpdates", true);
|
|
734
|
+
|
|
733
735
|
Popover_defineProperty(_assertThisInitialized(_this), "getElPosition", function (anchorEl) {
|
|
734
736
|
var rect = anchorEl.getBoundingClientRect();
|
|
735
737
|
var a = {
|
|
@@ -890,9 +892,11 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
890
892
|
});
|
|
891
893
|
|
|
892
894
|
Popover_defineProperty(_assertThisInitialized(_this), "handleAnimationEnd", function () {
|
|
893
|
-
_this.
|
|
894
|
-
|
|
895
|
-
|
|
895
|
+
if (_this.allowAnimationUpdates) {
|
|
896
|
+
_this.setState({
|
|
897
|
+
animating: false
|
|
898
|
+
});
|
|
899
|
+
}
|
|
896
900
|
});
|
|
897
901
|
|
|
898
902
|
Popover_defineProperty(_assertThisInitialized(_this), "renderLayer", function () {
|
|
@@ -1031,6 +1035,7 @@ var Popover_Popover = /*#__PURE__*/function (_Component) {
|
|
|
1031
1035
|
this.setPlacement.cancel(); // guaranteed by constructor
|
|
1032
1036
|
|
|
1033
1037
|
this.handleScroll.cancel();
|
|
1038
|
+
this.allowAnimationUpdates = false;
|
|
1034
1039
|
}
|
|
1035
1040
|
}, {
|
|
1036
1041
|
key: "autoCloseWhenOffScreen",
|
|
@@ -1195,7 +1200,7 @@ module.exports = require("@splunk/react-ui/Layer");
|
|
|
1195
1200
|
|
|
1196
1201
|
/***/ }),
|
|
1197
1202
|
|
|
1198
|
-
/***/
|
|
1203
|
+
/***/ 68:
|
|
1199
1204
|
/***/ (function(module, exports) {
|
|
1200
1205
|
|
|
1201
1206
|
module.exports = require("react-dom");
|
package/Progress.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,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 164:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
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 = 127);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,7 +108,7 @@ module.exports = require("@splunk/react-ui/Clickable");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 127:
|
|
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_);
|
|
@@ -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 = 128);
|
|
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
|
+
/***/ 128:
|
|
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 = 165);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -142,7 +142,7 @@ module.exports = require("@splunk/react-ui/EventListener");
|
|
|
142
142
|
|
|
143
143
|
/***/ }),
|
|
144
144
|
|
|
145
|
-
/***/
|
|
145
|
+
/***/ 165:
|
|
146
146
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
147
147
|
|
|
148
148
|
"use strict";
|
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 = 166);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,14 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 100:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/ui-utils/userAgent");
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 101:
|
|
112
112
|
/***/ (function(module, exports) {
|
|
113
113
|
|
|
114
114
|
module.exports = require("@splunk/react-ui/WaitSpinner");
|
|
@@ -149,7 +149,7 @@ module.exports = require("@splunk/react-ui/Menu");
|
|
|
149
149
|
|
|
150
150
|
/***/ }),
|
|
151
151
|
|
|
152
|
-
/***/
|
|
152
|
+
/***/ 166:
|
|
153
153
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
154
154
|
|
|
155
155
|
"use strict";
|
|
@@ -174,7 +174,7 @@ var external_lodash_ = __webpack_require__(4);
|
|
|
174
174
|
var i18n_ = __webpack_require__(5);
|
|
175
175
|
|
|
176
176
|
// EXTERNAL MODULE: external "@splunk/ui-utils/userAgent"
|
|
177
|
-
var userAgent_ = __webpack_require__(
|
|
177
|
+
var userAgent_ = __webpack_require__(100);
|
|
178
178
|
|
|
179
179
|
// EXTERNAL MODULE: external "@splunk/react-ui/Menu"
|
|
180
180
|
var Menu_ = __webpack_require__(13);
|
|
@@ -185,7 +185,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
185
185
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
186
186
|
|
|
187
187
|
// EXTERNAL MODULE: external "@splunk/react-ui/WaitSpinner"
|
|
188
|
-
var WaitSpinner_ = __webpack_require__(
|
|
188
|
+
var WaitSpinner_ = __webpack_require__(101);
|
|
189
189
|
var WaitSpinner_default = /*#__PURE__*/__webpack_require__.n(WaitSpinner_);
|
|
190
190
|
|
|
191
191
|
// EXTERNAL MODULE: external "@splunk/themes"
|
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 = 167);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 167:
|
|
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 = 143);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -128,7 +128,7 @@ function updateReactRef(ref, current) {
|
|
|
128
128
|
|
|
129
129
|
/***/ }),
|
|
130
130
|
|
|
131
|
-
/***/
|
|
131
|
+
/***/ 143:
|
|
132
132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
133
133
|
|
|
134
134
|
"use strict";
|
|
@@ -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 = 180);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 180:
|
|
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 = 168);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("@splunk/ui-utils/id");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 102:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/react-ui/usePrevious");
|
|
@@ -149,7 +149,7 @@ module.exports = require("@splunk/react-ui/Popover");
|
|
|
149
149
|
|
|
150
150
|
/***/ }),
|
|
151
151
|
|
|
152
|
-
/***/
|
|
152
|
+
/***/ 168:
|
|
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__(102);
|
|
190
190
|
var usePrevious_default = /*#__PURE__*/__webpack_require__.n(usePrevious_);
|
|
191
191
|
|
|
192
192
|
// EXTERNAL MODULE: external "@splunk/react-ui/Popover"
|
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 = 169);
|
|
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
|
+
/***/ 169:
|
|
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 = 170);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 170:
|
|
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");
|