@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/RadioBar.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 124);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,14 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 12:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/react-ui/Clickable");
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 124:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -134,11 +134,11 @@ var external_lodash_ = __webpack_require__(4);
|
|
|
134
134
|
var themes_ = __webpack_require__(0);
|
|
135
135
|
|
|
136
136
|
// EXTERNAL MODULE: external "@splunk/react-ui/ButtonGroup"
|
|
137
|
-
var ButtonGroup_ = __webpack_require__(
|
|
137
|
+
var ButtonGroup_ = __webpack_require__(94);
|
|
138
138
|
var ButtonGroup_default = /*#__PURE__*/__webpack_require__.n(ButtonGroup_);
|
|
139
139
|
|
|
140
140
|
// EXTERNAL MODULE: external "@splunk/react-ui/Button"
|
|
141
|
-
var Button_ = __webpack_require__(
|
|
141
|
+
var Button_ = __webpack_require__(17);
|
|
142
142
|
var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
|
|
143
143
|
|
|
144
144
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -146,7 +146,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
146
146
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
147
147
|
|
|
148
148
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
149
|
-
var Clickable_ = __webpack_require__(
|
|
149
|
+
var Clickable_ = __webpack_require__(12);
|
|
150
150
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
151
151
|
|
|
152
152
|
// CONCATENATED MODULE: ./src/RadioBar/OptionStyles.ts
|
|
@@ -183,6 +183,11 @@ var StyledLabel = external_styled_components_default.a.div.withConfig({
|
|
|
183
183
|
componentId: "fyq77p-2"
|
|
184
184
|
})(["flex:0 1 auto;", " &:not(:first-child){margin-left:8px;}"], themes_["mixins"].ellipsis);
|
|
185
185
|
|
|
186
|
+
// CONCATENATED MODULE: ./src/RadioBar/RadioBarContext.tsx
|
|
187
|
+
|
|
188
|
+
var RadioBarContext = /*#__PURE__*/Object(external_react_["createContext"])({});
|
|
189
|
+
RadioBarContext.displayName = 'RadioBar';
|
|
190
|
+
/* harmony default export */ var RadioBar_RadioBarContext = (RadioBarContext);
|
|
186
191
|
// CONCATENATED MODULE: ./src/RadioBar/Option.tsx
|
|
187
192
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
188
193
|
|
|
@@ -194,44 +199,40 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
194
199
|
|
|
195
200
|
|
|
196
201
|
|
|
202
|
+
|
|
197
203
|
var propTypes = {
|
|
198
|
-
/** @private */
|
|
199
|
-
appearance: external_prop_types_default.a.oneOf(['default', 'pill', 'prisma']),
|
|
200
204
|
disabled: external_prop_types_default.a.bool,
|
|
201
205
|
icon: external_prop_types_default.a.node,
|
|
202
206
|
label: external_prop_types_default.a.string,
|
|
203
207
|
|
|
204
|
-
/** @private Set by `RadioBar`. */
|
|
205
|
-
onClick: external_prop_types_default.a.func,
|
|
206
|
-
|
|
207
208
|
/** @private Set by `RadioBar`. */
|
|
208
209
|
selected: external_prop_types_default.a.bool,
|
|
209
210
|
|
|
210
211
|
/** The value of the `Option`. */
|
|
211
|
-
value: external_prop_types_default.a.any.isRequired
|
|
212
|
-
|
|
213
|
-
/** @private Set by `RadioBar`. */
|
|
214
|
-
error: external_prop_types_default.a.bool
|
|
212
|
+
value: external_prop_types_default.a.any.isRequired
|
|
215
213
|
};
|
|
216
214
|
|
|
217
215
|
function Option(_ref) {
|
|
218
|
-
var
|
|
219
|
-
disabled = _ref.disabled,
|
|
216
|
+
var disabled = _ref.disabled,
|
|
220
217
|
label = _ref.label,
|
|
221
218
|
icon = _ref.icon,
|
|
222
|
-
onClick = _ref.onClick,
|
|
223
219
|
selected = _ref.selected,
|
|
224
220
|
value = _ref.value,
|
|
225
|
-
otherProps = _objectWithoutProperties(_ref, ["
|
|
221
|
+
otherProps = _objectWithoutProperties(_ref, ["disabled", "label", "icon", "selected", "value"]);
|
|
226
222
|
|
|
227
223
|
// @docs-props-type OptionPropsBase
|
|
228
|
-
|
|
224
|
+
var _useContext = Object(external_react_["useContext"])(RadioBar_RadioBarContext),
|
|
225
|
+
onClickContext = _useContext.onClick,
|
|
226
|
+
appearanceContext = _useContext.appearance,
|
|
227
|
+
errorContext = _useContext.error;
|
|
228
|
+
|
|
229
|
+
if (appearanceContext === 'prisma') {
|
|
229
230
|
return /*#__PURE__*/external_react_default.a.createElement(StyledClickable, _extends({
|
|
230
231
|
"data-test": "option",
|
|
231
232
|
"data-test-value": value
|
|
232
233
|
}, otherProps, {
|
|
233
234
|
onClick: selected ? undefined : function (e) {
|
|
234
|
-
return
|
|
235
|
+
return onClickContext === null || onClickContext === void 0 ? void 0 : onClickContext(e, {
|
|
235
236
|
value: value,
|
|
236
237
|
label: label
|
|
237
238
|
});
|
|
@@ -241,21 +242,22 @@ function Option(_ref) {
|
|
|
241
242
|
$selected: selected,
|
|
242
243
|
tabIndex: selected ? -1 : undefined,
|
|
243
244
|
disabled: disabled
|
|
244
|
-
}), icon && /*#__PURE__*/external_react_default.a.createElement(StyledIcon, null, icon), /*#__PURE__*/external_react_default.a.createElement(StyledLabel, null, label));
|
|
245
|
+
}), icon && /*#__PURE__*/external_react_default.a.createElement(StyledIcon, null, icon), label && /*#__PURE__*/external_react_default.a.createElement(StyledLabel, null, label));
|
|
245
246
|
}
|
|
246
247
|
|
|
247
248
|
return /*#__PURE__*/external_react_default.a.createElement(Button_default.a, _extends({
|
|
248
249
|
"data-test": "option",
|
|
249
250
|
"data-test-value": value,
|
|
250
|
-
appearance:
|
|
251
|
+
appearance: appearanceContext,
|
|
251
252
|
disabled: disabled,
|
|
252
253
|
label: label,
|
|
253
254
|
icon: icon,
|
|
254
255
|
selected: selected,
|
|
255
|
-
value: value
|
|
256
|
+
value: value,
|
|
257
|
+
error: errorContext
|
|
256
258
|
}, otherProps, {
|
|
257
259
|
onClick: selected ? undefined : function (e) {
|
|
258
|
-
return
|
|
260
|
+
return onClickContext === null || onClickContext === void 0 ? void 0 : onClickContext(e, {
|
|
259
261
|
value: value,
|
|
260
262
|
label: label
|
|
261
263
|
});
|
|
@@ -329,6 +331,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
329
331
|
|
|
330
332
|
|
|
331
333
|
|
|
334
|
+
|
|
335
|
+
/** @public */
|
|
336
|
+
|
|
332
337
|
var RadioBar_propTypes = {
|
|
333
338
|
appearance: external_prop_types_default.a.oneOf(['default', 'pill', 'flat']),
|
|
334
339
|
children: external_prop_types_default.a.node,
|
|
@@ -415,8 +420,6 @@ var RadioBar_RadioBar = /*#__PURE__*/function (_Component) {
|
|
|
415
420
|
}, {
|
|
416
421
|
key: "render",
|
|
417
422
|
value: function render() {
|
|
418
|
-
var _this2 = this;
|
|
419
|
-
|
|
420
423
|
var _this$props2 = this.props,
|
|
421
424
|
appearance = _this$props2.appearance,
|
|
422
425
|
children = _this$props2.children,
|
|
@@ -428,21 +431,21 @@ var RadioBar_RadioBar = /*#__PURE__*/function (_Component) {
|
|
|
428
431
|
otherProps = RadioBar_objectWithoutProperties(_this$props2, ["appearance", "children", "describedBy", "error", "labelledBy", "splunkTheme", "value"]);
|
|
429
432
|
|
|
430
433
|
var selectedValue = this.isControlled() ? value : this.state.value;
|
|
431
|
-
var isPrisma = splunkTheme.
|
|
434
|
+
var isPrisma = splunkTheme.isPrisma;
|
|
432
435
|
var disabled = true;
|
|
436
|
+
var contextValue = {
|
|
437
|
+
appearance: isPrisma ? 'prisma' : appearance,
|
|
438
|
+
onClick: this.handleClick,
|
|
439
|
+
error: isPrisma ? false : error
|
|
440
|
+
};
|
|
433
441
|
var childrenFormatted = external_react_["Children"].toArray(children).filter(external_react_["isValidElement"]).map(function (item, i) {
|
|
434
442
|
if (item.props && !item.props.disabled) {
|
|
435
443
|
disabled = false;
|
|
436
444
|
}
|
|
437
445
|
|
|
438
446
|
return /*#__PURE__*/Object(external_react_["cloneElement"])(item, {
|
|
439
|
-
appearance: isPrisma ? 'prisma' : appearance,
|
|
440
|
-
key: item.key || i,
|
|
441
|
-
onClick: _this2.handleClick,
|
|
442
|
-
role: 'radio',
|
|
443
447
|
selected: item.props.value === selectedValue,
|
|
444
|
-
|
|
445
|
-
error: isPrisma ? false : error
|
|
448
|
+
key: item.key || i
|
|
446
449
|
});
|
|
447
450
|
});
|
|
448
451
|
|
|
@@ -456,7 +459,9 @@ var RadioBar_RadioBar = /*#__PURE__*/function (_Component) {
|
|
|
456
459
|
"aria-labelledby": labelledBy,
|
|
457
460
|
"aria-describedby": describedBy,
|
|
458
461
|
flex: true
|
|
459
|
-
}, Object(external_lodash_["omit"])(otherProps, 'onChange')),
|
|
462
|
+
}, Object(external_lodash_["omit"])(otherProps, 'onChange')), /*#__PURE__*/external_react_default.a.createElement(RadioBar_RadioBarContext.Provider, {
|
|
463
|
+
value: contextValue
|
|
464
|
+
}, childrenFormatted));
|
|
460
465
|
}
|
|
461
466
|
|
|
462
467
|
return /*#__PURE__*/external_react_default.a.createElement(ButtonGroup_default.a, RadioBar_extends({
|
|
@@ -466,7 +471,9 @@ var RadioBar_RadioBar = /*#__PURE__*/function (_Component) {
|
|
|
466
471
|
"data-test-value": selectedValue,
|
|
467
472
|
flex: true,
|
|
468
473
|
role: "radiogroup"
|
|
469
|
-
}, Object(external_lodash_["omit"])(otherProps, 'onChange')),
|
|
474
|
+
}, Object(external_lodash_["omit"])(otherProps, 'onChange')), /*#__PURE__*/external_react_default.a.createElement(RadioBar_RadioBarContext.Provider, {
|
|
475
|
+
value: contextValue
|
|
476
|
+
}, childrenFormatted));
|
|
470
477
|
}
|
|
471
478
|
}]);
|
|
472
479
|
|
|
@@ -491,7 +498,7 @@ RadioBarWithThemeOption.Option = RadioBar_Option;
|
|
|
491
498
|
|
|
492
499
|
/***/ }),
|
|
493
500
|
|
|
494
|
-
/***/
|
|
501
|
+
/***/ 17:
|
|
495
502
|
/***/ (function(module, exports) {
|
|
496
503
|
|
|
497
504
|
module.exports = require("@splunk/react-ui/Button");
|
|
@@ -526,7 +533,7 @@ module.exports = require("@splunk/react-ui/Box");
|
|
|
526
533
|
|
|
527
534
|
/***/ }),
|
|
528
535
|
|
|
529
|
-
/***/
|
|
536
|
+
/***/ 94:
|
|
530
537
|
/***/ (function(module, exports) {
|
|
531
538
|
|
|
532
539
|
module.exports = require("@splunk/react-ui/ButtonGroup");
|
package/RadioList.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 125);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,7 +108,7 @@ module.exports = require("@splunk/ui-utils/id");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 125:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
package/Resize.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 160);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 11:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -131,18 +131,18 @@ function updateReactRef(ref, current) {
|
|
|
131
131
|
/***/ 14:
|
|
132
132
|
/***/ (function(module, exports) {
|
|
133
133
|
|
|
134
|
-
module.exports = require("@splunk/react-ui/
|
|
134
|
+
module.exports = require("@splunk/react-ui/EventListener");
|
|
135
135
|
|
|
136
136
|
/***/ }),
|
|
137
137
|
|
|
138
138
|
/***/ 15:
|
|
139
139
|
/***/ (function(module, exports) {
|
|
140
140
|
|
|
141
|
-
module.exports = require("react-
|
|
141
|
+
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
142
142
|
|
|
143
143
|
/***/ }),
|
|
144
144
|
|
|
145
|
-
/***/
|
|
145
|
+
/***/ 160:
|
|
146
146
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
147
147
|
|
|
148
148
|
"use strict";
|
|
@@ -163,12 +163,12 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
163
163
|
// EXTERNAL MODULE: external "lodash"
|
|
164
164
|
var external_lodash_ = __webpack_require__(4);
|
|
165
165
|
|
|
166
|
-
// EXTERNAL MODULE: external "react-
|
|
167
|
-
var
|
|
168
|
-
var
|
|
166
|
+
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
167
|
+
var EventListener_ = __webpack_require__(14);
|
|
168
|
+
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
169
169
|
|
|
170
170
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
171
|
-
var ScreenReaderContent_ = __webpack_require__(
|
|
171
|
+
var ScreenReaderContent_ = __webpack_require__(15);
|
|
172
172
|
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
173
173
|
|
|
174
174
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
@@ -267,7 +267,7 @@ var StyledResize = external_styled_components_default.a.button.withConfig({
|
|
|
267
267
|
}));
|
|
268
268
|
|
|
269
269
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
270
|
-
var updateReactRef = __webpack_require__(
|
|
270
|
+
var updateReactRef = __webpack_require__(11);
|
|
271
271
|
|
|
272
272
|
// CONCATENATED MODULE: ./src/Resize/Resize.tsx
|
|
273
273
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
@@ -544,11 +544,15 @@ var Resize_Resize = /*#__PURE__*/function (_Component) {
|
|
|
544
544
|
ref: this.handleMount
|
|
545
545
|
}, Object(external_lodash_["omit"])(this.props, Object(external_lodash_["keys"])(Resize.propTypes))), /*#__PURE__*/external_react_default.a.createElement(StyledBorder, {
|
|
546
546
|
$borderSides: borderSides
|
|
547
|
-
}, el && beforeHandles, children, el && afterHandles, dragDirection && /*#__PURE__*/external_react_default.a.createElement(
|
|
548
|
-
target:
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
})
|
|
547
|
+
}, el && beforeHandles, children, el && afterHandles, dragDirection && /*#__PURE__*/external_react_default.a.createElement(external_react_default.a.Fragment, null, /*#__PURE__*/external_react_default.a.createElement(EventListener_default.a, {
|
|
548
|
+
target: window,
|
|
549
|
+
eventType: "mousemove",
|
|
550
|
+
listener: this.handleDrag
|
|
551
|
+
}), /*#__PURE__*/external_react_default.a.createElement(EventListener_default.a, {
|
|
552
|
+
target: window,
|
|
553
|
+
eventType: "mouseup",
|
|
554
|
+
listener: this.handleDragEnd
|
|
555
|
+
}))));
|
|
552
556
|
}
|
|
553
557
|
}]);
|
|
554
558
|
|
package/ResultsMenu.js
CHANGED
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 11:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -160,7 +160,7 @@ var external_lodash_ = __webpack_require__(4);
|
|
|
160
160
|
var i18n_ = __webpack_require__(5);
|
|
161
161
|
|
|
162
162
|
// EXTERNAL MODULE: external "@splunk/ui-utils/userAgent"
|
|
163
|
-
var userAgent_ = __webpack_require__(
|
|
163
|
+
var userAgent_ = __webpack_require__(95);
|
|
164
164
|
|
|
165
165
|
// EXTERNAL MODULE: external "@splunk/react-ui/Menu"
|
|
166
166
|
var Menu_ = __webpack_require__(13);
|
|
@@ -171,7 +171,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
171
171
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
172
172
|
|
|
173
173
|
// EXTERNAL MODULE: external "@splunk/react-ui/WaitSpinner"
|
|
174
|
-
var WaitSpinner_ = __webpack_require__(
|
|
174
|
+
var WaitSpinner_ = __webpack_require__(96);
|
|
175
175
|
var WaitSpinner_default = /*#__PURE__*/__webpack_require__.n(WaitSpinner_);
|
|
176
176
|
|
|
177
177
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -232,7 +232,7 @@ var StyledLoadingMessage = external_styled_components_default.a.div.withConfig({
|
|
|
232
232
|
}));
|
|
233
233
|
|
|
234
234
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
235
|
-
var updateReactRef = __webpack_require__(
|
|
235
|
+
var updateReactRef = __webpack_require__(11);
|
|
236
236
|
|
|
237
237
|
// CONCATENATED MODULE: ./src/ResultsMenu/ResultsMenu.tsx
|
|
238
238
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
@@ -537,14 +537,14 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
537
537
|
|
|
538
538
|
/***/ }),
|
|
539
539
|
|
|
540
|
-
/***/
|
|
540
|
+
/***/ 95:
|
|
541
541
|
/***/ (function(module, exports) {
|
|
542
542
|
|
|
543
543
|
module.exports = require("@splunk/ui-utils/userAgent");
|
|
544
544
|
|
|
545
545
|
/***/ }),
|
|
546
546
|
|
|
547
|
-
/***/
|
|
547
|
+
/***/ 96:
|
|
548
548
|
/***/ (function(module, exports) {
|
|
549
549
|
|
|
550
550
|
module.exports = require("@splunk/react-ui/WaitSpinner");
|
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 = 162);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 162:
|
|
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 = 139);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 11:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -128,7 +128,7 @@ function updateReactRef(ref, current) {
|
|
|
128
128
|
|
|
129
129
|
/***/ }),
|
|
130
130
|
|
|
131
|
-
/***/
|
|
131
|
+
/***/ 139:
|
|
132
132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
133
133
|
|
|
134
134
|
"use strict";
|
|
@@ -159,18 +159,18 @@ var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(exte
|
|
|
159
159
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
160
160
|
var themes_ = __webpack_require__(0);
|
|
161
161
|
|
|
162
|
-
// EXTERNAL MODULE: external "react-
|
|
163
|
-
var
|
|
164
|
-
var external_react_event_listener_default = /*#__PURE__*/__webpack_require__.n(external_react_event_listener_);
|
|
162
|
+
// EXTERNAL MODULE: external "react-spring"
|
|
163
|
+
var external_react_spring_ = __webpack_require__(18);
|
|
165
164
|
|
|
166
|
-
// EXTERNAL MODULE: external "@react-
|
|
167
|
-
var
|
|
165
|
+
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
166
|
+
var EventListener_ = __webpack_require__(14);
|
|
167
|
+
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
168
168
|
|
|
169
169
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
170
170
|
var ScrollContainerContext_ = __webpack_require__(35);
|
|
171
171
|
|
|
172
172
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
173
|
-
var updateReactRef = __webpack_require__(
|
|
173
|
+
var updateReactRef = __webpack_require__(11);
|
|
174
174
|
|
|
175
175
|
// CONCATENATED MODULE: ./src/Scroll/Inner.tsx
|
|
176
176
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
@@ -344,7 +344,7 @@ var Inner_Inner = /*#__PURE__*/function (_Component) {
|
|
|
344
344
|
top = _this$props.top,
|
|
345
345
|
left = _this$props.left;
|
|
346
346
|
var containerEl = this.state.containerEl;
|
|
347
|
-
var AnimatedTag =
|
|
347
|
+
var AnimatedTag = external_react_spring_["animated"][this.props.tagName];
|
|
348
348
|
return /*#__PURE__*/external_react_default.a.createElement(external_react_default.a.Fragment, null, /*#__PURE__*/external_react_default.a.createElement(AnimatedTag, _extends({}, Object(external_lodash_["omit"])(this.props, Object(external_lodash_["keys"])(Inner.propTypes)), {
|
|
349
349
|
ref: this.handleMount,
|
|
350
350
|
onMouseEnter: stopScrollPropagation === 'window' ? this.handleMouseEnter : undefined,
|
|
@@ -354,11 +354,13 @@ var Inner_Inner = /*#__PURE__*/function (_Component) {
|
|
|
354
354
|
scrollLeft: left
|
|
355
355
|
}), /*#__PURE__*/external_react_default.a.createElement(ScrollContainerContext_["ScrollContainerProvider"], {
|
|
356
356
|
value: containerEl
|
|
357
|
-
}, children)), stopScrollPropagation === true && containerEl && /*#__PURE__*/external_react_default.a.createElement(
|
|
358
|
-
|
|
357
|
+
}, children)), stopScrollPropagation === true && containerEl && /*#__PURE__*/external_react_default.a.createElement(EventListener_default.a, {
|
|
358
|
+
target: containerEl,
|
|
359
|
+
eventType: "wheel",
|
|
360
|
+
listener: this.handleWheel,
|
|
361
|
+
options: {
|
|
359
362
|
passive: false
|
|
360
|
-
}
|
|
361
|
-
target: containerEl
|
|
363
|
+
}
|
|
362
364
|
}));
|
|
363
365
|
}
|
|
364
366
|
}]);
|
|
@@ -538,10 +540,17 @@ Scroll_defineProperty(Scroll_Scroll, "defaultProps", Scroll_defaultProps);
|
|
|
538
540
|
|
|
539
541
|
/***/ }),
|
|
540
542
|
|
|
541
|
-
/***/
|
|
543
|
+
/***/ 14:
|
|
544
|
+
/***/ (function(module, exports) {
|
|
545
|
+
|
|
546
|
+
module.exports = require("@splunk/react-ui/EventListener");
|
|
547
|
+
|
|
548
|
+
/***/ }),
|
|
549
|
+
|
|
550
|
+
/***/ 18:
|
|
542
551
|
/***/ (function(module, exports) {
|
|
543
552
|
|
|
544
|
-
module.exports = require("react-
|
|
553
|
+
module.exports = require("react-spring");
|
|
545
554
|
|
|
546
555
|
/***/ }),
|
|
547
556
|
|
|
@@ -578,13 +587,6 @@ module.exports = require("@splunk/react-ui/ScrollContainerContext");
|
|
|
578
587
|
|
|
579
588
|
module.exports = require("lodash");
|
|
580
589
|
|
|
581
|
-
/***/ }),
|
|
582
|
-
|
|
583
|
-
/***/ 94:
|
|
584
|
-
/***/ (function(module, exports) {
|
|
585
|
-
|
|
586
|
-
module.exports = require("@react-spring/web");
|
|
587
|
-
|
|
588
590
|
/***/ })
|
|
589
591
|
|
|
590
592
|
/******/ });
|
|
@@ -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 = 175);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 175:
|
|
91
91
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
@@ -107,13 +107,13 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
|
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* A React context used to manage a custom scroll container for child elements
|
|
110
|
-
* that need to react to scrolling. The context type is `
|
|
111
|
-
* Defaults to `
|
|
110
|
+
* that need to react to scrolling. The context type is `Window | Document | HTMLElement | null | undefined`.
|
|
111
|
+
* Defaults to `window`. Consumers of this context must gracefully handle values
|
|
112
112
|
* of `null` and `undefined`.
|
|
113
113
|
* @public
|
|
114
114
|
*/
|
|
115
115
|
|
|
116
|
-
var ScrollContainerContext = /*#__PURE__*/external_react_default.a.createContext(
|
|
116
|
+
var ScrollContainerContext = /*#__PURE__*/external_react_default.a.createContext(window);
|
|
117
117
|
/**
|
|
118
118
|
* `ScrollContainerProvider` is an alias of `ScrollContainerContext.Provider`.
|
|
119
119
|
* @public
|
package/Search.d.ts
ADDED