@nutui/nutui-react 2.6.3 → 2.6.5
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 +26 -0
- package/dist/esm/ActionSheet.js +0 -1
- package/dist/esm/Address.js +0 -1
- package/dist/esm/Animate.js +0 -1
- package/dist/esm/Avatar.js +2 -3
- package/dist/esm/AvatarCropper.js +0 -1
- package/dist/esm/AvatarGroup.js +0 -1
- package/dist/esm/BackTop.js +0 -1
- package/dist/esm/Barrage.js +0 -1
- package/dist/esm/Calendar.js +0 -1
- package/dist/esm/CalendarCard.js +0 -1
- package/dist/esm/CalendarItem.js +3 -4
- package/dist/esm/Card.js +0 -1
- package/dist/esm/Cell.js +0 -1
- package/dist/esm/CellGroup.js +0 -1
- package/dist/esm/CircleProgress.js +3 -5
- package/dist/esm/Col.js +0 -1
- package/dist/esm/Collapse.js +0 -1
- package/dist/esm/CountDown.js +0 -1
- package/dist/esm/Divider.js +0 -1
- package/dist/esm/Drag.js +1 -2
- package/dist/esm/Elevator.js +0 -1
- package/dist/esm/Ellipsis.js +0 -1
- package/dist/esm/Empty.js +0 -1
- package/dist/esm/FixedNav.js +0 -1
- package/dist/esm/Form.js +0 -1
- package/dist/esm/Grid.js +0 -1
- package/dist/esm/Image.js +2 -3
- package/dist/esm/ImagePreview.js +8 -10
- package/dist/esm/Indicator.js +0 -1
- package/dist/esm/InfiniteLoading.js +0 -1
- package/dist/esm/Input.js +6 -9
- package/dist/esm/InputNumber.js +0 -1
- package/dist/esm/Layout.js +0 -1
- package/dist/esm/Loading.js +0 -1
- package/dist/esm/Menu/style/style.css +1 -1
- package/dist/esm/Menu.js +0 -1
- package/dist/esm/MenuItem/style/style.css +1 -1
- package/dist/esm/NavBar.js +0 -1
- package/dist/esm/NoticeBar.js +0 -1
- package/dist/esm/NumberKeyboard.js +1 -2
- package/dist/esm/Pagination.js +0 -1
- package/dist/esm/Popover.js +4 -8
- package/dist/esm/Price.js +0 -1
- package/dist/esm/Progress.js +0 -1
- package/dist/esm/Range.js +0 -1
- package/dist/esm/Rate.js +0 -1
- package/dist/esm/Row.js +0 -1
- package/dist/esm/SearchBar.js +6 -7
- package/dist/esm/ShortPassword.js +2 -2
- package/dist/esm/SideNavBar.js +4 -5
- package/dist/esm/Signature.js +0 -1
- package/dist/esm/Skeleton.js +0 -1
- package/dist/esm/Space.js +0 -1
- package/dist/esm/Step.js +0 -1
- package/dist/esm/Steps.js +1 -2
- package/dist/esm/Sticky.js +0 -1
- package/dist/esm/Switch.js +0 -1
- package/dist/esm/Tabbar.js +0 -1
- package/dist/esm/Table/style/style.css +1 -1
- package/dist/esm/Table.js +1 -2
- package/dist/esm/Tag.js +0 -1
- package/dist/esm/TextArea.js +0 -1
- package/dist/esm/TimeDetail.js +0 -1
- package/dist/esm/TimeSelect.js +0 -1
- package/dist/esm/Tour.js +0 -1
- package/dist/esm/TrendArrow.js +0 -1
- package/dist/esm/Uploader.js +2 -3
- package/dist/esm/Video.js +0 -1
- package/dist/esm/VirtualList.js +0 -1
- package/dist/esm/WaterMark.js +0 -1
- package/dist/esm/badge2.js +0 -1
- package/dist/esm/cascader2.js +4 -5
- package/dist/esm/checkbox2.js +2 -3
- package/dist/esm/collapseitem2.js +0 -1
- package/dist/esm/griditem2.js +0 -1
- package/dist/esm/menuitem2.js +0 -1
- package/dist/esm/overlay2.js +1 -2
- package/dist/esm/popup2.js +0 -1
- package/dist/esm/safearea2.js +1 -0
- package/dist/esm/tabs2.js +5 -6
- 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 +152 -230
- package/dist/nutui.react.umd.js +152 -230
- package/dist/packages/menu/menu.scss +1 -0
- package/dist/packages/menuitem/menuitem.scss +1 -0
- package/dist/packages/table/table.scss +2 -1
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +5 -1
- package/package.json +1 -1
- package/dist/types/utils/use-lock-fn.d.ts +0 -2
package/dist/nutui.react.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
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
3
|
})(this, function(exports2, React, ReactDOM) {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* @nutui/nutui-react v2.6.
|
|
5
|
+
* @nutui/nutui-react v2.6.5 Fri May 17 2024 15:42:52 GMT+0800 (China Standard Time)
|
|
6
6
|
* (c) 2023 @jdf2e.
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
@@ -1145,7 +1145,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
1145
1145
|
style: {}
|
|
1146
1146
|
};
|
|
1147
1147
|
const prefixCls$2 = "nut-button";
|
|
1148
|
-
const defaultProps$
|
|
1148
|
+
const defaultProps$1t = {
|
|
1149
1149
|
...ComponentDefaults,
|
|
1150
1150
|
color: "",
|
|
1151
1151
|
type: "default",
|
|
@@ -1181,7 +1181,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
1181
1181
|
onClick,
|
|
1182
1182
|
...rest
|
|
1183
1183
|
} = {
|
|
1184
|
-
...defaultProps$
|
|
1184
|
+
...defaultProps$1t,
|
|
1185
1185
|
...props
|
|
1186
1186
|
};
|
|
1187
1187
|
const getStyle = React.useCallback(() => {
|
|
@@ -1240,7 +1240,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
1240
1240
|
);
|
|
1241
1241
|
Button.displayName = "NutButton";
|
|
1242
1242
|
const CellGroupContext = React.createContext(null);
|
|
1243
|
-
const defaultProps$
|
|
1243
|
+
const defaultProps$1s = {
|
|
1244
1244
|
...ComponentDefaults,
|
|
1245
1245
|
title: "",
|
|
1246
1246
|
description: "",
|
|
@@ -1249,7 +1249,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
1249
1249
|
const classPrefix$r = "nut-cell-group";
|
|
1250
1250
|
const CellGroup = (props) => {
|
|
1251
1251
|
const { children, className, title, description, divider, ...rest } = {
|
|
1252
|
-
...defaultProps$
|
|
1252
|
+
...defaultProps$1s,
|
|
1253
1253
|
...props
|
|
1254
1254
|
};
|
|
1255
1255
|
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$r, className), ...rest }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$r}-title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$r}-description` }, description) : null, /* @__PURE__ */ React.createElement(
|
|
@@ -1260,9 +1260,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
1260
1260
|
/* @__PURE__ */ React.createElement(CellGroupContext.Provider, { value: { divider } }, children)
|
|
1261
1261
|
));
|
|
1262
1262
|
};
|
|
1263
|
-
CellGroup.defaultProps = defaultProps$1t;
|
|
1264
1263
|
CellGroup.displayName = "NutCellGroup";
|
|
1265
|
-
const defaultProps$
|
|
1264
|
+
const defaultProps$1r = {
|
|
1266
1265
|
...ComponentDefaults,
|
|
1267
1266
|
title: null,
|
|
1268
1267
|
description: null,
|
|
@@ -1287,7 +1286,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
1287
1286
|
style,
|
|
1288
1287
|
...rest
|
|
1289
1288
|
} = {
|
|
1290
|
-
...defaultProps$
|
|
1289
|
+
...defaultProps$1r,
|
|
1291
1290
|
...props
|
|
1292
1291
|
};
|
|
1293
1292
|
const handleClick2 = (event) => {
|
|
@@ -1320,7 +1319,6 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
1320
1319
|
(ctx2 == null ? void 0 : ctx2.divider) ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$q}-divider` }) : null
|
|
1321
1320
|
);
|
|
1322
1321
|
};
|
|
1323
|
-
Cell.defaultProps = defaultProps$1s;
|
|
1324
1322
|
Cell.displayName = "NutCell";
|
|
1325
1323
|
Cell.Group = CellGroup;
|
|
1326
1324
|
var INFINITY = 1 / 0;
|
|
@@ -2482,7 +2480,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2482
2480
|
const pxCheck = (value) => {
|
|
2483
2481
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
2484
2482
|
};
|
|
2485
|
-
const defaultProps$
|
|
2483
|
+
const defaultProps$1q = {
|
|
2486
2484
|
...ComponentDefaults,
|
|
2487
2485
|
fit: "fill",
|
|
2488
2486
|
position: "center",
|
|
@@ -2508,10 +2506,11 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2508
2506
|
error,
|
|
2509
2507
|
loading,
|
|
2510
2508
|
lazy,
|
|
2509
|
+
draggable,
|
|
2511
2510
|
onClick,
|
|
2512
2511
|
onLoad,
|
|
2513
2512
|
onError
|
|
2514
|
-
} = { ...defaultProps$
|
|
2513
|
+
} = { ...defaultProps$1q, ...props };
|
|
2515
2514
|
const [innerLoading, setInnerLoading] = React.useState(false);
|
|
2516
2515
|
const [isError, setIsError] = React.useState(false);
|
|
2517
2516
|
const [complete, setComplete] = React.useState(false);
|
|
@@ -2636,7 +2635,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2636
2635
|
loading: "lazy",
|
|
2637
2636
|
onLoad: handleLoad,
|
|
2638
2637
|
onError: handleError,
|
|
2639
|
-
draggable
|
|
2638
|
+
draggable
|
|
2640
2639
|
}
|
|
2641
2640
|
) : /* @__PURE__ */ React.createElement(
|
|
2642
2641
|
"img",
|
|
@@ -2648,14 +2647,13 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
2648
2647
|
alt,
|
|
2649
2648
|
onLoad: handleLoad,
|
|
2650
2649
|
onError: handleError,
|
|
2651
|
-
draggable
|
|
2650
|
+
draggable
|
|
2652
2651
|
}
|
|
2653
2652
|
),
|
|
2654
2653
|
renderLoading(),
|
|
2655
2654
|
renderErrorImg()
|
|
2656
2655
|
);
|
|
2657
2656
|
};
|
|
2658
|
-
Image$1.defaultProps = defaultProps$1r;
|
|
2659
2657
|
Image$1.displayName = "NutImage";
|
|
2660
2658
|
function _extends$4() {
|
|
2661
2659
|
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
@@ -4616,7 +4614,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4616
4614
|
setInnerVisible(false);
|
|
4617
4615
|
}
|
|
4618
4616
|
}, [visible]);
|
|
4619
|
-
useLockScroll(nodeRef, !!
|
|
4617
|
+
useLockScroll(nodeRef, !!lockScroll && innerVisible);
|
|
4620
4618
|
const classes = classNames(classPrefix2, className);
|
|
4621
4619
|
const styles = {
|
|
4622
4620
|
...style
|
|
@@ -4656,10 +4654,9 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4656
4654
|
)
|
|
4657
4655
|
));
|
|
4658
4656
|
};
|
|
4659
|
-
Overlay.defaultProps = defaultOverlayProps;
|
|
4660
4657
|
Overlay.displayName = "NutOverlay";
|
|
4661
4658
|
const DataContext$1 = React.createContext({});
|
|
4662
|
-
const defaultProps$
|
|
4659
|
+
const defaultProps$1p = {
|
|
4663
4660
|
...ComponentDefaults,
|
|
4664
4661
|
span: "24",
|
|
4665
4662
|
offset: "0",
|
|
@@ -4667,7 +4664,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4667
4664
|
};
|
|
4668
4665
|
const Col = (props) => {
|
|
4669
4666
|
const { className, style, span, offset, children, onClick } = {
|
|
4670
|
-
...defaultProps$
|
|
4667
|
+
...defaultProps$1p,
|
|
4671
4668
|
...props
|
|
4672
4669
|
};
|
|
4673
4670
|
const [colName, setColName] = React.useState("");
|
|
@@ -4699,9 +4696,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4699
4696
|
children
|
|
4700
4697
|
);
|
|
4701
4698
|
};
|
|
4702
|
-
Col.defaultProps = defaultProps$1q;
|
|
4703
4699
|
Col.displayName = "NutCol";
|
|
4704
|
-
const defaultProps$
|
|
4700
|
+
const defaultProps$1o = {
|
|
4705
4701
|
...ComponentDefaults,
|
|
4706
4702
|
contentPosition: "center",
|
|
4707
4703
|
direction: "horizontal"
|
|
@@ -4709,7 +4705,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4709
4705
|
const classPrefix$n = `nut-divider`;
|
|
4710
4706
|
const Divider = (props) => {
|
|
4711
4707
|
const { children, contentPosition, style, className, direction, ...rest } = {
|
|
4712
|
-
...defaultProps$
|
|
4708
|
+
...defaultProps$1o,
|
|
4713
4709
|
...props
|
|
4714
4710
|
};
|
|
4715
4711
|
const classes = direction === "horizontal" ? classNames({
|
|
@@ -4724,14 +4720,13 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4724
4720
|
});
|
|
4725
4721
|
return /* @__PURE__ */ React.createElement("div", { className: `${classes} ${className || ""}`, style, ...rest }, children);
|
|
4726
4722
|
};
|
|
4727
|
-
Divider.defaultProps = defaultProps$1p;
|
|
4728
4723
|
Divider.displayName = "NutDivider";
|
|
4729
4724
|
const gridContext = {
|
|
4730
4725
|
onClick: (item, index) => {
|
|
4731
4726
|
}
|
|
4732
4727
|
};
|
|
4733
4728
|
const GridContext = React.createContext(gridContext);
|
|
4734
|
-
const defaultProps$
|
|
4729
|
+
const defaultProps$1n = {
|
|
4735
4730
|
text: "",
|
|
4736
4731
|
columns: 4,
|
|
4737
4732
|
gap: 0,
|
|
@@ -4757,7 +4752,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4757
4752
|
onClick,
|
|
4758
4753
|
...rest
|
|
4759
4754
|
} = {
|
|
4760
|
-
...defaultProps$
|
|
4755
|
+
...defaultProps$1n,
|
|
4761
4756
|
...props
|
|
4762
4757
|
};
|
|
4763
4758
|
const classPrefix2 = "nut-grid-item";
|
|
@@ -4815,9 +4810,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4815
4810
|
/* @__PURE__ */ React.createElement("div", { className: contentClass() }, children && /* @__PURE__ */ React.createElement(React.Fragment, null, children), text && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-text` }, text))
|
|
4816
4811
|
);
|
|
4817
4812
|
};
|
|
4818
|
-
GridItem.defaultProps = defaultProps$1o;
|
|
4819
4813
|
GridItem.displayName = "NutGridItem";
|
|
4820
|
-
const defaultProps$
|
|
4814
|
+
const defaultProps$1m = {
|
|
4821
4815
|
columns: 4,
|
|
4822
4816
|
gap: 0,
|
|
4823
4817
|
center: true,
|
|
@@ -4838,7 +4832,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4838
4832
|
className,
|
|
4839
4833
|
onClick,
|
|
4840
4834
|
...rest
|
|
4841
|
-
} = { ...defaultProps$
|
|
4835
|
+
} = { ...defaultProps$1m, ...props };
|
|
4842
4836
|
const childrenDom = React.Children.toArray(children);
|
|
4843
4837
|
const classPrefix2 = "nut-grid";
|
|
4844
4838
|
const rootClass = () => {
|
|
@@ -4872,18 +4866,16 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4872
4866
|
});
|
|
4873
4867
|
})));
|
|
4874
4868
|
};
|
|
4875
|
-
Grid.defaultProps = defaultProps$1n;
|
|
4876
4869
|
Grid.displayName = "NutGrid";
|
|
4877
4870
|
Grid.Item = GridItem;
|
|
4878
|
-
const defaultProps$
|
|
4871
|
+
const defaultProps$1l = {};
|
|
4879
4872
|
const Layout = (props) => {
|
|
4880
|
-
({ ...defaultProps$
|
|
4873
|
+
({ ...defaultProps$1l, ...props });
|
|
4881
4874
|
return /* @__PURE__ */ React.createElement("div", { className: "nut-layout" }, "Layout");
|
|
4882
4875
|
};
|
|
4883
|
-
Layout.defaultProps = defaultProps$1m;
|
|
4884
4876
|
Layout.displayName = "NutLayout";
|
|
4885
4877
|
const classPrefix$m = "nut-row";
|
|
4886
|
-
const defaultProps$
|
|
4878
|
+
const defaultProps$1k = {
|
|
4887
4879
|
...ComponentDefaults,
|
|
4888
4880
|
type: "",
|
|
4889
4881
|
justify: "start",
|
|
@@ -4903,7 +4895,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4903
4895
|
gutter,
|
|
4904
4896
|
onClick
|
|
4905
4897
|
} = {
|
|
4906
|
-
...defaultProps$
|
|
4898
|
+
...defaultProps$1k,
|
|
4907
4899
|
...props
|
|
4908
4900
|
};
|
|
4909
4901
|
const getClass = (prefix2, type22) => {
|
|
@@ -4935,15 +4927,14 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4935
4927
|
children
|
|
4936
4928
|
));
|
|
4937
4929
|
};
|
|
4938
|
-
Row.defaultProps = defaultProps$1l;
|
|
4939
4930
|
Row.displayName = "NutRow";
|
|
4940
4931
|
const prefixCls$1 = "nut-space";
|
|
4941
|
-
const defaultProps$
|
|
4932
|
+
const defaultProps$1j = {
|
|
4942
4933
|
direction: "horizontal"
|
|
4943
4934
|
};
|
|
4944
4935
|
const Space = (props) => {
|
|
4945
4936
|
const { className, style, children, wrap, align, direction, justify } = {
|
|
4946
|
-
...defaultProps$
|
|
4937
|
+
...defaultProps$1j,
|
|
4947
4938
|
...props
|
|
4948
4939
|
};
|
|
4949
4940
|
const cls = classNames(
|
|
@@ -4958,7 +4949,6 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4958
4949
|
return child !== null && child !== void 0 && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls$1}-item` }, child);
|
|
4959
4950
|
}));
|
|
4960
4951
|
};
|
|
4961
|
-
Space.defaultProps = defaultProps$1k;
|
|
4962
4952
|
Space.displayName = "NutSpace";
|
|
4963
4953
|
function isWindow(val) {
|
|
4964
4954
|
return val === window;
|
|
@@ -5012,7 +5002,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5012
5002
|
stop2.current = true;
|
|
5013
5003
|
};
|
|
5014
5004
|
}
|
|
5015
|
-
const defaultProps$
|
|
5005
|
+
const defaultProps$1i = {
|
|
5016
5006
|
...ComponentDefaults,
|
|
5017
5007
|
position: "top",
|
|
5018
5008
|
threshold: 0,
|
|
@@ -5030,7 +5020,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5030
5020
|
threshold,
|
|
5031
5021
|
onChange,
|
|
5032
5022
|
...rest
|
|
5033
|
-
} = { ...defaultProps$
|
|
5023
|
+
} = { ...defaultProps$1i, ...props };
|
|
5034
5024
|
const stickyRef = React.useRef(null);
|
|
5035
5025
|
const rootRef = React.useRef(null);
|
|
5036
5026
|
const [isFixed, setIsFixed] = React.useState(false);
|
|
@@ -5146,7 +5136,6 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5146
5136
|
/* @__PURE__ */ React.createElement("div", { className: "nut-sticky-box", ref: stickyRef, style: stickyStyle }, children)
|
|
5147
5137
|
);
|
|
5148
5138
|
};
|
|
5149
|
-
Sticky.defaultProps = defaultProps$1j;
|
|
5150
5139
|
Sticky.displayName = "NutSticky";
|
|
5151
5140
|
const classPrefix$k = "nut-safe-area";
|
|
5152
5141
|
const SafeArea = (props) => {
|
|
@@ -5160,7 +5149,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5160
5149
|
}
|
|
5161
5150
|
);
|
|
5162
5151
|
};
|
|
5163
|
-
|
|
5152
|
+
SafeArea.displayName = "NutSafeArea";
|
|
5153
|
+
const defaultProps$1h = {
|
|
5164
5154
|
...ComponentDefaults,
|
|
5165
5155
|
target: "",
|
|
5166
5156
|
threshold: 200,
|
|
@@ -5179,7 +5169,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5179
5169
|
style,
|
|
5180
5170
|
onClick
|
|
5181
5171
|
} = {
|
|
5182
|
-
...defaultProps$
|
|
5172
|
+
...defaultProps$1h,
|
|
5183
5173
|
...props
|
|
5184
5174
|
};
|
|
5185
5175
|
const classPrefix2 = "nut-backtop";
|
|
@@ -5276,7 +5266,6 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5276
5266
|
children || /* @__PURE__ */ React.createElement(e$1, { width: 19, height: 19, className: "nut-backtop-main" })
|
|
5277
5267
|
);
|
|
5278
5268
|
};
|
|
5279
|
-
BackTop.defaultProps = defaultProps$1i;
|
|
5280
5269
|
BackTop.displayName = "NutBackTop";
|
|
5281
5270
|
function clamp$2(v, min, max) {
|
|
5282
5271
|
return Math.max(min, Math.min(v, max));
|
|
@@ -10394,7 +10383,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10394
10383
|
});
|
|
10395
10384
|
const animated = host.animated;
|
|
10396
10385
|
const elevatorContext = React.createContext({});
|
|
10397
|
-
const defaultProps$
|
|
10386
|
+
const defaultProps$1g = {
|
|
10398
10387
|
...ComponentDefaults,
|
|
10399
10388
|
height: "200px",
|
|
10400
10389
|
floorKey: "title",
|
|
@@ -10420,7 +10409,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10420
10409
|
children,
|
|
10421
10410
|
...rest
|
|
10422
10411
|
} = {
|
|
10423
|
-
...defaultProps$
|
|
10412
|
+
...defaultProps$1g,
|
|
10424
10413
|
...props
|
|
10425
10414
|
};
|
|
10426
10415
|
const classPrefix2 = "nut-elevator";
|
|
@@ -10596,10 +10585,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10596
10585
|
})
|
|
10597
10586
|
))) : null);
|
|
10598
10587
|
};
|
|
10599
|
-
Elevator.defaultProps = defaultProps$1h;
|
|
10600
10588
|
Elevator.displayName = "NutElevator";
|
|
10601
10589
|
Elevator.Context = elevatorContext;
|
|
10602
|
-
const defaultProps$
|
|
10590
|
+
const defaultProps$1f = {
|
|
10603
10591
|
...ComponentDefaults,
|
|
10604
10592
|
activeText: "",
|
|
10605
10593
|
inactiveText: "",
|
|
@@ -10627,7 +10615,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10627
10615
|
content,
|
|
10628
10616
|
...rest
|
|
10629
10617
|
} = {
|
|
10630
|
-
...defaultProps$
|
|
10618
|
+
...defaultProps$1f,
|
|
10631
10619
|
...props
|
|
10632
10620
|
};
|
|
10633
10621
|
const classPrefix2 = "nut-fixednav";
|
|
@@ -10679,9 +10667,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10679
10667
|
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-btn`, onClick: () => onUpdateValue() }, content || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(e$d, { color: "#fff" }), /* @__PURE__ */ React.createElement("div", { className: "text" }, visible ? activeText || locale.fixednav.activeText : inactiveText || locale.fixednav.inactiveText)))
|
|
10680
10668
|
);
|
|
10681
10669
|
};
|
|
10682
|
-
FixedNav.defaultProps = defaultProps$1g;
|
|
10683
10670
|
FixedNav.displayName = "NutFixedNav";
|
|
10684
|
-
const defaultProps$
|
|
10671
|
+
const defaultProps$1e = {
|
|
10685
10672
|
...ComponentDefaults,
|
|
10686
10673
|
left: "",
|
|
10687
10674
|
right: "",
|
|
@@ -10706,7 +10693,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10706
10693
|
zIndex,
|
|
10707
10694
|
onBackClick
|
|
10708
10695
|
} = {
|
|
10709
|
-
...defaultProps$
|
|
10696
|
+
...defaultProps$1e,
|
|
10710
10697
|
...props
|
|
10711
10698
|
};
|
|
10712
10699
|
const classPrefix2 = "nut-navbar";
|
|
@@ -10782,9 +10769,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10782
10769
|
const cls = classNames(classPrefix2, classes, className);
|
|
10783
10770
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-placeholder` }, renderWrapper()) : renderWrapper());
|
|
10784
10771
|
};
|
|
10785
|
-
NavBar.defaultProps = defaultProps$1f;
|
|
10786
10772
|
NavBar.displayName = "NutNavBar";
|
|
10787
|
-
const defaultProps$
|
|
10773
|
+
const defaultProps$1d = {
|
|
10788
10774
|
...ComponentDefaults,
|
|
10789
10775
|
position: "center",
|
|
10790
10776
|
transition: "",
|
|
@@ -10837,7 +10823,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10837
10823
|
afterShow,
|
|
10838
10824
|
afterClose,
|
|
10839
10825
|
onClick
|
|
10840
|
-
} = { ...defaultProps$
|
|
10826
|
+
} = { ...defaultProps$1d, ...props };
|
|
10841
10827
|
const nodeRef = React.useRef(null);
|
|
10842
10828
|
let innerIndex = zIndex || _zIndex;
|
|
10843
10829
|
const [index, setIndex] = React.useState(innerIndex);
|
|
@@ -10978,7 +10964,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10978
10964
|
}, [position, transition]);
|
|
10979
10965
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, renderToContainer(portal, renderNode()));
|
|
10980
10966
|
};
|
|
10981
|
-
Popup.defaultProps = defaultProps$1e;
|
|
10982
10967
|
Popup.displayName = "NutPopup";
|
|
10983
10968
|
const handleClick = (e2) => {
|
|
10984
10969
|
e2.stopPropagation();
|
|
@@ -10994,7 +10979,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10994
10979
|
}
|
|
10995
10980
|
};
|
|
10996
10981
|
const OffsetContext = React.createContext(20);
|
|
10997
|
-
const defaultProps$
|
|
10982
|
+
const defaultProps$1c = {
|
|
10998
10983
|
...ComponentDefaults,
|
|
10999
10984
|
position: "left",
|
|
11000
10985
|
width: "80%"
|
|
@@ -11009,12 +10994,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11009
10994
|
children,
|
|
11010
10995
|
className,
|
|
11011
10996
|
onClose,
|
|
10997
|
+
indent,
|
|
11012
10998
|
...rest
|
|
11013
10999
|
} = {
|
|
11014
|
-
...defaultProps$
|
|
11000
|
+
...defaultProps$1c,
|
|
11015
11001
|
...props
|
|
11016
11002
|
};
|
|
11017
|
-
const
|
|
11003
|
+
const innerIndent = indent ? Number(indent) : 20;
|
|
11018
11004
|
return /* @__PURE__ */ React.createElement(
|
|
11019
11005
|
Popup,
|
|
11020
11006
|
{
|
|
@@ -11033,17 +11019,16 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11033
11019
|
"div",
|
|
11034
11020
|
{
|
|
11035
11021
|
className: `${classPrefix2}-title ${classPrefix2}-border-bt`,
|
|
11036
|
-
style: { paddingLeft: `${
|
|
11022
|
+
style: { paddingLeft: `${innerIndent}px` }
|
|
11037
11023
|
},
|
|
11038
11024
|
title,
|
|
11039
11025
|
" ",
|
|
11040
11026
|
/* @__PURE__ */ React.createElement("i", { className: "arrow-icon arrow-down" })
|
|
11041
11027
|
),
|
|
11042
|
-
/* @__PURE__ */ React.createElement(OffsetContext.Provider, { value:
|
|
11028
|
+
/* @__PURE__ */ React.createElement(OffsetContext.Provider, { value: innerIndent }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, children))
|
|
11043
11029
|
)))
|
|
11044
11030
|
);
|
|
11045
11031
|
};
|
|
11046
|
-
SideNavBar.defaultProps = defaultProps$1d;
|
|
11047
11032
|
SideNavBar.displayName = "NutSideNavBar";
|
|
11048
11033
|
const SideNavBarItem = (props) => {
|
|
11049
11034
|
const classPrefix2 = "nut-subsidenavbar";
|
|
@@ -11062,13 +11047,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11062
11047
|
title
|
|
11063
11048
|
);
|
|
11064
11049
|
};
|
|
11065
|
-
const defaultProps$
|
|
11050
|
+
const defaultProps$1b = {
|
|
11066
11051
|
open: true
|
|
11067
11052
|
};
|
|
11068
11053
|
const SubSideNavBar = (props) => {
|
|
11069
11054
|
const classPrefix2 = "nut-subsidenavbar";
|
|
11070
11055
|
const { title, value, children, onClick, open, ...rest } = {
|
|
11071
|
-
...defaultProps$
|
|
11056
|
+
...defaultProps$1b,
|
|
11072
11057
|
...props
|
|
11073
11058
|
};
|
|
11074
11059
|
const offset = React.useContext(OffsetContext);
|
|
@@ -11145,7 +11130,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11145
11130
|
);
|
|
11146
11131
|
return [stateRef.current, setState];
|
|
11147
11132
|
}
|
|
11148
|
-
const defaultProps$
|
|
11133
|
+
const defaultProps$1a = {
|
|
11149
11134
|
...ComponentDefaults,
|
|
11150
11135
|
value: "",
|
|
11151
11136
|
dot: false,
|
|
@@ -11170,7 +11155,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11170
11155
|
color,
|
|
11171
11156
|
fill
|
|
11172
11157
|
} = {
|
|
11173
|
-
...defaultProps$
|
|
11158
|
+
...defaultProps$1a,
|
|
11174
11159
|
...props
|
|
11175
11160
|
};
|
|
11176
11161
|
const classPrefix2 = "nut-badge";
|
|
@@ -11226,10 +11211,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11226
11211
|
};
|
|
11227
11212
|
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()));
|
|
11228
11213
|
};
|
|
11229
|
-
Badge.defaultProps = defaultProps$1b;
|
|
11230
11214
|
Badge.displayName = "NutBadge";
|
|
11231
11215
|
const TabbarContext = React.createContext(null);
|
|
11232
|
-
const defaultProps$
|
|
11216
|
+
const defaultProps$19 = {
|
|
11233
11217
|
...ComponentDefaults,
|
|
11234
11218
|
title: "",
|
|
11235
11219
|
icon: null,
|
|
@@ -11255,7 +11239,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11255
11239
|
index,
|
|
11256
11240
|
...rest
|
|
11257
11241
|
} = {
|
|
11258
|
-
...defaultProps$
|
|
11242
|
+
...defaultProps$19,
|
|
11259
11243
|
...props
|
|
11260
11244
|
};
|
|
11261
11245
|
const active = index === (ctx2 == null ? void 0 : ctx2.selectIndex);
|
|
@@ -11293,7 +11277,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11293
11277
|
icon ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React.createElement("div", { className: boxPrefix }, icon)), /* @__PURE__ */ React.createElement("div", { className: titleClass }, title)) : /* @__PURE__ */ React.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React.createElement("div", { className: titleClass }, title))
|
|
11294
11278
|
);
|
|
11295
11279
|
};
|
|
11296
|
-
const defaultProps$
|
|
11280
|
+
const defaultProps$18 = {
|
|
11297
11281
|
...ComponentDefaults,
|
|
11298
11282
|
defaultValue: 0,
|
|
11299
11283
|
fixed: false,
|
|
@@ -11316,7 +11300,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11316
11300
|
style,
|
|
11317
11301
|
onSwitch
|
|
11318
11302
|
} = {
|
|
11319
|
-
...defaultProps$
|
|
11303
|
+
...defaultProps$18,
|
|
11320
11304
|
...props
|
|
11321
11305
|
};
|
|
11322
11306
|
const classPrefix2 = "nut-tabbar";
|
|
@@ -11357,17 +11341,16 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11357
11341
|
(fixed || safeArea) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-safe-area` })
|
|
11358
11342
|
);
|
|
11359
11343
|
};
|
|
11360
|
-
Tabbar.defaultProps = defaultProps$19;
|
|
11361
11344
|
Tabbar.displayName = "NutTabbar";
|
|
11362
11345
|
Tabbar.Item = TabbarItem;
|
|
11363
|
-
const defaultProps$
|
|
11346
|
+
const defaultProps$17 = {
|
|
11364
11347
|
title: "",
|
|
11365
11348
|
value: "",
|
|
11366
11349
|
disabled: false
|
|
11367
11350
|
};
|
|
11368
11351
|
const TabPane = (props) => {
|
|
11369
11352
|
const { children, autoHeightClassName, className, disabled } = {
|
|
11370
|
-
...defaultProps$
|
|
11353
|
+
...defaultProps$17,
|
|
11371
11354
|
...props
|
|
11372
11355
|
};
|
|
11373
11356
|
const classPrefix2 = "nut-tabpane";
|
|
@@ -11381,7 +11364,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11381
11364
|
);
|
|
11382
11365
|
return children ? /* @__PURE__ */ React.createElement("div", { className: classes }, !disabled && children) : null;
|
|
11383
11366
|
};
|
|
11384
|
-
const defaultProps$
|
|
11367
|
+
const defaultProps$16 = {
|
|
11385
11368
|
...ComponentDefaults,
|
|
11386
11369
|
tabStyle: {},
|
|
11387
11370
|
activeColor: "",
|
|
@@ -11406,14 +11389,16 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11406
11389
|
onChange,
|
|
11407
11390
|
className,
|
|
11408
11391
|
autoHeight,
|
|
11392
|
+
value: outerValue,
|
|
11393
|
+
defaultValue: outerDefaultValue,
|
|
11409
11394
|
...rest
|
|
11410
11395
|
} = {
|
|
11411
|
-
...defaultProps$
|
|
11396
|
+
...defaultProps$16,
|
|
11412
11397
|
...props
|
|
11413
11398
|
};
|
|
11414
11399
|
const [value, setValue] = usePropsValue({
|
|
11415
|
-
value:
|
|
11416
|
-
defaultValue:
|
|
11400
|
+
value: outerValue,
|
|
11401
|
+
defaultValue: outerDefaultValue,
|
|
11417
11402
|
finalValue: 0,
|
|
11418
11403
|
onChange
|
|
11419
11404
|
});
|
|
@@ -11443,13 +11428,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11443
11428
|
}
|
|
11444
11429
|
const title2 = titleItem[index];
|
|
11445
11430
|
let to2 = 0;
|
|
11446
|
-
if (
|
|
11431
|
+
if (direction === "vertical") {
|
|
11447
11432
|
const runTop = title2.offsetTop - nav.offsetTop + 10;
|
|
11448
11433
|
to2 = runTop - (nav.offsetHeight - title2.offsetHeight) / 2;
|
|
11449
11434
|
} else {
|
|
11450
11435
|
to2 = title2.offsetLeft - (nav.offsetWidth - title2.offsetWidth) / 2;
|
|
11451
11436
|
}
|
|
11452
|
-
scrollDirection(nav, to2, immediate ? 0 : 0.3,
|
|
11437
|
+
scrollDirection(nav, to2, immediate ? 0 : 0.3, direction);
|
|
11453
11438
|
};
|
|
11454
11439
|
const getTitles = () => {
|
|
11455
11440
|
const titles2 = [];
|
|
@@ -11579,7 +11564,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11579
11564
|
return React.cloneElement(child, childProps);
|
|
11580
11565
|
}))));
|
|
11581
11566
|
};
|
|
11582
|
-
Tabs.defaultProps = defaultProps$17;
|
|
11583
11567
|
Tabs.displayName = "NutTabs";
|
|
11584
11568
|
Tabs.TabPane = TabPane;
|
|
11585
11569
|
const formatTree = (tree, parent, config2) => tree.map((node) => {
|
|
@@ -11715,7 +11699,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11715
11699
|
return pathNodes;
|
|
11716
11700
|
}
|
|
11717
11701
|
}
|
|
11718
|
-
const defaultProps$
|
|
11702
|
+
const defaultProps$15 = {
|
|
11719
11703
|
...ComponentDefaults,
|
|
11720
11704
|
activeColor: "",
|
|
11721
11705
|
activeIcon: "checklist",
|
|
@@ -11754,11 +11738,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11754
11738
|
closeIconPosition,
|
|
11755
11739
|
closeIcon,
|
|
11756
11740
|
lazy,
|
|
11741
|
+
title,
|
|
11742
|
+
left,
|
|
11757
11743
|
onLoad,
|
|
11758
11744
|
onClose,
|
|
11759
11745
|
onChange,
|
|
11760
11746
|
onPathChange
|
|
11761
|
-
} = { ...defaultProps$
|
|
11747
|
+
} = { ...defaultProps$15, ...props };
|
|
11762
11748
|
const [tabvalue, setTabvalue] = React.useState("c1");
|
|
11763
11749
|
const [optionsData, setOptionsData] = React.useState([]);
|
|
11764
11750
|
const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
|
|
@@ -11768,7 +11754,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11768
11754
|
finalValue: defaultValue
|
|
11769
11755
|
});
|
|
11770
11756
|
const [innerVisible, setInnerVisible] = usePropsValue({
|
|
11771
|
-
value:
|
|
11757
|
+
value: visible,
|
|
11772
11758
|
defaultValue: void 0,
|
|
11773
11759
|
finalValue: false
|
|
11774
11760
|
});
|
|
@@ -12055,8 +12041,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12055
12041
|
closeIcon,
|
|
12056
12042
|
closeable,
|
|
12057
12043
|
closeIconPosition,
|
|
12058
|
-
title: popup &&
|
|
12059
|
-
left
|
|
12044
|
+
title: popup && title,
|
|
12045
|
+
left,
|
|
12060
12046
|
onOverlayClick: closePopup,
|
|
12061
12047
|
onCloseIconClick: closePopup
|
|
12062
12048
|
},
|
|
@@ -12064,9 +12050,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12064
12050
|
) : renderTabs());
|
|
12065
12051
|
};
|
|
12066
12052
|
const Cascader = React.forwardRef(InternalCascader);
|
|
12067
|
-
Cascader.defaultProps = defaultProps$16;
|
|
12068
12053
|
Cascader.displayName = "NutCascader";
|
|
12069
|
-
const defaultProps$
|
|
12054
|
+
const defaultProps$14 = {
|
|
12070
12055
|
...ComponentDefaults,
|
|
12071
12056
|
visible: false,
|
|
12072
12057
|
type: "custom",
|
|
@@ -12093,7 +12078,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12093
12078
|
onPathChange,
|
|
12094
12079
|
...rest
|
|
12095
12080
|
} = {
|
|
12096
|
-
...defaultProps$
|
|
12081
|
+
...defaultProps$14,
|
|
12097
12082
|
...props
|
|
12098
12083
|
};
|
|
12099
12084
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, type2 === "custom" && /* @__PURE__ */ React.createElement(
|
|
@@ -12118,7 +12103,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12118
12103
|
}
|
|
12119
12104
|
));
|
|
12120
12105
|
};
|
|
12121
|
-
const defaultProps$
|
|
12106
|
+
const defaultProps$13 = {
|
|
12122
12107
|
type: "custom",
|
|
12123
12108
|
existList: [],
|
|
12124
12109
|
defaultIcon: null,
|
|
@@ -12137,7 +12122,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12137
12122
|
onSelect,
|
|
12138
12123
|
onSwitch,
|
|
12139
12124
|
...rest
|
|
12140
|
-
} = { ...defaultProps$
|
|
12125
|
+
} = { ...defaultProps$13, ...props };
|
|
12141
12126
|
const classPrefix2 = "nut-address";
|
|
12142
12127
|
const selectedExist = (item) => {
|
|
12143
12128
|
existList.forEach((list, index) => {
|
|
@@ -12166,7 +12151,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12166
12151
|
);
|
|
12167
12152
|
})), (custom || custom && locale.address.chooseAnotherAddress) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer`, onClick }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-btn` }, custom)));
|
|
12168
12153
|
};
|
|
12169
|
-
const defaultProps$
|
|
12154
|
+
const defaultProps$12 = {
|
|
12170
12155
|
...ComponentDefaults,
|
|
12171
12156
|
defaultValue: [],
|
|
12172
12157
|
type: "custom",
|
|
@@ -12208,7 +12193,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12208
12193
|
onSwitch,
|
|
12209
12194
|
...rest
|
|
12210
12195
|
} = {
|
|
12211
|
-
...defaultProps$
|
|
12196
|
+
...defaultProps$12,
|
|
12212
12197
|
...props
|
|
12213
12198
|
};
|
|
12214
12199
|
const classPrefix2 = "nut-address";
|
|
@@ -12300,7 +12285,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12300
12285
|
));
|
|
12301
12286
|
};
|
|
12302
12287
|
const Address = React.forwardRef(InternalAddress);
|
|
12303
|
-
Address.defaultProps = defaultProps$13;
|
|
12304
12288
|
Address.displayName = "NutAddress";
|
|
12305
12289
|
const Utils = {
|
|
12306
12290
|
/**
|
|
@@ -12550,7 +12534,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12550
12534
|
const isStartAndEnd = (days) => {
|
|
12551
12535
|
return days.length >= 2 && Utils.isEqual(days[0], days[1]);
|
|
12552
12536
|
};
|
|
12553
|
-
const defaultProps$
|
|
12537
|
+
const defaultProps$11 = {
|
|
12554
12538
|
...ComponentDefaults,
|
|
12555
12539
|
type: "single",
|
|
12556
12540
|
autoBackfill: false,
|
|
@@ -12606,11 +12590,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12606
12590
|
renderDay,
|
|
12607
12591
|
renderDayTop,
|
|
12608
12592
|
renderDayBottom,
|
|
12593
|
+
value,
|
|
12609
12594
|
onConfirm,
|
|
12610
12595
|
onUpdate,
|
|
12611
12596
|
onDayClick,
|
|
12612
12597
|
onPageChange
|
|
12613
|
-
} = { ...defaultProps$
|
|
12598
|
+
} = { ...defaultProps$11, ...props };
|
|
12614
12599
|
const weekdays = locale.calendaritem.weekdays;
|
|
12615
12600
|
const weeks = [
|
|
12616
12601
|
...weekdays.slice(firstDayOfWeek, 7),
|
|
@@ -12642,7 +12627,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12642
12627
|
return void 0;
|
|
12643
12628
|
};
|
|
12644
12629
|
const [currentDate, setCurrentDate] = usePropsValue({
|
|
12645
|
-
value
|
|
12630
|
+
value,
|
|
12646
12631
|
defaultValue: resetDefaultValue(),
|
|
12647
12632
|
finalValue: [],
|
|
12648
12633
|
onChange: (val) => {
|
|
@@ -12848,7 +12833,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12848
12833
|
monthsData[current.lastCurrent],
|
|
12849
12834
|
true
|
|
12850
12835
|
);
|
|
12851
|
-
} else if (
|
|
12836
|
+
} else if (type2 === "week") {
|
|
12852
12837
|
chooseDay(
|
|
12853
12838
|
{ day: defaultData[2], type: "curr" },
|
|
12854
12839
|
monthsData[current.current],
|
|
@@ -13152,9 +13137,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13152
13137
|
};
|
|
13153
13138
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : ""));
|
|
13154
13139
|
});
|
|
13155
|
-
CalendarItem.defaultProps = defaultProps$12;
|
|
13156
13140
|
CalendarItem.displayName = "NutCalendarItem";
|
|
13157
|
-
const defaultProps$
|
|
13141
|
+
const defaultProps$10 = {
|
|
13158
13142
|
...ComponentDefaults,
|
|
13159
13143
|
type: "single",
|
|
13160
13144
|
autoBackfill: false,
|
|
@@ -13217,7 +13201,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13217
13201
|
onConfirm,
|
|
13218
13202
|
onDayClick,
|
|
13219
13203
|
onPageChange
|
|
13220
|
-
} = { ...defaultProps$
|
|
13204
|
+
} = { ...defaultProps$10, ...props };
|
|
13221
13205
|
const calendarRef = React.useRef(null);
|
|
13222
13206
|
const close = () => {
|
|
13223
13207
|
onClose && onClose();
|
|
@@ -13292,7 +13276,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13292
13276
|
renderItem()
|
|
13293
13277
|
) : renderItem());
|
|
13294
13278
|
});
|
|
13295
|
-
Calendar.defaultProps = defaultProps$11;
|
|
13296
13279
|
Calendar.displayName = "NutCalendar";
|
|
13297
13280
|
const ArrowLeft = () => {
|
|
13298
13281
|
return /* @__PURE__ */ React.createElement(
|
|
@@ -13398,7 +13381,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13398
13381
|
)
|
|
13399
13382
|
];
|
|
13400
13383
|
};
|
|
13401
|
-
const defaultProps
|
|
13384
|
+
const defaultProps$$ = {
|
|
13402
13385
|
...ComponentDefaults,
|
|
13403
13386
|
type: "single",
|
|
13404
13387
|
firstDayOfWeek: 0
|
|
@@ -13422,7 +13405,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13422
13405
|
onDayClick,
|
|
13423
13406
|
onPageChange,
|
|
13424
13407
|
onChange
|
|
13425
|
-
} = { ...defaultProps
|
|
13408
|
+
} = { ...defaultProps$$, ...props };
|
|
13426
13409
|
const [month, setMonth] = React.useState(() => {
|
|
13427
13410
|
let date2 = new Date(Date.now());
|
|
13428
13411
|
const val = value || defaultValue;
|
|
@@ -13724,11 +13707,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13724
13707
|
};
|
|
13725
13708
|
return days.length > 0 ? /* @__PURE__ */ React.createElement("div", { className: classNames(prefixCls, className), style }, renderHeader(), renderContent()) : null;
|
|
13726
13709
|
});
|
|
13727
|
-
CalendarCard.defaultProps = defaultProps$10;
|
|
13728
13710
|
CalendarCard.displayName = "NutCalendarCard";
|
|
13729
13711
|
const CheckboxGroupContext = React.createContext(null);
|
|
13730
13712
|
const Context$1 = CheckboxGroupContext;
|
|
13731
|
-
const defaultProps
|
|
13713
|
+
const defaultProps$_ = {
|
|
13732
13714
|
max: void 0,
|
|
13733
13715
|
min: void 0,
|
|
13734
13716
|
list: false,
|
|
@@ -13758,7 +13740,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13758
13740
|
direction,
|
|
13759
13741
|
options: options2,
|
|
13760
13742
|
...rest
|
|
13761
|
-
} = { ...defaultProps
|
|
13743
|
+
} = { ...defaultProps$_, ...props };
|
|
13762
13744
|
React.useImperativeHandle(ref, () => ({
|
|
13763
13745
|
toggle(state) {
|
|
13764
13746
|
if (state === false) {
|
|
@@ -13850,9 +13832,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13850
13832
|
);
|
|
13851
13833
|
}
|
|
13852
13834
|
);
|
|
13853
|
-
CheckboxGroup.defaultProps = defaultProps
|
|
13835
|
+
CheckboxGroup.defaultProps = defaultProps$_;
|
|
13854
13836
|
CheckboxGroup.displayName = "NutCheckboxGroup";
|
|
13855
|
-
const defaultProps$
|
|
13837
|
+
const defaultProps$Z = {
|
|
13856
13838
|
...ComponentDefaults,
|
|
13857
13839
|
disabled: false,
|
|
13858
13840
|
shape: "round",
|
|
@@ -13866,7 +13848,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13866
13848
|
const classPrefix$h = "nut-checkbox";
|
|
13867
13849
|
const Checkbox = (props) => {
|
|
13868
13850
|
const { children } = {
|
|
13869
|
-
...defaultProps$
|
|
13851
|
+
...defaultProps$Z,
|
|
13870
13852
|
...props
|
|
13871
13853
|
};
|
|
13872
13854
|
const {
|
|
@@ -13887,8 +13869,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13887
13869
|
let { labelPosition, ...rest } = others;
|
|
13888
13870
|
const ctx2 = React.useContext(Context$1);
|
|
13889
13871
|
let [innerChecked, setChecked] = usePropsValue({
|
|
13890
|
-
value:
|
|
13891
|
-
defaultValue:
|
|
13872
|
+
value: checked,
|
|
13873
|
+
defaultValue: defaultChecked,
|
|
13892
13874
|
finalValue: defaultChecked,
|
|
13893
13875
|
onChange
|
|
13894
13876
|
});
|
|
@@ -14010,7 +13992,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14010
13992
|
renderCheckboxItem()
|
|
14011
13993
|
);
|
|
14012
13994
|
};
|
|
14013
|
-
Checkbox.defaultProps = defaultProps$_;
|
|
14014
13995
|
Checkbox.displayName = "NutCheckBox";
|
|
14015
13996
|
Checkbox.Group = CheckboxGroup;
|
|
14016
13997
|
const InternalPickerPanel = (props, ref) => {
|
|
@@ -14252,7 +14233,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14252
14233
|
}, []);
|
|
14253
14234
|
return [refs.current, setRefs, reset];
|
|
14254
14235
|
}
|
|
14255
|
-
const defaultProps$
|
|
14236
|
+
const defaultProps$Y = {
|
|
14256
14237
|
...ComponentDefaults,
|
|
14257
14238
|
title: "",
|
|
14258
14239
|
options: [],
|
|
@@ -14282,7 +14263,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14282
14263
|
afterClose,
|
|
14283
14264
|
onChange,
|
|
14284
14265
|
...rest
|
|
14285
|
-
} = { ...defaultProps$
|
|
14266
|
+
} = { ...defaultProps$Y, ...props };
|
|
14286
14267
|
const classPrefix2 = "nut-picker";
|
|
14287
14268
|
const classes = classNames(classPrefix2, className);
|
|
14288
14269
|
const [selectedValue, setSelectedValue] = usePropsValue({
|
|
@@ -14526,7 +14507,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14526
14507
|
return str;
|
|
14527
14508
|
};
|
|
14528
14509
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
14529
|
-
const defaultProps$
|
|
14510
|
+
const defaultProps$X = {
|
|
14530
14511
|
...ComponentDefaults,
|
|
14531
14512
|
visible: false,
|
|
14532
14513
|
title: "",
|
|
@@ -14559,7 +14540,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14559
14540
|
style,
|
|
14560
14541
|
...rest
|
|
14561
14542
|
} = {
|
|
14562
|
-
...defaultProps$
|
|
14543
|
+
...defaultProps$X,
|
|
14563
14544
|
...props
|
|
14564
14545
|
};
|
|
14565
14546
|
const { locale } = useConfig();
|
|
@@ -14841,7 +14822,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14841
14822
|
}
|
|
14842
14823
|
));
|
|
14843
14824
|
};
|
|
14844
|
-
DatePicker.defaultProps = defaultProps$
|
|
14825
|
+
DatePicker.defaultProps = defaultProps$X;
|
|
14845
14826
|
DatePicker.displayName = "NutDatePicker";
|
|
14846
14827
|
const Context = React.createContext({});
|
|
14847
14828
|
function _extends() {
|
|
@@ -16079,7 +16060,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16079
16060
|
}
|
|
16080
16061
|
return [formRef.current];
|
|
16081
16062
|
};
|
|
16082
|
-
const defaultProps$
|
|
16063
|
+
const defaultProps$W = {
|
|
16083
16064
|
...ComponentDefaults,
|
|
16084
16065
|
labelPosition: "right",
|
|
16085
16066
|
starPosition: "left",
|
|
@@ -16110,7 +16091,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16110
16091
|
starPosition,
|
|
16111
16092
|
form
|
|
16112
16093
|
} = {
|
|
16113
|
-
...defaultProps$
|
|
16094
|
+
...defaultProps$W,
|
|
16114
16095
|
...props
|
|
16115
16096
|
};
|
|
16116
16097
|
let formInstance;
|
|
@@ -16156,7 +16137,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16156
16137
|
);
|
|
16157
16138
|
}
|
|
16158
16139
|
);
|
|
16159
|
-
Form.defaultProps = defaultProps$X;
|
|
16160
16140
|
Form.displayName = "NutForm";
|
|
16161
16141
|
function isForwardRefComponent(component) {
|
|
16162
16142
|
return component.type && component.type.$$typeof && // eslint-disable-next-line react/display-name
|
|
@@ -16167,7 +16147,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16167
16147
|
}
|
|
16168
16148
|
).$$typeof === component.type.$$typeof;
|
|
16169
16149
|
}
|
|
16170
|
-
const defaultProps$
|
|
16150
|
+
const defaultProps$V = {
|
|
16171
16151
|
...ComponentDefaults,
|
|
16172
16152
|
required: false,
|
|
16173
16153
|
name: "",
|
|
@@ -16262,7 +16242,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16262
16242
|
style,
|
|
16263
16243
|
errorMessageAlign
|
|
16264
16244
|
} = {
|
|
16265
|
-
...defaultProps$
|
|
16245
|
+
...defaultProps$V,
|
|
16266
16246
|
...this.props
|
|
16267
16247
|
};
|
|
16268
16248
|
const requiredInRules = rules2 == null ? void 0 : rules2.some((rule) => rule.required);
|
|
@@ -16321,7 +16301,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16321
16301
|
return /* @__PURE__ */ React.createElement(React.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
|
|
16322
16302
|
}
|
|
16323
16303
|
};
|
|
16324
|
-
_FormItem.defaultProps = defaultProps$
|
|
16304
|
+
_FormItem.defaultProps = defaultProps$V;
|
|
16325
16305
|
_FormItem.contextType = Context;
|
|
16326
16306
|
let FormItem = _FormItem;
|
|
16327
16307
|
const InnerForm = Form;
|
|
@@ -16351,7 +16331,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16351
16331
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
16352
16332
|
return value.replace(regExp, "");
|
|
16353
16333
|
}
|
|
16354
|
-
const defaultProps$
|
|
16334
|
+
const defaultProps$U = {
|
|
16355
16335
|
...ComponentDefaults,
|
|
16356
16336
|
type: "text",
|
|
16357
16337
|
name: "",
|
|
@@ -16393,14 +16373,16 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16393
16373
|
confirmType,
|
|
16394
16374
|
defaultValue,
|
|
16395
16375
|
value: _value,
|
|
16376
|
+
onCompositionStart,
|
|
16377
|
+
onCompositionEnd,
|
|
16396
16378
|
...rest
|
|
16397
16379
|
} = {
|
|
16398
|
-
...defaultProps$
|
|
16380
|
+
...defaultProps$U,
|
|
16399
16381
|
...props
|
|
16400
16382
|
};
|
|
16401
16383
|
const [value, setValue] = usePropsValue({
|
|
16402
|
-
value:
|
|
16403
|
-
defaultValue
|
|
16384
|
+
value: _value,
|
|
16385
|
+
defaultValue,
|
|
16404
16386
|
finalValue: "",
|
|
16405
16387
|
onChange
|
|
16406
16388
|
});
|
|
@@ -16514,21 +16496,19 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16514
16496
|
handleInput(e2.currentTarget.value);
|
|
16515
16497
|
},
|
|
16516
16498
|
onCompositionStart: (e2) => {
|
|
16517
|
-
var _a;
|
|
16518
16499
|
composingRef.current = true;
|
|
16519
|
-
|
|
16500
|
+
onCompositionStart == null ? void 0 : onCompositionStart(e2);
|
|
16520
16501
|
},
|
|
16521
16502
|
onCompositionEnd: (e2) => {
|
|
16522
|
-
var _a;
|
|
16523
16503
|
composingRef.current = false;
|
|
16524
|
-
|
|
16504
|
+
onCompositionEnd == null ? void 0 : onCompositionEnd(e2);
|
|
16525
16505
|
}
|
|
16526
16506
|
}
|
|
16527
16507
|
),
|
|
16528
16508
|
clearable && !readOnly && active && value.length > 0 ? /* @__PURE__ */ React.createElement(
|
|
16529
16509
|
"span",
|
|
16530
16510
|
{
|
|
16531
|
-
style: { display: "flex", alignItems: "center" },
|
|
16511
|
+
style: { display: "flex", alignItems: "center", cursor: "pointer" },
|
|
16532
16512
|
onClick: () => {
|
|
16533
16513
|
if (!disabled) {
|
|
16534
16514
|
setValue("");
|
|
@@ -16541,9 +16521,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16541
16521
|
);
|
|
16542
16522
|
}
|
|
16543
16523
|
);
|
|
16544
|
-
Input.defaultProps = defaultProps$V;
|
|
16545
16524
|
Input.displayName = "NutInput";
|
|
16546
|
-
const defaultProps$
|
|
16525
|
+
const defaultProps$T = {
|
|
16547
16526
|
...ComponentDefaults,
|
|
16548
16527
|
disabled: false,
|
|
16549
16528
|
readOnly: false,
|
|
@@ -16579,7 +16558,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16579
16558
|
onChange,
|
|
16580
16559
|
...restProps
|
|
16581
16560
|
} = {
|
|
16582
|
-
...defaultProps$
|
|
16561
|
+
...defaultProps$T,
|
|
16583
16562
|
...props
|
|
16584
16563
|
};
|
|
16585
16564
|
const classes = classNames(classPrefix$g, className, {
|
|
@@ -16737,7 +16716,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16737
16716
|
}
|
|
16738
16717
|
)));
|
|
16739
16718
|
};
|
|
16740
|
-
InputNumber.defaultProps = defaultProps$U;
|
|
16741
16719
|
InputNumber.displayName = "NutInputNumber";
|
|
16742
16720
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
16743
16721
|
const isFunction = (val) => typeof val === "function";
|
|
@@ -16788,7 +16766,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16788
16766
|
};
|
|
16789
16767
|
}, [target]);
|
|
16790
16768
|
}
|
|
16791
|
-
const defaultProps$
|
|
16769
|
+
const defaultProps$S = {
|
|
16792
16770
|
...ComponentDefaults,
|
|
16793
16771
|
columns: 1,
|
|
16794
16772
|
direction: "down",
|
|
@@ -16819,7 +16797,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16819
16797
|
parent,
|
|
16820
16798
|
index
|
|
16821
16799
|
} = {
|
|
16822
|
-
...defaultProps$
|
|
16800
|
+
...defaultProps$S,
|
|
16823
16801
|
...props
|
|
16824
16802
|
};
|
|
16825
16803
|
const [showPopup, setShowPopup] = React.useState(show2);
|
|
@@ -16988,9 +16966,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16988
16966
|
)
|
|
16989
16967
|
));
|
|
16990
16968
|
});
|
|
16991
|
-
MenuItem.defaultProps = defaultProps$T;
|
|
16992
16969
|
MenuItem.displayName = "NutMenuItem";
|
|
16993
|
-
const defaultProps$
|
|
16970
|
+
const defaultProps$R = {
|
|
16994
16971
|
...ComponentDefaults,
|
|
16995
16972
|
activeColor: "",
|
|
16996
16973
|
closeOnOverlayClick: true,
|
|
@@ -17017,7 +16994,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17017
16994
|
onOpen,
|
|
17018
16995
|
...rest
|
|
17019
16996
|
} = {
|
|
17020
|
-
...defaultProps$
|
|
16997
|
+
...defaultProps$R,
|
|
17021
16998
|
...props
|
|
17022
16999
|
};
|
|
17023
17000
|
const menuRef = React.useRef(null);
|
|
@@ -17157,19 +17134,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17157
17134
|
cloneChildren()
|
|
17158
17135
|
);
|
|
17159
17136
|
};
|
|
17160
|
-
Menu.defaultProps = defaultProps$S;
|
|
17161
17137
|
Menu.displayName = "NutMenu";
|
|
17162
17138
|
Menu.Item = MenuItem;
|
|
17163
|
-
const defaultProps$R = {
|
|
17164
|
-
...ComponentDefaults,
|
|
17165
|
-
visible: false,
|
|
17166
|
-
rightActions: "",
|
|
17167
|
-
type: "default",
|
|
17168
|
-
custom: [],
|
|
17169
|
-
random: false,
|
|
17170
|
-
onClose: () => {
|
|
17171
|
-
}
|
|
17172
|
-
};
|
|
17173
17139
|
const NumberKeyboard = (props) => {
|
|
17174
17140
|
const { locale } = useConfig();
|
|
17175
17141
|
const {
|
|
@@ -17314,7 +17280,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17314
17280
|
))))
|
|
17315
17281
|
);
|
|
17316
17282
|
};
|
|
17317
|
-
NumberKeyboard.defaultProps = defaultProps$R;
|
|
17318
17283
|
NumberKeyboard.displayName = "NutNumberKeyboard";
|
|
17319
17284
|
const RadioContext = React.createContext(null);
|
|
17320
17285
|
const defaultProps$Q = {
|
|
@@ -17837,7 +17802,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17837
17802
|
renderButton()
|
|
17838
17803
|
))), maxDescription !== null && /* @__PURE__ */ React.createElement("div", { className: "max" }, maxDescription || max));
|
|
17839
17804
|
};
|
|
17840
|
-
Range.defaultProps = defaultProps$O;
|
|
17841
17805
|
Range.displayName = "NutRange";
|
|
17842
17806
|
const defaultProps$N = {
|
|
17843
17807
|
...ComponentDefaults,
|
|
@@ -18033,7 +17997,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18033
17997
|
})
|
|
18034
17998
|
);
|
|
18035
17999
|
};
|
|
18036
|
-
Rate.defaultProps = defaultProps$N;
|
|
18037
18000
|
Rate.displayName = "NutRate";
|
|
18038
18001
|
const defaultProps$M = {
|
|
18039
18002
|
...ComponentDefaults,
|
|
@@ -18054,8 +18017,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18054
18017
|
const classPrefix2 = "nut-searchbar";
|
|
18055
18018
|
const { locale } = useConfig();
|
|
18056
18019
|
const searchRef = React.useRef(null);
|
|
18057
|
-
const [value, setValue] = React.useState(() => props.value);
|
|
18058
18020
|
const {
|
|
18021
|
+
value: outerValue,
|
|
18022
|
+
style,
|
|
18059
18023
|
placeholder,
|
|
18060
18024
|
shape,
|
|
18061
18025
|
className,
|
|
@@ -18079,6 +18043,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18079
18043
|
...defaultProps$M,
|
|
18080
18044
|
...props
|
|
18081
18045
|
};
|
|
18046
|
+
const [value, setValue] = React.useState(() => outerValue);
|
|
18082
18047
|
const forceFocus = () => {
|
|
18083
18048
|
const searchSelf = searchRef.current;
|
|
18084
18049
|
searchSelf && searchSelf.focus();
|
|
@@ -18099,8 +18064,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18099
18064
|
onBlur && (onBlur == null ? void 0 : onBlur(value2, event));
|
|
18100
18065
|
};
|
|
18101
18066
|
React.useEffect(() => {
|
|
18102
|
-
setValue(
|
|
18103
|
-
}, [
|
|
18067
|
+
setValue(outerValue);
|
|
18068
|
+
}, [outerValue]);
|
|
18104
18069
|
React.useEffect(() => {
|
|
18105
18070
|
autoFocus && forceFocus();
|
|
18106
18071
|
}, [autoFocus]);
|
|
@@ -18110,7 +18075,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18110
18075
|
{
|
|
18111
18076
|
className: `${classPrefix2}-input ${clearable ? `${classPrefix2}-input-clear` : ""}`,
|
|
18112
18077
|
ref: searchRef,
|
|
18113
|
-
style
|
|
18078
|
+
style,
|
|
18114
18079
|
value: value || "",
|
|
18115
18080
|
placeholder: placeholder || locale.placeholder,
|
|
18116
18081
|
disabled,
|
|
@@ -18178,7 +18143,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18178
18143
|
"div",
|
|
18179
18144
|
{
|
|
18180
18145
|
className: `${classPrefix2} ${disabled ? `${classPrefix2}-disabled` : ""} ${className || ""}`,
|
|
18181
|
-
style
|
|
18146
|
+
style
|
|
18182
18147
|
},
|
|
18183
18148
|
renderLeft(),
|
|
18184
18149
|
/* @__PURE__ */ React.createElement(
|
|
@@ -18194,7 +18159,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18194
18159
|
renderRight()
|
|
18195
18160
|
);
|
|
18196
18161
|
};
|
|
18197
|
-
SearchBar.defaultProps = defaultProps$M;
|
|
18198
18162
|
SearchBar.displayName = "NutSearchBar";
|
|
18199
18163
|
const defaultProps$L = {
|
|
18200
18164
|
...ComponentDefaults,
|
|
@@ -18212,7 +18176,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18212
18176
|
title,
|
|
18213
18177
|
description,
|
|
18214
18178
|
tips,
|
|
18215
|
-
visible:
|
|
18179
|
+
visible: outerVisible,
|
|
18216
18180
|
value,
|
|
18217
18181
|
error,
|
|
18218
18182
|
hideFooter,
|
|
@@ -18244,7 +18208,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18244
18208
|
return val.slice(0, comLen);
|
|
18245
18209
|
};
|
|
18246
18210
|
const [visible, setVisible] = usePropsValue({
|
|
18247
|
-
value:
|
|
18211
|
+
value: outerVisible,
|
|
18248
18212
|
defaultValue: false,
|
|
18249
18213
|
finalValue: false
|
|
18250
18214
|
});
|
|
@@ -18420,7 +18384,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18420
18384
|
const Signature = React.forwardRef(
|
|
18421
18385
|
InternalSignature
|
|
18422
18386
|
);
|
|
18423
|
-
Signature.defaultProps = defaultProps$K;
|
|
18424
18387
|
Signature.displayName = "NutSignature";
|
|
18425
18388
|
const defaultProps$J = {
|
|
18426
18389
|
...ComponentDefaults,
|
|
@@ -18468,7 +18431,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18468
18431
|
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-button` }, !value && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-close-line` }), activeText && /* @__PURE__ */ React.createElement(React.Fragment, null, value ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-label open` }, activeText) : /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-label close` }, inactiveText)))
|
|
18469
18432
|
);
|
|
18470
18433
|
};
|
|
18471
|
-
Switch.defaultProps = defaultProps$J;
|
|
18472
18434
|
Switch.displayName = "NutSwitch";
|
|
18473
18435
|
const defaultProps$I = {
|
|
18474
18436
|
...ComponentDefaults,
|
|
@@ -18587,7 +18549,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18587
18549
|
showCount && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-limit` }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)
|
|
18588
18550
|
);
|
|
18589
18551
|
};
|
|
18590
|
-
TextArea.defaultProps = defaultProps$I;
|
|
18591
18552
|
TextArea.displayName = "NutTextArea";
|
|
18592
18553
|
class UploadOptions {
|
|
18593
18554
|
constructor() {
|
|
@@ -18788,7 +18749,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18788
18749
|
)))
|
|
18789
18750
|
);
|
|
18790
18751
|
};
|
|
18791
|
-
Progress.defaultProps = defaultProps$H;
|
|
18792
18752
|
Progress.displayName = "NutProgress";
|
|
18793
18753
|
const Preview = ({
|
|
18794
18754
|
fileList,
|
|
@@ -19065,7 +19025,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19065
19025
|
});
|
|
19066
19026
|
};
|
|
19067
19027
|
const task = new Upload(uploadOption);
|
|
19068
|
-
if (
|
|
19028
|
+
if (autoUpload) {
|
|
19069
19029
|
task.upload();
|
|
19070
19030
|
} else {
|
|
19071
19031
|
uploadQueue.push(
|
|
@@ -19104,7 +19064,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19104
19064
|
});
|
|
19105
19065
|
};
|
|
19106
19066
|
const filterFiles = (files) => {
|
|
19107
|
-
const maximum =
|
|
19067
|
+
const maximum = maxCount * 1;
|
|
19108
19068
|
const oversizes = new Array();
|
|
19109
19069
|
const filterFile = files.filter((file) => {
|
|
19110
19070
|
if (file.size > maxFileSize) {
|
|
@@ -19211,7 +19171,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19211
19171
|
));
|
|
19212
19172
|
};
|
|
19213
19173
|
const Uploader = React.forwardRef(InternalUploader);
|
|
19214
|
-
Uploader.defaultProps = defaultProps$G;
|
|
19215
19174
|
Uploader.displayName = "NutUploader";
|
|
19216
19175
|
const defaultProps$F = {
|
|
19217
19176
|
...ComponentDefaults,
|
|
@@ -19284,7 +19243,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19284
19243
|
))
|
|
19285
19244
|
);
|
|
19286
19245
|
};
|
|
19287
|
-
ActionSheet.defaultProps = defaultProps$F;
|
|
19288
19246
|
ActionSheet.displayName = "NutActionSheet";
|
|
19289
19247
|
const fullClone = {
|
|
19290
19248
|
...ReactDOM__namespace
|
|
@@ -19707,7 +19665,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19707
19665
|
({ down, last, offset: [x, y] }) => {
|
|
19708
19666
|
api.start({ x, y, immediate: down });
|
|
19709
19667
|
if (last) {
|
|
19710
|
-
if (
|
|
19668
|
+
if (direction !== "y" && attract) {
|
|
19711
19669
|
if (x < middleLine.current) {
|
|
19712
19670
|
api.start({ x: boundaryState.left, y, immediate: down });
|
|
19713
19671
|
} else {
|
|
@@ -19740,7 +19698,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19740
19698
|
/* @__PURE__ */ React.createElement(animated.div, { style: currstyle, ...bind() }, children)
|
|
19741
19699
|
);
|
|
19742
19700
|
};
|
|
19743
|
-
Drag.defaultProps = defaultProps$D;
|
|
19744
19701
|
Drag.displayName = "NutDrag";
|
|
19745
19702
|
const defaultStatus = {
|
|
19746
19703
|
empty: "https://storage.360buyimg.com/imgtools/30186cfda0-0d3eee40-c0ac-11ee-9382-9125782aa3b8.png",
|
|
@@ -19815,7 +19772,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19815
19772
|
);
|
|
19816
19773
|
})), children);
|
|
19817
19774
|
};
|
|
19818
|
-
Empty.defaultProps = defaultProps$C;
|
|
19819
19775
|
Empty.displayName = "NutEmpty";
|
|
19820
19776
|
const defaultProps$B = {
|
|
19821
19777
|
...ComponentDefaults,
|
|
@@ -19984,7 +19940,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19984
19940
|
/* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom-tips" }, loadingText || locale.infiniteloading.loadText) : !hasMore && /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom-tips" }, loadMoreText || locale.infiniteloading.loadMoreText))
|
|
19985
19941
|
);
|
|
19986
19942
|
};
|
|
19987
|
-
InfiniteLoading.defaultProps = defaultProps$B;
|
|
19988
19943
|
InfiniteLoading.displayName = "NutInfiniteLoading";
|
|
19989
19944
|
const loadingMap = {
|
|
19990
19945
|
circular: c,
|
|
@@ -20017,7 +19972,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20017
19972
|
children ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-text` }, children) : ""
|
|
20018
19973
|
);
|
|
20019
19974
|
};
|
|
20020
|
-
Loading.defaultProps = defaultProps$A;
|
|
20021
19975
|
Loading.displayName = "NutLoading";
|
|
20022
19976
|
const defaultProps$z = {
|
|
20023
19977
|
...ComponentDefaults,
|
|
@@ -20425,7 +20379,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20425
20379
|
)
|
|
20426
20380
|
) : null);
|
|
20427
20381
|
};
|
|
20428
|
-
NoticeBar.defaultProps = defaultProps$z;
|
|
20429
20382
|
NoticeBar.displayName = "NutNoticeBar";
|
|
20430
20383
|
const classPrefix$c = "nut-notify";
|
|
20431
20384
|
let Notification$1 = class Notification extends React__namespace.PureComponent {
|
|
@@ -20672,8 +20625,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20672
20625
|
}
|
|
20673
20626
|
useClickAway(
|
|
20674
20627
|
() => {
|
|
20675
|
-
|
|
20676
|
-
(_a = props.onClick) == null ? void 0 : _a.call(props);
|
|
20628
|
+
onClick == null ? void 0 : onClick();
|
|
20677
20629
|
onClose == null ? void 0 : onClose();
|
|
20678
20630
|
},
|
|
20679
20631
|
targetSet,
|
|
@@ -20762,7 +20714,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20762
20714
|
const direction = location.split("-")[0];
|
|
20763
20715
|
const skew = location.split("-")[1];
|
|
20764
20716
|
const base = 16;
|
|
20765
|
-
if (
|
|
20717
|
+
if (arrowOffset !== 0) {
|
|
20766
20718
|
const dir = rtl ? "right" : "left";
|
|
20767
20719
|
const dir2 = rtl ? "left" : "right";
|
|
20768
20720
|
if (["bottom", "top"].includes(direction)) {
|
|
@@ -20791,12 +20743,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20791
20743
|
return styles;
|
|
20792
20744
|
};
|
|
20793
20745
|
const handleSelect = (item, index) => {
|
|
20794
|
-
var _a;
|
|
20795
20746
|
if (!item.disabled) {
|
|
20796
20747
|
onSelect == null ? void 0 : onSelect(item, index);
|
|
20797
20748
|
}
|
|
20798
20749
|
if (closeOnActionClick) {
|
|
20799
|
-
|
|
20750
|
+
onClick == null ? void 0 : onClick();
|
|
20800
20751
|
onClose == null ? void 0 : onClose();
|
|
20801
20752
|
}
|
|
20802
20753
|
};
|
|
@@ -20806,8 +20757,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20806
20757
|
className: "nut-popover-wrapper",
|
|
20807
20758
|
ref: popoverRef,
|
|
20808
20759
|
onClick: () => {
|
|
20809
|
-
|
|
20810
|
-
(_a = props.onClick) == null ? void 0 : _a.call(props);
|
|
20760
|
+
onClick == null ? void 0 : onClick();
|
|
20811
20761
|
if (!visible) {
|
|
20812
20762
|
onOpen == null ? void 0 : onOpen();
|
|
20813
20763
|
} else {
|
|
@@ -20870,7 +20820,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20870
20820
|
document.body
|
|
20871
20821
|
));
|
|
20872
20822
|
};
|
|
20873
|
-
Popover.defaultProps = defaultProps$y;
|
|
20874
20823
|
Popover.displayName = "NutPopover";
|
|
20875
20824
|
function bound(position, min, max) {
|
|
20876
20825
|
let ret = position;
|
|
@@ -21087,7 +21036,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21087
21036
|
};
|
|
21088
21037
|
return /* @__PURE__ */ React.createElement(AvatarContext.Provider, { value: parentAvatar }, /* @__PURE__ */ React.createElement("div", { className: cls, style, ref: avatarGroupRef }, children));
|
|
21089
21038
|
};
|
|
21090
|
-
AvatarGroup.defaultProps = defaultProps$w;
|
|
21091
21039
|
AvatarGroup.displayName = "NutAvatarGroup";
|
|
21092
21040
|
const defaultProps$v = {
|
|
21093
21041
|
...ComponentDefaults,
|
|
@@ -21169,8 +21117,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21169
21117
|
}
|
|
21170
21118
|
};
|
|
21171
21119
|
const errorEvent = () => {
|
|
21172
|
-
if (
|
|
21173
|
-
|
|
21120
|
+
if (onError) {
|
|
21121
|
+
onError();
|
|
21174
21122
|
}
|
|
21175
21123
|
};
|
|
21176
21124
|
const clickAvatar = (e2) => {
|
|
@@ -21201,7 +21149,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21201
21149
|
showMax && /* @__PURE__ */ React.createElement("div", { className: "text" }, ((_l = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _l.maxContent) ? (_m = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _m.maxContent : `+ ${avatarIndex - Number(((_n = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _n.max) || 0)}`)
|
|
21202
21150
|
));
|
|
21203
21151
|
};
|
|
21204
|
-
Avatar.defaultProps = defaultProps$v;
|
|
21205
21152
|
Avatar.displayName = "NutAvatar";
|
|
21206
21153
|
Avatar.Group = AvatarGroup;
|
|
21207
21154
|
const defaultProps$u = {
|
|
@@ -21263,7 +21210,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21263
21210
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-block`, key: index });
|
|
21264
21211
|
})))));
|
|
21265
21212
|
};
|
|
21266
|
-
Skeleton.defaultProps = defaultProps$u;
|
|
21267
21213
|
Skeleton.displayName = "NutSkeleton";
|
|
21268
21214
|
function preventDefault(event, isStopPropagation) {
|
|
21269
21215
|
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
@@ -21692,7 +21638,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21692
21638
|
};
|
|
21693
21639
|
return /* @__PURE__ */ React.createElement("div", { className: "nut-animate" }, /* @__PURE__ */ React.createElement("div", { className: cls, onClick: handleClick2, ...rest }, children));
|
|
21694
21640
|
};
|
|
21695
|
-
Animate.defaultProps = defaultProps$s;
|
|
21696
21641
|
Animate.displayName = "NutAnimate";
|
|
21697
21642
|
const defaultProps$r = {
|
|
21698
21643
|
...ComponentDefaults,
|
|
@@ -22095,11 +22040,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22095
22040
|
return `M 50 50 m -45 0 a 45 45 0 1 ${isWise} 90 0 a 45 45 0 1 ${isWise} -90 0`;
|
|
22096
22041
|
};
|
|
22097
22042
|
const stop2 = () => {
|
|
22098
|
-
if (!isObject(
|
|
22043
|
+
if (!isObject(color)) {
|
|
22099
22044
|
return;
|
|
22100
22045
|
}
|
|
22101
|
-
const
|
|
22102
|
-
const colorArr = Object.keys(color2).sort(
|
|
22046
|
+
const colorArr = Object.keys(color).sort(
|
|
22103
22047
|
(a2, b) => parseFloat(a2) - parseFloat(b)
|
|
22104
22048
|
);
|
|
22105
22049
|
const stopArr = [];
|
|
@@ -22109,7 +22053,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22109
22053
|
value: ""
|
|
22110
22054
|
};
|
|
22111
22055
|
obj.key = item;
|
|
22112
|
-
obj.value =
|
|
22056
|
+
obj.value = color[item];
|
|
22113
22057
|
stopArr.push(obj);
|
|
22114
22058
|
});
|
|
22115
22059
|
return stopArr;
|
|
@@ -22138,7 +22082,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22138
22082
|
}
|
|
22139
22083
|
)), /* @__PURE__ */ React.createElement("div", { className: "nut-circleprogress-text" }, children));
|
|
22140
22084
|
};
|
|
22141
|
-
CircleProgress.defaultProps = defaultProps$o;
|
|
22142
22085
|
CircleProgress.displayName = "NutCircleProgress";
|
|
22143
22086
|
const collapseContext = {
|
|
22144
22087
|
isOpen: (name) => {
|
|
@@ -22248,7 +22191,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22248
22191
|
/* @__PURE__ */ React.createElement("div", { ref: contentRef, className: `${classPrefix2}-content-text` }, children)
|
|
22249
22192
|
));
|
|
22250
22193
|
};
|
|
22251
|
-
CollapseItem.defaultProps = defaultProps$n;
|
|
22252
22194
|
CollapseItem.displayName = "NutCollapseItem";
|
|
22253
22195
|
const defaultProps$m = {
|
|
22254
22196
|
...ComponentDefaults,
|
|
@@ -22326,7 +22268,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22326
22268
|
/* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style }, children)
|
|
22327
22269
|
);
|
|
22328
22270
|
};
|
|
22329
|
-
Collapse.defaultProps = defaultProps$m;
|
|
22330
22271
|
Collapse.displayName = "NutCollapse";
|
|
22331
22272
|
Collapse.Item = CollapseItem;
|
|
22332
22273
|
const defaultProps$l = {
|
|
@@ -22567,7 +22508,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22567
22508
|
const CountDown = React.forwardRef(
|
|
22568
22509
|
InternalCountDown
|
|
22569
22510
|
);
|
|
22570
|
-
CountDown.defaultProps = defaultProps$l;
|
|
22571
22511
|
CountDown.displayName = "NutCountDown";
|
|
22572
22512
|
const useIsomorphicLayoutEffect = canUseDom ? React.useLayoutEffect : React.useEffect;
|
|
22573
22513
|
const defaultProps$k = {
|
|
@@ -22748,7 +22688,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22748
22688
|
collapseText
|
|
22749
22689
|
) : null) : null);
|
|
22750
22690
|
};
|
|
22751
|
-
Ellipsis.defaultProps = defaultProps$k;
|
|
22752
22691
|
Ellipsis.displayName = "NutEllipsis";
|
|
22753
22692
|
const defaultProps$j = {
|
|
22754
22693
|
...ComponentDefaults,
|
|
@@ -22828,7 +22767,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22828
22767
|
/* @__PURE__ */ React.createElement("track", { kind: "captions" })
|
|
22829
22768
|
));
|
|
22830
22769
|
};
|
|
22831
|
-
Video.defaultProps = defaultProps$j;
|
|
22832
22770
|
Video.displayName = "NutVideo";
|
|
22833
22771
|
const defaultProps$i = {
|
|
22834
22772
|
total: 3,
|
|
@@ -22861,7 +22799,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22861
22799
|
};
|
|
22862
22800
|
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$3, classes, className), ...rest }, renderElement());
|
|
22863
22801
|
};
|
|
22864
|
-
Indicator.defaultProps = defaultProps$i;
|
|
22865
22802
|
Indicator.displayName = "NutIndicator";
|
|
22866
22803
|
const getRefValue = (ref) => {
|
|
22867
22804
|
return ref.current;
|
|
@@ -23290,6 +23227,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23290
23227
|
};
|
|
23291
23228
|
const ImagePreview = (props) => {
|
|
23292
23229
|
const {
|
|
23230
|
+
value,
|
|
23293
23231
|
className,
|
|
23294
23232
|
style,
|
|
23295
23233
|
images,
|
|
@@ -23302,17 +23240,17 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23302
23240
|
closeOnContentClick,
|
|
23303
23241
|
closeIcon,
|
|
23304
23242
|
closeIconPosition,
|
|
23305
|
-
onClose
|
|
23306
|
-
|
|
23243
|
+
onClose,
|
|
23244
|
+
onChange
|
|
23245
|
+
} = { ...defaultProps$f, ...props };
|
|
23307
23246
|
const classPrefix2 = "nut-imagepreview";
|
|
23308
23247
|
const ref = React.useRef(null);
|
|
23309
23248
|
const [innerNo, setInnerNo] = usePropsValue({
|
|
23310
|
-
value
|
|
23249
|
+
value,
|
|
23311
23250
|
defaultValue,
|
|
23312
23251
|
finalValue: defaultValue,
|
|
23313
23252
|
onChange: (val) => {
|
|
23314
|
-
|
|
23315
|
-
(_a = props.onChange) == null ? void 0 : _a.call(props, val);
|
|
23253
|
+
onChange == null ? void 0 : onChange(val);
|
|
23316
23254
|
}
|
|
23317
23255
|
});
|
|
23318
23256
|
const [showPop, setShowPop] = React.useState(visible);
|
|
@@ -23423,11 +23361,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23423
23361
|
);
|
|
23424
23362
|
};
|
|
23425
23363
|
const slideChangeEnd = (page) => {
|
|
23426
|
-
var _a;
|
|
23427
23364
|
setActive(page + 1);
|
|
23428
|
-
|
|
23365
|
+
onChange == null ? void 0 : onChange(page + 1);
|
|
23429
23366
|
};
|
|
23430
|
-
const onCloseInner = () => {
|
|
23367
|
+
const onCloseInner = (e2) => {
|
|
23368
|
+
e2.stopPropagation();
|
|
23431
23369
|
setShowPop(false);
|
|
23432
23370
|
setActive(innerNo);
|
|
23433
23371
|
scaleNow();
|
|
@@ -23437,9 +23375,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23437
23375
|
scale: 1
|
|
23438
23376
|
});
|
|
23439
23377
|
};
|
|
23440
|
-
const closeOnImg = () => {
|
|
23378
|
+
const closeOnImg = (e2) => {
|
|
23441
23379
|
if (closeOnContentClick) {
|
|
23442
|
-
onCloseInner();
|
|
23380
|
+
onCloseInner(e2);
|
|
23443
23381
|
}
|
|
23444
23382
|
};
|
|
23445
23383
|
const duration = typeof autoPlay === "string" ? parseInt(autoPlay) : autoPlay;
|
|
@@ -23495,7 +23433,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23495
23433
|
) : null
|
|
23496
23434
|
);
|
|
23497
23435
|
};
|
|
23498
|
-
ImagePreview.defaultProps = defaultProps$f;
|
|
23499
23436
|
ImagePreview.displayName = "NutImagePreview";
|
|
23500
23437
|
const defaultProps$e = {
|
|
23501
23438
|
...ComponentDefaults,
|
|
@@ -23607,7 +23544,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23607
23544
|
next || locale.pagination.next
|
|
23608
23545
|
)), mode === "lite" && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-lite` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-lite-active` }, 2), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-lite-default` }, 8))));
|
|
23609
23546
|
};
|
|
23610
|
-
Pagination.defaultProps = defaultProps$e;
|
|
23611
23547
|
Pagination.displayName = "NutPagination";
|
|
23612
23548
|
const defaultProps$d = {
|
|
23613
23549
|
...ComponentDefaults,
|
|
@@ -23700,7 +23636,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23700
23636
|
symbol && position === "after" ? renderSymbol() : null
|
|
23701
23637
|
);
|
|
23702
23638
|
};
|
|
23703
|
-
Price.defaultProps = defaultProps$d;
|
|
23704
23639
|
Price.displayName = "NutPrice";
|
|
23705
23640
|
const DataContext = React.createContext({});
|
|
23706
23641
|
const defaultProps$c = {
|
|
@@ -23746,7 +23681,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23746
23681
|
};
|
|
23747
23682
|
return /* @__PURE__ */ React.createElement("div", { className: classes, ...restProps, onClick: handleClickStep }, /* @__PURE__ */ React.createElement("div", { className: "nut-step-head" }, /* @__PURE__ */ React.createElement("div", { className: "nut-step-line" }), /* @__PURE__ */ React.createElement("div", { className: renderIconClass() }, icon || !dot && /* @__PURE__ */ React.createElement("span", { className: "nut-step-inner" }, value))), (title || description) && /* @__PURE__ */ React.createElement("div", { className: "nut-step-main" }, /* @__PURE__ */ React.createElement("span", { className: "nut-step-title" }, title), description && /* @__PURE__ */ React.createElement("span", { className: "nut-step-description" }, description)));
|
|
23748
23683
|
};
|
|
23749
|
-
Step.defaultProps = defaultProps$c;
|
|
23750
23684
|
Step.displayName = "NutStep";
|
|
23751
23685
|
const defaultProps$b = {
|
|
23752
23686
|
...ComponentDefaults,
|
|
@@ -23773,13 +23707,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23773
23707
|
classPrefix2,
|
|
23774
23708
|
{
|
|
23775
23709
|
[`${classPrefix2}-${direction}`]: true,
|
|
23776
|
-
[`${classPrefix2}-dot`]: !!
|
|
23710
|
+
[`${classPrefix2}-dot`]: !!dot
|
|
23777
23711
|
},
|
|
23778
23712
|
className
|
|
23779
23713
|
);
|
|
23780
23714
|
return /* @__PURE__ */ React.createElement(DataContext.Provider, { value: parentSteps }, /* @__PURE__ */ React.createElement("div", { className: classes, ...restProps }, children));
|
|
23781
23715
|
};
|
|
23782
|
-
Steps.defaultProps = defaultProps$b;
|
|
23783
23716
|
Steps.displayName = "NutSteps";
|
|
23784
23717
|
function useTableSticky(columns, rtl = false) {
|
|
23785
23718
|
const [isSticky, setIsSticky] = React.useState(false);
|
|
@@ -23920,7 +23853,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23920
23853
|
};
|
|
23921
23854
|
const cellClasses = (item) => {
|
|
23922
23855
|
return {
|
|
23923
|
-
[`${headerClassPrefix}-border`]:
|
|
23856
|
+
[`${headerClassPrefix}-border`]: bordered,
|
|
23924
23857
|
[`${headerClassPrefix}-align${item.align ? item.align : ""}`]: true
|
|
23925
23858
|
};
|
|
23926
23859
|
};
|
|
@@ -24006,7 +23939,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24006
23939
|
}
|
|
24007
23940
|
)) : null, (summary || innerValue.length === 0) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-summary` }, summary || noData));
|
|
24008
23941
|
};
|
|
24009
|
-
Table.defaultProps = defaultProps$a;
|
|
24010
23942
|
Table.displayName = "NutTable";
|
|
24011
23943
|
const defaultProps$9 = {
|
|
24012
23944
|
...ComponentDefaults,
|
|
@@ -24109,7 +24041,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24109
24041
|
children && /* @__PURE__ */ React.createElement("span", { className: `${classPrefix2}-text` }, children)
|
|
24110
24042
|
));
|
|
24111
24043
|
};
|
|
24112
|
-
Tag.defaultProps = defaultProps$9;
|
|
24113
24044
|
Tag.displayName = "NutTag";
|
|
24114
24045
|
const defaultProps$8 = {
|
|
24115
24046
|
...ComponentDefaults,
|
|
@@ -24267,7 +24198,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24267
24198
|
)));
|
|
24268
24199
|
}));
|
|
24269
24200
|
};
|
|
24270
|
-
Tour.defaultProps = defaultProps$8;
|
|
24271
24201
|
Tour.displayName = "NutTour";
|
|
24272
24202
|
const initPositinoCache = (reaItemSize, length = 0) => {
|
|
24273
24203
|
let index = 0;
|
|
@@ -24572,7 +24502,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24572
24502
|
)
|
|
24573
24503
|
);
|
|
24574
24504
|
};
|
|
24575
|
-
VirtualList.defaultProps = defaultProps$7;
|
|
24576
24505
|
VirtualList.displayName = "NutVirtualList";
|
|
24577
24506
|
const defaultProps$6 = {
|
|
24578
24507
|
...ComponentDefaults,
|
|
@@ -24680,7 +24609,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24680
24609
|
const Barrage = React.forwardRef(
|
|
24681
24610
|
InternalBarrage
|
|
24682
24611
|
);
|
|
24683
|
-
Barrage.defaultProps = defaultProps$6;
|
|
24684
24612
|
Barrage.displayName = "NutBarrage";
|
|
24685
24613
|
const defaultProps$5 = {
|
|
24686
24614
|
...ComponentDefaults,
|
|
@@ -24726,7 +24654,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24726
24654
|
}
|
|
24727
24655
|
)), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-other` }, tag || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Tag, { type: "danger" }, shopDescription), /* @__PURE__ */ React.createElement(Tag, { plain: true }, delivery))), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-shop` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-shop-name` }, shopName), extra)));
|
|
24728
24656
|
};
|
|
24729
|
-
Card.defaultProps = defaultProps$5;
|
|
24730
24657
|
Card.displayName = "NutCard";
|
|
24731
24658
|
const defaultProps$4 = {
|
|
24732
24659
|
...ComponentDefaults,
|
|
@@ -24781,7 +24708,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24781
24708
|
item[optionKey.textKey]
|
|
24782
24709
|
)));
|
|
24783
24710
|
};
|
|
24784
|
-
TimeDetail.defaultProps = defaultProps$4;
|
|
24785
24711
|
TimeDetail.displayName = "NutTimeDetail";
|
|
24786
24712
|
const defaultProps$3 = {
|
|
24787
24713
|
...ComponentDefaults,
|
|
@@ -24919,7 +24845,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24919
24845
|
)))
|
|
24920
24846
|
);
|
|
24921
24847
|
};
|
|
24922
|
-
TimeSelect.defaultProps = defaultProps$3;
|
|
24923
24848
|
TimeSelect.displayName = "NutTimeSelect";
|
|
24924
24849
|
const defaultProps$2 = {
|
|
24925
24850
|
...ComponentDefaults,
|
|
@@ -25000,7 +24925,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25000
24925
|
};
|
|
25001
24926
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2} ${className}`, style, ...rest }, !left && renderContent(!left), Number(value) !== 0 && /* @__PURE__ */ React.createElement(React.Fragment, null, rateTrend.current ? /* @__PURE__ */ React.createElement(React.Fragment, null, riseIcon || /* @__PURE__ */ React.createElement(o, { color: calcIconProps.color })) : /* @__PURE__ */ React.createElement(React.Fragment, null, dropIcon || /* @__PURE__ */ React.createElement(e, { color: calcIconProps.color }))), left && renderContent(!left));
|
|
25002
24927
|
};
|
|
25003
|
-
TrendArrow.defaultProps = defaultProps$2;
|
|
25004
24928
|
TrendArrow.displayName = "NutTrendArrow";
|
|
25005
24929
|
const defaultProps$1 = {
|
|
25006
24930
|
...ComponentDefaults,
|
|
@@ -25112,7 +25036,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25112
25036
|
}
|
|
25113
25037
|
);
|
|
25114
25038
|
};
|
|
25115
|
-
WaterMark.defaultProps = defaultProps$1;
|
|
25116
25039
|
WaterMark.displayName = "NutWaterMark";
|
|
25117
25040
|
const defaultProps = {
|
|
25118
25041
|
...ComponentDefaults,
|
|
@@ -25475,7 +25398,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25475
25398
|
}
|
|
25476
25399
|
), /* @__PURE__ */ React.createElement("div", { className: "nut-avatar-cropper-edit-text" }, editText)), CropperPopup());
|
|
25477
25400
|
};
|
|
25478
|
-
AvatarCropper.defaultProps = defaultProps;
|
|
25479
25401
|
AvatarCropper.displayName = "NutAvatarCropper";
|
|
25480
25402
|
exports2.ActionSheet = ActionSheet;
|
|
25481
25403
|
exports2.Address = Address;
|