@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
package/WaitSpinner.js CHANGED
@@ -1,298 +1,230 @@
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 = 238);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 0:
91
- /***/ (function(module, exports) {
92
-
93
- module.exports = require("@splunk/themes");
94
-
95
- /***/ }),
96
-
97
- /***/ 1:
98
- /***/ (function(module, exports) {
99
-
100
- module.exports = require("prop-types");
101
-
102
- /***/ }),
103
-
104
- /***/ 2:
105
- /***/ (function(module, exports) {
106
-
107
- module.exports = require("react");
108
-
109
- /***/ }),
110
-
111
- /***/ 238:
112
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
-
114
- "use strict";
115
- // ESM COMPAT FLAG
116
- __webpack_require__.r(__webpack_exports__);
117
-
118
- // EXPORTS
119
- __webpack_require__.d(__webpack_exports__, "default", function() { return /* reexport */ WaitSpinner_WaitSpinner; });
120
-
121
- // EXTERNAL MODULE: external "react"
122
- var external_react_ = __webpack_require__(2);
123
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
124
-
125
- // EXTERNAL MODULE: external "prop-types"
126
- var external_prop_types_ = __webpack_require__(1);
127
- var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
128
-
129
- // EXTERNAL MODULE: external "@splunk/react-ui/AnimationToggle"
130
- var AnimationToggle_ = __webpack_require__(51);
131
-
132
- // EXTERNAL MODULE: external "@splunk/themes"
133
- var themes_ = __webpack_require__(0);
134
-
135
- // EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
136
- var i18n_ = __webpack_require__(4);
137
-
138
- // EXTERNAL MODULE: external "styled-components"
139
- var external_styled_components_ = __webpack_require__(3);
140
- var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
141
-
142
- // CONCATENATED MODULE: ./src/WaitSpinner/WaitSpinnerStyles.ts
143
-
144
-
145
- var Styled = external_styled_components_default.a.div.withConfig({
146
- displayName: "WaitSpinnerStyles__Styled",
147
- componentId: "sc-1nu971z-0"
148
- })(["", ";align-items:center;"], themes_["mixins"].reset('inline-flex'));
149
- var spin = Object(external_styled_components_["keyframes"])(["100%{transform:rotate(360deg);}"]);
150
- var appearAnimation = Object(external_styled_components_["keyframes"])(["0%{transform:scale(0);opacity:0;}100%{transform:scale(1);opacity:1;}"]);
151
- var prismaAnimationDuration = '2.07s';
152
- var StyledSvg = external_styled_components_default.a.svg.withConfig({
153
- displayName: "WaitSpinnerStyles__StyledSvg",
154
- componentId: "sc-1nu971z-1"
155
- })(["", " ", ""], Object(themes_["pickVariant"])('$size', {
156
- small: {
157
- enterprise: Object(external_styled_components_["css"])(["width:14px;height:14px;"]),
158
- prisma: Object(external_styled_components_["css"])(["width:16px;height:16px;"])
159
- },
160
- medium: {
161
- enterprise: Object(external_styled_components_["css"])(["width:19px;height:19px;"]),
162
- prisma: Object(external_styled_components_["css"])(["width:24px;height:24px;"])
163
- },
164
- large: {
165
- enterprise: Object(external_styled_components_["css"])(["width:19px;height:19px;"]),
166
- prisma: Object(external_styled_components_["css"])(["width:40px;height:40px;"])
167
- }
168
- }), function (_ref) {
169
- var $animated = _ref.$animated;
170
- return $animated && Object(themes_["pick"])({
171
- enterprise: Object(external_styled_components_["css"])(["transform-origin:center;animation:", " 1.2s steps(64) infinite;"], spin),
172
- prisma: Object(external_styled_components_["css"])(["animation:", " ", " infinite linear,", " 500ms cubic-bezier(0.01,0,0,1);"], spin, prismaAnimationDuration, appearAnimation)
173
- });
174
- });
175
- var prismaBaseAnimation = Object(external_styled_components_["keyframes"])(["0%{stroke-dasharray:110 10;stroke-dashoffset:-5.5;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:26 94;stroke-dashoffset:-152;}100%{stroke-dasharray:110 10;stroke-dashoffset:-246.5;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}"]);
176
- var prismaFillAnimation = Object(external_styled_components_["keyframes"])(["0%{stroke-dasharray:7 113;stroke-dashoffset:3;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:90 30;stroke-dashoffset:-60;}100%{stroke-dasharray:7 113;stroke-dashoffset:-238;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}"]);
177
- var StyledPrismaBasePath = external_styled_components_default.a.circle.withConfig({
178
- displayName: "WaitSpinnerStyles__StyledPrismaBasePath",
179
- componentId: "sc-1nu971z-2"
180
- })(["stroke:", ";stroke-width:2;fill:transparent;", " stroke-dasharray:110 10;stroke-dashoffset:-5.5;"], themes_["variables"].contentColorDisabled, function (_ref2) {
181
- var $animated = _ref2.$animated;
182
- return $animated && Object(external_styled_components_["css"])(["animation:", " ", " infinite;animation-fill-mode:backwards;"], prismaBaseAnimation, prismaAnimationDuration);
183
- });
184
- var StyledPrismaFillPath = external_styled_components_default.a.circle.withConfig({
185
- displayName: "WaitSpinnerStyles__StyledPrismaFillPath",
186
- componentId: "sc-1nu971z-3"
187
- })(["fill:transparent;stroke-width:2;stroke:", ";stroke-dasharray:7 113;stroke-dashoffset:3;", ""], Object(themes_["pickVariant"])('$size', {
188
- small: themes_["variables"].contentColorDefault,
189
- medium: themes_["variables"].contentColorDefault,
190
- large: themes_["variables"].interactiveColorPrimary
191
- }), function (_ref3) {
192
- var $animated = _ref3.$animated;
193
- return $animated && Object(external_styled_components_["css"])(["animation:", " ", " infinite;"], prismaFillAnimation, prismaAnimationDuration);
194
- });
195
- var StyledEnterpriseCircle = external_styled_components_default.a.circle.withConfig({
196
- displayName: "WaitSpinnerStyles__StyledEnterpriseCircle",
197
- componentId: "sc-1nu971z-4"
198
- })(["fill:transparent;stroke:", ";stroke-width:2px;", ""], Object(themes_["pick"])({
199
- enterprise: {
200
- dark: themes_["variables"].white,
201
- light: themes_["variables"].gray60
202
- },
203
- prisma: themes_["variables"].contentColorMuted
204
- }), Object(themes_["pick"])({
205
- enterprise: Object(external_styled_components_["css"])(["stroke-dasharray:34 19;"])
206
- }));
207
-
208
- // CONCATENATED MODULE: ./src/WaitSpinner/WaitSpinner.tsx
209
- function _extends() { _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 _extends.apply(this, arguments); }
210
-
211
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
212
-
213
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
- var propTypes = {
222
- elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
223
- screenReaderText: external_prop_types_default.a.string,
224
- size: external_prop_types_default.a.oneOf(['small', 'medium', 'large'])
225
- };
226
-
227
- function WaitSpinner(_ref) {
228
- var elementRef = _ref.elementRef,
229
- _ref$screenReaderText = _ref.screenReaderText,
230
- screenReaderText = _ref$screenReaderText === void 0 ? Object(i18n_["_"])('Waiting') : _ref$screenReaderText,
231
- _ref$size = _ref.size,
232
- size = _ref$size === void 0 ? 'small' : _ref$size,
233
- otherProps = _objectWithoutProperties(_ref, ["elementRef", "screenReaderText", "size"]);
234
-
235
- // @docs-props-type WaitSpinnerPropsBase
236
- var animated = Object(AnimationToggle_["useAnimationToggle"])() === 'on';
237
-
238
- var _useSplunkTheme = Object(themes_["useSplunkTheme"])(),
239
- isPrisma = _useSplunkTheme.isPrisma;
240
-
241
- var viewBox = isPrisma ? '0 0 40 40' : '0 0 19 19';
242
- return /*#__PURE__*/external_react_default.a.createElement(Styled, _extends({
243
- "data-test": "wait-spinner"
244
- }, otherProps), /*#__PURE__*/external_react_default.a.createElement(StyledSvg, {
245
- viewBox: viewBox,
246
- version: "1.1",
247
- xmlns: "http://www.w3.org/2000/svg",
248
- ref: elementRef,
249
- $animated: animated,
250
- $size: size
251
- }, screenReaderText && /*#__PURE__*/external_react_default.a.createElement("title", null, screenReaderText), /*#__PURE__*/external_react_default.a.createElement("g", null, isPrisma ? /*#__PURE__*/external_react_default.a.createElement(external_react_default.a.Fragment, null, /*#__PURE__*/external_react_default.a.createElement(StyledPrismaBasePath, {
252
- r: "19",
253
- cx: "20",
254
- cy: "20",
255
- $animated: animated,
256
- $size: size
257
- }), /*#__PURE__*/external_react_default.a.createElement(StyledPrismaFillPath, {
258
- r: "19",
259
- cx: "20",
260
- cy: "20",
261
- $animated: animated,
262
- $size: size
263
- })) : /*#__PURE__*/external_react_default.a.createElement(StyledEnterpriseCircle, {
264
- cx: "9.5",
265
- cy: "9.5",
266
- r: "8.5"
267
- }))));
268
- }
269
-
270
- WaitSpinner.propTypes = propTypes;
271
- /* harmony default export */ var WaitSpinner_WaitSpinner = (WaitSpinner);
272
- // CONCATENATED MODULE: ./src/WaitSpinner/index.ts
273
-
274
-
275
- /***/ }),
276
-
277
- /***/ 3:
278
- /***/ (function(module, exports) {
279
-
280
- module.exports = require("styled-components");
281
-
282
- /***/ }),
283
-
284
- /***/ 4:
285
- /***/ (function(module, exports) {
286
-
287
- module.exports = require("@splunk/ui-utils/i18n");
288
-
289
- /***/ }),
290
-
291
- /***/ 51:
292
- /***/ (function(module, exports) {
293
-
294
- module.exports = require("@splunk/react-ui/AnimationToggle");
295
-
296
- /***/ })
297
-
298
- /******/ });
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 r = t && t.__esModule ?
13
+ /******/ () => t["default"]
14
+ /******/ : () => t
15
+ /******/;
16
+ e.d(r, {
17
+ a: r
18
+ });
19
+ /******/ return r;
20
+ /******/ };
21
+ /******/ })();
22
+ /******/
23
+ /******/ /* webpack/runtime/define property getters */
24
+ /******/ (() => {
25
+ /******/ // define getter functions for harmony exports
26
+ /******/ e.d = (t, r) => {
27
+ /******/ for (var i in r) {
28
+ /******/ if (e.o(r, i) && !e.o(t, i)) {
29
+ /******/ Object.defineProperty(t, i, {
30
+ enumerable: true,
31
+ get: r[i]
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
+ default: () => /* reexport */ _
65
+ });
66
+ // CONCATENATED MODULE: external "react"
67
+ const r = require("react");
68
+ var i = e.n(r);
69
+ // CONCATENATED MODULE: external "prop-types"
70
+ const a = require("prop-types");
71
+ var n = e.n(a);
72
+ // CONCATENATED MODULE: external "@splunk/react-ui/AnimationToggle"
73
+ const s = require("@splunk/react-ui/AnimationToggle");
74
+ // CONCATENATED MODULE: external "@splunk/themes"
75
+ const o = require("@splunk/themes");
76
+ // CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
77
+ const l = require("@splunk/ui-utils/i18n");
78
+ // CONCATENATED MODULE: external "styled-components"
79
+ const c = require("styled-components");
80
+ var m = e.n(c);
81
+ // CONCATENATED MODULE: ./src/WaitSpinner/WaitSpinnerStyles.ts
82
+ var p = m().div.withConfig({
83
+ displayName: "WaitSpinnerStyles__Styled",
84
+ componentId: "sc-1nu971z-0"
85
+ })([ "", ";align-items:center;" ], o.mixins.reset("inline-flex"));
86
+ var f = (0, c.keyframes)([ "100%{transform:rotate(360deg);}" ]);
87
+ var d = (0, c.keyframes)([ "0%{transform:scale(0);opacity:0;}100%{transform:scale(1);opacity:1;}" ]);
88
+ var u = "2.07s";
89
+ var y = m().svg.withConfig({
90
+ displayName: "WaitSpinnerStyles__StyledSvg",
91
+ componentId: "sc-1nu971z-1"
92
+ })([ "", " ", "" ], (0, o.pickVariant)("$size", {
93
+ small: {
94
+ enterprise: (0, c.css)([ "width:14px;height:14px;" ]),
95
+ prisma: (0, c.css)([ "width:16px;height:16px;" ])
96
+ },
97
+ medium: {
98
+ enterprise: (0, c.css)([ "width:19px;height:19px;" ]),
99
+ prisma: (0, c.css)([ "width:24px;height:24px;" ])
100
+ },
101
+ large: {
102
+ enterprise: (0, c.css)([ "width:19px;height:19px;" ]),
103
+ prisma: (0, c.css)([ "width:40px;height:40px;" ])
104
+ }
105
+ }), (function(e) {
106
+ var t = e.$animated;
107
+ return t && (0, o.pick)({
108
+ enterprise: (0, c.css)([ "transform-origin:center;animation:", " 1.2s steps(64) infinite;" ], f),
109
+ prisma: (0, c.css)([ "animation:", " ", " infinite linear,", " 500ms cubic-bezier(0.01,0,0,1);" ], f, u, d)
110
+ });
111
+ }));
112
+ var h = (0, c.keyframes)([ "0%{stroke-dasharray:110 10;stroke-dashoffset:-5.5;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:26 94;stroke-dashoffset:-152;}100%{stroke-dasharray:110 10;stroke-dashoffset:-246.5;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}" ]);
113
+ var v = (0, c.keyframes)([ "0%{stroke-dasharray:7 113;stroke-dashoffset:3;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:90 30;stroke-dashoffset:-60;}100%{stroke-dasharray:7 113;stroke-dashoffset:-238;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}" ]);
114
+ var g = m().circle.withConfig({
115
+ displayName: "WaitSpinnerStyles__StyledPrismaBasePath",
116
+ componentId: "sc-1nu971z-2"
117
+ })([ "stroke:", ";stroke-width:2;fill:transparent;", " stroke-dasharray:110 10;stroke-dashoffset:-5.5;" ], o.variables.contentColorDisabled, (function(e) {
118
+ var t = e.$animated;
119
+ return t && (0, c.css)([ "animation:", " ", " infinite;animation-fill-mode:backwards;" ], h, u);
120
+ }));
121
+ var k = m().circle.withConfig({
122
+ displayName: "WaitSpinnerStyles__StyledPrismaFillPath",
123
+ componentId: "sc-1nu971z-3"
124
+ })([ "fill:transparent;stroke-width:2;stroke:", ";stroke-dasharray:7 113;stroke-dashoffset:3;", "" ], (0,
125
+ o.pickVariant)("$size", {
126
+ small: o.variables.contentColorDefault,
127
+ medium: o.variables.contentColorDefault,
128
+ large: o.variables.interactiveColorPrimary
129
+ }), (function(e) {
130
+ var t = e.$animated;
131
+ return t && (0, c.css)([ "animation:", " ", " infinite;" ], v, u);
132
+ }));
133
+ var b = m().circle.withConfig({
134
+ displayName: "WaitSpinnerStyles__StyledEnterpriseCircle",
135
+ componentId: "sc-1nu971z-4"
136
+ })([ "fill:transparent;stroke:", ";stroke-width:2px;", "" ], (0, o.pick)({
137
+ enterprise: {
138
+ dark: o.variables.white,
139
+ light: o.variables.gray60
140
+ },
141
+ prisma: o.variables.contentColorMuted
142
+ }), (0, o.pick)({
143
+ enterprise: (0, c.css)([ "stroke-dasharray:34 19;" ])
144
+ }));
145
+ // CONCATENATED MODULE: ./src/WaitSpinner/WaitSpinner.tsx
146
+ function w() {
147
+ w = Object.assign || function(e) {
148
+ for (var t = 1; t < arguments.length; t++) {
149
+ var r = arguments[t];
150
+ for (var i in r) {
151
+ if (Object.prototype.hasOwnProperty.call(r, i)) {
152
+ e[i] = r[i];
153
+ }
154
+ }
155
+ }
156
+ return e;
157
+ };
158
+ return w.apply(this, arguments);
159
+ }
160
+ function x(e, t) {
161
+ if (e == null) return {};
162
+ var r = S(e, t);
163
+ var i, a;
164
+ if (Object.getOwnPropertySymbols) {
165
+ var n = Object.getOwnPropertySymbols(e);
166
+ for (a = 0; a < n.length; a++) {
167
+ i = n[a];
168
+ if (t.indexOf(i) >= 0) continue;
169
+ if (!Object.prototype.propertyIsEnumerable.call(e, i)) continue;
170
+ r[i] = e[i];
171
+ }
172
+ }
173
+ return r;
174
+ }
175
+ function S(e, t) {
176
+ if (e == null) return {};
177
+ var r = {};
178
+ var i = Object.keys(e);
179
+ var a, n;
180
+ for (n = 0; n < i.length; n++) {
181
+ a = i[n];
182
+ if (t.indexOf(a) >= 0) continue;
183
+ r[a] = e[a];
184
+ }
185
+ return r;
186
+ }
187
+ var z = {
188
+ elementRef: n().oneOfType([ n().func, n().object ]),
189
+ screenReaderText: n().string,
190
+ size: n().oneOf([ "small", "medium", "large" ])
191
+ };
192
+ function O(e) {
193
+ var t = e.elementRef, r = e.screenReaderText, a = r === void 0 ? (0, l._)("Waiting") : r, n = e.size, c = n === void 0 ? "small" : n, m = x(e, [ "elementRef", "screenReaderText", "size" ]);
194
+ // @docs-props-type WaitSpinnerPropsBase
195
+ var f = (0, s.useAnimationToggle)() === "on";
196
+ var d = (0, o.useSplunkTheme)(), u = d.isPrisma;
197
+ var h = u ? "0 0 40 40" : "0 0 19 19";
198
+
199
+ return i().createElement(p, w({
200
+ "data-test": "wait-spinner"
201
+ }, m), i().createElement(y, {
202
+ viewBox: h,
203
+ version: "1.1",
204
+ xmlns: "http://www.w3.org/2000/svg",
205
+ ref: t,
206
+ $animated: f,
207
+ $size: c
208
+ }, a && i().createElement("title", null, a), i().createElement("g", null, u ? i().createElement(i().Fragment, null, i().createElement(g, {
209
+ r: "19",
210
+ cx: "20",
211
+ cy: "20",
212
+ $animated: f,
213
+ $size: c
214
+ }), i().createElement(k, {
215
+ r: "19",
216
+ cx: "20",
217
+ cy: "20",
218
+ $animated: f,
219
+ $size: c
220
+ })) : i().createElement(b, {
221
+ cx: "9.5",
222
+ cy: "9.5",
223
+ r: "8.5"
224
+ }))));
225
+ }
226
+ O.propTypes = z;
227
+ /* harmony default export */ const _ = O;
228
+ // CONCATENATED MODULE: ./src/WaitSpinner/index.ts
229
+ module.exports = t;
230
+ /******/})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splunk/react-ui",
3
- "version": "4.20.0",
3
+ "version": "4.21.1",
4
4
  "description": "Library of React components that implement the Splunk design language",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Splunk Inc.",
@@ -42,7 +42,7 @@
42
42
  "@dnd-kit/sortable": "7.0.2",
43
43
  "@dnd-kit/utilities": "3.2.1",
44
44
  "@splunk/react-icons": "^4.0.2",
45
- "@splunk/themes": "^0.16.1",
45
+ "@splunk/themes": "^0.16.3",
46
46
  "@splunk/ui-utils": "^1.6.0",
47
47
  "@types/commonmark": "^0.27.6",
48
48
  "@types/lodash": "^4.14.156",
@@ -66,16 +66,18 @@
66
66
  "@babel/core": "^7.2.0",
67
67
  "@babel/plugin-transform-runtime": "^7.18.6",
68
68
  "@splunk/babel-preset": "^4.0.0",
69
- "@splunk/docs-gen": "1.0.0-beta.6",
69
+ "@splunk/docs-gen": "1.0.0-beta.8",
70
70
  "@splunk/eslint-config": "^4.0.0",
71
- "@splunk/react-docs": "1.0.0-beta.6",
71
+ "@splunk/react-docs": "1.0.0-beta.8",
72
72
  "@splunk/stylelint-config": "^4.0.0",
73
73
  "@splunk/test-runner-utils": "^0.4.1",
74
- "@splunk/webpack-configs": "^6.0.0",
74
+ "@splunk/webpack-configs": "^7.0.1",
75
75
  "@storybook/addon-a11y": "^6.5.9",
76
76
  "@storybook/addon-essentials": "^6.5.9",
77
77
  "@storybook/addon-interactions": "^6.5.9",
78
+ "@storybook/builder-webpack5": "^6.5.9",
78
79
  "@storybook/csf": "^0.0.1",
80
+ "@storybook/manager-webpack5": "^6.5.9",
79
81
  "@storybook/react": "^6.5.9",
80
82
  "@storybook/test-runner": "^0.9.0",
81
83
  "@storybook/testing-react": "^1.3.0",
@@ -94,7 +96,7 @@
94
96
  "@typescript-eslint/parser": "^4.8.2",
95
97
  "axe-html-reporter": "^2.2.3",
96
98
  "axe-playwright": "^1.1.11",
97
- "babel-loader": "^8.0.4",
99
+ "babel-loader": "^8.3.0",
98
100
  "babel-plugin-istanbul": "^5.1.0",
99
101
  "babel-plugin-styled-components": "^1.10.7",
100
102
  "babel-plugin-transform-imports": "^2.0.0",
@@ -103,11 +105,10 @@
103
105
  "cross-env": "^6.0.3",
104
106
  "cypress": "^12.17.1",
105
107
  "cypress-real-events": "^1.9.1",
106
- "docgen-loader": "^1.3.4",
107
108
  "eslint": "^7.14.0",
108
109
  "eslint-config-airbnb": "^18.2.1",
109
110
  "eslint-config-prettier": "^6.15.0",
110
- "eslint-import-resolver-webpack": "^0.13.0",
111
+ "eslint-import-resolver-webpack": "^0.13.4",
111
112
  "eslint-plugin-cypress": "^2.12.1",
112
113
  "eslint-plugin-import": "^2.22.1",
113
114
  "eslint-plugin-jsx-a11y": "^6.4.1",
@@ -117,7 +118,6 @@
117
118
  "fs-extra": "^9.0.1",
118
119
  "fs-readdir-recursive": "^1.0.0",
119
120
  "glob": "^7.1.6",
120
- "html-webpack-plugin": "^3.2.0",
121
121
  "http-server": "^14.1.1",
122
122
  "jest": "^26.6.3",
123
123
  "jest-image-snapshot": "^5.1.0",
@@ -127,7 +127,7 @@
127
127
  "playwright": "^1.23.3",
128
128
  "prismjs": "^1.25.0",
129
129
  "prompt": "^1.0.0",
130
- "raw-loader": "^0.5.1",
130
+ "raw-loader": "^4.0.2",
131
131
  "react": "^16.12.0",
132
132
  "react-docgen": "^5.4.0",
133
133
  "react-dom": "^16.12.0",
@@ -135,12 +135,11 @@
135
135
  "sinon": "^2.1.0",
136
136
  "styled-components": "^5.3.10",
137
137
  "stylelint": "^13.0.0",
138
- "ts-loader": "^6.2.1",
139
138
  "typescript": "^4.0.5",
140
- "webpack": "^4.16.2",
141
- "webpack-cli": "^4.9.2",
142
- "webpack-dev-server": "^4.7.4",
143
- "webpack-merge": "^4.1.3"
139
+ "webpack": "^5.88.2",
140
+ "webpack-cli": "^5.1.4",
141
+ "webpack-dev-server": "^4.15.1",
142
+ "webpack-merge": "^5.9.0"
144
143
  },
145
144
  "engines": {
146
145
  "node": ">=6"