@splunk/react-ui 4.1.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 (163) hide show
  1. package/Accordion.js +4 -4
  2. package/Anchor.js +2 -2
  3. package/Animation.js +26 -35
  4. package/AnimationToggle.js +2 -2
  5. package/Box.js +2 -2
  6. package/Button.js +22 -22
  7. package/ButtonGroup.js +2 -2
  8. package/ButtonSimple.js +12 -6
  9. package/CHANGELOG.md +69 -2
  10. package/Calendar.js +23 -23
  11. package/Card.js +15 -15
  12. package/CardLayout.js +2 -2
  13. package/Chip.js +13 -13
  14. package/Clickable.js +4 -4
  15. package/CloseButton.js +8 -8
  16. package/Code.js +1279 -1120
  17. package/CollapsiblePanel.js +11 -11
  18. package/Color.js +111 -172
  19. package/ColumnLayout.js +6 -6
  20. package/ComboBox.js +63 -30
  21. package/Concertina.js +2 -2
  22. package/ControlGroup.js +61 -20
  23. package/Date.js +66 -29
  24. package/DefinitionList.js +2 -2
  25. package/Dropdown.js +6 -6
  26. package/FetchOptions.js +8 -8
  27. package/File.js +87 -72
  28. package/FormRows.js +219 -331
  29. package/Heading.js +2 -2
  30. package/Image.js +15 -15
  31. package/JSONTree.js +63 -20
  32. package/Layer.js +8 -8
  33. package/Link.js +13 -13
  34. package/List.js +2 -2
  35. package/Markdown.js +19 -19
  36. package/Menu.js +315 -230
  37. package/Message.js +19 -19
  38. package/Modal.js +22 -11
  39. package/ModalLayer.js +25 -11
  40. package/Monogram.js +7 -7
  41. package/Multiselect.js +1931 -1057
  42. package/Number.js +40 -27
  43. package/Paginator.js +67 -49
  44. package/Paragraph.js +2 -2
  45. package/Popover.js +62 -35
  46. package/Progress.js +9 -21
  47. package/RadioBar.js +6 -6
  48. package/RadioList.js +2 -2
  49. package/ResultsMenu.js +18 -10
  50. package/ScreenReaderContent.js +2 -2
  51. package/Scroll.js +37 -19
  52. package/ScrollContainerContext.js +2 -2
  53. package/Select.js +1309 -562
  54. package/SidePanel.js +22 -17
  55. package/Slider.js +8 -8
  56. package/SlidingPanels.js +63 -47
  57. package/StaticContent.js +2 -2
  58. package/StepBar.js +8 -8
  59. package/Switch.js +20 -11
  60. package/TabBar.js +54 -40
  61. package/TabLayout.js +4 -4
  62. package/Table.js +148 -85
  63. package/Text.js +474 -356
  64. package/Tooltip.js +6 -6
  65. package/TransitionOpen.js +26 -24
  66. package/WaitSpinner.js +4 -4
  67. package/package.json +8 -7
  68. package/stubs-splunkui.d.ts +1 -0
  69. package/types/src/Accordion/Accordion.d.ts +2 -2
  70. package/types/src/Animation/Animation.d.ts +6 -5
  71. package/types/src/Button/Button.d.ts +2 -2
  72. package/types/src/ButtonSimple/ButtonSimple.d.ts +5 -5
  73. package/types/src/Calendar/DateTable.d.ts +1 -0
  74. package/types/src/Calendar/MonthHeader.d.ts +2 -2
  75. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -2
  76. package/types/src/Color/Color.d.ts +5 -4
  77. package/types/src/Color/Swatch.d.ts +4 -15
  78. package/types/src/ComboBox/ComboBox.d.ts +2 -2
  79. package/types/src/ControlGroup/ControlGroup.d.ts +7 -2
  80. package/types/src/ControlGroup/ControlGroupContext.d.ts +15 -0
  81. package/types/src/Date/Date.d.ts +7 -5
  82. package/types/src/Date/Icon.d.ts +1 -0
  83. package/types/src/Dropdown/Dropdown.d.ts +1 -1
  84. package/types/src/File/File.d.ts +2 -2
  85. package/types/src/File/FileContext.d.ts +9 -0
  86. package/types/src/File/Icon.d.ts +1 -0
  87. package/types/src/File/IconCloud.d.ts +1 -0
  88. package/types/src/File/Item.d.ts +5 -10
  89. package/types/src/File/PaperClip.d.ts +1 -0
  90. package/types/src/File/Retry.d.ts +1 -0
  91. package/types/src/File/Trash.d.ts +1 -0
  92. package/types/src/FormRows/FormRows.d.ts +11 -69
  93. package/types/src/FormRows/FormRowsContext.d.ts +9 -0
  94. package/types/src/FormRows/Row.d.ts +7 -20
  95. package/types/src/JSONTree/JSONTree.d.ts +14 -2
  96. package/types/src/JSONTree/TreeNode.d.ts +4 -1
  97. package/types/src/Menu/Divider.d.ts +1 -0
  98. package/types/src/Menu/Heading.d.ts +3 -1
  99. package/types/src/Menu/Item.d.ts +22 -6
  100. package/types/src/Menu/Menu.d.ts +17 -18
  101. package/types/src/Menu/MenuContext.d.ts +6 -0
  102. package/types/src/Menu/index.d.ts +1 -0
  103. package/types/src/Multiselect/Compact.d.ts +7 -26
  104. package/types/src/Multiselect/Multiselect.d.ts +7 -2
  105. package/types/src/Multiselect/Normal.d.ts +8 -2
  106. package/types/src/Multiselect/Option.d.ts +4 -1
  107. package/types/src/Number/IncrementIcon.d.ts +1 -0
  108. package/types/src/Number/Number.d.ts +4 -4
  109. package/types/src/Paginator/PageSeparator.d.ts +3 -0
  110. package/types/src/Popover/Popover.d.ts +5 -5
  111. package/types/src/Popover/PopoverContext.d.ts +6 -0
  112. package/types/src/Popover/index.d.ts +1 -0
  113. package/types/src/RadioBar/RadioBar.d.ts +5 -5
  114. package/types/src/RadioList/RadioListContext.d.ts +1 -0
  115. package/types/src/ResultsMenu/ResultsMenu.d.ts +4 -0
  116. package/types/src/Scroll/Inner.d.ts +4 -3
  117. package/types/src/Scroll/Scroll.d.ts +1 -1
  118. package/types/src/Select/Option.d.ts +2 -5
  119. package/types/src/Select/OptionBase.d.ts +94 -0
  120. package/types/src/Select/Select.d.ts +12 -37
  121. package/types/src/Select/SelectBase.d.ts +221 -0
  122. package/types/src/SidePanel/SidePanel.d.ts +4 -0
  123. package/types/src/Slider/Slider.d.ts +4 -4
  124. package/types/src/SlidingPanels/SlidingPanels.d.ts +0 -1
  125. package/types/src/Switch/CheckIcon.d.ts +1 -0
  126. package/types/src/Switch/Switch.d.ts +3 -7
  127. package/types/src/TabBar/Tab.d.ts +4 -1
  128. package/types/src/TabLayout/TabLayout.d.ts +2 -2
  129. package/types/src/Table/DragHandle.d.ts +1 -0
  130. package/types/src/Table/Head.d.ts +2 -0
  131. package/types/src/Table/HeadCell.d.ts +2 -2
  132. package/types/src/Table/HeadDropdownCell.d.ts +1 -1
  133. package/types/src/Table/HeadExpandRowsIcon.d.ts +1 -0
  134. package/types/src/Table/HeadInner.d.ts +3 -3
  135. package/types/src/Table/Table.d.ts +7 -3
  136. package/types/src/Table/Toggle.d.ts +1 -0
  137. package/types/src/Text/IconOutlinedHide.d.ts +1 -0
  138. package/types/src/Text/IconOutlinedView.d.ts +1 -0
  139. package/types/src/Text/Text.d.ts +28 -12
  140. package/types/src/Tooltip/InfoIcon.d.ts +1 -0
  141. package/types/src/Tooltip/Tooltip.d.ts +3 -3
  142. package/types/src/icons/Alert.d.ts +1 -0
  143. package/types/src/icons/AlertFilled.d.ts +1 -0
  144. package/types/src/icons/CaretDown.d.ts +1 -0
  145. package/types/src/icons/CaretRight.d.ts +1 -0
  146. package/types/src/icons/Check.d.ts +1 -0
  147. package/types/src/icons/ChevronDown.d.ts +1 -0
  148. package/types/src/icons/ChevronLeft.d.ts +1 -0
  149. package/types/src/icons/ChevronRight.d.ts +1 -0
  150. package/types/src/icons/CrossMark.d.ts +1 -0
  151. package/types/src/icons/External.d.ts +1 -0
  152. package/types/src/icons/InfoFilled.d.ts +1 -0
  153. package/types/src/icons/More.d.ts +1 -0
  154. package/types/src/icons/MoreVertical.d.ts +1 -0
  155. package/types/src/icons/Plus.d.ts +1 -0
  156. package/types/src/icons/SVG.d.ts +1 -0
  157. package/types/src/icons/Search.d.ts +1 -0
  158. package/types/src/icons/SortedDown.d.ts +1 -0
  159. package/types/src/icons/SortedUp.d.ts +1 -0
  160. package/types/src/icons/Success.d.ts +1 -0
  161. package/types/src/icons/SuccessFilled.d.ts +1 -0
  162. package/types/src/icons/WarningFilled.d.ts +1 -0
  163. package/types/src/utils/types.d.ts +1 -0
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 = 161);
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
- /***/ 161:
104
+ /***/ 154:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -123,7 +123,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
123
123
  var external_lodash_ = __webpack_require__(4);
