@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.umd.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
(function(global2, factory) {
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.ReactDOM));
|
|
3
|
+
})(this, function(exports2, React, ReactDOM) {
|
|
4
|
+
"use strict";var __defProp = Object.defineProperty;
|
|
2
5
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
6
|
var __publicField = (obj, key, value) => {
|
|
4
7
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
8
|
return value;
|
|
6
9
|
};
|
|
7
10
|
/*!
|
|
8
|
-
* @nutui/nutui-react v2.
|
|
11
|
+
* @nutui/nutui-react v2.2.0 Fri Nov 24 2023 15:04:56 GMT+0800 (China Standard Time)
|
|
9
12
|
* (c) 2023 @jdf2e.
|
|
10
13
|
* Released under the MIT License.
|
|
11
14
|
*/
|
|
12
|
-
|
|
13
|
-
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.ReactDOM));
|
|
14
|
-
})(this, function(exports2, React, ReactDOM) {
|
|
15
|
+
|
|
15
16
|
var _a;
|
|
16
|
-
"use strict";
|
|
17
17
|
function _interopNamespaceDefault(e2) {
|
|
18
18
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
19
19
|
if (e2) {
|
|
@@ -1094,7 +1094,6 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
1094
1094
|
}
|
|
1095
1095
|
) });
|
|
1096
1096
|
l.defaultProps = Pe;
|
|
1097
|
-
const style_icon = "";
|
|
1098
1097
|
const ComponentDefaults = {
|
|
1099
1098
|
className: "",
|
|
1100
1099
|
style: {}
|
|
@@ -2162,7 +2161,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2162
2161
|
function eq(value, other) {
|
|
2163
2162
|
return value === other || value !== value && other !== other;
|
|
2164
2163
|
}
|
|
2165
|
-
var isArguments = baseIsArguments(function() {
|
|
2164
|
+
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
2166
2165
|
return arguments;
|
|
2167
2166
|
}()) ? baseIsArguments : function(value) {
|
|
2168
2167
|
return isObjectLike2(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
@@ -2470,7 +2469,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2470
2469
|
height: height ? pxCheck(height) : "",
|
|
2471
2470
|
width: width ? pxCheck(width) : "",
|
|
2472
2471
|
overflow: radius !== void 0 && radius !== null ? "hidden" : "",
|
|
2473
|
-
borderRadius: radius !== void 0 && radius !== null ? pxCheck(radius) : ""
|
|
2472
|
+
borderRadius: radius !== void 0 && radius !== null ? pxCheck(radius) : "",
|
|
2473
|
+
...style
|
|
2474
2474
|
};
|
|
2475
2475
|
const imgStyle = {
|
|
2476
2476
|
objectFit: fit,
|
|
@@ -2615,111 +2615,72 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2615
2615
|
_setPrototypeOf$1(subClass, superClass);
|
|
2616
2616
|
}
|
|
2617
2617
|
var propTypes = { exports: {} };
|
|
2618
|
-
var
|
|
2619
|
-
var
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
var
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
var u = a2.$$typeof;
|
|
2637
|
-
switch (u) {
|
|
2638
|
-
case c6:
|
|
2639
|
-
switch (a2 = a2.type, a2) {
|
|
2640
|
-
case l2:
|
|
2641
|
-
case m:
|
|
2642
|
-
case e2:
|
|
2643
|
-
case g:
|
|
2644
|
-
case f:
|
|
2645
|
-
case p:
|
|
2646
|
-
return a2;
|
|
2647
|
-
default:
|
|
2648
|
-
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
2649
|
-
case k:
|
|
2650
|
-
case n:
|
|
2651
|
-
case t2:
|
|
2652
|
-
case r2:
|
|
2653
|
-
case h:
|
|
2654
|
-
return a2;
|
|
2655
|
-
default:
|
|
2656
|
-
return u;
|
|
2657
|
-
}
|
|
2658
|
-
}
|
|
2659
|
-
case d:
|
|
2660
|
-
return u;
|
|
2661
|
-
}
|
|
2662
|
-
}
|
|
2618
|
+
var ReactPropTypesSecret_1;
|
|
2619
|
+
var hasRequiredReactPropTypesSecret;
|
|
2620
|
+
function requireReactPropTypesSecret() {
|
|
2621
|
+
if (hasRequiredReactPropTypesSecret)
|
|
2622
|
+
return ReactPropTypesSecret_1;
|
|
2623
|
+
hasRequiredReactPropTypesSecret = 1;
|
|
2624
|
+
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2625
|
+
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
2626
|
+
return ReactPropTypesSecret_1;
|
|
2627
|
+
}
|
|
2628
|
+
var factoryWithThrowingShims;
|
|
2629
|
+
var hasRequiredFactoryWithThrowingShims;
|
|
2630
|
+
function requireFactoryWithThrowingShims() {
|
|
2631
|
+
if (hasRequiredFactoryWithThrowingShims)
|
|
2632
|
+
return factoryWithThrowingShims;
|
|
2633
|
+
hasRequiredFactoryWithThrowingShims = 1;
|
|
2634
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
2635
|
+
function emptyFunction() {
|
|
2663
2636
|
}
|
|
2664
|
-
function
|
|
2665
|
-
return z(a2) === m;
|
|
2637
|
+
function emptyFunctionWithReset() {
|
|
2666
2638
|
}
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
reactIs_production_min.isProfiler = function(a2) {
|
|
2709
|
-
return z(a2) === g;
|
|
2710
|
-
};
|
|
2711
|
-
reactIs_production_min.isStrictMode = function(a2) {
|
|
2712
|
-
return z(a2) === f;
|
|
2713
|
-
};
|
|
2714
|
-
reactIs_production_min.isSuspense = function(a2) {
|
|
2715
|
-
return z(a2) === p;
|
|
2716
|
-
};
|
|
2717
|
-
reactIs_production_min.isValidElementType = function(a2) {
|
|
2718
|
-
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);
|
|
2639
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
2640
|
+
factoryWithThrowingShims = function() {
|
|
2641
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
2642
|
+
if (secret === ReactPropTypesSecret) {
|
|
2643
|
+
return;
|
|
2644
|
+
}
|
|
2645
|
+
var err = new Error(
|
|
2646
|
+
"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"
|
|
2647
|
+
);
|
|
2648
|
+
err.name = "Invariant Violation";
|
|
2649
|
+
throw err;
|
|
2650
|
+
}
|
|
2651
|
+
shim.isRequired = shim;
|
|
2652
|
+
function getShim() {
|
|
2653
|
+
return shim;
|
|
2654
|
+
}
|
|
2655
|
+
var ReactPropTypes = {
|
|
2656
|
+
array: shim,
|
|
2657
|
+
bigint: shim,
|
|
2658
|
+
bool: shim,
|
|
2659
|
+
func: shim,
|
|
2660
|
+
number: shim,
|
|
2661
|
+
object: shim,
|
|
2662
|
+
string: shim,
|
|
2663
|
+
symbol: shim,
|
|
2664
|
+
any: shim,
|
|
2665
|
+
arrayOf: getShim,
|
|
2666
|
+
element: shim,
|
|
2667
|
+
elementType: shim,
|
|
2668
|
+
instanceOf: getShim,
|
|
2669
|
+
node: shim,
|
|
2670
|
+
objectOf: getShim,
|
|
2671
|
+
oneOf: getShim,
|
|
2672
|
+
oneOfType: getShim,
|
|
2673
|
+
shape: getShim,
|
|
2674
|
+
exact: getShim,
|
|
2675
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
2676
|
+
resetWarningCache: emptyFunction
|
|
2677
|
+
};
|
|
2678
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
2679
|
+
return ReactPropTypes;
|
|
2719
2680
|
};
|
|
2720
|
-
|
|
2721
|
-
return reactIs_production_min;
|
|
2681
|
+
return factoryWithThrowingShims;
|
|
2722
2682
|
}
|
|
2683
|
+
var reactIs = { exports: {} };
|
|
2723
2684
|
var reactIs_development = {};
|
|
2724
2685
|
/** @license React v16.13.1
|
|
2725
2686
|
* react-is.development.js
|
|
@@ -2883,6 +2844,110 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2883
2844
|
}
|
|
2884
2845
|
return reactIs_development;
|
|
2885
2846
|
}
|
|
2847
|
+
var reactIs_production_min = {};
|
|
2848
|
+
/** @license React v16.13.1
|
|
2849
|
+
* react-is.production.min.js
|
|
2850
|
+
*
|
|
2851
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2852
|
+
*
|
|
2853
|
+
* This source code is licensed under the MIT license found in the
|
|
2854
|
+
* LICENSE file in the root directory of this source tree.
|
|
2855
|
+
*/
|
|
2856
|
+
var hasRequiredReactIs_production_min;
|
|
2857
|
+
function requireReactIs_production_min() {
|
|
2858
|
+
if (hasRequiredReactIs_production_min)
|
|
2859
|
+
return reactIs_production_min;
|
|
2860
|
+
hasRequiredReactIs_production_min = 1;
|
|
2861
|
+
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;
|
|
2862
|
+
function z(a2) {
|
|
2863
|
+
if ("object" === typeof a2 && null !== a2) {
|
|
2864
|
+
var u = a2.$$typeof;
|
|
2865
|
+
switch (u) {
|
|
2866
|
+
case c6:
|
|
2867
|
+
switch (a2 = a2.type, a2) {
|
|
2868
|
+
case l2:
|
|
2869
|
+
case m:
|
|
2870
|
+
case e2:
|
|
2871
|
+
case g:
|
|
2872
|
+
case f:
|
|
2873
|
+
case p:
|
|
2874
|
+
return a2;
|
|
2875
|
+
default:
|
|
2876
|
+
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
2877
|
+
case k:
|
|
2878
|
+
case n:
|
|
2879
|
+
case t2:
|
|
2880
|
+
case r2:
|
|
2881
|
+
case h:
|
|
2882
|
+
return a2;
|
|
2883
|
+
default:
|
|
2884
|
+
return u;
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
case d:
|
|
2888
|
+
return u;
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
function A(a2) {
|
|
2893
|
+
return z(a2) === m;
|
|
2894
|
+
}
|
|
2895
|
+
reactIs_production_min.AsyncMode = l2;
|
|
2896
|
+
reactIs_production_min.ConcurrentMode = m;
|
|
2897
|
+
reactIs_production_min.ContextConsumer = k;
|
|
2898
|
+
reactIs_production_min.ContextProvider = h;
|
|
2899
|
+
reactIs_production_min.Element = c6;
|
|
2900
|
+
reactIs_production_min.ForwardRef = n;
|
|
2901
|
+
reactIs_production_min.Fragment = e2;
|
|
2902
|
+
reactIs_production_min.Lazy = t2;
|
|
2903
|
+
reactIs_production_min.Memo = r2;
|
|
2904
|
+
reactIs_production_min.Portal = d;
|
|
2905
|
+
reactIs_production_min.Profiler = g;
|
|
2906
|
+
reactIs_production_min.StrictMode = f;
|
|
2907
|
+
reactIs_production_min.Suspense = p;
|
|
2908
|
+
reactIs_production_min.isAsyncMode = function(a2) {
|
|
2909
|
+
return A(a2) || z(a2) === l2;
|
|
2910
|
+
};
|
|
2911
|
+
reactIs_production_min.isConcurrentMode = A;
|
|
2912
|
+
reactIs_production_min.isContextConsumer = function(a2) {
|
|
2913
|
+
return z(a2) === k;
|
|
2914
|
+
};
|
|
2915
|
+
reactIs_production_min.isContextProvider = function(a2) {
|
|
2916
|
+
return z(a2) === h;
|
|
2917
|
+
};
|
|
2918
|
+
reactIs_production_min.isElement = function(a2) {
|
|
2919
|
+
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c6;
|
|
2920
|
+
};
|
|
2921
|
+
reactIs_production_min.isForwardRef = function(a2) {
|
|
2922
|
+
return z(a2) === n;
|
|
2923
|
+
};
|
|
2924
|
+
reactIs_production_min.isFragment = function(a2) {
|
|
2925
|
+
return z(a2) === e2;
|
|
2926
|
+
};
|
|
2927
|
+
reactIs_production_min.isLazy = function(a2) {
|
|
2928
|
+
return z(a2) === t2;
|
|
2929
|
+
};
|
|
2930
|
+
reactIs_production_min.isMemo = function(a2) {
|
|
2931
|
+
return z(a2) === r2;
|
|
2932
|
+
};
|
|
2933
|
+
reactIs_production_min.isPortal = function(a2) {
|
|
2934
|
+
return z(a2) === d;
|
|
2935
|
+
};
|
|
2936
|
+
reactIs_production_min.isProfiler = function(a2) {
|
|
2937
|
+
return z(a2) === g;
|
|
2938
|
+
};
|
|
2939
|
+
reactIs_production_min.isStrictMode = function(a2) {
|
|
2940
|
+
return z(a2) === f;
|
|
2941
|
+
};
|
|
2942
|
+
reactIs_production_min.isSuspense = function(a2) {
|
|
2943
|
+
return z(a2) === p;
|
|
2944
|
+
};
|
|
2945
|
+
reactIs_production_min.isValidElementType = function(a2) {
|
|
2946
|
+
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);
|
|
2947
|
+
};
|
|
2948
|
+
reactIs_production_min.typeOf = z;
|
|
2949
|
+
return reactIs_production_min;
|
|
2950
|
+
}
|
|
2886
2951
|
var hasRequiredReactIs;
|
|
2887
2952
|
function requireReactIs() {
|
|
2888
2953
|
if (hasRequiredReactIs)
|
|
@@ -2971,16 +3036,6 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2971
3036
|
};
|
|
2972
3037
|
return objectAssign;
|
|
2973
3038
|
}
|
|
2974
|
-
var ReactPropTypesSecret_1;
|
|
2975
|
-
var hasRequiredReactPropTypesSecret;
|
|
2976
|
-
function requireReactPropTypesSecret() {
|
|
2977
|
-
if (hasRequiredReactPropTypesSecret)
|
|
2978
|
-
return ReactPropTypesSecret_1;
|
|
2979
|
-
hasRequiredReactPropTypesSecret = 1;
|
|
2980
|
-
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2981
|
-
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
2982
|
-
return ReactPropTypesSecret_1;
|
|
2983
|
-
}
|
|
2984
3039
|
var has;
|
|
2985
3040
|
var hasRequiredHas;
|
|
2986
3041
|
function requireHas() {
|
|
@@ -3498,61 +3553,6 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
3498
3553
|
};
|
|
3499
3554
|
return factoryWithTypeCheckers;
|
|
3500
3555
|
}
|
|
3501
|
-
var factoryWithThrowingShims;
|
|
3502
|
-
var hasRequiredFactoryWithThrowingShims;
|
|
3503
|
-
function requireFactoryWithThrowingShims() {
|
|
3504
|
-
if (hasRequiredFactoryWithThrowingShims)
|
|
3505
|
-
return factoryWithThrowingShims;
|
|
3506
|
-
hasRequiredFactoryWithThrowingShims = 1;
|
|
3507
|
-
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
3508
|
-
function emptyFunction() {
|
|
3509
|
-
}
|
|
3510
|
-
function emptyFunctionWithReset() {
|
|
3511
|
-
}
|
|
3512
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
3513
|
-
factoryWithThrowingShims = function() {
|
|
3514
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
3515
|
-
if (secret === ReactPropTypesSecret) {
|
|
3516
|
-
return;
|
|
3517
|
-
}
|
|
3518
|
-
var err = new Error(
|
|
3519
|
-
"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"
|
|
3520
|
-
);
|
|
3521
|
-
err.name = "Invariant Violation";
|
|
3522
|
-
throw err;
|
|
3523
|
-
}
|
|
3524
|
-
shim.isRequired = shim;
|
|
3525
|
-
function getShim() {
|
|
3526
|
-
return shim;
|
|
3527
|
-
}
|
|
3528
|
-
var ReactPropTypes = {
|
|
3529
|
-
array: shim,
|
|
3530
|
-
bigint: shim,
|
|
3531
|
-
bool: shim,
|
|
3532
|
-
func: shim,
|
|
3533
|
-
number: shim,
|
|
3534
|
-
object: shim,
|
|
3535
|
-
string: shim,
|
|
3536
|
-
symbol: shim,
|
|
3537
|
-
any: shim,
|
|
3538
|
-
arrayOf: getShim,
|
|
3539
|
-
element: shim,
|
|
3540
|
-
elementType: shim,
|
|
3541
|
-
instanceOf: getShim,
|
|
3542
|
-
node: shim,
|
|
3543
|
-
objectOf: getShim,
|
|
3544
|
-
oneOf: getShim,
|
|
3545
|
-
oneOfType: getShim,
|
|
3546
|
-
shape: getShim,
|
|
3547
|
-
exact: getShim,
|
|
3548
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
3549
|
-
resetWarningCache: emptyFunction
|
|
3550
|
-
};
|
|
3551
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
3552
|
-
return ReactPropTypes;
|
|
3553
|
-
};
|
|
3554
|
-
return factoryWithThrowingShims;
|
|
3555
|
-
}
|
|
3556
3556
|
if (process.env.NODE_ENV !== "production") {
|
|
3557
3557
|
var ReactIs = requireReactIs();
|
|
3558
3558
|
var throwOnDirectAccess = true;
|
|
@@ -5046,6 +5046,18 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5046
5046
|
}
|
|
5047
5047
|
);
|
|
5048
5048
|
};
|
|
5049
|
+
function requestAniFrame() {
|
|
5050
|
+
if (typeof window !== "undefined") {
|
|
5051
|
+
const _window = window;
|
|
5052
|
+
return _window.requestAnimationFrame || _window.webkitRequestAnimationFrame || function(callback) {
|
|
5053
|
+
_window.setTimeout(callback, 1e3 / 60);
|
|
5054
|
+
};
|
|
5055
|
+
}
|
|
5056
|
+
return (callback) => {
|
|
5057
|
+
setTimeout(callback, 1e3 / 60);
|
|
5058
|
+
};
|
|
5059
|
+
}
|
|
5060
|
+
const requestAniFrame$1 = requestAniFrame();
|
|
5049
5061
|
const defaultProps$1i = {
|
|
5050
5062
|
...ComponentDefaults,
|
|
5051
5063
|
target: "",
|
|
@@ -5106,11 +5118,11 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5106
5118
|
}
|
|
5107
5119
|
};
|
|
5108
5120
|
const scrollAnimation = () => {
|
|
5109
|
-
let cid =
|
|
5121
|
+
let cid = requestAniFrame$1(function fn() {
|
|
5110
5122
|
const t2 = duration - Math.max(0, startTime - +/* @__PURE__ */ new Date() + duration / 2);
|
|
5111
5123
|
const y = t2 * -scrollTop / duration + scrollTop;
|
|
5112
5124
|
scroll(y);
|
|
5113
|
-
cid =
|
|
5125
|
+
cid = requestAniFrame$1(fn);
|
|
5114
5126
|
if (t2 === duration || y === 0) {
|
|
5115
5127
|
window.cancelAnimationFrame(cid);
|
|
5116
5128
|
}
|
|
@@ -5119,11 +5131,6 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5119
5131
|
const initCancelAniFrame = () => {
|
|
5120
5132
|
window.cancelAnimationFrame = window.webkitCancelAnimationFrame;
|
|
5121
5133
|
};
|
|
5122
|
-
const requestAniFrame2 = () => {
|
|
5123
|
-
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) {
|
|
5124
|
-
window.setTimeout(callback, 1e3 / 60);
|
|
5125
|
-
};
|
|
5126
|
-
};
|
|
5127
5134
|
function addEventListener() {
|
|
5128
5135
|
var _a2, _b;
|
|
5129
5136
|
(_a2 = scrollEl.current) == null ? void 0 : _a2.addEventListener("scroll", scrollListener, false);
|
|
@@ -10996,30 +11003,46 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10996
11003
|
value: "",
|
|
10997
11004
|
dot: false,
|
|
10998
11005
|
max: 99,
|
|
10999
|
-
top: "
|
|
11000
|
-
right: "
|
|
11006
|
+
top: "4",
|
|
11007
|
+
right: "8",
|
|
11001
11008
|
color: ""
|
|
11002
11009
|
};
|
|
11003
11010
|
const Badge = (props) => {
|
|
11011
|
+
var _a2;
|
|
11004
11012
|
const { className, style, value, max, children, dot, top, right, color } = {
|
|
11005
11013
|
...defaultProps$1b,
|
|
11006
11014
|
...props
|
|
11007
11015
|
};
|
|
11008
11016
|
const classPrefix2 = "nut-badge";
|
|
11009
11017
|
const classes = classNames(classPrefix2, className);
|
|
11010
|
-
const contentClasses = classNames(
|
|
11011
|
-
{ [`${classPrefix2}__dot`]: dot },
|
|
11012
|
-
`${classPrefix2}__content`,
|
|
11013
|
-
`${classPrefix2}__sup`
|
|
11014
|
-
);
|
|
11015
11018
|
function content() {
|
|
11016
11019
|
if (dot || typeof value === "object")
|
|
11017
11020
|
return null;
|
|
11018
11021
|
if (typeof value === "number" && typeof max === "number") {
|
|
11019
|
-
return max < value ? `${max}+` : value
|
|
11022
|
+
return max < value ? `${max}+` : `${value}`;
|
|
11020
11023
|
}
|
|
11021
11024
|
return value;
|
|
11022
11025
|
}
|
|
11026
|
+
function isIcon() {
|
|
11027
|
+
if (typeof value === "object" && value)
|
|
11028
|
+
return value;
|
|
11029
|
+
}
|
|
11030
|
+
function isNumber() {
|
|
11031
|
+
if (typeof value === "number" && value)
|
|
11032
|
+
return value;
|
|
11033
|
+
}
|
|
11034
|
+
function isString() {
|
|
11035
|
+
if (typeof value === "string" && value)
|
|
11036
|
+
return value;
|
|
11037
|
+
}
|
|
11038
|
+
const contentClasses = classNames(
|
|
11039
|
+
{ [`${classPrefix2}__dot`]: dot },
|
|
11040
|
+
`${classPrefix2}__content`,
|
|
11041
|
+
{ [`${classPrefix2}__sup`]: isNumber() || isString() || dot },
|
|
11042
|
+
{
|
|
11043
|
+
[`${classPrefix2}__one`]: typeof content() === "string" && ((_a2 = `${content()}`) == null ? void 0 : _a2.length) === 1
|
|
11044
|
+
}
|
|
11045
|
+
);
|
|
11023
11046
|
const getStyle = () => {
|
|
11024
11047
|
const style2 = {};
|
|
11025
11048
|
style2.top = `${Number(top) || parseFloat(String(top)) || 0}px`;
|
|
@@ -11027,7 +11050,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11027
11050
|
style2.background = color;
|
|
11028
11051
|
return style2;
|
|
11029
11052
|
};
|
|
11030
|
-
return /* @__PURE__ */ React.createElement("div", { className: classes, style },
|
|
11053
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes, style }, isIcon() && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__icon` }, value), children, !isIcon() && /* @__PURE__ */ React.createElement("div", { className: contentClasses, style: getStyle() }, content()));
|
|
11031
11054
|
};
|
|
11032
11055
|
Badge.defaultProps = defaultProps$1b;
|
|
11033
11056
|
Badge.displayName = "NutBadge";
|
|
@@ -11184,18 +11207,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11184
11207
|
);
|
|
11185
11208
|
return children ? /* @__PURE__ */ React.createElement("div", { className: classes }, !disabled && children) : null;
|
|
11186
11209
|
};
|
|
11187
|
-
function requestAniFrame() {
|
|
11188
|
-
if (typeof window !== "undefined") {
|
|
11189
|
-
const _window = window;
|
|
11190
|
-
return _window.requestAnimationFrame || _window.webkitRequestAnimationFrame || function(callback) {
|
|
11191
|
-
_window.setTimeout(callback, 1e3 / 60);
|
|
11192
|
-
};
|
|
11193
|
-
}
|
|
11194
|
-
return function(callback) {
|
|
11195
|
-
setTimeout(callback, 1e3 / 60);
|
|
11196
|
-
};
|
|
11197
|
-
}
|
|
11198
|
-
const requestAniFrame$1 = requestAniFrame();
|
|
11199
11210
|
const defaultProps$17 = {
|
|
11200
11211
|
...ComponentDefaults,
|
|
11201
11212
|
tabStyle: {},
|
|
@@ -18711,6 +18722,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18711
18722
|
};
|
|
18712
18723
|
const readFile = (files) => {
|
|
18713
18724
|
files.forEach((file, index) => {
|
|
18725
|
+
var _a2;
|
|
18714
18726
|
const formData = new FormData();
|
|
18715
18727
|
formData.append(name, file);
|
|
18716
18728
|
const fileItem = new FileItem();
|
|
@@ -18721,7 +18733,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18721
18733
|
fileItem.uid = file.lastModified + fileItem.uid;
|
|
18722
18734
|
fileItem.message = autoUpload ? locale.uploader.readyUpload : locale.uploader.waitingUpload;
|
|
18723
18735
|
executeUpload(fileItem, index);
|
|
18724
|
-
if (preview && file.type.includes("image")) {
|
|
18736
|
+
if (preview && ((_a2 = file.type) == null ? void 0 : _a2.includes("image"))) {
|
|
18725
18737
|
const reader = new FileReader();
|
|
18726
18738
|
reader.onload = (event) => {
|
|
18727
18739
|
fileItem.url = event.target.result;
|
|
@@ -18730,7 +18742,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18730
18742
|
};
|
|
18731
18743
|
reader.readAsDataURL(file);
|
|
18732
18744
|
} else {
|
|
18733
|
-
|
|
18745
|
+
fileList.push(fileItem);
|
|
18746
|
+
setFileList([...fileList]);
|
|
18734
18747
|
}
|
|
18735
18748
|
});
|
|
18736
18749
|
};
|
|
@@ -19060,7 +19073,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19060
19073
|
};
|
|
19061
19074
|
const confirm$1 = confirm;
|
|
19062
19075
|
const Content = (props) => {
|
|
19063
|
-
const { visible, title, footer, footerDirection, onClick, children } = props;
|
|
19076
|
+
const { visible, title, header, footer, footerDirection, onClick, children } = props;
|
|
19064
19077
|
const classPrefix2 = "nut-dialog";
|
|
19065
19078
|
const renderHeader = () => {
|
|
19066
19079
|
return title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__header` }, title) : null;
|
|
@@ -19086,6 +19099,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19086
19099
|
style: props.style,
|
|
19087
19100
|
onClick: (e2) => handleClick2(e2)
|
|
19088
19101
|
},
|
|
19102
|
+
header,
|
|
19089
19103
|
/* @__PURE__ */ React.createElement(
|
|
19090
19104
|
"div",
|
|
19091
19105
|
{
|
|
@@ -19208,9 +19222,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19208
19222
|
return footer || /* @__PURE__ */ React.createElement(React.Fragment, null, !hideCancelButton && /* @__PURE__ */ React.createElement(
|
|
19209
19223
|
Button,
|
|
19210
19224
|
{
|
|
19211
|
-
|
|
19225
|
+
type: "default",
|
|
19212
19226
|
fill: "outline",
|
|
19213
|
-
|
|
19227
|
+
size: "small",
|
|
19214
19228
|
className: `${classPrefix2}__footer-cancel`,
|
|
19215
19229
|
onClick: (e2) => handleCancel(e2)
|
|
19216
19230
|
},
|
|
@@ -19451,7 +19465,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19451
19465
|
};
|
|
19452
19466
|
};
|
|
19453
19467
|
const handleScroll = () => {
|
|
19454
|
-
|
|
19468
|
+
requestAniFrame$1(() => {
|
|
19455
19469
|
if (!isScrollAtBottom() || !hasMore || isInfiniting) {
|
|
19456
19470
|
return false;
|
|
19457
19471
|
}
|
|
@@ -19500,11 +19514,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19500
19514
|
onRefresh && onRefresh(refreshDone);
|
|
19501
19515
|
}
|
|
19502
19516
|
};
|
|
19503
|
-
const requestAniFrame2 = () => {
|
|
19504
|
-
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function fn(callback) {
|
|
19505
|
-
window.setTimeout(callback, 1e3 / 60);
|
|
19506
|
-
};
|
|
19507
|
-
};
|
|
19508
19517
|
const getWindowScrollTop = () => {
|
|
19509
19518
|
return window.scrollY !== void 0 ? window.scrollY : (document.documentElement || document.body.parentNode || document.body).scrollTop;
|
|
19510
19519
|
};
|
|
@@ -22386,8 +22395,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22386
22395
|
Indicator.defaultProps = defaultProps$i;
|
|
22387
22396
|
Indicator.displayName = "NutIndicator";
|
|
22388
22397
|
const defaultProps$h = {
|
|
22389
|
-
width: typeof window === "object" ? window.innerWidth : 375,
|
|
22390
|
-
height: 0,
|
|
22391
22398
|
duration: 500,
|
|
22392
22399
|
defaultValue: 0,
|
|
22393
22400
|
autoPlay: 0,
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
display: flex;
|
|
17
17
|
align-items: center;
|
|
18
18
|
margin-bottom: 20px;
|
|
19
|
-
font-size: $font-size-
|
|
19
|
+
font-size: $font-size-small;
|
|
20
20
|
line-height: 14px;
|
|
21
21
|
color: $title-color;
|
|
22
22
|
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
background: $button-primary-background-color;
|
|
46
46
|
border-radius: 21px;
|
|
47
47
|
font-size: 15px;
|
|
48
|
-
color: $primary-text
|
|
48
|
+
color: $color-primary-text;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|