@splunk/react-ui 4.9.0 → 4.10.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 (97) hide show
  1. package/Accordion.js +4 -4
  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 +5 -29
  7. package/ButtonGroup.js +6 -27
  8. package/ButtonSimple.js +2 -2
  9. package/CHANGELOG.md +14 -1
  10. package/Calendar.js +31 -31
  11. package/Card.js +19 -45
  12. package/CardLayout.js +14 -35
  13. package/Chip.js +2 -2
  14. package/Clickable.js +2 -2
  15. package/CloseButton.js +2 -2
  16. package/Code.js +8 -5
  17. package/CollapsiblePanel.js +2 -2
  18. package/Color.js +8 -8
  19. package/ColumnLayout.js +2 -2
  20. package/ComboBox.js +2 -2
  21. package/Concertina.js +4 -4
  22. package/ControlGroup.js +10 -10
  23. package/Date.js +4 -4
  24. package/DefinitionList.js +2 -2
  25. package/Dropdown.js +2 -2
  26. package/EventListener.js +4 -4
  27. package/FetchOptions.js +6 -6
  28. package/File.js +7 -7
  29. package/FormRows.js +11 -11
  30. package/Heading.js +2 -2
  31. package/Image.js +6 -6
  32. package/JSONTree.js +38 -20
  33. package/Layer.js +8 -8
  34. package/Link.js +2 -2
  35. package/List.js +2 -2
  36. package/Markdown.js +29 -32
  37. package/Menu.js +14 -14
  38. package/Message.js +16 -16
  39. package/MessageBar.js +14 -14
  40. package/Modal.js +6 -6
  41. package/ModalLayer.js +14 -5
  42. package/Monogram.js +2 -2
  43. package/Multiselect.js +10 -10
  44. package/Number.js +2 -2
  45. package/Paginator.js +40 -43
  46. package/Paragraph.js +2 -2
  47. package/Popover.js +12 -7
  48. package/Progress.js +2 -2
  49. package/RadioBar.js +141 -37
  50. package/RadioList.js +2 -2
  51. package/Resize.js +2 -2
  52. package/ResultsMenu.js +6 -6
  53. package/ScreenReaderContent.js +2 -2
  54. package/Scroll.js +2 -2
  55. package/ScrollContainerContext.js +2 -2
  56. package/Search.js +4 -4
  57. package/Select.js +9 -9
  58. package/SidePanel.js +4 -4
  59. package/Slider.js +4 -4
  60. package/SlidingPanels.js +14 -5
  61. package/StaticContent.js +2 -2
  62. package/StepBar.js +2 -2
  63. package/Switch.js +2 -2
  64. package/TabBar.js +2 -2
  65. package/TabLayout.js +4 -4
  66. package/Table.js +28 -30
  67. package/Text.js +4 -4
  68. package/Tooltip.js +2 -2
  69. package/TransitionOpen.js +14 -5
  70. package/WaitSpinner.js +2 -2
  71. package/package.json +3 -3
  72. package/types/src/Accordion/AccordionContext.d.ts +0 -1
  73. package/types/src/Button/Button.d.ts +0 -2
  74. package/types/src/ButtonGroup/ButtonGroupContext.d.ts +0 -1
  75. package/types/src/Card/Card.d.ts +0 -2
  76. package/types/src/CardLayout/CardLayoutContext.d.ts +0 -1
  77. package/types/src/Concertina/ConcertinaContext.d.ts +0 -1
  78. package/types/src/File/FileContext.d.ts +0 -1
  79. package/types/src/FormRows/FormRowsContext.d.ts +0 -1
  80. package/types/src/JSONTree/JSONTree.d.ts +2 -2
  81. package/types/src/JSONTree/TreeNode.d.ts +1 -1
  82. package/types/src/JSONTree/docs/examples/WithShiftModifier.d.ts +1 -0
  83. package/types/src/Markdown/Markdown.d.ts +2 -3
  84. package/types/src/Menu/MenuContext.d.ts +0 -1
  85. package/types/src/Modal/ModalContext.d.ts +0 -1
  86. package/types/src/ModalLayer/ModalLayer.d.ts +2 -0
  87. package/types/src/Popover/Popover.d.ts +1 -0
  88. package/types/src/Popover/PopoverContext.d.ts +0 -1
  89. package/types/src/RadioBar/Option.d.ts +10 -2
  90. package/types/src/RadioBar/RadioBar.d.ts +4 -1
  91. package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
  92. package/types/src/RadioList/RadioListContext.d.ts +0 -1
  93. package/types/src/SlidingPanels/SlidingPanels.d.ts +2 -0
  94. package/types/src/StepBar/StepBarContext.d.ts +0 -1
  95. package/types/src/TabBar/TabBarContext.d.ts +0 -1
  96. package/types/src/TransitionOpen/TransitionOpen.d.ts +2 -0
  97. package/usePrevious.js +2 -2
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 = 173);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 171);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 105:
104
+ /***/ 103:
105
105
  /***/ (function(module, exports) {
106
106
 
107
107
  module.exports = require("decimal.js-light");
@@ -122,7 +122,7 @@ module.exports = require("@splunk/react-ui/Popover");
122
122
 
123
123
  /***/ }),
