@nutui/nutui-react 1.5.4 → 1.5.5

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # v1.5.5
2
+ `2023-05-17`
3
+
4
+ * :bug: fix: image src 设置空串时候样式错误,以及修复图片缓存后不出发加载事件 (#994) @oasis-cloud
5
+ * :bug: fix: input 设置 clearable 点击清除按钮,并不能清除输入框中的内容 (#992) @oasis-cloud
6
+ * :bug: fix: input 组件 ref 类型修复 (#1013) @oasis-cloud
7
+
8
+
1
9
  # v1.5.4
2
10
  `2023-05-10`
3
11
 
@@ -5,7 +13,7 @@
5
13
 
6
14
 
7
15
  # v1.5.3
8
- `2023-05-10`
16
+ `2023-04-28`
9
17
 
10
18
  * :sparkles: feat: dialog 增加函数式调用的demo @hanyuxinting
11
19
  * :bug: fix: 移除代码中无用的 console.log (#960) @oasis-cloud
package/dist/esm/Form.js CHANGED
@@ -19,14 +19,16 @@ import './Cell.js';
19
19
  /**
20
20
  * 用于存储表单的数据
21
21
  */
22
- var FormStore = /*#__PURE__*/_createClass(function FormStore() {
22
+ var FormStore = /*#__PURE__*/_createClass(
23
+ // 存放表单中所有的数据 eg. {password: "ddd",username: "123"}
24
+ // 所有的组件实例
25
+ // 成功和失败的回调
26
+
27
+ function FormStore() {
23
28
  var _this = this;
24
29
  _classCallCheck(this, FormStore);
25
30
  _defineProperty(this, "store", {});
26
- // 存放表单中所有的数据 eg. {password: "ddd",username: "123"}
27
31
  _defineProperty(this, "fieldEntities", []);
28
- // 所有的组件实例
29
- // 成功和失败的回调
30
32
  _defineProperty(this, "callbacks", {});
31
33
  _defineProperty(this, "errList", []);
32
34
  /**
package/dist/esm/Image.js CHANGED
@@ -2,8 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
4
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
- import React__default, { useState, useEffect, useRef } from 'react';
6
- import { useConfig } from './ConfigProvider.js';
5
+ import React__default, { useState, useRef, useEffect } from 'react';
7
6
  import Icon from './Icon.js';
8
7
  var defaultProps = {
9
8
  fit: 'fill',
@@ -17,7 +16,6 @@ var defaultProps = {
17
16
  isLazy: false
18
17
  };
19
18
  var Image = function Image(props) {
20
- useConfig();
21
19
  var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
22
20
  children = _defaultProps$props.children,
23
21
  className = _defaultProps$props.className,
@@ -48,19 +46,17 @@ var Image = function Image(props) {
48
46
  _useState4 = _slicedToArray(_useState3, 2),
49
47
  isError = _useState4[0],
50
48
  setIsError = _useState4[1];
51
- var _useState5 = useState(''),
52
- _useState6 = _slicedToArray(_useState5, 2),
53
- _src = _useState6[0],
54
- setSrc = _useState6[1];
49
+ var imgRef = useRef(null);
55
50
  useEffect(function () {
56
- if (src) {
57
- setSrc(src);
58
- setIsError(false);
51
+ if (imgRef.current && imgRef.current.complete && imgRef.current.naturalHeight !== 0) {
52
+ setLoading(false);
53
+ } else if (src) {
59
54
  setLoading(true);
60
55
  }
61
56
  }, [src]);
62
57
  // 图片加载
63
58
  var load = function load() {
59
+ setIsError(false);
64
60
  setLoading(false);
65
61
  onLoad && onLoad();
66
62
  };
@@ -139,17 +135,19 @@ var Image = function Image(props) {
139
135
  imageClick(e);
140
136
  }
141
137
  }, isLazy ? React__default.createElement("img", {
138
+ ref: imgRef,
142
139
  className: "nut-img lazyload",
143
140
  style: styles,
144
- "data-src": _src,
141
+ "data-src": src,
145
142
  alt: alt,
146
143
  loading: "lazy",
147
144
  onLoad: load,
148
145
  onError: error
149
146
  }) : React__default.createElement("img", {
147
+ ref: imgRef,
150
148
  className: "nut-img",
151
149
  style: styles,
152
- src: _src,
150
+ src: src,
153
151
  alt: alt,
154
152
  onLoad: load,
155
153
  onError: error
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.4 Wed May 10 2023 17:39:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.5 Wed May 17 2023 16:14:52 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.4 Wed May 10 2023 17:39:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.5 Wed May 17 2023 16:14:52 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.4 Wed May 10 2023 17:39:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.5 Wed May 17 2023 16:14:52 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.4 Wed May 10 2023 17:39:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.5 Wed May 17 2023 16:14:52 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.4 Wed May 10 2023 17:39:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.5 Wed May 17 2023 16:14:52 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.4 Wed May 10 2023 17:39:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.5 Wed May 17 2023 16:14:52 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
6
6
  };
7
7
  var _a;
8
8
  /*!
9
- * @nutui/nutui-react v1.5.4 Wed May 10 2023 17:38:50 GMT+0800 (中国标准时间)
9
+ * @nutui/nutui-react v1.5.5 Wed May 17 2023 16:14:07 GMT+0800 (China Standard Time)
10
10
  * (c) 2023 @jdf2e.
11
11
  * Released under the MIT License.
12
12
  */
@@ -15,10 +15,15 @@ import React__default, { useCallback, useState, useEffect, createContext, useMem
15
15
  import * as ReactDOM from "react-dom";
16
16
  import ReactDOM__default, { createPortal, unstable_batchedUpdates } from "react-dom";
17
17
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
18
- function getDefaultExportFromCjs(x) {
19
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
20
- }
21
- var classname = { exports: {} };
18
+ var classnameExports = {};
19
+ var classname = {
20
+ get exports() {
21
+ return classnameExports;
22
+ },
23
+ set exports(v) {
24
+ classnameExports = v;
25
+ }
26
+ };
22
27
  var classname_production_min = {};
23
28
  var hasRequiredClassname_production_min;
24
29
  function requireClassname_production_min() {
@@ -26,37 +31,37 @@ function requireClassname_production_min() {
26
31
  return classname_production_min;
27
32
  hasRequiredClassname_production_min = 1;
28
33
  function r(r2) {
29
- function t2(t3, i, a, o) {
30
- var f = i ? e + t3 + r2.e + i : e + t3, v = f;
34
+ function e2(e3, i, a, o) {
35
+ var f = i ? t + e3 + r2.e + i : t + e3, v = f;
31
36
  if (a) {
32
- var s = " " + v + r2.m;
33
- for (var u in a)
34
- if (a.hasOwnProperty(u)) {
35
- var p = a[u];
36
- true === p ? v += s + u : p && (v += s + u + n + p);
37
+ var u = " " + v + r2.m;
38
+ for (var s in a)
39
+ if (a.hasOwnProperty(s)) {
40
+ var p = a[s];
41
+ true === p ? v += u + s : p && (v += u + s + n + p);
37
42
  }
38
43
  }
39
44
  if (void 0 !== o)
40
- for (var y = 0, c = (o = Array.isArray(o) ? o : [o]).length; y < c; y++) {
41
- var l = o[y];
42
- if (l && "string" == typeof l.valueOf())
43
- for (var g = l.valueOf().split(" "), d = 0; d < g.length; d++) {
45
+ for (var c = 0, l = o.length; c < l; c++) {
46
+ var y = o[c];
47
+ if (y && "string" == typeof y.valueOf())
48
+ for (var g = y.valueOf().split(" "), d = 0; d < g.length; d++) {
44
49
  var h = g[d];
45
50
  h !== f && (v += " " + h);
46
51
  }
47
52
  }
48
53
  return v;
49
54
  }
50
- var e = r2.n || "", n = r2.v || r2.m;
51
- return function(r3, e2) {
55
+ var t = r2.n || "", n = r2.v || r2.m;
56
+ return function(r3, t2) {
52
57
  return function(n2, i, a) {
53
- return "string" == typeof n2 ? "string" == typeof i || Array.isArray(i) ? t2(r3, n2, void 0, i) : t2(r3, n2, i, a) : t2(r3, e2, n2, i);
58
+ return "string" == typeof n2 ? Array.isArray(i) ? e2(r3, n2, void 0, i) : e2(r3, n2, i, a) : e2(r3, t2, n2, i);
54
59
  };
55
60
  };
56
61
  }
57
62
  Object.defineProperty(classname_production_min, "__esModule", { value: true });
58
- var t = r({ e: "-", m: "_" });
59
- classname_production_min.cn = t, classname_production_min.withNaming = r;
63
+ var e = r({ e: "-", m: "_" });
64
+ classname_production_min.cn = e, classname_production_min.withNaming = r;
60
65
  return classname_production_min;
61
66
  }
62
67
  var classname_development = {};
@@ -86,7 +91,6 @@ function requireClassname_development() {
86
91
  }
87
92
  }
88
93
  if (mix !== void 0) {
89
- mix = Array.isArray(mix) ? mix : [mix];
90
94
  for (var i = 0, len = mix.length; i < len; i++) {
91
95
  var value = mix[i];
92
96
  if (!value || typeof value.valueOf() !== "string")
@@ -105,7 +109,7 @@ function requireClassname_development() {
105
109
  return function cnGenerator(b2, e) {
106
110
  return function(elemOrMods, elemModsOrBlockMix, elemMix) {
107
111
  if (typeof elemOrMods === "string") {
108
- if (typeof elemModsOrBlockMix === "string" || Array.isArray(elemModsOrBlockMix)) {
112
+ if (Array.isArray(elemModsOrBlockMix)) {
109
113
  return stringify(b2, elemOrMods, void 0, elemModsOrBlockMix);
110
114
  }
111
115
  return stringify(b2, elemOrMods, elemModsOrBlockMix, elemMix);
@@ -122,12 +126,13 @@ function requireClassname_development() {
122
126
  classname_development.withNaming = withNaming;
123
127
  return classname_development;
124
128
  }
125
- if (process.env.NODE_ENV === "production") {
126
- classname.exports = requireClassname_production_min();
127
- } else {
128
- classname.exports = requireClassname_development();
129
- }
130
- var classnameExports = classname.exports;
129
+ (function(module) {
130
+ if (process.env.NODE_ENV === "production") {
131
+ module.exports = requireClassname_production_min();
132
+ } else {
133
+ module.exports = requireClassname_development();
134
+ }
135
+ })(classname);
131
136
  const cn = classnameExports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
132
137
  const defaultProps$1s = {
133
138
  name: "",
@@ -739,7 +744,6 @@ function words(string3, pattern4, guard) {
739
744
  return string3.match(pattern4) || [];
740
745
  }
741
746
  var lodash_kebabcase = kebabCase;
742
- const kebabCase$1 = /* @__PURE__ */ getDefaultExportFromCjs(lodash_kebabcase);
743
747
  const zhCN = {
744
748
  save: "保存",
745
749
  confirm: "确认",
@@ -887,7 +891,7 @@ const useConfig = () => {
887
891
  function convertThemeVarsToCSSVars(themeVars) {
888
892
  const cssVars = {};
889
893
  Object.keys(themeVars).forEach((key) => {
890
- cssVars[`--${kebabCase$1(key)}`] = themeVars[key];
894
+ cssVars[`--${lodash_kebabcase(key)}`] = themeVars[key];
891
895
  });
892
896
  return cssVars;
893
897
  }
@@ -924,7 +928,6 @@ const defaultProps$1n = {
924
928
  isLazy: false
925
929
  };
926
930
  const Image$1 = (props) => {
927
- useConfig();
928
931
  const {
929
932
  children,
930
933
  className,
@@ -950,15 +953,16 @@ const Image$1 = (props) => {
950
953
  } = { ...defaultProps$1n, ...props };
951
954
  const [loading, setLoading] = useState(true);
952
955
  const [isError, setIsError] = useState(false);
953
- const [_src, setSrc] = useState("");
956
+ const imgRef = useRef(null);
954
957
  useEffect(() => {
955
- if (src) {
956
- setSrc(src);
957
- setIsError(false);
958
+ if (imgRef.current && imgRef.current.complete && imgRef.current.naturalHeight !== 0) {
959
+ setLoading(false);
960
+ } else if (src) {
958
961
  setLoading(true);
959
962
  }
960
963
  }, [src]);
961
964
  const load = () => {
965
+ setIsError(false);
962
966
  setLoading(false);
963
967
  onLoad && onLoad();
964
968
  };
@@ -1038,9 +1042,10 @@ const Image$1 = (props) => {
1038
1042
  isLazy ? /* @__PURE__ */ React__default.createElement(
1039
1043
  "img",
1040
1044
  {
1045
+ ref: imgRef,
1041
1046
  className: "nut-img lazyload",
1042
1047
  style: styles,
1043
- "data-src": _src,
1048
+ "data-src": src,
1044
1049
  alt,
1045
1050
  loading: "lazy",
1046
1051
  onLoad: load,
@@ -1049,9 +1054,10 @@ const Image$1 = (props) => {
1049
1054
  ) : /* @__PURE__ */ React__default.createElement(
1050
1055
  "img",
1051
1056
  {
1057
+ ref: imgRef,
1052
1058
  className: "nut-img",
1053
1059
  style: styles,
1054
- src: _src,
1060
+ src,
1055
1061
  alt,
1056
1062
  onLoad: load,
1057
1063
  onError: error
@@ -1063,7 +1069,15 @@ const Image$1 = (props) => {
1063
1069
  };
1064
1070
  Image$1.defaultProps = defaultProps$1n;
1065
1071
  Image$1.displayName = "NutImage";
1066
- var classnames = { exports: {} };
1072
+ var classnamesExports = {};
1073
+ var classnames = {
1074
+ get exports() {
1075
+ return classnamesExports;
1076
+ },
1077
+ set exports(v) {
1078
+ classnamesExports = v;
1079
+ }
1080
+ };
1067
1081
  /*!
1068
1082
  Copyright (c) 2018 Jed Watson.
1069
1083
  Licensed under the MIT License (MIT), see
@@ -1110,8 +1124,7 @@ var classnames = { exports: {} };
1110
1124
  }
1111
1125
  })();
1112
1126
  })(classnames);
1113
- var classnamesExports = classnames.exports;
1114
- const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
1127
+ const classNames = classnamesExports;
1115
1128
  const defaultOverlayProps = {
1116
1129
  zIndex: 1e3,
1117
1130
  duration: 0.3,
@@ -1226,8 +1239,24 @@ function _inheritsLoose$1(subClass, superClass) {
1226
1239
  subClass.prototype.constructor = subClass;
1227
1240
  _setPrototypeOf$1(subClass, superClass);
1228
1241
  }
1229
- var propTypes = { exports: {} };
1230
- var reactIs = { exports: {} };
1242
+ var propTypesExports = {};
1243
+ var propTypes = {
1244
+ get exports() {
1245
+ return propTypesExports;
1246
+ },
1247
+ set exports(v) {
1248
+ propTypesExports = v;
1249
+ }
1250
+ };
1251
+ var reactIsExports = {};
1252
+ var reactIs = {
1253
+ get exports() {
1254
+ return reactIsExports;
1255
+ },
1256
+ set exports(v) {
1257
+ reactIsExports = v;
1258
+ }
1259
+ };
1231
1260
  var reactIs_production_min = {};
1232
1261
  /** @license React v16.13.1
1233
1262
  * react-is.production.min.js
@@ -1498,14 +1527,16 @@ function requireReactIs_development() {
1498
1527
  var hasRequiredReactIs;
1499
1528
  function requireReactIs() {
1500
1529
  if (hasRequiredReactIs)
1501
- return reactIs.exports;
1530
+ return reactIsExports;
1502
1531
  hasRequiredReactIs = 1;
1503
- if (process.env.NODE_ENV === "production") {
1504
- reactIs.exports = requireReactIs_production_min();
1505
- } else {
1506
- reactIs.exports = requireReactIs_development();
1507
- }
1508
- return reactIs.exports;
1532
+ (function(module) {
1533
+ if (process.env.NODE_ENV === "production") {
1534
+ module.exports = requireReactIs_production_min();
1535
+ } else {
1536
+ module.exports = requireReactIs_development();
1537
+ }
1538
+ })(reactIs);
1539
+ return reactIsExports;
1509
1540
  }
1510
1541
  /*
1511
1542
  object-assign
@@ -2172,8 +2203,6 @@ if (process.env.NODE_ENV !== "production") {
2172
2203
  } else {
2173
2204
  propTypes.exports = requireFactoryWithThrowingShims()();
2174
2205
  }
2175
- var propTypesExports = propTypes.exports;
2176
- const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
2177
2206
  function hasClass(element, className) {
2178
2207
  if (element.classList)
2179
2208
  return !!className && element.classList.contains(className);
@@ -2203,22 +2232,22 @@ function removeClass$1(element, className) {
2203
2232
  const config$1 = {
2204
2233
  disabled: false
2205
2234
  };
2206
- var timeoutsShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
2207
- enter: PropTypes.number,
2208
- exit: PropTypes.number,
2209
- appear: PropTypes.number
2235
+ var timeoutsShape = process.env.NODE_ENV !== "production" ? propTypesExports.oneOfType([propTypesExports.number, propTypesExports.shape({
2236
+ enter: propTypesExports.number,
2237
+ exit: propTypesExports.number,
2238
+ appear: propTypesExports.number
2210
2239
  }).isRequired]) : null;
2211
- var classNamesShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
2212
- enter: PropTypes.string,
2213
- exit: PropTypes.string,
2214
- active: PropTypes.string
2215
- }), PropTypes.shape({
2216
- enter: PropTypes.string,
2217
- enterDone: PropTypes.string,
2218
- enterActive: PropTypes.string,
2219
- exit: PropTypes.string,
2220
- exitDone: PropTypes.string,
2221
- exitActive: PropTypes.string
2240
+ var classNamesShape = process.env.NODE_ENV !== "production" ? propTypesExports.oneOfType([propTypesExports.string, propTypesExports.shape({
2241
+ enter: propTypesExports.string,
2242
+ exit: propTypesExports.string,
2243
+ active: propTypesExports.string
2244
+ }), propTypesExports.shape({
2245
+ enter: propTypesExports.string,
2246
+ enterDone: propTypesExports.string,
2247
+ enterActive: propTypesExports.string,
2248
+ exit: propTypesExports.string,
2249
+ exitDone: propTypesExports.string,
2250
+ exitActive: propTypesExports.string
2222
2251
  })]) : null;
2223
2252
  const TransitionGroupContext = React__default.createContext(null);
2224
2253
  var forceReflow = function forceReflow2(node) {
@@ -2468,10 +2497,10 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2468
2497
  * (see
2469
2498
  * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
2470
2499
  */
2471
- nodeRef: PropTypes.shape({
2472
- current: typeof Element === "undefined" ? PropTypes.any : function(propValue, key, componentName, location, propFullName, secret) {
2500
+ nodeRef: propTypesExports.shape({
2501
+ current: typeof Element === "undefined" ? propTypesExports.any : function(propValue, key, componentName, location, propFullName, secret) {
2473
2502
  var value = propValue[key];
2474
- return PropTypes.instanceOf(value && "ownerDocument" in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
2503
+ return propTypesExports.instanceOf(value && "ownerDocument" in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
2475
2504
  }
2476
2505
  }),
2477
2506
  /**
@@ -2488,23 +2517,23 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2488
2517
  * </Transition>
2489
2518
  * ```
2490
2519
  */
2491
- children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
2520
+ children: propTypesExports.oneOfType([propTypesExports.func.isRequired, propTypesExports.element.isRequired]).isRequired,
2492
2521
  /**
2493
2522
  * Show the component; triggers the enter or exit states
2494
2523
  */
2495
- in: PropTypes.bool,
2524
+ in: propTypesExports.bool,
2496
2525
  /**
2497
2526
  * By default the child component is mounted immediately along with
2498
2527
  * the parent `Transition` component. If you want to "lazy mount" the component on the
2499
2528
  * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
2500
2529
  * mounted, even on "exited", unless you also specify `unmountOnExit`.
2501
2530
  */
2502
- mountOnEnter: PropTypes.bool,
2531
+ mountOnEnter: propTypesExports.bool,
2503
2532
  /**
2504
2533
  * By default the child component stays mounted after it reaches the `'exited'` state.
2505
2534
  * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
2506
2535
  */
2507
- unmountOnExit: PropTypes.bool,
2536
+ unmountOnExit: propTypesExports.bool,
2508
2537
  /**
2509
2538
  * By default the child component does not perform the enter transition when
2510
2539
  * it first mounts, regardless of the value of `in`. If you want this
@@ -2516,15 +2545,15 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2516
2545
  * > additional `.appear-*` classes, that way you can choose to style it
2517
2546
  * > differently.
2518
2547
  */
2519
- appear: PropTypes.bool,
2548
+ appear: propTypesExports.bool,
2520
2549
  /**
2521
2550
  * Enable or disable enter transitions.
2522
2551
  */
2523
- enter: PropTypes.bool,
2552
+ enter: propTypesExports.bool,
2524
2553
  /**
2525
2554
  * Enable or disable exit transitions.
2526
2555
  */
2527
- exit: PropTypes.bool,
2556
+ exit: propTypesExports.bool,
2528
2557
  /**
2529
2558
  * The duration of the transition, in milliseconds.
2530
2559
  * Required unless `addEndListener` is provided.
@@ -2574,7 +2603,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2574
2603
  * }}
2575
2604
  * ```
2576
2605
  */
2577
- addEndListener: PropTypes.func,
2606
+ addEndListener: propTypesExports.func,
2578
2607
  /**
2579
2608
  * Callback fired before the "entering" status is applied. An extra parameter
2580
2609
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -2583,7 +2612,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2583
2612
  *
2584
2613
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
2585
2614
  */
2586
- onEnter: PropTypes.func,
2615
+ onEnter: propTypesExports.func,
2587
2616
  /**
2588
2617
  * Callback fired after the "entering" status is applied. An extra parameter
2589
2618
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -2592,7 +2621,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2592
2621
  *
2593
2622
  * @type Function(node: HtmlElement, isAppearing: bool)
2594
2623
  */
2595
- onEntering: PropTypes.func,
2624
+ onEntering: propTypesExports.func,
2596
2625
  /**
2597
2626
  * Callback fired after the "entered" status is applied. An extra parameter
2598
2627
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -2601,7 +2630,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2601
2630
  *
2602
2631
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
2603
2632
  */
2604
- onEntered: PropTypes.func,
2633
+ onEntered: propTypesExports.func,
2605
2634
  /**
2606
2635
  * Callback fired before the "exiting" status is applied.
2607
2636
  *
@@ -2609,7 +2638,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2609
2638
  *
2610
2639
  * @type Function(node: HtmlElement) -> void
2611
2640
  */
2612
- onExit: PropTypes.func,
2641
+ onExit: propTypesExports.func,
2613
2642
  /**
2614
2643
  * Callback fired after the "exiting" status is applied.
2615
2644
  *
@@ -2617,7 +2646,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2617
2646
  *
2618
2647
  * @type Function(node: HtmlElement) -> void
2619
2648
  */
2620
- onExiting: PropTypes.func,
2649
+ onExiting: propTypesExports.func,
2621
2650
  /**
2622
2651
  * Callback fired after the "exited" status is applied.
2623
2652
  *
@@ -2625,7 +2654,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2625
2654
  *
2626
2655
  * @type Function(node: HtmlElement) -> void
2627
2656
  */
2628
- onExited: PropTypes.func
2657
+ onExited: propTypesExports.func
2629
2658
  } : {};
2630
2659
  function noop$2() {
2631
2660
  }
@@ -2864,7 +2893,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$4({},
2864
2893
  *
2865
2894
  * @type Function(node: HtmlElement, isAppearing: bool)
2866
2895
  */
2867
- onEnter: PropTypes.func,
2896
+ onEnter: propTypesExports.func,
2868
2897
  /**
2869
2898
  * A `<Transition>` callback fired immediately after the 'enter-active' or
2870
2899
  * 'appear-active' class is applied.
@@ -2873,7 +2902,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$4({},
2873
2902
  *
2874
2903
  * @type Function(node: HtmlElement, isAppearing: bool)
2875
2904
  */
2876
- onEntering: PropTypes.func,
2905
+ onEntering: propTypesExports.func,
2877
2906
  /**
2878
2907
  * A `<Transition>` callback fired immediately after the 'enter' or
2879
2908
  * 'appear' classes are **removed** and the `done` class is added to the DOM node.
@@ -2882,7 +2911,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$4({},
2882
2911
  *
2883
2912
  * @type Function(node: HtmlElement, isAppearing: bool)
2884
2913
  */
2885
- onEntered: PropTypes.func,
2914
+ onEntered: propTypesExports.func,
2886
2915
  /**
2887
2916
  * A `<Transition>` callback fired immediately after the 'exit' class is
2888
2917
  * applied.
@@ -2891,7 +2920,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$4({},
2891
2920
  *
2892
2921
  * @type Function(node: HtmlElement)
2893
2922
  */
2894
- onExit: PropTypes.func,
2923
+ onExit: propTypesExports.func,
2895
2924
  /**
2896
2925
  * A `<Transition>` callback fired immediately after the 'exit-active' is applied.
2897
2926
  *
@@ -2899,7 +2928,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$4({},
2899
2928
  *
2900
2929
  * @type Function(node: HtmlElement)
2901
2930
  */
2902
- onExiting: PropTypes.func,
2931
+ onExiting: propTypesExports.func,
2903
2932
  /**
2904
2933
  * A `<Transition>` callback fired immediately after the 'exit' classes
2905
2934
  * are **removed** and the `exit-done` class is added to the DOM node.
@@ -2908,7 +2937,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$4({},
2908
2937
  *
2909
2938
  * @type Function(node: HtmlElement)
2910
2939
  */
2911
- onExited: PropTypes.func
2940
+ onExited: propTypesExports.func
2912
2941
  }) : {};
2913
2942
  const CSSTransition$1 = CSSTransition;
2914
2943
  const defaultProps$1m = {