@splunk/react-ui 4.12.1 → 4.14.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/.storybook-visual/config/snapshotResolver.js +29 -0
- package/.storybook-visual/main.js +22 -0
- package/.storybook-visual/preview.jsx +31 -0
- package/.storybook-visual/scripts/test.sh +108 -0
- package/.storybook-visual/test-runner.js +108 -0
- package/Accordion.js +4 -4
- package/Anchor.js +2 -2
- package/Animation.js +6 -6
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +23 -23
- package/ButtonGroup.js +2 -2
- package/ButtonSimple.js +7 -7
- package/CHANGELOG.md +33 -0
- package/Calendar.js +390 -95
- package/Card.js +25 -23
- package/CardLayout.js +2 -2
- package/Chip.js +17 -17
- package/Clickable.js +4 -4
- package/CloseButton.js +15 -15
- package/Code.js +4 -4
- package/CollapsiblePanel.js +15 -11
- package/Color.js +26 -26
- package/ColumnLayout.js +6 -6
- package/ComboBox.js +19 -19
- package/Concertina.js +6 -6
- package/ControlGroup.js +14 -13
- package/Date.js +118 -55
- package/DefinitionList.js +2 -2
- package/Divider.js +194 -0
- package/Dropdown.js +17 -13
- package/EventListener.js +4 -4
- package/File.js +23 -23
- package/FormRows.js +14 -14
- package/Heading.js +2 -2
- package/Image.js +19 -19
- package/JSONTree.js +2 -2
- package/Layer.js +85 -8
- package/Link.js +4 -4
- package/List.js +2 -2
- package/Markdown.js +18 -18
- package/Menu.js +51 -52
- package/Message.js +39 -39
- package/MessageBar.js +29 -29
- package/Modal.js +63 -37
- package/ModalLayer.js +11 -11
- package/Monogram.js +2 -2
- package/Multiselect.js +134 -125
- package/Number.js +8 -6
- package/Paginator.js +48 -48
- package/Paragraph.js +2 -2
- package/Popover.js +186 -19
- package/Progress.js +8 -8
- package/RadioBar.js +2 -2
- package/RadioList.js +4 -4
- package/Resize.js +4 -4
- package/ResultsMenu.js +20 -20
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +13 -13
- package/ScrollContainerContext.js +154 -3
- package/Search.js +25 -25
- package/Select.js +114 -105
- package/SidePanel.js +6 -6
- package/Slider.js +14 -14
- package/SlidingPanels.js +11 -11
- package/SplitButton.js +511 -0
- package/StaticContent.js +2 -2
- package/StepBar.js +10 -10
- package/Switch.js +8 -8
- package/TabBar.js +15 -15
- package/TabLayout.js +6 -6
- package/Table.js +275 -76
- package/Text.js +51 -42
- package/TextArea.js +41 -33
- package/Tooltip.js +17 -11
- package/TransitionOpen.js +39 -15
- package/Typography.js +4 -4
- package/WaitSpinner.js +4 -4
- package/package.json +12 -14
- package/test-runner-jest.config.js +18 -5
- package/types/src/Button/Button.d.ts +1 -1
- package/types/src/Calendar/Calendar.d.ts +15 -2
- package/types/src/Calendar/DateTable.d.ts +7 -3
- package/types/src/Calendar/Day.d.ts +14 -5
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +7 -3
- package/types/src/Date/Date.d.ts +17 -8
- package/types/src/Date/docs/examples/CustomDate.d.ts +2 -2
- package/types/src/Date/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Date/docs/examples/prisma/WithoutCalendar.d.ts +2 -0
- package/types/src/Divider/Divider.d.ts +20 -0
- package/types/src/Divider/docs/examples/AriaHidden.d.ts +2 -0
- package/types/src/Divider/docs/examples/Basic.d.ts +2 -0
- package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -0
- package/types/src/Divider/docs/examples/Vertical.d.ts +2 -0
- package/types/src/Divider/index.d.ts +1 -0
- package/types/src/Dropdown/Dropdown.d.ts +11 -3
- package/types/src/Modal/Modal.d.ts +7 -3
- package/types/src/Modal/ModalContext.d.ts +1 -0
- package/types/src/Number/Number.d.ts +5 -1
- package/types/src/Popover/Popover.d.ts +5 -1
- package/types/src/Popover/getPlacement.d.ts +1 -1
- package/types/src/SplitButton/Item.d.ts +45 -0
- package/types/src/SplitButton/SplitButton.d.ts +41 -0
- package/types/src/SplitButton/docs/examples/Basic.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/prisma/Basic.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/prisma/Disabled.d.ts +1 -0
- package/types/src/SplitButton/index.d.ts +2 -0
- package/types/src/Table/HeadCell.d.ts +4 -1
- package/types/src/Table/HeadDropdownCell.d.ts +10 -3
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +14 -0
- package/types/src/Text/Text.d.ts +5 -1
- package/types/src/TextArea/TextArea.d.ts +5 -1
- package/types/src/Tooltip/Tooltip.d.ts +10 -5
- package/types/src/TransitionOpen/TransitionOpen.d.ts +7 -3
- package/types/src/useForceUpdate/index.d.ts +2 -0
- package/types/src/useForceUpdate/useForceUpdate.d.ts +9 -0
- package/types/src/useKeyPress/index.d.ts +37 -0
- package/useForceUpdate.js +151 -0
- package/useKeyPress.js +160 -0
- package/usePrevious.js +2 -2
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 = 172);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 10:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -142,7 +142,7 @@ module.exports = require("@splunk/react-ui/EventListener");
|
|
|
142
142
|
|
|
143
143
|
/***/ }),
|
|
144
144
|
|
|
145
|
-
/***/
|
|
145
|
+
/***/ 172:
|
|
146
146
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
147
147
|
|
|
148
148
|
"use strict";
|
|
@@ -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__(10);
|
|
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); }
|
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 = 173);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,14 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
105
|
-
/***/ (function(module, exports) {
|
|
106
|
-
|
|
107
|
-
module.exports = require("@splunk/react-ui/WaitSpinner");
|
|
108
|
-
|
|
109
|
-
/***/ }),
|
|
110
|
-
|
|
111
|
-
/***/ 11:
|
|
104
|
+
/***/ 10:
|
|
112
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
106
|
|
|
114
107
|
"use strict";
|
|
@@ -133,6 +126,20 @@ function updateReactRef(ref, current) {
|
|
|
133
126
|
|
|
134
127
|
|
|
135
128
|
|
|
129
|
+
/***/ }),
|
|
130
|
+
|
|
131
|
+
/***/ 103:
|
|
132
|
+
/***/ (function(module, exports) {
|
|
133
|
+
|
|
134
|
+
module.exports = require("@splunk/ui-utils/userAgent");
|
|
135
|
+
|
|
136
|
+
/***/ }),
|
|
137
|
+
|
|
138
|
+
/***/ 104:
|
|
139
|
+
/***/ (function(module, exports) {
|
|
140
|
+
|
|
141
|
+
module.exports = require("@splunk/react-ui/WaitSpinner");
|
|
142
|
+
|
|
136
143
|
/***/ }),
|
|
137
144
|
|
|
138
145
|
/***/ 13:
|
|
@@ -142,7 +149,7 @@ module.exports = require("@splunk/react-ui/Menu");
|
|
|
142
149
|
|
|
143
150
|
/***/ }),
|
|
144
151
|
|
|
145
|
-
/***/
|
|
152
|
+
/***/ 173:
|
|
146
153
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
147
154
|
|
|
148
155
|
"use strict";
|
|
@@ -167,7 +174,7 @@ var external_lodash_ = __webpack_require__(4);
|
|
|
167
174
|
var i18n_ = __webpack_require__(5);
|
|
168
175
|
|
|
169
176
|
// EXTERNAL MODULE: external "@splunk/ui-utils/userAgent"
|
|
170
|
-
var userAgent_ = __webpack_require__(
|
|
177
|
+
var userAgent_ = __webpack_require__(103);
|
|
171
178
|
|
|
172
179
|
// EXTERNAL MODULE: external "@splunk/react-ui/Menu"
|
|
173
180
|
var Menu_ = __webpack_require__(13);
|
|
@@ -178,7 +185,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
178
185
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
179
186
|
|
|
180
187
|
// EXTERNAL MODULE: external "@splunk/react-ui/WaitSpinner"
|
|
181
|
-
var WaitSpinner_ = __webpack_require__(
|
|
188
|
+
var WaitSpinner_ = __webpack_require__(104);
|
|
182
189
|
var WaitSpinner_default = /*#__PURE__*/__webpack_require__.n(WaitSpinner_);
|
|
183
190
|
|
|
184
191
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -239,7 +246,7 @@ var StyledLoadingMessage = external_styled_components_default.a.div.withConfig({
|
|
|
239
246
|
}));
|
|
240
247
|
|
|
241
248
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
242
|
-
var updateReactRef = __webpack_require__(
|
|
249
|
+
var updateReactRef = __webpack_require__(10);
|
|
243
250
|
|
|
244
251
|
// CONCATENATED MODULE: ./src/ResultsMenu/ResultsMenu.tsx
|
|
245
252
|
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); }
|
|
@@ -565,13 +572,6 @@ module.exports = require("lodash");
|
|
|
565
572
|
|
|
566
573
|
module.exports = require("@splunk/ui-utils/i18n");
|
|
567
574
|
|
|
568
|
-
/***/ }),
|
|
569
|
-
|
|
570
|
-
/***/ 99:
|
|
571
|
-
/***/ (function(module, exports) {
|
|
572
|
-
|
|
573
|
-
module.exports = require("@splunk/ui-utils/userAgent");
|
|
574
|
-
|
|
575
575
|
/***/ })
|
|
576
576
|
|
|
577
577
|
/******/ });
|
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 = 174);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 174:
|
|
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 = 146);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 10:
|
|
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
|
+
/***/ 146:
|
|
132
132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
133
133
|
|
|
134
134
|
"use strict";
|
|
@@ -150,7 +150,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
150
150
|
var external_lodash_ = __webpack_require__(4);
|
|
151
151
|
|
|
152
152
|
// EXTERNAL MODULE: external "@splunk/react-ui/Animation"
|
|
153
|
-
var Animation_ = __webpack_require__(
|
|
153
|
+
var Animation_ = __webpack_require__(34);
|
|
154
154
|
|
|
155
155
|
// EXTERNAL MODULE: external "styled-components"
|
|
156
156
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -160,17 +160,17 @@ var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(exte
|
|
|
160
160
|
var themes_ = __webpack_require__(0);
|
|
161
161
|
|
|
162
162
|
// EXTERNAL MODULE: external "react-spring"
|
|
163
|
-
var external_react_spring_ = __webpack_require__(
|
|
163
|
+
var external_react_spring_ = __webpack_require__(21);
|
|
164
164
|
|
|
165
165
|
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
166
166
|
var EventListener_ = __webpack_require__(15);
|
|
167
167
|
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
168
168
|
|
|
169
169
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
170
|
-
var ScrollContainerContext_ = __webpack_require__(
|
|
170
|
+
var ScrollContainerContext_ = __webpack_require__(39);
|
|
171
171
|
|
|
172
172
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
173
|
-
var updateReactRef = __webpack_require__(
|
|
173
|
+
var updateReactRef = __webpack_require__(10);
|
|
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); }
|
|
@@ -547,17 +547,17 @@ module.exports = require("@splunk/react-ui/EventListener");
|
|
|
547
547
|
|
|
548
548
|
/***/ }),
|
|
549
549
|
|
|
550
|
-
/***/
|
|
550
|
+
/***/ 2:
|
|
551
551
|
/***/ (function(module, exports) {
|
|
552
552
|
|
|
553
|
-
module.exports = require("react
|
|
553
|
+
module.exports = require("react");
|
|
554
554
|
|
|
555
555
|
/***/ }),
|
|
556
556
|
|
|
557
|
-
/***/
|
|
557
|
+
/***/ 21:
|
|
558
558
|
/***/ (function(module, exports) {
|
|
559
559
|
|
|
560
|
-
module.exports = require("react");
|
|
560
|
+
module.exports = require("react-spring");
|
|
561
561
|
|
|
562
562
|
/***/ }),
|
|
563
563
|
|
|
@@ -568,14 +568,14 @@ module.exports = require("styled-components");
|
|
|
568
568
|
|
|
569
569
|
/***/ }),
|
|
570
570
|
|
|
571
|
-
/***/
|
|
571
|
+
/***/ 34:
|
|
572
572
|
/***/ (function(module, exports) {
|
|
573
573
|
|
|
574
574
|
module.exports = require("@splunk/react-ui/Animation");
|
|
575
575
|
|
|
576
576
|
/***/ }),
|
|
577
577
|
|
|
578
|
-
/***/
|
|
578
|
+
/***/ 39:
|
|
579
579
|
/***/ (function(module, exports) {
|
|
580
580
|
|
|
581
581
|
module.exports = require("@splunk/react-ui/ScrollContainerContext");
|
|
@@ -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 = 185);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 185:
|
|
91
91
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
@@ -103,8 +103,12 @@ __webpack_require__.d(__webpack_exports__, "ScrollContainerProvider", function()
|
|
|
103
103
|
var external_react_ = __webpack_require__(2);
|
|
104
104
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
105
105
|
|
|
106
|
+
// EXTERNAL MODULE: ./src/utils/ssrWindow.ts
|
|
107
|
+
var ssrWindow = __webpack_require__(19);
|
|
108
|
+
|
|
106
109
|
// CONCATENATED MODULE: ./src/ScrollContainerContext/ScrollContainerContext.tsx
|
|
107
110
|
|
|
111
|
+
|
|
108
112
|
/**
|
|
109
113
|
* A React context used to manage a custom scroll container for child elements
|
|
110
114
|
* that need to react to scrolling. The context type is `Window | Document | HTMLElement | null | undefined`.
|
|
@@ -113,7 +117,7 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
|
|
|
113
117
|
* @public
|
|
114
118
|
*/
|
|
115
119
|
|
|
116
|
-
var ScrollContainerContext = /*#__PURE__*/external_react_default.a.createContext(
|
|
120
|
+
var ScrollContainerContext = /*#__PURE__*/external_react_default.a.createContext(Object(ssrWindow["a" /* getWindow */])());
|
|
117
121
|
/**
|
|
118
122
|
* `ScrollContainerProvider` is an alias of `ScrollContainerContext.Provider`.
|
|
119
123
|
* @public
|
|
@@ -126,6 +130,82 @@ var ScrollContainerProvider = ScrollContainerContext.Provider;
|
|
|
126
130
|
|
|
127
131
|
|
|
128
132
|
|
|
133
|
+
/***/ }),
|
|
134
|
+
|
|
135
|
+
/***/ 19:
|
|
136
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
137
|
+
|
|
138
|
+
"use strict";
|
|
139
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getWindow; });
|
|
140
|
+
/* unused harmony export ssrWindow */
|
|
141
|
+
/* harmony import */ var _ssrDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27);
|
|
142
|
+
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
143
|
+
|
|
144
|
+
var ssrWindow = {
|
|
145
|
+
document: _ssrDocument__WEBPACK_IMPORTED_MODULE_0__[/* ssrDocument */ "b"],
|
|
146
|
+
navigator: {
|
|
147
|
+
userAgent: ''
|
|
148
|
+
},
|
|
149
|
+
location: {
|
|
150
|
+
hash: '',
|
|
151
|
+
host: '',
|
|
152
|
+
hostname: '',
|
|
153
|
+
href: '',
|
|
154
|
+
origin: '',
|
|
155
|
+
pathname: '',
|
|
156
|
+
protocol: '',
|
|
157
|
+
search: ''
|
|
158
|
+
},
|
|
159
|
+
history: {
|
|
160
|
+
replaceState: function replaceState() {},
|
|
161
|
+
pushState: function pushState() {},
|
|
162
|
+
go: function go() {},
|
|
163
|
+
back: function back() {}
|
|
164
|
+
},
|
|
165
|
+
CustomEvent: function CustomEvent() {
|
|
166
|
+
return this;
|
|
167
|
+
},
|
|
168
|
+
addEventListener: function addEventListener() {},
|
|
169
|
+
removeEventListener: function removeEventListener() {},
|
|
170
|
+
getComputedStyle: function getComputedStyle() {
|
|
171
|
+
return {
|
|
172
|
+
getPropertyValue: function getPropertyValue() {
|
|
173
|
+
return '';
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
},
|
|
177
|
+
Image: function Image() {},
|
|
178
|
+
Date: function Date() {},
|
|
179
|
+
screen: {},
|
|
180
|
+
setTimeout: function setTimeout() {},
|
|
181
|
+
clearTimeout: function clearTimeout() {},
|
|
182
|
+
matchMedia: function matchMedia() {
|
|
183
|
+
return {};
|
|
184
|
+
},
|
|
185
|
+
requestAnimationFrame: function requestAnimationFrame(callback) {
|
|
186
|
+
if (typeof setTimeout === 'undefined') {
|
|
187
|
+
callback();
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return setTimeout(callback, 0);
|
|
192
|
+
},
|
|
193
|
+
cancelAnimationFrame: function cancelAnimationFrame(id) {
|
|
194
|
+
if (typeof setTimeout === 'undefined') {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
clearTimeout(id);
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
function getWindow() {
|
|
203
|
+
var win = typeof window !== 'undefined' ? window : ssrWindow;
|
|
204
|
+
return win;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
129
209
|
/***/ }),
|
|
130
210
|
|
|
131
211
|
/***/ 2:
|
|
@@ -133,6 +213,77 @@ var ScrollContainerProvider = ScrollContainerContext.Provider;
|
|
|
133
213
|
|
|
134
214
|
module.exports = require("react");
|
|
135
215
|
|
|
216
|
+
/***/ }),
|
|
217
|
+
|
|
218
|
+
/***/ 27:
|
|
219
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
220
|
+
|
|
221
|
+
"use strict";
|
|
222
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getDocument; });
|
|
223
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ssrDocument; });
|
|
224
|
+
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
225
|
+
var ssrDocument = {
|
|
226
|
+
body: {
|
|
227
|
+
appendChild: function appendChild() {
|
|
228
|
+
return [];
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
addEventListener: function addEventListener() {},
|
|
232
|
+
removeEventListener: function removeEventListener() {},
|
|
233
|
+
activeElement: {
|
|
234
|
+
blur: function blur() {},
|
|
235
|
+
nodeName: ''
|
|
236
|
+
},
|
|
237
|
+
querySelector: function querySelector() {
|
|
238
|
+
return null;
|
|
239
|
+
},
|
|
240
|
+
querySelectorAll: function querySelectorAll() {
|
|
241
|
+
return [];
|
|
242
|
+
},
|
|
243
|
+
getElementById: function getElementById() {
|
|
244
|
+
return null;
|
|
245
|
+
},
|
|
246
|
+
createEvent: function createEvent() {
|
|
247
|
+
return {
|
|
248
|
+
initEvent: function initEvent() {}
|
|
249
|
+
};
|
|
250
|
+
},
|
|
251
|
+
createElement: function createElement() {
|
|
252
|
+
return {
|
|
253
|
+
children: [],
|
|
254
|
+
childNodes: [],
|
|
255
|
+
style: {},
|
|
256
|
+
setAttribute: function setAttribute() {},
|
|
257
|
+
getElementsByTagName: function getElementsByTagName() {
|
|
258
|
+
return [];
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
},
|
|
262
|
+
createElementNS: function createElementNS() {
|
|
263
|
+
return {};
|
|
264
|
+
},
|
|
265
|
+
importNode: function importNode() {
|
|
266
|
+
return null;
|
|
267
|
+
},
|
|
268
|
+
location: {
|
|
269
|
+
hash: '',
|
|
270
|
+
host: '',
|
|
271
|
+
hostname: '',
|
|
272
|
+
href: '',
|
|
273
|
+
origin: '',
|
|
274
|
+
pathname: '',
|
|
275
|
+
protocol: '',
|
|
276
|
+
search: ''
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
function getDocument() {
|
|
281
|
+
var doc = typeof document !== 'undefined' ? document : ssrDocument;
|
|
282
|
+
return doc;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
136
287
|
/***/ })
|
|
137
288
|
|
|
138
289
|
/******/ });
|
package/Search.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 175);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -95,20 +95,6 @@ module.exports = require("prop-types");
|
|
|
95
95
|
/***/ }),
|
|
96
96
|
|
|
97
97
|
/***/ 10:
|
|
98
|
-
/***/ (function(module, exports) {
|
|
99
|
-
|
|
100
|
-
module.exports = require("@splunk/ui-utils/id");
|
|
101
|
-
|
|
102
|
-
/***/ }),
|
|
103
|
-
|
|
104
|
-
/***/ 101:
|
|
105
|
-
/***/ (function(module, exports) {
|
|
106
|
-
|
|
107
|
-
module.exports = require("@splunk/react-ui/usePrevious");
|
|
108
|
-
|
|
109
|
-
/***/ }),
|
|
110
|
-
|
|
111
|
-
/***/ 11:
|
|
112
98
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
99
|
|
|
114
100
|
"use strict";
|
|
@@ -133,6 +119,20 @@ function updateReactRef(ref, current) {
|
|
|
133
119
|
|
|
134
120
|
|
|
135
121
|
|
|
122
|
+
/***/ }),
|
|
123
|
+
|
|
124
|
+
/***/ 105:
|
|
125
|
+
/***/ (function(module, exports) {
|
|
126
|
+
|
|
127
|
+
module.exports = require("@splunk/react-ui/usePrevious");
|
|
128
|
+
|
|
129
|
+
/***/ }),
|
|
130
|
+
|
|
131
|
+
/***/ 11:
|
|
132
|
+
/***/ (function(module, exports) {
|
|
133
|
+
|
|
134
|
+
module.exports = require("@splunk/ui-utils/id");
|
|
135
|
+
|
|
136
136
|
/***/ }),
|
|
137
137
|
|
|
138
138
|
/***/ 13:
|
|
@@ -142,7 +142,7 @@ module.exports = require("@splunk/react-ui/Menu");
|
|
|
142
142
|
|
|
143
143
|
/***/ }),
|
|
144
144
|
|
|
145
|
-
/***/
|
|
145
|
+
/***/ 175:
|
|
146
146
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
147
147
|
|
|
148
148
|
"use strict";
|
|
@@ -167,7 +167,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
167
167
|
var external_lodash_ = __webpack_require__(4);
|
|
168
168
|
|
|
169
169
|
// EXTERNAL MODULE: external "@splunk/ui-utils/id"
|
|
170
|
-
var id_ = __webpack_require__(
|
|
170
|
+
var id_ = __webpack_require__(11);
|
|
171
171
|
|
|
172
172
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
173
173
|
var i18n_ = __webpack_require__(5);
|
|
@@ -179,19 +179,19 @@ var keyboard_ = __webpack_require__(9);
|
|
|
179
179
|
var Menu_ = __webpack_require__(13);
|
|
180
180
|
|
|
181
181
|
// EXTERNAL MODULE: external "@splunk/react-ui/usePrevious"
|
|
182
|
-
var usePrevious_ = __webpack_require__(
|
|
182
|
+
var usePrevious_ = __webpack_require__(105);
|
|
183
183
|
var usePrevious_default = /*#__PURE__*/__webpack_require__.n(usePrevious_);
|
|
184
184
|
|
|
185
185
|
// EXTERNAL MODULE: external "@splunk/react-ui/Popover"
|
|
186
|
-
var Popover_ = __webpack_require__(
|
|
186
|
+
var Popover_ = __webpack_require__(18);
|
|
187
187
|
var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
|
|
188
188
|
|
|
189
189
|
// EXTERNAL MODULE: external "@splunk/react-ui/ResultsMenu"
|
|
190
|
-
var ResultsMenu_ = __webpack_require__(
|
|
190
|
+
var ResultsMenu_ = __webpack_require__(36);
|
|
191
191
|
var ResultsMenu_default = /*#__PURE__*/__webpack_require__.n(ResultsMenu_);
|
|
192
192
|
|
|
193
193
|
// EXTERNAL MODULE: external "@splunk/react-ui/Text"
|
|
194
|
-
var Text_ = __webpack_require__(
|
|
194
|
+
var Text_ = __webpack_require__(24);
|
|
195
195
|
var Text_default = /*#__PURE__*/__webpack_require__.n(Text_);
|
|
196
196
|
|
|
197
197
|
// CONCATENATED MODULE: ./src/Search/Option.tsx
|
|
@@ -330,7 +330,7 @@ _defineProperty(Option_Option, "defaultProps", defaultProps);
|
|
|
330
330
|
|
|
331
331
|
/* harmony default export */ var Search_Option = (Option_Option);
|
|
332
332
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
333
|
-
var updateReactRef = __webpack_require__(
|
|
333
|
+
var updateReactRef = __webpack_require__(10);
|
|
334
334
|
|
|
335
335
|
// CONCATENATED MODULE: ./src/Search/Search.tsx
|
|
336
336
|
function Search_extends() { Search_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 Search_extends.apply(this, arguments); }
|
|
@@ -746,7 +746,7 @@ Search.Heading = Menu_["Heading"];
|
|
|
746
746
|
|
|
747
747
|
/***/ }),
|
|
748
748
|
|
|
749
|
-
/***/
|
|
749
|
+
/***/ 18:
|
|
750
750
|
/***/ (function(module, exports) {
|
|
751
751
|
|
|
752
752
|
module.exports = require("@splunk/react-ui/Popover");
|
|
@@ -760,14 +760,14 @@ module.exports = require("react");
|
|
|
760
760
|
|
|
761
761
|
/***/ }),
|
|
762
762
|
|
|
763
|
-
/***/
|
|
763
|
+
/***/ 24:
|
|
764
764
|
/***/ (function(module, exports) {
|
|
765
765
|
|
|
766
766
|
module.exports = require("@splunk/react-ui/Text");
|
|
767
767
|
|
|
768
768
|
/***/ }),
|
|
769
769
|
|
|
770
|
-
/***/
|
|
770
|
+
/***/ 36:
|
|
771
771
|
/***/ (function(module, exports) {
|
|
772
772
|
|
|
773
773
|
module.exports = require("@splunk/react-ui/ResultsMenu");
|