124
124
 
125
125
  // EXTERNAL MODULE: external "@splunk/react-ui/ModalLayer"
126
- var ModalLayer_ = __webpack_require__(63);
126
+ var ModalLayer_ = __webpack_require__(65);
127
127
  var ModalLayer_default = /*#__PURE__*/__webpack_require__.n(ModalLayer_);
128
128
 
129
129
  // EXTERNAL MODULE: external "styled-components"
@@ -131,7 +131,7 @@ var external_styled_components_ = __webpack_require__(3);
131
131
  var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
132
132
 
133
133
  // EXTERNAL MODULE: external "@splunk/react-ui/TransitionOpen"
134
- var TransitionOpen_ = __webpack_require__(44);
134
+ var TransitionOpen_ = __webpack_require__(46);
135
135
  var TransitionOpen_default = /*#__PURE__*/__webpack_require__.n(TransitionOpen_);
136
136
 
137
137
  // EXTERNAL MODULE: external "@splunk/themes"
@@ -215,6 +215,7 @@ var propTypes = {
215
215
  dockPosition: external_prop_types_default.a.oneOf(['top', 'bottom', 'left', 'right']),
216
216
  innerClassName: external_prop_types_default.a.string,
217
217
  innerStyle: external_prop_types_default.a.object,
218
+ onAnimationEnd: external_prop_types_default.a.func,
218
219
  onRequestClose: external_prop_types_default.a.func,
219
220
  open: external_prop_types_default.a.bool,
220
221
  outerClassName: external_prop_types_default.a.string,
@@ -247,19 +248,23 @@ var SidePanel_SidePanel = /*#__PURE__*/function (_Component) {
247
248
  _this = _super.call(this, props);
248
249
 
249
250
  _defineProperty(_assertThisInitialized(_this), "handlePanelAnimationEnd", function () {
251
+ var _this$props$onAnimati, _this$props;
252
+
250
253
  _this.setState({
251
254
  panelAnimating: false
252
255
  });
256
+
257
+ (_this$props$onAnimati = (_this$props = _this.props).onAnimationEnd) === null || _this$props$onAnimati === void 0 ? void 0 : _this$props$onAnimati.call(_this$props);
253
258
  });
254
259
 
255
260
  _defineProperty(_assertThisInitialized(_this), "renderModal", function () {
256
- var _this$props = _this.props,
257
- children = _this$props.children,
258
- dockPosition = _this$props.dockPosition,
259
- innerClassName = _this$props.innerClassName,
260
- innerStyle = _this$props.innerStyle,
261
- outerClassName = _this$props.outerClassName,
262
- outerStyle = _this$props.outerStyle;
261
+ var _this$props2 = _this.props,
262
+ children = _this$props2.children,
263
+ dockPosition = _this$props2.dockPosition,
264
+ innerClassName = _this$props2.innerClassName,
265
+ innerStyle = _this$props2.innerStyle,
266
+ outerClassName = _this$props2.outerClassName,
267
+ outerStyle = _this$props2.outerStyle;
263
268
  var StyledTransitionOpen = {
264
269
  left: StyledLeftPanelTransitionOpen,
265
270
  right: StyledRightPanelTransitionOpen,
@@ -299,10 +304,10 @@ var SidePanel_SidePanel = /*#__PURE__*/function (_Component) {
299
304
  _createClass(SidePanel, [{
300
305
  key: "render",
301
306
  value: function render() {
302
- var _this$props2 = this.props,
303
- open = _this$props2.open,
304
- onRequestClose = _this$props2.onRequestClose,
305
- useLayerForClickAway = _this$props2.useLayerForClickAway;
307
+ var _this$props3 = this.props,
308
+ open = _this$props3.open,
309
+ onRequestClose = _this$props3.onRequestClose,
310
+ useLayerForClickAway = _this$props3.useLayerForClickAway;
306
311
  var panelAnimating = this.state.panelAnimating;
307
312
  return /*#__PURE__*/external_react_default.a.createElement(ModalLayer_default.a, {
308
313
  childrenInAnimation: panelAnimating,
@@ -360,14 +365,14 @@ module.exports = require("lodash");
360
365
 
361
366
  /***/ }),
362
367
 
363
- /***/ 44:
368
+ /***/ 46:
364
369
  /***/ (function(module, exports) {
365
370
 
366
371
  module.exports = require("@splunk/react-ui/TransitionOpen");
367
372
 
368
373
  /***/ }),
369
374
 
370
- /***/ 63:
375
+ /***/ 65:
371
376
  /***/ (function(module, exports) {
372
377
 
373
378
  module.exports = require("@splunk/react-ui/ModalLayer");
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 = 160);
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
- /***/ 160:
111
+ /***/ 156:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
@@ -131,7 +131,7 @@ var external_react_event_listener_ = __webpack_require__(15);
131
131
  var external_react_event_listener_default = /*#__PURE__*/__webpack_require__.n(external_react_event_listener_);
132
132
 
133
133
  // EXTERNAL MODULE: external "decimal.js-light"
134
- var external_decimal_js_light_ = __webpack_require__(92);
134
+ var external_decimal_js_light_ = __webpack_require__(94);
135
135
  var external_decimal_js_light_default = /*#__PURE__*/__webpack_require__.n(external_decimal_js_light_);
136
136
 
137
137
  // EXTERNAL MODULE: external "lodash"
@@ -144,7 +144,7 @@ var keyboard_ = __webpack_require__(9);
144
144
  var themes_ = __webpack_require__(0);
145
145
 
146
146
  // EXTERNAL MODULE: external "@splunk/react-ui/Popover"
147
- var Popover_ = __webpack_require__(18);
147
+ var Popover_ = __webpack_require__(17);
148
148
  var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
149
149
 
150
150
  // EXTERNAL MODULE: external "styled-components"
@@ -152,7 +152,7 @@ var external_styled_components_ = __webpack_require__(3);
152
152
  var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
153
153
 
154
154
  // EXTERNAL MODULE: external "tinycolor2"
155
- var external_tinycolor2_ = __webpack_require__(64);
155
+ var external_tinycolor2_ = __webpack_require__(66);
156
156
  var external_tinycolor2_default = /*#__PURE__*/__webpack_require__.n(external_tinycolor2_);
157
157
 
158
158
  // EXTERNAL MODULE: external "@splunk/react-ui/Box"
@@ -744,7 +744,7 @@ SliderWithTheme.propTypes = Slider_Slider.propTypes;
744
744
 
745
745
  /***/ }),
746
746
 
747
- /***/ 18:
747
+ /***/ 17:
748
748
  /***/ (function(module, exports) {
749
749
 
750
750
  module.exports = require("@splunk/react-ui/Popover");
@@ -772,7 +772,7 @@ module.exports = require("lodash");
772
772
 
773
773
  /***/ }),
774
774
 
775
- /***/ 64:
775
+ /***/ 66:
776
776
  /***/ (function(module, exports) {
777
777
 
778
778
  module.exports = require("tinycolor2");
@@ -793,7 +793,7 @@ module.exports = require("@splunk/ui-utils/keyboard");
793
793
 
794
794
  /***/ }),
795
795
 
796
- /***/ 92:
796
+ /***/ 94:
797
797
  /***/ (function(module, exports) {
798
798
 
799
799
  module.exports = require("decimal.js-light");
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 = 126);
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
- /***/ 126:
131
+ /***/ 137:
132
132
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
133
133
 
134
134
  "use strict";
@@ -150,8 +150,11 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
150
150
  // EXTERNAL MODULE: external "lodash"
151
151
  var external_lodash_ = __webpack_require__(4);
152
152
 
153
+ // EXTERNAL MODULE: external "react-spring"
154
+ var external_react_spring_ = __webpack_require__(18);
155
+
153
156
  // EXTERNAL MODULE: external "@splunk/react-ui/Animation"
154
- var Animation_ = __webpack_require__(27);
157
+ var Animation_ = __webpack_require__(30);
155
158
 
156
159
  // EXTERNAL MODULE: external "styled-components"
157
160
  var external_styled_components_ = __webpack_require__(3);
@@ -168,11 +171,12 @@ var themes_ = __webpack_require__(0);
168
171
 
169
172
 
170
173
 
171
- var StyledBox = external_styled_components_default()(Box_default.a).withConfig({
174
+
175
+ var StyledBox = external_styled_components_default()(Object(external_react_spring_["animated"])(Box_default.a)).withConfig({
172
176
  displayName: "SlidingPanelsStyles__StyledBox",
173
177
  componentId: "su6isq-0"
174
178
  })(["overflow:hidden;position:relative;"]);
175
- var Styled = external_styled_components_default.a.div.withConfig({
179
+ var Styled = external_styled_components_default()(external_react_spring_["animated"].div).withConfig({
176
180
  displayName: "SlidingPanelsStyles__Styled",
177
181
  componentId: "su6isq-1"
178
182
  })(["", ";", ";"], themes_["mixins"].reset('block'), themes_["mixins"].clearfix());
@@ -347,6 +351,7 @@ function SlidingPanels_defineProperty(obj, key, value) { if (key in obj) { Objec
347
351
 
348
352
 
349
353
 
354
+
350
355
  var SlidingPanels_propTypes = {
351
356
  activePanelId: external_prop_types_default.a.any.isRequired,
352
357
  children: external_prop_types_default.a.node,
@@ -420,60 +425,45 @@ var SlidingPanels_SlidingPanels = /*#__PURE__*/function (_Component) {
420
425
  });
421
426
 
422
427
  SlidingPanels_defineProperty(SlidingPanels_assertThisInitialized(_this), "renderPanel", function (transitionStyle, activePanelId, maxWidth) {
428
+ var _transitionStyle$tran;
429
+
423
430
  var _this$props2 = _this.props,
424
431
  children = _this$props2.children,
425
432
  transition = _this$props2.transition;
426
- var translateX = transitionStyle.translateX;
427
- var offset = translateX * maxWidth * (transition === 'forward' ? 1 : -1);
428
- var panelStyle = {
429
- transform: "translateX(".concat(offset, "px)")
430
- };
431
433
  var currentPanel = external_react_["Children"].toArray(children).filter(external_react_["isValidElement"]).find(function (child) {
432
434
  return child.props.panelId === activePanelId;
435
+ }); // TODO: Fix Interplation<string | number> can't be cast to string
436
+
437
+ var transform = (_transitionStyle$tran = transitionStyle.translateX) === null || _transitionStyle$tran === void 0 ? void 0 : _transitionStyle$tran.to(function (x) {
438
+ return "translateX(".concat(x * maxWidth * (transition === 'forward' ? 1 : -1), "px)");
433
439
  });
434
- var clonedPanel = currentPanel ? /*#__PURE__*/external_react_default.a.createElement("div", {
435
- style: _objectSpread({}, transitionStyle)
440
+ var clonedPanel = currentPanel ? /*#__PURE__*/external_react_default.a.createElement(external_react_spring_["animated"].div, {
441
+ style: transitionStyle
436
442
  }, /*#__PURE__*/Object(external_react_["cloneElement"])(currentPanel, {
437
- style: _objectSpread(_objectSpread({}, currentPanel.props.style), panelStyle),
443
+ style: _objectSpread(_objectSpread({}, currentPanel.props.style), {}, {
444
+ transform: transform
445
+ }),
438
446
  onMount: _this.handlePanelMount,
439
447
  onUnmount: _this.handlePanelUnmount
440
448
  })) : null;
441
449
  return clonedPanel;
442
450
  });
443
451
 
444
- SlidingPanels_defineProperty(SlidingPanels_assertThisInitialized(_this), "renderInnerContainer", function (activePanelId) {
452
+ SlidingPanels_defineProperty(SlidingPanels_assertThisInitialized(_this), "renderOuterContainer", function (interpolatedOuterStyle) {
445
453
  var _this$props3 = _this.props,
454
+ activePanelId = _this$props3.activePanelId,
455
+ children = _this$props3.children,
456
+ elementRef = _this$props3.elementRef,
457
+ outerClassName = _this$props3.outerClassName,
458
+ outerStyle = _this$props3.outerStyle,
446
459
  innerClassName = _this$props3.innerClassName,
447
460
  innerStyle = _this$props3.innerStyle;
448
- var currentPanelsArr = Object(external_lodash_["filter"])(Object(external_lodash_["values"])(_this.panelInstances), function (panel) {
449
- return !!panel;
450
- });
451
- var maxWidth = currentPanelsArr.map(function (panel) {
452
- var _currentPanel$getWidt;
453
-
454
- var currentPanel = _this.panelInstances[panel.props.panelId];
455
- return currentPanel ? (_currentPanel$getWidt = currentPanel.getWidth()) !== null && _currentPanel$getWidt !== void 0 ? _currentPanel$getWidt : 0 : 0;
456
- }).reduce(function (max, current) {
457
- return Math.max(max, current);
458
- }, 0);
459
- return function (transitionStyle) {
460
- return /*#__PURE__*/external_react_default.a.createElement("div", {
461
- style: innerStyle,
462
- className: innerClassName
463
- }, _this.renderPanel(transitionStyle, activePanelId, maxWidth));
464
- };
465
- });
466
-
467
- SlidingPanels_defineProperty(SlidingPanels_assertThisInitialized(_this), "renderOuterContainer", function (interpolatedOuterStyle) {
468
- var _this$props4 = _this.props,
469
- activePanelId = _this$props4.activePanelId,
470
- children = _this$props4.children,
471
- elementRef = _this$props4.elementRef,
472
- outerClassName = _this$props4.outerClassName,
473
- outerStyle = _this$props4.outerStyle;
474
461
  var animating = _this.state.animating;
475
462
 
476
- var style = _objectSpread(_objectSpread({}, outerStyle), animating ? interpolatedOuterStyle : {});
463
+ var style = _objectSpread(_objectSpread({}, outerStyle), animating ? {
464
+ width: interpolatedOuterStyle.width,
465
+ height: interpolatedOuterStyle.height
466
+ } : {});
477
467
 
478
468
  var currentPanel = external_react_["Children"].toArray(children).filter(external_react_["isValidElement"]).find(function (child) {
479
469
  return child.props.panelId === activePanelId;
@@ -484,6 +474,17 @@ var SlidingPanels_SlidingPanels = /*#__PURE__*/function (_Component) {
484
474
  var transitionStyle = animating ? {
485
475
  translateX: 1
486
476
  } : {};
477
+ var currentPanelsArr = Object(external_lodash_["filter"])(Object(external_lodash_["values"])(_this.panelInstances), function (panel) {
478
+ return !!panel;
479
+ });
480
+ var maxWidth = currentPanelsArr.map(function (panel) {
481
+ var _p$getWidth;
482
+
483
+ var p = _this.panelInstances[panel.props.panelId];
484
+ return p ? (_p$getWidth = p.getWidth()) !== null && _p$getWidth !== void 0 ? _p$getWidth : 0 : 0;
485
+ }).reduce(function (max, current) {
486
+ return Math.max(max, current);
487
+ }, 0);
487
488
  return /*#__PURE__*/external_react_default.a.createElement(StyledBox, SlidingPanels_extends({
488
489
  className: outerClassName,
489
490
  "data-test-active-panel-id": activePanelId,
@@ -495,7 +496,13 @@ var SlidingPanels_SlidingPanels = /*#__PURE__*/function (_Component) {
495
496
  enter: _this.willEnter(),
496
497
  leave: _this.willLeave(animating),
497
498
  items: activePanelId
498
- }, _this.renderInnerContainer));
499
+ }, // eslint-disable-next-line @typescript-eslint/no-explicit-any
500
+ function (styles, item) {
501
+ return /*#__PURE__*/external_react_default.a.createElement(external_react_spring_["animated"].div, {
502
+ style: innerStyle,
503
+ className: innerClassName
504
+ }, _this.renderPanel(styles, item, maxWidth));
505
+ }));
499
506
  });
500
507
 
501
508
  _this.state = {
@@ -532,7 +539,9 @@ var SlidingPanels_SlidingPanels = /*#__PURE__*/function (_Component) {
532
539
  config: {
533
540
  precision: 1
534
541
  }
535
- }, this.renderOuterContainer);
542
+ },
543
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
544
+ this.renderOuterContainer);
536
545
  }
537
546
  }]);
538
547
 
@@ -570,17 +579,17 @@ SlidingPanels_defineProperty(SlidingPanels_SlidingPanels, "getDerivedStateFromPr
570
579
 
571
580
  /***/ }),
572
581
 
573
- /***/ 2:
582
+ /***/ 18:
574
583
  /***/ (function(module, exports) {
575
584
 
576
- module.exports = require("react");
585
+ module.exports = require("react-spring");
577
586
 
578
587
  /***/ }),
579
588
 
580
- /***/ 27:
589
+ /***/ 2:
581
590
  /***/ (function(module, exports) {
582
591
 
583
- module.exports = require("@splunk/react-ui/Animation");
592
+ module.exports = require("react");
584
593
 
585
594
  /***/ }),
586
595
 
@@ -591,6 +600,13 @@ module.exports = require("styled-components");
591
600
 
592
601
  /***/ }),
593
602
 
603
+ /***/ 30:
604
+ /***/ (function(module, exports) {
605
+
606
+ module.exports = require("@splunk/react-ui/Animation");
607
+
608
+ /***/ }),
609
+
594
610
  /***/ 4:
595
611
  /***/ (function(module, exports) {
596
612
 
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 = 138);
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
- /***/ 138:
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 = 109);
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
- /***/ 109:
111
+ /***/ 115:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
@@ -131,7 +131,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
131
131
  var id_ = __webpack_require__(10);
132
132
 
133
133
  // EXTERNAL MODULE: external "@splunk/themes/useSplunkTheme"
134
- var useSplunkTheme_ = __webpack_require__(34);
134
+ var useSplunkTheme_ = __webpack_require__(38);
135
135
  var useSplunkTheme_default = /*#__PURE__*/__webpack_require__.n(useSplunkTheme_);
136
136
 
137
137
  // EXTERNAL MODULE: external "styled-components"
@@ -142,7 +142,7 @@ var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(exte
142
142
  var themes_ = __webpack_require__(0);
143
143
 
144
144
  // EXTERNAL MODULE: external "@splunk/react-icons/Error"
145
- var Error_ = __webpack_require__(61);
145
+ var Error_ = __webpack_require__(63);
146
146
  var Error_default = /*#__PURE__*/__webpack_require__.n(Error_);
147
147
 
148
148
  // EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
@@ -179,7 +179,7 @@ function AlertFilled(props) {
179
179
  }, props));
180
180
  }
181
181
  // EXTERNAL MODULE: external "@splunk/react-icons/Success"
182
- var Success_ = __webpack_require__(62);
182
+ var Success_ = __webpack_require__(64);
183
183
  var Success_default = /*#__PURE__*/__webpack_require__.n(Success_);
184
184
 
185
185
  // CONCATENATED MODULE: ./src/icons/Success.tsx
@@ -500,7 +500,7 @@ module.exports = require("styled-components");
500
500
 
501
501
  /***/ }),
502
502
 
503
- /***/ 34:
503
+ /***/ 38:
504
504
  /***/ (function(module, exports) {
505
505
 
506
506
  module.exports = require("@splunk/themes/useSplunkTheme");
@@ -532,14 +532,14 @@ function SVG(props) {
532
532
 
533
533
  /***/ }),
534
534
 
535
- /***/ 61:
535
+ /***/ 63:
536
536
  /***/ (function(module, exports) {
537
537
 
538
538
  module.exports = require("@splunk/react-icons/Error");
539
539
 
540
540
  /***/ }),
541
541
 
542
- /***/ 62:
542
+ /***/ 64:
543
543
  /***/ (function(module, exports) {
544
544
 
545
545
  module.exports = require("@splunk/react-icons/Success");
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 = 135);
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
- /***/ 135:
118
+ /***/ 129:
119
119
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
120
120
 
121
121
  "use strict";
@@ -134,7 +134,7 @@ var external_prop_types_ = __webpack_require__(1);
134
134
  var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
135
135
 
136
136
  // EXTERNAL MODULE: external "@splunk/react-ui/AnimationToggle"
137
- var AnimationToggle_ = __webpack_require__(31);
137
+ var AnimationToggle_ = __webpack_require__(34);
138
138
  var AnimationToggle_default = /*#__PURE__*/__webpack_require__.n(AnimationToggle_);
139
139
 
140
140
  // EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
@@ -148,7 +148,7 @@ var i18n_ = __webpack_require__(5);
148
148
  var id_ = __webpack_require__(10);
149
149
 
150
150
  // EXTERNAL MODULE: external "@splunk/react-icons/Check"
151
- var Check_ = __webpack_require__(42);
151
+ var Check_ = __webpack_require__(44);
152
152
  var Check_default = /*#__PURE__*/__webpack_require__.n(Check_);
153
153
 
154
154
  // EXTERNAL MODULE: external "@splunk/themes"
@@ -209,7 +209,7 @@ var toggleDiameter = '20px';
209
209
  var StyledBox = external_styled_components_default()(Box_default.a).withConfig({
210
210
  displayName: "SwitchStyles__StyledBox",
211
211
  componentId: "sc-844ieu-0"
212
- })(["display:inline;position:relative;color:", ";flex-shrink:0;padding:", ";"], Object(themes_["pickVariant"])('$switchState', {
212
+ })(["display:inline;position:relative;color:", ";flex-shrink:0;padding:", ";[data-inline] + &{margin-left:", ";}"], Object(themes_["pickVariant"])('$switchState', {
213
213
  error: {
214
214
  enterprise: themes_["variables"].errorColor,
215
215
  prisma: themes_["variables"].accentColorNegative
@@ -224,6 +224,9 @@ var StyledBox = external_styled_components_default()(Box_default.a).withConfig({
224
224
  compact: '6px 0',
225
225
  comfortable: '10px 0'
226
226
  }
227
+ }), Object(themes_["pick"])({
228
+ enterprise: themes_["variables"].spacingHalf,
229
+ prisma: themes_["variables"].spacingSmall
227
230
  }));
228
231
  var StyledCheckboxClickable = external_styled_components_default()(Clickable_default.a).withConfig({
229
232
  displayName: "SwitchStyles__StyledCheckboxClickable",
@@ -277,7 +280,7 @@ var StyledCheckboxClickable = external_styled_components_default()(Clickable_def
277
280
  });
278
281
  }, Object(themes_["pick"])({
279
282
  enterprise: {
280
- light: themes_["variables"].gray80,
283
+ light: themes_["variables"].borderColor,
281
284
  dark: themes_["variables"].gray45
282
285
  },
283
286
  prisma: themes_["variables"].contentColorDisabled
@@ -311,7 +314,10 @@ var StyledIndicator = external_styled_components_default.a.div.withConfig({
311
314
  },
312
315
  prisma: themes_["variables"].white
313
316
  }), Object(themes_["pick"])({
314
- enterprise: themes_["variables"].borderColor,
317
+ enterprise: {
318
+ light: themes_["variables"].gray60,
319
+ dark: themes_["variables"].borderColor
320
+ },
315
321
  prisma: themes_["variables"].transparent
316
322
  }), function (_ref8) {
317
323
  var $delay = _ref8.$delay;
@@ -370,7 +376,10 @@ var StyledToggleClickable = external_styled_components_default()(Clickable_defau
370
376
  }), diameter, function (props) {
371
377
  return props.$delay;
372
378
  }, Object(themes_["pick"])({
373
- enterprise: themes_["variables"].borderColor,
379
+ enterprise: {
380
+ light: themes_["variables"].gray60,
381
+ dark: themes_["variables"].borderColor
382
+ },
374
383
  prisma: themes_["variables"].transparent
375
384
  }), Object(themes_["pick"])({
376
385
  enterprise: Object(external_styled_components_["css"])(["box-shadow:inset 0 2px 0 rgba(0,0,0,0.1);"])
@@ -488,7 +497,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
488
497
 
489
498
 
490
499
  var propTypes = {
491
- appearance: external_prop_types_default.a.oneOf(['radio', 'checkbox', 'toggle']),
500
+ appearance: external_prop_types_default.a.oneOf(['checkbox', 'toggle']),
492
501
  children: external_prop_types_default.a.node,
493
502
  disabled: external_prop_types_default.a.bool,
494
503
  elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
@@ -738,14 +747,14 @@ module.exports = require("styled-components");
738
747
 
739
748
  /***/ }),
740
749
 
741
- /***/ 31:
750
+ /***/ 34:
742
751
  /***/ (function(module, exports) {
743
752
 
744
753
  module.exports = require("@splunk/react-ui/AnimationToggle");
745
754
 
746
755
  /***/ }),
747
756
 
748
- /***/ 42:
757
+ /***/ 44:
749
758
  /***/ (function(module, exports) {
750
759
 
751
760
  module.exports = require("@splunk/react-icons/Check");