@splunk/react-ui 4.9.0 → 4.12.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 +4 -4
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +24 -48
- package/ButtonGroup.js +6 -27
- package/ButtonSimple.js +4 -4
- package/CHANGELOG.md +63 -6
- package/Calendar.js +39 -39
- package/Card.js +54 -68
- package/CardLayout.js +14 -35
- package/Chip.js +19 -19
- package/Clickable.js +28 -13
- package/CloseButton.js +15 -15
- package/Code.js +8 -5
- package/CollapsiblePanel.js +6 -6
- package/Color.js +21 -21
- package/ColumnLayout.js +7 -7
- package/ComboBox.js +19 -14
- package/Concertina.js +13 -13
- package/ControlGroup.js +28 -18
- package/Date.js +10 -10
- package/DefinitionList.js +2 -2
- package/Dropdown.js +6 -6
- package/EventListener.js +4 -4
- package/File.js +31 -31
- package/FormRows.js +11 -11
- package/Heading.js +2 -2
- package/Image.js +21 -21
- package/JSONTree.js +40 -22
- package/Layer.js +72 -22
- package/Link.js +9 -9
- package/List.js +2 -2
- package/Markdown.js +26 -29
- package/Menu.js +53 -53
- package/Message.js +33 -33
- package/MessageBar.js +46 -39
- package/Modal.js +8 -8
- package/ModalLayer.js +16 -7
- package/Monogram.js +27 -15
- package/Multiselect.js +101 -97
- package/Number.js +6 -6
- package/Paginator.js +46 -49
- package/Paragraph.js +2 -2
- package/Popover.js +18 -13
- package/Progress.js +8 -8
- package/RadioBar.js +145 -41
- package/RadioList.js +2 -2
- package/Resize.js +4 -4
- package/ResultsMenu.js +62 -41
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +6 -6
- package/ScrollContainerContext.js +2 -2
- package/Search.js +19 -18
- package/Select.js +81 -79
- package/SidePanel.js +4 -4
- package/Slider.js +8 -8
- package/SlidingPanels.js +16 -7
- package/StaticContent.js +2 -2
- package/StepBar.js +8 -8
- package/Switch.js +8 -8
- package/TabBar.js +15 -15
- package/TabLayout.js +4 -4
- package/Table.js +119 -92
- package/Text.js +121 -241
- package/TextArea.js +1444 -0
- package/Tooltip.js +17 -6
- package/TransitionOpen.js +20 -10
- package/Typography.js +225 -0
- package/WaitSpinner.js +4 -4
- package/cypress.json +1 -0
- package/package.json +21 -8
- package/stubs-splunkui.d.ts +13 -0
- package/test-runner-jest.config.js +38 -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/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 +15 -5
- 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 +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/Monogram/Monogram.d.ts +2 -2
- package/types/src/Multiselect/Compact.d.ts +11 -4
- package/types/src/Multiselect/Multiselect.d.ts +14 -5
- package/types/src/Multiselect/Normal.d.ts +11 -4
- 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/ResultsMenu/ResultsMenu.d.ts +8 -2
- package/types/src/Search/Search.d.ts +4 -0
- package/types/src/Select/Select.d.ts +13 -4
- package/types/src/Select/SelectBase.d.ts +12 -4
- package/types/src/SidePanel/SidePanel.d.ts +2 -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/Table/HeadCell.d.ts +7 -3
- package/types/src/Table/Table.d.ts +2 -3
- package/types/src/Table/TableContext.d.ts +5 -0
- package/types/src/Text/Text.d.ts +22 -12
- package/types/src/TextArea/TextArea.d.ts +190 -0
- package/types/src/TextArea/docs/examples/Basic.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Error.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Inline.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/TextArea/index.d.ts +2 -0
- package/types/src/{Text → TextArea}/syncHeightWithShadow.d.ts +1 -2
- package/types/src/Tooltip/Tooltip.d.ts +8 -5
- package/types/src/TransitionOpen/TransitionOpen.d.ts +3 -0
- package/types/src/TransitionOpen/index.d.ts +1 -0
- package/types/src/Typography/Typography.d.ts +78 -0
- package/types/src/Typography/docs/examples/Basic.d.ts +2 -0
- package/types/src/Typography/docs/examples/Variants.d.ts +2 -0
- package/types/src/Typography/index.d.ts +2 -0
- package/types/src/Typography/test/Typography.unit.d.ts +1 -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/Image.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 = 157);
|
|
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
|
+
/***/ 157:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -130,28 +130,28 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
130
130
|
var external_lodash_ = __webpack_require__(4);
|
|
131
131
|
|
|
132
132
|
// EXTERNAL MODULE: external "@splunk/ui-utils/format"
|
|
133
|
-
var format_ = __webpack_require__(
|
|
133
|
+
var format_ = __webpack_require__(43);
|
|
134
134
|
|
|
135
135
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
136
136
|
var i18n_ = __webpack_require__(5);
|
|
137
137
|
|
|
138
138
|
// EXTERNAL MODULE: external "@splunk/react-ui/File"
|
|
139
|
-
var File_ = __webpack_require__(
|
|
139
|
+
var File_ = __webpack_require__(89);
|
|
140
140
|
var File_default = /*#__PURE__*/__webpack_require__.n(File_);
|
|
141
141
|
|
|
142
142
|
// EXTERNAL MODULE: ./src/icons/CrossMark.tsx
|
|
143
|
-
var CrossMark = __webpack_require__(
|
|
143
|
+
var CrossMark = __webpack_require__(19);
|
|
144
144
|
|
|
145
145
|
// EXTERNAL MODULE: external "styled-components"
|
|
146
146
|
var external_styled_components_ = __webpack_require__(3);
|
|
147
147
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
148
148
|
|
|
149
149
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
150
|
-
var Clickable_ = __webpack_require__(
|
|
150
|
+
var Clickable_ = __webpack_require__(12);
|
|
151
151
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
152
152
|
|
|
153
153
|
// EXTERNAL MODULE: external "@splunk/react-ui/Message"
|
|
154
|
-
var Message_ = __webpack_require__(
|
|
154
|
+
var Message_ = __webpack_require__(90);
|
|
155
155
|
var Message_default = /*#__PURE__*/__webpack_require__.n(Message_);
|
|
156
156
|
|
|
157
157
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -440,21 +440,14 @@ _defineProperty(Image_Image, "defaultProps", defaultProps);
|
|
|
440
440
|
|
|
441
441
|
/***/ }),
|
|
442
442
|
|
|
443
|
-
/***/
|
|
444
|
-
/***/ (function(module, exports) {
|
|
445
|
-
|
|
446
|
-
module.exports = require("react");
|
|
447
|
-
|
|
448
|
-
/***/ }),
|
|
449
|
-
|
|
450
|
-
/***/ 20:
|
|
443
|
+
/***/ 19:
|
|
451
444
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
452
445
|
|
|
453
446
|
"use strict";
|
|
454
447
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CrossMark; });
|
|
455
448
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
456
449
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
457
|
-
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
450
|
+
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
|
|
458
451
|
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__);
|
|
459
452
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
460
453
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -497,7 +490,14 @@ function CrossMark(props) {
|
|
|
497
490
|
|
|
498
491
|
/***/ }),
|
|
499
492
|
|
|
500
|
-
/***/
|
|
493
|
+
/***/ 2:
|
|
494
|
+
/***/ (function(module, exports) {
|
|
495
|
+
|
|
496
|
+
module.exports = require("react");
|
|
497
|
+
|
|
498
|
+
/***/ }),
|
|
499
|
+
|
|
500
|
+
/***/ 21:
|
|
501
501
|
/***/ (function(module, exports) {
|
|
502
502
|
|
|
503
503
|
module.exports = require("@splunk/react-icons/Close");
|
|
@@ -518,7 +518,7 @@ module.exports = require("lodash");
|
|
|
518
518
|
|
|
519
519
|
/***/ }),
|
|
520
520
|
|
|
521
|
-
/***/
|
|
521
|
+
/***/ 43:
|
|
522
522
|
/***/ (function(module, exports) {
|
|
523
523
|
|
|
524
524
|
module.exports = require("@splunk/ui-utils/format");
|
|
@@ -675,14 +675,14 @@ Icon.defaultProps = defaultProps;
|
|
|
675
675
|
|
|
676
676
|
/***/ }),
|
|
677
677
|
|
|
678
|
-
/***/
|
|
678
|
+
/***/ 89:
|
|
679
679
|
/***/ (function(module, exports) {
|
|
680
680
|
|
|
681
681
|
module.exports = require("@splunk/react-ui/File");
|
|
682
682
|
|
|
683
683
|
/***/ }),
|
|
684
684
|
|
|
685
|
-
/***/
|
|
685
|
+
/***/ 90:
|
|
686
686
|
/***/ (function(module, exports) {
|
|
687
687
|
|
|
688
688
|
module.exports = require("@splunk/react-ui/Message");
|
package/JSONTree.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 = 132);
|
|
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
|
+
/***/ 132:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -134,7 +134,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
134
134
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
135
135
|
|
|
136
136
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
137
|
-
var Clickable_ = __webpack_require__(
|
|
137
|
+
var Clickable_ = __webpack_require__(12);
|
|
138
138
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
139
139
|
|
|
140
140
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -269,9 +269,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
269
269
|
|
|
270
270
|
|
|
271
271
|
var propTypes = {
|
|
272
|
-
path: external_prop_types_default.a.arrayOf(external_prop_types_default.a.string),
|
|
272
|
+
path: external_prop_types_default.a.arrayOf(external_prop_types_default.a.oneOfType([external_prop_types_default.a.number, external_prop_types_default.a.string])),
|
|
273
273
|
defaultOpen: external_prop_types_default.a.bool,
|
|
274
|
-
expandChildren: external_prop_types_default.a.bool,
|
|
274
|
+
expandChildren: external_prop_types_default.a.oneOfType([external_prop_types_default.a.bool, external_prop_types_default.a.oneOf(['withShiftModifier'])]),
|
|
275
275
|
indent: external_prop_types_default.a.number,
|
|
276
276
|
indentLevel: external_prop_types_default.a.number,
|
|
277
277
|
obj: external_prop_types_default.a.oneOfType([external_prop_types_default.a.object, external_prop_types_default.a.array, external_prop_types_default.a.number, external_prop_types_default.a.string, external_prop_types_default.a.bool]).isRequired,
|
|
@@ -287,10 +287,11 @@ var defaultProps = {
|
|
|
287
287
|
indentLevel: 1,
|
|
288
288
|
overflow: 'scroll'
|
|
289
289
|
};
|
|
290
|
-
|
|
290
|
+
var shift;
|
|
291
291
|
/**
|
|
292
292
|
* An internal container class for expandable tree nodes (objects and arrays).
|
|
293
293
|
*/
|
|
294
|
+
|
|
294
295
|
var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
|
|
295
296
|
_inherits(JSONTreeNode, _Component);
|
|
296
297
|
|
|
@@ -307,7 +308,11 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
|
|
|
307
308
|
|
|
308
309
|
_defineProperty(_assertThisInitialized(_this), "closingIndent", void 0);
|
|
309
310
|
|
|
310
|
-
_defineProperty(_assertThisInitialized(_this), "handleExpandClick", function () {
|
|
311
|
+
_defineProperty(_assertThisInitialized(_this), "handleExpandClick", function (e) {
|
|
312
|
+
if (_this.props.expandChildren === 'withShiftModifier') {
|
|
313
|
+
shift = e.shiftKey;
|
|
314
|
+
}
|
|
315
|
+
|
|
311
316
|
_this.setState(function (state) {
|
|
312
317
|
return {
|
|
313
318
|
open: !state.open
|
|
@@ -343,9 +348,18 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
|
|
|
343
348
|
});
|
|
344
349
|
});
|
|
345
350
|
|
|
346
|
-
_this.
|
|
347
|
-
|
|
348
|
-
|
|
351
|
+
if (_this.props.expandChildren === 'withShiftModifier' && shift !== undefined) {
|
|
352
|
+
_this.state = shift ? {
|
|
353
|
+
open: true
|
|
354
|
+
} : {
|
|
355
|
+
open: false
|
|
356
|
+
};
|
|
357
|
+
} else {
|
|
358
|
+
_this.state = {
|
|
359
|
+
open: props.defaultOpen
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
|
|
349
363
|
_this.regularIndent = Object(external_lodash_["fill"])(Array(props.indentLevel), Object(external_lodash_["repeat"])("\xA0", props.indent));
|
|
350
364
|
_this.closingIndent = Object(external_lodash_["fill"])(Array(props.indentLevel - 1), Object(external_lodash_["repeat"])("\xA0", props.indent));
|
|
351
365
|
return _this;
|
|
@@ -354,8 +368,12 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
|
|
|
354
368
|
_createClass(JSONTreeNode, [{
|
|
355
369
|
key: "renderExpandLink",
|
|
356
370
|
value: function renderExpandLink() {
|
|
371
|
+
var _this2 = this;
|
|
372
|
+
|
|
357
373
|
return /*#__PURE__*/external_react_default.a.createElement(StyledExpandLinkClickable, {
|
|
358
|
-
onClick:
|
|
374
|
+
onClick: function onClick(e) {
|
|
375
|
+
_this2.handleExpandClick(e);
|
|
376
|
+
},
|
|
359
377
|
"aria-expanded": this.state.open,
|
|
360
378
|
"data-test": "toggle"
|
|
361
379
|
}, "\xA0", this.state.open ? '[-]' : '[+]', "\xA0");
|
|
@@ -363,7 +381,7 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
|
|
|
363
381
|
}, {
|
|
364
382
|
key: "renderValue",
|
|
365
383
|
value: function renderValue(_ref) {
|
|
366
|
-
var
|
|
384
|
+
var _this3 = this;
|
|
367
385
|
|
|
368
386
|
var value = _ref.value,
|
|
369
387
|
key = _ref.key;
|
|
@@ -388,7 +406,7 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
|
|
|
388
406
|
obj: value,
|
|
389
407
|
path: key !== undefined ? [].concat(_toConsumableArray(path), [key]) : _toConsumableArray(path) // Prevent undefined from being added to path for single value edge-case
|
|
390
408
|
,
|
|
391
|
-
defaultOpen: expandChildren,
|
|
409
|
+
defaultOpen: expandChildren === true,
|
|
392
410
|
expandChildren: expandChildren,
|
|
393
411
|
onClickKey: onClickKey,
|
|
394
412
|
onClickValue: onClickValue,
|
|
@@ -415,7 +433,7 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
|
|
|
415
433
|
valueType: valueType,
|
|
416
434
|
overflowType: overflow,
|
|
417
435
|
onClick: function onClick(e) {
|
|
418
|
-
|
|
436
|
+
_this3.handleClickValue(e, key);
|
|
419
437
|
}
|
|
420
438
|
}, representation);
|
|
421
439
|
}
|
|
@@ -431,14 +449,14 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
|
|
|
431
449
|
}, {
|
|
432
450
|
key: "renderKey",
|
|
433
451
|
value: function renderKey(key) {
|
|
434
|
-
var
|
|
452
|
+
var _this4 = this;
|
|
435
453
|
|
|
436
454
|
var onClickKey = this.props.onClickKey;
|
|
437
455
|
|
|
438
456
|
if (onClickKey) {
|
|
439
457
|
return /*#__PURE__*/external_react_default.a.createElement("span", null, /*#__PURE__*/external_react_default.a.createElement(StyledPropertyInteractiveClickable, {
|
|
440
458
|
onClick: function onClick(e) {
|
|
441
|
-
|
|
459
|
+
_this4.handleClickKey(e, key);
|
|
442
460
|
}
|
|
443
461
|
}, key), ":", ' ');
|
|
444
462
|
}
|
|
@@ -448,7 +466,7 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
|
|
|
448
466
|
}, {
|
|
449
467
|
key: "renderObject",
|
|
450
468
|
value: function renderObject() {
|
|
451
|
-
var
|
|
469
|
+
var _this5 = this;
|
|
452
470
|
|
|
453
471
|
var _this$props4 = this.props,
|
|
454
472
|
obj = _this$props4.obj,
|
|
@@ -461,17 +479,17 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
|
|
|
461
479
|
var key = Object(external_lodash_["isArray"])(obj) ? parseInt(mapKey, 10) : mapKey;
|
|
462
480
|
var propertyDataPath = path.length === 0 ? ".".concat(key) : ".".concat(path.join('.'), ".").concat(key);
|
|
463
481
|
|
|
464
|
-
var representation =
|
|
482
|
+
var representation = _this5.renderValue({
|
|
465
483
|
key: key,
|
|
466
484
|
value: value
|
|
467
485
|
});
|
|
468
486
|
|
|
469
|
-
var propertyElement = !Object(external_lodash_["isArray"])(obj) ?
|
|
487
|
+
var propertyElement = !Object(external_lodash_["isArray"])(obj) ? _this5.renderKey(key) : undefined;
|
|
470
488
|
return /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
471
489
|
key: propertyDataPath,
|
|
472
490
|
role: "treeitem",
|
|
473
491
|
"data-test-path": propertyDataPath
|
|
474
|
-
},
|
|
492
|
+
}, _this5.regularIndent, propertyElement, representation, index + 1 < properties.length ? ',' : null);
|
|
475
493
|
});
|
|
476
494
|
} // edge case: a single number/string/boolean being rendered (still valid JSON)
|
|
477
495
|
|
|
@@ -535,7 +553,7 @@ var JSONTree_propTypes = {
|
|
|
535
553
|
indent: external_prop_types_default.a.number,
|
|
536
554
|
onClickKey: external_prop_types_default.a.func,
|
|
537
555
|
onClickValue: external_prop_types_default.a.func,
|
|
538
|
-
expandChildren: external_prop_types_default.a.bool,
|
|
556
|
+
expandChildren: external_prop_types_default.a.oneOfType([external_prop_types_default.a.bool, external_prop_types_default.a.oneOf(['withShiftModifier'])]),
|
|
539
557
|
overflow: external_prop_types_default.a.oneOf(['wrap', 'scroll'])
|
|
540
558
|
};
|
|
541
559
|
|
package/Layer.js
CHANGED
|
@@ -82,11 +82,18 @@ 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 = 158);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
+
/***/ 0:
|
|
91
|
+
/***/ (function(module, exports) {
|
|
92
|
+
|
|
93
|
+
module.exports = require("@splunk/themes");
|
|
94
|
+
|
|
95
|
+
/***/ }),
|
|
96
|
+
|
|
90
97
|
/***/ 1:
|
|
91
98
|
/***/ (function(module, exports) {
|
|
92
99
|
|
|
@@ -94,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
94
101
|
|
|
95
102
|
/***/ }),
|
|
96
103
|
|
|
97
|
-
/***/
|
|
104
|
+
/***/ 109:
|
|
98
105
|
/***/ (function(module, exports) {
|
|
99
106
|
|
|
100
107
|
var g;
|
|
@@ -128,7 +135,7 @@ module.exports = require("@splunk/react-ui/EventListener");
|
|
|
128
135
|
|
|
129
136
|
/***/ }),
|
|
130
137
|
|
|
131
|
-
/***/
|
|
138
|
+
/***/ 158:
|
|
132
139
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
133
140
|
|
|
134
141
|
"use strict";
|
|
@@ -137,15 +144,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137
144
|
|
|
138
145
|
// EXPORTS
|
|
139
146
|
__webpack_require__.d(__webpack_exports__, "default", function() { return /* reexport */ src_Layer_Layer; });
|
|
140
|
-
__webpack_require__.d(__webpack_exports__, "LayerStackContext", function() { return /* reexport */ LayerStack["
|
|
141
|
-
__webpack_require__.d(__webpack_exports__, "
|
|
147
|
+
__webpack_require__.d(__webpack_exports__, "LayerStackContext", function() { return /* reexport */ LayerStack["b" /* LayerStackContext */]; });
|
|
148
|
+
__webpack_require__.d(__webpack_exports__, "LayerContext", function() { return /* reexport */ LayerStack["a" /* LayerContext */]; });
|
|
149
|
+
__webpack_require__.d(__webpack_exports__, "LayerStackGlobalProvider", function() { return /* reexport */ LayerStack["c" /* LayerStackGlobalProvider */]; });
|
|
142
150
|
|
|
143
151
|
// EXTERNAL MODULE: external "react"
|
|
144
152
|
var external_react_ = __webpack_require__(2);
|
|
145
153
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
146
154
|
|
|
147
155
|
// EXTERNAL MODULE: external "react-dom"
|
|
148
|
-
var external_react_dom_ = __webpack_require__(
|
|
156
|
+
var external_react_dom_ = __webpack_require__(68);
|
|
149
157
|
|
|
150
158
|
// EXTERNAL MODULE: external "prop-types"
|
|
151
159
|
var external_prop_types_ = __webpack_require__(1);
|
|
@@ -162,7 +170,25 @@ var EventListener_ = __webpack_require__(15);
|
|
|
162
170
|
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
163
171
|
|
|
164
172
|
// EXTERNAL MODULE: ./src/Layer/LayerStack.tsx
|
|
165
|
-
var LayerStack = __webpack_require__(
|
|
173
|
+
var LayerStack = __webpack_require__(69);
|
|
174
|
+
|
|
175
|
+
// EXTERNAL MODULE: external "styled-components"
|
|
176
|
+
var external_styled_components_ = __webpack_require__(3);
|
|
177
|
+
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
178
|
+
|
|
179
|
+
// EXTERNAL MODULE: external "@splunk/themes"
|
|
180
|
+
var themes_ = __webpack_require__(0);
|
|
181
|
+
|
|
182
|
+
// CONCATENATED MODULE: ./src/Layer/LayerStyles.ts
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
var StyledLayer = external_styled_components_default.a.div.withConfig({
|
|
186
|
+
displayName: "LayerStyles__StyledLayer",
|
|
187
|
+
componentId: "ii6psl-0"
|
|
188
|
+
})(["", ""], function (_ref) {
|
|
189
|
+
var $separateStackingContexts = _ref.$separateStackingContexts;
|
|
190
|
+
return $separateStackingContexts && Object(external_styled_components_["css"])(["isolation:isolate;z-index:", ";"], themes_["variables"].zindexLayer);
|
|
191
|
+
});
|
|
166
192
|
|
|
167
193
|
// CONCATENATED MODULE: ./src/Layer/Layer.tsx
|
|
168
194
|
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); }
|
|
@@ -196,6 +222,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
196
222
|
|
|
197
223
|
|
|
198
224
|
|
|
225
|
+
|
|
199
226
|
/** @public */
|
|
200
227
|
|
|
201
228
|
var possibleCloseReasons = ['clickAway', 'escapeKey'];
|
|
@@ -299,17 +326,24 @@ var Layer_Layer = /*#__PURE__*/function (_Component) {
|
|
|
299
326
|
}, {
|
|
300
327
|
key: "render",
|
|
301
328
|
value: function render() {
|
|
329
|
+
var _this2 = this;
|
|
330
|
+
|
|
302
331
|
var _this$props3 = this.props,
|
|
303
332
|
children = _this$props3.children,
|
|
304
333
|
open = _this$props3.open;
|
|
305
334
|
|
|
306
335
|
if (open) {
|
|
307
|
-
var layerPortal = /*#__PURE__*/Object(external_react_dom_["createPortal"])( /*#__PURE__*/external_react_default.a.createElement("
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
336
|
+
var layerPortal = /*#__PURE__*/Object(external_react_dom_["createPortal"])( /*#__PURE__*/external_react_default.a.createElement(LayerStack["a" /* LayerContext */].Consumer, null, function (_ref2) {
|
|
337
|
+
var _ref2$separateStackin = _ref2.separateStackingContexts,
|
|
338
|
+
separateStackingContexts = _ref2$separateStackin === void 0 ? false : _ref2$separateStackin;
|
|
339
|
+
return /*#__PURE__*/external_react_default.a.createElement(StyledLayer // eslint-disable-line jsx-a11y/no-static-element-interactions
|
|
340
|
+
, {
|
|
341
|
+
$separateStackingContexts: separateStackingContexts,
|
|
342
|
+
"data-test": "layer",
|
|
343
|
+
onMouseDown: _this2.handleClickOnLayer,
|
|
344
|
+
onTouchStart: _this2.handleClickOnLayer
|
|
345
|
+
}, children);
|
|
346
|
+
}), Layer.layerContainer // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
313
347
|
);
|
|
314
348
|
return /*#__PURE__*/external_react_default.a.createElement(external_react_default.a.Fragment, null, /*#__PURE__*/external_react_default.a.createElement(EventListener_default.a, {
|
|
315
349
|
target: window,
|
|
@@ -347,7 +381,7 @@ _defineProperty(Layer_Layer, "propTypes", propTypes);
|
|
|
347
381
|
|
|
348
382
|
_defineProperty(Layer_Layer, "defaultProps", defaultProps);
|
|
349
383
|
|
|
350
|
-
_defineProperty(Layer_Layer, "contextType", LayerStack["
|
|
384
|
+
_defineProperty(Layer_Layer, "contextType", LayerStack["b" /* LayerStackContext */]);
|
|
351
385
|
|
|
352
386
|
/* harmony default export */ var src_Layer_Layer = (Layer_Layer);
|
|
353
387
|
// CONCATENATED MODULE: ./src/Layer/index.ts
|
|
@@ -363,6 +397,13 @@ module.exports = require("react");
|
|
|
363
397
|
|
|
364
398
|
/***/ }),
|
|
365
399
|
|
|
400
|
+
/***/ 3:
|
|
401
|
+
/***/ (function(module, exports) {
|
|
402
|
+
|
|
403
|
+
module.exports = require("styled-components");
|
|
404
|
+
|
|
405
|
+
/***/ }),
|
|
406
|
+
|
|
366
407
|
/***/ 4:
|
|
367
408
|
/***/ (function(module, exports) {
|
|
368
409
|
|
|
@@ -370,19 +411,20 @@ module.exports = require("lodash");
|
|
|
370
411
|
|
|
371
412
|
/***/ }),
|
|
372
413
|
|
|
373
|
-
/***/
|
|
414
|
+
/***/ 68:
|
|
374
415
|
/***/ (function(module, exports) {
|
|
375
416
|
|
|
376
417
|
module.exports = require("react-dom");
|
|
377
418
|
|
|
378
419
|
/***/ }),
|
|
379
420
|
|
|
380
|
-
/***/
|
|
421
|
+
/***/ 69:
|
|
381
422
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
382
423
|
|
|
383
424
|
"use strict";
|
|
384
|
-
/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
385
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
425
|
+
/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return LayerStackContext; });
|
|
426
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LayerContext; });
|
|
427
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return LayerStackGlobalProvider; });
|
|
386
428
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
387
429
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
388
430
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
@@ -396,10 +438,12 @@ module.exports = require("react-dom");
|
|
|
396
438
|
* @public
|
|
397
439
|
*/
|
|
398
440
|
var LayerStackContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext([]);
|
|
441
|
+
var LayerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext({});
|
|
399
442
|
var propTypes = {
|
|
400
443
|
children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
|
|
401
444
|
name: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
|
|
402
|
-
scope: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
|
|
445
|
+
scope: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
|
|
446
|
+
separateStackingContexts: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
|
|
403
447
|
};
|
|
404
448
|
/* global global */
|
|
405
449
|
|
|
@@ -414,7 +458,9 @@ function LayerStackGlobalProvider(_ref) {
|
|
|
414
458
|
_ref$name = _ref.name,
|
|
415
459
|
name = _ref$name === void 0 ? '__splunkui_layer_instances__' : _ref$name,
|
|
416
460
|
_ref$scope = _ref.scope,
|
|
417
|
-
scope = _ref$scope === void 0 ? typeof window !== 'undefined' ? window : global : _ref$scope
|
|
461
|
+
scope = _ref$scope === void 0 ? typeof window !== 'undefined' ? window : global : _ref$scope,
|
|
462
|
+
_ref$separateStacking = _ref.separateStackingContexts,
|
|
463
|
+
separateStackingContexts = _ref$separateStacking === void 0 ? false : _ref$separateStacking;
|
|
418
464
|
|
|
419
465
|
if (!scope[name]) {
|
|
420
466
|
scope[name] = []; // eslint-disable-line no-param-reassign
|
|
@@ -422,12 +468,16 @@ function LayerStackGlobalProvider(_ref) {
|
|
|
422
468
|
|
|
423
469
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(LayerStackContext.Provider, {
|
|
424
470
|
value: scope[name]
|
|
425
|
-
},
|
|
471
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(LayerContext.Provider, {
|
|
472
|
+
value: {
|
|
473
|
+
separateStackingContexts: separateStackingContexts
|
|
474
|
+
}
|
|
475
|
+
}, children));
|
|
426
476
|
}
|
|
427
477
|
|
|
428
478
|
LayerStackGlobalProvider.propTypes = propTypes;
|
|
429
479
|
|
|
430
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
480
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(109)))
|
|
431
481
|
|
|
432
482
|
/***/ }),
|
|
433
483
|
|
package/Link.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 = 159);
|
|
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
|
+
/***/ 159:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -127,7 +127,7 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
127
127
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
128
128
|
|
|
129
129
|
// EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
|
|
130
|
-
var Dropdown_ = __webpack_require__(
|
|
130
|
+
var Dropdown_ = __webpack_require__(20);
|
|
131
131
|
|
|
132
132
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
133
133
|
var i18n_ = __webpack_require__(5);
|
|
@@ -141,7 +141,7 @@ var External_ = __webpack_require__(58);
|
|
|
141
141
|
var External_default = /*#__PURE__*/__webpack_require__.n(External_);
|
|
142
142
|
|
|
143
143
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
144
|
-
var Clickable_ = __webpack_require__(
|
|
144
|
+
var Clickable_ = __webpack_require__(12);
|
|
145
145
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
146
146
|
|
|
147
147
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -295,17 +295,17 @@ _defineProperty(Link_Link, Dropdown_["legacyRefMode"], true);
|
|
|
295
295
|
|
|
296
296
|
/***/ }),
|
|
297
297
|
|
|
298
|
-
/***/
|
|
298
|
+
/***/ 2:
|
|
299
299
|
/***/ (function(module, exports) {
|
|
300
300
|
|
|
301
|
-
module.exports = require("
|
|
301
|
+
module.exports = require("react");
|
|
302
302
|
|
|
303
303
|
/***/ }),
|
|
304
304
|
|
|
305
|
-
/***/
|
|
305
|
+
/***/ 20:
|
|
306
306
|
/***/ (function(module, exports) {
|
|
307
307
|
|
|
308
|
-
module.exports = require("react");
|
|
308
|
+
module.exports = require("@splunk/react-ui/Dropdown");
|
|
309
309
|
|
|
310
310
|
/***/ }),
|
|
311
311
|
|
package/List.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 = 139);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 139:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|