@easypost/easy-ui 1.0.0-alpha.75 → 1.0.0-alpha.76

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/Drawer/index.js CHANGED
@@ -38,9 +38,7 @@ const Icon = require("../__chunks__/Icon-W8F9w-jS.js");
38
38
  const Text = require("../__chunks__/Text-DZ601qf9.js");
39
39
  const useModalOverlay = require("../__chunks__/useModalOverlay-C_b9YfI9.js");
40
40
  const Overlay = require("../__chunks__/Overlay-BqaNlC3s.js");
41
- const objectWithoutPropertiesLoose = require("../__chunks__/objectWithoutPropertiesLoose-C4Mip8ZU.js");
42
- const _commonjsHelpers = require("../__chunks__/_commonjsHelpers-Bc2YnDe1.js");
43
- const ReactDOM = require("react-dom");
41
+ const CSSTransition = require("../__chunks__/CSSTransition-BXyX0mUc.js");
44
42
  const useOverlayTrigger = require("../__chunks__/useOverlayTrigger-BJJgq7LS.js");
45
43
  const useDialog = require("../__chunks__/useDialog-CmV1awNZ.js");
46
44
  function _interopNamespaceDefault(e) {
@@ -185,1686 +183,6 @@ function DrawerCloseButton() {
185
183
  size: "md"
186
184
  }));
187
185
  }