124
124
 
125
- /***/ 173:
125
+ /***/ 171:
126
126
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
127
127
 
128
128
  "use strict";
@@ -141,7 +141,7 @@ var external_prop_types_ = __webpack_require__(1);
141
141
  var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
142
142
 
143
143
  // EXTERNAL MODULE: external "decimal.js-light"
144
- var external_decimal_js_light_ = __webpack_require__(105);
144
+ var external_decimal_js_light_ = __webpack_require__(103);
145
145
  var external_decimal_js_light_default = /*#__PURE__*/__webpack_require__.n(external_decimal_js_light_);
146
146
 
147
147
  // EXTERNAL MODULE: external "lodash"
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 = 146);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 144);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -128,7 +128,7 @@ function updateReactRef(ref, current) {
128
128
 
129
129
  /***/ }),
130
130
 
131
- /***/ 146:
131
+ /***/ 144:
132
132
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
133
133
 
134
134
  "use strict";
@@ -382,6 +382,8 @@ var SlidingPanels_SlidingPanels = /*#__PURE__*/function (_Component) {
382
382
 
383
383
  SlidingPanels_defineProperty(SlidingPanels_assertThisInitialized(_this), "panelInstances", {});
384
384
 
385
+ SlidingPanels_defineProperty(SlidingPanels_assertThisInitialized(_this), "allowAnimationUpdates", true);
386
+
385
387
  SlidingPanels_defineProperty(SlidingPanels_assertThisInitialized(_this), "willEnter", function () {
386
388
  return {
387
389
  translateX: 0
@@ -417,9 +419,11 @@ var SlidingPanels_SlidingPanels = /*#__PURE__*/function (_Component) {
417
419
  SlidingPanels_defineProperty(SlidingPanels_assertThisInitialized(_this), "handleAnimationEnd", function () {
418
420
  var _this$props$onAnimati, _this$props;
419
421
 
420
- _this.setState({
421
- animating: false
422
- });
422
+ if (_this.allowAnimationUpdates) {
423
+ _this.setState({
424
+ animating: false
425
+ });
426
+ }
423
427
 
424
428
  (_this$props$onAnimati = (_this$props = _this.props).onAnimationEnd) === null || _this$props$onAnimati === void 0 ? void 0 : _this$props$onAnimati.call(_this$props);
425
429
  });
@@ -517,6 +521,11 @@ var SlidingPanels_SlidingPanels = /*#__PURE__*/function (_Component) {
517
521
  }
518
522
 
519
523
  SlidingPanels_createClass(SlidingPanels, [{
524
+ key: "componentWillUnmount",
525
+ value: function componentWillUnmount() {
526
+ this.allowAnimationUpdates = false;
527
+ }
528
+ }, {
520
529
  key: "render",
521
530
  value: function render() {
522
531
  var _this$state = this.state,
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 = 174);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 172);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 174:
104
+ /***/ 172:
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 = 122);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 120);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/ui-utils/id");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 122:
111
+ /***/ 120:
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 = 147);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 145);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -122,7 +122,7 @@ module.exports = require("@splunk/react-ui/ScreenReaderContent");
122
122
 
123
123
  /***/ }),
124
124
 
125
- /***/ 147:
125
+ /***/ 145:
126
126
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
127
127
 
128
128
  "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 = 131);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 129);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -142,7 +142,7 @@ function updateReactRef(ref, current) {
142
142
 
143
143
  /***/ }),
144
144
 
145
- /***/ 131:
145
+ /***/ 129:
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 = 148);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 146);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/ui-utils/id");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 148:
111
+ /***/ 146:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
@@ -134,7 +134,7 @@ var external_lodash_ = __webpack_require__(4);
134
134
  var id_ = __webpack_require__(10);
