@splunk/react-ui 4.28.0 → 4.28.2

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.
package/SidePanel.js CHANGED
@@ -87,43 +87,43 @@
87
87
  // CONCATENATED MODULE: external "@splunk/themes"
88
88
  const m = require("@splunk/themes");
89
89
  // CONCATENATED MODULE: ./src/SidePanel/SidePanelStyles.ts
90
- var h = (0, p.css)([ "", " position:fixed;flex-direction:column;box-shadow:", ";background-color:", ";z-index:", ";" ], m.mixins.reset("flex"), (0,
90
+ var v = (0, p.css)([ "", " position:fixed;flex-direction:column;box-shadow:", ";background-color:", ";z-index:", ";" ], m.mixins.reset("flex"), (0,
91
91
  m.pick)({
92
92
  enterprise: "0 0 12px rgba(0, 0, 0, 0.3)",
93
93
  prisma: m.variables.overlayShadow
94
94
  }), m.variables.backgroundColorSidebar, m.variables.zindexModal);
95
- var v = y()(b()).withConfig({
95
+ var h = y()(b()).withConfig({
96
96
  displayName: "SidePanelStyles__StyledLeftPanelTransitionOpen",
97
97
  componentId: "mtbcuz-0"
98
- })([ "", ";top:0;left:0;height:100vh;" ], h);
98
+ })([ "", ";top:0;left:0;height:100vh;" ], v);
99
99
  var g = y()(b()).withConfig({
100
100
  displayName: "SidePanelStyles__StyledRightPanelTransitionOpen",
101
101
  componentId: "mtbcuz-1"
102
- })([ "", ";right:0;top:0;height:100vh;" ], h);
102
+ })([ "", ";right:0;top:0;height:100vh;" ], v);
103
103
  var O = y()(b()).withConfig({
104
104
  displayName: "SidePanelStyles__StyledTopPanelTransitionOpen",
105
105
  componentId: "mtbcuz-2"
106
- })([ "", ";top:0;left:0;width:100vw;" ], h);
106
+ })([ "", ";top:0;left:0;width:100vw;" ], v);
107
107
  var S = y()(b()).withConfig({
108
108
  displayName: "SidePanelStyles__StyledBottomPanelTransitionOpen",
109
109
  componentId: "mtbcuz-3"
110
- })([ "", ";left:0;bottom:0;width:100vw;" ], h);
110
+ })([ "", ";left:0;bottom:0;width:100vw;" ], v);
111
111
  // CONCATENATED MODULE: ./src/SidePanel/SidePanel.tsx
112
- function w(e) {
112
+ function P(e) {
113
113
  "@babel/helpers - typeof";
114
114
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
115
- w = function e(t) {
115
+ P = function e(t) {
116
116
  return typeof t;
117
117
  };
118
118
  } else {
119
- w = function e(t) {
119
+ P = function e(t) {
120
120
  return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
121
121
  };
122
122
  }
123
- return w(e);
123
+ return P(e);
124
124
  }
125
- function P() {
126
- P = Object.assign || function(e) {
125
+ function w() {
126
+ w = Object.assign || function(e) {
127
127
  for (var t = 1; t < arguments.length; t++) {
128
128
  var r = arguments[t];
129
129
  for (var n in r) {
@@ -134,7 +134,7 @@
134
134
  }
135
135
  return e;
136
136
  };
137
- return P.apply(this, arguments);
137
+ return w.apply(this, arguments);
138
138
  }
139
139
  function j(e) {
140
140
  return k(e) || _(e) || C(e) || A();
@@ -196,7 +196,7 @@
196
196
  throw new TypeError("Cannot call a class as a function");
197
197
  }
198
198
  }
199
- function F(e, t) {
199
+ function R(e, t) {
200
200
  for (var r = 0; r < t.length; r++) {
201
201
  var n = t[r];
202
202
  n.enumerable = n.enumerable || false;
@@ -205,9 +205,9 @@
205
205
  Object.defineProperty(e, n.key, n);
206
206
  }
207
207
  }
208
- function R(e, t, r) {
209
- if (t) F(e.prototype, t);
210
- if (r) F(e, r);
208
+ function F(e, t, r) {
209
+ if (t) R(e.prototype, t);
210
+ if (r) R(e, r);
211
211
  return e;
212
212
  }
213
213
  function M(e, t) {
@@ -231,7 +231,7 @@
231
231
  return N(e, t);
232
232
  }
233
233
  function I(e) {
234
- var t = z();
234
+ var t = L();
235
235
  return function r() {
236
236
  var n = B(e), o;
237
237
  if (t) {
@@ -244,18 +244,18 @@
244
244
  };
245
245
  }
246
246
  function D(e, t) {
247
- if (t && (w(t) === "object" || typeof t === "function")) {
247
+ if (t && (P(t) === "object" || typeof t === "function")) {
248
248
  return t;
249
249
  }
250
- return L(e);
250
+ return z(e);
251
251
  }
252
- function L(e) {
252
+ function z(e) {
253
253
  if (e === void 0) {
254
254
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
255
255
  }
256
256
  return e;
257
257
  }
258
- function z() {
258
+ function L() {
259
259
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
260
260
  if (Reflect.construct.sham) return false;
261
261
  if (typeof Proxy === "function") return true;
@@ -316,17 +316,17 @@
316
316
  var o;
317
317
  q(this, r);
318
318
  o = t.call(this, e);
319
- U(L(o), "handlePanelAnimationEnd", (function() {
319
+ U(z(o), "handlePanelAnimationEnd", (function() {
320
320
  var e, t;
321
321
  o.setState({
322
322
  panelAnimating: false
323
323
  });
324
324
  (e = (t = o.props).onAnimationEnd) === null || e === void 0 ? void 0 : e.call(t);
325
325
  }));
326
- U(L(o), "renderModal", (function() {
326
+ U(z(o), "renderModal", (function() {
327
327
  var e = o.props, t = e.children, i = e.dockPosition, a = e.innerClassName, u = e.innerStyle, s = e.outerClassName, f = e.outerStyle;
328
328
  var p = {
329
- left: v,
329
+ left: h,
330
330
  right: g,
331
331
  top: O,
332
332
  bottom: S
@@ -337,7 +337,7 @@
337
337
  width: "100%"
338
338
  };
339
339
 
340
- return n().createElement(p, P({
340
+ return n().createElement(p, w({
341
341
  animateOnMount: true,
342
342
  animation: H[i],
343
343
  "data-test": "side-panel",
@@ -359,18 +359,19 @@
359
359
  };
360
360
  return o;
361
361
  }
362
- R(r, [ {
362
+ F(r, [ {
363
363
  key: "render",
364
364
  value: function e() {
365
365
  var t = this.props, r = t.open, o = t.onRequestClose, i = t.useLayerForClickAway;
366
366
  var a = this.state.panelAnimating;
367
+ var l = i ? "interactive" : "visible";
367
368
 
368
369
  return n().createElement(f(), {
369
370
  childrenInAnimation: a,
370
371
  onRequestClose: o,
371
372
  open: r,
372
373
  renderModal: this.renderModal,
373
- useLayerForClickAway: i
374
+ scrim: l
374
375
  });
375
376
  }
376
377
  } ]);