@nutui/nutui-react-taro 1.5.10 → 1.5.11-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # v1.5.11
2
+ `2023-07-05`
3
+
4
+ * :bug: fix(searchbar): 修复 taro-h5 下 onSearch 不能触发的问题 (#1177) @Eiinu
5
+ * :bug: fix: 修复popover文字过长样式错乱的问题 (#1162) @junjun666
6
+
7
+
1
8
  # v1.5.10
2
9
  `2023-06-28`
3
10
 
@@ -1,4 +1,4 @@
1
- import { S as SearchBar } from './searchbar.taro-0c25927b.js';
1
+ import { S as SearchBar } from './searchbar.taro-4b892018.js';
2
2
  import 'react';
3
3
  import '@tarojs/taro';
4
4
  import './bem-350c1702.js';
@@ -41,7 +41,7 @@ export { P as Picker } from './picker.taro-6bb0a2a4.js';
41
41
  export { R as Radio, a as RadioGroup } from './radio.taro-a6eff96c.js';
42
42
  export { R as Range } from './range.taro-5ab0e79e.js';
43
43
  export { R as Rate } from './rate.taro-6cdf03bd.js';
44
- export { S as SearchBar } from './searchbar.taro-0c25927b.js';
44
+ export { S as SearchBar } from './searchbar.taro-4b892018.js';
45
45
  export { S as ShortPassword } from './shortpassword.taro-9ee034f7.js';
46
46
  export { T as TextArea } from './textarea.taro-442e7350.js';
47
47
  export { U as Uploader } from './uploader.taro-587e6bf3.js';
@@ -116,7 +116,7 @@ const SearchBar = (props) => {
116
116
  return null;
117
117
  };
118
118
  const onKeypress = (e) => {
119
- if (e.keyCode === 13) {
119
+ if (e.key === 'Enter' || e.keyCode === 13) {
120
120
  if (typeof e.cancelable !== 'boolean' || e.cancelable) {
121
121
  e.preventDefault();
122
122
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.5.10 Wed Jun 28 2023 17:33:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.5.11-beta.0 Wed Jul 05 2023 10:56:09 GMT+0800 (中国标准时间)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.5.10 Wed Jun 28 2023 17:33:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.5.11-beta.0 Wed Jul 05 2023 10:56:09 GMT+0800 (中国标准时间)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.5.10 Wed Jun 28 2023 17:33:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.5.11-beta.0 Wed Jul 05 2023 10:56:09 GMT+0800 (中国标准时间)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.5.10 Wed Jun 28 2023 17:33:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.5.11-beta.0 Wed Jul 05 2023 10:56:09 GMT+0800 (中国标准时间)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.5.10 Wed Jun 28 2023 17:33:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.5.11-beta.0 Wed Jul 05 2023 10:56:09 GMT+0800 (中国标准时间)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.5.10 Wed Jun 28 2023 17:33:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.5.11-beta.0 Wed Jul 05 2023 10:56:09 GMT+0800 (中国标准时间)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  /*!
8
- * @nutui/nutui-react-taro v1.5.10 Wed Jun 28 2023 17:32:25 GMT+0800 (China Standard Time)
8
+ * @nutui/nutui-react-taro v1.5.11-beta.0 Wed Jul 05 2023 10:55:52 GMT+0800 (中国标准时间)
9
9
  * (c) 2023 @jdf2e.
10
10
  * Released under the MIT License.
11
11
  */
@@ -15,15 +15,10 @@ import Taro, { redirectTo, navigateTo, getEnv, usePageScroll, getSystemInfoSync,
15
15
  import { View, ScrollView, PickerView, PickerViewColumn, Image as Image$2 } from "@tarojs/components";
16
16
  import ReactDOM, { 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
- var classnameExports = {};
19
- var classname = {
20
- get exports() {
21
- return classnameExports;
22
- },
23
- set exports(v) {
24
- classnameExports = v;
25
- }
26
- };
18
+ function getDefaultExportFromCjs(x) {
19
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
20
+ }
21
+ var classname = { exports: {} };
27
22
  var classname_production_min = {};
28
23
  var hasRequiredClassname_production_min;
29
24
  function requireClassname_production_min() {
@@ -31,37 +26,37 @@ function requireClassname_production_min() {
31
26
  return classname_production_min;
32
27
  hasRequiredClassname_production_min = 1;
33
28
  function r(r2) {
34
- function e2(e3, i, a, o) {
35
- var f = i ? t + e3 + r2.e + i : t + e3, v = f;
29
+ function t2(t3, i, a, o) {
30
+ var f = i ? e + t3 + r2.e + i : e + t3, v = f;
36
31
  if (a) {
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);
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);
42
37
  }
43
38
  }
44
39
  if (void 0 !== o)
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++) {
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++) {
49
44
  var h = g[d];
50
45
  h !== f && (v += " " + h);
51
46
  }
52
47
  }
53
48
  return v;
54
49
  }
55
- var t = r2.n || "", n = r2.v || r2.m;
56
- return function(r3, t2) {
50
+ var e = r2.n || "", n = r2.v || r2.m;
51
+ return function(r3, e2) {
57
52
  return function(n2, i, a) {
58
- return "string" == typeof n2 ? Array.isArray(i) ? e2(r3, n2, void 0, i) : e2(r3, n2, i, a) : e2(r3, t2, n2, i);
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);
59
54
  };
60
55
  };
61
56
  }
62
57
  Object.defineProperty(classname_production_min, "__esModule", { value: true });
63
- var e = r({ e: "-", m: "_" });
64
- classname_production_min.cn = e, classname_production_min.withNaming = r;
58
+ var t = r({ e: "-", m: "_" });
59
+ classname_production_min.cn = t, classname_production_min.withNaming = r;
65
60
  return classname_production_min;
66
61
  }
67
62
  var classname_development = {};
@@ -91,6 +86,7 @@ function requireClassname_development() {
91
86
  }
92
87
  }
93
88
  if (mix !== void 0) {
89
+ mix = Array.isArray(mix) ? mix : [mix];
94
90
  for (var i = 0, len = mix.length; i < len; i++) {
95
91
  var value = mix[i];
96
92
  if (!value || typeof value.valueOf() !== "string")
@@ -109,7 +105,7 @@ function requireClassname_development() {
109
105
  return function cnGenerator(b2, e) {
110
106
  return function(elemOrMods, elemModsOrBlockMix, elemMix) {
111
107
  if (typeof elemOrMods === "string") {
112
- if (Array.isArray(elemModsOrBlockMix)) {
108
+ if (typeof elemModsOrBlockMix === "string" || Array.isArray(elemModsOrBlockMix)) {
113
109
  return stringify(b2, elemOrMods, void 0, elemModsOrBlockMix);
114
110
  }
115
111
  return stringify(b2, elemOrMods, elemModsOrBlockMix, elemMix);
@@ -126,13 +122,12 @@ function requireClassname_development() {
126
122
  classname_development.withNaming = withNaming;
127
123
  return classname_development;
128
124
  }
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);
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;
136
131
  const cn = classnameExports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
137
132
  const defaultProps$1v = {
138
133
  name: "",
@@ -748,6 +743,7 @@ function words(string, pattern, guard) {
748
743
  return string.match(pattern) || [];
749
744
  }
750
745
  var lodash_kebabcase = kebabCase;
746
+ const kebabCase$1 = /* @__PURE__ */ getDefaultExportFromCjs(lodash_kebabcase);
751
747
  const zhCN = {
752
748
  save: "保存",
753
749
  confirm: "确认",
@@ -895,7 +891,7 @@ const useConfig$1 = () => {
895
891
  function convertThemeVarsToCSSVars(themeVars) {
896
892
  const cssVars = {};
897
893
  Object.keys(themeVars).forEach((key) => {
898
- cssVars[`--${lodash_kebabcase(key)}`] = themeVars[key];
894
+ cssVars[`--${kebabCase$1(key)}`] = themeVars[key];
899
895
  });
900
896
  return cssVars;
901
897
  }
@@ -1012,15 +1008,7 @@ const Image$1 = (props) => {
1012
1008
  };
1013
1009
  Image$1.defaultProps = defaultProps$1q;
1014
1010
  Image$1.displayName = "NutImage";
1015
- var classnamesExports = {};
1016
- var classnames = {
1017
- get exports() {
1018
- return classnamesExports;
1019
- },
1020
- set exports(v) {
1021
- classnamesExports = v;
1022
- }
1023
- };
1011
+ var classnames = { exports: {} };
1024
1012
  /*!
1025
1013
  Copyright (c) 2018 Jed Watson.
1026
1014
  Licensed under the MIT License (MIT), see
@@ -1067,7 +1055,8 @@ var classnames = {
1067
1055
  }
1068
1056
  })();
1069
1057
  })(classnames);
1070
- const classNames = classnamesExports;
1058
+ var classnamesExports = classnames.exports;
1059
+ const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
1071
1060
  const defaultOverlayProps = {
1072
1061
  zIndex: 2e3,
1073
1062
  duration: 0.3,
@@ -1193,24 +1182,8 @@ function _inheritsLoose(subClass, superClass) {
1193
1182
  subClass.prototype.constructor = subClass;
1194
1183
  _setPrototypeOf(subClass, superClass);
1195
1184
  }
1196
- var propTypesExports = {};
1197
- var propTypes = {
1198
- get exports() {
1199
- return propTypesExports;
1200
- },
1201
- set exports(v) {
1202
- propTypesExports = v;
1203
- }
1204
- };
1205
- var reactIsExports = {};
1206
- var reactIs = {
1207
- get exports() {
1208
- return reactIsExports;
1209
- },
1210
- set exports(v) {
1211
- reactIsExports = v;
1212
- }
1213
- };
1185
+ var propTypes = { exports: {} };
1186
+ var reactIs = { exports: {} };
1214
1187
  var reactIs_production_min = {};
1215
1188
  /** @license React v16.13.1
1216
1189
  * react-is.production.min.js
@@ -1481,16 +1454,14 @@ function requireReactIs_development() {
1481
1454
  var hasRequiredReactIs;
1482
1455
  function requireReactIs() {
1483
1456
  if (hasRequiredReactIs)
1484
- return reactIsExports;
1457
+ return reactIs.exports;
1485
1458
  hasRequiredReactIs = 1;
1486
- (function(module) {
1487
- if (process.env.NODE_ENV === "production") {
1488
- module.exports = requireReactIs_production_min();
1489
- } else {
1490
- module.exports = requireReactIs_development();
1491
- }
1492
- })(reactIs);
1493
- return reactIsExports;
1459
+ if (process.env.NODE_ENV === "production") {
1460
+ reactIs.exports = requireReactIs_production_min();
1461
+ } else {
1462
+ reactIs.exports = requireReactIs_development();
1463
+ }
1464
+ return reactIs.exports;
1494
1465
  }
1495
1466
  /*
1496
1467
  object-assign
@@ -2157,6 +2128,8 @@ if (process.env.NODE_ENV !== "production") {
2157
2128
  } else {
2158
2129
  propTypes.exports = requireFactoryWithThrowingShims()();
2159
2130
  }
2131
+ var propTypesExports = propTypes.exports;
2132
+ const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
2160
2133
  function hasClass(element, className) {
2161
2134
  if (element.classList)
2162
2135
  return !!className && element.classList.contains(className);
@@ -2186,22 +2159,22 @@ function removeClass$1(element, className) {
2186
2159
  const config$1 = {
2187
2160
  disabled: false
2188
2161
  };
2189
- var timeoutsShape = process.env.NODE_ENV !== "production" ? propTypesExports.oneOfType([propTypesExports.number, propTypesExports.shape({
2190
- enter: propTypesExports.number,
2191
- exit: propTypesExports.number,
2192
- appear: propTypesExports.number
2162
+ var timeoutsShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
2163
+ enter: PropTypes.number,
2164
+ exit: PropTypes.number,
2165
+ appear: PropTypes.number
2193
2166
  }).isRequired]) : null;
2194
- var classNamesShape = process.env.NODE_ENV !== "production" ? propTypesExports.oneOfType([propTypesExports.string, propTypesExports.shape({
2195
- enter: propTypesExports.string,
2196
- exit: propTypesExports.string,
2197
- active: propTypesExports.string
2198
- }), propTypesExports.shape({
2199
- enter: propTypesExports.string,
2200
- enterDone: propTypesExports.string,
2201
- enterActive: propTypesExports.string,
2202
- exit: propTypesExports.string,
2203
- exitDone: propTypesExports.string,
2204
- exitActive: propTypesExports.string
2167
+ var classNamesShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
2168
+ enter: PropTypes.string,
2169
+ exit: PropTypes.string,
2170
+ active: PropTypes.string
2171
+ }), PropTypes.shape({
2172
+ enter: PropTypes.string,
2173
+ enterDone: PropTypes.string,
2174
+ enterActive: PropTypes.string,
2175
+ exit: PropTypes.string,
2176
+ exitDone: PropTypes.string,
2177
+ exitActive: PropTypes.string
2205
2178
  })]) : null;
2206
2179
  const TransitionGroupContext = React__default.createContext(null);
2207
2180
  var forceReflow = function forceReflow2(node) {
@@ -2451,10 +2424,10 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2451
2424
  * (see
2452
2425
  * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
2453
2426
  */
2454
- nodeRef: propTypesExports.shape({
2455
- current: typeof Element === "undefined" ? propTypesExports.any : function(propValue, key, componentName, location, propFullName, secret) {
2427
+ nodeRef: PropTypes.shape({
2428
+ current: typeof Element === "undefined" ? PropTypes.any : function(propValue, key, componentName, location, propFullName, secret) {
2456
2429
  var value = propValue[key];
2457
- return propTypesExports.instanceOf(value && "ownerDocument" in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
2430
+ return PropTypes.instanceOf(value && "ownerDocument" in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
2458
2431
  }
2459
2432
  }),
2460
2433
  /**
@@ -2471,23 +2444,23 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2471
2444
  * </Transition>
2472
2445
  * ```
2473
2446
  */
2474
- children: propTypesExports.oneOfType([propTypesExports.func.isRequired, propTypesExports.element.isRequired]).isRequired,
2447
+ children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
2475
2448
  /**
2476
2449
  * Show the component; triggers the enter or exit states
2477
2450
  */
2478
- in: propTypesExports.bool,
2451
+ in: PropTypes.bool,
2479
2452
  /**
2480
2453
  * By default the child component is mounted immediately along with
2481
2454
  * the parent `Transition` component. If you want to "lazy mount" the component on the
2482
2455
  * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
2483
2456
  * mounted, even on "exited", unless you also specify `unmountOnExit`.
2484
2457
  */
2485
- mountOnEnter: propTypesExports.bool,
2458
+ mountOnEnter: PropTypes.bool,
2486
2459
  /**
2487
2460
  * By default the child component stays mounted after it reaches the `'exited'` state.
2488
2461
  * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
2489
2462
  */
2490
- unmountOnExit: propTypesExports.bool,
2463
+ unmountOnExit: PropTypes.bool,
2491
2464
  /**
2492
2465
  * By default the child component does not perform the enter transition when
2493
2466
  * it first mounts, regardless of the value of `in`. If you want this
@@ -2499,15 +2472,15 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2499
2472
  * > additional `.appear-*` classes, that way you can choose to style it
2500
2473
  * > differently.
2501
2474
  */
2502
- appear: propTypesExports.bool,
2475
+ appear: PropTypes.bool,
2503
2476
  /**
2504
2477
  * Enable or disable enter transitions.
2505
2478
  */
2506
- enter: propTypesExports.bool,
2479
+ enter: PropTypes.bool,
2507
2480
  /**
2508
2481
  * Enable or disable exit transitions.
2509
2482
  */
2510
- exit: propTypesExports.bool,
2483
+ exit: PropTypes.bool,
2511
2484
  /**
2512
2485
  * The duration of the transition, in milliseconds.
2513
2486
  * Required unless `addEndListener` is provided.
@@ -2557,7 +2530,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2557
2530
  * }}
2558
2531
  * ```
2559
2532
  */
2560
- addEndListener: propTypesExports.func,
2533
+ addEndListener: PropTypes.func,
2561
2534
  /**
2562
2535
  * Callback fired before the "entering" status is applied. An extra parameter
2563
2536
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -2566,7 +2539,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2566
2539
  *
2567
2540
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
2568
2541
  */
2569
- onEnter: propTypesExports.func,
2542
+ onEnter: PropTypes.func,
2570
2543
  /**
2571
2544
  * Callback fired after the "entering" status is applied. An extra parameter
2572
2545
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -2575,7 +2548,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2575
2548
  *
2576
2549
  * @type Function(node: HtmlElement, isAppearing: bool)
2577
2550
  */
2578
- onEntering: propTypesExports.func,
2551
+ onEntering: PropTypes.func,
2579
2552
  /**
2580
2553
  * Callback fired after the "entered" status is applied. An extra parameter
2581
2554
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -2584,7 +2557,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2584
2557
  *
2585
2558
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
2586
2559
  */
2587
- onEntered: propTypesExports.func,
2560
+ onEntered: PropTypes.func,
2588
2561
  /**
2589
2562
  * Callback fired before the "exiting" status is applied.
2590
2563
  *
@@ -2592,7 +2565,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2592
2565
  *
2593
2566
  * @type Function(node: HtmlElement) -> void
2594
2567
  */
2595
- onExit: propTypesExports.func,
2568
+ onExit: PropTypes.func,
2596
2569
  /**
2597
2570
  * Callback fired after the "exiting" status is applied.
2598
2571
  *
@@ -2600,7 +2573,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2600
2573
  *
2601
2574
  * @type Function(node: HtmlElement) -> void
2602
2575
  */
2603
- onExiting: propTypesExports.func,
2576
+ onExiting: PropTypes.func,
2604
2577
  /**
2605
2578
  * Callback fired after the "exited" status is applied.
2606
2579
  *
@@ -2608,7 +2581,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
2608
2581
  *
2609
2582
  * @type Function(node: HtmlElement) -> void
2610
2583
  */
2611
- onExited: propTypesExports.func
2584
+ onExited: PropTypes.func
2612
2585
  } : {};
2613
2586
  function noop$2() {
2614
2587
  }
@@ -2847,7 +2820,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
2847
2820
  *
2848
2821
  * @type Function(node: HtmlElement, isAppearing: bool)
2849
2822
  */
2850
- onEnter: propTypesExports.func,
2823
+ onEnter: PropTypes.func,
2851
2824
  /**
2852
2825
  * A `<Transition>` callback fired immediately after the 'enter-active' or
2853
2826
  * 'appear-active' class is applied.
@@ -2856,7 +2829,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
2856
2829
  *
2857
2830
  * @type Function(node: HtmlElement, isAppearing: bool)
2858
2831
  */
2859
- onEntering: propTypesExports.func,
2832
+ onEntering: PropTypes.func,
2860
2833
  /**
2861
2834
  * A `<Transition>` callback fired immediately after the 'enter' or
2862
2835
  * 'appear' classes are **removed** and the `done` class is added to the DOM node.
@@ -2865,7 +2838,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
2865
2838
  *
2866
2839
  * @type Function(node: HtmlElement, isAppearing: bool)
2867
2840
  */
2868
- onEntered: propTypesExports.func,
2841
+ onEntered: PropTypes.func,
2869
2842
  /**
2870
2843
  * A `<Transition>` callback fired immediately after the 'exit' class is
2871
2844
  * applied.
@@ -2874,7 +2847,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
2874
2847
  *
2875
2848
  * @type Function(node: HtmlElement)
2876
2849
  */
2877
- onExit: propTypesExports.func,
2850
+ onExit: PropTypes.func,
2878
2851
  /**
2879
2852
  * A `<Transition>` callback fired immediately after the 'exit-active' is applied.
2880
2853
  *
@@ -2882,7 +2855,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
2882
2855
  *
2883
2856
  * @type Function(node: HtmlElement)
2884
2857
  */
2885
- onExiting: propTypesExports.func,
2858
+ onExiting: PropTypes.func,
2886
2859
  /**
2887
2860
  * A `<Transition>` callback fired immediately after the 'exit' classes
2888
2861
  * are **removed** and the `exit-done` class is added to the DOM node.
@@ -2891,7 +2864,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
2891
2864
  *
2892
2865
  * @type Function(node: HtmlElement)
2893
2866
  */
2894
- onExited: propTypesExports.func
2867
+ onExited: PropTypes.func
2895
2868
  }) : {};
2896
2869
  const CSSTransition$1 = CSSTransition;
2897
2870
  const defaultProps$1p = {
@@ -9761,7 +9734,7 @@ const SearchBar = (props) => {
9761
9734
  return null;
9762
9735
  };
9763
9736
  const onKeypress = (e) => {
9764
- if (e.keyCode === 13) {
9737
+ if (e.key === "Enter" || e.keyCode === 13) {
9765
9738
  if (typeof e.cancelable !== "boolean" || e.cancelable) {
9766
9739
  e.preventDefault();
9767
9740
  }