@splunk/react-ui 4.4.0 → 4.4.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 (64) hide show
  1. package/Accordion.js +2 -2
  2. package/Anchor.js +2 -2
  3. package/Animation.js +2 -2
  4. package/AnimationToggle.js +2 -2
  5. package/Box.js +2 -2
  6. package/Button.js +2 -2
  7. package/ButtonGroup.js +2 -2
  8. package/ButtonSimple.js +2 -2
  9. package/CHANGELOG.md +5 -0
  10. package/Calendar.js +2 -2
  11. package/Card.js +2 -2
  12. package/CardLayout.js +2 -2
  13. package/Chip.js +2 -2
  14. package/Clickable.js +2 -2
  15. package/CloseButton.js +2 -2
  16. package/Code.js +2 -2
  17. package/CollapsiblePanel.js +2 -2
  18. package/Color.js +2 -2
  19. package/ColumnLayout.js +2 -2
  20. package/ComboBox.js +2 -2
  21. package/Concertina.js +2 -2
  22. package/ControlGroup.js +2 -2
  23. package/Date.js +2 -2
  24. package/DefinitionList.js +2 -2
  25. package/Dropdown.js +2 -2
  26. package/FetchOptions.js +2 -2
  27. package/File.js +46 -46
  28. package/FormRows.js +211 -323
  29. package/Image.js +2 -2
  30. package/JSONTree.js +2 -2
  31. package/Layer.js +2 -2
  32. package/Link.js +2 -2
  33. package/List.js +2 -2
  34. package/Markdown.js +2 -2
  35. package/Modal.js +2 -2
  36. package/ModalLayer.js +2 -2
  37. package/Monogram.js +2 -2
  38. package/Paragraph.js +2 -2
  39. package/Popover.js +2 -2
  40. package/Progress.js +2 -2
  41. package/RadioBar.js +2 -2
  42. package/RadioList.js +2 -2
  43. package/Resize.js +2 -2
  44. package/ResultsMenu.js +2 -2
  45. package/Scroll.js +2 -2
  46. package/ScrollContainerContext.js +2 -2
  47. package/Select.js +22 -10
  48. package/SidePanel.js +2 -2
  49. package/Slider.js +2 -2
  50. package/SlidingPanels.js +2 -2
  51. package/StaticContent.js +2 -2
  52. package/StepBar.js +2 -2
  53. package/Switch.js +2 -2
  54. package/TabBar.js +2 -2
  55. package/TabLayout.js +2 -2
  56. package/Text.js +2 -2
  57. package/Tooltip.js +2 -2
  58. package/WaitSpinner.js +2 -2
  59. package/package.json +1 -1
  60. package/types/src/File/FileContext.d.ts +3 -0
  61. package/types/src/File/Item.d.ts +5 -8
  62. package/types/src/FormRows/FormRows.d.ts +11 -69
  63. package/types/src/FormRows/FormRowsContext.d.ts +9 -0
  64. package/types/src/FormRows/Row.d.ts +7 -20
package/JSONTree.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 = 120);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 121);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/react-ui/Clickable");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 120:
111
+ /***/ 121:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
package/Layer.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 = 167);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 166);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -128,7 +128,7 @@ module.exports = require("react-event-listener");
128
128
 
129
129
  /***/ }),
130
130
 
131
- /***/ 167:
131
+ /***/ 166:
132
132
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
133
133
 
134
134
  "use strict";
package/Link.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 = 148);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 162);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/react-ui/Clickable");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 148:
111
+ /***/ 162:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
package/List.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 = 127);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 138);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 127:
104
+ /***/ 138:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
package/Markdown.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 = 145);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 158);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 145:
104
+ /***/ 158:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
package/Modal.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 = 109);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 110);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 109:
104
+ /***/ 110:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
package/ModalLayer.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 = 142);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 144);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 142:
104
+ /***/ 144:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
package/Monogram.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 = 141);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 142);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/react-ui/Clickable");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 141:
111
+ /***/ 142:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
package/Paragraph.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 = 162);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 147);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 162:
104
+ /***/ 147:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
package/Popover.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 = 125);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 120);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -128,7 +128,7 @@ function updateReactRef(ref, current) {
128
128
 
129
129
  /***/ }),
130
130
 
131
- /***/ 125:
131
+ /***/ 120:
132
132
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
133
133
 
134
134
  "use strict";
