@splunk/react-ui 4.20.0 → 4.21.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 +114 -230
- package/Anchor.js +74 -150
- package/Animation.js +52 -124
- package/AnimationToggle.js +86 -146
- package/Box.js +77 -153
- package/Breadcrumbs.js +105 -197
- package/Button.js +168 -316
- package/ButtonGroup.js +84 -168
- package/ButtonSimple.js +224 -324
- package/CHANGELOG.md +21 -0
- package/Calendar.js +264 -462
- package/Card.js +223 -371
- package/CardLayout.js +87 -163
- package/Chip.js +199 -323
- package/Clickable.js +128 -246
- package/CloseButton.js +92 -200
- package/Code.js +162 -250
- package/CollapsiblePanel.js +214 -370
- package/Color.js +267 -495
- package/ColumnLayout.js +152 -254
- package/ComboBox.js +197 -371
- package/Concertina.js +214 -374
- package/ControlGroup.js +164 -288
- package/Date.js +154 -304
- package/DefinitionList.js +104 -180
- package/Divider.js +80 -156
- package/Dropdown.js +121 -263
- package/DualListbox.js +408 -601
- package/EventListener.js +70 -138
- package/File.js +343 -547
- package/FormRows.js +232 -414
- package/Heading.js +94 -164
- package/Image.js +167 -323
- package/JSONTree.js +166 -314
- package/Layer.js +221 -388
- package/Link.js +133 -239
- package/List.js +85 -161
- package/Markdown.js +230 -354
- package/Menu.js +489 -760
- package/Message.js +248 -437
- package/MessageBar.js +220 -408
- package/Modal.js +201 -365
- package/ModalLayer.js +96 -196
- package/Monogram.js +112 -204
- package/Multiselect.js +1135 -1761
- package/Number.js +178 -334
- package/Paginator.js +170 -336
- package/Paragraph.js +77 -153
- package/Popover.js +370 -620
- package/Progress.js +139 -255
- package/RadioBar.js +156 -280
- package/RadioList.js +182 -282
- package/Resize.js +173 -307
- package/ResultsMenu.js +161 -303
- package/ScreenReaderContent.js +75 -151
- package/Scroll.js +125 -267
- package/ScrollContainerContext.js +129 -201
- package/Search.js +188 -354
- package/Select.js +1028 -1430
- package/SidePanel.js +106 -214
- package/Slider.js +198 -348
- package/SlidingPanels.js +138 -280
- package/SplitButton.js +141 -273
- package/StaticContent.js +84 -168
- package/StepBar.js +138 -246
- package/Switch.js +261 -385
- package/TabBar.js +261 -398
- package/TabLayout.js +122 -238
- package/Table.js +943 -1448
- package/Text.js +335 -549
- package/TextArea.js +315 -537
- package/Tooltip.js +152 -292
- package/TransitionOpen.js +118 -242
- package/Typography.js +81 -157
- package/WaitSpinner.js +117 -209
- package/package.json +14 -15
- package/stubs-splunkui.d.ts +4 -1
- package/types/src/ComboBox/Option.d.ts +1 -1
- package/types/src/Concertina/Concertina.d.ts +4 -0
- package/types/src/Link/Link.d.ts +7 -3
- package/types/src/Link/docs/examples/NewWindow.d.ts +2 -0
- package/types/src/Markdown/Markdown.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
- package/types/src/Menu/Item.d.ts +1 -1
- package/types/src/Menu/Menu.d.ts +1 -0
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -0
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Search/Option.d.ts +1 -1
- package/types/src/Select/Option.d.ts +1 -1
- package/types/src/Select/OptionBase.d.ts +1 -1
- package/types/src/fixtures/FetchOptions.d.ts +2 -8
- package/useForceUpdate.js +46 -110
- package/useKeyPress.js +50 -107
- package/usePrevious.js +47 -111
- package/useRovingFocus.js +53 -133
- package/types/src/Link/docs/examples/NewTab.d.ts +0 -2
- /package/types/src/Table/docs/examples/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
- /package/types/src/Table/docs/examples/prisma/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
|
@@ -1,103 +1,132 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
3
|
-
/******/ // The
|
|
4
|
-
/******/ var
|
|
5
|
-
/******/
|
|
6
|
-
|
|
7
|
-
/******/
|
|
8
|
-
/******/
|
|
9
|
-
/******/ //
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
/******/
|
|
16
|
-
/******/
|
|
17
|
-
/******/
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ (() => {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = (module) => {
|
|
11
|
+
/******/ var getter = module && module.__esModule ?
|
|
12
|
+
/******/ () => (module['default']) :
|
|
13
|
+
/******/ () => (module);
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ })();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ (() => {
|
|
21
|
+
/******/ // define getter functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
23
|
+
/******/ for(var key in definition) {
|
|
24
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ }
|
|
28
|
+
/******/ };
|
|
29
|
+
/******/ })();
|
|
30
|
+
/******/
|
|
31
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
32
|
+
/******/ (() => {
|
|
33
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
34
|
+
/******/ })();
|
|
35
|
+
/******/
|
|
36
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
37
|
+
/******/ (() => {
|
|
38
|
+
/******/ // define __esModule on exports
|
|
39
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
40
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
41
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
42
|
+
/******/ }
|
|
43
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
18
44
|
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/
|
|
21
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
-
/******/
|
|
23
|
-
/******/ // Flag the module as loaded
|
|
24
|
-
/******/ module.l = true;
|
|
25
|
-
/******/
|
|
26
|
-
/******/ // Return the exports of the module
|
|
27
|
-
/******/ return module.exports;
|
|
28
|
-
/******/ }
|
|
29
|
-
/******/
|
|
30
|
-
/******/
|
|
31
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
-
/******/ __webpack_require__.m = modules;
|
|
33
|
-
/******/
|
|
34
|
-
/******/ // expose the module cache
|
|
35
|
-
/******/ __webpack_require__.c = installedModules;
|
|
36
|
-
/******/
|
|
37
|
-
/******/ // define getter function for harmony exports
|
|
38
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
-
/******/ }
|
|
42
|
-
/******/ };
|
|
43
|
-
/******/
|
|
44
|
-
/******/ // define __esModule on exports
|
|
45
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
-
/******/ }
|
|
49
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
-
/******/ };
|
|
51
|
-
/******/
|
|
52
|
-
/******/ // create a fake namespace object
|
|
53
|
-
/******/ // mode & 1: value is a module id, require it
|
|
54
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
-
/******/ // mode & 4: return value when already ns object
|
|
56
|
-
/******/ // mode & 8|1: behave like require
|
|
57
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
-
/******/ if(mode & 8) return value;
|
|
60
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
-
/******/ var ns = Object.create(null);
|
|
62
|
-
/******/ __webpack_require__.r(ns);
|
|
63
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
-
/******/ return ns;
|
|
66
|
-
/******/ };
|
|
67
|
-
/******/
|
|
68
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
-
/******/ __webpack_require__.n = function(module) {
|
|
70
|
-
/******/ var getter = module && module.__esModule ?
|
|
71
|
-
/******/ function getDefault() { return module['default']; } :
|
|
72
|
-
/******/ function getModuleExports() { return module; };
|
|
73
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
-
/******/ return getter;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
-
/******/
|
|
80
|
-
/******/ // __webpack_public_path__
|
|
81
|
-
/******/ __webpack_require__.p = "";
|
|
82
|
-
/******/
|
|
83
|
-
/******/
|
|
84
|
-
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = 242);
|
|
86
|
-
/******/ })
|
|
45
|
+
/******/ })();
|
|
46
|
+
/******/
|
|
87
47
|
/************************************************************************/
|
|
88
|
-
|
|
48
|
+
var __webpack_exports__ = {};
|
|
49
|
+
// ESM COMPAT FLAG
|
|
50
|
+
__webpack_require__.r(__webpack_exports__);
|
|
51
|
+
|
|
52
|
+
// EXPORTS
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
ScrollContainerContext: () => (/* reexport */ ScrollContainerContext),
|
|
55
|
+
ScrollContainerProvider: () => (/* reexport */ ScrollContainerProvider),
|
|
56
|
+
"default": () => (/* reexport */ ScrollContainerContext_ScrollContainerContext)
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
;// CONCATENATED MODULE: external "react"
|
|
60
|
+
const external_react_namespaceObject = require("react");
|
|
61
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
|
|
62
|
+
;// CONCATENATED MODULE: ./src/utils/ssrDocument.ts
|
|
63
|
+
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
64
|
+
var ssrDocument = {
|
|
65
|
+
body: {
|
|
66
|
+
appendChild: function appendChild() {
|
|
67
|
+
return [];
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
addEventListener: function addEventListener() {},
|
|
71
|
+
removeEventListener: function removeEventListener() {},
|
|
72
|
+
activeElement: {
|
|
73
|
+
blur: function blur() {},
|
|
74
|
+
nodeName: ''
|
|
75
|
+
},
|
|
76
|
+
querySelector: function querySelector() {
|
|
77
|
+
return null;
|
|
78
|
+
},
|
|
79
|
+
querySelectorAll: function querySelectorAll() {
|
|
80
|
+
return [];
|
|
81
|
+
},
|
|
82
|
+
getElementById: function getElementById() {
|
|
83
|
+
return null;
|
|
84
|
+
},
|
|
85
|
+
createEvent: function createEvent() {
|
|
86
|
+
return {
|
|
87
|
+
initEvent: function initEvent() {}
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
createElement: function createElement() {
|
|
91
|
+
return {
|
|
92
|
+
children: [],
|
|
93
|
+
childNodes: [],
|
|
94
|
+
style: {},
|
|
95
|
+
setAttribute: function setAttribute() {},
|
|
96
|
+
getElementsByTagName: function getElementsByTagName() {
|
|
97
|
+
return [];
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
createElementNS: function createElementNS() {
|
|
102
|
+
return {};
|
|
103
|
+
},
|
|
104
|
+
importNode: function importNode() {
|
|
105
|
+
return null;
|
|
106
|
+
},
|
|
107
|
+
location: {
|
|
108
|
+
hash: '',
|
|
109
|
+
host: '',
|
|
110
|
+
hostname: '',
|
|
111
|
+
href: '',
|
|
112
|
+
origin: '',
|
|
113
|
+
pathname: '',
|
|
114
|
+
protocol: '',
|
|
115
|
+
search: ''
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
function getDocument() {
|
|
120
|
+
var doc = typeof document !== 'undefined' ? document : ssrDocument;
|
|
121
|
+
return doc;
|
|
122
|
+
}
|
|
89
123
|
|
|
90
|
-
/***/ 18:
|
|
91
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
124
|
|
|
93
|
-
|
|
94
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getWindow; });
|
|
95
|
-
/* unused harmony export ssrWindow */
|
|
96
|
-
/* harmony import */ var _ssrDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
|
|
125
|
+
;// CONCATENATED MODULE: ./src/utils/ssrWindow.ts
|
|
97
126
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
98
127
|
|
|
99
128
|
var ssrWindow = {
|
|
100
|
-
document:
|
|
129
|
+
document: ssrDocument,
|
|
101
130
|
navigator: {
|
|
102
131
|
userAgent: ''
|
|
103
132
|
},
|
|
@@ -160,36 +189,7 @@ function getWindow() {
|
|
|
160
189
|
}
|
|
161
190
|
|
|
162
191
|
|
|
163
|
-
|
|
164
|
-
/***/ }),
|
|
165
|
-
|
|
166
|
-
/***/ 2:
|
|
167
|
-
/***/ (function(module, exports) {
|
|
168
|
-
|
|
169
|
-
module.exports = require("react");
|
|
170
|
-
|
|
171
|
-
/***/ }),
|
|
172
|
-
|
|
173
|
-
/***/ 242:
|
|
174
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
175
|
-
|
|
176
|
-
"use strict";
|
|
177
|
-
// ESM COMPAT FLAG
|
|
178
|
-
__webpack_require__.r(__webpack_exports__);
|
|
179
|
-
|
|
180
|
-
// EXPORTS
|
|
181
|
-
__webpack_require__.d(__webpack_exports__, "default", function() { return /* reexport */ ScrollContainerContext_ScrollContainerContext; });
|
|
182
|
-
__webpack_require__.d(__webpack_exports__, "ScrollContainerContext", function() { return /* reexport */ ScrollContainerContext; });
|
|
183
|
-
__webpack_require__.d(__webpack_exports__, "ScrollContainerProvider", function() { return /* reexport */ ScrollContainerProvider; });
|
|
184
|
-
|
|
185
|
-
// EXTERNAL MODULE: external "react"
|
|
186
|
-
var external_react_ = __webpack_require__(2);
|
|
187
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
188
|
-
|
|
189
|
-
// EXTERNAL MODULE: ./src/utils/ssrWindow.ts
|
|
190
|
-
var ssrWindow = __webpack_require__(18);
|
|
191
|
-
|
|
192
|
-
// CONCATENATED MODULE: ./src/ScrollContainerContext/ScrollContainerContext.tsx
|
|
192
|
+
;// CONCATENATED MODULE: ./src/ScrollContainerContext/ScrollContainerContext.tsx
|
|
193
193
|
|
|
194
194
|
|
|
195
195
|
/**
|
|
@@ -200,90 +200,18 @@ var ssrWindow = __webpack_require__(18);
|
|
|
200
200
|
* @public
|
|
201
201
|
*/
|
|
202
202
|
|
|
203
|
-
var ScrollContainerContext = /*#__PURE__*/external_react_default.
|
|
203
|
+
var ScrollContainerContext = /*#__PURE__*/external_react_default().createContext(getWindow());
|
|
204
204
|
/**
|
|
205
205
|
* `ScrollContainerProvider` is an alias of `ScrollContainerContext.Provider`.
|
|
206
206
|
* @public
|
|
207
207
|
*/
|
|
208
208
|
|
|
209
209
|
var ScrollContainerProvider = ScrollContainerContext.Provider;
|
|
210
|
-
/* harmony default export */
|
|
211
|
-
|
|
212
|
-
// CONCATENATED MODULE: ./src/ScrollContainerContext/index.ts
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
/***/ }),
|
|
217
|
-
|
|
218
|
-
/***/ 28:
|
|
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
|
-
|
|
210
|
+
/* harmony default export */ const ScrollContainerContext_ScrollContainerContext = (ScrollContainerContext);
|
|
285
211
|
|
|
212
|
+
;// CONCATENATED MODULE: ./src/ScrollContainerContext/index.ts
|
|
286
213
|
|
|
287
|
-
/***/ })
|
|
288
214
|
|
|
289
|
-
|
|
215
|
+
module.exports = __webpack_exports__;
|
|
216
|
+
/******/ })()
|
|
217
|
+
;
|