@splunk/react-ui 4.21.0 → 4.22.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.
Files changed (92) hide show
  1. package/Accordion.js +425 -325
  2. package/Anchor.js +147 -117
  3. package/Animation.js +142 -94
  4. package/AnimationToggle.js +197 -193
  5. package/Box.js +145 -118
  6. package/Breadcrumbs.js +288 -206
  7. package/Button.js +488 -465
  8. package/ButtonGroup.js +160 -128
  9. package/ButtonSimple.js +543 -462
  10. package/CHANGELOG.md +24 -3
  11. package/Calendar.js +1111 -1001
  12. package/Card.js +771 -598
  13. package/CardLayout.js +205 -147
  14. package/Chip.js +509 -488
  15. package/Clickable.js +414 -352
  16. package/CloseButton.js +165 -142
  17. package/Code.js +1807 -2084
  18. package/CollapsiblePanel.js +586 -519
  19. package/Color.js +1068 -1068
  20. package/ColumnLayout.js +402 -363
  21. package/ComboBox.js +903 -794
  22. package/Concertina.js +997 -802
  23. package/ControlGroup.js +687 -594
  24. package/Date.js +567 -547
  25. package/DefinitionList.js +308 -234
  26. package/Divider.js +149 -118
  27. package/Dropdown.js +459 -416
  28. package/DualListbox.js +1479 -1541
  29. package/EventListener.js +94 -97
  30. package/File.js +1051 -969
  31. package/FormRows.js +883 -696
  32. package/Heading.js +216 -193
  33. package/Image.js +446 -402
  34. package/JSONTree.js +690 -551
  35. package/Layer.js +437 -410
  36. package/Link.js +336 -255
  37. package/List.js +213 -161
  38. package/Markdown.js +509 -487
  39. package/Menu.js +1104 -1056
  40. package/Message.js +475 -441
  41. package/MessageBar.js +387 -373
  42. package/Modal.js +810 -634
  43. package/ModalLayer.js +326 -243
  44. package/Monogram.js +308 -276
  45. package/Multiselect.js +3564 -3364
  46. package/Number.js +729 -687
  47. package/Paginator.js +510 -449
  48. package/Paragraph.js +145 -112
  49. package/Popover.js +1459 -1432
  50. package/Progress.js +301 -246
  51. package/RadioBar.js +634 -527
  52. package/RadioList.js +483 -444
  53. package/Resize.js +530 -489
  54. package/ResultsMenu.js +479 -455
  55. package/ScreenReaderContent.js +142 -111
  56. package/Scroll.js +595 -456
  57. package/ScrollContainerContext.js +197 -206
  58. package/Search.js +756 -650
  59. package/Select.js +2446 -2345
  60. package/SidePanel.js +390 -284
  61. package/Slider.js +680 -676
  62. package/SlidingPanels.js +639 -503
  63. package/SplitButton.js +464 -367
  64. package/StaticContent.js +161 -133
  65. package/StepBar.js +386 -358
  66. package/Switch.js +710 -640
  67. package/TabBar.js +741 -680
  68. package/TabLayout.js +406 -322
  69. package/Table.js +4974 -4616
  70. package/Text.js +1170 -1138
  71. package/TextArea.js +1102 -1090
  72. package/Tooltip.js +624 -581
  73. package/TransitionOpen.js +489 -422
  74. package/Typography.js +176 -153
  75. package/WaitSpinner.js +230 -206
  76. package/package.json +7 -7
  77. package/types/src/Color/Color.d.ts +0 -1
  78. package/types/src/JSONTree/JSONTreeContext.d.ts +7 -0
  79. package/types/src/JSONTree/TreeNode.d.ts +5 -0
  80. package/types/src/RadioBar/RadioBar.d.ts +1 -0
  81. package/types/src/ResultsMenu/ResultsMenu.d.ts +0 -2
  82. package/types/src/Select/docs/examples/Icons.d.ts +1 -9
  83. package/types/src/Slider/Slider.d.ts +1 -0
  84. package/types/src/TabBar/Tab.d.ts +10 -1
  85. package/types/src/TabBar/TabBar.d.ts +4 -2
  86. package/types/src/Table/Head.d.ts +7 -3
  87. package/types/src/Table/Table.d.ts +3 -2
  88. package/types/src/Table/TableContext.d.ts +2 -0
  89. package/useForceUpdate.js +112 -82
  90. package/useKeyPress.js +74 -71
  91. package/usePrevious.js +65 -65
  92. package/useRovingFocus.js +122 -138
@@ -1,217 +1,208 @@
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 });
44
- /******/ };
45
- /******/ })();
46
- /******/
47
- /************************************************************************/
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
- }
123
-
124
-
125
- ;// CONCATENATED MODULE: ./src/utils/ssrWindow.ts
126
- /* eslint-disable @typescript-eslint/no-empty-function */
127
-
128
- var ssrWindow = {
129
- document: ssrDocument,
130
- navigator: {
131
- userAgent: ''
132
- },
133
- location: {
134
- hash: '',
135
- host: '',
136
- hostname: '',
137
- href: '',
138
- origin: '',
139
- pathname: '',
140
- protocol: '',
141
- search: ''
142
- },
143
- history: {
144
- replaceState: function replaceState() {},
145
- pushState: function pushState() {},
146
- go: function go() {},
147
- back: function back() {}
148
- },
149
- CustomEvent: function CustomEvent() {
150
- return this;
151
- },
152
- addEventListener: function addEventListener() {},
153
- removeEventListener: function removeEventListener() {},
154
- getComputedStyle: function getComputedStyle() {
155
- return {
156
- getPropertyValue: function getPropertyValue() {
157
- return '';
158
- }
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
+ }
159
126
  };
160
- },
161
- Image: function Image() {},
162
- Date: function Date() {},
163
- screen: {},
164
- setTimeout: function setTimeout() {},
165
- clearTimeout: function clearTimeout() {},
166
- matchMedia: function matchMedia() {
167
- return {};
168
- },
169
- requestAnimationFrame: function requestAnimationFrame(callback) {
170
- if (typeof setTimeout === 'undefined') {
171
- callback();
172
- return null;
127
+ function u() {
128
+ var e = typeof document !== "undefined" ? document : o;
129
+ return e;
173
130
  }
174
-
175
- return setTimeout(callback, 0);
176
- },
177
- cancelAnimationFrame: function cancelAnimationFrame(id) {
178
- if (typeof setTimeout === 'undefined') {
179
- 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;
180
191
  }
181
-
182
- clearTimeout(id);
183
- }
184
- };
185
-
186
- function getWindow() {
187
- var win = typeof window !== 'undefined' ? window : ssrWindow;
188
- return win;
189
- }
190
-
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().createContext(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 */ const ScrollContainerContext_ScrollContainerContext = (ScrollContainerContext);
211
-
212
- ;// CONCATENATED MODULE: ./src/ScrollContainerContext/index.ts
213
-
214
-
215
- module.exports = __webpack_exports__;
216
- /******/ })()
217
- ;
204
+ */ var f = a.Provider;
205
+ /* harmony default export */ const l = a;
206
+ // CONCATENATED MODULE: ./src/ScrollContainerContext/index.ts
207
+ module.exports = t;
208
+ /******/})();