@nutui/nutui-react 2.0.4-beta.0 → 2.0.5-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.
@@ -6,12 +6,12 @@ var __publicField = (obj, key, value) => {
6
6
  };
7
7
  var _a;
8
8
  /*!
9
- * @nutui/nutui-react v2.0.4-beta.0 Fri Jul 14 2023 14:09:31 GMT+0800 (China Standard Time)
9
+ * @nutui/nutui-react v2.0.5 Wed Jul 19 2023 14:14:53 GMT+0800 (China Standard Time)
10
10
  * (c) 2023 @jdf2e.
11
11
  * Released under the MIT License.
12
12
  */
13
13
  import * as React from "react";
14
- import React__default, { useCallback, createContext, useContext, useState, useRef, useEffect, useLayoutEffect, forwardRef, useMemo, isValidElement, useImperativeHandle, Component } from "react";
14
+ import React__default, { useCallback, createContext, useContext, useState, useRef, useEffect, useLayoutEffect, forwardRef, useMemo as useMemo$1, isValidElement, useImperativeHandle, Component } from "react";
15
15
  import * as ReactDOM from "react-dom";
16
16
  import ReactDOM__default, { unstable_batchedUpdates, createPortal } from "react-dom";
17
17
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
@@ -2391,7 +2391,7 @@ const ComponentDefaults = {
2391
2391
  style: {}
2392
2392
  };
2393
2393
  const prefixCls = "nut-button";
