@splunk/react-ui 4.40.0 → 4.42.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 (88) hide show
  1. package/ButtonGroup.js +1 -3
  2. package/CHANGELOG.md +43 -0
  3. package/Calendar.js +548 -744
  4. package/Date.js +158 -161
  5. package/Dropdown.js +33 -32
  6. package/FormRows.js +93 -97
  7. package/Layer.js +115 -97
  8. package/MIGRATION.mdx +24 -3
  9. package/Menu.js +10 -9
  10. package/MessageBar.js +5 -5
  11. package/Multiselect.js +1498 -1599
  12. package/Number.js +51 -48
  13. package/Popover.js +481 -479
  14. package/RadioBar.js +19 -15
  15. package/Resize.js +61 -61
  16. package/ResultsMenu.js +1208 -1028
  17. package/Scroll.js +482 -475
  18. package/Select.js +949 -1030
  19. package/Slider.js +346 -300
  20. package/SlidingPanels.js +166 -148
  21. package/TabBar.js +187 -172
  22. package/TabLayout.js +8 -8
  23. package/Table.js +1518 -1432
  24. package/Text.js +29 -17
  25. package/TextArea.js +37 -37
  26. package/Tooltip.js +300 -207
  27. package/TransitionOpen.js +44 -65
  28. package/package.json +4 -4
  29. package/types/src/ButtonGroup/ButtonGroup.d.ts +0 -4
  30. package/types/src/ButtonSimple/ButtonSimple.d.ts +1 -1
  31. package/types/src/Calendar/Calendar.d.ts +28 -30
  32. package/types/src/Calendar/MonthHeader.d.ts +12 -22
  33. package/types/src/Color/Color.d.ts +2 -2
  34. package/types/src/Date/Date.d.ts +18 -19
  35. package/types/src/Dropdown/Dropdown.d.ts +2 -1
  36. package/types/src/File/File.d.ts +1 -1
  37. package/types/src/FormRows/FormRows.d.ts +5 -60
  38. package/types/src/FormRows/Row.d.ts +1 -1
  39. package/types/src/Layer/Layer.d.ts +2 -1
  40. package/types/src/Link/Link.d.ts +5 -0
  41. package/types/src/Link/index.d.ts +1 -0
  42. package/types/src/Menu/Item.d.ts +1 -1
  43. package/types/src/Menu/Menu.d.ts +1 -1
  44. package/types/src/Multiselect/Option.d.ts +1 -1
  45. package/types/src/Number/Number.d.ts +10 -2
  46. package/types/src/Popover/Popover.d.ts +1 -4
  47. package/types/src/RadioBar/RadioBar.d.ts +2 -2
  48. package/types/src/Resize/Resize.d.ts +0 -11
  49. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
  50. package/types/src/ResultsMenu/VirtualizedResultsMenu/injectVirtualizedItem.d.ts +2 -0
  51. package/types/src/Scroll/Inner.d.ts +17 -19
  52. package/types/src/Search/Option.d.ts +1 -1
  53. package/types/src/Select/Option.d.ts +5 -1
  54. package/types/src/Select/OptionBase.d.ts +41 -23
  55. package/types/src/Select/SelectAllOption.d.ts +6 -2
  56. package/types/src/Select/SelectBase.d.ts +8 -34
  57. package/types/src/Slider/Slider.d.ts +7 -16
  58. package/types/src/SlidingPanels/SlidingPanels.d.ts +4 -3
  59. package/types/src/TabBar/TabBar.d.ts +10 -2
  60. package/types/src/TabBar/TabBarContext.d.ts +1 -0
  61. package/types/src/TabBar/docs/examples/IconsAbove.d.ts +2 -0
  62. package/types/src/TabBar/docs/examples/IconsLeft.d.ts +2 -0
  63. package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +2 -0
  64. package/types/src/TabBar/docs/examples/VerticalIconsLeft.d.ts +2 -0
  65. package/types/src/TabLayout/TabLayout.d.ts +4 -2
  66. package/types/src/Table/ExpandButton.d.ts +8 -0
  67. package/types/src/Table/HeadDropdownCell.d.ts +2 -0
  68. package/types/src/Table/HeadInner.d.ts +5 -1
  69. package/types/src/Table/Row.d.ts +8 -4
  70. package/types/src/Table/Table.d.ts +0 -2
  71. package/types/src/Table/docs/examples/Complex.d.ts +14 -3
  72. package/types/src/Text/Text.d.ts +2 -2
  73. package/types/src/TextArea/TextArea.d.ts +2 -2
  74. package/types/src/Tooltip/Tooltip.d.ts +38 -5
  75. package/types/src/Tooltip/docs/examples/CustomProps.d.ts +2 -0
  76. package/types/src/Tooltip/docs/examples/Toggletip.d.ts +2 -0
  77. package/types/src/Typography/Typography.d.ts +4 -2
  78. package/types/src/useControlled/useControlled.d.ts +5 -4
  79. package/useControlled.js +37 -15
  80. package/usePrevious.js +62 -30
  81. package/useRovingFocus.js +5 -4
  82. package/types/src/TabBar/docs/examples/IconsInline.d.ts +0 -2
  83. package/types/src/TabBar/docs/examples/IconsSmall.d.ts +0 -2
  84. package/types/src/TabBar/docs/examples/VerticalSmallIcons.d.ts +0 -2
  85. package/types/src/Table/docs/examples/prisma/Complex.d.ts +0 -48
  86. package/types/src/Table/icons/ExpansionRow.d.ts +0 -6
  87. package/types/src/Tooltip/docs/examples/CustomContent.d.ts +0 -2
  88. /package/types/src/Table/docs/examples/{prisma/RowActions.d.ts → RowActions.d.ts} +0 -0
