@splunk/react-ui 4.38.0 → 4.40.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 (172) hide show
  1. package/Accordion.js +131 -153
  2. package/Anchor.js +50 -58
  3. package/Animation.js +64 -59
  4. package/AnimationToggle.js +59 -61
  5. package/Box.js +59 -67
  6. package/Breadcrumbs.js +113 -127
  7. package/Button.js +151 -169
  8. package/ButtonGroup.js +41 -49
  9. package/ButtonSimple.js +264 -295
  10. package/CHANGELOG.md +49 -0
  11. package/Calendar.js +353 -414
  12. package/Card.js +186 -244
  13. package/CardLayout.js +86 -83
  14. package/Chip.js +136 -146
  15. package/Clickable.js +180 -198
  16. package/CloseButton.js +52 -60
  17. package/Code.js +24 -31
  18. package/CollapsiblePanel.js +172 -202
  19. package/Color.js +371 -412
  20. package/ColumnLayout.js +72 -96
  21. package/ComboBox.js +266 -303
  22. package/Concertina.js +406 -454
  23. package/ControlGroup.js +178 -210
  24. package/Date.js +116 -131
  25. package/DefinitionList.js +125 -149
  26. package/Divider.js +81 -79
  27. package/Dropdown.js +226 -237
  28. package/DualListbox.js +150 -186
  29. package/EventListener.js +4 -1
  30. package/File.js +1032 -955
  31. package/FormRows.js +281 -334
  32. package/Heading.js +27 -35
  33. package/Image.js +101 -116
  34. package/JSONTree.js +301 -344
  35. package/Layer.js +118 -126
  36. package/Link.js +141 -159
  37. package/List.js +61 -77
  38. package/MIGRATION.mdx +123 -38
  39. package/Markdown.js +288 -347
  40. package/Menu.js +506 -532
  41. package/Message.js +197 -207
  42. package/MessageBar.js +58 -66
  43. package/Modal.js +241 -290
  44. package/ModalLayer.js +130 -148
  45. package/Monogram.js +138 -138
  46. package/Multiselect.js +3137 -3433
  47. package/Number.js +164 -178
  48. package/Paginator.js +296 -335
  49. package/Paragraph.js +24 -32
  50. package/Popover.js +450 -442
  51. package/Progress.js +65 -75
  52. package/RadioBar.js +301 -303
  53. package/RadioList.js +77 -119
  54. package/Resize.js +105 -127
  55. package/ResultsMenu.js +373 -385
  56. package/ScreenReaderContent.js +50 -58
  57. package/Scroll.js +209 -244
  58. package/Search.js +379 -391
  59. package/Select.js +2085 -2345
  60. package/SidePanel.js +122 -142
  61. package/Slider.js +132 -145
  62. package/SlidingPanels.js +238 -270
  63. package/SplitButton.d.ts +2 -0
  64. package/SplitButton.js +222 -245
  65. package/StaticContent.js +68 -76
  66. package/StepBar.js +206 -205
  67. package/Switch.js +176 -205
  68. package/TabBar.js +235 -268
  69. package/TabLayout.js +122 -141
  70. package/Table.js +2103 -2261
  71. package/Text.js +379 -493
  72. package/TextArea.js +411 -441
  73. package/Tooltip.js +116 -132
  74. package/TransitionOpen.js +160 -178
  75. package/Tree.js +268 -287
  76. package/Typography.js +48 -52
  77. package/WaitSpinner.js +61 -69
  78. package/cypress/support/commands.ts +9 -0
  79. package/cypress/support/index.d.ts +6 -0
  80. package/cypress/tsconfig.cypress.json +1 -0
  81. package/docker-compose.yml +0 -1
  82. package/package.json +15 -15
  83. package/types/src/Button/Button.d.ts +5 -1
  84. package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -2
  85. package/types/src/Card/Card.d.ts +1 -0
  86. package/types/src/Card/Footer.d.ts +1 -0
  87. package/types/src/Chip/Chip.d.ts +3 -6
  88. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -1
  89. package/types/src/Color/Color.d.ts +2 -2
  90. package/types/src/Color/Palette.d.ts +4 -2
  91. package/types/src/ComboBox/ComboBox.d.ts +1 -1
  92. package/types/src/ComboBox/Option.d.ts +1 -1
  93. package/types/src/ControlGroup/ControlGroup.d.ts +1 -2
  94. package/types/src/Date/Date.d.ts +2 -2
  95. package/types/src/File/File.d.ts +2 -3
  96. package/types/src/File/Retry.d.ts +1 -2
  97. package/types/src/Menu/Item.d.ts +18 -5
  98. package/types/src/Menu/Menu.d.ts +3 -3
  99. package/types/src/Menu/docs/examples/Adornments.d.ts +2 -0
  100. package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -0
  101. package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
  102. package/types/src/Multiselect/Compact.d.ts +1 -1
  103. package/types/src/Multiselect/Multiselect.d.ts +1 -1
  104. package/types/src/Multiselect/Normal.d.ts +1 -1
  105. package/types/src/Multiselect/Option.d.ts +2 -0
  106. package/types/src/Number/Number.d.ts +3 -3
  107. package/types/src/Popover/Popover.d.ts +3 -4
  108. package/types/src/RadioBar/RadioBar.d.ts +2 -2
  109. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
  110. package/types/src/ScrollContainerContext/ScrollContainerContext.d.ts +2 -2
  111. package/types/src/Search/Option.d.ts +9 -3
  112. package/types/src/Select/Option.d.ts +3 -1
  113. package/types/src/Select/OptionBase.d.ts +7 -5
  114. package/types/src/Select/Select.d.ts +4 -2
  115. package/types/src/Select/SelectAllOption.d.ts +4 -4
  116. package/types/src/Select/SelectBase.d.ts +104 -66
  117. package/types/src/Select/docs/examples/Appearance.d.ts +0 -2
  118. package/types/src/SidePanel/SidePanel.d.ts +1 -1
  119. package/types/src/Slider/Slider.d.ts +2 -2
  120. package/types/src/SlidingPanels/SlidingPanels.d.ts +1 -1
  121. package/types/src/StepBar/Step.d.ts +1 -2
  122. package/types/src/Switch/Switch.d.ts +0 -1
  123. package/types/src/TabBar/Tab.d.ts +1 -1
  124. package/types/src/TabBar/TabBar.d.ts +3 -1
  125. package/types/src/TabLayout/TabLayout.d.ts +2 -0
  126. package/types/src/Table/Cell.d.ts +0 -2
  127. package/types/src/Table/HeadDropdownCell.d.ts +2 -0
  128. package/types/src/Table/HeadInner.d.ts +5 -1
  129. package/types/src/Table/Table.d.ts +0 -1
  130. package/types/src/Table/docs/examples/StripeRows.d.ts +2 -0
  131. package/types/src/Text/IconOutlinedHide.d.ts +1 -2
  132. package/types/src/Text/IconOutlinedView.d.ts +1 -2
  133. package/types/src/Text/Text.d.ts +2 -2
  134. package/types/src/TextArea/TextArea.d.ts +2 -2
  135. package/types/src/Tooltip/Tooltip.d.ts +4 -4
  136. package/types/src/TransitionOpen/TransitionOpen.d.ts +1 -1
  137. package/types/src/WaitSpinner/WaitSpinner.d.ts +0 -1
  138. package/types/src/useControlled/index.d.ts +2 -0
  139. package/types/src/useControlled/useControlled.d.ts +21 -0
  140. package/types/src/useResizeObserver/index.d.ts +2 -0
  141. package/types/src/useResizeObserver/useResizeObserver.d.ts +12 -0
  142. package/useControlled.js +112 -0
  143. package/useForceUpdate.js +30 -32
  144. package/useKeyPress.d.ts +2 -0
  145. package/useKeyPress.js +1 -1
  146. package/useResizeObserver.d.ts +2 -0
  147. package/useResizeObserver.js +137 -0
  148. package/types/src/ButtonGroup/docs/examples/prisma/Basic.d.ts +0 -1
  149. package/types/src/Chip/docs/examples/Basic.d.ts +0 -2
  150. package/types/src/Chip/docs/examples/prisma/Appearance.d.ts +0 -2
  151. package/types/src/Color/docs/examples/prisma/Controlled.d.ts +0 -2
  152. package/types/src/Color/docs/examples/prisma/ThemeVariables.d.ts +0 -1
  153. package/types/src/Color/docs/examples/prisma/Uncontrolled.d.ts +0 -2
  154. package/types/src/Dropdown/docs/examples/prisma/Basic.d.ts +0 -2
  155. package/types/src/Dropdown/docs/examples/prisma/BasicMenu.d.ts +0 -2
  156. package/types/src/Dropdown/docs/examples/prisma/ControlledDropdown.d.ts +0 -2
  157. package/types/src/Dropdown/docs/examples/prisma/Dialog.d.ts +0 -2
  158. package/types/src/Dropdown/docs/examples/prisma/OtherToggles.d.ts +0 -2
  159. package/types/src/Dropdown/docs/examples/prisma/ScrollingMenu.d.ts +0 -2
  160. package/types/src/File/docs/examples/prisma/Disabled.d.ts +0 -12
  161. package/types/src/File/docs/examples/prisma/Error.d.ts +0 -1
  162. package/types/src/Menu/docs/examples/Icons.d.ts +0 -2
  163. package/types/src/Menu/docs/examples/SelectableWithIcons.d.ts +0 -2
  164. package/types/src/Message/docs/examples/prisma/Title.d.ts +0 -2
  165. package/types/src/TabBar/docs/examples/prisma/Context.d.ts +0 -2
  166. package/types/src/TabLayout/docs/examples/prisma/Context.d.ts +0 -2
  167. package/types/src/Table/docs/examples/prisma/Basic.d.ts +0 -2
  168. package/types/src/WaitSpinner/docs/examples/prisma/Basic.d.ts +0 -2
  169. /package/types/src/Color/docs/examples/{prisma/CustomizedPalette.d.ts → CustomizedPalette.d.ts} +0 -0
  170. /package/types/src/Color/docs/examples/{prisma/HideInput.d.ts → HideInput.d.ts} +0 -0
  171. /package/types/src/StepBar/docs/examples/{prisma/Error.d.ts → Error.d.ts} +0 -0
  172. /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 */ m,