135
135
 
136
136
  // EXTERNAL MODULE: external "@splunk/react-ui/TabBar"
137
- var TabBar_ = __webpack_require__(83);
137
+ var TabBar_ = __webpack_require__(81);
138
138
  var TabBar_default = /*#__PURE__*/__webpack_require__.n(TabBar_);
139
139
 
140
140
  // EXTERNAL MODULE: external "styled-components"
@@ -405,7 +405,7 @@ module.exports = require("lodash");
405
405
 
406
406
  /***/ }),
407
407
 
408
- /***/ 83:
408
+ /***/ 81:
409
409
  /***/ (function(module, exports) {
410
410
 
411
411
  module.exports = require("@splunk/react-ui/TabBar");
package/Table.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 = 114);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 112);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ([
@@ -503,15 +503,14 @@ function assertDefined(val, msg) {
503
503
  /* 59 */,
504
504
  /* 60 */,
505
505
  /* 61 */,
506
- /* 62 */,
507
- /* 63 */
506
+ /* 62 */
508
507
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
509
508
 
510
509
  "use strict";
511
510
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MoreVertical; });
512
511
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
513
512
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
514
- /* harmony import */ var _splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64);
513
+ /* harmony import */ var _splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(63);
515
514
  /* harmony import */ var _splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1__);
516
515
  /* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
517
516
  /* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
@@ -541,21 +540,20 @@ function MoreVertical(props) {
541
540
  }
542
541
 
543
542
  /***/ }),
544
- /* 64 */
543
+ /* 63 */
545
544
  /***/ (function(module, exports) {
546
545
 
547
546
  module.exports = require("@splunk/react-icons/MoreVertical");
548
547
 
549
548
  /***/ }),
550
- /* 65 */,
551
- /* 66 */
549
+ /* 64 */
552
550
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
553
551
 
554
552
  "use strict";
555
553
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChevronDown; });
556
554
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
557
555
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
558
- /* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67);
556
+ /* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65);
559
557
  /* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__);
560
558
  /* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
561
559
  /* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
@@ -597,21 +595,23 @@ function ChevronDown(props) {
597
595
  }
598
596
 
599
597
  /***/ }),
600
- /* 67 */
598
+ /* 65 */
601
599
  /***/ (function(module, exports) {
602
600
 
603
601
  module.exports = require("@splunk/react-icons/ChevronDown");
604
602
 
605
603
  /***/ }),
604
+ /* 66 */,
605
+ /* 67 */,
606
606
  /* 68 */,
607
- /* 69 */,
608
- /* 70 */,
609
- /* 71 */
607
+ /* 69 */
610
608
  /***/ (function(module, exports) {
611
609
 
612
610
  module.exports = require("@splunk/react-ui/Switch");
613
611
 
614
612
  /***/ }),
613
+ /* 70 */,
614
+ /* 71 */,
615
615
  /* 72 */,
616
616
  /* 73 */,
617
617
  /* 74 */,
@@ -644,42 +644,40 @@ module.exports = require("@splunk/react-ui/Switch");
644
644
  /* 101 */,
645
645
  /* 102 */,
646
646
  /* 103 */,
647
- /* 104 */,
648
- /* 105 */,
649
- /* 106 */
647
+ /* 104 */
650
648
  /***/ (function(module, exports) {
651
649
 
652
650
  module.exports = require("react-resize-detector");
653
651
 
654
652
  /***/ }),
655
- /* 107 */
653
+ /* 105 */
656
654
  /***/ (function(module, exports) {
657
655
 
658
656
  module.exports = require("@splunk/react-icons/SortedDown");
659
657
 
660
658
  /***/ }),
661
- /* 108 */
659
+ /* 106 */
662
660
  /***/ (function(module, exports) {
663
661
 
664
662
  module.exports = require("@splunk/react-icons/SortedUp");
665
663
 
666
664
  /***/ }),
667
- /* 109 */
665
+ /* 107 */
668
666
  /***/ (function(module, exports) {
669
667
 
670
668
  module.exports = require("@splunk/react-icons/Sort");
671
669
 
672
670
  /***/ }),
673
- /* 110 */
671
+ /* 108 */
674
672
  /***/ (function(module, exports) {
675
673
 
676
674
  module.exports = require("@splunk/react-icons/Info");
677
675
 
678
676
  /***/ }),
677
+ /* 109 */,
678
+ /* 110 */,
679
679
  /* 111 */,