2394
- const defaultProps$1q = {
2394
+ const defaultProps$1p = {
2395
2395
  ...ComponentDefaults,
2396
2396
  color: "",
2397
2397
  type: "default",
@@ -2425,7 +2425,7 @@ const Button = React__default.forwardRef(
2425
2425
  nativeType,
2426
2426
  ...rest
2427
2427
  } = {
2428
- ...defaultProps$1q,
2428
+ ...defaultProps$1p,
2429
2429
  ...props
2430
2430
  };
2431
2431
  const getStyle = useCallback(() => {
@@ -2479,7 +2479,7 @@ const Button = React__default.forwardRef(
2479
2479
  }
2480
2480
  );
2481
2481
  Button.displayName = "NutButton";
2482
- const defaultProps$1p = {
2482
+ const defaultProps$1o = {
2483
2483
  ...ComponentDefaults,
2484
2484
  title: "",
2485
2485
  description: "",
@@ -2488,7 +2488,7 @@ const defaultProps$1p = {
2488
2488
  const classPrefix$o = "nut-cell-group";
2489
2489
  const CellGroup = (props) => {
2490
2490
  const { children, className, style, title, description, divider, ...rest } = {
2491
- ...defaultProps$1p,
2491
+ ...defaultProps$1o,
2492
2492
  ...props
2493
2493
  };
2494
2494
  return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$o, className), ...rest }, title ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$o}__title` }, title) : null, description ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$o}__description` }, description) : null, /* @__PURE__ */ React__default.createElement(
@@ -2499,9 +2499,9 @@ const CellGroup = (props) => {
2499
2499
  children
2500
2500
  ));
2501
2501
  };
2502
- CellGroup.defaultProps = defaultProps$1p;
2502
+ CellGroup.defaultProps = defaultProps$1o;
2503
2503
  CellGroup.displayName = "NutCellGroup";
2504
- const defaultProps$1o = {
2504
+ const defaultProps$1n = {
2505
2505
  ...ComponentDefaults,
2506
2506
  title: null,
2507
2507
  description: null,
@@ -2525,7 +2525,7 @@ const Cell = (props) => {
2525
2525
  style,
2526
2526
  ...rest
2527
2527
  } = {
2528
- ...defaultProps$1o,
2528
+ ...defaultProps$1n,
2529
2529
  ...props
2530
2530
  };
2531
2531
  const handleClick2 = (event) => {
@@ -2557,7 +2557,7 @@ const Cell = (props) => {
2557
2557
  ) : null, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$n}__divider` }))
2558
2558
  );
2559
2559
  };
2560
- Cell.defaultProps = defaultProps$1o;
2560
+ Cell.defaultProps = defaultProps$1n;
2561
2561
  Cell.displayName = "NutCell";
2562
2562
  Cell.Group = CellGroup;
2563
2563
  var INFINITY = 1 / 0;
@@ -2844,6 +2844,672 @@ function words(string3, pattern4, guard) {
2844
2844
  return string3.match(pattern4) || [];
2845
2845
  }
2846
2846
  var lodash_kebabcase = kebabCase;
2847
+ var lodash_isequalExports = {};
2848
+ var lodash_isequal = {
2849
+ get exports() {
2850
+ return lodash_isequalExports;
2851
+ },
2852
+ set exports(v) {
2853
+ lodash_isequalExports = v;
2854
+ }
2855
+ };
2856
+ (function(module, exports) {
2857
+ var LARGE_ARRAY_SIZE = 200;
2858
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
2859
+ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
2860
+ var MAX_SAFE_INTEGER = 9007199254740991;
2861
+ var argsTag = "[object Arguments]", arrayTag = "[object Array]", asyncTag = "[object AsyncFunction]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", nullTag = "[object Null]", objectTag = "[object Object]", promiseTag = "[object Promise]", proxyTag = "[object Proxy]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag2 = "[object Symbol]", undefinedTag = "[object Undefined]", weakMapTag = "[object WeakMap]";
2862
+ var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
2863
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
2864
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
2865
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
2866
+ var typedArrayTags = {};
2867
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
2868
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
2869
+ var freeGlobal2 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
2870
+ var freeSelf2 = typeof self == "object" && self && self.Object === Object && self;
2871
+ var root2 = freeGlobal2 || freeSelf2 || Function("return this")();
2872
+ var freeExports = exports && !exports.nodeType && exports;
2873
+ var freeModule = freeExports && true && module && !module.nodeType && module;
2874
+ var moduleExports = freeModule && freeModule.exports === freeExports;
2875
+ var freeProcess = moduleExports && freeGlobal2.process;
2876
+ var nodeUtil = function() {
2877
+ try {
2878
+ return freeProcess && freeProcess.binding && freeProcess.binding("util");
2879
+ } catch (e) {
2880
+ }
2881
+ }();
2882
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
2883
+ function arrayFilter(array4, predicate) {
2884
+ var index = -1, length = array4 == null ? 0 : array4.length, resIndex = 0, result = [];
2885
+ while (++index < length) {
2886
+ var value = array4[index];
2887
+ if (predicate(value, index, array4)) {
2888
+ result[resIndex++] = value;
2889
+ }
2890
+ }
2891
+ return result;
2892
+ }
2893
+ function arrayPush(array4, values) {
2894
+ var index = -1, length = values.length, offset = array4.length;
2895
+ while (++index < length) {
2896
+ array4[offset + index] = values[index];
2897
+ }
2898
+ return array4;
2899
+ }
2900
+ function arraySome(array4, predicate) {
2901
+ var index = -1, length = array4 == null ? 0 : array4.length;
2902
+ while (++index < length) {
2903
+ if (predicate(array4[index], index, array4)) {
2904
+ return true;
2905
+ }
2906
+ }
2907
+ return false;
2908
+ }
2909
+ function baseTimes(n, iteratee) {
2910
+ var index = -1, result = Array(n);
2911
+ while (++index < n) {
2912
+ result[index] = iteratee(index);
2913
+ }
2914
+ return result;
2915
+ }
2916
+ function baseUnary(func) {
2917
+ return function(value) {
2918
+ return func(value);
2919
+ };
2920
+ }
2921
+ function cacheHas(cache, key) {
2922
+ return cache.has(key);
2923
+ }
2924
+ function getValue2(object4, key) {
2925
+ return object4 == null ? void 0 : object4[key];
2926
+ }
2927
+ function mapToArray(map) {
2928
+ var index = -1, result = Array(map.size);
2929
+ map.forEach(function(value, key) {
2930
+ result[++index] = [key, value];
2931
+ });
2932
+ return result;
2933
+ }
2934
+ function overArg(func, transform) {
2935
+ return function(arg) {
2936
+ return func(transform(arg));
2937
+ };
2938
+ }
2939
+ function setToArray(set) {
2940
+ var index = -1, result = Array(set.size);
2941
+ set.forEach(function(value) {
2942
+ result[++index] = value;
2943
+ });
2944
+ return result;
2945
+ }
2946
+ var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto2 = Object.prototype;
2947
+ var coreJsData = root2["__core-js_shared__"];
2948
+ var funcToString = funcProto.toString;
2949
+ var hasOwnProperty = objectProto2.hasOwnProperty;
2950
+ var maskSrcKey = function() {
2951
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
2952
+ return uid ? "Symbol(src)_1." + uid : "";
2953
+ }();
2954
+ var nativeObjectToString = objectProto2.toString;
2955
+ var reIsNative = RegExp(
2956
+ "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2957
+ );
2958
+ var Buffer2 = moduleExports ? root2.Buffer : void 0, Symbol2 = root2.Symbol, Uint8Array2 = root2.Uint8Array, propertyIsEnumerable = objectProto2.propertyIsEnumerable, splice = arrayProto.splice, symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
2959
+ var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0, nativeKeys = overArg(Object.keys, Object);
2960
+ var DataView = getNative(root2, "DataView"), Map2 = getNative(root2, "Map"), Promise2 = getNative(root2, "Promise"), Set2 = getNative(root2, "Set"), WeakMap2 = getNative(root2, "WeakMap"), nativeCreate = getNative(Object, "create");
2961
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
2962
+ var symbolProto2 = Symbol2 ? Symbol2.prototype : void 0, symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0;
2963
+ function Hash(entries) {
2964
+ var index = -1, length = entries == null ? 0 : entries.length;
2965
+ this.clear();
2966
+ while (++index < length) {
2967
+ var entry = entries[index];
2968
+ this.set(entry[0], entry[1]);
2969
+ }
2970
+ }
2971
+ function hashClear() {
2972
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
2973
+ this.size = 0;
2974
+ }
2975
+ function hashDelete(key) {
2976
+ var result = this.has(key) && delete this.__data__[key];
2977
+ this.size -= result ? 1 : 0;
2978
+ return result;
2979
+ }
2980
+ function hashGet(key) {
2981
+ var data = this.__data__;
2982
+ if (nativeCreate) {
2983
+ var result = data[key];
2984
+ return result === HASH_UNDEFINED ? void 0 : result;
2985
+ }
2986
+ return hasOwnProperty.call(data, key) ? data[key] : void 0;
2987
+ }
2988
+ function hashHas(key) {
2989
+ var data = this.__data__;
2990
+ return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
2991
+ }
2992
+ function hashSet(key, value) {
2993
+ var data = this.__data__;
2994
+ this.size += this.has(key) ? 0 : 1;
2995
+ data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
2996
+ return this;
2997
+ }
2998
+ Hash.prototype.clear = hashClear;
2999
+ Hash.prototype["delete"] = hashDelete;
3000
+ Hash.prototype.get = hashGet;
3001
+ Hash.prototype.has = hashHas;
3002
+ Hash.prototype.set = hashSet;
3003
+ function ListCache(entries) {
3004
+ var index = -1, length = entries == null ? 0 : entries.length;
3005
+ this.clear();
3006
+ while (++index < length) {
3007
+ var entry = entries[index];
3008
+ this.set(entry[0], entry[1]);
3009
+ }
3010
+ }
3011
+ function listCacheClear() {
3012
+ this.__data__ = [];
3013
+ this.size = 0;
3014
+ }
3015
+ function listCacheDelete(key) {
3016
+ var data = this.__data__, index = assocIndexOf(data, key);
3017
+ if (index < 0) {
3018
+ return false;
3019
+ }
3020
+ var lastIndex = data.length - 1;
3021
+ if (index == lastIndex) {
3022
+ data.pop();
3023
+ } else {
3024
+ splice.call(data, index, 1);
3025
+ }
3026
+ --this.size;
3027
+ return true;
3028
+ }
3029
+ function listCacheGet(key) {
3030
+ var data = this.__data__, index = assocIndexOf(data, key);
3031
+ return index < 0 ? void 0 : data[index][1];
3032
+ }
3033
+ function listCacheHas(key) {
3034
+ return assocIndexOf(this.__data__, key) > -1;
3035
+ }
3036
+ function listCacheSet(key, value) {
3037
+ var data = this.__data__, index = assocIndexOf(data, key);
3038
+ if (index < 0) {
3039
+ ++this.size;
3040
+ data.push([key, value]);
3041
+ } else {
3042
+ data[index][1] = value;
3043
+ }
3044
+ return this;
3045
+ }
3046
+ ListCache.prototype.clear = listCacheClear;
3047
+ ListCache.prototype["delete"] = listCacheDelete;
3048
+ ListCache.prototype.get = listCacheGet;
3049
+ ListCache.prototype.has = listCacheHas;
3050
+ ListCache.prototype.set = listCacheSet;
3051
+ function MapCache(entries) {
3052
+ var index = -1, length = entries == null ? 0 : entries.length;
3053
+ this.clear();
3054
+ while (++index < length) {
3055
+ var entry = entries[index];
3056
+ this.set(entry[0], entry[1]);
3057
+ }
3058
+ }
3059
+ function mapCacheClear() {
3060
+ this.size = 0;
3061
+ this.__data__ = {
3062
+ "hash": new Hash(),
3063
+ "map": new (Map2 || ListCache)(),
3064
+ "string": new Hash()
3065
+ };
3066
+ }
3067
+ function mapCacheDelete(key) {
3068
+ var result = getMapData(this, key)["delete"](key);
3069
+ this.size -= result ? 1 : 0;
3070
+ return result;
3071
+ }
3072
+ function mapCacheGet(key) {
3073
+ return getMapData(this, key).get(key);
3074
+ }
3075
+ function mapCacheHas(key) {
3076
+ return getMapData(this, key).has(key);
3077
+ }
3078
+ function mapCacheSet(key, value) {
3079
+ var data = getMapData(this, key), size = data.size;
3080
+ data.set(key, value);
3081
+ this.size += data.size == size ? 0 : 1;
3082
+ return this;
3083
+ }
3084
+ MapCache.prototype.clear = mapCacheClear;
3085
+ MapCache.prototype["delete"] = mapCacheDelete;
3086
+ MapCache.prototype.get = mapCacheGet;
3087
+ MapCache.prototype.has = mapCacheHas;
3088
+ MapCache.prototype.set = mapCacheSet;
3089
+ function SetCache(values) {
3090
+ var index = -1, length = values == null ? 0 : values.length;
3091
+ this.__data__ = new MapCache();
3092
+ while (++index < length) {
3093
+ this.add(values[index]);
3094
+ }
3095
+ }
3096
+ function setCacheAdd(value) {
3097
+ this.__data__.set(value, HASH_UNDEFINED);
3098
+ return this;
3099
+ }
3100
+ function setCacheHas(value) {
3101
+ return this.__data__.has(value);
3102
+ }
3103
+ SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
3104
+ SetCache.prototype.has = setCacheHas;
3105
+ function Stack(entries) {
3106
+ var data = this.__data__ = new ListCache(entries);
3107
+ this.size = data.size;
3108
+ }
3109
+ function stackClear() {
3110
+ this.__data__ = new ListCache();
3111
+ this.size = 0;
3112
+ }
3113
+ function stackDelete(key) {
3114
+ var data = this.__data__, result = data["delete"](key);
3115
+ this.size = data.size;
3116
+ return result;
3117
+ }
3118
+ function stackGet(key) {
3119
+ return this.__data__.get(key);
3120
+ }
3121
+ function stackHas(key) {
3122
+ return this.__data__.has(key);
3123
+ }
3124
+ function stackSet(key, value) {
3125
+ var data = this.__data__;
3126
+ if (data instanceof ListCache) {
3127
+ var pairs = data.__data__;
3128
+ if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
3129
+ pairs.push([key, value]);
3130
+ this.size = ++data.size;
3131
+ return this;
3132
+ }
3133
+ data = this.__data__ = new MapCache(pairs);
3134
+ }
3135
+ data.set(key, value);
3136
+ this.size = data.size;
3137
+ return this;
3138
+ }
3139
+ Stack.prototype.clear = stackClear;
3140
+ Stack.prototype["delete"] = stackDelete;
3141
+ Stack.prototype.get = stackGet;
3142
+ Stack.prototype.has = stackHas;
3143
+ Stack.prototype.set = stackSet;
3144
+ function arrayLikeKeys(value, inherited) {
3145
+ var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
3146
+ for (var key in value) {
3147
+ if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
3148
+ (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
3149
+ isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
3150
+ isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
3151
+ isIndex(key, length)))) {
3152
+ result.push(key);
3153
+ }
3154
+ }
3155
+ return result;
3156
+ }
3157
+ function assocIndexOf(array4, key) {
3158
+ var length = array4.length;
3159
+ while (length--) {
3160
+ if (eq(array4[length][0], key)) {
3161
+ return length;
3162
+ }
3163
+ }
3164
+ return -1;
3165
+ }
3166
+ function baseGetAllKeys(object4, keysFunc, symbolsFunc) {
3167
+ var result = keysFunc(object4);
3168
+ return isArray(object4) ? result : arrayPush(result, symbolsFunc(object4));
3169
+ }
3170
+ function baseGetTag(value) {
3171
+ if (value == null) {
3172
+ return value === void 0 ? undefinedTag : nullTag;
3173
+ }
3174
+ return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString2(value);
3175
+ }
3176
+ function baseIsArguments(value) {
3177
+ return isObjectLike2(value) && baseGetTag(value) == argsTag;
3178
+ }
3179
+ function baseIsEqual(value, other, bitmask, customizer, stack) {
3180
+ if (value === other) {
3181
+ return true;
3182
+ }
3183
+ if (value == null || other == null || !isObjectLike2(value) && !isObjectLike2(other)) {
3184
+ return value !== value && other !== other;
3185
+ }
3186
+ return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
3187
+ }
3188
+ function baseIsEqualDeep(object4, other, bitmask, customizer, equalFunc, stack) {
3189
+ var objIsArr = isArray(object4), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object4), othTag = othIsArr ? arrayTag : getTag(other);
3190
+ objTag = objTag == argsTag ? objectTag : objTag;
3191
+ othTag = othTag == argsTag ? objectTag : othTag;
3192
+ var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
3193
+ if (isSameTag && isBuffer(object4)) {
3194
+ if (!isBuffer(other)) {
3195
+ return false;
3196
+ }
3197
+ objIsArr = true;
3198
+ objIsObj = false;
3199
+ }
3200
+ if (isSameTag && !objIsObj) {
3201
+ stack || (stack = new Stack());
3202
+ return objIsArr || isTypedArray(object4) ? equalArrays(object4, other, bitmask, customizer, equalFunc, stack) : equalByTag(object4, other, objTag, bitmask, customizer, equalFunc, stack);
3203
+ }
3204
+ if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
3205
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object4, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
3206
+ if (objIsWrapped || othIsWrapped) {
3207
+ var objUnwrapped = objIsWrapped ? object4.value() : object4, othUnwrapped = othIsWrapped ? other.value() : other;
3208
+ stack || (stack = new Stack());
3209
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
3210
+ }
3211
+ }
3212
+ if (!isSameTag) {
3213
+ return false;
3214
+ }
3215
+ stack || (stack = new Stack());
3216
+ return equalObjects(object4, other, bitmask, customizer, equalFunc, stack);
3217
+ }
3218
+ function baseIsNative(value) {
3219
+ if (!isObject2(value) || isMasked(value)) {
3220
+ return false;
3221
+ }
3222
+ var pattern4 = isFunction2(value) ? reIsNative : reIsHostCtor;
3223
+ return pattern4.test(toSource(value));
3224
+ }
3225
+ function baseIsTypedArray(value) {
3226
+ return isObjectLike2(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
3227
+ }
3228
+ function baseKeys(object4) {
3229
+ if (!isPrototype(object4)) {
3230
+ return nativeKeys(object4);
3231
+ }
3232
+ var result = [];
3233
+ for (var key in Object(object4)) {
3234
+ if (hasOwnProperty.call(object4, key) && key != "constructor") {
3235
+ result.push(key);
3236
+ }
3237
+ }
3238
+ return result;
3239
+ }
3240
+ function equalArrays(array4, other, bitmask, customizer, equalFunc, stack) {
3241
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array4.length, othLength = other.length;
3242
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
3243
+ return false;
3244
+ }
3245
+ var stacked = stack.get(array4);
3246
+ if (stacked && stack.get(other)) {
3247
+ return stacked == other;
3248
+ }
3249
+ var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0;
3250
+ stack.set(array4, other);
3251
+ stack.set(other, array4);
3252
+ while (++index < arrLength) {
3253
+ var arrValue = array4[index], othValue = other[index];
3254
+ if (customizer) {
3255
+ var compared = isPartial ? customizer(othValue, arrValue, index, other, array4, stack) : customizer(arrValue, othValue, index, array4, other, stack);
3256
+ }
3257
+ if (compared !== void 0) {
3258
+ if (compared) {
3259
+ continue;
3260
+ }
3261
+ result = false;
3262
+ break;
3263
+ }
3264
+ if (seen) {
3265
+ if (!arraySome(other, function(othValue2, othIndex) {
3266
+ if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
3267
+ return seen.push(othIndex);
3268
+ }
3269
+ })) {
3270
+ result = false;
3271
+ break;
3272
+ }
3273
+ } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
3274
+ result = false;
3275
+ break;
3276
+ }
3277
+ }
3278
+ stack["delete"](array4);
3279
+ stack["delete"](other);
3280
+ return result;
3281
+ }
3282
+ function equalByTag(object4, other, tag, bitmask, customizer, equalFunc, stack) {
3283
+ switch (tag) {
3284
+ case dataViewTag:
3285
+ if (object4.byteLength != other.byteLength || object4.byteOffset != other.byteOffset) {
3286
+ return false;
3287
+ }
3288
+ object4 = object4.buffer;
3289
+ other = other.buffer;
3290
+ case arrayBufferTag:
3291
+ if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object4), new Uint8Array2(other))) {
3292
+ return false;
3293
+ }
3294
+ return true;
3295
+ case boolTag:
3296
+ case dateTag:
3297
+ case numberTag:
3298
+ return eq(+object4, +other);
3299
+ case errorTag:
3300
+ return object4.name == other.name && object4.message == other.message;
3301
+ case regexpTag:
3302
+ case stringTag:
3303
+ return object4 == other + "";
3304
+ case mapTag:
3305
+ var convert = mapToArray;
3306
+ case setTag:
3307
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
3308
+ convert || (convert = setToArray);
3309
+ if (object4.size != other.size && !isPartial) {
3310
+ return false;
3311
+ }
3312
+ var stacked = stack.get(object4);
3313
+ if (stacked) {
3314
+ return stacked == other;
3315
+ }
3316
+ bitmask |= COMPARE_UNORDERED_FLAG;
3317
+ stack.set(object4, other);
3318
+ var result = equalArrays(convert(object4), convert(other), bitmask, customizer, equalFunc, stack);
3319
+ stack["delete"](object4);
3320
+ return result;
3321
+ case symbolTag2:
3322
+ if (symbolValueOf) {
3323
+ return symbolValueOf.call(object4) == symbolValueOf.call(other);
3324
+ }
3325
+ }
3326
+ return false;
3327
+ }
3328
+ function equalObjects(object4, other, bitmask, customizer, equalFunc, stack) {
3329
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object4), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
3330
+ if (objLength != othLength && !isPartial) {
3331
+ return false;
3332
+ }
3333
+ var index = objLength;
3334
+ while (index--) {
3335
+ var key = objProps[index];
3336
+ if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
3337
+ return false;
3338
+ }
3339
+ }
3340
+ var stacked = stack.get(object4);
3341
+ if (stacked && stack.get(other)) {
3342
+ return stacked == other;
3343
+ }
3344
+ var result = true;
3345
+ stack.set(object4, other);
3346
+ stack.set(other, object4);
3347
+ var skipCtor = isPartial;
3348
+ while (++index < objLength) {
3349
+ key = objProps[index];
3350
+ var objValue = object4[key], othValue = other[key];
3351
+ if (customizer) {
3352
+ var compared = isPartial ? customizer(othValue, objValue, key, other, object4, stack) : customizer(objValue, othValue, key, object4, other, stack);
3353
+ }
3354
+ if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
3355
+ result = false;
3356
+ break;
3357
+ }
3358
+ skipCtor || (skipCtor = key == "constructor");
3359
+ }
3360
+ if (result && !skipCtor) {
3361
+ var objCtor = object4.constructor, othCtor = other.constructor;
3362
+ if (objCtor != othCtor && ("constructor" in object4 && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
3363
+ result = false;
3364
+ }
3365
+ }
3366
+ stack["delete"](object4);
3367
+ stack["delete"](other);
3368
+ return result;
3369
+ }
3370
+ function getAllKeys(object4) {
3371
+ return baseGetAllKeys(object4, keys, getSymbols);
3372
+ }
3373
+ function getMapData(map, key) {
3374
+ var data = map.__data__;
3375
+ return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
3376
+ }
3377
+ function getNative(object4, key) {
3378
+ var value = getValue2(object4, key);
3379
+ return baseIsNative(value) ? value : void 0;
3380
+ }
3381
+ function getRawTag(value) {
3382
+ var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
3383
+ try {
3384
+ value[symToStringTag] = void 0;
3385
+ var unmasked = true;
3386
+ } catch (e) {
3387
+ }
3388
+ var result = nativeObjectToString.call(value);
3389
+ if (unmasked) {
3390
+ if (isOwn) {
3391
+ value[symToStringTag] = tag;
3392
+ } else {
3393
+ delete value[symToStringTag];
3394
+ }
3395
+ }
3396
+ return result;
3397
+ }
3398
+ var getSymbols = !nativeGetSymbols ? stubArray : function(object4) {
3399
+ if (object4 == null) {
3400
+ return [];
3401
+ }
3402
+ object4 = Object(object4);
3403
+ return arrayFilter(nativeGetSymbols(object4), function(symbol) {
3404
+ return propertyIsEnumerable.call(object4, symbol);
3405
+ });
3406
+ };
3407
+ var getTag = baseGetTag;
3408
+ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
3409
+ getTag = function(value) {
3410
+ var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
3411
+ if (ctorString) {
3412
+ switch (ctorString) {
3413
+ case dataViewCtorString:
3414
+ return dataViewTag;
3415
+ case mapCtorString:
3416
+ return mapTag;
3417
+ case promiseCtorString:
3418
+ return promiseTag;
3419
+ case setCtorString:
3420
+ return setTag;
3421
+ case weakMapCtorString:
3422
+ return weakMapTag;
3423
+ }
3424
+ }
3425
+ return result;
3426
+ };
3427
+ }
3428
+ function isIndex(value, length) {
3429
+ length = length == null ? MAX_SAFE_INTEGER : length;
3430
+ return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
3431
+ }
3432
+ function isKeyable(value) {
3433
+ var type4 = typeof value;
3434
+ return type4 == "string" || type4 == "number" || type4 == "symbol" || type4 == "boolean" ? value !== "__proto__" : value === null;
3435
+ }
3436
+ function isMasked(func) {
3437
+ return !!maskSrcKey && maskSrcKey in func;
3438
+ }
3439
+ function isPrototype(value) {
3440
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto2;
3441
+ return value === proto;
3442
+ }
3443
+ function objectToString2(value) {
3444
+ return nativeObjectToString.call(value);
3445
+ }
3446
+ function toSource(func) {
3447
+ if (func != null) {
3448
+ try {
3449
+ return funcToString.call(func);
3450
+ } catch (e) {
3451
+ }
3452
+ try {
3453
+ return func + "";
3454
+ } catch (e) {
3455
+ }
3456
+ }
3457
+ return "";
3458
+ }
3459
+ function eq(value, other) {
3460
+ return value === other || value !== value && other !== other;
3461
+ }
3462
+ var isArguments = baseIsArguments(function() {
3463
+ return arguments;
3464
+ }()) ? baseIsArguments : function(value) {
3465
+ return isObjectLike2(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
3466
+ };
3467
+ var isArray = Array.isArray;
3468
+ function isArrayLike(value) {
3469
+ return value != null && isLength(value.length) && !isFunction2(value);
3470
+ }
3471
+ var isBuffer = nativeIsBuffer || stubFalse;
3472
+ function isEqual2(value, other) {
3473
+ return baseIsEqual(value, other);
3474
+ }
3475
+ function isFunction2(value) {
3476
+ if (!isObject2(value)) {
3477
+ return false;
3478
+ }
3479
+ var tag = baseGetTag(value);
3480
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
3481
+ }
3482
+ function isLength(value) {
3483
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
3484
+ }
3485
+ function isObject2(value) {
3486
+ var type4 = typeof value;
3487
+ return value != null && (type4 == "object" || type4 == "function");
3488
+ }
3489
+ function isObjectLike2(value) {
3490
+ return value != null && typeof value == "object";
3491
+ }
3492
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
3493
+ function keys(object4) {
3494
+ return isArrayLike(object4) ? arrayLikeKeys(object4) : baseKeys(object4);
3495
+ }
3496
+ function stubArray() {
3497
+ return [];
3498
+ }
3499
+ function stubFalse() {
3500
+ return false;
3501
+ }
3502
+ module.exports = isEqual2;
3503
+ })(lodash_isequal, lodash_isequalExports);
3504
+ const isequal = lodash_isequalExports;
3505
+ function useMemo(getValue2, condition, shouldUpdate) {
3506
+ const cacheRef = React.useRef({});
3507
+ if (!("value" in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
3508
+ cacheRef.current.value = getValue2();
3509
+ cacheRef.current.condition = condition;
3510
+ }
3511
+ return cacheRef.current.value;
3512
+ }
2847
3513
  const zhCN = {
2848
3514
  save: "保存",
2849
3515
  confirm: "确认",
@@ -2973,10 +3639,6 @@ const zhCN = {
2973
3639
  errorCanvasTips: "当前环境不支持Canvas"
2974
3640
  }
2975
3641
  };
2976
- const defaultProps$1n = {
2977
- ...ComponentDefaults,
2978
- locale: zhCN
2979
- };
2980
3642
  const classPrefix$m = "nut-configprovider";
2981
3643
  const defaultConfigRef = {
2982
3644
  current: {
@@ -2998,24 +3660,35 @@ function convertThemeVarsToCSSVars(themeVars) {
2998
3660
  return cssVars;
2999
3661
  }
3000
3662
  const ConfigProvider = (props) => {
3001
- const { children, className, ...config2 } = { ...defaultProps$1n, ...props };
3002
- const parentConfig = useConfig();
3003
- const style = {
3004
- ...convertThemeVarsToCSSVars(config2.theme || {}),
3005
- ...config2.style
3006
- };
3007
- return /* @__PURE__ */ React__default.createElement(
3008
- ConfigContext.Provider,
3009
- {
3010
- value: {
3011
- ...parentConfig,
3663
+ const { style, className, children, ...config2 } = props;
3664
+ const mergedConfig = useMemo(
3665
+ () => {
3666
+ return {
3667
+ ...getDefaultConfig(),
3012
3668
  ...config2
3013
- }
3669
+ };
3014
3670
  },
3015
- /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$m, className), style }, children)
3671
+ [config2],
3672
+ (prev, next) => prev.some((prevTheme, index) => {
3673
+ const nextTheme = next[index];
3674
+ return !isequal(prevTheme, nextTheme);
3675
+ })
3016
3676
  );
3677
+ const cssVarStyle = React__default.useMemo(() => {
3678
+ return convertThemeVarsToCSSVars(mergedConfig.theme || {});
3679
+ }, [mergedConfig.theme]);
3680
+ return /* @__PURE__ */ React__default.createElement(ConfigContext.Provider, { value: mergedConfig }, /* @__PURE__ */ React__default.createElement(
3681
+ "div",
3682
+ {
3683
+ className: classNames(classPrefix$m, className),
3684
+ style: {
3685
+ ...cssVarStyle,
3686
+ ...style
3687
+ }
3688
+ },
3689
+ children
3690
+ ));
3017
3691
  };
3018
- ConfigProvider.defaultProps = defaultProps$1n;
3019
3692
  ConfigProvider.displayName = "NutConfigProvider";
3020
3693
  const pxCheck = (value) => {
3021
3694
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
@@ -5468,7 +6141,7 @@ const Sticky = (props) => {
5468
6141
  const el = getElement();
5469
6142
  el.addEventListener("scroll", handleScroll, false);
5470
6143
  return () => {
5471
- el.removeEventListener("tap", handleScroll);
6144
+ el.removeEventListener("scroll", handleScroll);
5472
6145
  };
5473
6146
  }, [getElement, handleScroll]);
5474
6147
  return /* @__PURE__ */ React__default.createElement(
@@ -10319,10 +10992,10 @@ function useSprings(length, props, deps) {
10319
10992
  const propsFn = is.fun(props) && props;
10320
10993
  if (propsFn && !deps)
10321
10994
  deps = [];
10322
- const ref = useMemo(() => propsFn || arguments.length == 3 ? SpringRef() : void 0, []);
10995
+ const ref = useMemo$1(() => propsFn || arguments.length == 3 ? SpringRef() : void 0, []);
10323
10996
  const layoutId = useRef(0);
10324
10997
  const forceUpdate = useForceUpdate$1();
10325
- const state = useMemo(() => ({
10998
+ const state = useMemo$1(() => ({
10326
10999
  ctrls: [],
10327
11000
  queue: [],
10328
11001
  flush(ctrl, updates2) {
@@ -10340,7 +11013,7 @@ function useSprings(length, props, deps) {
10340
11013
  const ctrls = useRef([...state.ctrls]);
10341
11014
  const updates = [];
10342
11015
  const prevLength = usePrev(length) || 0;
10343
- useMemo(() => {
11016
+ useMemo$1(() => {
10344
11017
  each(ctrls.current.slice(length, prevLength), (ctrl) => {
10345
11018
  detachRefs(ctrl, ref);
10346
11019
  ctrl.stop(true);
@@ -10348,7 +11021,7 @@ function useSprings(length, props, deps) {
10348
11021
  ctrls.current.length = length;
10349
11022
  declareUpdates(prevLength, length);
10350
11023
  }, [length]);
10351
- useMemo(() => {
11024
+ useMemo$1(() => {
10352
11025
  declareUpdates(0, Math.min(prevLength, length));
10353
11026
  }, deps);
10354
11027
  function declareUpdates(startIndex, endIndex) {
@@ -16822,7 +17495,7 @@ const NumberKeyboard = (props) => {
16822
17495
  }
16823
17496
  return customKeys;
16824
17497
  };
16825
- const keysList = useMemo(() => {
17498
+ const keysList = useMemo$1(() => {
16826
17499
  return [...getBasicKeys(), ...getCustomKeys()];
16827
17500
  }, [type4, random, custom]);
16828
17501
  const DeleteIcon = () => {
@@ -17728,7 +18401,7 @@ const ShortPassword = (props) => {
17728
18401
  ...props
17729
18402
  };
17730
18403
  const classPrefix2 = "nut-shortpassword";
17731
- const comLen = useMemo(() => {
18404
+ const comLen = useMemo$1(() => {
17732
18405
  return Math.min(Math.max(4, length || 4), 6);
17733
18406
  }, [length]);
17734
18407
  const format2 = (val) => {
@@ -19460,7 +20133,7 @@ const NoticeBar = (props) => {
19460
20133
  });
19461
20134
  const [childOffset, setChildOffset] = useState([]);
19462
20135
  const [offset, setOffset] = useState(0);
19463
- const { childs, childCount } = useMemo(() => {
20136
+ const { childs, childCount } = useMemo$1(() => {
19464
20137
  let childCount2 = 0;
19465
20138
  const childs2 = React__default.Children.map(children, (child) => {
19466
20139
  if (!React__default.isValidElement(child))
@@ -20017,6 +20690,7 @@ const Popover = (props) => {
20017
20690
  );
20018
20691
  const getContentWidth = () => {
20019
20692
  let rect = getRect(popoverRef.current);
20693
+ const scrollDis = document.documentElement.scrollTop || window.scrollY;
20020
20694
  if (targetId) {
20021
20695
  setTimeout(() => {
20022
20696
  rect = getRect(document.querySelector(`#${targetId}`));
@@ -20024,7 +20698,7 @@ const Popover = (props) => {
20024
20698
  width: rect.width,
20025
20699
  height: rect.height,
20026
20700
  left: rect.left,
20027
- top: rect.top,
20701
+ top: rect.top + scrollDis,
20028
20702
  right: rect.right
20029
20703
  });
20030
20704
  if (popoverContentRef.current) {
@@ -20037,7 +20711,7 @@ const Popover = (props) => {
20037
20711
  width: rect.width,
20038
20712
  height: rect.height,
20039
20713
  left: rect.left,
20040
- top: rect.top,
20714
+ top: rect.top + scrollDis,
20041
20715
  right: rect.right
20042
20716
  });
20043
20717
  if (popoverContentRef.current) {
@@ -20148,7 +20822,7 @@ const Popover = (props) => {
20148
20822
  },
20149
20823
  item.className
20150
20824
  ),
20151
- key: item.key,
20825
+ key: item.key || index,
20152
20826
  onClick: () => handleSelect(item, index)
20153
20827
  },
20154
20828
  item.icon ? item.icon : null,
@@ -21026,7 +21700,7 @@ const CountUp = (props) => {
21026
21700
  const currNumber = `${thousands ? intNumber.replace(/(\d)(?=(?:\d{3})+$)/g, "$1,") : intNumber}${splitArr[1] ? "." : ""}${splitArr[1] || ""}`;
21027
21701
  return currNumber.split("");
21028
21702
  };
21029
- const numerArr = useMemo(getShowNumber, [value, length, thousands]);
21703
+ const numerArr = useMemo$1(getShowNumber, [value, length, thousands]);
21030
21704
  const setNumberTransform = () => {
21031
21705
  if (countupRef.current) {
21032
21706
  const numberItems = countupRef.current.querySelectorAll(
@@ -21478,13 +22152,13 @@ const CollapseItem = (props) => {
21478
22152
  const context = useContext(CollapseContext);
21479
22153
  const wrapperRef = useRef(null);
21480
22154
  const contentRef = useRef(null);
21481
- const expanded = useMemo(() => {
22155
+ const expanded = useMemo$1(() => {
21482
22156
  if (context) {
21483
22157
  return context.isOpen(name);
21484
22158
  }
21485
22159
  return false;
21486
22160
  }, [name, context.isOpen]);
21487
- const iconStyle = useMemo(() => {
22161
+ const iconStyle = useMemo$1(() => {
21488
22162
  return expanded ? { transform: `translateY(-50%) rotate(${rotate || context.rotate}deg)` } : { transform: "translateY(-50%)" };
21489
22163
  }, [expanded, rotate]);
21490
22164
  const handleClick2 = () => {
@@ -22226,7 +22900,7 @@ const Swiper = React__default.forwardRef((props, ref) => {
22226
22900
  delta: 0,
22227
22901
  touchTime: 0
22228
22902
  });
22229
- const { childs, childCount } = useMemo(() => {
22903
+ const { childs, childCount } = useMemo$1(() => {
22230
22904
  let childCount2 = 0;
22231
22905
  const childs2 = React__default.Children.map(props.children, (child) => {
22232
22906
  if (!React__default.isValidElement(child))
@@ -22862,11 +23536,11 @@ const Pagination = (props) => {
22862
23536
  finalValue: 1,
22863
23537
  onChange
22864
23538
  });
22865
- const pageCount = useMemo(() => {
23539
+ const pageCount = useMemo$1(() => {
22866
23540
  const num = Math.ceil(total / pageSize);
22867
23541
  return Number.isNaN(num) ? 1 : Math.max(1, num);
22868
23542
  }, [total, pageSize]);
22869
- const pages = useMemo(() => {
23543
+ const pages = useMemo$1(() => {
22870
23544
  const items = [];
22871
23545
  let startPage = 1;
22872
23546
  let endPage = pageCount;
@@ -23800,7 +24474,7 @@ const TimeDetail = (props) => {
23800
24474
  ...props
23801
24475
  };
23802
24476
  const classPrefix2 = "nut-timedetail";
23803
- const timeList = useMemo(() => {
24477
+ const timeList = useMemo$1(() => {
23804
24478
  return (options2 == null ? void 0 : options2.find(
23805
24479
  (item) => item[optionKey.valueKey] === activeDate
23806
24480
  )) || {