@splunk/react-ui 4.20.0 → 4.21.1

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.
Files changed (101) hide show
  1. package/Accordion.js +425 -441
  2. package/Anchor.js +147 -193
  3. package/Animation.js +142 -166
  4. package/AnimationToggle.js +197 -253
  5. package/Box.js +145 -194
  6. package/Breadcrumbs.js +288 -298
  7. package/Button.js +488 -613
  8. package/ButtonGroup.js +160 -212
  9. package/ButtonSimple.js +543 -562
  10. package/CHANGELOG.md +26 -0
  11. package/Calendar.js +1107 -1195
  12. package/Card.js +771 -746
  13. package/CardLayout.js +205 -223
  14. package/Chip.js +509 -612
  15. package/Clickable.js +416 -472
  16. package/CloseButton.js +165 -250
  17. package/Code.js +1808 -2172
  18. package/Code.js.LICENSE.txt +8 -0
  19. package/CollapsiblePanel.js +586 -675
  20. package/Color.js +1066 -1297
  21. package/ColumnLayout.js +402 -465
  22. package/ComboBox.js +892 -969
  23. package/Concertina.js +998 -963
  24. package/ControlGroup.js +687 -718
  25. package/Date.js +567 -697
  26. package/DefinitionList.js +308 -310
  27. package/Divider.js +149 -194
  28. package/Dropdown.js +459 -558
  29. package/DualListbox.js +1480 -1735
  30. package/EventListener.js +94 -165
  31. package/File.js +1051 -1173
  32. package/FormRows.js +885 -880
  33. package/Heading.js +216 -263
  34. package/Image.js +446 -558
  35. package/JSONTree.js +690 -699
  36. package/Layer.js +442 -582
  37. package/Link.js +336 -361
  38. package/List.js +213 -237
  39. package/Markdown.js +510 -612
  40. package/Menu.js +1109 -1331
  41. package/Message.js +474 -629
  42. package/MessageBar.js +387 -561
  43. package/Modal.js +810 -798
  44. package/ModalLayer.js +326 -343
  45. package/Monogram.js +308 -368
  46. package/Multiselect.js +3558 -3998
  47. package/Number.js +729 -843
  48. package/Paginator.js +510 -615
  49. package/Paragraph.js +145 -188
  50. package/Popover.js +1470 -1693
  51. package/Progress.js +301 -362
  52. package/RadioBar.js +610 -651
  53. package/RadioList.js +483 -544
  54. package/Resize.js +530 -623
  55. package/ResultsMenu.js +494 -597
  56. package/ScreenReaderContent.js +142 -187
  57. package/Scroll.js +595 -598
  58. package/ScrollContainerContext.js +197 -278
  59. package/Search.js +745 -817
  60. package/Select.js +2441 -2746
  61. package/SidePanel.js +390 -392
  62. package/Slider.js +668 -825
  63. package/SlidingPanels.js +639 -645
  64. package/SplitButton.js +464 -499
  65. package/StaticContent.js +161 -217
  66. package/StepBar.js +386 -466
  67. package/Switch.js +710 -764
  68. package/TabBar.js +724 -815
  69. package/TabLayout.js +406 -438
  70. package/Table.js +4842 -5121
  71. package/Text.js +1169 -1351
  72. package/TextArea.js +1097 -1307
  73. package/Tooltip.js +624 -721
  74. package/TransitionOpen.js +489 -546
  75. package/Typography.js +176 -229
  76. package/WaitSpinner.js +230 -298
  77. package/package.json +14 -15
  78. package/stubs-splunkui.d.ts +4 -1
  79. package/types/src/ComboBox/Option.d.ts +1 -1
  80. package/types/src/Concertina/Concertina.d.ts +4 -0
  81. package/types/src/JSONTree/JSONTreeContext.d.ts +7 -0
  82. package/types/src/JSONTree/TreeNode.d.ts +5 -0
  83. package/types/src/Link/Link.d.ts +7 -3
  84. package/types/src/Link/docs/examples/NewWindow.d.ts +2 -0
  85. package/types/src/Markdown/Markdown.d.ts +1 -1
  86. package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
  87. package/types/src/Menu/Item.d.ts +1 -1
  88. package/types/src/Menu/Menu.d.ts +1 -0
  89. package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -0
  90. package/types/src/Multiselect/Option.d.ts +1 -1
  91. package/types/src/Search/Option.d.ts +1 -1
  92. package/types/src/Select/Option.d.ts +1 -1
  93. package/types/src/Select/OptionBase.d.ts +1 -1
  94. package/types/src/fixtures/FetchOptions.d.ts +2 -8
  95. package/useForceUpdate.js +112 -146
  96. package/useKeyPress.js +74 -128
  97. package/usePrevious.js +65 -129
  98. package/useRovingFocus.js +122 -218
  99. package/types/src/Link/docs/examples/NewTab.d.ts +0 -2
  100. /package/types/src/Table/docs/examples/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
  101. /package/types/src/Table/docs/examples/prisma/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