680
- /* 112 */,
681
- /* 113 */,
682
- /* 114 */
680
+ /* 112 */
683
681
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
684
682
 
685
683
  "use strict";
@@ -708,7 +706,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
708
706
  var external_lodash_ = __webpack_require__(4);
709
707
 
710
708
  // EXTERNAL MODULE: external "react-resize-detector"
711
- var external_react_resize_detector_ = __webpack_require__(106);
709
+ var external_react_resize_detector_ = __webpack_require__(104);
712
710
  var external_react_resize_detector_default = /*#__PURE__*/__webpack_require__.n(external_react_resize_detector_);
713
711
 
714
712
  // EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
@@ -1412,7 +1410,7 @@ Cell_defineProperty(Cell_Cell, "defaultProps", Cell_defaultProps);
1412
1410
  var i18n_ = __webpack_require__(5);
1413
1411
 
1414
1412
  // EXTERNAL MODULE: external "@splunk/react-icons/SortedDown"
1415
- var SortedDown_ = __webpack_require__(107);
1413
+ var SortedDown_ = __webpack_require__(105);
1416
1414
  var SortedDown_default = /*#__PURE__*/__webpack_require__.n(SortedDown_);
1417
1415
 
1418
1416
  // EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
@@ -1459,7 +1457,7 @@ function SortedDown(props) {
1459
1457
  }, props));
1460
1458
  }
1461
1459
  // EXTERNAL MODULE: external "@splunk/react-icons/SortedUp"
1462
- var SortedUp_ = __webpack_require__(108);
1460
+ var SortedUp_ = __webpack_require__(106);
1463
1461
  var SortedUp_default = /*#__PURE__*/__webpack_require__.n(SortedUp_);
1464
1462
 
1465
1463
  // CONCATENATED MODULE: ./src/icons/SortedUp.tsx
@@ -1500,7 +1498,7 @@ function SortedUp(props) {
1500
1498
  }, props));
1501
1499
  }
1502
1500
  // EXTERNAL MODULE: external "@splunk/react-icons/Sort"
1503
- var Sort_ = __webpack_require__(109);
1501
+ var Sort_ = __webpack_require__(107);
1504
1502
  var Sort_default = /*#__PURE__*/__webpack_require__.n(Sort_);
1505
1503
 
1506
1504
  // CONCATENATED MODULE: ./src/icons/Sort.tsx
@@ -2452,7 +2450,7 @@ HeadCell_defineProperty(HeadCell_HeadCell, "defaultProps", HeadCell_defaultProps
2452
2450
 
2453
2451
  /* harmony default export */ var Table_HeadCell = (HeadCell_HeadCell);
2454
2452
  // EXTERNAL MODULE: external "@splunk/react-icons/Info"
2455
- var Info_ = __webpack_require__(110);
2453
+ var Info_ = __webpack_require__(108);
2456
2454
  var Info_default = /*#__PURE__*/__webpack_require__.n(Info_);
2457
2455
 
2458
2456
  // EXTERNAL MODULE: ./src/icons/ChevronRight.tsx
@@ -2492,10 +2490,10 @@ var Tooltip_ = __webpack_require__(48);
2492
2490
  var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip_);
2493
2491
 
2494
2492
  // EXTERNAL MODULE: ./src/icons/ChevronDown.tsx
2495
- var ChevronDown = __webpack_require__(66);
2493
+ var ChevronDown = __webpack_require__(64);
2496
2494
 
2497
2495
  // EXTERNAL MODULE: ./src/icons/MoreVertical.tsx
2498
- var MoreVertical = __webpack_require__(63);
2496
+ var MoreVertical = __webpack_require__(62);
2499
2497
 
2500
2498
  // CONCATENATED MODULE: ./src/Table/RowDragCell.tsx
2501
2499
  function RowDragCell_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { RowDragCell_typeof = function _typeof(obj) { return typeof obj; }; } else { RowDragCell_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return RowDragCell_typeof(obj); }
@@ -2777,7 +2775,7 @@ var StyledCellExpansionDisabled = external_styled_components_default()(Table_Cel
2777
2775
  }));
2778
2776
 
2779
2777
  // EXTERNAL MODULE: external "@splunk/react-ui/Switch"
2780
- var Switch_ = __webpack_require__(71);
2778
+ var Switch_ = __webpack_require__(69);
2781
2779
  var Switch_default = /*#__PURE__*/__webpack_require__.n(Switch_);
2782
2780
 
