@splunk/react-ui 4.37.0 → 4.39.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.
- package/Accordion.js +131 -153
- package/Anchor.js +50 -58
- package/Animation.js +64 -59
- package/AnimationToggle.js +59 -61
- package/Box.js +59 -67
- package/Breadcrumbs.js +113 -127
- package/Button.js +208 -219
- package/ButtonGroup.js +41 -49
- package/ButtonSimple.js +264 -295
- package/CHANGELOG.md +50 -1
- package/Calendar.js +353 -414
- package/Card.js +183 -243
- package/CardLayout.js +86 -83
- package/Chip.js +104 -122
- package/Clickable.js +180 -198
- package/CloseButton.js +52 -60
- package/Code.js +24 -31
- package/CollapsiblePanel.js +172 -202
- package/Color.js +1107 -980
- package/ColumnLayout.js +72 -96
- package/ComboBox.js +267 -305
- package/Concertina.js +406 -454
- package/ControlGroup.js +165 -194
- package/Date.js +116 -131
- package/DefinitionList.js +125 -149
- package/Divider.js +81 -79
- package/Dropdown.js +226 -237
- package/DualListbox.js +150 -186
- package/EventListener.js +4 -1
- package/File.js +1032 -955
- package/FormRows.js +281 -334
- package/Heading.js +27 -35
- package/Image.js +101 -116
- package/JSONTree.js +301 -344
- package/Layer.js +118 -126
- package/Link.js +141 -159
- package/List.js +61 -77
- package/MIGRATION.mdx +92 -38
- package/Markdown.js +288 -347
- package/Menu.js +512 -530
- package/Message.js +173 -196
- package/MessageBar.js +58 -66
- package/Modal.js +241 -290
- package/ModalLayer.js +130 -148
- package/Monogram.js +138 -138
- package/Multiselect.js +1600 -1923
- package/Number.js +159 -178
- package/Paginator.js +296 -335
- package/Paragraph.js +24 -32
- package/Popover.js +448 -441
- package/Progress.js +65 -75
- package/RadioBar.js +301 -303
- package/RadioList.js +77 -119
- package/Resize.js +105 -127
- package/ResultsMenu.js +373 -385
- package/ScreenReaderContent.js +130 -94
- package/Scroll.js +209 -244
- package/Search.js +375 -384
- package/Select.js +1076 -1354
- package/SidePanel.js +122 -142
- package/Slider.js +192 -222
- package/SlidingPanels.js +238 -270
- package/SplitButton.js +222 -245
- package/StaticContent.js +68 -76
- package/StepBar.js +206 -205
- package/Switch.js +211 -236
- package/TabBar.js +222 -258
- package/TabLayout.js +114 -139
- package/Table.js +2017 -2180
- package/Text.js +401 -512
- package/TextArea.js +411 -441
- package/Tooltip.js +116 -132
- package/TransitionOpen.js +160 -178
- package/Tree.js +268 -287
- package/Typography.js +48 -52
- package/WaitSpinner.js +60 -68
- package/cypress/support/commands.ts +9 -0
- package/cypress/support/index.d.ts +6 -0
- package/cypress/tsconfig.cypress.json +1 -0
- package/docker-compose.yml +0 -1
- package/package.json +17 -17
- package/types/src/Button/Button.d.ts +20 -6
- package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -2
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -1
- package/types/src/Color/Color.d.ts +5 -2
- package/types/src/Color/Palette.d.ts +6 -2
- package/types/src/ComboBox/Option.d.ts +1 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +1 -2
- package/types/src/Date/Date.d.ts +2 -3
- package/types/src/File/File.d.ts +2 -3
- package/types/src/File/Retry.d.ts +1 -2
- package/types/src/Link/Link.d.ts +3 -4
- package/types/src/Menu/Item.d.ts +24 -8
- package/types/src/Menu/Menu.d.ts +3 -3
- package/types/src/Menu/docs/examples/Adornments.d.ts +2 -0
- package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -0
- package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
- package/types/src/Multiselect/Option.d.ts +2 -0
- package/types/src/Number/Number.d.ts +3 -3
- package/types/src/Popover/Popover.d.ts +3 -4
- package/types/src/RadioBar/RadioBar.d.ts +2 -2
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
- package/types/src/ScrollContainerContext/ScrollContainerContext.d.ts +2 -2
- package/types/src/Search/Option.d.ts +16 -3
- package/types/src/Select/Option.d.ts +3 -1
- package/types/src/Select/OptionBase.d.ts +7 -5
- package/types/src/Select/Select.d.ts +2 -2
- package/types/src/Select/SelectAllOption.d.ts +4 -4
- package/types/src/Select/SelectBase.d.ts +0 -1
- package/types/src/SidePanel/SidePanel.d.ts +1 -1
- package/types/src/Slider/Slider.d.ts +2 -3
- package/types/src/Slider/docs/examples/Error.d.ts +2 -0
- package/types/src/SlidingPanels/SlidingPanels.d.ts +1 -1
- package/types/src/StepBar/Step.d.ts +1 -2
- package/types/src/TabBar/Tab.d.ts +1 -1
- package/types/src/TabBar/TabBar.d.ts +3 -1
- package/types/src/TabLayout/TabLayout.d.ts +2 -0
- package/types/src/Table/HeadDropdownCell.d.ts +2 -0
- package/types/src/Table/Table.d.ts +0 -1
- package/types/src/Table/docs/examples/StripeRows.d.ts +2 -0
- package/types/src/Text/IconOutlinedHide.d.ts +1 -2
- package/types/src/Text/IconOutlinedView.d.ts +1 -2
- package/types/src/Text/Text.d.ts +6 -4
- package/types/src/Text/docs/examples/Dimmed.d.ts +2 -0
- package/types/src/TextArea/TextArea.d.ts +2 -2
- package/types/src/Tooltip/Tooltip.d.ts +4 -4
- package/types/src/TransitionOpen/TransitionOpen.d.ts +1 -1
- package/useForceUpdate.js +30 -32
- package/useKeyPress.js +1 -1
- package/types/src/Button/docs/examples/Selected.d.ts +0 -2
- package/types/src/ButtonGroup/docs/examples/prisma/Basic.d.ts +0 -1
- package/types/src/File/docs/examples/prisma/Error.d.ts +0 -1
- package/types/src/Menu/docs/examples/Icons.d.ts +0 -2
- package/types/src/Menu/docs/examples/SelectableWithIcons.d.ts +0 -2
- package/types/src/Slider/docs/examples/prisma/Error.d.ts +0 -2
- package/types/src/TabBar/docs/examples/prisma/Context.d.ts +0 -2
- package/types/src/TabLayout/docs/examples/prisma/Context.d.ts +0 -2
- package/types/src/Table/docs/examples/prisma/Basic.d.ts +0 -2
- /package/types/src/Date/docs/examples/{prisma/WithoutCalendar.d.ts → WithoutCalendar.d.ts} +0 -0
- /package/types/src/Message/docs/examples/{prisma/Title.d.ts → Title.d.ts} +0 -0
- /package/types/src/StepBar/docs/examples/{prisma/Error.d.ts → Error.d.ts} +0 -0
- /package/types/src/TabBar/docs/examples/{prisma/Disabled.d.ts → Disabled.d.ts} +0 -0
package/Layer.js
CHANGED
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
e.r(t);
|
|
74
74
|
// EXPORTS
|
|
75
75
|
e.d(t, {
|
|
76
|
-
LayerContext: () => /* reexport */
|
|
76
|
+
LayerContext: () => /* reexport */ b,
|
|
77
77
|
LayerStackContext: () => /* reexport */ h,
|
|
78
|
-
LayerStackGlobalProvider: () => /* reexport */
|
|
79
|
-
default: () => /* reexport */
|
|
78
|
+
LayerStackGlobalProvider: () => /* reexport */ w,
|
|
79
|
+
default: () => /* reexport */ U
|
|
80
80
|
});
|
|
81
81
|
// CONCATENATED MODULE: external "react"
|
|
82
82
|
const n = require("react");
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
const l = require("lodash/last");
|
|
94
94
|
var s = e.n(l);
|
|
95
95
|
// CONCATENATED MODULE: external "lodash/pull"
|
|
96
|
-
const
|
|
97
|
-
var
|
|
96
|
+
const p = require("lodash/pull");
|
|
97
|
+
var f = e.n(p);
|
|
98
98
|
// CONCATENATED MODULE: external "@splunk/ui-utils/keyboard"
|
|
99
99
|
const y = require("@splunk/ui-utils/keyboard");
|
|
100
100
|
// CONCATENATED MODULE: external "@splunk/react-ui/EventListener"
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
* @public
|
|
108
108
|
*/
|
|
109
109
|
var h = r().createContext([]);
|
|
110
|
-
var
|
|
111
|
-
var
|
|
110
|
+
var b = r().createContext({});
|
|
111
|
+
var m = {
|
|
112
112
|
children: a().node,
|
|
113
113
|
name: a().string,
|
|
114
114
|
scope: a().object,
|
|
@@ -119,25 +119,28 @@
|
|
|
119
119
|
* A `LayerStackContext` provider that stores a shared layer stack using a global variable.
|
|
120
120
|
* Applications should only use this provider if there's a known need to support multiple
|
|
121
121
|
* instances of this library on the same page.
|
|
122
|
-
*/ function
|
|
123
|
-
var
|
|
124
|
-
if (!
|
|
125
|
-
|
|
122
|
+
*/ function w(t) {
|
|
123
|
+
var o = t.children, i = t.name, a = i === void 0 ? "__splunkui_layer_instances__" : i, c = t.scope, u = c === void 0 ? typeof window !== "undefined" ? window : e.g : c, l = t.separateStackingContexts, s = l === void 0 ? false : l;
|
|
124
|
+
if (!u[a]) {
|
|
125
|
+
u[a] = [];
|
|
126
126
|
// eslint-disable-line no-param-reassign
|
|
127
127
|
}
|
|
128
|
+
var p = (0, n.useMemo)((function() {
|
|
129
|
+
return {
|
|
130
|
+
separateStackingContexts: s
|
|
131
|
+
};
|
|
132
|
+
}), [ s ]);
|
|
128
133
|
|
|
129
134
|
return r().createElement(h.Provider, {
|
|
130
|
-
value:
|
|
131
|
-
}, r().createElement(
|
|
132
|
-
value:
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
}, n));
|
|
135
|
+
value: u[a]
|
|
136
|
+
}, r().createElement(b.Provider, {
|
|
137
|
+
value: p
|
|
138
|
+
}, o));
|
|
136
139
|
}
|
|
137
|
-
|
|
140
|
+
w.propTypes = m;
|
|
138
141
|
// CONCATENATED MODULE: external "styled-components"
|
|
139
|
-
const
|
|
140
|
-
var g = e.n(
|
|
142
|
+
const k = require("styled-components");
|
|
143
|
+
var g = e.n(k);
|
|
141
144
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
142
145
|
const C = require("@splunk/themes");
|
|
143
146
|
// CONCATENATED MODULE: ./src/Layer/LayerStyles.ts
|
|
@@ -146,11 +149,11 @@
|
|
|
146
149
|
componentId: "ii6psl-0"
|
|
147
150
|
})([ "", "" ], (function(e) {
|
|
148
151
|
var t = e.$separateStackingContexts;
|
|
149
|
-
return t && (0,
|
|
152
|
+
return t && (0, k.css)([ "isolation:isolate;z-index:", ";" ], C.variables.zindexLayer);
|
|
150
153
|
}));
|
|
151
154
|
// CONCATENATED MODULE: ./src/utils/ssrDocument.ts
|
|
152
155
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
153
|
-
var
|
|
156
|
+
var O = {
|
|
154
157
|
body: {
|
|
155
158
|
appendChild: function e() {
|
|
156
159
|
return [];
|
|
@@ -204,132 +207,121 @@
|
|
|
204
207
|
search: ""
|
|
205
208
|
}
|
|
206
209
|
};
|
|
207
|
-
function
|
|
208
|
-
var e = typeof document !== "undefined" ? document :
|
|
210
|
+
function E() {
|
|
211
|
+
var e = typeof document !== "undefined" ? document : O;
|
|
209
212
|
return e;
|
|
210
213
|
}
|
|
211
214
|
// CONCATENATED MODULE: ./src/Layer/Layer.tsx
|
|
212
|
-
function
|
|
215
|
+
function j(e) {
|
|
213
216
|
"@babel/helpers - typeof";
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
L = function e(t) {
|
|
220
|
-
return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
return L(e);
|
|
217
|
+
return j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
218
|
+
return typeof e;
|
|
219
|
+
} : function(e) {
|
|
220
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
221
|
+
}, j(e);
|
|
224
222
|
}
|
|
225
|
-
function
|
|
226
|
-
if (!(e instanceof t))
|
|
227
|
-
throw new TypeError("Cannot call a class as a function");
|
|
228
|
-
}
|
|
223
|
+
function L(e, t) {
|
|
224
|
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
229
225
|
}
|
|
230
|
-
function
|
|
226
|
+
function P(e, t) {
|
|
231
227
|
for (var n = 0; n < t.length; n++) {
|
|
232
228
|
var r = t[n];
|
|
233
|
-
r.enumerable = r.enumerable ||
|
|
234
|
-
r.
|
|
235
|
-
if ("value" in r) r.writable = true;
|
|
236
|
-
Object.defineProperty(e, r.key, r);
|
|
229
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
|
|
230
|
+
Object.defineProperty(e, K(r.key), r);
|
|
237
231
|
}
|
|
238
232
|
}
|
|
239
|
-
function
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
233
|
+
function _(e, t, n) {
|
|
234
|
+
return t && P(e.prototype, t), n && P(e, n), Object.defineProperty(e, "prototype", {
|
|
235
|
+
writable: !1
|
|
236
|
+
}), e;
|
|
243
237
|
}
|
|
244
|
-
function
|
|
245
|
-
if (typeof t !== "
|
|
246
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
247
|
-
}
|
|
238
|
+
function T(e, t) {
|
|
239
|
+
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
|
248
240
|
e.prototype = Object.create(t && t.prototype, {
|
|
249
241
|
constructor: {
|
|
250
242
|
value: e,
|
|
251
|
-
writable:
|
|
252
|
-
configurable:
|
|
243
|
+
writable: !0,
|
|
244
|
+
configurable: !0
|
|
253
245
|
}
|
|
254
|
-
})
|
|
255
|
-
|
|
246
|
+
}), Object.defineProperty(e, "prototype", {
|
|
247
|
+
writable: !1
|
|
248
|
+
}), t && x(e, t);
|
|
256
249
|
}
|
|
257
|
-
function
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
};
|
|
262
|
-
return q(e, t);
|
|
250
|
+
function x(e, t) {
|
|
251
|
+
return x = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
252
|
+
return e.__proto__ = t, e;
|
|
253
|
+
}, x(e, t);
|
|
263
254
|
}
|
|
264
|
-
function
|
|
265
|
-
var t =
|
|
266
|
-
return function
|
|
267
|
-
var r =
|
|
255
|
+
function q(e) {
|
|
256
|
+
var t = M();
|
|
257
|
+
return function() {
|
|
258
|
+
var n, r = N(e);
|
|
268
259
|
if (t) {
|
|
269
|
-
var
|
|
270
|
-
|
|
271
|
-
} else
|
|
272
|
-
|
|
273
|
-
}
|
|
274
|
-
return R(this, o);
|
|
260
|
+
var o = N(this).constructor;
|
|
261
|
+
n = Reflect.construct(r, arguments, o);
|
|
262
|
+
} else n = r.apply(this, arguments);
|
|
263
|
+
return R(this, n);
|
|
275
264
|
};
|
|
276
265
|
}
|
|
277
266
|
function R(e, t) {
|
|
278
|
-
if (t && (
|
|
279
|
-
|
|
280
|
-
}
|
|
267
|
+
if (t && ("object" == j(t) || "function" == typeof t)) return t;
|
|
268
|
+
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
281
269
|
return D(e);
|
|
282
270
|
}
|
|
283
271
|
function D(e) {
|
|
284
|
-
if (
|
|
285
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
286
|
-
}
|
|
272
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
287
273
|
return e;
|
|
288
274
|
}
|
|
289
|
-
function
|
|
290
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
291
|
-
if (Reflect.construct.sham) return false;
|
|
292
|
-
if (typeof Proxy === "function") return true;
|
|
275
|
+
function M() {
|
|
293
276
|
try {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
return
|
|
298
|
-
}
|
|
277
|
+
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
278
|
+
} catch (e) {}
|
|
279
|
+
return (M = function t() {
|
|
280
|
+
return !!e;
|
|
281
|
+
})();
|
|
282
|
+
}
|
|
283
|
+
function N(e) {
|
|
284
|
+
return N = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
285
|
+
return e.__proto__ || Object.getPrototypeOf(e);
|
|
286
|
+
}, N(e);
|
|
287
|
+
}
|
|
288
|
+
function A(e, t, n) {
|
|
289
|
+
return (t = K(t)) in e ? Object.defineProperty(e, t, {
|
|
290
|
+
value: n,
|
|
291
|
+
enumerable: !0,
|
|
292
|
+
configurable: !0,
|
|
293
|
+
writable: !0
|
|
294
|
+
}) : e[t] = n, e;
|
|
299
295
|
}
|
|
300
296
|
function K(e) {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
};
|
|
304
|
-
return K(e);
|
|
297
|
+
var t = W(e, "string");
|
|
298
|
+
return "symbol" == j(t) ? t : t + "";
|
|
305
299
|
}
|
|
306
|
-
function
|
|
307
|
-
if (
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
});
|
|
314
|
-
} else {
|
|
315
|
-
e[t] = n;
|
|
300
|
+
function W(e, t) {
|
|
301
|
+
if ("object" != j(e) || !e) return e;
|
|
302
|
+
var n = e[Symbol.toPrimitive];
|
|
303
|
+
if (void 0 !== n) {
|
|
304
|
+
var r = n.call(e, t || "default");
|
|
305
|
+
if ("object" != j(r)) return r;
|
|
306
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
316
307
|
}
|
|
317
|
-
return e;
|
|
308
|
+
return ("string" === t ? String : Number)(e);
|
|
318
309
|
}
|
|
319
|
-
/** @public */
|
|
320
|
-
var
|
|
310
|
+
/** @public */
|
|
311
|
+
/** @public */ var B = [ "clickAway", "escapeKey" ];
|
|
312
|
+
var z = {
|
|
321
313
|
children: a().node,
|
|
322
|
-
closeReasons: a().arrayOf(a().oneOf(
|
|
314
|
+
closeReasons: a().arrayOf(a().oneOf(B)),
|
|
323
315
|
onRequestClose: a().func,
|
|
324
316
|
open: a().bool
|
|
325
317
|
};
|
|
326
|
-
var
|
|
327
|
-
closeReasons:
|
|
318
|
+
var F = {
|
|
319
|
+
closeReasons: B,
|
|
328
320
|
open: false
|
|
329
321
|
};
|
|
330
|
-
var
|
|
331
|
-
|
|
332
|
-
var t =
|
|
322
|
+
var I = function(e) {
|
|
323
|
+
T(n, e);
|
|
324
|
+
var t = q(n);
|
|
333
325
|
// @docs-props-type LayerPropsBase
|
|
334
326
|
// eslint-disable-next-line react/sort-comp
|
|
335
327
|
// LayerStackContext (an array) keeps track of the current instances of Layer. This is
|
|
@@ -339,14 +331,14 @@
|
|
|
339
331
|
// declare context: React.ContextType<typeof LayerStackContext>;
|
|
340
332
|
function n(e) {
|
|
341
333
|
var r;
|
|
342
|
-
|
|
334
|
+
L(this, n);
|
|
343
335
|
r = t.call(this, e);
|
|
344
|
-
|
|
345
|
-
|
|
336
|
+
A(D(r), "layerClickEvent", null);
|
|
337
|
+
A(D(r), "handleClickOnLayer", (function(e) {
|
|
346
338
|
var t = e.nativeEvent;
|
|
347
339
|
r.layerClickEvent = t;
|
|
348
340
|
}));
|
|
349
|
-
|
|
341
|
+
A(D(r), "handleClickOnWindow", (function(e) {
|
|
350
342
|
var t, n;
|
|
351
343
|
// clicks inside the layer should not be considered clickAways
|
|
352
344
|
if (!r.props.open || !u()(r.props.closeReasons, "clickAway") || r.layerClickEvent === e) {
|
|
@@ -357,7 +349,7 @@
|
|
|
357
349
|
reason: "clickAway"
|
|
358
350
|
});
|
|
359
351
|
}));
|
|
360
|
-
|
|
352
|
+
A(D(r), "handleKeyDownOnWindow", (function(e) {
|
|
361
353
|
if (r.props.open && (0, y.keycode)(e) === "esc" && s()(r.getLayerStack()) === D(r) && u()(r.props.closeReasons, "escapeKey")) {
|
|
362
354
|
var t, n;
|
|
363
355
|
(t = (n = r.props).onRequestClose) === null || t === void 0 ? void 0 : t.call(n, {
|
|
@@ -366,7 +358,7 @@
|
|
|
366
358
|
});
|
|
367
359
|
}
|
|
368
360
|
}));
|
|
369
|
-
var o =
|
|
361
|
+
var o = E();
|
|
370
362
|
if (!n.layerContainer) {
|
|
371
363
|
n.layerContainer = o.createElement("div");
|
|
372
364
|
n.layerContainer.setAttribute("data-test", "layer-container");
|
|
@@ -374,7 +366,7 @@
|
|
|
374
366
|
}
|
|
375
367
|
return r;
|
|
376
368
|
}
|
|
377
|
-
|
|
369
|
+
_(n, [ {
|
|
378
370
|
key: "componentDidMount",
|
|
379
371
|
value: function e() {
|
|
380
372
|
if (this.props.open) {
|
|
@@ -387,13 +379,13 @@
|
|
|
387
379
|
if (!t.open && this.props.open) {
|
|
388
380
|
this.getLayerStack().push(this);
|
|
389
381
|
} else if (t.open && !this.props.open) {
|
|
390
|
-
|
|
382
|
+
f()(this.getLayerStack(), this);
|
|
391
383
|
}
|
|
392
384
|
}
|
|
393
385
|
}, {
|
|
394
386
|
key: "componentWillUnmount",
|
|
395
387
|
value: function e() {
|
|
396
|
-
|
|
388
|
+
f()(this.getLayerStack(), this);
|
|
397
389
|
}
|
|
398
390
|
}, {
|
|
399
391
|
key: "getLayerStack",
|
|
@@ -406,7 +398,7 @@
|
|
|
406
398
|
var t = this;
|
|
407
399
|
var i = this.props, a = i.children, c = i.open;
|
|
408
400
|
if (c) {
|
|
409
|
-
var u = (0, o.createPortal)( r().createElement(
|
|
401
|
+
var u = (0, o.createPortal)( r().createElement(b.Consumer, null, (function(e) {
|
|
410
402
|
var n = e.separateStackingContexts, o = n === void 0 ? false : n;
|
|
411
403
|
|
|
412
404
|
return r().createElement(S, {
|
|
@@ -442,12 +434,12 @@
|
|
|
442
434
|
} ]);
|
|
443
435
|
return n;
|
|
444
436
|
}(n.Component);
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
/* harmony default export */ const
|
|
437
|
+
A(I, "layerContainer", null);
|
|
438
|
+
A(I, "possibleCloseReasons", B);
|
|
439
|
+
A(I, "propTypes", z);
|
|
440
|
+
A(I, "defaultProps", F);
|
|
441
|
+
A(I, "contextType", h);
|
|
442
|
+
/* harmony default export */ const U = I;
|
|
451
443
|
// CONCATENATED MODULE: ./src/Layer/index.ts
|
|
452
444
|
module.exports = t;
|
|
453
445
|
/******/})();
|