package/SlidingPanels.js CHANGED
@@ -61,8 +61,8 @@
61
61
  e.r(t);
62
62
  // EXPORTS
63
63
  e.d(t, {
64
- Panel: () => /* reexport */ X,
65
- default: () => /* reexport */ ce
64
+ Panel: () => /* reexport */ L,
65
+ default: () => /* reexport */ be
66
66
  });
67
67
  // CONCATENATED MODULE: external "react"
68
68
  const n = require("react");
@@ -99,7 +99,7 @@
99
99
  displayName: "SlidingPanelsStyles__StyledBox",
100
100
  componentId: "su6isq-0"
101
101
  })([ "overflow:hidden;position:relative;" ]);
102
- var w = m()(v.animated.div).withConfig({
102
+ var j = m()(v.animated.div).withConfig({
103
103
  displayName: "SlidingPanelsStyles__Styled",
104
104
  componentId: "su6isq-1"
105
105
  })([ "", ";", ";" ], O.mixins.reset("block"), O.mixins.clearfix());
@@ -110,7 +110,7 @@
110
110
  * @param ref - The React callback or object ref. Can be `null` or `undefined`.
111
111
  * @param current - The new value of the ref.
112
112
  */
113
- function j(e, t) {
113
+ function w(e, t) {
114
114
  if (e) {
115
115
  if (typeof e === "function") {
116
116
  e(t);
@@ -131,8 +131,8 @@
131
131
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
132
132
  }, S(e);
133
133
  }
134
- function E() {
135
- return E = Object.assign ? Object.assign.bind() : function(e) {
134
+ function I() {
135
+ return I = Object.assign ? Object.assign.bind() : function(e) {
136
136
  for (var t = 1; t < arguments.length; t++) {
137
137
  var n = arguments[t];
138
138
  for (var r in n) {
@@ -140,16 +140,16 @@
140
140
  }
141
141
  }
142
142
  return e;
143
- }, E.apply(null, arguments);
143
+ }, I.apply(null, arguments);
144
144
  }
145
- function I(e, t) {
145
+ function E(e, t) {
146
146
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
147
147
  }
148
148
  function _(e, t) {
149
149
  for (var n = 0; n < t.length; n++) {
150
150
  var r = t[n];
151
151
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
152
- Object.defineProperty(e, U(r.key), r);
152
+ Object.defineProperty(e, N(r.key), r);
153
153
  }
154
154
  }
155
155
  function k(e, t, n) {
@@ -175,7 +175,7 @@
175
175
  }, q(e, t);
176
176
  }
177
177
  function A(e) {
178
- var t = M();
178
+ var t = R();
179
179
  return function() {
180
180
  var n, r = x(e);
181
181
  if (t) {
@@ -188,17 +188,17 @@
188
188
  function C(e, t) {
189
189
  if (t && ("object" == S(t) || "function" == typeof t)) return t;
190
190
  if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
191
- return R(e);
191
+ return M(e);
192
192
  }
193
- function R(e) {
193
+ function M(e) {
194
194
  if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
195
195
  return e;
196
196
  }
197
- function M() {
197
+ function R() {
198
198
  try {
199
199
  var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
200
200
  } catch (e) {}
201
- return (M = function t() {
201
+ return (R = function t() {
202
202
  return !!e;
203
203
  })();
204
204
  }
@@ -207,15 +207,15 @@
207
207
  return e.__proto__ || Object.getPrototypeOf(e);
208
208
  }, x(e);
209
209
  }
210
- function N(e, t, n) {
211
- return (t = U(t)) in e ? Object.defineProperty(e, t, {
210
+ function U(e, t, n) {
211
+ return (t = N(t)) in e ? Object.defineProperty(e, t, {
212
212
  value: n,
213
213
  enumerable: !0,
214
214
  configurable: !0,
215
215
  writable: !0
216
216
  }) : e[t] = n, e;
217
217
  }
218
- function U(e) {
218
+ function N(e) {
219
219
  var t = D(e, "string");
220
220
  return "symbol" == S(t) ? t : t + "";
221
221
  }
@@ -229,7 +229,7 @@
229
229
  }
230
230
  return ("string" === t ? String : Number)(e);
231
231
  }
232
- var B = {
232
+ var W = {
233
233
  elementRef: i().oneOfType([ i().func, i().object ]),
234
234
  panelId: i().any.isRequired,
235
235
  /**
@@ -245,23 +245,23 @@
245
245
  */
246
246
  onUnmount: i().func
247
247
  };
248
- var L = {};
248
+ var B = {};
249
249
  /**
250
250
  * Container for arbitrary content.
251
- */ var W = function(e) {
251
+ */ var X = function(e) {
252
252
  T(n, e);
253
253
  var t = A(n);
254
254
  function n() {
255
255
  var e;
256
- I(this, n);
256
+ E(this, n);
257
257
  for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) {
258
258
  o[i] = arguments[i];
259
259
  }
260
260
  e = t.call.apply(t, [ this ].concat(o));
261
- N(R(e), "el", null);
262
- N(R(e), "handleMount", (function(t) {
261
+ U(M(e), "el", null);
262
+ U(M(e), "handleMount", (function(t) {
263
263
  e.el = t;
264
- j(e.props.elementRef, t);
264
+ w(e.props.elementRef, t);
265
265
  }));
266
266
  return e;
267
267
  }
@@ -297,7 +297,7 @@
297
297
  value: function e() {
298
298
  var t = this.props.panelId;
299
299
 
300
- return r().createElement(w, E({
300
+ return r().createElement(j, I({
301
301
  "data-test": "panel",
302
302
  "data-test-panel-id": t
303
303
  }, f()(this.props, c()(n.propTypes)), {
@@ -307,9 +307,9 @@
307
307
  } ]);
308
308
  return n;
309
309
  }(n.Component);
310
- N(W, "propTypes", B);
311
- N(W, "defaultProps", L);
312
- /* harmony default export */ const X = W;
310
+ U(X, "propTypes", W);
311
+ U(X, "defaultProps", B);
312
+ /* harmony default export */ const L = X;
313
313
  // CONCATENATED MODULE: ./src/SlidingPanels/SlidingPanels.tsx
314
314
  function H(e) {
315
315
  "@babel/helpers - typeof";
@@ -331,42 +331,21 @@
331
331
  }, V.apply(null, arguments);
332
332
  }
333
333
  function F(e, t) {
334
- var n = Object.keys(e);
335
- if (Object.getOwnPropertySymbols) {
336
- var r = Object.getOwnPropertySymbols(e);
337
- t && (r = r.filter((function(t) {
338
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
339
- }))), n.push.apply(n, r);
340
- }
341
- return n;
342
- }
343
- function z(e) {
344
- for (var t = 1; t < arguments.length; t++) {
345
- var n = null != arguments[t] ? arguments[t] : {};
346
- t % 2 ? F(Object(n), !0).forEach((function(t) {
347
- re(e, t, n[t]);
348
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F(Object(n)).forEach((function(t) {
349
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
350
- }));
351
- }
352
- return e;
353
- }
354
- function G(e, t) {
355
334
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
356
335
  }
357
- function J(e, t) {
336
+ function z(e, t) {
358
337
  for (var n = 0; n < t.length; n++) {
359
338
  var r = t[n];
360
339
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
361
340
  Object.defineProperty(e, oe(r.key), r);
362
341
  }
363
342
  }
364
- function K(e, t, n) {
365
- return t && J(e.prototype, t), n && J(e, n), Object.defineProperty(e, "prototype", {
343
+ function G(e, t, n) {
344
+ return t && z(e.prototype, t), n && z(e, n), Object.defineProperty(e, "prototype", {
366
345
  writable: !1
367
346
  }), e;
368
347
  }
369
- function Q(e, t) {
348
+ function J(e, t) {
370
349
  if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
371
350
  e.prototype = Object.create(t && t.prototype, {
372
351
  constructor: {
@@ -376,45 +355,66 @@
376
355
  }
377
356
  }), Object.defineProperty(e, "prototype", {
378
357
  writable: !1
379
- }), t && Y(e, t);
358
+ }), t && K(e, t);
380
359
  }
381
- function Y(e, t) {
382
- return Y = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
360
+ function K(e, t) {
361
+ return K = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
383
362
  return e.__proto__ = t, e;
384
- }, Y(e, t);
363
+ }, K(e, t);
385
364
  }
386
- function Z(e) {
387
- var t = te();
365
+ function Q(e) {
366
+ var t = $();
388
367
  return function() {
389
- var n, r = ne(e);
368
+ var n, r = ee(e);
390
369
  if (t) {
391
- var o = ne(this).constructor;
370
+ var o = ee(this).constructor;
392
371
  n = Reflect.construct(r, arguments, o);
393
372
  } else n = r.apply(this, arguments);
394
- return $(this, n);
373
+ return Y(this, n);
395
374
  };
396
375
  }
397
- function $(e, t) {
376
+ function Y(e, t) {
398
377
  if (t && ("object" == H(t) || "function" == typeof t)) return t;
399
378
  if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
400
- return ee(e);
379
+ return Z(e);
401
380
  }
402
- function ee(e) {
381
+ function Z(e) {
403
382
  if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
404
383
  return e;
405
384
  }
406
- function te() {
385
+ function $() {
407
386
  try {
408
387
  var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
409
388
  } catch (e) {}
410
- return (te = function t() {
389
+ return ($ = function t() {
411
390
  return !!e;
412
391
  })();
413
392
  }
414
- function ne(e) {
415
- return ne = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
393
+ function ee(e) {
394
+ return ee = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
416
395
  return e.__proto__ || Object.getPrototypeOf(e);
417
- }, ne(e);
396
+ }, ee(e);
397
+ }
398
+ function te(e, t) {
399
+ var n = Object.keys(e);
400
+ if (Object.getOwnPropertySymbols) {
401
+ var r = Object.getOwnPropertySymbols(e);
402
+ t && (r = r.filter((function(t) {
403
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
404
+ }))), n.push.apply(n, r);
405
+ }
406
+ return n;
407
+ }
408
+ function ne(e) {
409
+ for (var t = 1; t < arguments.length; t++) {
410
+ var n = null != arguments[t] ? arguments[t] : {};
411
+ t % 2 ? te(Object(n), !0).forEach((function(t) {
412
+ re(e, t, n[t]);
413
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : te(Object(n)).forEach((function(t) {
414
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
415
+ }));
416
+ }
417
+ return e;
418
418
  }
419
419
  function re(e, t, n) {
420
420
  return (t = oe(t)) in e ? Object.defineProperty(e, t, {
@@ -452,10 +452,66 @@
452
452
  var le = {
453
453
  transition: "forward"
454
454
  };
455
- var ue = function(e) {
456
- Q(o, e);
457
- var t = Z(o);
458
- K(o, null, [ {
455
+ var ue = {
456
+ precision: 1
457
+ };
458
+ var ce = function e(t) {
459
+ var n = t.animating, r = t.outerStyle, o = t.interpolatedOuterStyle;
460
+ return ne(ne({}, r), n ? o : {});
461
+ };
462
+ var se = function e(t) {
463
+ return t ? {
464
+ translateX: 1
465
+ } : {};
466
+ };
467
+ var fe = function e(t) {
468
+ var n = t ? t.getWidth() : 0;
469
+ var r = t ? t.getHeight() : 0;
470
+ return {
471
+ width: n,
472
+ height: r
473
+ };
474
+ };
475
+ var pe = function e(t) {
476
+ var o;
477
+ var i = t.activePanelId, a = t.children, l = t.maxWidth, u = t.onMount, c = t.onUnmount, s = t.transition, f = t.transitionStyle;
478
+ var p = n.Children.toArray(a).filter(n.isValidElement).find((function(e) {
479
+ return e.props.panelId === i;
480
+ }));
481
+ // TODO: Fix Interpolation<string | number> can't be cast to string
482
+ var d = (o = f.translateX) === null || o === void 0 ? void 0 : o.to((function(e) {
483
+ return "translateX(".concat(e * l * (s === "forward" ? 1 : -1), "px)");
484
+ }));
485
+ var y = p ? r().createElement(v.animated.div, {
486
+ style: f
487
+ }, (0, n.cloneElement)(p, {
488
+ style: ne(ne({}, p.props.style), {}, {
489
+ transform: d
490
+ }),
491
+ onMount: u,
492
+ onUnmount: c
493
+ })) : null;
494
+ return y;
495
+ };
496
+ var de = function e() {
497
+ return {
498
+ translateX: 0
499
+ };
500
+ };
501
+ var ve = function e(t) {
502
+ return t ? {
503
+ translateX: -1,
504
+ position: "absolute",
505
+ left: 0,
506
+ top: 0
507
+ } : {
508
+ translateX: -1
509
+ };
510
+ };
511
+ var ye = function(e) {
512
+ J(o, e);
513
+ var t = Q(o);
514
+ G(o, null, [ {
459
515
  key: "getDerivedStateFromProps",
460
516
  // @docs-props-type SlidingPanelsPropsBase
461
517
  value: function e(t, n) {
@@ -475,26 +531,11 @@
475
531
  } ]);
476
532
  function o(e) {
477
533
  var i;
478
- G(this, o);
534
+ F(this, o);
479
535
  i = t.call(this, e);
480
- re(ee(i), "panelInstances", {});
481
- re(ee(i), "allowAnimationUpdates", true);
482
- re(ee(i), "willEnter", (function() {
483
- return {
484
- translateX: 0
485
- };
486
- }));
487
- re(ee(i), "willLeave", (function(e) {
488
- return e ? {
489
- translateX: -1,
490
- position: "absolute",
491
- left: 0,
492
- top: 0
493
- } : {
494
- translateX: -1
495
- };
496
- }));
497
- re(ee(i), "handlePanelMount", (function(e) {
536
+ re(Z(i), "panelInstances", {});
537
+ re(Z(i), "allowAnimationUpdates", true);
538
+ re(Z(i), "handlePanelMount", (function(e) {
498
539
  i.panelInstances[e.props.panelId] = e;
499
540
  if (e.props.panelId === i.props.activePanelId) {
500
541
  i.setState({
@@ -503,10 +544,10 @@
503
544
  });
504
545
  }
505
546
  }));
506
- re(ee(i), "handlePanelUnmount", (function(e) {
547
+ re(Z(i), "handlePanelUnmount", (function(e) {
507
548
  delete i.panelInstances[e.props.panelId];
508
549
  }));
509
- re(ee(i), "handleAnimationEnd", (function() {
550
+ re(Z(i), "handleAnimationEnd", (function() {
510
551
  var e, t;
511
552
  if (i.allowAnimationUpdates) {
512
553
  i.setState({
@@ -515,45 +556,22 @@
515
556
  }
516
557
  (e = (t = i.props).onAnimationEnd) === null || e === void 0 ? void 0 : e.call(t);
517
558
  }));
518
- re(ee(i), "renderPanel", (function(e, t, o) {
519
- var a;
520
- var l = i.props, u = l.children, c = l.transition;
521
- var s = n.Children.toArray(u).filter(n.isValidElement).find((function(e) {
522
- return e.props.panelId === t;
523
- }));
524
- // TODO: Fix Interplation<string | number> can't be cast to string
525
- var f = (a = e.translateX) === null || a === void 0 ? void 0 : a.to((function(e) {
526
- return "translateX(".concat(e * o * (c === "forward" ? 1 : -1), "px)");
527
- }));
528
- var p = s ? r().createElement(v.animated.div, {
529
- style: e
530
- }, (0, n.cloneElement)(s, {
531
- style: z(z({}, s.props.style), {}, {
532
- transform: f
533
- }),
534
- onMount: i.handlePanelMount,
535
- onUnmount: i.handlePanelUnmount
536
- })) : null;
537
- return p;
538
- }));
539
- re(ee(i), "renderOuterContainer", (function(e) {
559
+ re(Z(i), "renderOuterContainer", (function(e) {
540
560
  var t = i.props, a = t.activePanelId, u = t.children, s = t.elementRef, p = t.outerClassName, b = t.outerStyle, m = t.innerClassName, h = t.innerStyle;
541
561
  var g = i.state.animating;
542
- var O = z(z({}, b), g ? {
543
- width: e.width,
544
- height: e.height
545
- } : {});
546
- var w = n.Children.toArray(u).filter(n.isValidElement).find((function(e) {
562
+ var O = ce({
563
+ animating: g,
564
+ outerStyle: b,
565
+ interpolatedOuterStyle: e
566
+ });
567
+ var j = n.Children.toArray(u).filter(n.isValidElement).find((function(e) {
547
568
  return e.props.panelId === a;
548
569
  }));
549
570
  if (false) {}
550
- var j = g ? {
551
- translateX: 1
552
- } : {};
553
- var S = l()(d()(i.panelInstances), (function(e) {
571
+ var w = l()(d()(i.panelInstances), (function(e) {
554
572
  return !!e;
555
573
  }));
556
- var E = S.map((function(e) {
574
+ var S = w.map((function(e) {
557
575
  var t;
558
576
  var n = i.panelInstances[e.props.panelId];
559
577
  return n ? (t = n.getWidth()) !== null && t !== void 0 ? t : 0 : 0;
@@ -568,9 +586,9 @@
568
586
  elementRef: s,
569
587
  style: O
570
588
  }, f()(i.props, c()(o.propTypes))), r().createElement(y.Transition, {
571
- from: j,
572
- enter: i.willEnter(),
573
- leave: i.willLeave(g),
589
+ from: se(g),
590
+ enter: de(),
591
+ leave: ve(g),
574
592
  items: a
575
593
  }, (
576
594
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -579,7 +597,15 @@
579
597
  return r().createElement(v.animated.div, {
580
598
  style: h,
581
599
  className: m
582
- }, i.renderPanel(e, t, E));
600
+ }, pe({
601
+ activePanelId: t,
602
+ children: u,
603
+ maxWidth: S,
604
+ onMount: i.handlePanelMount,
605
+ onUnmount: i.handlePanelUnmount,
606
+ transition: i.props.transition,
607
+ transitionStyle: e
608
+ }));
583
609
  })));
584
610
  }));
585
611
  i.state = {
@@ -591,7 +617,7 @@
591
617
  };
592
618
  return i;
593
619
  }
594
- K(o, [ {
620
+ G(o, [ {
595
621
  key: "componentWillUnmount",
596
622
  value: function e() {
597
623
  this.allowAnimationUpdates = false;
@@ -600,34 +626,26 @@
600
626
  key: "render",
601
627
  value: function e() {
602
628
  var t = this.state, n = t.activePanel, o = t.panelLoading;
603
- var i = n ? n.getWidth() : 0;
604
- var a = n ? n.getHeight() : 0;
605
- // When a new panel is loading, the activePanel is about to be removed. The height and/or
629
+ // When a new panel is loading, the activePanel is about to be removed. The height and/or
606
630
  // width of that panel may have changed since the last render. To ensure that the next
607
631
  // panel animates from the current height and width (rather than the previously loaded one),
608
632
  // we only set the style when panelLoading is true (immediate prop prevents animation if true).
609
- var l = {
610
- width: i,
611
- height: a
612
- };
613
-
633
+
614
634
  return r().createElement(y.Spring, {
615
- to: l,
635
+ to: fe(n),
616
636
  onRest: this.handleAnimationEnd,
617
637
  immediate: o,
618
- config: {
619
- precision: 1
620
- }
638
+ config: ue
621
639
  }, /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
622
640
  this.renderOuterContainer);
623
641
  }
624
642
  } ]);
625
643
  return o;
626
644
  }(n.Component);
627
- re(ue, "propTypes", ae);
628
- re(ue, "defaultProps", le);
629
- re(ue, "Panel", X);
630
- /* harmony default export */ const ce = ue;
645
+ re(ye, "propTypes", ae);
646
+ re(ye, "defaultProps", le);
647
+ re(ye, "Panel", L);
648
+ /* harmony default export */ const be = ye;
631
649
  // CONCATENATED MODULE: ./src/SlidingPanels/index.ts
632
650
  module.exports = t;
633
651
  /******/})();