2783
2781
  // CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
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 = 132);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 130);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 111:
104
+ /***/ 109:
105
105
  /***/ (function(module, exports) {
106
106
 
107
107
  module.exports = require("@splunk/react-ui/ControlGroup");
@@ -135,7 +135,7 @@ function updateReactRef(ref, current) {
135
135
 
136
136
  /***/ }),
137
137
 
138
- /***/ 132:
138
+ /***/ 130:
139
139
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
140
140
 
141
141
  "use strict";
@@ -171,7 +171,7 @@ var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReade
171
171
  var themes_ = __webpack_require__(0);
172
172
 
173
173
  // EXTERNAL MODULE: external "@splunk/react-ui/ControlGroup"
174
- var ControlGroup_ = __webpack_require__(111);
174
+ var ControlGroup_ = __webpack_require__(109);
175
175
 
176
176
  // EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
177
177
  var i18n_ = __webpack_require__(5);
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 = 149);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 147);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -122,7 +122,7 @@ module.exports = require("@splunk/react-ui/ScreenReaderContent");
122
122
 
123
123
  /***/ }),
124
124
 
125
- /***/ 149:
125
+ /***/ 147:
126
126
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
127
127
 
128
128
  "use strict";
package/TransitionOpen.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 = 175);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 173);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 175:
104
+ /***/ 173:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -234,6 +234,8 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
234
234
 
235
235
  _this = _super.call(this, props);
236
236
 
237
+ _defineProperty(_assertThisInitialized(_this), "allowAnimationUpdates", true);
238
+
237
239
  _defineProperty(_assertThisInitialized(_this), "getValue", function (el) {
238
240
  var animation = _this.props.animation;
239
241
  var value = 0;
@@ -277,9 +279,11 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
277
279
  _defineProperty(_assertThisInitialized(_this), "handleRest", function () {
278
280
  var _this$props$onAnimati, _this$props;
279
281
 
280
- _this.setState({
281
- animating: false
282
- });
282
+ if (_this.allowAnimationUpdates) {
283
+ _this.setState({
284
+ animating: false
285
+ });
286
+ }
283
287
 
284
288
  (_this$props$onAnimati = (_this$props = _this.props).onAnimationEnd) === null || _this$props$onAnimati === void 0 ? void 0 : _this$props$onAnimati.call(_this$props);
285
289
  });
@@ -420,6 +424,11 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
420
424
  }); // eslint-disable-line react/no-did-update-set-state
421
425
  }
422
426
  }
427
+ }, {
428
+ key: "componentWillUnmount",
429
+ value: function componentWillUnmount() {
430
+ this.allowAnimationUpdates = false;
431
+ }
423
432
  }, {
424
433
  key: "render",
425
434
  value: function render() {
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 = 176);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 174);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 176:
104
+ /***/ 174:
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.9.0",
3
+ "version": "4.10.0",
4
4
  "description": "Library of React components that implement the Splunk design language",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Splunk Inc.",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@splunk/react-icons": "^3.2.0",
40
40
  "@splunk/themes": "^0.11.0",
41
- "@splunk/ui-utils": "^1.4.0",
41
+ "@splunk/ui-utils": "^1.5.0",
42
42
  "@types/commonmark": "^0.27.0",
43
43
  "@types/lodash": "^4.14.156",
44
44
  "@types/react": "^16.9.38",
@@ -54,7 +54,7 @@
54
54
  "prop-types": "^15.6.2",
55
55
  "react-resize-detector": "^3.2.1",
56
56
  "react-sortable-hoc": "^1.11.0",
57
- "react-spring": "^9.2.2",
57
+ "react-spring": "^9.2.4",
58
58
  "tinycolor2": "^1.4.1",
59
59
  "use-typed-event-listener": "^3.0.0"
