@nutui/nutui-react 2.1.0 → 2.2.0-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 +24 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Audio/style/style.css +1 -1
- package/dist/esm/BackTop.js +3 -7
- package/dist/esm/Badge/style/style.css +1 -1
- package/dist/esm/Button/style/style.css +1 -1
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/CalendarCard/style/style.css +1 -1
- package/dist/esm/Card/style/style.css +1 -1
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/Cell/style/style.css +1 -1
- package/dist/esm/CellGroup/style/style.css +1 -1
- package/dist/esm/Checkbox/style/style.css +1 -1
- package/dist/esm/CircleProgress/style/style.css +1 -1
- package/dist/esm/Collapse/style/style.css +1 -1
- package/dist/esm/CollapseItem/style/style.css +1 -1
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/Dialog.js +4 -4
- package/dist/esm/Divider/style/style.css +1 -1
- package/dist/esm/Elevator/style/style.css +1 -1
- package/dist/esm/Ellipsis/style/style.css +1 -1
- package/dist/esm/FixedNav/style/style.css +1 -1
- package/dist/esm/Form/style/style.css +1 -1
- package/dist/esm/FormItem/style/style.css +1 -1
- package/dist/esm/Grid/style/style.css +1 -1
- package/dist/esm/GridItem/style/style.css +1 -1
- package/dist/esm/Image.js +2 -2
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/Indicator/style/style.css +1 -1
- package/dist/esm/InfiniteLoading/style/style.css +1 -1
- package/dist/esm/InfiniteLoading.js +2 -6
- package/dist/esm/Input/style/style.css +1 -1
- package/dist/esm/Menu/style/style.css +1 -1
- package/dist/esm/MenuItem/style/style.css +1 -1
- package/dist/esm/NavBar/style/style.css +1 -1
- package/dist/esm/Notify/style/style.css +1 -1
- package/dist/esm/Notify.js +1 -1
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/Pagination/style/style.css +1 -1
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/Price/style/style.css +1 -1
- package/dist/esm/Progress/style/style.css +1 -1
- package/dist/esm/Radio/style/style.css +1 -1
- package/dist/esm/RadioGroup/style/style.css +1 -1
- package/dist/esm/Range/style/style.css +1 -1
- package/dist/esm/Rate/style/style.css +1 -1
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/Signature/style/style.css +1 -1
- package/dist/esm/Step/style/style.css +1 -1
- package/dist/esm/Steps/style/style.css +1 -1
- package/dist/esm/Swiper/style/style.css +1 -1
- package/dist/esm/Swiper.js +0 -3
- package/dist/esm/Switch/style/style.css +1 -1
- package/dist/esm/Tabbar/style/style.css +1 -1
- package/dist/esm/TabbarItem/style/style.css +1 -1
- package/dist/esm/Table/style/style.css +1 -1
- package/dist/esm/Tabs/style/style.css +1 -1
- package/dist/esm/Tag/style/style.css +1 -1
- package/dist/esm/TextArea/style/style.css +1 -1
- package/dist/esm/TimeDetail/style/style.css +1 -1
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/Toast/style/style.css +1 -1
- package/dist/esm/Toast.js +1 -1
- package/dist/esm/Tour/style/style.css +1 -1
- package/dist/esm/Uploader/style/style.css +1 -1
- package/dist/esm/Uploader.js +4 -2
- package/dist/esm/badge2.js +19 -6
- package/dist/esm/configprovider2.js +1 -1
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/config.d.ts +1 -0
- package/dist/esm/types/src/packages/dialog/content.d.ts +1 -0
- package/dist/esm/types/src/packages/dialog/content.taro.d.ts +1 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +219 -212
- package/dist/nutui.react.umd.js +223 -216
- package/dist/packages/address/address.scss +2 -2
- package/dist/packages/badge/badge.scss +21 -4
- package/dist/packages/calendar/calendar.scss +4 -4
- package/dist/packages/calendarcard/calendarcard.scss +2 -2
- package/dist/packages/card/card.scss +1 -1
- package/dist/packages/checkbox/checkbox.scss +2 -2
- package/dist/packages/dialog/dialog.scss +14 -29
- package/dist/packages/divider/divider.scss +6 -6
- package/dist/packages/elevator/elevator.scss +38 -25
- package/dist/packages/fixednav/fixednav.scss +1 -1
- package/dist/packages/menuitem/menuitem.scss +1 -1
- package/dist/packages/price/price.scss +2 -2
- package/dist/packages/range/range.scss +2 -2
- package/dist/packages/shortpassword/shortpassword.scss +11 -11
- package/dist/packages/step/step.scss +1 -1
- package/dist/packages/switch/switch.scss +3 -3
- package/dist/packages/table/table.scss +1 -1
- package/dist/packages/tour/tour.scss +1 -1
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -5
- package/dist/styles/theme-dark.scss +118 -12
- package/dist/styles/theme-default.scss +117 -13
- package/dist/styles/theme-jmapp.scss +161 -12
- package/dist/styles/variables-jmapp.scss +321 -173
- package/dist/styles/variables.scss +370 -294
- package/dist/types/packages/animate/animate.d.ts +2 -2
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/dialog/config.d.ts +1 -0
- package/dist/types/packages/dialog/content.d.ts +1 -0
- package/dist/types/packages/swiper/swiper.d.ts +2 -2
- package/package.json +1 -1
package/dist/nutui.react.es.js
CHANGED
|
@@ -4,12 +4,12 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
var _a;
|
|
8
7
|
/*!
|
|
9
|
-
* @nutui/nutui-react v2.
|
|
8
|
+
* @nutui/nutui-react v2.2.0 Fri Nov 24 2023 15:04:56 GMT+0800 (China Standard Time)
|
|
10
9
|
* (c) 2023 @jdf2e.
|
|
11
10
|
* Released under the MIT License.
|
|
12
11
|
*/
|
|
12
|
+
var _a;
|
|
13
13
|
import * as React from "react";
|
|
14
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";
|
|
@@ -1076,7 +1076,6 @@ const l = (a2) => /* @__PURE__ */ Oe(hr, { ...a2, name: a2.name || "TriangleUp",
|
|
|
1076
1076
|
}
|
|
1077
1077
|
) });
|
|
1078
1078
|
l.defaultProps = Pe;
|
|
1079
|
-
const style_icon = "";
|
|
1080
1079
|
const ComponentDefaults = {
|
|
1081
1080
|
className: "",
|
|
1082
1081
|
style: {}
|
|
@@ -2144,7 +2143,7 @@ lodash_isequal.exports;
|
|
|
2144
2143
|
function eq(value, other) {
|
|
2145
2144
|
return value === other || value !== value && other !== other;
|
|
2146
2145
|
}
|
|
2147
|
-
var isArguments = baseIsArguments(function() {
|
|
2146
|
+
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
2148
2147
|
return arguments;
|
|
2149
2148
|
}()) ? baseIsArguments : function(value) {
|
|
2150
2149
|
return isObjectLike2(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
@@ -2452,7 +2451,8 @@ const Image$1 = (props) => {
|
|
|
2452
2451
|
height: height ? pxCheck(height) : "",
|
|
2453
2452
|
width: width ? pxCheck(width) : "",
|
|
2454
2453
|
overflow: radius !== void 0 && radius !== null ? "hidden" : "",
|
|
2455
|
-
borderRadius: radius !== void 0 && radius !== null ? pxCheck(radius) : ""
|
|
2454
|
+
borderRadius: radius !== void 0 && radius !== null ? pxCheck(radius) : "",
|
|
2455
|
+
...style
|
|
2456
2456
|
};
|
|
2457
2457
|
const imgStyle = {
|
|
2458
2458
|
objectFit: fit,
|
|
@@ -2597,111 +2597,72 @@ function _inheritsLoose$1(subClass, superClass) {
|
|
|
2597
2597
|
_setPrototypeOf$1(subClass, superClass);
|
|
2598
2598
|
}
|
|
2599
2599
|
var propTypes = { exports: {} };
|
|
2600
|
-
var
|
|
2601
|
-
var
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
var
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
var u = a2.$$typeof;
|
|
2619
|
-
switch (u) {
|
|
2620
|
-
case c6:
|
|
2621
|
-
switch (a2 = a2.type, a2) {
|
|
2622
|
-
case l2:
|
|
2623
|
-
case m:
|
|
2624
|
-
case e2:
|
|
2625
|
-
case g:
|
|
2626
|
-
case f:
|
|
2627
|
-
case p:
|
|
2628
|
-
return a2;
|
|
2629
|
-
default:
|
|
2630
|
-
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
2631
|
-
case k:
|
|
2632
|
-
case n:
|
|
2633
|
-
case t2:
|
|
2634
|
-
case r2:
|
|
2635
|
-
case h:
|
|
2636
|
-
return a2;
|
|
2637
|
-
default:
|
|
2638
|
-
return u;
|
|
2639
|
-
}
|
|
2640
|
-
}
|
|
2641
|
-
case d:
|
|
2642
|
-
return u;
|
|
2643
|
-
}
|
|
2644
|
-
}
|
|
2600
|
+
var ReactPropTypesSecret_1;
|
|
2601
|
+
var hasRequiredReactPropTypesSecret;
|
|
2602
|
+
function requireReactPropTypesSecret() {
|
|
2603
|
+
if (hasRequiredReactPropTypesSecret)
|
|
2604
|
+
return ReactPropTypesSecret_1;
|
|
2605
|
+
hasRequiredReactPropTypesSecret = 1;
|
|
2606
|
+
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2607
|
+
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
2608
|
+
return ReactPropTypesSecret_1;
|
|
2609
|
+
}
|
|
2610
|
+
var factoryWithThrowingShims;
|
|
2611
|
+
var hasRequiredFactoryWithThrowingShims;
|
|
2612
|
+
function requireFactoryWithThrowingShims() {
|
|
2613
|
+
if (hasRequiredFactoryWithThrowingShims)
|
|
2614
|
+
return factoryWithThrowingShims;
|
|
2615
|
+
hasRequiredFactoryWithThrowingShims = 1;
|
|
2616
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
2617
|
+
function emptyFunction() {
|
|
2645
2618
|
}
|
|
2646
|
-
function
|
|
2647
|
-
return z(a2) === m;
|
|
2619
|
+
function emptyFunctionWithReset() {
|
|
2648
2620
|
}
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
reactIs_production_min.isProfiler = function(a2) {
|
|
2691
|
-
return z(a2) === g;
|
|
2692
|
-
};
|
|
2693
|
-
reactIs_production_min.isStrictMode = function(a2) {
|
|
2694
|
-
return z(a2) === f;
|
|
2695
|
-
};
|
|
2696
|
-
reactIs_production_min.isSuspense = function(a2) {
|
|
2697
|
-
return z(a2) === p;
|
|
2698
|
-
};
|
|
2699
|
-
reactIs_production_min.isValidElementType = function(a2) {
|
|
2700
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === e2 || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t2 || a2.$$typeof === r2 || a2.$$typeof === h || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y || a2.$$typeof === v);
|
|
2621
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
2622
|
+
factoryWithThrowingShims = function() {
|
|
2623
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
2624
|
+
if (secret === ReactPropTypesSecret) {
|
|
2625
|
+
return;
|
|
2626
|
+
}
|
|
2627
|
+
var err = new Error(
|
|
2628
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2629
|
+
);
|
|
2630
|
+
err.name = "Invariant Violation";
|
|
2631
|
+
throw err;
|
|
2632
|
+
}
|
|
2633
|
+
shim.isRequired = shim;
|
|
2634
|
+
function getShim() {
|
|
2635
|
+
return shim;
|
|
2636
|
+
}
|
|
2637
|
+
var ReactPropTypes = {
|
|
2638
|
+
array: shim,
|
|
2639
|
+
bigint: shim,
|
|
2640
|
+
bool: shim,
|
|
2641
|
+
func: shim,
|
|
2642
|
+
number: shim,
|
|
2643
|
+
object: shim,
|
|
2644
|
+
string: shim,
|
|
2645
|
+
symbol: shim,
|
|
2646
|
+
any: shim,
|
|
2647
|
+
arrayOf: getShim,
|
|
2648
|
+
element: shim,
|
|
2649
|
+
elementType: shim,
|
|
2650
|
+
instanceOf: getShim,
|
|
2651
|
+
node: shim,
|
|
2652
|
+
objectOf: getShim,
|
|
2653
|
+
oneOf: getShim,
|
|
2654
|
+
oneOfType: getShim,
|
|
2655
|
+
shape: getShim,
|
|
2656
|
+
exact: getShim,
|
|
2657
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
2658
|
+
resetWarningCache: emptyFunction
|
|
2659
|
+
};
|
|
2660
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
2661
|
+
return ReactPropTypes;
|
|
2701
2662
|
};
|
|
2702
|
-
|
|
2703
|
-
return reactIs_production_min;
|
|
2663
|
+
return factoryWithThrowingShims;
|
|
2704
2664
|
}
|
|
2665
|
+
var reactIs = { exports: {} };
|
|
2705
2666
|
var reactIs_development = {};
|
|
2706
2667
|
/** @license React v16.13.1
|
|
2707
2668
|
* react-is.development.js
|
|
@@ -2865,6 +2826,110 @@ function requireReactIs_development() {
|
|
|
2865
2826
|
}
|
|
2866
2827
|
return reactIs_development;
|
|
2867
2828
|
}
|
|
2829
|
+
var reactIs_production_min = {};
|
|
2830
|
+
/** @license React v16.13.1
|
|
2831
|
+
* react-is.production.min.js
|
|
2832
|
+
*
|
|
2833
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2834
|
+
*
|
|
2835
|
+
* This source code is licensed under the MIT license found in the
|
|
2836
|
+
* LICENSE file in the root directory of this source tree.
|
|
2837
|
+
*/
|
|
2838
|
+
var hasRequiredReactIs_production_min;
|
|
2839
|
+
function requireReactIs_production_min() {
|
|
2840
|
+
if (hasRequiredReactIs_production_min)
|
|
2841
|
+
return reactIs_production_min;
|
|
2842
|
+
hasRequiredReactIs_production_min = 1;
|
|
2843
|
+
var b = "function" === typeof Symbol && Symbol.for, c6 = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e2 = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l2 = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r2 = b ? Symbol.for("react.memo") : 60115, t2 = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
|
|
2844
|
+
function z(a2) {
|
|
2845
|
+
if ("object" === typeof a2 && null !== a2) {
|
|
2846
|
+
var u = a2.$$typeof;
|
|
2847
|
+
switch (u) {
|
|
2848
|
+
case c6:
|
|
2849
|
+
switch (a2 = a2.type, a2) {
|
|
2850
|
+
case l2:
|
|
2851
|
+
case m:
|
|
2852
|
+
case e2:
|
|
2853
|
+
case g:
|
|
2854
|
+
case f:
|
|
2855
|
+
case p:
|
|
2856
|
+
return a2;
|
|
2857
|
+
default:
|
|
2858
|
+
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
2859
|
+
case k:
|
|
2860
|
+
case n:
|
|
2861
|
+
case t2:
|
|
2862
|
+
case r2:
|
|
2863
|
+
case h:
|
|
2864
|
+
return a2;
|
|
2865
|
+
default:
|
|
2866
|
+
return u;
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
case d:
|
|
2870
|
+
return u;
|
|
2871
|
+
}
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
function A(a2) {
|
|
2875
|
+
return z(a2) === m;
|
|
2876
|
+
}
|
|
2877
|
+
reactIs_production_min.AsyncMode = l2;
|
|
2878
|
+
reactIs_production_min.ConcurrentMode = m;
|
|
2879
|
+
reactIs_production_min.ContextConsumer = k;
|
|
2880
|
+
reactIs_production_min.ContextProvider = h;
|
|
2881
|
+
reactIs_production_min.Element = c6;
|
|
2882
|
+
reactIs_production_min.ForwardRef = n;
|
|
2883
|
+
reactIs_production_min.Fragment = e2;
|
|
2884
|
+
reactIs_production_min.Lazy = t2;
|
|
2885
|
+
reactIs_production_min.Memo = r2;
|
|
2886
|
+
reactIs_production_min.Portal = d;
|
|
2887
|
+
reactIs_production_min.Profiler = g;
|
|
2888
|
+
reactIs_production_min.StrictMode = f;
|
|
2889
|
+
reactIs_production_min.Suspense = p;
|
|
2890
|
+
reactIs_production_min.isAsyncMode = function(a2) {
|
|
2891
|
+
return A(a2) || z(a2) === l2;
|
|
2892
|
+
};
|
|
2893
|
+
reactIs_production_min.isConcurrentMode = A;
|
|
2894
|
+
reactIs_production_min.isContextConsumer = function(a2) {
|
|
2895
|
+
return z(a2) === k;
|
|
2896
|
+
};
|
|
2897
|
+
reactIs_production_min.isContextProvider = function(a2) {
|
|
2898
|
+
return z(a2) === h;
|
|
2899
|
+
};
|
|
2900
|
+
reactIs_production_min.isElement = function(a2) {
|
|
2901
|
+
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c6;
|
|
2902
|
+
};
|
|
2903
|
+
reactIs_production_min.isForwardRef = function(a2) {
|
|
2904
|
+
return z(a2) === n;
|
|
2905
|
+
};
|
|
2906
|
+
reactIs_production_min.isFragment = function(a2) {
|
|
2907
|
+
return z(a2) === e2;
|
|
2908
|
+
};
|
|
2909
|
+
reactIs_production_min.isLazy = function(a2) {
|
|
2910
|
+
return z(a2) === t2;
|
|
2911
|
+
};
|
|
2912
|
+
reactIs_production_min.isMemo = function(a2) {
|
|
2913
|
+
return z(a2) === r2;
|
|
2914
|
+
};
|
|
2915
|
+
reactIs_production_min.isPortal = function(a2) {
|
|
2916
|
+
return z(a2) === d;
|
|
2917
|
+
};
|
|
2918
|
+
reactIs_production_min.isProfiler = function(a2) {
|
|
2919
|
+
return z(a2) === g;
|
|
2920
|
+
};
|
|
2921
|
+
reactIs_production_min.isStrictMode = function(a2) {
|
|
2922
|
+
return z(a2) === f;
|
|
2923
|
+
};
|
|
2924
|
+
reactIs_production_min.isSuspense = function(a2) {
|
|
2925
|
+
return z(a2) === p;
|
|
2926
|
+
};
|
|
2927
|
+
reactIs_production_min.isValidElementType = function(a2) {
|
|
2928
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === e2 || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t2 || a2.$$typeof === r2 || a2.$$typeof === h || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y || a2.$$typeof === v);
|
|
2929
|
+
};
|
|
2930
|
+
reactIs_production_min.typeOf = z;
|
|
2931
|
+
return reactIs_production_min;
|
|
2932
|
+
}
|
|
2868
2933
|
var hasRequiredReactIs;
|
|
2869
2934
|
function requireReactIs() {
|
|
2870
2935
|
if (hasRequiredReactIs)
|
|
@@ -2953,16 +3018,6 @@ function requireObjectAssign() {
|
|
|
2953
3018
|
};
|
|
2954
3019
|
return objectAssign;
|
|
2955
3020
|
}
|
|
2956
|
-
var ReactPropTypesSecret_1;
|
|
2957
|
-
var hasRequiredReactPropTypesSecret;
|
|
2958
|
-
function requireReactPropTypesSecret() {
|
|
2959
|
-
if (hasRequiredReactPropTypesSecret)
|
|
2960
|
-
return ReactPropTypesSecret_1;
|
|
2961
|
-
hasRequiredReactPropTypesSecret = 1;
|
|
2962
|
-
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2963
|
-
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
2964
|
-
return ReactPropTypesSecret_1;
|
|
2965
|
-
}
|
|
2966
3021
|
var has;
|
|
2967
3022
|
var hasRequiredHas;
|
|
2968
3023
|
function requireHas() {
|
|
@@ -3480,61 +3535,6 @@ function requireFactoryWithTypeCheckers() {
|
|
|
3480
3535
|
};
|
|
3481
3536
|
return factoryWithTypeCheckers;
|
|
3482
3537
|
}
|
|
3483
|
-
var factoryWithThrowingShims;
|
|
3484
|
-
var hasRequiredFactoryWithThrowingShims;
|
|
3485
|
-
function requireFactoryWithThrowingShims() {
|
|
3486
|
-
if (hasRequiredFactoryWithThrowingShims)
|
|
3487
|
-
return factoryWithThrowingShims;
|
|
3488
|
-
hasRequiredFactoryWithThrowingShims = 1;
|
|
3489
|
-
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
3490
|
-
function emptyFunction() {
|
|
3491
|
-
}
|
|
3492
|
-
function emptyFunctionWithReset() {
|
|
3493
|
-
}
|
|
3494
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
3495
|
-
factoryWithThrowingShims = function() {
|
|
3496
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
3497
|
-
if (secret === ReactPropTypesSecret) {
|
|
3498
|
-
return;
|
|
3499
|
-
}
|
|
3500
|
-
var err = new Error(
|
|
3501
|
-
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
3502
|
-
);
|
|
3503
|
-
err.name = "Invariant Violation";
|
|
3504
|
-
throw err;
|
|
3505
|
-
}
|
|
3506
|
-
shim.isRequired = shim;
|
|
3507
|
-
function getShim() {
|
|
3508
|
-
return shim;
|
|
3509
|
-
}
|
|
3510
|
-
var ReactPropTypes = {
|
|
3511
|
-
array: shim,
|
|
3512
|
-
bigint: shim,
|
|
3513
|
-
bool: shim,
|
|
3514
|
-
func: shim,
|
|
3515
|
-
number: shim,
|
|
3516
|
-
object: shim,
|
|
3517
|
-
string: shim,
|
|
3518
|
-
symbol: shim,
|
|
3519
|
-
any: shim,
|
|
3520
|
-
arrayOf: getShim,
|
|
3521
|
-
element: shim,
|
|
3522
|
-
elementType: shim,
|
|
3523
|
-
instanceOf: getShim,
|
|
3524
|
-
node: shim,
|
|
3525
|
-
objectOf: getShim,
|
|
3526
|
-
oneOf: getShim,
|
|
3527
|
-
oneOfType: getShim,
|
|
3528
|
-
shape: getShim,
|
|
3529
|
-
exact: getShim,
|
|
3530
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
3531
|
-
resetWarningCache: emptyFunction
|
|
3532
|
-
};
|
|
3533
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
3534
|
-
return ReactPropTypes;
|
|
3535
|
-
};
|
|
3536
|
-
return factoryWithThrowingShims;
|
|
3537
|
-
}
|
|
3538
3538
|
if (process.env.NODE_ENV !== "production") {
|
|
3539
3539
|
var ReactIs = requireReactIs();
|
|
3540
3540
|
var throwOnDirectAccess = true;
|
|
@@ -5028,6 +5028,18 @@ const SafeArea = (props) => {
|
|
|
5028
5028
|
}
|
|
5029
5029
|
);
|
|
5030
5030
|
};
|
|
5031
|
+
function requestAniFrame() {
|
|
5032
|
+
if (typeof window !== "undefined") {
|
|
5033
|
+
const _window = window;
|
|
5034
|
+
return _window.requestAnimationFrame || _window.webkitRequestAnimationFrame || function(callback) {
|
|
5035
|
+
_window.setTimeout(callback, 1e3 / 60);
|
|
5036
|
+
};
|
|
5037
|
+
}
|
|
5038
|
+
return (callback) => {
|
|
5039
|
+
setTimeout(callback, 1e3 / 60);
|
|
5040
|
+
};
|
|
5041
|
+
}
|
|
5042
|
+
const requestAniFrame$1 = requestAniFrame();
|
|
5031
5043
|
const defaultProps$1i = {
|
|
5032
5044
|
...ComponentDefaults,
|
|
5033
5045
|
target: "",
|
|
@@ -5088,11 +5100,11 @@ const BackTop = (props) => {
|
|
|
5088
5100
|
}
|
|
5089
5101
|
};
|
|
5090
5102
|
const scrollAnimation = () => {
|
|
5091
|
-
let cid =
|
|
5103
|
+
let cid = requestAniFrame$1(function fn() {
|
|
5092
5104
|
const t2 = duration - Math.max(0, startTime - +/* @__PURE__ */ new Date() + duration / 2);
|
|
5093
5105
|
const y = t2 * -scrollTop / duration + scrollTop;
|
|
5094
5106
|
scroll(y);
|
|
5095
|
-
cid =
|
|
5107
|
+
cid = requestAniFrame$1(fn);
|
|
5096
5108
|
if (t2 === duration || y === 0) {
|
|
5097
5109
|
window.cancelAnimationFrame(cid);
|
|
5098
5110
|
}
|
|
@@ -5101,11 +5113,6 @@ const BackTop = (props) => {
|
|
|
5101
5113
|
const initCancelAniFrame = () => {
|
|
5102
5114
|
window.cancelAnimationFrame = window.webkitCancelAnimationFrame;
|
|
5103
5115
|
};
|
|
5104
|
-
const requestAniFrame2 = () => {
|
|
5105
|
-
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) {
|
|
5106
|
-
window.setTimeout(callback, 1e3 / 60);
|
|
5107
|
-
};
|
|
5108
|
-
};
|
|
5109
5116
|
function addEventListener() {
|
|
5110
5117
|
var _a2, _b;
|
|
5111
5118
|
(_a2 = scrollEl.current) == null ? void 0 : _a2.addEventListener("scroll", scrollListener, false);
|
|
@@ -10978,30 +10985,46 @@ const defaultProps$1b = {
|
|
|
10978
10985
|
value: "",
|
|
10979
10986
|
dot: false,
|
|
10980
10987
|
max: 99,
|
|
10981
|
-
top: "
|
|
10982
|
-
right: "
|
|
10988
|
+
top: "4",
|
|
10989
|
+
right: "8",
|
|
10983
10990
|
color: ""
|
|
10984
10991
|
};
|
|
10985
10992
|
const Badge = (props) => {
|
|
10993
|
+
var _a2;
|
|
10986
10994
|
const { className, style, value, max, children, dot, top, right, color } = {
|
|
10987
10995
|
...defaultProps$1b,
|
|
10988
10996
|
...props
|
|
10989
10997
|
};
|
|
10990
10998
|
const classPrefix2 = "nut-badge";
|
|
10991
10999
|
const classes = classNames(classPrefix2, className);
|
|
10992
|
-
const contentClasses = classNames(
|
|
10993
|
-
{ [`${classPrefix2}__dot`]: dot },
|
|
10994
|
-
`${classPrefix2}__content`,
|
|
10995
|
-
`${classPrefix2}__sup`
|
|
10996
|
-
);
|
|
10997
11000
|
function content() {
|
|
10998
11001
|
if (dot || typeof value === "object")
|
|
10999
11002
|
return null;
|
|
11000
11003
|
if (typeof value === "number" && typeof max === "number") {
|
|
11001
|
-
return max < value ? `${max}+` : value
|
|
11004
|
+
return max < value ? `${max}+` : `${value}`;
|
|
11002
11005
|
}
|
|
11003
11006
|
return value;
|
|
11004
11007
|
}
|
|
11008
|
+
function isIcon() {
|
|
11009
|
+
if (typeof value === "object" && value)
|
|
11010
|
+
return value;
|
|
11011
|
+
}
|
|
11012
|
+
function isNumber() {
|
|
11013
|
+
if (typeof value === "number" && value)
|
|
11014
|
+
return value;
|
|
11015
|
+
}
|
|
11016
|
+
function isString() {
|
|
11017
|
+
if (typeof value === "string" && value)
|
|
11018
|
+
return value;
|
|
11019
|
+
}
|
|
11020
|
+
const contentClasses = classNames(
|
|
11021
|
+
{ [`${classPrefix2}__dot`]: dot },
|
|
11022
|
+
`${classPrefix2}__content`,
|
|
11023
|
+
{ [`${classPrefix2}__sup`]: isNumber() || isString() || dot },
|
|
11024
|
+
{
|
|
11025
|
+
[`${classPrefix2}__one`]: typeof content() === "string" && ((_a2 = `${content()}`) == null ? void 0 : _a2.length) === 1
|
|
11026
|
+
}
|
|
11027
|
+
);
|
|
11005
11028
|
const getStyle = () => {
|
|
11006
11029
|
const style2 = {};
|
|
11007
11030
|
style2.top = `${Number(top) || parseFloat(String(top)) || 0}px`;
|
|
@@ -11009,7 +11032,7 @@ const Badge = (props) => {
|
|
|
11009
11032
|
style2.background = color;
|
|
11010
11033
|
return style2;
|
|
11011
11034
|
};
|
|
11012
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: classes, style },
|
|
11035
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, isIcon() && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__icon` }, value), children, !isIcon() && /* @__PURE__ */ React__default.createElement("div", { className: contentClasses, style: getStyle() }, content()));
|
|
11013
11036
|
};
|
|
11014
11037
|
Badge.defaultProps = defaultProps$1b;
|
|
11015
11038
|
Badge.displayName = "NutBadge";
|
|
@@ -11166,18 +11189,6 @@ const TabPane = (props) => {
|
|
|
11166
11189
|
);
|
|
11167
11190
|
return children ? /* @__PURE__ */ React__default.createElement("div", { className: classes }, !disabled && children) : null;
|
|
11168
11191
|
};
|
|
11169
|
-
function requestAniFrame() {
|
|
11170
|
-
if (typeof window !== "undefined") {
|
|
11171
|
-
const _window = window;
|
|
11172
|
-
return _window.requestAnimationFrame || _window.webkitRequestAnimationFrame || function(callback) {
|
|
11173
|
-
_window.setTimeout(callback, 1e3 / 60);
|
|
11174
|
-
};
|
|
11175
|
-
}
|
|
11176
|
-
return function(callback) {
|
|
11177
|
-
setTimeout(callback, 1e3 / 60);
|
|
11178
|
-
};
|
|
11179
|
-
}
|
|
11180
|
-
const requestAniFrame$1 = requestAniFrame();
|
|
11181
11192
|
const defaultProps$17 = {
|
|
11182
11193
|
...ComponentDefaults,
|
|
11183
11194
|
tabStyle: {},
|
|
@@ -18693,6 +18704,7 @@ const InternalUploader = (props, ref) => {
|
|
|
18693
18704
|
};
|
|
18694
18705
|
const readFile = (files) => {
|
|
18695
18706
|
files.forEach((file, index) => {
|
|
18707
|
+
var _a2;
|
|
18696
18708
|
const formData = new FormData();
|
|
18697
18709
|
formData.append(name, file);
|
|
18698
18710
|
const fileItem = new FileItem();
|
|
@@ -18703,7 +18715,7 @@ const InternalUploader = (props, ref) => {
|
|
|
18703
18715
|
fileItem.uid = file.lastModified + fileItem.uid;
|
|
18704
18716
|
fileItem.message = autoUpload ? locale.uploader.readyUpload : locale.uploader.waitingUpload;
|
|
18705
18717
|
executeUpload(fileItem, index);
|
|
18706
|
-
if (preview && file.type.includes("image")) {
|
|
18718
|
+
if (preview && ((_a2 = file.type) == null ? void 0 : _a2.includes("image"))) {
|
|
18707
18719
|
const reader = new FileReader();
|
|
18708
18720
|
reader.onload = (event) => {
|
|
18709
18721
|
fileItem.url = event.target.result;
|
|
@@ -18712,7 +18724,8 @@ const InternalUploader = (props, ref) => {
|
|
|
18712
18724
|
};
|
|
18713
18725
|
reader.readAsDataURL(file);
|
|
18714
18726
|
} else {
|
|
18715
|
-
|
|
18727
|
+
fileList.push(fileItem);
|
|
18728
|
+
setFileList([...fileList]);
|
|
18716
18729
|
}
|
|
18717
18730
|
});
|
|
18718
18731
|
};
|
|
@@ -19042,7 +19055,7 @@ const confirm = (config2, renderFunc) => {
|
|
|
19042
19055
|
};
|
|
19043
19056
|
const confirm$1 = confirm;
|
|
19044
19057
|
const Content = (props) => {
|
|
19045
|
-
const { visible, title, footer, footerDirection, onClick, children } = props;
|
|
19058
|
+
const { visible, title, header, footer, footerDirection, onClick, children } = props;
|
|
19046
19059
|
const classPrefix2 = "nut-dialog";
|
|
19047
19060
|
const renderHeader = () => {
|
|
19048
19061
|
return title ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}__header` }, title) : null;
|
|
@@ -19068,6 +19081,7 @@ const Content = (props) => {
|
|
|
19068
19081
|
style: props.style,
|
|
19069
19082
|
onClick: (e2) => handleClick2(e2)
|
|
19070
19083
|
},
|
|
19084
|
+
header,
|
|
19071
19085
|
/* @__PURE__ */ React__default.createElement(
|
|
19072
19086
|
"div",
|
|
19073
19087
|
{
|
|
@@ -19190,9 +19204,9 @@ const BaseDialog = (props, ref) => {
|
|
|
19190
19204
|
return footer || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, !hideCancelButton && /* @__PURE__ */ React__default.createElement(
|
|
19191
19205
|
Button,
|
|
19192
19206
|
{
|
|
19193
|
-
|
|
19207
|
+
type: "default",
|
|
19194
19208
|
fill: "outline",
|
|
19195
|
-
|
|
19209
|
+
size: "small",
|
|
19196
19210
|
className: `${classPrefix2}__footer-cancel`,
|
|
19197
19211
|
onClick: (e2) => handleCancel(e2)
|
|
19198
19212
|
},
|
|
@@ -19433,7 +19447,7 @@ const InfiniteLoading = (props) => {
|
|
|
19433
19447
|
};
|
|
19434
19448
|
};
|
|
19435
19449
|
const handleScroll = () => {
|
|
19436
|
-
|
|
19450
|
+
requestAniFrame$1(() => {
|
|
19437
19451
|
if (!isScrollAtBottom() || !hasMore || isInfiniting) {
|
|
19438
19452
|
return false;
|
|
19439
19453
|
}
|
|
@@ -19482,11 +19496,6 @@ const InfiniteLoading = (props) => {
|
|
|
19482
19496
|
onRefresh && onRefresh(refreshDone);
|
|
19483
19497
|
}
|
|
19484
19498
|
};
|
|
19485
|
-
const requestAniFrame2 = () => {
|
|
19486
|
-
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function fn(callback) {
|
|
19487
|
-
window.setTimeout(callback, 1e3 / 60);
|
|
19488
|
-
};
|
|
19489
|
-
};
|
|
19490
19499
|
const getWindowScrollTop = () => {
|
|
19491
19500
|
return window.scrollY !== void 0 ? window.scrollY : (document.documentElement || document.body.parentNode || document.body).scrollTop;
|
|
19492
19501
|
};
|
|
@@ -22368,8 +22377,6 @@ const Indicator = (props) => {
|
|
|
22368
22377
|
Indicator.defaultProps = defaultProps$i;
|
|
22369
22378
|
Indicator.displayName = "NutIndicator";
|
|
22370
22379
|
const defaultProps$h = {
|
|
22371
|
-
width: typeof window === "object" ? window.innerWidth : 375,
|
|
22372
|
-
height: 0,
|
|
22373
22380
|
duration: 500,
|
|
22374
22381
|
defaultValue: 0,
|
|
22375
22382
|
autoPlay: 0,
|