package/Progress.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 = 158);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 149);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 158:
104
+ /***/ 149:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
package/RadioBar.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 = 124);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 126);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/react-ui/Clickable");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 124:
111
+ /***/ 126:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
package/RadioList.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 = 117);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 119);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/ui-utils/id");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 117:
111
+ /***/ 119:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
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 = 153);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 157);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -142,7 +142,7 @@ module.exports = require("react-event-listener");
142
142
 
143
143
  /***/ }),
144
144
 
145
- /***/ 153:
145
+ /***/ 157:
146
146
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
147
147
 
148
148
  "use strict";
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 = 150);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 145);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -135,7 +135,7 @@ module.exports = require("@splunk/react-ui/Menu");
135
135
 
136
136
  /***/ }),
137
137
 
138
- /***/ 150:
138
+ /***/ 145:
139
139
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
140
140
 
141
141
  "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 = 131);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 134);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -128,7 +128,7 @@ function updateReactRef(ref, current) {
128
128
 
129
129
  /***/ }),
130
130
 
131
- /***/ 131:
131
+ /***/ 134:
132
132
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
133
133
 
134
134
  "use strict";
@@ -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 = 168);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 169);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 168:
90
+ /***/ 169:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
package/Select.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 = 140);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 153);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -115,7 +115,7 @@ module.exports = require("@splunk/react-ui/Menu");
115
115
 
116
116
  /***/ }),
117
117
 
118
- /***/ 140:
118
+ /***/ 153:
119
119
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
120
120
 
121
121
  "use strict";
@@ -136,6 +136,9 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
136
136
  var external_prop_types_ = __webpack_require__(1);
137
137
  var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
138
138
 
139
+ // EXTERNAL MODULE: external "lodash"
140
+ var external_lodash_ = __webpack_require__(4);
141
+
139
142
  // EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
140
143
  var i18n_ = __webpack_require__(5);
141
144
 
@@ -310,6 +313,7 @@ function Select_defineProperty(obj, key, value) { if (key in obj) { Object.defin
310
313
 
311
314
 
312
315
 
316
+
313
317
  /** @public */
314
318
 
315
319
  var Select_propTypes = {
@@ -375,9 +379,14 @@ var Select_Select = /*#__PURE__*/function (_Component) {
375
379
 
376
380
  _this = _super.call(this, props);
377
381
  var state = {}; // wrap defaultValue in an array once to avoid failing <SelectBase>'s defaultValues comparison check
382
+ // using "has" to make sure that pre-4.3 behavior is preserved if a user explicitly passes "null" or "undefined"
378
383
 
379
- if (props.defaultValue != null) {
380
- state.defaultValues = [props.defaultValue];
384
+ if (Object(external_lodash_["has"])(props, 'defaultValue')) {
385
+ if (props.defaultValue != null) {
386
+ state.defaultValues = [props.defaultValue];
387
+ } else {
388
+ state.defaultValues = [];
389
+ }
381
390
  }
382
391
 
383
392
  _this.state = state;
@@ -407,16 +416,19 @@ var Select_Select = /*#__PURE__*/function (_Component) {
407
416
  value: values[0]
408
417
  });
409
418
  }
410
- }; // using defaultValues from state in order to avoid wrapping defaultValue here
419
+ }; // using "has" as opposed to a null check to match SelectBase
411
420
 
412
- if (this.state.defaultValues != null) {
421
+ if (Object(external_lodash_["has"])(this.props, 'value')) {
422
+ if (value != null) {
423
+ convertedProps.values = [value];
424
+ } else {
425
+ convertedProps.values = [];
426
+ }
427
+ } else if (this.state.defaultValues != null) {
428
+ // using defaultValues from state in order to avoid wrapping defaultValue here
413
429
  convertedProps.defaultValues = this.state.defaultValues;
414
430
  }
415
431
 
416
- if (value != null) {
417
- convertedProps.values = [value];
418
- }
419
-
420
432
  return /*#__PURE__*/external_react_default.a.createElement(SelectBase["c" /* default */], Select_extends({}, otherProps, convertedProps, {
421
433
  multiple: false
422
434
  }));
package/SidePanel.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 = 139);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 154);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 139:
104
+ /***/ 154:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
package/Slider.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 = 164);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 156);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("react-event-listener");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 164:
111
+ /***/ 156:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
package/SlidingPanels.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 = 128);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 137);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -128,7 +128,7 @@ function updateReactRef(ref, current) {
128
128
 
129
129
  /***/ }),
130
130
 