76
+ LayerContext: () => /* reexport */ b,
77
77
  LayerStackContext: () => /* reexport */ h,
78
- LayerStackGlobalProvider: () => /* reexport */ k,
79
- default: () => /* reexport */ F
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 f = require("lodash/pull");
97
- var p = e.n(f);
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 m = r().createContext({});
111
- var b = {
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 k(t) {
123
- var n = t.children, o = t.name, i = o === void 0 ? "__splunkui_layer_instances__" : o, a = t.scope, c = a === void 0 ? typeof window !== "undefined" ? window : e.g : a, u = t.separateStackingContexts, l = u === void 0 ? false : u;
124
- if (!c[i]) {
125
- c[i] = [];
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: c[i]
131
- }, r().createElement(m.Provider, {
132
- value: {
133
- separateStackingContexts: l
134
- }
135
- }, n));
135
+ value: u[a]
136
+ }, r().createElement(b.Provider, {
137
+ value: p
138
+ }, o));
136
139
  }
137
- k.propTypes = b;
140
+ w.propTypes = m;
138
141
  // CONCATENATED MODULE: external "styled-components"
139
- const w = require("styled-components");
140
- var g = e.n(w);
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, w.css)([ "isolation:isolate;z-index:", ";" ], C.variables.zindexLayer);
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 E = {
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 O() {
208
- var e = typeof document !== "undefined" ? document : E;
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 L(e) {
215
+ function j(e) {
213
216
  "@babel/helpers - typeof";
214
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
215
- L = function e(t) {
216
- return typeof t;
217
- };
218
- } else {
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 _(e, t) {
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 x(e, t) {
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 || false;
234
- r.configurable = true;
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 P(e, t, n) {
240
- if (t) x(e.prototype, t);
241
- if (n) x(e, n);
242
- return e;
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 j(e, t) {
245
- if (typeof t !== "function" && t !== null) {
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: true,
252
- configurable: true
243
+ writable: !0,
244
+ configurable: !0
253
245
  }
254
- });
255
- if (t) q(e, t);
246
+ }), Object.defineProperty(e, "prototype", {
247
+ writable: !1
248
+ }), t && x(e, t);
256
249
  }
257
- function q(e, t) {
258
- q = Object.setPrototypeOf || function e(t, n) {
259
- t.__proto__ = n;
260
- return t;
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 T(e) {
265
- var t = A();
266
- return function n() {
267
- var r = K(e), o;
255
+ function q(e) {
256
+ var t = M();
257
+ return function() {
258
+ var n, r = N(e);
268
259
  if (t) {
269
- var i = K(this).constructor;
270
- o = Reflect.construct(r, arguments, i);
271
- } else {
272
- o = r.apply(this, arguments);
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 && (L(t) === "object" || typeof t === "function")) {
279
- return t;
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 (e === void 0) {
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 A() {
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
- Date.prototype.toString.call(Reflect.construct(Date, [], (function() {})));
295
- return true;
296
- } catch (e) {
297
- return false;
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
- K = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
302
- return t.__proto__ || Object.getPrototypeOf(t);
303
- };
304
- return K(e);
297
+ var t = W(e, "string");
298
+ return "symbol" == j(t) ? t : t + "";
305
299
  }
306
- function M(e, t, n) {
307
- if (t in e) {
308
- Object.defineProperty(e, t, {
309
- value: n,
310
- enumerable: true,
311
- configurable: true,
312
- writable: true
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 */ var N = [ "clickAway", "escapeKey" ];
320
- var W = {
310
+ /** @public */
311
+ /** @public */ var B = [ "clickAway", "escapeKey" ];
312
+ var z = {
321
313
  children: a().node,
322
- closeReasons: a().arrayOf(a().oneOf(N)),
314
+ closeReasons: a().arrayOf(a().oneOf(B)),
323
315
  onRequestClose: a().func,
324
316
  open: a().bool
325
317
  };
326
- var z = {
327
- closeReasons: N,
318
+ var F = {
319
+ closeReasons: B,
328
320
  open: false
329
321
  };
330
- var B = function(e) {
331
- j(n, e);
332
- var t = T(n);
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
- _(this, n);
334
+ L(this, n);
343
335
  r = t.call(this, e);
344
- M(D(r), "layerClickEvent", null);
345
- M(D(r), "handleClickOnLayer", (function(e) {
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
- M(D(r), "handleClickOnWindow", (function(e) {
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
- M(D(r), "handleKeyDownOnWindow", (function(e) {
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 = 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
- P(n, [ {
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
- p()(this.getLayerStack(), this);
382
+ f()(this.getLayerStack(), this);
391
383
  }
392
384
  }
393
385
  }, {
394
386
  key: "componentWillUnmount",
395
387
  value: function e() {
396
- p()(this.getLayerStack(), this);
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(m.Consumer, null, (function(e) {
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
- M(B, "layerContainer", null);
446
- M(B, "possibleCloseReasons", N);
447
- M(B, "propTypes", W);
448
- M(B, "defaultProps", z);
449
- M(B, "contextType", h);
450
- /* harmony default export */ const F = B;
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
  /******/})();