188
- function _setPrototypeOf(t, e) {
189
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
190
- return t2.__proto__ = e2, t2;
191
- }, _setPrototypeOf(t, e);
192
- }
193
- function _inheritsLoose(t, o) {
194
- t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
195
- }
196
- var propTypes = { exports: {} };
197
- var reactIs = { exports: {} };
198
- var reactIs_production_min = {};
199
- /** @license React v16.13.1
200
- * react-is.production.min.js
201
- *
202
- * Copyright (c) Facebook, Inc. and its affiliates.
203
- *
204
- * This source code is licensed under the MIT license found in the
205
- * LICENSE file in the root directory of this source tree.
206
- */
207
- var hasRequiredReactIs_production_min;
208
- function requireReactIs_production_min() {
209
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
210
- hasRequiredReactIs_production_min = 1;
211
- var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
212
- function z(a) {
213
- if ("object" === typeof a && null !== a) {
214
- var u = a.$$typeof;
215
- switch (u) {
216
- case c:
217
- switch (a = a.type, a) {
218
- case l:
219
- case m:
220
- case e:
221
- case g:
222
- case f:
223
- case p:
224
- return a;
225
- default:
226
- switch (a = a && a.$$typeof, a) {
227
- case k:
228
- case n:
229
- case t:
230
- case r:
231
- case h:
232
- return a;
233
- default:
234
- return u;
235
- }
236
- }
237
- case d:
238
- return u;
239
- }
240
- }
241
- }
242
- function A(a) {
243
- return z(a) === m;
244
- }
245
- reactIs_production_min.AsyncMode = l;
246
- reactIs_production_min.ConcurrentMode = m;
247
- reactIs_production_min.ContextConsumer = k;
248
- reactIs_production_min.ContextProvider = h;
249
- reactIs_production_min.Element = c;
250
- reactIs_production_min.ForwardRef = n;
251
- reactIs_production_min.Fragment = e;
252
- reactIs_production_min.Lazy = t;
253
- reactIs_production_min.Memo = r;
254
- reactIs_production_min.Portal = d;
255
- reactIs_production_min.Profiler = g;
256
- reactIs_production_min.StrictMode = f;
257
- reactIs_production_min.Suspense = p;
258
- reactIs_production_min.isAsyncMode = function(a) {
259
- return A(a) || z(a) === l;
260
- };
261
- reactIs_production_min.isConcurrentMode = A;
262
- reactIs_production_min.isContextConsumer = function(a) {
263
- return z(a) === k;
264
- };
265
- reactIs_production_min.isContextProvider = function(a) {
266
- return z(a) === h;
267
- };
268
- reactIs_production_min.isElement = function(a) {
269
- return "object" === typeof a && null !== a && a.$$typeof === c;
270
- };
271
- reactIs_production_min.isForwardRef = function(a) {
272
- return z(a) === n;
273
- };
274
- reactIs_production_min.isFragment = function(a) {
275
- return z(a) === e;
276
- };
277
- reactIs_production_min.isLazy = function(a) {
278
- return z(a) === t;
279
- };
280
- reactIs_production_min.isMemo = function(a) {
281
- return z(a) === r;
282
- };
283
- reactIs_production_min.isPortal = function(a) {
284
- return z(a) === d;
285
- };
286
- reactIs_production_min.isProfiler = function(a) {
287
- return z(a) === g;
288
- };
289
- reactIs_production_min.isStrictMode = function(a) {
290
- return z(a) === f;
291
- };
292
- reactIs_production_min.isSuspense = function(a) {
293
- return z(a) === p;
294
- };
295
- reactIs_production_min.isValidElementType = function(a) {
296
- return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
297
- };
298
- reactIs_production_min.typeOf = z;
299
- return reactIs_production_min;
300
- }
301
- var reactIs_development = {};
302
- /** @license React v16.13.1
303
- * react-is.development.js
304
- *
305
- * Copyright (c) Facebook, Inc. and its affiliates.
306
- *
307
- * This source code is licensed under the MIT license found in the
308
- * LICENSE file in the root directory of this source tree.
309
- */
310
- var hasRequiredReactIs_development;
311
- function requireReactIs_development() {
312
- if (hasRequiredReactIs_development) return reactIs_development;
313
- hasRequiredReactIs_development = 1;
314
- if (process.env.NODE_ENV !== "production") {
315
- (function() {
316
- var hasSymbol = typeof Symbol === "function" && Symbol.for;
317
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
318
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
319
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
320
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
321
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
322
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
323
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
324
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
325
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
326
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
327
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
328
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
329
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
330
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
331
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
332
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
333
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
334
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
335
- function isValidElementType(type) {
336
- return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
337
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
338
- }
339
- function typeOf(object) {
340
- if (typeof object === "object" && object !== null) {
341
- var $$typeof = object.$$typeof;
342
- switch ($$typeof) {
343
- case REACT_ELEMENT_TYPE:
344
- var type = object.type;
345
- switch (type) {
346
- case REACT_ASYNC_MODE_TYPE:
347
- case REACT_CONCURRENT_MODE_TYPE:
348
- case REACT_FRAGMENT_TYPE:
349
- case REACT_PROFILER_TYPE:
350
- case REACT_STRICT_MODE_TYPE:
351
- case REACT_SUSPENSE_TYPE:
352
- return type;
353
- default:
354
- var $$typeofType = type && type.$$typeof;
355
- switch ($$typeofType) {
356
- case REACT_CONTEXT_TYPE:
357
- case REACT_FORWARD_REF_TYPE:
358
- case REACT_LAZY_TYPE:
359
- case REACT_MEMO_TYPE:
360
- case REACT_PROVIDER_TYPE:
361
- return $$typeofType;
362
- default:
363
- return $$typeof;
364
- }
365
- }
366
- case REACT_PORTAL_TYPE:
367
- return $$typeof;
368
- }
369
- }
370
- return void 0;
371
- }
372
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
373
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
374
- var ContextConsumer = REACT_CONTEXT_TYPE;
375
- var ContextProvider = REACT_PROVIDER_TYPE;
376
- var Element2 = REACT_ELEMENT_TYPE;
377
- var ForwardRef = REACT_FORWARD_REF_TYPE;
378
- var Fragment = REACT_FRAGMENT_TYPE;
379
- var Lazy = REACT_LAZY_TYPE;
380
- var Memo = REACT_MEMO_TYPE;
381
- var Portal = REACT_PORTAL_TYPE;
382
- var Profiler = REACT_PROFILER_TYPE;
383
- var StrictMode = REACT_STRICT_MODE_TYPE;
384
- var Suspense = REACT_SUSPENSE_TYPE;
385
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
386
- function isAsyncMode(object) {
387
- {
388
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
389
- hasWarnedAboutDeprecatedIsAsyncMode = true;
390
- console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
391
- }
392
- }
393
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
394
- }
395
- function isConcurrentMode(object) {
396
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
397
- }
398
- function isContextConsumer(object) {
399
- return typeOf(object) === REACT_CONTEXT_TYPE;
400
- }
401
- function isContextProvider(object) {
402
- return typeOf(object) === REACT_PROVIDER_TYPE;
403
- }
404
- function isElement(object) {
405
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
406
- }
407
- function isForwardRef(object) {
408
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
409
- }
410
- function isFragment(object) {
411
- return typeOf(object) === REACT_FRAGMENT_TYPE;
412
- }
413
- function isLazy(object) {
414
- return typeOf(object) === REACT_LAZY_TYPE;
415
- }
416
- function isMemo(object) {
417
- return typeOf(object) === REACT_MEMO_TYPE;
418
- }
419
- function isPortal(object) {
420
- return typeOf(object) === REACT_PORTAL_TYPE;
421
- }
422
- function isProfiler(object) {
423
- return typeOf(object) === REACT_PROFILER_TYPE;
424
- }
425
- function isStrictMode(object) {
426
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
427
- }
428
- function isSuspense(object) {
429
- return typeOf(object) === REACT_SUSPENSE_TYPE;
430
- }
431
- reactIs_development.AsyncMode = AsyncMode;
432
- reactIs_development.ConcurrentMode = ConcurrentMode;
433
- reactIs_development.ContextConsumer = ContextConsumer;
434
- reactIs_development.ContextProvider = ContextProvider;
435
- reactIs_development.Element = Element2;
436
- reactIs_development.ForwardRef = ForwardRef;
437
- reactIs_development.Fragment = Fragment;
438
- reactIs_development.Lazy = Lazy;
439
- reactIs_development.Memo = Memo;
440
- reactIs_development.Portal = Portal;
441
- reactIs_development.Profiler = Profiler;
442
- reactIs_development.StrictMode = StrictMode;
443
- reactIs_development.Suspense = Suspense;
444
- reactIs_development.isAsyncMode = isAsyncMode;
445
- reactIs_development.isConcurrentMode = isConcurrentMode;
446
- reactIs_development.isContextConsumer = isContextConsumer;
447
- reactIs_development.isContextProvider = isContextProvider;
448
- reactIs_development.isElement = isElement;
449
- reactIs_development.isForwardRef = isForwardRef;
450
- reactIs_development.isFragment = isFragment;
451
- reactIs_development.isLazy = isLazy;
452
- reactIs_development.isMemo = isMemo;
453
- reactIs_development.isPortal = isPortal;
454
- reactIs_development.isProfiler = isProfiler;
455
- reactIs_development.isStrictMode = isStrictMode;
456
- reactIs_development.isSuspense = isSuspense;
457
- reactIs_development.isValidElementType = isValidElementType;
458
- reactIs_development.typeOf = typeOf;
459
- })();
460
- }
461
- return reactIs_development;
462
- }
463
- var hasRequiredReactIs;
464
- function requireReactIs() {
465
- if (hasRequiredReactIs) return reactIs.exports;
466
- hasRequiredReactIs = 1;
467
- if (process.env.NODE_ENV === "production") {
468
- reactIs.exports = requireReactIs_production_min();
469
- } else {
470
- reactIs.exports = requireReactIs_development();
471
- }
472
- return reactIs.exports;
473
- }
474
- /*
475
- object-assign
476
- (c) Sindre Sorhus
477
- @license MIT
478
- */
479
- var objectAssign;
480
- var hasRequiredObjectAssign;
481
- function requireObjectAssign() {
482
- if (hasRequiredObjectAssign) return objectAssign;
483
- hasRequiredObjectAssign = 1;
484
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
485
- var hasOwnProperty = Object.prototype.hasOwnProperty;
486
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
487
- function toObject(val) {
488
- if (val === null || val === void 0) {
489
- throw new TypeError("Object.assign cannot be called with null or undefined");
490
- }
491
- return Object(val);
492
- }
493
- function shouldUseNative() {
494
- try {
495
- if (!Object.assign) {
496
- return false;
497
- }
498
- var test1 = new String("abc");
499
- test1[5] = "de";
500
- if (Object.getOwnPropertyNames(test1)[0] === "5") {
501
- return false;
502
- }
503
- var test2 = {};
504
- for (var i = 0; i < 10; i++) {
505
- test2["_" + String.fromCharCode(i)] = i;
506
- }
507
- var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
508
- return test2[n];
509
- });
510
- if (order2.join("") !== "0123456789") {
511
- return false;
512
- }
513
- var test3 = {};
514
- "abcdefghijklmnopqrst".split("").forEach(function(letter) {
515
- test3[letter] = letter;
516
- });
517
- if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
518
- return false;
519
- }
520
- return true;
521
- } catch (err) {
522
- return false;
523
- }
524
- }
525
- objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
526
- var from;
527
- var to = toObject(target);
528
- var symbols;
529
- for (var s = 1; s < arguments.length; s++) {
530
- from = Object(arguments[s]);
531
- for (var key in from) {
532
- if (hasOwnProperty.call(from, key)) {
533
- to[key] = from[key];
534
- }
535
- }
536
- if (getOwnPropertySymbols) {
537
- symbols = getOwnPropertySymbols(from);
538
- for (var i = 0; i < symbols.length; i++) {
539
- if (propIsEnumerable.call(from, symbols[i])) {
540
- to[symbols[i]] = from[symbols[i]];
541
- }
542
- }
543
- }
544
- }
545
- return to;
546
- };
547
- return objectAssign;
548
- }
549
- var ReactPropTypesSecret_1;
550
- var hasRequiredReactPropTypesSecret;
551
- function requireReactPropTypesSecret() {
552
- if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
553
- hasRequiredReactPropTypesSecret = 1;
554
- var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
555
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
556
- return ReactPropTypesSecret_1;
557
- }
558
- var has;
559
- var hasRequiredHas;
560
- function requireHas() {
561
- if (hasRequiredHas) return has;
562
- hasRequiredHas = 1;
563
- has = Function.call.bind(Object.prototype.hasOwnProperty);
564
- return has;
565
- }
566
- var checkPropTypes_1;
567
- var hasRequiredCheckPropTypes;
568
- function requireCheckPropTypes() {
569
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
570
- hasRequiredCheckPropTypes = 1;
571
- var printWarning = function() {
572
- };
573
- if (process.env.NODE_ENV !== "production") {
574
- var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
575
- var loggedTypeFailures = {};
576
- var has2 = /* @__PURE__ */ requireHas();
577
- printWarning = function(text) {
578
- var message = "Warning: " + text;
579
- if (typeof console !== "undefined") {
580
- console.error(message);
581
- }
582
- try {
583
- throw new Error(message);
584
- } catch (x) {
585
- }
586
- };
587
- }
588
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
589
- if (process.env.NODE_ENV !== "production") {
590
- for (var typeSpecName in typeSpecs) {
591
- if (has2(typeSpecs, typeSpecName)) {
592
- var error;
593
- try {
594
- if (typeof typeSpecs[typeSpecName] !== "function") {
595
- var err = Error(
596
- (componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
597
- );
598
- err.name = "Invariant Violation";
599
- throw err;
600
- }
601
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
602
- } catch (ex) {
603
- error = ex;
604
- }
605
- if (error && !(error instanceof Error)) {
606
- printWarning(
607
- (componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
608
- );
609
- }
610
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
611
- loggedTypeFailures[error.message] = true;
612
- var stack = getStack ? getStack() : "";
613
- printWarning(
614
- "Failed " + location + " type: " + error.message + (stack != null ? stack : "")
615
- );
616
- }
617
- }
618
- }
619
- }
620
- }
621
- checkPropTypes.resetWarningCache = function() {
622
- if (process.env.NODE_ENV !== "production") {
623
- loggedTypeFailures = {};
624
- }
625
- };
626
- checkPropTypes_1 = checkPropTypes;
627
- return checkPropTypes_1;
628
- }
629
- var factoryWithTypeCheckers;
630
- var hasRequiredFactoryWithTypeCheckers;
631
- function requireFactoryWithTypeCheckers() {
632
- if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
633
- hasRequiredFactoryWithTypeCheckers = 1;
634
- var ReactIs = requireReactIs();
635
- var assign = requireObjectAssign();
636
- var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
637
- var has2 = /* @__PURE__ */ requireHas();
638
- var checkPropTypes = /* @__PURE__ */ requireCheckPropTypes();
639
- var printWarning = function() {
640
- };
641
- if (process.env.NODE_ENV !== "production") {
642
- printWarning = function(text) {
643
- var message = "Warning: " + text;
644
- if (typeof console !== "undefined") {
645
- console.error(message);
646
- }
647
- try {
648
- throw new Error(message);
649
- } catch (x) {
650
- }
651
- };
652
- }
653
- function emptyFunctionThatReturnsNull() {
654
- return null;
655
- }
656
- factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
657
- var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
658
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
659
- function getIteratorFn(maybeIterable) {
660
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
661
- if (typeof iteratorFn === "function") {
662
- return iteratorFn;
663
- }
664
- }
665
- var ANONYMOUS = "<<anonymous>>";
666
- var ReactPropTypes = {
667
- array: createPrimitiveTypeChecker("array"),
668
- bigint: createPrimitiveTypeChecker("bigint"),
669
- bool: createPrimitiveTypeChecker("boolean"),
670
- func: createPrimitiveTypeChecker("function"),
671
- number: createPrimitiveTypeChecker("number"),
672
- object: createPrimitiveTypeChecker("object"),
673
- string: createPrimitiveTypeChecker("string"),
674
- symbol: createPrimitiveTypeChecker("symbol"),
675
- any: createAnyTypeChecker(),
676
- arrayOf: createArrayOfTypeChecker,
677
- element: createElementTypeChecker(),
678
- elementType: createElementTypeTypeChecker(),
679
- instanceOf: createInstanceTypeChecker,
680
- node: createNodeChecker(),
681
- objectOf: createObjectOfTypeChecker,
682
- oneOf: createEnumTypeChecker,
683
- oneOfType: createUnionTypeChecker,
684
- shape: createShapeTypeChecker,
685
- exact: createStrictShapeTypeChecker
686
- };
687
- function is(x, y) {
688
- if (x === y) {
689
- return x !== 0 || 1 / x === 1 / y;
690
- } else {
691
- return x !== x && y !== y;
692
- }
693
- }
694
- function PropTypeError(message, data) {
695
- this.message = message;
696
- this.data = data && typeof data === "object" ? data : {};
697
- this.stack = "";
698
- }
699
- PropTypeError.prototype = Error.prototype;
700
- function createChainableTypeChecker(validate) {
701
- if (process.env.NODE_ENV !== "production") {
702
- var manualPropTypeCallCache = {};
703
- var manualPropTypeWarningCount = 0;
704
- }
705
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
706
- componentName = componentName || ANONYMOUS;
707
- propFullName = propFullName || propName;
708
- if (secret !== ReactPropTypesSecret) {
709
- if (throwOnDirectAccess) {
710
- var err = new Error(
711
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
712
- );
713
- err.name = "Invariant Violation";
714
- throw err;
715
- } else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
716
- var cacheKey = componentName + ":" + propName;
717
- if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
718
- manualPropTypeWarningCount < 3) {
719
- printWarning(
720
- "You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
721
- );
722
- manualPropTypeCallCache[cacheKey] = true;
723
- manualPropTypeWarningCount++;
724
- }
725
- }
726
- }
727
- if (props[propName] == null) {
728
- if (isRequired) {
729
- if (props[propName] === null) {
730
- return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
731
- }
732
- return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
733
- }
734
- return null;
735
- } else {
736
- return validate(props, propName, componentName, location, propFullName);
737
- }
738
- }
739
- var chainedCheckType = checkType.bind(null, false);
740
- chainedCheckType.isRequired = checkType.bind(null, true);
741
- return chainedCheckType;
742
- }
743
- function createPrimitiveTypeChecker(expectedType) {
744
- function validate(props, propName, componentName, location, propFullName, secret) {
745
- var propValue = props[propName];
746
- var propType = getPropType(propValue);
747
- if (propType !== expectedType) {
748
- var preciseType = getPreciseType(propValue);
749
- return new PropTypeError(
750
- "Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
751
- { expectedType }
752
- );
753
- }
754
- return null;
755
- }
756
- return createChainableTypeChecker(validate);
757
- }
758
- function createAnyTypeChecker() {
759
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
760
- }
761
- function createArrayOfTypeChecker(typeChecker) {
762
- function validate(props, propName, componentName, location, propFullName) {
763
- if (typeof typeChecker !== "function") {
764
- return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
765
- }
766
- var propValue = props[propName];
767
- if (!Array.isArray(propValue)) {
768
- var propType = getPropType(propValue);
769
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
770
- }
771
- for (var i = 0; i < propValue.length; i++) {
772
- var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
773
- if (error instanceof Error) {
774
- return error;
775
- }
776
- }
777
- return null;
778
- }
779
- return createChainableTypeChecker(validate);
780
- }
781
- function createElementTypeChecker() {
782
- function validate(props, propName, componentName, location, propFullName) {
783
- var propValue = props[propName];
784
- if (!isValidElement(propValue)) {
785
- var propType = getPropType(propValue);
786
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
787
- }
788
- return null;
789
- }
790
- return createChainableTypeChecker(validate);
791
- }
792
- function createElementTypeTypeChecker() {
793
- function validate(props, propName, componentName, location, propFullName) {
794
- var propValue = props[propName];
795
- if (!ReactIs.isValidElementType(propValue)) {
796
- var propType = getPropType(propValue);
797
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
798
- }
799
- return null;
800
- }
801
- return createChainableTypeChecker(validate);
802
- }
803
- function createInstanceTypeChecker(expectedClass) {
804
- function validate(props, propName, componentName, location, propFullName) {
805
- if (!(props[propName] instanceof expectedClass)) {
806
- var expectedClassName = expectedClass.name || ANONYMOUS;
807
- var actualClassName = getClassName(props[propName]);
808
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
809
- }
810
- return null;
811
- }
812
- return createChainableTypeChecker(validate);
813
- }
814
- function createEnumTypeChecker(expectedValues) {
815
- if (!Array.isArray(expectedValues)) {
816
- if (process.env.NODE_ENV !== "production") {
817
- if (arguments.length > 1) {
818
- printWarning(
819
- "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
820
- );
821
- } else {
822
- printWarning("Invalid argument supplied to oneOf, expected an array.");
823
- }
824
- }
825
- return emptyFunctionThatReturnsNull;
826
- }
827
- function validate(props, propName, componentName, location, propFullName) {
828
- var propValue = props[propName];
829
- for (var i = 0; i < expectedValues.length; i++) {
830
- if (is(propValue, expectedValues[i])) {
831
- return null;
832
- }
833
- }
834
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
835
- var type = getPreciseType(value);
836
- if (type === "symbol") {
837
- return String(value);
838
- }
839
- return value;
840
- });
841
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
842
- }
843
- return createChainableTypeChecker(validate);
844
- }
845
- function createObjectOfTypeChecker(typeChecker) {
846
- function validate(props, propName, componentName, location, propFullName) {
847
- if (typeof typeChecker !== "function") {
848
- return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
849
- }
850
- var propValue = props[propName];
851
- var propType = getPropType(propValue);
852
- if (propType !== "object") {
853
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
854
- }
855
- for (var key in propValue) {
856
- if (has2(propValue, key)) {
857
- var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
858
- if (error instanceof Error) {
859
- return error;
860
- }
861
- }
862
- }
863
- return null;
864
- }
865
- return createChainableTypeChecker(validate);
866
- }
867
- function createUnionTypeChecker(arrayOfTypeCheckers) {
868
- if (!Array.isArray(arrayOfTypeCheckers)) {
869
- process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
870
- return emptyFunctionThatReturnsNull;
871
- }
872
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
873
- var checker = arrayOfTypeCheckers[i];
874
- if (typeof checker !== "function") {
875
- printWarning(
876
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
877
- );
878
- return emptyFunctionThatReturnsNull;
879
- }
880
- }
881
- function validate(props, propName, componentName, location, propFullName) {
882
- var expectedTypes = [];
883
- for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
884
- var checker2 = arrayOfTypeCheckers[i2];
885
- var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
886
- if (checkerResult == null) {
887
- return null;
888
- }
889
- if (checkerResult.data && has2(checkerResult.data, "expectedType")) {
890
- expectedTypes.push(checkerResult.data.expectedType);
891
- }
892
- }
893
- var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
894
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
895
- }
896
- return createChainableTypeChecker(validate);
897
- }
898
- function createNodeChecker() {
899
- function validate(props, propName, componentName, location, propFullName) {
900
- if (!isNode(props[propName])) {
901
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
902
- }
903
- return null;
904
- }
905
- return createChainableTypeChecker(validate);
906
- }
907
- function invalidValidatorError(componentName, location, propFullName, key, type) {
908
- return new PropTypeError(
909
- (componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
910
- );
911
- }
912
- function createShapeTypeChecker(shapeTypes) {
913
- function validate(props, propName, componentName, location, propFullName) {
914
- var propValue = props[propName];
915
- var propType = getPropType(propValue);
916
- if (propType !== "object") {
917
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
918
- }
919
- for (var key in shapeTypes) {
920
- var checker = shapeTypes[key];
921
- if (typeof checker !== "function") {
922
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
923
- }
924
- var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
925
- if (error) {
926
- return error;
927
- }
928
- }
929
- return null;
930
- }
931
- return createChainableTypeChecker(validate);
932
- }
933
- function createStrictShapeTypeChecker(shapeTypes) {
934
- function validate(props, propName, componentName, location, propFullName) {
935
- var propValue = props[propName];
936
- var propType = getPropType(propValue);
937
- if (propType !== "object") {
938
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
939
- }
940
- var allKeys = assign({}, props[propName], shapeTypes);
941
- for (var key in allKeys) {
942
- var checker = shapeTypes[key];
943
- if (has2(shapeTypes, key) && typeof checker !== "function") {
944
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
945
- }
946
- if (!checker) {
947
- return new PropTypeError(
948
- "Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
949
- );
950
- }
951
- var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
952
- if (error) {
953
- return error;
954
- }
955
- }
956
- return null;
957
- }
958
- return createChainableTypeChecker(validate);
959
- }
960
- function isNode(propValue) {
961
- switch (typeof propValue) {
962
- case "number":
963
- case "string":
964
- case "undefined":
965
- return true;
966
- case "boolean":
967
- return !propValue;
968
- case "object":
969
- if (Array.isArray(propValue)) {
970
- return propValue.every(isNode);
971
- }
972
- if (propValue === null || isValidElement(propValue)) {
973
- return true;
974
- }
975
- var iteratorFn = getIteratorFn(propValue);
976
- if (iteratorFn) {
977
- var iterator = iteratorFn.call(propValue);
978
- var step;
979
- if (iteratorFn !== propValue.entries) {
980
- while (!(step = iterator.next()).done) {
981
- if (!isNode(step.value)) {
982
- return false;
983
- }
984
- }
985
- } else {
986
- while (!(step = iterator.next()).done) {
987
- var entry = step.value;
988
- if (entry) {
989
- if (!isNode(entry[1])) {
990
- return false;
991
- }
992
- }
993
- }
994
- }
995
- } else {
996
- return false;
997
- }
998
- return true;
999
- default:
1000
- return false;
1001
- }
1002
- }
1003
- function isSymbol(propType, propValue) {
1004
- if (propType === "symbol") {
1005
- return true;
1006
- }
1007
- if (!propValue) {
1008
- return false;
1009
- }
1010
- if (propValue["@@toStringTag"] === "Symbol") {
1011
- return true;
1012
- }
1013
- if (typeof Symbol === "function" && propValue instanceof Symbol) {
1014
- return true;
1015
- }
1016
- return false;
1017
- }
1018
- function getPropType(propValue) {
1019
- var propType = typeof propValue;
1020
- if (Array.isArray(propValue)) {
1021
- return "array";
1022
- }
1023
- if (propValue instanceof RegExp) {
1024
- return "object";
1025
- }
1026
- if (isSymbol(propType, propValue)) {
1027
- return "symbol";
1028
- }
1029
- return propType;
1030
- }
1031
- function getPreciseType(propValue) {
1032
- if (typeof propValue === "undefined" || propValue === null) {
1033
- return "" + propValue;
1034
- }
1035
- var propType = getPropType(propValue);
1036
- if (propType === "object") {
1037
- if (propValue instanceof Date) {
1038
- return "date";
1039
- } else if (propValue instanceof RegExp) {
1040
- return "regexp";
1041
- }
1042
- }
1043
- return propType;
1044
- }
1045
- function getPostfixForTypeWarning(value) {
1046
- var type = getPreciseType(value);
1047
- switch (type) {
1048
- case "array":
1049
- case "object":
1050
- return "an " + type;
1051
- case "boolean":
1052
- case "date":
1053
- case "regexp":
1054
- return "a " + type;
1055
- default:
1056
- return type;
1057
- }
1058
- }
1059
- function getClassName(propValue) {
1060
- if (!propValue.constructor || !propValue.constructor.name) {
1061
- return ANONYMOUS;
1062
- }
1063
- return propValue.constructor.name;
1064
- }
1065
- ReactPropTypes.checkPropTypes = checkPropTypes;
1066
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1067
- ReactPropTypes.PropTypes = ReactPropTypes;
1068
- return ReactPropTypes;
1069
- };
1070
- return factoryWithTypeCheckers;
1071
- }
1072
- var factoryWithThrowingShims;
1073
- var hasRequiredFactoryWithThrowingShims;
1074
- function requireFactoryWithThrowingShims() {
1075
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
1076
- hasRequiredFactoryWithThrowingShims = 1;
1077
- var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
1078
- function emptyFunction() {
1079
- }
1080
- function emptyFunctionWithReset() {
1081
- }
1082
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1083
- factoryWithThrowingShims = function() {
1084
- function shim(props, propName, componentName, location, propFullName, secret) {
1085
- if (secret === ReactPropTypesSecret) {
1086
- return;
1087
- }
1088
- var err = new Error(
1089
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1090
- );
1091
- err.name = "Invariant Violation";
1092
- throw err;
1093
- }
1094
- shim.isRequired = shim;
1095
- function getShim() {
1096
- return shim;
1097
- }
1098
- var ReactPropTypes = {
1099
- array: shim,
1100
- bigint: shim,
1101
- bool: shim,
1102
- func: shim,
1103
- number: shim,
1104
- object: shim,
1105
- string: shim,
1106
- symbol: shim,
1107
- any: shim,
1108
- arrayOf: getShim,
1109
- element: shim,
1110
- elementType: shim,
1111
- instanceOf: getShim,
1112
- node: shim,
1113
- objectOf: getShim,
1114
- oneOf: getShim,
1115
- oneOfType: getShim,
1116
- shape: getShim,
1117
- exact: getShim,
1118
- checkPropTypes: emptyFunctionWithReset,
1119
- resetWarningCache: emptyFunction
1120
- };
1121
- ReactPropTypes.PropTypes = ReactPropTypes;
1122
- return ReactPropTypes;
1123
- };
1124
- return factoryWithThrowingShims;
1125
- }
1126
- var hasRequiredPropTypes;
1127
- function requirePropTypes() {
1128
- if (hasRequiredPropTypes) return propTypes.exports;
1129
- hasRequiredPropTypes = 1;
1130
- if (process.env.NODE_ENV !== "production") {
1131
- var ReactIs = requireReactIs();
1132
- var throwOnDirectAccess = true;
1133
- propTypes.exports = /* @__PURE__ */ requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
1134
- } else {
1135
- propTypes.exports = /* @__PURE__ */ requireFactoryWithThrowingShims()();
1136
- }
1137
- return propTypes.exports;
1138
- }
1139
- var propTypesExports = /* @__PURE__ */ requirePropTypes();
1140
- const PropTypes = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(propTypesExports);
1141
- function hasClass(element, className) {
1142
- if (element.classList) return !!className && element.classList.contains(className);
1143
- return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
1144
- }
1145
- function addClass(element, className) {
1146
- if (element.classList) element.classList.add(className);
1147
- else if (!hasClass(element, className)) if (typeof element.className === "string") element.className = element.className + " " + className;
1148
- else element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className);
1149
- }
1150
- function replaceClassName(origClass, classToRemove) {
1151
- return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
1152
- }
1153
- function removeClass$1(element, className) {
1154
- if (element.classList) {
1155
- element.classList.remove(className);
1156
- } else if (typeof element.className === "string") {
1157
- element.className = replaceClassName(element.className, className);
1158
- } else {
1159
- element.setAttribute("class", replaceClassName(element.className && element.className.baseVal || "", className));
1160
- }
1161
- }
1162
- const config = {
1163
- disabled: false
1164
- };
1165
- var timeoutsShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
1166
- enter: PropTypes.number,
1167
- exit: PropTypes.number,
1168
- appear: PropTypes.number
1169
- }).isRequired]) : null;
1170
- var classNamesShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
1171
- enter: PropTypes.string,
1172
- exit: PropTypes.string,
1173
- active: PropTypes.string
1174
- }), PropTypes.shape({
1175
- enter: PropTypes.string,
1176
- enterDone: PropTypes.string,
1177
- enterActive: PropTypes.string,
1178
- exit: PropTypes.string,
1179
- exitDone: PropTypes.string,
1180
- exitActive: PropTypes.string
1181
- })]) : null;
1182
- const TransitionGroupContext = React.createContext(null);
1183
- var forceReflow = function forceReflow2(node) {
1184
- return node.scrollTop;
1185
- };
1186
- var UNMOUNTED = "unmounted";
1187
- var EXITED = "exited";
1188
- var ENTERING = "entering";
1189
- var ENTERED = "entered";
1190
- var EXITING = "exiting";
1191
- var Transition = /* @__PURE__ */ function(_React$Component) {
1192
- _inheritsLoose(Transition2, _React$Component);
1193
- function Transition2(props, context) {
1194
- var _this;
1195
- _this = _React$Component.call(this, props, context) || this;
1196
- var parentGroup = context;
1197
- var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
1198
- var initialStatus;
1199
- _this.appearStatus = null;
1200
- if (props.in) {
1201
- if (appear) {
1202
- initialStatus = EXITED;
1203
- _this.appearStatus = ENTERING;
1204
- } else {
1205
- initialStatus = ENTERED;
1206
- }
1207
- } else {
1208
- if (props.unmountOnExit || props.mountOnEnter) {
1209
- initialStatus = UNMOUNTED;
1210
- } else {
1211
- initialStatus = EXITED;
1212
- }
1213
- }
1214
- _this.state = {
1215
- status: initialStatus
1216
- };
1217
- _this.nextCallback = null;
1218
- return _this;
1219
- }
1220
- Transition2.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
1221
- var nextIn = _ref.in;
1222
- if (nextIn && prevState.status === UNMOUNTED) {
1223
- return {
1224
- status: EXITED
1225
- };
1226
- }
1227
- return null;
1228
- };
1229
- var _proto = Transition2.prototype;
1230
- _proto.componentDidMount = function componentDidMount() {
1231
- this.updateStatus(true, this.appearStatus);
1232
- };
1233
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
1234
- var nextStatus = null;
1235
- if (prevProps !== this.props) {
1236
- var status = this.state.status;
1237
- if (this.props.in) {
1238
- if (status !== ENTERING && status !== ENTERED) {
1239
- nextStatus = ENTERING;
1240
- }
1241
- } else {
1242
- if (status === ENTERING || status === ENTERED) {
1243
- nextStatus = EXITING;
1244
- }
1245
- }
1246
- }
1247
- this.updateStatus(false, nextStatus);
1248
- };
1249
- _proto.componentWillUnmount = function componentWillUnmount() {
1250
- this.cancelNextCallback();
1251
- };
1252
- _proto.getTimeouts = function getTimeouts() {
1253
- var timeout2 = this.props.timeout;
1254
- var exit, enter, appear;
1255
- exit = enter = appear = timeout2;
1256
- if (timeout2 != null && typeof timeout2 !== "number") {
1257
- exit = timeout2.exit;
1258
- enter = timeout2.enter;
1259
- appear = timeout2.appear !== void 0 ? timeout2.appear : enter;
1260
- }
1261
- return {
1262
- exit,
1263
- enter,
1264
- appear
1265
- };
1266
- };
1267
- _proto.updateStatus = function updateStatus(mounting, nextStatus) {
1268
- if (mounting === void 0) {
1269
- mounting = false;
1270
- }
1271
- if (nextStatus !== null) {
1272
- this.cancelNextCallback();
1273
- if (nextStatus === ENTERING) {
1274
- if (this.props.unmountOnExit || this.props.mountOnEnter) {
1275
- var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
1276
- if (node) forceReflow(node);
1277
- }
1278
- this.performEnter(mounting);
1279
- } else {
1280
- this.performExit();
1281
- }
1282
- } else if (this.props.unmountOnExit && this.state.status === EXITED) {
1283
- this.setState({
1284
- status: UNMOUNTED
1285
- });
1286
- }
1287
- };
1288
- _proto.performEnter = function performEnter(mounting) {
1289
- var _this2 = this;
1290
- var enter = this.props.enter;
1291
- var appearing = this.context ? this.context.isMounting : mounting;
1292
- var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing], maybeNode = _ref2[0], maybeAppearing = _ref2[1];
1293
- var timeouts = this.getTimeouts();
1294
- var enterTimeout = appearing ? timeouts.appear : timeouts.enter;
1295
- if (!mounting && !enter || config.disabled) {
1296
- this.safeSetState({
1297
- status: ENTERED
1298
- }, function() {
1299
- _this2.props.onEntered(maybeNode);
1300
- });
1301
- return;
1302
- }
1303
- this.props.onEnter(maybeNode, maybeAppearing);
1304
- this.safeSetState({
1305
- status: ENTERING
1306
- }, function() {
1307
- _this2.props.onEntering(maybeNode, maybeAppearing);
1308
- _this2.onTransitionEnd(enterTimeout, function() {
1309
- _this2.safeSetState({
1310
- status: ENTERED
1311
- }, function() {
1312
- _this2.props.onEntered(maybeNode, maybeAppearing);
1313
- });
1314
- });
1315
- });
1316
- };
1317
- _proto.performExit = function performExit() {
1318
- var _this3 = this;
1319
- var exit = this.props.exit;
1320
- var timeouts = this.getTimeouts();
1321
- var maybeNode = this.props.nodeRef ? void 0 : ReactDOM.findDOMNode(this);
1322
- if (!exit || config.disabled) {
1323
- this.safeSetState({
1324
- status: EXITED
1325
- }, function() {
1326
- _this3.props.onExited(maybeNode);
1327
- });
1328
- return;
1329
- }
1330
- this.props.onExit(maybeNode);
1331
- this.safeSetState({
1332
- status: EXITING
1333
- }, function() {
1334
- _this3.props.onExiting(maybeNode);
1335
- _this3.onTransitionEnd(timeouts.exit, function() {
1336
- _this3.safeSetState({
1337
- status: EXITED
1338
- }, function() {
1339
- _this3.props.onExited(maybeNode);
1340
- });
1341
- });
1342
- });
1343
- };
1344
- _proto.cancelNextCallback = function cancelNextCallback() {
1345
- if (this.nextCallback !== null) {
1346
- this.nextCallback.cancel();
1347
- this.nextCallback = null;
1348
- }
1349
- };
1350
- _proto.safeSetState = function safeSetState(nextState, callback) {
1351
- callback = this.setNextCallback(callback);
1352
- this.setState(nextState, callback);
1353
- };
1354
- _proto.setNextCallback = function setNextCallback(callback) {
1355
- var _this4 = this;
1356
- var active = true;
1357
- this.nextCallback = function(event) {
1358
- if (active) {
1359
- active = false;
1360
- _this4.nextCallback = null;
1361
- callback(event);
1362
- }
1363
- };
1364
- this.nextCallback.cancel = function() {
1365
- active = false;
1366
- };
1367
- return this.nextCallback;
1368
- };
1369
- _proto.onTransitionEnd = function onTransitionEnd(timeout2, handler) {
1370
- this.setNextCallback(handler);
1371
- var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
1372
- var doesNotHaveTimeoutOrListener = timeout2 == null && !this.props.addEndListener;
1373
- if (!node || doesNotHaveTimeoutOrListener) {
1374
- setTimeout(this.nextCallback, 0);
1375
- return;
1376
- }
1377
- if (this.props.addEndListener) {
1378
- var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback], maybeNode = _ref3[0], maybeNextCallback = _ref3[1];
1379
- this.props.addEndListener(maybeNode, maybeNextCallback);
1380
- }
1381
- if (timeout2 != null) {
1382
- setTimeout(this.nextCallback, timeout2);
1383
- }
1384
- };
1385
- _proto.render = function render() {
1386
- var status = this.state.status;
1387
- if (status === UNMOUNTED) {
1388
- return null;
1389
- }
1390
- var _this$props = this.props, children = _this$props.children;
1391
- _this$props.in;
1392
- _this$props.mountOnEnter;
1393
- _this$props.unmountOnExit;
1394
- _this$props.appear;
1395
- _this$props.enter;
1396
- _this$props.exit;
1397
- _this$props.timeout;
1398
- _this$props.addEndListener;
1399
- _this$props.onEnter;
1400
- _this$props.onEntering;
1401
- _this$props.onEntered;
1402
- _this$props.onExit;
1403
- _this$props.onExiting;
1404
- _this$props.onExited;
1405
- _this$props.nodeRef;
1406
- var childProps = objectWithoutPropertiesLoose._objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
1407
- return (
1408
- // allows for nested Transitions
1409
- /* @__PURE__ */ React.createElement(TransitionGroupContext.Provider, {
1410
- value: null
1411
- }, typeof children === "function" ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
1412
- );
1413
- };
1414
- return Transition2;
1415
- }(React.Component);
1416
- Transition.contextType = TransitionGroupContext;
1417
- Transition.propTypes = process.env.NODE_ENV !== "production" ? {
1418
- /**
1419
- * A React reference to DOM element that need to transition:
1420
- * https://stackoverflow.com/a/51127130/4671932
1421
- *
1422
- * - When `nodeRef` prop is used, `node` is not passed to callback functions
1423
- * (e.g. `onEnter`) because user already has direct access to the node.
1424
- * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
1425
- * `nodeRef` need to be provided to `Transition` with changed `key` prop
1426
- * (see
1427
- * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
1428
- */
1429
- nodeRef: PropTypes.shape({
1430
- current: typeof Element === "undefined" ? PropTypes.any : function(propValue, key, componentName, location, propFullName, secret) {
1431
- var value = propValue[key];
1432
- return PropTypes.instanceOf(value && "ownerDocument" in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
1433
- }
1434
- }),
1435
- /**
1436
- * A `function` child can be used instead of a React element. This function is
1437
- * called with the current transition status (`'entering'`, `'entered'`,
1438
- * `'exiting'`, `'exited'`), which can be used to apply context
1439
- * specific props to a component.
1440
- *
1441
- * ```jsx
1442
- * <Transition in={this.state.in} timeout={150}>
1443
- * {state => (
1444
- * <MyComponent className={`fade fade-${state}`} />
1445
- * )}
1446
- * </Transition>
1447
- * ```
1448
- */
1449
- children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
1450
- /**
1451
- * Show the component; triggers the enter or exit states
1452
- */
1453
- in: PropTypes.bool,
1454
- /**
1455
- * By default the child component is mounted immediately along with
1456
- * the parent `Transition` component. If you want to "lazy mount" the component on the
1457
- * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
1458
- * mounted, even on "exited", unless you also specify `unmountOnExit`.
1459
- */
1460
- mountOnEnter: PropTypes.bool,
1461
- /**
1462
- * By default the child component stays mounted after it reaches the `'exited'` state.
1463
- * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
1464
- */
1465
- unmountOnExit: PropTypes.bool,
1466
- /**
1467
- * By default the child component does not perform the enter transition when
1468
- * it first mounts, regardless of the value of `in`. If you want this
1469
- * behavior, set both `appear` and `in` to `true`.
1470
- *
1471
- * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
1472
- * > only adds an additional enter transition. However, in the
1473
- * > `<CSSTransition>` component that first enter transition does result in
1474
- * > additional `.appear-*` classes, that way you can choose to style it
1475
- * > differently.
1476
- */
1477
- appear: PropTypes.bool,
1478
- /**
1479
- * Enable or disable enter transitions.
1480
- */
1481
- enter: PropTypes.bool,
1482
- /**
1483
- * Enable or disable exit transitions.
1484
- */
1485
- exit: PropTypes.bool,
1486
- /**
1487
- * The duration of the transition, in milliseconds.
1488
- * Required unless `addEndListener` is provided.
1489
- *
1490
- * You may specify a single timeout for all transitions:
1491
- *
1492
- * ```jsx
1493
- * timeout={500}
1494
- * ```
1495
- *
1496
- * or individually:
1497
- *
1498
- * ```jsx
1499
- * timeout={{
1500
- * appear: 500,
1501
- * enter: 300,
1502
- * exit: 500,
1503
- * }}
1504
- * ```
1505
- *
1506
- * - `appear` defaults to the value of `enter`
1507
- * - `enter` defaults to `0`
1508
- * - `exit` defaults to `0`
1509
- *
1510
- * @type {number | { enter?: number, exit?: number, appear?: number }}
1511
- */
1512
- timeout: function timeout(props) {
1513
- var pt = timeoutsShape;
1514
- if (!props.addEndListener) pt = pt.isRequired;
1515
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1516
- args[_key - 1] = arguments[_key];
1517
- }
1518
- return pt.apply(void 0, [props].concat(args));
1519
- },
1520
- /**
1521
- * Add a custom transition end trigger. Called with the transitioning
1522
- * DOM node and a `done` callback. Allows for more fine grained transition end
1523
- * logic. Timeouts are still used as a fallback if provided.
1524
- *
1525
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1526
- *
1527
- * ```jsx
1528
- * addEndListener={(node, done) => {
1529
- * // use the css transitionend event to mark the finish of a transition
1530
- * node.addEventListener('transitionend', done, false);
1531
- * }}
1532
- * ```
1533
- */
1534
- addEndListener: PropTypes.func,
1535
- /**
1536
- * Callback fired before the "entering" status is applied. An extra parameter
1537
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
1538
- *
1539
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1540
- *
1541
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
1542
- */
1543
- onEnter: PropTypes.func,
1544
- /**
1545
- * Callback fired after the "entering" status is applied. An extra parameter
1546
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
1547
- *
1548
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1549
- *
1550
- * @type Function(node: HtmlElement, isAppearing: bool)
1551
- */
1552
- onEntering: PropTypes.func,
1553
- /**
1554
- * Callback fired after the "entered" status is applied. An extra parameter
1555
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
1556
- *
1557
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1558
- *
1559
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
1560
- */
1561
- onEntered: PropTypes.func,
1562
- /**
1563
- * Callback fired before the "exiting" status is applied.
1564
- *
1565
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1566
- *
1567
- * @type Function(node: HtmlElement) -> void
1568
- */
1569
- onExit: PropTypes.func,
1570
- /**
1571
- * Callback fired after the "exiting" status is applied.
1572
- *
1573
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1574
- *
1575
- * @type Function(node: HtmlElement) -> void
1576
- */
1577
- onExiting: PropTypes.func,
1578
- /**
1579
- * Callback fired after the "exited" status is applied.
1580
- *
1581
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
1582
- *
1583
- * @type Function(node: HtmlElement) -> void
1584
- */
1585
- onExited: PropTypes.func
1586
- } : {};
1587
- function noop() {
1588
- }
1589
- Transition.defaultProps = {
1590
- in: false,
1591
- mountOnEnter: false,
1592
- unmountOnExit: false,
1593
- appear: false,
1594
- enter: true,
1595
- exit: true,
1596
- onEnter: noop,
1597
- onEntering: noop,
1598
- onEntered: noop,
1599
- onExit: noop,
1600
- onExiting: noop,
1601
- onExited: noop
1602
- };
1603
- Transition.UNMOUNTED = UNMOUNTED;
1604
- Transition.EXITED = EXITED;
1605
- Transition.ENTERING = ENTERING;
1606
- Transition.ENTERED = ENTERED;
1607
- Transition.EXITING = EXITING;
1608
- var _addClass = function addClass$1(node, classes) {
1609
- return node && classes && classes.split(" ").forEach(function(c) {
1610
- return addClass(node, c);
1611
- });
1612
- };
1613
- var removeClass = function removeClass2(node, classes) {
1614
- return node && classes && classes.split(" ").forEach(function(c) {
1615
- return removeClass$1(node, c);
1616
- });
1617
- };
1618
- var CSSTransition = /* @__PURE__ */ function(_React$Component) {
1619
- _inheritsLoose(CSSTransition2, _React$Component);
1620
- function CSSTransition2() {
1621
- var _this;
1622
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1623
- args[_key] = arguments[_key];
1624
- }
1625
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
1626
- _this.appliedClasses = {
1627
- appear: {},
1628
- enter: {},
1629
- exit: {}
1630
- };
1631
- _this.onEnter = function(maybeNode, maybeAppearing) {
1632
- var _this$resolveArgument = _this.resolveArguments(maybeNode, maybeAppearing), node = _this$resolveArgument[0], appearing = _this$resolveArgument[1];
1633
- _this.removeClasses(node, "exit");
1634
- _this.addClass(node, appearing ? "appear" : "enter", "base");
1635
- if (_this.props.onEnter) {
1636
- _this.props.onEnter(maybeNode, maybeAppearing);
1637
- }
1638
- };
1639
- _this.onEntering = function(maybeNode, maybeAppearing) {
1640
- var _this$resolveArgument2 = _this.resolveArguments(maybeNode, maybeAppearing), node = _this$resolveArgument2[0], appearing = _this$resolveArgument2[1];
1641
- var type = appearing ? "appear" : "enter";
1642
- _this.addClass(node, type, "active");
1643
- if (_this.props.onEntering) {
1644
- _this.props.onEntering(maybeNode, maybeAppearing);
1645
- }
1646
- };
1647
- _this.onEntered = function(maybeNode, maybeAppearing) {
1648
- var _this$resolveArgument3 = _this.resolveArguments(maybeNode, maybeAppearing), node = _this$resolveArgument3[0], appearing = _this$resolveArgument3[1];
1649
- var type = appearing ? "appear" : "enter";
1650
- _this.removeClasses(node, type);
1651
- _this.addClass(node, type, "done");
1652
- if (_this.props.onEntered) {
1653
- _this.props.onEntered(maybeNode, maybeAppearing);
1654
- }
1655
- };
1656
- _this.onExit = function(maybeNode) {
1657
- var _this$resolveArgument4 = _this.resolveArguments(maybeNode), node = _this$resolveArgument4[0];
1658
- _this.removeClasses(node, "appear");
1659
- _this.removeClasses(node, "enter");
1660
- _this.addClass(node, "exit", "base");
1661
- if (_this.props.onExit) {
1662
- _this.props.onExit(maybeNode);
1663
- }
1664
- };
1665
- _this.onExiting = function(maybeNode) {
1666
- var _this$resolveArgument5 = _this.resolveArguments(maybeNode), node = _this$resolveArgument5[0];
1667
- _this.addClass(node, "exit", "active");
1668
- if (_this.props.onExiting) {
1669
- _this.props.onExiting(maybeNode);
1670
- }
1671
- };
1672
- _this.onExited = function(maybeNode) {
1673
- var _this$resolveArgument6 = _this.resolveArguments(maybeNode), node = _this$resolveArgument6[0];
1674
- _this.removeClasses(node, "exit");
1675
- _this.addClass(node, "exit", "done");
1676
- if (_this.props.onExited) {
1677
- _this.props.onExited(maybeNode);
1678
- }
1679
- };
1680
- _this.resolveArguments = function(maybeNode, maybeAppearing) {
1681
- return _this.props.nodeRef ? [_this.props.nodeRef.current, maybeNode] : [maybeNode, maybeAppearing];
1682
- };
1683
- _this.getClassNames = function(type) {
1684
- var classNames = _this.props.classNames;
1685
- var isStringClassNames = typeof classNames === "string";
1686
- var prefix = isStringClassNames && classNames ? classNames + "-" : "";
1687
- var baseClassName = isStringClassNames ? "" + prefix + type : classNames[type];
1688
- var activeClassName = isStringClassNames ? baseClassName + "-active" : classNames[type + "Active"];
1689
- var doneClassName = isStringClassNames ? baseClassName + "-done" : classNames[type + "Done"];
1690
- return {
1691
- baseClassName,
1692
- activeClassName,
1693
- doneClassName
1694
- };
1695
- };
1696
- return _this;
1697
- }
1698
- var _proto = CSSTransition2.prototype;
1699
- _proto.addClass = function addClass2(node, type, phase) {
1700
- var className = this.getClassNames(type)[phase + "ClassName"];
1701
- var _this$getClassNames = this.getClassNames("enter"), doneClassName = _this$getClassNames.doneClassName;
1702
- if (type === "appear" && phase === "done" && doneClassName) {
1703
- className += " " + doneClassName;
1704
- }
1705
- if (phase === "active") {
1706
- if (node) forceReflow(node);
1707
- }
1708
- if (className) {
1709
- this.appliedClasses[type][phase] = className;
1710
- _addClass(node, className);
1711
- }
1712
- };
1713
- _proto.removeClasses = function removeClasses(node, type) {
1714
- var _this$appliedClasses$ = this.appliedClasses[type], baseClassName = _this$appliedClasses$.base, activeClassName = _this$appliedClasses$.active, doneClassName = _this$appliedClasses$.done;
1715
- this.appliedClasses[type] = {};
1716
- if (baseClassName) {
1717
- removeClass(node, baseClassName);
1718
- }
1719
- if (activeClassName) {
1720
- removeClass(node, activeClassName);
1721
- }
1722
- if (doneClassName) {
1723
- removeClass(node, doneClassName);
1724
- }
1725
- };
1726
- _proto.render = function render() {
1727
- var _this$props = this.props;
1728
- _this$props.classNames;
1729
- var props = objectWithoutPropertiesLoose._objectWithoutPropertiesLoose(_this$props, ["classNames"]);
1730
- return /* @__PURE__ */ React.createElement(Transition, objectWithoutPropertiesLoose._extends({}, props, {
1731
- onEnter: this.onEnter,
1732
- onEntered: this.onEntered,
1733
- onEntering: this.onEntering,
1734
- onExit: this.onExit,
1735
- onExiting: this.onExiting,
1736
- onExited: this.onExited
1737
- }));
1738
- };
1739
- return CSSTransition2;
1740
- }(React.Component);
1741
- CSSTransition.defaultProps = {
1742
- classNames: ""
1743
- };
1744
- CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? objectWithoutPropertiesLoose._extends({}, Transition.propTypes, {
1745
- /**
1746
- * The animation classNames applied to the component as it appears, enters,
1747
- * exits or has finished the transition. A single name can be provided, which
1748
- * will be suffixed for each stage, e.g. `classNames="fade"` applies:
1749
- *
1750
- * - `fade-appear`, `fade-appear-active`, `fade-appear-done`
1751
- * - `fade-enter`, `fade-enter-active`, `fade-enter-done`
1752
- * - `fade-exit`, `fade-exit-active`, `fade-exit-done`
1753
- *
1754
- * A few details to note about how these classes are applied:
1755
- *
1756
- * 1. They are _joined_ with the ones that are already defined on the child
1757
- * component, so if you want to add some base styles, you can use
1758
- * `className` without worrying that it will be overridden.
1759
- *
1760
- * 2. If the transition component mounts with `in={false}`, no classes are
1761
- * applied yet. You might be expecting `*-exit-done`, but if you think
1762
- * about it, a component cannot finish exiting if it hasn't entered yet.
1763
- *
1764
- * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This
1765
- * allows you to define different behavior for when appearing is done and
1766
- * when regular entering is done, using selectors like
1767
- * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply
1768
- * an epic entrance animation when element first appears in the DOM using
1769
- * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can
1770
- * simply use `fade-enter-done` for defining both cases.
1771
- *
1772
- * Each individual classNames can also be specified independently like:
1773
- *
1774
- * ```js
1775
- * classNames={{
1776
- * appear: 'my-appear',
1777
- * appearActive: 'my-active-appear',
1778
- * appearDone: 'my-done-appear',
1779
- * enter: 'my-enter',
1780
- * enterActive: 'my-active-enter',
1781
- * enterDone: 'my-done-enter',
1782
- * exit: 'my-exit',
1783
- * exitActive: 'my-active-exit',
1784
- * exitDone: 'my-done-exit',
1785
- * }}
1786
- * ```
1787
- *
1788
- * If you want to set these classes using CSS Modules:
1789
- *
1790
- * ```js
1791
- * import styles from './styles.css';
1792
- * ```
1793
- *
1794
- * you might want to use camelCase in your CSS file, that way could simply
1795
- * spread them instead of listing them one by one:
1796
- *
1797
- * ```js
1798
- * classNames={{ ...styles }}
1799
- * ```
1800
- *
1801
- * @type {string | {
1802
- * appear?: string,
1803
- * appearActive?: string,
1804
- * appearDone?: string,
1805
- * enter?: string,
1806
- * enterActive?: string,
1807
- * enterDone?: string,
1808
- * exit?: string,
1809
- * exitActive?: string,
1810
- * exitDone?: string,
1811
- * }}
1812
- */
1813
- classNames: classNamesShape,
1814
- /**
1815
- * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
1816
- * applied.
1817
- *
1818
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1819
- *
1820
- * @type Function(node: HtmlElement, isAppearing: bool)
1821
- */
1822
- onEnter: PropTypes.func,
1823
- /**
1824
- * A `<Transition>` callback fired immediately after the 'enter-active' or
1825
- * 'appear-active' class is applied.
1826
- *
1827
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1828
- *
1829
- * @type Function(node: HtmlElement, isAppearing: bool)
1830
- */
1831
- onEntering: PropTypes.func,
1832
- /**
1833
- * A `<Transition>` callback fired immediately after the 'enter' or
1834
- * 'appear' classes are **removed** and the `done` class is added to the DOM node.
1835
- *
1836
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1837
- *
1838
- * @type Function(node: HtmlElement, isAppearing: bool)
1839
- */
1840
- onEntered: PropTypes.func,
1841
- /**
1842
- * A `<Transition>` callback fired immediately after the 'exit' class is
1843
- * applied.
1844
- *
1845
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
1846
- *
1847
- * @type Function(node: HtmlElement)
1848
- */
1849
- onExit: PropTypes.func,
1850
- /**
1851
- * A `<Transition>` callback fired immediately after the 'exit-active' is applied.
1852
- *
1853
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
1854
- *
1855
- * @type Function(node: HtmlElement)
1856
- */
1857
- onExiting: PropTypes.func,
1858
- /**
1859
- * A `<Transition>` callback fired immediately after the 'exit' classes
1860
- * are **removed** and the `exit-done` class is added to the DOM node.
1861
- *
1862
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
1863
- *
1864
- * @type Function(node: HtmlElement)
1865
- */
1866
- onExited: PropTypes.func
1867
- }) : {};
1868
186
  function DrawerUnderlay(props) {
1869
187
  const _a = props, { state, children, setAnimationExited } = _a, overlayProps = __objRest(_a, ["state", "children", "setAnimationExited"]);
1870
188
  const { isDismissable = true } = overlayProps;
@@ -1879,7 +197,7 @@ function DrawerUnderlay(props) {
1879
197
  ref2.current.addEventListener("transitionend", done, false);
1880
198
  }
1881
199
  };
1882
- return React.createElement(Overlay.$337b884510726a0d$export$c6fdb837b070b4ff, null, React.createElement(CSSTransition, {
200
+ return React.createElement(Overlay.$337b884510726a0d$export$c6fdb837b070b4ff, null, React.createElement(CSSTransition.CSSTransition, {
1883
201
  in: state.isOpen,
1884
202
  appear: true,
1885
203
  onEntered: () => setAnimationExited(false),
@@ -1894,7 +212,7 @@ function DrawerUnderlay(props) {
1894
212
  }, React.createElement("div", __spreadValues({
1895
213
  ref: underlayBgRef,
1896
214
  className: styles.underlayBg
1897
- }, underlayProps), React.createElement(CSSTransition, {
215
+ }, underlayProps), React.createElement(CSSTransition.CSSTransition, {
1898
216
  in: state.isOpen,
1899
217
  appear: true,
1900
218
  nodeRef: ref,