60
60
  },
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CollapsiblePanelRequestCloseHandler, CollapsiblePanelRequestOpenHandler } from '@splunk/react-ui/CollapsiblePanel';
3
2
  export interface AccordionContext {
4
3
  onRequestClose?: CollapsiblePanelRequestCloseHandler;
@@ -1,6 +1,5 @@
1
1
  import React, { Component } from 'react';
2
2
  import { legacyRefMode } from '@splunk/react-ui/Dropdown';
3
- import { ButtonGroupContext } from '../ButtonGroup/ButtonGroupContext';
4
3
  import { ClassComponentProps } from '../utils/types';
5
4
  /** @public */
6
5
  declare type ButtonClickHandler = (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>, data: {
@@ -68,7 +67,6 @@ declare class Button extends Component<ButtonProps> {
68
67
  private component;
69
68
  static propTypes: React.WeakValidationMap<ClassComponentProps<ButtonPropsBase, Required<Pick<ButtonPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "openInNewContext" | "append" | "prepend" | "isMenu">>, "button", never>> | React.WeakValidationMap<ClassComponentProps<ButtonPropsBase, Required<Pick<ButtonPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "openInNewContext" | "append" | "prepend" | "isMenu">>, "a", "href">>;
70
69
  static defaultProps: Required<Pick<ButtonPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "openInNewContext" | "append" | "prepend" | "isMenu">>;
71
- static contextType: React.Context<ButtonGroupContext>;
72
70
  static [legacyRefMode]: boolean;
73
71
  private handleClick;
74
72
  private handleMount;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface ButtonGroupContext {
3
2
  inline?: boolean;
4
3
  role?: string;
@@ -3,7 +3,6 @@ import Body from './Body';
3
3
  import Footer from './Footer';
4
4
  import Header from './Header';
5
5
  import { ClassComponentProps } from '../utils/types';
6
- import CardLayoutContext from '../CardLayout/CardLayoutContext';
7
6
  /** @public */
8
7
  declare type CardClickHandler = (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>, data: {
9
8
  selected: boolean;
@@ -69,7 +68,6 @@ declare type CardProps = CardNonClickableProps | CardClickableButtonProps | Card
69
68
  declare class Card extends Component<CardProps, {}> {
70
69
  static propTypes: React.WeakValidationMap<ClassComponentProps<CardPropsBaseNonClickable, Required<Pick<CardPropsBase, "selected" | "openInNewContext" | "showBorder">>, "div", never>> | React.WeakValidationMap<ClassComponentProps<CardPropsBaseClickable, Required<Pick<CardPropsBase, "selected" | "openInNewContext" | "showBorder">>, "button", never>> | React.WeakValidationMap<ClassComponentProps<CardPropsBaseClickable, Required<Pick<CardPropsBase, "selected" | "openInNewContext" | "showBorder">>, "a", "href">>;
71
70
  static defaultProps: Required<Pick<CardPropsBase, "selected" | "openInNewContext" | "showBorder">>;
72
- static contextType: React.Context<CardLayoutContext>;
73
71
  static Header: typeof Header;
74
72
  static Body: typeof Body;
75
73
  static Footer: typeof Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface CardLayoutContext {
3
2
  minWidth?: number | string;
4
3
  maxWidth?: number | string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PanelClickHandler, PanelChangeHandler } from './Panel';
3
2
  export interface ConcertinaContext {
4
3
  onHeadingClick?: PanelClickHandler;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ItemClickHandler } from './Item';
3
2
  export interface FileContext {
4
3
  disabled: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RowKeyDownHandler } from './Row';
3
2
  export interface FormRowsContext {
4
3
  disabledDeleteButton: boolean | undefined;
@@ -48,7 +48,7 @@ interface JSONTreePropsBase {
48
48
  * Starts with all nodes expanded if set to `true`. The default is `false`, which expands only the first
49
49
  * level of properties.
50
50
  */
51
- expandChildren?: boolean;
51
+ expandChildren?: boolean | 'withShiftModifier';
52
52
  /**
53
53
  * Handles overflow by wrapping values or by enabling scrolling.
54
54
  */
@@ -66,7 +66,7 @@ declare namespace JSONTree {
66
66
  indent: PropTypes.Requireable<number>;
67
67
  onClickKey: PropTypes.Requireable<(...args: any[]) => any>;
68
68
  onClickValue: PropTypes.Requireable<(...args: any[]) => any>;
69
- expandChildren: PropTypes.Requireable<boolean>;
69
+ expandChildren: PropTypes.Requireable<string | boolean>;
70
70
  overflow: PropTypes.Requireable<string>;
71
71
  };
72
72
  }
@@ -4,7 +4,7 @@ import { ClassComponentProps } from '../utils/types';
4
4
  interface JSONTreeNodePropsBase {
5
5
  path?: (string | number)[];
6
6
  defaultOpen?: boolean;
7
- expandChildren?: boolean;
7
+ expandChildren?: boolean | 'withShiftModifier';
8
8
  indent?: number;
9
9
  indentLevel?: number;
10
10
  obj: JSONElement;
@@ -0,0 +1 @@
1
+ export default function WithShiftModifier(): JSX.Element;