131
- /***/ 128:
131
+ /***/ 137:
132
132
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
133
133
 
134
134
  "use strict";
package/StaticContent.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 = 159);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 163);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 159:
104
+ /***/ 163:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
package/StepBar.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 = 113);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 115);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/ui-utils/id");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 113:
111
+ /***/ 115:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
package/Switch.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 = 134);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 129);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -115,7 +115,7 @@ module.exports = require("@splunk/react-ui/Clickable");
115
115
 
116
116
  /***/ }),
117
117
 
118
- /***/ 134:
118
+ /***/ 129:
119
119
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
120
120
 
121
121
  "use strict";
package/TabBar.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 = 126);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 123);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -142,7 +142,7 @@ function updateReactRef(ref, current) {
142
142
 
143
143
  /***/ }),
144
144
 
145
- /***/ 126:
145
+ /***/ 123:
146
146
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
147
147
 
148
148
  "use strict";
package/TabLayout.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 = 137);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 128);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/ui-utils/id");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 137:
111
+ /***/ 128:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
package/Text.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 = 112);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 116);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -115,7 +115,7 @@ module.exports = require("@splunk/react-icons/Search");
115
115
 
116
116
  /***/ }),
117
117
 
118
- /***/ 112:
118
+ /***/ 116:
119
119
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
120
120
 
121
121
  "use strict";
package/Tooltip.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 = 130);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 133);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -115,7 +115,7 @@ module.exports = require("@splunk/react-ui/Clickable");
115
115
 
116
116
  /***/ }),
117
117
 
118
- /***/ 130:
118
+ /***/ 133:
119
119
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
120
120
 
121
121
  "use strict";
package/WaitSpinner.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 = 144);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 140);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 144:
104
+ /***/ 140:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splunk/react-ui",
3
- "version": "4.4.0",
3
+ "version": "4.4.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.",
@@ -1,6 +1,9 @@
1
1
  /// <reference types="react" />
2
+ import { ItemClickHandler } from './Item';
2
3
  export interface FileContext {
3
4
  disabled: boolean;
5
+ onRequestRemove?: ItemClickHandler;
6
+ onRequestRetry?: ItemClickHandler;
4
7
  }
5
8
  export declare const FileContext: import("react").Context<FileContext>;
6
9
  export default FileContext;
@@ -4,6 +4,7 @@ import { ComponentProps } from '../utils/types';
4
4
  declare type ItemClickHandler = (data: {
5
5
  itemId?: any;
6
6
  name: string;
7
+ index: number;
7
8
  }) => void;
8
9
  interface ItemPropsBase {
9
10
  disabled?: boolean;
@@ -18,26 +19,22 @@ interface ItemPropsBase {
18
19
  /** The name is displayed on the item. */
19
20
  name: string;
20
21
  /** @private */
21
- onRequestRemove?: ItemClickHandler;
22
- /** @private */
23
- onRequestRetry?: ItemClickHandler;
22
+ index?: number;
24
23
  /** If the uploadPercentage is 0, the item is assumed to be queued. If the upload is complete or
25
24
  * not applicable, uploadPercentage must be undefined. */
26
25
  uploadPercentage?: number;
27
26
  }
28
27
  declare type ItemProps = ComponentProps<ItemPropsBase, 'div'>;
29
- declare function Item({ disabled, error, itemId, name, onRequestRemove, onRequestRetry, uploadPercentage, ...otherProps }: ItemProps): JSX.Element;
28
+ declare function Item({ disabled, error, itemId, name, index, uploadPercentage, ...otherProps }: ItemProps): JSX.Element;
30
29
  declare namespace Item {
31
30
  var propTypes: {
32
31
  disabled: PropTypes.Requireable<boolean>;
33
32
  elementRef: PropTypes.Requireable<object>;
34
33
  error: PropTypes.Requireable<boolean>;
34
+ /** @private */
35
+ index: PropTypes.Requireable<number>;
35
36
  itemId: PropTypes.Requireable<any>;
36
37
  name: PropTypes.Validator<string>;
37
- /** @private */
38
- onRequestRemove: PropTypes.Requireable<(...args: any[]) => any>;
39
- /** @private */
40
- onRequestRetry: PropTypes.Requireable<(...args: any[]) => any>;
41
38
  /** If the uploadPercentage is 0, the item is assumed to be queued. If the upload is complete or
42
39
  * not applicable, uploadPercentage must be undefined. */
43
40
  uploadPercentage: PropTypes.Requireable<number>;