@nutui/nutui-react-taro 1.5.6 → 1.5.7

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.
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
8
8
  return value;
9
9
  };
10
10
  /*!
11
- * @nutui/nutui-react-taro v1.5.6 Wed May 24 2023 17:32:37 GMT+0800 (China Standard Time)
11
+ * @nutui/nutui-react-taro v1.5.7 Wed May 31 2023 14:33:56 GMT+0800 (中国标准时间)
12
12
  * (c) 2023 @jdf2e.
13
13
  * Released under the MIT License.
14
14
  */
@@ -31,15 +31,10 @@ var __publicField = (obj, key, value) => {
31
31
  }
32
32
  const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
33
33
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
34
- var classnameExports = {};
35
- var classname = {
36
- get exports() {
37
- return classnameExports;
38
- },
39
- set exports(v) {
40
- classnameExports = v;
41
- }
42
- };
34
+ function getDefaultExportFromCjs(x) {
35
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
36
+ }
37
+ var classname = { exports: {} };
43
38
  var classname_production_min = {};
44
39
  var hasRequiredClassname_production_min;
45
40
  function requireClassname_production_min() {
@@ -47,37 +42,37 @@ var __publicField = (obj, key, value) => {
47
42
  return classname_production_min;
48
43
  hasRequiredClassname_production_min = 1;
49
44
  function r(r2) {
50
- function e2(e3, i, a, o) {
51
- var f = i ? t + e3 + r2.e + i : t + e3, v = f;
45
+ function t2(t3, i, a, o) {
46
+ var f = i ? e + t3 + r2.e + i : e + t3, v = f;
52
47
  if (a) {
53
- var u = " " + v + r2.m;
54
- for (var s in a)
55
- if (a.hasOwnProperty(s)) {
56
- var p = a[s];
57
- true === p ? v += u + s : p && (v += u + s + n + p);
48
+ var s = " " + v + r2.m;
49
+ for (var u in a)
50
+ if (a.hasOwnProperty(u)) {
51
+ var p = a[u];
52
+ true === p ? v += s + u : p && (v += s + u + n + p);
58
53
  }
59
54
  }
60
55
  if (void 0 !== o)
61
- for (var c = 0, l = o.length; c < l; c++) {
62
- var y = o[c];
63
- if (y && "string" == typeof y.valueOf())
64
- for (var g = y.valueOf().split(" "), d = 0; d < g.length; d++) {
56
+ for (var y = 0, c = (o = Array.isArray(o) ? o : [o]).length; y < c; y++) {
57
+ var l = o[y];
58
+ if (l && "string" == typeof l.valueOf())
59
+ for (var g = l.valueOf().split(" "), d = 0; d < g.length; d++) {
65
60
  var h = g[d];
66
61
  h !== f && (v += " " + h);
67
62
  }
68
63
  }
69
64
  return v;
70
65
  }
71
- var t = r2.n || "", n = r2.v || r2.m;
72
- return function(r3, t2) {
66
+ var e = r2.n || "", n = r2.v || r2.m;
67
+ return function(r3, e2) {
73
68
  return function(n2, i, a) {
74
- return "string" == typeof n2 ? Array.isArray(i) ? e2(r3, n2, void 0, i) : e2(r3, n2, i, a) : e2(r3, t2, n2, i);
69
+ 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);
75
70
  };
76
71
  };
77
72
  }
78
73
  Object.defineProperty(classname_production_min, "__esModule", { value: true });
79
- var e = r({ e: "-", m: "_" });
80
- classname_production_min.cn = e, classname_production_min.withNaming = r;
74
+ var t = r({ e: "-", m: "_" });
75
+ classname_production_min.cn = t, classname_production_min.withNaming = r;
81
76
  return classname_production_min;
82
77
  }
83
78
  var classname_development = {};
@@ -107,6 +102,7 @@ var __publicField = (obj, key, value) => {
107
102
  }
108
103
  }
109
104
  if (mix !== void 0) {
105
+ mix = Array.isArray(mix) ? mix : [mix];
110
106
  for (var i = 0, len = mix.length; i < len; i++) {
111
107
  var value = mix[i];
112
108
  if (!value || typeof value.valueOf() !== "string")
@@ -125,7 +121,7 @@ var __publicField = (obj, key, value) => {
125
121
  return function cnGenerator(b2, e) {
126
122
  return function(elemOrMods, elemModsOrBlockMix, elemMix) {
127
123
  if (typeof elemOrMods === "string") {
128
- if (Array.isArray(elemModsOrBlockMix)) {
124
+ if (typeof elemModsOrBlockMix === "string" || Array.isArray(elemModsOrBlockMix)) {
129
125
  return stringify(b2, elemOrMods, void 0, elemModsOrBlockMix);
130
126
  }
131
127
  return stringify(b2, elemOrMods, elemModsOrBlockMix, elemMix);
@@ -142,13 +138,12 @@ var __publicField = (obj, key, value) => {
142
138
  classname_development.withNaming = withNaming;
143
139
  return classname_development;
144
140
  }
145
- (function(module2) {
146
- if (process.env.NODE_ENV === "production") {
147
- module2.exports = requireClassname_production_min();
148
- } else {
149
- module2.exports = requireClassname_development();
150
- }
151
- })(classname);
141
+ if (process.env.NODE_ENV === "production") {
142
+ classname.exports = requireClassname_production_min();
143
+ } else {
144
+ classname.exports = requireClassname_development();
145
+ }
146
+ var classnameExports = classname.exports;
152
147
  const cn = classnameExports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
153
148
  const defaultProps$1v = {
154
149
  name: "",
@@ -764,6 +759,7 @@ var __publicField = (obj, key, value) => {
764
759
  return string.match(pattern) || [];
765
760
  }
766
761
  var lodash_kebabcase = kebabCase;
762
+ const kebabCase$1 = /* @__PURE__ */ getDefaultExportFromCjs(lodash_kebabcase);
767
763
  const zhCN = {
768
764
  save: "保存",
769
765
  confirm: "确认",
@@ -911,7 +907,7 @@ var __publicField = (obj, key, value) => {
911
907
  function convertThemeVarsToCSSVars(themeVars) {
912
908
  const cssVars = {};
913
909
  Object.keys(themeVars).forEach((key) => {
914
- cssVars[`--${lodash_kebabcase(key)}`] = themeVars[key];
910
+ cssVars[`--${kebabCase$1(key)}`] = themeVars[key];
915
911
  });
916
912
  return cssVars;
917
913
  }
@@ -1028,15 +1024,7 @@ var __publicField = (obj, key, value) => {
1028
1024
  };
1029
1025
  Image$1.defaultProps = defaultProps$1q;
1030
1026
  Image$1.displayName = "NutImage";
1031
- var classnamesExports = {};
1032
- var classnames = {
1033
- get exports() {
1034
- return classnamesExports;
1035
- },
1036
- set exports(v) {
1037
- classnamesExports = v;
1038
- }
1039
- };
1027
+ var classnames = { exports: {} };
1040
1028
  /*!
1041
1029
  Copyright (c) 2018 Jed Watson.
1042
1030
  Licensed under the MIT License (MIT), see
@@ -1083,7 +1071,8 @@ var __publicField = (obj, key, value) => {
1083
1071
  }
1084
1072
  })();
1085
1073
  })(classnames);
1086
- const classNames = classnamesExports;
1074
+ var classnamesExports = classnames.exports;
1075
+ const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
1087
1076
  const defaultOverlayProps = {
1088
1077
  zIndex: 2e3,
1089
1078
  duration: 0.3,
@@ -1209,24 +1198,8 @@ var __publicField = (obj, key, value) => {
1209
1198
  subClass.prototype.constructor = subClass;
1210
1199
  _setPrototypeOf(subClass, superClass);
1211
1200
  }
1212
- var propTypesExports = {};
1213
- var propTypes = {
1214
- get exports() {
1215
- return propTypesExports;
1216
- },
1217
- set exports(v) {
1218
- propTypesExports = v;
1219
- }
1220
- };
1221
- var reactIsExports = {};
1222
- var reactIs = {
1223
- get exports() {
1224
- return reactIsExports;
1225
- },
1226
- set exports(v) {
1227
- reactIsExports = v;
1228
- }
1229
- };
1201
+ var propTypes = { exports: {} };
1202
+ var reactIs = { exports: {} };
1230
1203
  var reactIs_production_min = {};
1231
1204
  /** @license React v16.13.1
1232
1205
  * react-is.production.min.js
@@ -1497,16 +1470,14 @@ var __publicField = (obj, key, value) => {
1497
1470
  var hasRequiredReactIs;
1498
1471
  function requireReactIs() {
1499
1472
  if (hasRequiredReactIs)
1500
- return reactIsExports;
1473
+ return reactIs.exports;
1501
1474
  hasRequiredReactIs = 1;
1502
- (function(module2) {
1503
- if (process.env.NODE_ENV === "production") {
1504
- module2.exports = requireReactIs_production_min();
1505
- } else {
1506
- module2.exports = requireReactIs_development();
1507
- }
1508
- })(reactIs);
1509
- return reactIsExports;
1475
+ if (process.env.NODE_ENV === "production") {
1476
+ reactIs.exports = requireReactIs_production_min();
1477
+ } else {
1478
+ reactIs.exports = requireReactIs_development();
1479
+ }
1480
+ return reactIs.exports;
1510
1481
  }
1511
1482
  /*
1512
1483
  object-assign
@@ -2173,6 +2144,8 @@ var __publicField = (obj, key, value) => {
2173
2144
  } else {
2174
2145
  propTypes.exports = requireFactoryWithThrowingShims()();
2175
2146
  }
2147
+ var propTypesExports = propTypes.exports;
2148
+ const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
2176
2149
  function hasClass(element, className) {
2177
2150
  if (element.classList)
2178
2151
  return !!className && element.classList.contains(className);
@@ -2202,22 +2175,22 @@ var __publicField = (obj, key, value) => {
2202
2175
  const config$1 = {
2203
2176
  disabled: false
2204
2177
  };
2205
- var timeoutsShape = process.env.NODE_ENV !== "production" ? propTypesExports.oneOfType([propTypesExports.number, propTypesExports.shape({
2206
- enter: propTypesExports.number,
2207
- exit: propTypesExports.number,
2208
- appear: propTypesExports.number
2178
+ var timeoutsShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
2179
+ enter: PropTypes.number,
2180
+ exit: PropTypes.number,
2181
+ appear: PropTypes.number
2209
2182
  }).isRequired]) : null;
2210
- var classNamesShape = process.env.NODE_ENV !== "production" ? propTypesExports.oneOfType([propTypesExports.string, propTypesExports.shape({
2211
- enter: propTypesExports.string,
2212
- exit: propTypesExports.string,
2213
- active: propTypesExports.string
2214
- }), propTypesExports.shape({
2215
- enter: propTypesExports.string,
2216
- enterDone: propTypesExports.string,
2217
- enterActive: propTypesExports.string,
2218
- exit: propTypesExports.string,
2219
- exitDone: propTypesExports.string,
2220
- exitActive: propTypesExports.string
2183
+ var classNamesShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
2184
+ enter: PropTypes.string,
2185
+ exit: PropTypes.string,
2186
+ active: PropTypes.string
2187
+ }), PropTypes.shape({
2188
+ enter: PropTypes.string,
2189
+ enterDone: PropTypes.string,
2190
+ enterActive: PropTypes.string,
2191
+ exit: PropTypes.string,
2192
+ exitDone: PropTypes.string,
2193
+ exitActive: PropTypes.string
2221
2194
  })]) : null;
2222
2195
  const TransitionGroupContext = React.createContext(null);
2223
2196
  var forceReflow = function forceReflow2(node) {
@@ -2467,10 +2440,10 @@ var __publicField = (obj, key, value) => {
2467
2440
  * (see
2468
2441
  * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
2469
2442
  */
2470
- nodeRef: propTypesExports.shape({
2471
- current: typeof Element === "undefined" ? propTypesExports.any : function(propValue, key, componentName, location, propFullName, secret) {
2443
+ nodeRef: PropTypes.shape({
2444
+ current: typeof Element === "undefined" ? PropTypes.any : function(propValue, key, componentName, location, propFullName, secret) {
2472
2445
  var value = propValue[key];
2473
- return propTypesExports.instanceOf(value && "ownerDocument" in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
2446
+ return PropTypes.instanceOf(value && "ownerDocument" in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
2474
2447
  }
2475
2448
  }),
2476
2449
  /**
@@ -2487,23 +2460,23 @@ var __publicField = (obj, key, value) => {
2487
2460
  * </Transition>
2488
2461
  * ```
2489
2462
  */
2490
- children: propTypesExports.oneOfType([propTypesExports.func.isRequired, propTypesExports.element.isRequired]).isRequired,
2463
+ children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
2491
2464
  /**
2492
2465
  * Show the component; triggers the enter or exit states
2493
2466
  */
2494
- in: propTypesExports.bool,
2467
+ in: PropTypes.bool,
2495
2468
  /**
2496
2469
  * By default the child component is mounted immediately along with
2497
2470
  * the parent `Transition` component. If you want to "lazy mount" the component on the
2498
2471
  * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
2499
2472
  * mounted, even on "exited", unless you also specify `unmountOnExit`.
2500
2473
  */
2501
- mountOnEnter: propTypesExports.bool,
2474
+ mountOnEnter: PropTypes.bool,
2502
2475
  /**
2503
2476
  * By default the child component stays mounted after it reaches the `'exited'` state.
2504
2477
  * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
2505
2478
  */
2506
- unmountOnExit: propTypesExports.bool,
2479
+ unmountOnExit: PropTypes.bool,
2507
2480
  /**
2508
2481
  * By default the child component does not perform the enter transition when
2509
2482
  * it first mounts, regardless of the value of `in`. If you want this
@@ -2515,15 +2488,15 @@ var __publicField = (obj, key, value) => {
2515
2488
  * > additional `.appear-*` classes, that way you can choose to style it
2516
2489
  * > differently.
2517
2490
  */
2518
- appear: propTypesExports.bool,
2491
+ appear: PropTypes.bool,
2519
2492
  /**
2520
2493
  * Enable or disable enter transitions.
2521
2494
  */
2522
- enter: propTypesExports.bool,
2495
+ enter: PropTypes.bool,
2523
2496
  /**
2524
2497
  * Enable or disable exit transitions.
2525
2498
  */
2526
- exit: propTypesExports.bool,
2499
+ exit: PropTypes.bool,
2527
2500
  /**
2528
2501
  * The duration of the transition, in milliseconds.
2529
2502
  * Required unless `addEndListener` is provided.
@@ -2573,7 +2546,7 @@ var __publicField = (obj, key, value) => {
2573
2546
  * }}
2574
2547
  * ```
2575
2548
  */
2576
- addEndListener: propTypesExports.func,
2549
+ addEndListener: PropTypes.func,
2577
2550
  /**
2578
2551
  * Callback fired before the "entering" status is applied. An extra parameter
2579
2552
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -2582,7 +2555,7 @@ var __publicField = (obj, key, value) => {
2582
2555
  *
2583
2556
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
2584
2557
  */
2585
- onEnter: propTypesExports.func,
2558
+ onEnter: PropTypes.func,
2586
2559
  /**
2587
2560
  * Callback fired after the "entering" status is applied. An extra parameter
2588
2561
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -2591,7 +2564,7 @@ var __publicField = (obj, key, value) => {
2591
2564
  *
2592
2565
  * @type Function(node: HtmlElement, isAppearing: bool)
2593
2566
  */
2594
- onEntering: propTypesExports.func,
2567
+ onEntering: PropTypes.func,
2595
2568
  /**
2596
2569
  * Callback fired after the "entered" status is applied. An extra parameter
2597
2570
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -2600,7 +2573,7 @@ var __publicField = (obj, key, value) => {
2600
2573
  *
2601
2574
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
2602
2575
  */
2603
- onEntered: propTypesExports.func,
2576
+ onEntered: PropTypes.func,
2604
2577
  /**
2605
2578
  * Callback fired before the "exiting" status is applied.
2606
2579
  *
@@ -2608,7 +2581,7 @@ var __publicField = (obj, key, value) => {
2608
2581
  *
2609
2582
  * @type Function(node: HtmlElement) -> void
2610
2583
  */
2611
- onExit: propTypesExports.func,
2584
+ onExit: PropTypes.func,
2612
2585
  /**
2613
2586
  * Callback fired after the "exiting" status is applied.
2614
2587
  *
@@ -2616,7 +2589,7 @@ var __publicField = (obj, key, value) => {
2616
2589
  *
2617
2590
  * @type Function(node: HtmlElement) -> void
2618
2591
  */
2619
- onExiting: propTypesExports.func,
2592
+ onExiting: PropTypes.func,
2620
2593
  /**
2621
2594
  * Callback fired after the "exited" status is applied.
2622
2595
  *
@@ -2624,7 +2597,7 @@ var __publicField = (obj, key, value) => {
2624
2597
  *
2625
2598
  * @type Function(node: HtmlElement) -> void
2626
2599
  */
2627
- onExited: propTypesExports.func
2600
+ onExited: PropTypes.func
2628
2601
  } : {};
2629
2602
  function noop$2() {
2630
2603
  }
@@ -2863,7 +2836,7 @@ var __publicField = (obj, key, value) => {
2863
2836
  *
2864
2837
  * @type Function(node: HtmlElement, isAppearing: bool)
2865
2838
  */
2866
- onEnter: propTypesExports.func,
2839
+ onEnter: PropTypes.func,
2867
2840
  /**
2868
2841
  * A `<Transition>` callback fired immediately after the 'enter-active' or
2869
2842
  * 'appear-active' class is applied.
@@ -2872,7 +2845,7 @@ var __publicField = (obj, key, value) => {
2872
2845
  *
2873
2846
  * @type Function(node: HtmlElement, isAppearing: bool)
2874
2847
  */
2875
- onEntering: propTypesExports.func,
2848
+ onEntering: PropTypes.func,
2876
2849
  /**
2877
2850
  * A `<Transition>` callback fired immediately after the 'enter' or
2878
2851
  * 'appear' classes are **removed** and the `done` class is added to the DOM node.
@@ -2881,7 +2854,7 @@ var __publicField = (obj, key, value) => {
2881
2854
  *
2882
2855
  * @type Function(node: HtmlElement, isAppearing: bool)
2883
2856
  */
2884
- onEntered: propTypesExports.func,
2857
+ onEntered: PropTypes.func,
2885
2858
  /**
2886
2859
  * A `<Transition>` callback fired immediately after the 'exit' class is
2887
2860
  * applied.
@@ -2890,7 +2863,7 @@ var __publicField = (obj, key, value) => {
2890
2863
  *
2891
2864
  * @type Function(node: HtmlElement)
2892
2865
  */
2893
- onExit: propTypesExports.func,
2866
+ onExit: PropTypes.func,
2894
2867
  /**
2895
2868
  * A `<Transition>` callback fired immediately after the 'exit-active' is applied.
2896
2869
  *
@@ -2898,7 +2871,7 @@ var __publicField = (obj, key, value) => {
2898
2871
  *
2899
2872
  * @type Function(node: HtmlElement)
2900
2873
  */
2901
- onExiting: propTypesExports.func,
2874
+ onExiting: PropTypes.func,
2902
2875
  /**
2903
2876
  * A `<Transition>` callback fired immediately after the 'exit' classes
2904
2877
  * are **removed** and the `exit-done` class is added to the DOM node.
@@ -2907,7 +2880,7 @@ var __publicField = (obj, key, value) => {
2907
2880
  *
2908
2881
  * @type Function(node: HtmlElement)
2909
2882
  */
2910
- onExited: propTypesExports.func
2883
+ onExited: PropTypes.func
2911
2884
  }) : {};
2912
2885
  const CSSTransition$1 = CSSTransition;
2913
2886
  const defaultProps$1p = {
@@ -7236,7 +7209,7 @@ var __publicField = (obj, key, value) => {
7236
7209
  onPickStart: pickerStart,
7237
7210
  onChange: pickerChange,
7238
7211
  onPickEnd: pickerEnd,
7239
- className: "picker-view-panel"
7212
+ className: "nut-picker-view-panel"
7240
7213
  },
7241
7214
  columnsList == null ? void 0 : columnsList.map((column, index) => {
7242
7215
  return /* @__PURE__ */ React.createElement(components.PickerViewColumn, { key: `col${index}` }, column.map((item, index2) => {
@@ -20165,7 +20138,6 @@ This message will only show in development mode. It won't appear in production.
20165
20138
  /* @__PURE__ */ React.createElement(
20166
20139
  components.ScrollView,
20167
20140
  {
20168
- scrollTop: 0,
20169
20141
  scrollY: true,
20170
20142
  ref: scrollRef,
20171
20143
  className: "nut-virtuallist",
@@ -154,7 +154,7 @@
154
154
  z-index: 3;
155
155
  }
156
156
 
157
- .picker-view-panel {
157
+ .nut-picker-view-panel {
158
158
  height: $picker-list-height;
159
159
  flex-grow: 1;
160
160
  }