@splunk/react-ui 4.3.0 → 4.5.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 +37 -21
- package/Anchor.js +2 -2
- package/Animation.js +2 -2
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +36 -12
- package/ButtonGroup.js +27 -6
- package/ButtonSimple.js +6 -6
- package/CHANGELOG.md +57 -0
- package/Calendar.js +14 -14
- package/Card.js +51 -25
- package/CardLayout.js +31 -10
- package/Chip.js +77 -53
- package/Clickable.js +6 -6
- package/CloseButton.js +6 -6
- package/Code.js +1279 -1120
- package/CollapsiblePanel.js +6 -6
- package/Color.js +180 -209
- package/ColumnLayout.js +4 -4
- package/ComboBox.js +22 -17
- package/Concertina.js +56 -51
- package/ControlGroup.js +121 -32
- package/Date.js +62 -25
- package/DefinitionList.js +2 -2
- package/Dropdown.js +12 -12
- package/EventListener.js +168 -0
- package/FetchOptions.js +8 -8
- package/File.js +122 -96
- package/FormRows.js +66 -58
- package/Heading.js +2 -2
- package/Image.js +14 -14
- package/JSONTree.js +5 -5
- package/Layer.js +32 -20
- package/Link.js +8 -8
- package/List.js +2 -2
- package/Markdown.js +250 -88
- package/Menu.js +70 -64
- package/Message.js +18 -18
- package/Modal.js +70 -16
- package/ModalLayer.js +4 -4
- package/Monogram.js +12 -11
- package/Multiselect.js +124 -80
- package/Number.js +44 -34
- package/Paginator.js +10 -10
- package/Paragraph.js +2 -2
- package/Popover.js +54 -40
- package/Progress.js +8 -8
- package/RadioBar.js +45 -38
- package/RadioList.js +2 -2
- package/Resize.js +19 -15
- package/ResultsMenu.js +6 -6
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +25 -23
- package/ScrollContainerContext.js +5 -5
- package/Search.d.ts +2 -0
- package/Search.js +797 -0
- package/Select.js +85 -45
- package/SidePanel.js +6 -6
- package/Slider.js +34 -30
- package/SlidingPanels.js +6 -6
- package/StaticContent.js +2 -2
- package/StepBar.js +56 -52
- package/Switch.js +8 -8
- package/TabBar.js +126 -85
- package/TabLayout.js +4 -5
- package/Table.js +266 -155
- package/Text.js +486 -401
- package/Tooltip.js +11 -11
- package/TransitionOpen.js +11 -11
- package/WaitSpinner.js +3 -4
- package/package.json +5 -6
- package/types/src/Accordion/AccordionContext.d.ts +10 -0
- package/types/src/Accordion/Panel.d.ts +0 -9
- package/types/src/Button/Button.d.ts +4 -2
- package/types/src/ButtonGroup/ButtonGroupContext.d.ts +7 -0
- package/types/src/ButtonSimple/ButtonSimple.d.ts +5 -5
- package/types/src/Card/Card.d.ts +2 -0
- package/types/src/CardLayout/CardLayoutContext.d.ts +8 -0
- package/types/src/Color/Color.d.ts +2 -2
- package/types/src/Color/Swatch.d.ts +4 -15
- package/types/src/ComboBox/ComboBox.d.ts +4 -3
- package/types/src/Concertina/ConcertinaContext.d.ts +8 -0
- package/types/src/Concertina/Panel.d.ts +2 -4
- package/types/src/ControlGroup/ControlGroup.d.ts +11 -1
- package/types/src/ControlGroup/ControlGroupContext.d.ts +15 -0
- package/types/src/Date/Date.d.ts +6 -4
- package/types/src/EventListener/EventListener.d.ts +18 -0
- package/types/src/EventListener/index.d.ts +2 -0
- package/types/src/File/File.d.ts +6 -4
- package/types/src/File/FileContext.d.ts +9 -0
- package/types/src/File/Item.d.ts +5 -10
- package/types/src/FormRows/FormRows.d.ts +2 -2
- package/types/src/FormRows/FormRowsContext.d.ts +10 -0
- package/types/src/FormRows/Row.d.ts +5 -16
- package/types/src/Markdown/Markdown.d.ts +2 -0
- package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +14 -0
- package/types/src/Markdown/renderers/MarkdownCode.d.ts +15 -0
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +16 -0
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +15 -0
- package/types/src/Markdown/renderers/MarkdownImage.d.ts +18 -0
- package/types/src/Markdown/renderers/MarkdownItem.d.ts +14 -0
- package/types/src/Markdown/renderers/MarkdownLink.d.ts +18 -0
- package/types/src/Markdown/renderers/MarkdownList.d.ts +26 -0
- package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +14 -0
- package/types/src/Markdown/renderers/index.d.ts +10 -0
- package/types/src/Modal/Modal.d.ts +15 -3
- package/types/src/Monogram/Monogram.d.ts +5 -1
- package/types/src/Multiselect/Compact.d.ts +12 -4
- package/types/src/Multiselect/Multiselect.d.ts +14 -4
- package/types/src/Multiselect/Normal.d.ts +7 -2
- package/types/src/Number/Number.d.ts +11 -7
- package/types/src/Popover/Popover.d.ts +2 -2
- package/types/src/RadioBar/Option.d.ts +1 -15
- package/types/src/RadioBar/RadioBar.d.ts +2 -2
- package/types/src/RadioBar/RadioBarContext.d.ts +9 -0
- package/types/src/Scroll/Inner.d.ts +2 -2
- package/types/src/ScrollContainerContext/ScrollContainerContext.d.ts +4 -4
- package/types/src/Search/Option.d.ts +60 -0
- package/types/src/Search/Search.d.ts +97 -0
- package/types/src/Search/index.d.ts +2 -0
- package/types/src/Select/Select.d.ts +6 -2
- package/types/src/Select/SelectBase.d.ts +12 -5
- package/types/src/Slider/Slider.d.ts +2 -2
- package/types/src/StepBar/Step.d.ts +1 -13
- package/types/src/StepBar/StepBarContext.d.ts +8 -0
- package/types/src/TabBar/Tab.d.ts +5 -13
- package/types/src/TabBar/TabBarContext.d.ts +14 -0
- package/types/src/Table/Body.d.ts +1 -1
- package/types/src/Table/Head.d.ts +3 -1
- package/types/src/Table/HeadCell.d.ts +1 -1
- package/types/src/Table/HeadInner.d.ts +3 -3
- package/types/src/Table/Row.d.ts +10 -3
- package/types/src/Table/Table.d.ts +10 -5
- package/types/src/Text/Text.d.ts +33 -12
- package/types/src/icons/Sort.d.ts +3 -0
- package/types/src/usePrevious/index.d.ts +2 -0
- package/types/src/usePrevious/usePrevious.d.ts +12 -0
- package/usePrevious.js +137 -0
package/FormRows.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 = 121);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 121:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -127,7 +127,7 @@ var i18n_ = __webpack_require__(5);
|
|
|
127
127
|
var keyboard_ = __webpack_require__(9);
|
|
128
128
|
|
|
129
129
|
// EXTERNAL MODULE: external "@splunk/react-icons/Plus"
|
|
130
|
-
var Plus_ = __webpack_require__(
|
|
130
|
+
var Plus_ = __webpack_require__(82);
|
|
131
131
|
var Plus_default = /*#__PURE__*/__webpack_require__.n(Plus_);
|
|
132
132
|
|
|
133
133
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -174,17 +174,17 @@ function Plus(props) {
|
|
|
174
174
|
}, props));
|
|
175
175
|
}
|
|
176
176
|
// EXTERNAL MODULE: external "react-sortable-hoc"
|
|
177
|
-
var external_react_sortable_hoc_ = __webpack_require__(
|
|
177
|
+
var external_react_sortable_hoc_ = __webpack_require__(69);
|
|
178
178
|
|
|
179
179
|
// EXTERNAL MODULE: external "lodash"
|
|
180
180
|
var external_lodash_ = __webpack_require__(4);
|
|
181
181
|
|
|
182
182
|
// EXTERNAL MODULE: external "@splunk/react-ui/CloseButton"
|
|
183
|
-
var CloseButton_ = __webpack_require__(
|
|
183
|
+
var CloseButton_ = __webpack_require__(62);
|
|
184
184
|
var CloseButton_default = /*#__PURE__*/__webpack_require__.n(CloseButton_);
|
|
185
185
|
|
|
186
186
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
187
|
-
var ScreenReaderContent_ = __webpack_require__(
|
|
187
|
+
var ScreenReaderContent_ = __webpack_require__(15);
|
|
188
188
|
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
189
189
|
|
|
190
190
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -196,7 +196,7 @@ var Box_ = __webpack_require__(8);
|
|
|
196
196
|
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
|
|
197
197
|
|
|
198
198
|
// EXTERNAL MODULE: external "@splunk/react-ui/Button"
|
|
199
|
-
var Button_ = __webpack_require__(
|
|
199
|
+
var Button_ = __webpack_require__(17);
|
|
200
200
|
var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
|
|
201
201
|
|
|
202
202
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -286,6 +286,14 @@ var StyledDrag = external_styled_components_default.a.div.withConfig({
|
|
|
286
286
|
prisma: Object(external_styled_components_["css"])(["height:20px;"])
|
|
287
287
|
}));
|
|
288
288
|
|
|
289
|
+
// CONCATENATED MODULE: ./src/FormRows/FormRowsContext.tsx
|
|
290
|
+
|
|
291
|
+
var FormRowsContext = /*#__PURE__*/Object(external_react_["createContext"])({
|
|
292
|
+
disabledDeleteButton: false,
|
|
293
|
+
sortable: true
|
|
294
|
+
});
|
|
295
|
+
FormRowsContext.displayName = 'FormRows';
|
|
296
|
+
/* harmony default export */ var FormRows_FormRowsContext = (FormRowsContext);
|
|
289
297
|
// CONCATENATED MODULE: ./src/FormRows/Row.tsx
|
|
290
298
|
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); }
|
|
291
299
|
|
|
@@ -325,29 +333,17 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
325
333
|
|
|
326
334
|
|
|
327
335
|
|
|
336
|
+
|
|
328
337
|
var propTypes = {
|
|
329
338
|
children: external_prop_types_default.a.node,
|
|
330
|
-
|
|
331
|
-
/** @private */
|
|
332
|
-
disabledDeleteButton: external_prop_types_default.a.bool,
|
|
333
339
|
elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
|
|
334
340
|
index: external_prop_types_default.a.number,
|
|
335
|
-
|
|
336
|
-
/** @private */
|
|
337
|
-
onKeyDown: external_prop_types_default.a.func,
|
|
338
341
|
onRequestRemove: external_prop_types_default.a.func,
|
|
339
342
|
|
|
340
343
|
/** @private */
|
|
341
344
|
rowIndex: external_prop_types_default.a.number,
|
|
342
|
-
|
|
343
|
-
/** @private */
|
|
344
|
-
sortable: external_prop_types_default.a.bool,
|
|
345
345
|
value: external_prop_types_default.a.node
|
|
346
346
|
};
|
|
347
|
-
var defaultProps = {
|
|
348
|
-
disabledDeleteButton: false,
|
|
349
|
-
sortable: true
|
|
350
|
-
};
|
|
351
347
|
|
|
352
348
|
var Row_Row = /*#__PURE__*/function (_Component) {
|
|
353
349
|
_inherits(Row, _Component);
|
|
@@ -366,17 +362,17 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
366
362
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
367
363
|
|
|
368
364
|
_defineProperty(_assertThisInitialized(_this), "handleKeyDown", function (e) {
|
|
369
|
-
var _this$
|
|
365
|
+
var _this$context$onKeyDo, _this$context, _this$props$rowIndex;
|
|
370
366
|
|
|
371
|
-
(_this$
|
|
367
|
+
(_this$context$onKeyDo = (_this$context = _this.context).onKeyDown) === null || _this$context$onKeyDo === void 0 ? void 0 : _this$context$onKeyDo.call(_this$context, e, {
|
|
372
368
|
index: (_this$props$rowIndex = _this.props.rowIndex) !== null && _this$props$rowIndex !== void 0 ? _this$props$rowIndex : 0
|
|
373
369
|
});
|
|
374
370
|
});
|
|
375
371
|
|
|
376
372
|
_defineProperty(_assertThisInitialized(_this), "handleRequestRemove", function (e) {
|
|
377
|
-
var _this$props$onRequest, _this$
|
|
373
|
+
var _this$props$onRequest, _this$props, _this$props$rowIndex2;
|
|
378
374
|
|
|
379
|
-
(_this$props$onRequest = (_this$
|
|
375
|
+
(_this$props$onRequest = (_this$props = _this.props).onRequestRemove) === null || _this$props$onRequest === void 0 ? void 0 : _this$props$onRequest.call(_this$props, e, {
|
|
380
376
|
index: (_this$props$rowIndex2 = _this.props.rowIndex) !== null && _this$props$rowIndex2 !== void 0 ? _this$props$rowIndex2 : 0
|
|
381
377
|
});
|
|
382
378
|
});
|
|
@@ -387,12 +383,18 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
387
383
|
_createClass(Row, [{
|
|
388
384
|
key: "render",
|
|
389
385
|
value: function render() {
|
|
390
|
-
var _this$
|
|
391
|
-
children = _this$
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
386
|
+
var _this$props2 = this.props,
|
|
387
|
+
children = _this$props2.children,
|
|
388
|
+
elementRef = _this$props2.elementRef,
|
|
389
|
+
otherProps = _objectWithoutProperties(_this$props2, ["children", "elementRef"]);
|
|
390
|
+
|
|
391
|
+
var _this$context2 = this.context,
|
|
392
|
+
disabledDeleteButtonContext = _this$context2.disabledDeleteButton,
|
|
393
|
+
hasOnRequestAddContext = _this$context2.hasOnRequestAdd,
|
|
394
|
+
sortableContext = _this$context2.sortable;
|
|
395
|
+
var onRequestRemoveExists = this.props.onRequestRemove !== undefined;
|
|
396
|
+
|
|
397
|
+
if (false) {}
|
|
396
398
|
|
|
397
399
|
var DragHandle = Object(external_react_sortable_hoc_["SortableHandle"])(function () {
|
|
398
400
|
return /*#__PURE__*/external_react_default.a.createElement(StyledDrag, {
|
|
@@ -401,14 +403,14 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
401
403
|
});
|
|
402
404
|
return /*#__PURE__*/external_react_default.a.createElement(Styled // eslint-disable-line jsx-a11y/no-static-element-interactions
|
|
403
405
|
, Row_extends({
|
|
404
|
-
$sortable:
|
|
406
|
+
$sortable: sortableContext,
|
|
405
407
|
"data-test": "row",
|
|
406
408
|
ref: elementRef,
|
|
407
409
|
onKeyDown: this.handleKeyDown // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
408
410
|
,
|
|
409
|
-
tabIndex:
|
|
410
|
-
}, Object(external_lodash_["omit"])(otherProps, ['onKeyDown', 'onRequestRemove', 'rowIndex'])),
|
|
411
|
-
disabled:
|
|
411
|
+
tabIndex: sortableContext ? 0 : undefined
|
|
412
|
+
}, Object(external_lodash_["omit"])(otherProps, ['onKeyDown', 'onRequestRemove', 'rowIndex'])), sortableContext && /*#__PURE__*/external_react_default.a.createElement(DragHandle, null), children, onRequestRemoveExists && /*#__PURE__*/external_react_default.a.createElement(StyledButton, null, /*#__PURE__*/external_react_default.a.createElement(CloseButton_default.a, {
|
|
413
|
+
disabled: disabledDeleteButtonContext,
|
|
412
414
|
"data-test": "remove",
|
|
413
415
|
onClick: this.handleRequestRemove,
|
|
414
416
|
screenReaderText: Object(i18n_["_"])('Remove Row')
|
|
@@ -421,7 +423,7 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
421
423
|
|
|
422
424
|
_defineProperty(Row_Row, "propTypes", propTypes);
|
|
423
425
|
|
|
424
|
-
_defineProperty(Row_Row, "
|
|
426
|
+
_defineProperty(Row_Row, "contextType", FormRows_FormRowsContext);
|
|
425
427
|
|
|
426
428
|
var SortableRow = Object(external_react_sortable_hoc_["SortableElement"])(Row_Row);
|
|
427
429
|
SortableRow.propTypes = propTypes;
|
|
@@ -474,6 +476,9 @@ function FormRows_defineProperty(obj, key, value) { if (key in obj) { Object.def
|
|
|
474
476
|
|
|
475
477
|
|
|
476
478
|
|
|
479
|
+
|
|
480
|
+
/** @public */
|
|
481
|
+
|
|
477
482
|
var FormRows_propTypes = {
|
|
478
483
|
addLabel: external_prop_types_default.a.string,
|
|
479
484
|
children: external_prop_types_default.a.node,
|
|
@@ -484,7 +489,7 @@ var FormRows_propTypes = {
|
|
|
484
489
|
onRequestAdd: external_prop_types_default.a.func,
|
|
485
490
|
onRequestMove: external_prop_types_default.a.func
|
|
486
491
|
};
|
|
487
|
-
var
|
|
492
|
+
var defaultProps = {
|
|
488
493
|
addLabel: Object(i18n_["_"])('Add Row'),
|
|
489
494
|
disabled: false,
|
|
490
495
|
header: null
|
|
@@ -555,8 +560,6 @@ var FormRows_FormRows = /*#__PURE__*/function (_Component) {
|
|
|
555
560
|
FormRows_createClass(FormRows, [{
|
|
556
561
|
key: "render",
|
|
557
562
|
value: function render() {
|
|
558
|
-
var _this2 = this;
|
|
559
|
-
|
|
560
563
|
var _this$props4 = this.props,
|
|
561
564
|
addLabel = _this$props4.addLabel,
|
|
562
565
|
children = _this$props4.children,
|
|
@@ -569,12 +572,10 @@ var FormRows_FormRows = /*#__PURE__*/function (_Component) {
|
|
|
569
572
|
|
|
570
573
|
var sortable = onRequestMove !== undefined && !disabled;
|
|
571
574
|
var StyledHeaderComp = sortable ? StyledHeader : 'div';
|
|
575
|
+
var hasOnRequestAdd = onRequestAdd !== undefined;
|
|
572
576
|
var clonedChildren = external_react_["Children"].toArray(children).filter(external_react_["isValidElement"]).map(function (item) {
|
|
573
577
|
return /*#__PURE__*/Object(external_react_["cloneElement"])(item, {
|
|
574
|
-
|
|
575
|
-
rowIndex: item.props.index,
|
|
576
|
-
disabledDeleteButton: disabled,
|
|
577
|
-
sortable: sortable
|
|
578
|
+
rowIndex: item.props.index
|
|
578
579
|
});
|
|
579
580
|
});
|
|
580
581
|
return /*#__PURE__*/external_react_default.a.createElement(StyledBox, FormRows_extends({
|
|
@@ -583,7 +584,14 @@ var FormRows_FormRows = /*#__PURE__*/function (_Component) {
|
|
|
583
584
|
helperClass: "sorting",
|
|
584
585
|
onSortEnd: this.handleSortEnd,
|
|
585
586
|
useDragHandle: true
|
|
586
|
-
},
|
|
587
|
+
}, /*#__PURE__*/external_react_default.a.createElement(FormRows_FormRowsContext.Provider, {
|
|
588
|
+
value: {
|
|
589
|
+
disabledDeleteButton: disabled,
|
|
590
|
+
onKeyDown: this.handleKeyDown,
|
|
591
|
+
hasOnRequestAdd: hasOnRequestAdd,
|
|
592
|
+
sortable: sortable
|
|
593
|
+
}
|
|
594
|
+
}, clonedChildren)), menu || hasOnRequestAdd && /*#__PURE__*/external_react_default.a.createElement(StyledAddRowButton, {
|
|
587
595
|
disabled: disabled,
|
|
588
596
|
appearance: "pill",
|
|
589
597
|
"data-test": "add-row",
|
|
@@ -687,7 +695,7 @@ var FormRows_FormRows = /*#__PURE__*/function (_Component) {
|
|
|
687
695
|
|
|
688
696
|
FormRows_defineProperty(FormRows_FormRows, "propTypes", FormRows_propTypes);
|
|
689
697
|
|
|
690
|
-
FormRows_defineProperty(FormRows_FormRows, "defaultProps",
|
|
698
|
+
FormRows_defineProperty(FormRows_FormRows, "defaultProps", defaultProps);
|
|
691
699
|
|
|
692
700
|
FormRows_defineProperty(FormRows_FormRows, "Row", FormRows_Row);
|
|
693
701
|
|
|
@@ -699,14 +707,14 @@ FormRows_defineProperty(FormRows_FormRows, "Row", FormRows_Row);
|
|
|
699
707
|
|
|
700
708
|
/***/ }),
|
|
701
709
|
|
|
702
|
-
/***/
|
|
710
|
+
/***/ 15:
|
|
703
711
|
/***/ (function(module, exports) {
|
|
704
712
|
|
|
705
713
|
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
706
714
|
|
|
707
715
|
/***/ }),
|
|
708
716
|
|
|
709
|
-
/***/
|
|
717
|
+
/***/ 17:
|
|
710
718
|
/***/ (function(module, exports) {
|
|
711
719
|
|
|
712
720
|
module.exports = require("@splunk/react-ui/Button");
|
|
@@ -741,13 +749,6 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
741
749
|
|
|
742
750
|
/***/ }),
|
|
743
751
|
|
|
744
|
-
/***/ 59:
|
|
745
|
-
/***/ (function(module, exports) {
|
|
746
|
-
|
|
747
|
-
module.exports = require("@splunk/react-ui/CloseButton");
|
|
748
|
-
|
|
749
|
-
/***/ }),
|
|
750
|
-
|
|
751
752
|
/***/ 6:
|
|
752
753
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
753
754
|
|
|
@@ -773,7 +774,14 @@ function SVG(props) {
|
|
|
773
774
|
|
|
774
775
|
/***/ }),
|
|
775
776
|
|
|
776
|
-
/***/
|
|
777
|
+
/***/ 62:
|
|
778
|
+
/***/ (function(module, exports) {
|
|
779
|
+
|
|
780
|
+
module.exports = require("@splunk/react-ui/CloseButton");
|
|
781
|
+
|
|
782
|
+
/***/ }),
|
|
783
|
+
|
|
784
|
+
/***/ 69:
|
|
777
785
|
/***/ (function(module, exports) {
|
|
778
786
|
|
|
779
787
|
module.exports = require("react-sortable-hoc");
|
|
@@ -898,17 +906,17 @@ Icon.defaultProps = defaultProps;
|
|
|
898
906
|
|
|
899
907
|
/***/ }),
|
|
900
908
|
|
|
901
|
-
/***/
|
|
909
|
+
/***/ 8:
|
|
902
910
|
/***/ (function(module, exports) {
|
|
903
911
|
|
|
904
|
-
module.exports = require("@splunk/react-
|
|
912
|
+
module.exports = require("@splunk/react-ui/Box");
|
|
905
913
|
|
|
906
914
|
/***/ }),
|
|
907
915
|
|
|
908
|
-
/***/
|
|
916
|
+
/***/ 82:
|
|
909
917
|
/***/ (function(module, exports) {
|
|
910
918
|
|
|
911
|
-
module.exports = require("@splunk/react-
|
|
919
|
+
module.exports = require("@splunk/react-icons/Plus");
|
|
912
920
|
|
|
913
921
|
/***/ }),
|
|
914
922
|
|
package/Heading.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 = 153);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 153:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
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 = 154);
|
|
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
|
+
/***/ 154:
|
|
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__(40);
|
|
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__(83);
|
|
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__(22);
|
|
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__(84);
|
|
155
155
|
var Message_default = /*#__PURE__*/__webpack_require__.n(Message_);
|
|
156
156
|
|
|
157
157
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -447,14 +447,14 @@ module.exports = require("react");
|
|
|
447
447
|
|
|
448
448
|
/***/ }),
|
|
449
449
|
|
|
450
|
-
/***/
|
|
450
|
+
/***/ 22:
|
|
451
451
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
452
452
|
|
|
453
453
|
"use strict";
|
|
454
454
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CrossMark; });
|
|
455
455
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
456
456
|
/* 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__(
|
|
457
|
+
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26);
|
|
458
458
|
/* 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
459
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
460
460
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -497,7 +497,7 @@ function CrossMark(props) {
|
|
|
497
497
|
|
|
498
498
|
/***/ }),
|
|
499
499
|
|
|
500
|
-
/***/
|
|
500
|
+
/***/ 26:
|
|
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
|
+
/***/ 40:
|
|
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
|
+
/***/ 83:
|
|
679
679
|
/***/ (function(module, exports) {
|
|
680
680
|
|
|
681
681
|
module.exports = require("@splunk/react-ui/File");
|
|
682
682
|
|
|
683
683
|
/***/ }),
|
|
684
684
|
|
|
685
|
-
/***/
|
|
685
|
+
/***/ 84:
|
|
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 = 131);
|
|
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
|
+
/***/ 131:
|
|
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"
|
|
@@ -440,7 +440,7 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
|
|
|
440
440
|
onClick: function onClick(e) {
|
|
441
441
|
_this3.handleClickKey(e, key);
|
|
442
442
|
}
|
|
443
|
-
}, key));
|
|
443
|
+
}, key), ":", ' ');
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
return /*#__PURE__*/external_react_default.a.createElement("span", null, /*#__PURE__*/external_react_default.a.createElement(StyledProperty, null, key), ":", ' ');
|
package/Layer.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 = 174);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -94,7 +94,7 @@ module.exports = require("prop-types");
|
|
|
94
94
|
|
|
95
95
|
/***/ }),
|
|
96
96
|
|
|
97
|
-
/***/
|
|
97
|
+
/***/ 107:
|
|
98
98
|
/***/ (function(module, exports) {
|
|
99
99
|
|
|
100
100
|
var g;
|
|
@@ -121,14 +121,14 @@ module.exports = g;
|
|
|
121
121
|
|
|
122
122
|
/***/ }),
|
|
123
123
|
|
|
124
|
-
/***/
|
|
124
|
+
/***/ 14:
|
|
125
125
|
/***/ (function(module, exports) {
|
|
126
126
|
|
|
127
|
-
module.exports = require("react-
|
|
127
|
+
module.exports = require("@splunk/react-ui/EventListener");
|
|
128
128
|
|
|
129
129
|
/***/ }),
|
|
130
130
|
|
|
131
|
-
/***/
|
|
131
|
+
/***/ 174:
|
|
132
132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
133
133
|
|
|
134
134
|
"use strict";
|
|
@@ -145,24 +145,24 @@ var external_react_ = __webpack_require__(2);
|
|
|
145
145
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
146
146
|
|
|
147
147
|
// EXTERNAL MODULE: external "react-dom"
|
|
148
|
-
var external_react_dom_ = __webpack_require__(
|
|
148
|
+
var external_react_dom_ = __webpack_require__(63);
|
|
149
149
|
|
|
150
150
|
// EXTERNAL MODULE: external "prop-types"
|
|
151
151
|
var external_prop_types_ = __webpack_require__(1);
|
|
152
152
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
153
153
|
|
|
154
|
-
// EXTERNAL MODULE: external "react-event-listener"
|
|
155
|
-
var external_react_event_listener_ = __webpack_require__(15);
|
|
156
|
-
var external_react_event_listener_default = /*#__PURE__*/__webpack_require__.n(external_react_event_listener_);
|
|
157
|
-
|
|
158
154
|
// EXTERNAL MODULE: external "lodash"
|
|
159
155
|
var external_lodash_ = __webpack_require__(4);
|
|
160
156
|
|
|
161
157
|
// EXTERNAL MODULE: external "@splunk/ui-utils/keyboard"
|
|
162
158
|
var keyboard_ = __webpack_require__(9);
|
|
163
159
|
|
|
160
|
+
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
161
|
+
var EventListener_ = __webpack_require__(14);
|
|
162
|
+
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
163
|
+
|
|
164
164
|
// EXTERNAL MODULE: ./src/Layer/LayerStack.tsx
|
|
165
|
-
var LayerStack = __webpack_require__(
|
|
165
|
+
var LayerStack = __webpack_require__(70);
|
|
166
166
|
|
|
167
167
|
// CONCATENATED MODULE: ./src/Layer/Layer.tsx
|
|
168
168
|
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); }
|
|
@@ -311,12 +311,24 @@ var Layer_Layer = /*#__PURE__*/function (_Component) {
|
|
|
311
311
|
onTouchStart: this.handleClickOnLayer
|
|
312
312
|
}, children), Layer.layerContainer // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
313
313
|
);
|
|
314
|
-
return /*#__PURE__*/external_react_default.a.createElement(external_react_default.a.Fragment, null, /*#__PURE__*/external_react_default.a.createElement(
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
314
|
+
return /*#__PURE__*/external_react_default.a.createElement(external_react_default.a.Fragment, null, /*#__PURE__*/external_react_default.a.createElement(EventListener_default.a, {
|
|
315
|
+
target: window,
|
|
316
|
+
eventType: "keydown",
|
|
317
|
+
listener: this.handleKeyDownOnWindow,
|
|
318
|
+
key: "eventListenerKeydown"
|
|
319
|
+
}), /*#__PURE__*/external_react_default.a.createElement(EventListener_default.a, {
|
|
320
|
+
target: window,
|
|
321
|
+
eventType: "mousedown",
|
|
322
|
+
listener: this.handleClickOnWindow,
|
|
323
|
+
key: "eventListenerMouseDown"
|
|
324
|
+
}), /*#__PURE__*/external_react_default.a.createElement(EventListener_default.a, {
|
|
325
|
+
target: window,
|
|
326
|
+
eventType: "touchstart",
|
|
327
|
+
listener: this.handleClickOnWindow,
|
|
328
|
+
key: "eventListenerTouchStart",
|
|
329
|
+
options: {
|
|
330
|
+
passive: true
|
|
331
|
+
}
|
|
320
332
|
}), layerPortal);
|
|
321
333
|
}
|
|
322
334
|
|
|
@@ -358,14 +370,14 @@ module.exports = require("lodash");
|
|
|
358
370
|
|
|
359
371
|
/***/ }),
|
|
360
372
|
|
|
361
|
-
/***/
|
|
373
|
+
/***/ 63:
|
|
362
374
|
/***/ (function(module, exports) {
|
|
363
375
|
|
|
364
376
|
module.exports = require("react-dom");
|
|
365
377
|
|
|
366
378
|
/***/ }),
|
|
367
379
|
|
|
368
|
-
/***/
|
|
380
|
+
/***/ 70:
|
|
369
381
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
370
382
|
|
|
371
383
|
"use strict";
|
|
@@ -415,7 +427,7 @@ function LayerStackGlobalProvider(_ref) {
|
|
|
415
427
|
|
|
416
428
|
LayerStackGlobalProvider.propTypes = propTypes;
|
|
417
429
|
|
|
418
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
430
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(107)))
|
|
419
431
|
|
|
420
432
|
/***/ }),
|
|
421
433
|
|
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 = 155);
|
|
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
|
+
/***/ 155:
|
|
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__(19);
|
|
131
131
|
|
|
132
132
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
133
133
|
var i18n_ = __webpack_require__(5);
|
|
@@ -137,11 +137,11 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
137
137
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
138
138
|
|
|
139
139
|
// EXTERNAL MODULE: external "@splunk/react-icons/External"
|
|
140
|
-
var External_ = __webpack_require__(
|
|
140
|
+
var External_ = __webpack_require__(52);
|
|
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,7 +295,7 @@ _defineProperty(Link_Link, Dropdown_["legacyRefMode"], true);
|
|
|
295
295
|
|
|
296
296
|
/***/ }),
|
|
297
297
|
|
|
298
|
-
/***/
|
|
298
|
+
/***/ 19:
|
|
299
299
|
/***/ (function(module, exports) {
|
|
300
300
|
|
|
301
301
|
module.exports = require("@splunk/react-ui/Dropdown");
|
|
@@ -323,7 +323,7 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
323
323
|
|
|
324
324
|
/***/ }),
|
|
325
325
|
|
|
326
|
-
/***/
|
|
326
|
+
/***/ 52:
|
|
327
327
|
/***/ (function(module, exports) {
|
|
328
328
|
|
|
329
329
|
module.exports = require("@splunk/react-icons/External");
|