@splunk/react-ui 4.14.0 → 4.15.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/.dockerignore +2 -0
- package/Accordion.js +41 -16
- package/Anchor.js +9 -9
- package/Animation.js +6 -6
- package/AnimationToggle.js +2 -2
- package/Box.js +9 -9
- package/Button.js +35 -34
- package/ButtonGroup.js +9 -9
- package/ButtonSimple.js +14 -14
- package/CHANGELOG.md +30 -0
- package/Calendar.js +124 -106
- package/Card.js +68 -68
- package/CardLayout.js +9 -9
- package/Chip.js +23 -23
- package/Clickable.js +38 -14
- package/CloseButton.js +23 -23
- package/Code.js +484 -436
- package/CollapsiblePanel.js +59 -34
- package/Color.js +297 -187
- package/ColumnLayout.js +18 -17
- package/ComboBox.js +81 -32
- package/Concertina.js +88 -27
- package/ControlGroup.js +81 -24
- package/Date.js +44 -31
- package/DefinitionList.js +14 -8
- package/Divider.d.ts +2 -0
- package/Divider.js +9 -9
- package/Dockerfile.enterprise.storybook +7 -0
- package/Dockerfile.prisma.storybook +7 -0
- package/Dockerfile.visual +10 -0
- package/Dropdown.js +78 -18
- package/EventListener.js +17 -17
- package/File.js +96 -43
- package/FormRows.js +38 -37
- package/Heading.js +83 -55
- package/Image.js +67 -42
- package/JSONTree.js +106 -21
- package/Layer.js +59 -34
- package/Link.js +17 -17
- package/List.js +3 -3
- package/Markdown.js +71 -65
- package/Menu.js +155 -121
- package/Message.js +129 -129
- package/MessageBar.js +136 -136
- package/Modal.js +57 -32
- package/ModalLayer.js +15 -15
- package/Monogram.js +18 -17
- package/Multiselect.js +2793 -2315
- package/Number.js +74 -37
- package/Paginator.js +99 -86
- package/Paragraph.js +10 -10
- package/Popover.js +191 -54
- package/Progress.js +23 -22
- package/RadioBar.js +32 -14
- package/RadioList.js +17 -11
- package/Resize.js +33 -20
- package/ResultsMenu.js +36 -23
- package/ScreenReaderContent.js +9 -9
- package/Scroll.js +50 -25
- package/ScrollContainerContext.js +48 -48
- package/Search.js +68 -31
- package/Select.js +347 -69
- package/SidePanel.js +37 -24
- package/Slider.js +54 -24
- package/SlidingPanels.js +52 -14
- package/SplitButton.js +23 -22
- package/StaticContent.js +9 -9
- package/StepBar.js +22 -22
- package/Switch.js +18 -13
- package/TabBar.js +22 -22
- package/TabLayout.js +43 -18
- package/Table.js +371 -162
- package/Text.js +91 -49
- package/TextArea.d.ts +2 -0
- package/TextArea.js +127 -49
- package/Tooltip.js +236 -59
- package/TransitionOpen.js +39 -26
- package/Typography.d.ts +2 -0
- package/Typography.js +17 -16
- package/WaitSpinner.js +15 -15
- package/docker-compose.yml +42 -0
- package/package.json +12 -10
- package/test-runner-jest.config.js +11 -6
- package/types/src/Accordion/AccordionContext.d.ts +1 -0
- package/types/src/Button/docs/examples/Selected.d.ts +2 -2
- package/types/src/ButtonGroup/ButtonGroupContext.d.ts +1 -0
- package/types/src/Calendar/Calendar.d.ts +2 -0
- package/types/src/CardLayout/CardLayoutContext.d.ts +1 -0
- package/types/src/Concertina/ConcertinaContext.d.ts +1 -0
- package/types/src/ControlGroup/ControlGroup.d.ts +15 -8
- package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/Required.d.ts +2 -0
- package/types/src/File/File.d.ts +4 -2
- package/types/src/File/FileContext.d.ts +1 -0
- package/types/src/FormRows/FormRowsContext.d.ts +1 -0
- package/types/src/Markdown/renderers/MarkdownLink.d.ts +1 -1
- package/types/src/Menu/MenuContext.d.ts +1 -0
- package/types/src/Modal/ModalContext.d.ts +1 -0
- package/types/src/Multiselect/Compact.d.ts +10 -1
- package/types/src/Multiselect/Multiselect.d.ts +12 -1
- package/types/src/Multiselect/Normal.d.ts +2 -0
- package/types/src/Popover/Popover.d.ts +25 -5
- package/types/src/Popover/PopoverContext.d.ts +1 -0
- package/types/src/RadioBar/RadioBar.d.ts +5 -3
- package/types/src/RadioBar/RadioBarContext.d.ts +1 -0
- package/types/src/RadioList/RadioList.d.ts +5 -1
- package/types/src/RadioList/RadioListContext.d.ts +1 -0
- package/types/src/Select/SelectBase.d.ts +2 -0
- package/types/src/Slider/Slider.d.ts +5 -3
- package/types/src/StepBar/StepBarContext.d.ts +1 -0
- package/types/src/Switch/Switch.d.ts +2 -0
- package/types/src/TabBar/TabBarContext.d.ts +1 -0
- package/types/src/Table/Head.d.ts +2 -0
- package/types/src/Table/TableContext.d.ts +1 -0
- package/types/src/Text/Text.d.ts +5 -3
- package/types/src/TextArea/TextArea.d.ts +5 -3
- package/types/src/Tooltip/Tooltip.d.ts +16 -4
- package/types/src/useForceUpdate/useForceUpdate.d.ts +1 -0
- package/useForceUpdate.js +9 -9
- package/useKeyPress.js +2 -2
- package/usePrevious.js +9 -9
- package/.storybook-visual/config/snapshotResolver.js +0 -29
- package/.storybook-visual/main.js +0 -22
- package/.storybook-visual/preview.jsx +0 -31
- package/.storybook-visual/scripts/test.sh +0 -108
- package/.storybook-visual/test-runner.js +0 -108
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 = 179);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,14 +101,21 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 11:
|
|
105
|
+
/***/ (function(module, exports) {
|
|
106
|
+
|
|
107
|
+
module.exports = require("lodash/has");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ 14:
|
|
105
112
|
/***/ (function(module, exports) {
|
|
106
113
|
|
|
107
114
|
module.exports = require("@splunk/react-ui/Clickable");
|
|
108
115
|
|
|
109
116
|
/***/ }),
|
|
110
117
|
|
|
111
|
-
/***/
|
|
118
|
+
/***/ 179:
|
|
112
119
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
120
|
|
|
114
121
|
"use strict";
|
|
@@ -127,8 +134,13 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
|
|
|
127
134
|
var external_prop_types_ = __webpack_require__(1);
|
|
128
135
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
129
136
|
|
|
130
|
-
// EXTERNAL MODULE: external "lodash"
|
|
131
|
-
var
|
|
137
|
+
// EXTERNAL MODULE: external "lodash/has"
|
|
138
|
+
var has_ = __webpack_require__(11);
|
|
139
|
+
var has_default = /*#__PURE__*/__webpack_require__.n(has_);
|
|
140
|
+
|
|
141
|
+
// EXTERNAL MODULE: external "lodash/omit"
|
|
142
|
+
var omit_ = __webpack_require__(5);
|
|
143
|
+
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
132
144
|
|
|
133
145
|
// EXTERNAL MODULE: external "@splunk/ui-utils/keyboard"
|
|
134
146
|
var keyboard_ = __webpack_require__(9);
|
|
@@ -137,7 +149,7 @@ var keyboard_ = __webpack_require__(9);
|
|
|
137
149
|
var themes_ = __webpack_require__(0);
|
|
138
150
|
|
|
139
151
|
// EXTERNAL MODULE: external "@splunk/react-ui/Button"
|
|
140
|
-
var Button_ = __webpack_require__(
|
|
152
|
+
var Button_ = __webpack_require__(19);
|
|
141
153
|
var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
|
|
142
154
|
|
|
143
155
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -145,7 +157,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
145
157
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
146
158
|
|
|
147
159
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
148
|
-
var Clickable_ = __webpack_require__(
|
|
160
|
+
var Clickable_ = __webpack_require__(14);
|
|
149
161
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
150
162
|
|
|
151
163
|
// CONCATENATED MODULE: ./src/RadioBar/OptionStyles.ts
|
|
@@ -376,6 +388,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
376
388
|
|
|
377
389
|
|
|
378
390
|
|
|
391
|
+
|
|
379
392
|
/** @public */
|
|
380
393
|
|
|
381
394
|
var RadioBar_propTypes = {
|
|
@@ -390,6 +403,9 @@ var RadioBar_propTypes = {
|
|
|
390
403
|
name: external_prop_types_default.a.string,
|
|
391
404
|
onChange: external_prop_types_default.a.func,
|
|
392
405
|
|
|
406
|
+
/** @private. */
|
|
407
|
+
required: external_prop_types_default.a.bool,
|
|
408
|
+
|
|
393
409
|
/** @private */
|
|
394
410
|
splunkTheme: external_prop_types_default.a.object,
|
|
395
411
|
value: external_prop_types_default.a.any
|
|
@@ -488,7 +504,7 @@ var RadioBar_RadioBar = /*#__PURE__*/function (_Component) {
|
|
|
488
504
|
}
|
|
489
505
|
});
|
|
490
506
|
|
|
491
|
-
_this.controlledExternally =
|
|
507
|
+
_this.controlledExternally = has_default()(props, 'value');
|
|
492
508
|
|
|
493
509
|
if (!_this.isControlled()) {
|
|
494
510
|
_this.state = {
|
|
@@ -526,7 +542,8 @@ var RadioBar_RadioBar = /*#__PURE__*/function (_Component) {
|
|
|
526
542
|
labelledBy = _this$props2.labelledBy,
|
|
527
543
|
splunkTheme = _this$props2.splunkTheme,
|
|
528
544
|
value = _this$props2.value,
|
|
529
|
-
|
|
545
|
+
required = _this$props2.required,
|
|
546
|
+
otherProps = RadioBar_objectWithoutProperties(_this$props2, ["appearance", "children", "describedBy", "error", "labelledBy", "splunkTheme", "value", "required"]);
|
|
530
547
|
|
|
531
548
|
if (false) {}
|
|
532
549
|
|
|
@@ -567,8 +584,9 @@ var RadioBar_RadioBar = /*#__PURE__*/function (_Component) {
|
|
|
567
584
|
"data-test-value": selectedValue,
|
|
568
585
|
role: "radiogroup",
|
|
569
586
|
"aria-labelledby": labelledBy,
|
|
570
|
-
"aria-describedby": describedBy
|
|
571
|
-
|
|
587
|
+
"aria-describedby": describedBy,
|
|
588
|
+
"aria-required": required
|
|
589
|
+
}, omit_default()(otherProps, 'onChange')), /*#__PURE__*/external_react_default.a.createElement(RadioBar_RadioBarContext.Provider, {
|
|
572
590
|
value: contextValue
|
|
573
591
|
}, childrenFormatted));
|
|
574
592
|
}
|
|
@@ -595,7 +613,7 @@ RadioBarWithThemeOption.Option = RadioBar_Option;
|
|
|
595
613
|
|
|
596
614
|
/***/ }),
|
|
597
615
|
|
|
598
|
-
/***/
|
|
616
|
+
/***/ 19:
|
|
599
617
|
/***/ (function(module, exports) {
|
|
600
618
|
|
|
601
619
|
module.exports = require("@splunk/react-ui/Button");
|
|
@@ -616,10 +634,10 @@ module.exports = require("styled-components");
|
|
|
616
634
|
|
|
617
635
|
/***/ }),
|
|
618
636
|
|
|
619
|
-
/***/
|
|
637
|
+
/***/ 5:
|
|
620
638
|
/***/ (function(module, exports) {
|
|
621
639
|
|
|
622
|
-
module.exports = require("lodash");
|
|
640
|
+
module.exports = require("lodash/omit");
|
|
623
641
|
|
|
624
642
|
/***/ }),
|
|
625
643
|
|
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 = 180);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,14 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 13:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/ui-utils/id");
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 180:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -127,11 +127,12 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
|
|
|
127
127
|
var external_prop_types_ = __webpack_require__(1);
|
|
128
128
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
129
129
|
|
|
130
|
-
// EXTERNAL MODULE: external "lodash"
|
|
131
|
-
var
|
|
130
|
+
// EXTERNAL MODULE: external "lodash/omit"
|
|
131
|
+
var omit_ = __webpack_require__(5);
|
|
132
|
+
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
132
133
|
|
|
133
134
|
// EXTERNAL MODULE: external "@splunk/ui-utils/id"
|
|
134
|
-
var id_ = __webpack_require__(
|
|
135
|
+
var id_ = __webpack_require__(13);
|
|
135
136
|
|
|
136
137
|
// CONCATENATED MODULE: ./src/RadioList/RadioListContext.ts
|
|
137
138
|
|
|
@@ -416,6 +417,9 @@ var RadioList_propTypes = {
|
|
|
416
417
|
error: external_prop_types_default.a.bool,
|
|
417
418
|
name: external_prop_types_default.a.string,
|
|
418
419
|
onChange: external_prop_types_default.a.func,
|
|
420
|
+
|
|
421
|
+
/** @private. */
|
|
422
|
+
required: external_prop_types_default.a.bool,
|
|
419
423
|
value: external_prop_types_default.a.any,
|
|
420
424
|
labelledBy: external_prop_types_default.a.string,
|
|
421
425
|
describedBy: external_prop_types_default.a.string
|
|
@@ -434,8 +438,9 @@ function RadioList(_ref) {
|
|
|
434
438
|
labelledBy = _ref.labelledBy,
|
|
435
439
|
nameProp = _ref.name,
|
|
436
440
|
onChange = _ref.onChange,
|
|
441
|
+
required = _ref.required,
|
|
437
442
|
valueProp = _ref.value,
|
|
438
|
-
otherProps = RadioList_objectWithoutProperties(_ref, ["children", "defaultValue", "describedBy", "direction", "disabled", "error", "labelledBy", "name", "onChange", "value"]);
|
|
443
|
+
otherProps = RadioList_objectWithoutProperties(_ref, ["children", "defaultValue", "describedBy", "direction", "disabled", "error", "labelledBy", "name", "onChange", "required", "value"]);
|
|
439
444
|
|
|
440
445
|
// @docs-props-type RadioListPropsBase
|
|
441
446
|
// See material-ui for similar pattern to handle controlled/un-controlled in functional components w/ hooks
|
|
@@ -493,9 +498,10 @@ function RadioList(_ref) {
|
|
|
493
498
|
role: "radiogroup",
|
|
494
499
|
"data-test": "radio-list",
|
|
495
500
|
"data-test-value": value
|
|
496
|
-
},
|
|
501
|
+
}, omit_default()(otherProps, ['aria-labelledby', 'aria-describedby']), {
|
|
497
502
|
"aria-labelledby": labelledByAttr ? "".concat(labelledByAttr, " ").concat(labelledBy) : labelledBy,
|
|
498
|
-
"aria-describedby": describedByAttr ? "".concat(describedByAttr, " ").concat(describedBy) : describedBy
|
|
503
|
+
"aria-describedby": describedByAttr ? "".concat(describedByAttr, " ").concat(describedBy) : describedBy,
|
|
504
|
+
"aria-required": required
|
|
499
505
|
}), children));
|
|
500
506
|
}
|
|
501
507
|
|
|
@@ -523,10 +529,10 @@ module.exports = require("styled-components");
|
|
|
523
529
|
|
|
524
530
|
/***/ }),
|
|
525
531
|
|
|
526
|
-
/***/
|
|
532
|
+
/***/ 5:
|
|
527
533
|
/***/ (function(module, exports) {
|
|
528
534
|
|
|
529
|
-
module.exports = require("lodash");
|
|
535
|
+
module.exports = require("lodash/omit");
|
|
530
536
|
|
|
531
537
|
/***/ }),
|
|
532
538
|
|
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 = 221);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -102,6 +102,13 @@ module.exports = require("prop-types");
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
104
|
/***/ 10:
|
|
105
|
+
/***/ (function(module, exports) {
|
|
106
|
+
|
|
107
|
+
module.exports = require("lodash/keys");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ 12:
|
|
105
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
113
|
|
|
107
114
|
"use strict";
|
|
@@ -128,21 +135,28 @@ function updateReactRef(ref, current) {
|
|
|
128
135
|
|
|
129
136
|
/***/ }),
|
|
130
137
|
|
|
131
|
-
/***/
|
|
138
|
+
/***/ 16:
|
|
132
139
|
/***/ (function(module, exports) {
|
|
133
140
|
|
|
134
141
|
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
135
142
|
|
|
136
143
|
/***/ }),
|
|
137
144
|
|
|
138
|
-
/***/
|
|
145
|
+
/***/ 17:
|
|
139
146
|
/***/ (function(module, exports) {
|
|
140
147
|
|
|
141
148
|
module.exports = require("@splunk/react-ui/EventListener");
|
|
142
149
|
|
|
143
150
|
/***/ }),
|
|
144
151
|
|
|
145
|
-
/***/
|
|
152
|
+
/***/ 2:
|
|
153
|
+
/***/ (function(module, exports) {
|
|
154
|
+
|
|
155
|
+
module.exports = require("react");
|
|
156
|
+
|
|
157
|
+
/***/ }),
|
|
158
|
+
|
|
159
|
+
/***/ 221:
|
|
146
160
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
147
161
|
|
|
148
162
|
"use strict";
|
|
@@ -160,19 +174,24 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
|
|
|
160
174
|
var external_prop_types_ = __webpack_require__(1);
|
|
161
175
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
162
176
|
|
|
163
|
-
// EXTERNAL MODULE: external "lodash"
|
|
164
|
-
var
|
|
177
|
+
// EXTERNAL MODULE: external "lodash/keys"
|
|
178
|
+
var keys_ = __webpack_require__(10);
|
|
179
|
+
var keys_default = /*#__PURE__*/__webpack_require__.n(keys_);
|
|
180
|
+
|
|
181
|
+
// EXTERNAL MODULE: external "lodash/omit"
|
|
182
|
+
var omit_ = __webpack_require__(5);
|
|
183
|
+
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
165
184
|
|
|
166
185
|
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
167
|
-
var EventListener_ = __webpack_require__(
|
|
186
|
+
var EventListener_ = __webpack_require__(17);
|
|
168
187
|
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
169
188
|
|
|
170
189
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
171
|
-
var ScreenReaderContent_ = __webpack_require__(
|
|
190
|
+
var ScreenReaderContent_ = __webpack_require__(16);
|
|
172
191
|
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
173
192
|
|
|
174
193
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
175
|
-
var i18n_ = __webpack_require__(
|
|
194
|
+
var i18n_ = __webpack_require__(4);
|
|
176
195
|
|
|
177
196
|
// EXTERNAL MODULE: external "@splunk/ui-utils/keyboard"
|
|
178
197
|
var keyboard_ = __webpack_require__(9);
|
|
@@ -267,7 +286,7 @@ var StyledResize = external_styled_components_default.a.button.withConfig({
|
|
|
267
286
|
}));
|
|
268
287
|
|
|
269
288
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
270
|
-
var updateReactRef = __webpack_require__(
|
|
289
|
+
var updateReactRef = __webpack_require__(12);
|
|
271
290
|
|
|
272
291
|
// CONCATENATED MODULE: ./src/Resize/Resize.tsx
|
|
273
292
|
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); }
|
|
@@ -305,6 +324,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
305
324
|
|
|
306
325
|
|
|
307
326
|
|
|
327
|
+
|
|
308
328
|
var propTypes = {
|
|
309
329
|
appearance: external_prop_types_default.a.oneOf(['border', 'overlay']),
|
|
310
330
|
children: external_prop_types_default.a.node,
|
|
@@ -542,7 +562,7 @@ var Resize_Resize = /*#__PURE__*/function (_Component) {
|
|
|
542
562
|
return /*#__PURE__*/external_react_default.a.createElement(Styled, _extends({
|
|
543
563
|
"data-test": "resize",
|
|
544
564
|
ref: this.handleMount
|
|
545
|
-
},
|
|
565
|
+
}, omit_default()(this.props, keys_default()(Resize.propTypes))), /*#__PURE__*/external_react_default.a.createElement(StyledBorder, {
|
|
546
566
|
$borderSides: borderSides
|
|
547
567
|
}, 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
568
|
target: window,
|
|
@@ -581,13 +601,6 @@ _defineProperty(Resize_Resize, "handleLabels", {
|
|
|
581
601
|
|
|
582
602
|
|
|
583
603
|
|
|
584
|
-
/***/ }),
|
|
585
|
-
|
|
586
|
-
/***/ 2:
|
|
587
|
-
/***/ (function(module, exports) {
|
|
588
|
-
|
|
589
|
-
module.exports = require("react");
|
|
590
|
-
|
|
591
604
|
/***/ }),
|
|
592
605
|
|
|
593
606
|
/***/ 3:
|
|
@@ -600,14 +613,14 @@ module.exports = require("styled-components");
|
|
|
600
613
|
/***/ 4:
|
|
601
614
|
/***/ (function(module, exports) {
|
|
602
615
|
|
|
603
|
-
module.exports = require("
|
|
616
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
604
617
|
|
|
605
618
|
/***/ }),
|
|
606
619
|
|
|
607
620
|
/***/ 5:
|
|
608
621
|
/***/ (function(module, exports) {
|
|
609
622
|
|
|
610
|
-
module.exports = require("
|
|
623
|
+
module.exports = require("lodash/omit");
|
|
611
624
|
|
|
612
625
|
/***/ }),
|
|
613
626
|
|
package/ResultsMenu.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 222);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -102,6 +102,13 @@ module.exports = require("prop-types");
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
104
|
/***/ 10:
|
|
105
|
+
/***/ (function(module, exports) {
|
|
106
|
+
|
|
107
|
+
module.exports = require("lodash/keys");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ 12:
|
|
105
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
113
|
|
|
107
114
|
"use strict";
|
|
@@ -128,28 +135,35 @@ function updateReactRef(ref, current) {
|
|
|
128
135
|
|
|
129
136
|
/***/ }),
|
|
130
137
|
|
|
131
|
-
/***/
|
|
138
|
+
/***/ 147:
|
|
132
139
|
/***/ (function(module, exports) {
|
|
133
140
|
|
|
134
141
|
module.exports = require("@splunk/ui-utils/userAgent");
|
|
135
142
|
|
|
136
143
|
/***/ }),
|
|
137
144
|
|
|
138
|
-
/***/
|
|
145
|
+
/***/ 148:
|
|
139
146
|
/***/ (function(module, exports) {
|
|
140
147
|
|
|
141
148
|
module.exports = require("@splunk/react-ui/WaitSpinner");
|
|
142
149
|
|
|
143
150
|
/***/ }),
|
|
144
151
|
|
|
145
|
-
/***/
|
|
152
|
+
/***/ 15:
|
|
146
153
|
/***/ (function(module, exports) {
|
|
147
154
|
|
|
148
155
|
module.exports = require("@splunk/react-ui/Menu");
|
|
149
156
|
|
|
150
157
|
/***/ }),
|
|
151
158
|
|
|
152
|
-
/***/
|
|
159
|
+
/***/ 2:
|
|
160
|
+
/***/ (function(module, exports) {
|
|
161
|
+
|
|
162
|
+
module.exports = require("react");
|
|
163
|
+
|
|
164
|
+
/***/ }),
|
|
165
|
+
|
|
166
|
+
/***/ 222:
|
|
153
167
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
154
168
|
|
|
155
169
|
"use strict";
|
|
@@ -167,17 +181,22 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
|
|
|
167
181
|
var external_prop_types_ = __webpack_require__(1);
|
|
168
182
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
169
183
|
|
|
170
|
-
// EXTERNAL MODULE: external "lodash"
|
|
171
|
-
var
|
|
184
|
+
// EXTERNAL MODULE: external "lodash/keys"
|
|
185
|
+
var keys_ = __webpack_require__(10);
|
|
186
|
+
var keys_default = /*#__PURE__*/__webpack_require__.n(keys_);
|
|
187
|
+
|
|
188
|
+
// EXTERNAL MODULE: external "lodash/omit"
|
|
189
|
+
var omit_ = __webpack_require__(5);
|
|
190
|
+
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
172
191
|
|
|
173
192
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
174
|
-
var i18n_ = __webpack_require__(
|
|
193
|
+
var i18n_ = __webpack_require__(4);
|
|
175
194
|
|
|
176
195
|
// EXTERNAL MODULE: external "@splunk/ui-utils/userAgent"
|
|
177
|
-
var userAgent_ = __webpack_require__(
|
|
196
|
+
var userAgent_ = __webpack_require__(147);
|
|
178
197
|
|
|
179
198
|
// EXTERNAL MODULE: external "@splunk/react-ui/Menu"
|
|
180
|
-
var Menu_ = __webpack_require__(
|
|
199
|
+
var Menu_ = __webpack_require__(15);
|
|
181
200
|
var Menu_default = /*#__PURE__*/__webpack_require__.n(Menu_);
|
|
182
201
|
|
|
183
202
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -185,7 +204,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
185
204
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
186
205
|
|
|
187
206
|
// EXTERNAL MODULE: external "@splunk/react-ui/WaitSpinner"
|
|
188
|
-
var WaitSpinner_ = __webpack_require__(
|
|
207
|
+
var WaitSpinner_ = __webpack_require__(148);
|
|
189
208
|
var WaitSpinner_default = /*#__PURE__*/__webpack_require__.n(WaitSpinner_);
|
|
190
209
|
|
|
191
210
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -246,7 +265,7 @@ var StyledLoadingMessage = external_styled_components_default.a.div.withConfig({
|
|
|
246
265
|
}));
|
|
247
266
|
|
|
248
267
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
249
|
-
var updateReactRef = __webpack_require__(
|
|
268
|
+
var updateReactRef = __webpack_require__(12);
|
|
250
269
|
|
|
251
270
|
// CONCATENATED MODULE: ./src/ResultsMenu/ResultsMenu.tsx
|
|
252
271
|
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); }
|
|
@@ -283,6 +302,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
283
302
|
|
|
284
303
|
|
|
285
304
|
|
|
305
|
+
|
|
286
306
|
var propTypes = {
|
|
287
307
|
animateLoading: external_prop_types_default.a.bool,
|
|
288
308
|
children: external_prop_types_default.a.node,
|
|
@@ -485,7 +505,7 @@ var ResultsMenu_ResultsMenu = /*#__PURE__*/function (_Component) {
|
|
|
485
505
|
placement = _this$props3.placement,
|
|
486
506
|
style = _this$props3.style,
|
|
487
507
|
tabIndex = _this$props3.tabIndex;
|
|
488
|
-
var otherProps =
|
|
508
|
+
var otherProps = omit_default()(this.props, keys_default()(ResultsMenu.propTypes));
|
|
489
509
|
// Assumption: that you cannot be filtered if you are a result
|
|
490
510
|
var hasResults = external_react_["Children"].toArray(children).filter(external_react_["isValidElement"]).some(function (_ref) {
|
|
491
511
|
var type = _ref.type;
|
|
@@ -501,7 +521,7 @@ var ResultsMenu_ResultsMenu = /*#__PURE__*/function (_Component) {
|
|
|
501
521
|
onWheel: onScrollBottom ? this.handleWheelMenu : undefined,
|
|
502
522
|
onMouseEnter: onScrollBottom ? this.handleMouseEnter : undefined,
|
|
503
523
|
onMouseLeave: onScrollBottom ? this.handleMouseLeave : undefined
|
|
504
|
-
},
|
|
524
|
+
}, omit_default()(otherProps, 'tabIndex')), placement !== 'above' && childrenStart, placement === 'above' && this.renderFooterMessage(), /*#__PURE__*/external_react_default.a.createElement(Menu_["MenuContext"].Provider, {
|
|
505
525
|
value: {
|
|
506
526
|
role: 'listbox'
|
|
507
527
|
}
|
|
@@ -544,13 +564,6 @@ _defineProperty(ResultsMenu_ResultsMenu, "defaultProps", defaultProps);
|
|
|
544
564
|
|
|
545
565
|
|
|
546
566
|
|
|
547
|
-
/***/ }),
|
|
548
|
-
|
|
549
|
-
/***/ 2:
|
|
550
|
-
/***/ (function(module, exports) {
|
|
551
|
-
|
|
552
|
-
module.exports = require("react");
|
|
553
|
-
|
|
554
567
|
/***/ }),
|
|
555
568
|
|
|
556
569
|
/***/ 3:
|
|
@@ -563,14 +576,14 @@ module.exports = require("styled-components");
|
|
|
563
576
|
/***/ 4:
|
|
564
577
|
/***/ (function(module, exports) {
|
|
565
578
|
|
|
566
|
-
module.exports = require("
|
|
579
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
567
580
|
|
|
568
581
|
/***/ }),
|
|
569
582
|
|
|
570
583
|
/***/ 5:
|
|
571
584
|
/***/ (function(module, exports) {
|
|
572
585
|
|
|
573
|
-
module.exports = require("
|
|
586
|
+
module.exports = require("lodash/omit");
|
|
574
587
|
|
|
575
588
|
/***/ })
|
|
576
589
|
|
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 = 223);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 2:
|
|
105
|
+
/***/ (function(module, exports) {
|
|
106
|
+
|
|
107
|
+
module.exports = require("react");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ 223:
|
|
105
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
113
|
|
|
107
114
|
"use strict";
|
|
@@ -170,13 +177,6 @@ ScreenReaderContent.propTypes = propTypes;
|
|
|
170
177
|
// CONCATENATED MODULE: ./src/ScreenReaderContent/index.ts
|
|
171
178
|
|
|
172
179
|
|
|
173
|
-
/***/ }),
|
|
174
|
-
|
|
175
|
-
/***/ 2:
|
|
176
|
-
/***/ (function(module, exports) {
|
|
177
|
-
|
|
178
|
-
module.exports = require("react");
|
|
179
|
-
|
|
180
180
|
/***/ }),
|
|
181
181
|
|
|
182
182
|
/***/ 3:
|