@@ -1,289 +1,208 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
18
- /******/ };
19
- /******/
20
- /******/ // Execute the module function
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
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 18:
91
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
-
93
- "use strict";
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);
97
- /* eslint-disable @typescript-eslint/no-empty-function */
98
-
99
- var ssrWindow = {
100
- document: _ssrDocument__WEBPACK_IMPORTED_MODULE_0__[/* ssrDocument */ "b"],
101
- navigator: {
102
- userAgent: ''
103
- },
104
- location: {
105
- hash: '',
106
- host: '',
107
- hostname: '',
108
- href: '',
109
- origin: '',
110
- pathname: '',
111
- protocol: '',
112
- search: ''
113
- },
114
- history: {
115
- replaceState: function replaceState() {},
116
- pushState: function pushState() {},
117
- go: function go() {},
118
- back: function back() {}
119
- },
120
- CustomEvent: function CustomEvent() {
121
- return this;
122
- },
123
- addEventListener: function addEventListener() {},
124
- removeEventListener: function removeEventListener() {},
125
- getComputedStyle: function getComputedStyle() {
126
- return {
127
- getPropertyValue: function getPropertyValue() {
128
- return '';
129
- }
1
+ /******/ (() => {
2
+ // webpackBootstrap
3
+ /******/ "use strict";
4
+ /******/ // The require scope
5
+ /******/ var e = {};
6
+ /******/
7
+ /************************************************************************/
8
+ /******/ /* webpack/runtime/compat get default export */
9
+ /******/ (() => {
10
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
11
+ /******/ e.n = t => {
12
+ /******/ var n = t && t.__esModule ?
13
+ /******/ () => t["default"]
14
+ /******/ : () => t
15
+ /******/;
16
+ e.d(n, {
17
+ a: n
18
+ });
19
+ /******/ return n;
20
+ /******/ };
21
+ /******/ })();
22
+ /******/
23
+ /******/ /* webpack/runtime/define property getters */
24
+ /******/ (() => {
25
+ /******/ // define getter functions for harmony exports
26
+ /******/ e.d = (t, n) => {
27
+ /******/ for (var r in n) {
28
+ /******/ if (e.o(n, r) && !e.o(t, r)) {
29
+ /******/ Object.defineProperty(t, r, {
30
+ enumerable: true,
31
+ get: n[r]
32
+ });
33
+ /******/ }
34
+ /******/ }
35
+ /******/ };
36
+ /******/ })();
37
+ /******/
38
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
39
+ /******/ (() => {
40
+ /******/ e.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)
41
+ /******/;
42
+ })();
43
+ /******/
44
+ /******/ /* webpack/runtime/make namespace object */
45
+ /******/ (() => {
46
+ /******/ // define __esModule on exports
47
+ /******/ e.r = e => {
48
+ /******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
49
+ /******/ Object.defineProperty(e, Symbol.toStringTag, {
50
+ value: "Module"
51
+ });
52
+ /******/ }
53
+ /******/ Object.defineProperty(e, "__esModule", {
54
+ value: true
55
+ });
56
+ /******/ };
57
+ /******/ })();
58
+ /******/
59
+ /************************************************************************/ var t = {};
60
+ // ESM COMPAT FLAG
61
+ e.r(t);
62
+ // EXPORTS
63
+ e.d(t, {
64
+ ScrollContainerContext: () => /* reexport */ a,
65
+ ScrollContainerProvider: () => /* reexport */ f,
66
+ default: () => /* reexport */ l
67
+ });
68
+ // CONCATENATED MODULE: external "react"
69
+ const n = require("react");
70
+ var r = e.n(n);
71
+ // CONCATENATED MODULE: ./src/utils/ssrDocument.ts
72
+ /* eslint-disable @typescript-eslint/no-empty-function */
73
+ var o = {
74
+ body: {
75
+ appendChild: function e() {
76
+ return [];
77
+ }
78
+ },
79
+ addEventListener: function e() {},
80
+ removeEventListener: function e() {},
81
+ activeElement: {
82
+ blur: function e() {},
83
+ nodeName: ""
84
+ },
85
+ querySelector: function e() {
86
+ return null;
87
+ },
88
+ querySelectorAll: function e() {
89
+ return [];
90
+ },
91
+ getElementById: function e() {
92
+ return null;
93
+ },
94
+ createEvent: function e() {
95
+ return {
96
+ initEvent: function e() {}
97
+ };
98
+ },
99
+ createElement: function e() {
100
+ return {
101
+ children: [],
102
+ childNodes: [],
103
+ style: {},
104
+ setAttribute: function e() {},
105
+ getElementsByTagName: function e() {
106
+ return [];
107
+ }
108
+ };
109
+ },
110
+ createElementNS: function e() {
111
+ return {};
112
+ },
113
+ importNode: function e() {
114
+ return null;
115
+ },
116
+ location: {
117
+ hash: "",
118
+ host: "",
119
+ hostname: "",
120
+ href: "",
121
+ origin: "",
122
+ pathname: "",
123
+ protocol: "",
124
+ search: ""
125
+ }
130
126
  };
131
- },
132
- Image: function Image() {},
133
- Date: function Date() {},
134
- screen: {},
135
- setTimeout: function setTimeout() {},
136
- clearTimeout: function clearTimeout() {},
137
- matchMedia: function matchMedia() {
138
- return {};
139
- },
140
- requestAnimationFrame: function requestAnimationFrame(callback) {
141
- if (typeof setTimeout === 'undefined') {
142
- callback();
143
- return null;
127
+ function u() {
128
+ var e = typeof document !== "undefined" ? document : o;
129
+ return e;
144
130
  }
145
-
146
- return setTimeout(callback, 0);
147
- },
148
- cancelAnimationFrame: function cancelAnimationFrame(id) {
149
- if (typeof setTimeout === 'undefined') {
150
- return;
131
+ // CONCATENATED MODULE: ./src/utils/ssrWindow.ts
132
+ /* eslint-disable @typescript-eslint/no-empty-function */
133
+ var i = {
134
+ document: o,
135
+ navigator: {
136
+ userAgent: ""
137
+ },
138
+ location: {
139
+ hash: "",
140
+ host: "",
141
+ hostname: "",
142
+ href: "",
143
+ origin: "",
144
+ pathname: "",
145
+ protocol: "",
146
+ search: ""
147
+ },
148
+ history: {
149
+ replaceState: function e() {},
150
+ pushState: function e() {},
151
+ go: function e() {},
152
+ back: function e() {}
153
+ },
154
+ CustomEvent: function e() {
155
+ return this;
156
+ },
157
+ addEventListener: function e() {},
158
+ removeEventListener: function e() {},
159
+ getComputedStyle: function e() {
160
+ return {
161
+ getPropertyValue: function e() {
162
+ return "";
163
+ }
164
+ };
165
+ },
166
+ Image: function e() {},
167
+ Date: function e() {},
168
+ screen: {},
169
+ setTimeout: function e() {},
170
+ clearTimeout: function e() {},
171
+ matchMedia: function e() {
172
+ return {};
173
+ },
174
+ requestAnimationFrame: function e(t) {
175
+ if (typeof setTimeout === "undefined") {
176
+ t();
177
+ return null;
178
+ }
179
+ return setTimeout(t, 0);
180
+ },
181
+ cancelAnimationFrame: function e(t) {
182
+ if (typeof setTimeout === "undefined") {
183
+ return;
184
+ }
185
+ clearTimeout(t);
186
+ }
187
+ };
188
+ function c() {
189
+ var e = typeof window !== "undefined" ? window : i;
190
+ return e;
151
191
  }
152
-
153
- clearTimeout(id);
154
- }
155
- };
156
-
157
- function getWindow() {
158
- var win = typeof window !== 'undefined' ? window : ssrWindow;
159
- return win;
160
- }
161
-
162
-
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
193
-
194
-
195
- /**
192
+ // CONCATENATED MODULE: ./src/ScrollContainerContext/ScrollContainerContext.tsx
193
+ /**
196
194
  * A React context used to manage a custom scroll container for child elements
197
195
  * that need to react to scrolling. The context type is `Window | Document | HTMLElement | null | undefined`.
198
196
  * Defaults to `window`. Consumers of this context must gracefully handle values
199
197
  * of `null` and `undefined`.
200
198
  * @public
201
199
  */
202
-
203
- var ScrollContainerContext = /*#__PURE__*/external_react_default.a.createContext(Object(ssrWindow["a" /* getWindow */])());
204
- /**
200
+ var a = r().createContext(c());
201
+ /**
205
202
  * `ScrollContainerProvider` is an alias of `ScrollContainerContext.Provider`.
206
203
  * @public
207
- */
208
-
209
- var ScrollContainerProvider = ScrollContainerContext.Provider;
210
- /* harmony default export */ var ScrollContainerContext_ScrollContainerContext = (ScrollContainerContext);
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
-
285
-
286
-
287
- /***/ })
288
-
289
- /******/ });
204
+ */ var f = a.Provider;
205
+ /* harmony default export */ const l = a;
206
+ // CONCATENATED MODULE: ./src/ScrollContainerContext/index.ts
207
+ module.exports = t;
208
+ /******/})();