@nutui/nutui-react 2.6.4 → 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 +15 -2
- 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/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/CircleProgress.js +3 -5
- package/dist/esm/Collapse.js +0 -1
- package/dist/esm/CountDown.js +0 -1
- package/dist/esm/Drag.js +1 -2
- package/dist/esm/Ellipsis.js +0 -1
- package/dist/esm/Empty.js +0 -1
- package/dist/esm/Form.js +0 -1
- package/dist/esm/ImagePreview.js +4 -7
- 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/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/SearchBar.js +6 -7
- package/dist/esm/ShortPassword.js +2 -2
- package/dist/esm/Signature.js +0 -1
- package/dist/esm/Skeleton.js +0 -1
- package/dist/esm/Step.js +0 -1
- package/dist/esm/Steps.js +1 -2
- package/dist/esm/Switch.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/menuitem2.js +0 -1
- package/dist/esm/popup2.js +0 -1
- 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 +133 -199
- package/dist/nutui.react.umd.js +133 -199
- 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/nutui.react.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v2.6.
|
|
2
|
+
* @nutui/nutui-react v2.6.5 Fri May 17 2024 15:42:52 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1127,7 +1127,7 @@ const ComponentDefaults = {
|
|
|
1127
1127
|
style: {}
|
|
1128
1128
|
};
|
|
1129
1129
|
const prefixCls$2 = "nut-button";
|
|
1130
|
-
const defaultProps$
|
|
1130
|
+
const defaultProps$1t = {
|
|
1131
1131
|
...ComponentDefaults,
|
|
1132
1132
|
color: "",
|
|
1133
1133
|
type: "default",
|
|
@@ -1163,7 +1163,7 @@ const Button = React__default.forwardRef(
|
|
|
1163
1163
|
onClick,
|
|
1164
1164
|
...rest
|
|
1165
1165
|
} = {
|
|
1166
|
-
...defaultProps$
|
|
1166
|
+
...defaultProps$1t,
|
|
1167
1167
|
...props
|
|
1168
1168
|
};
|
|
1169
1169
|
const getStyle = useCallback(() => {
|
|
@@ -1222,7 +1222,7 @@ const Button = React__default.forwardRef(
|
|
|
1222
1222
|
);
|
|
1223
1223
|
Button.displayName = "NutButton";
|
|
1224
1224
|
const CellGroupContext = createContext(null);
|
|
1225
|
-
const defaultProps$
|
|
1225
|
+
const defaultProps$1s = {
|
|
1226
1226
|
...ComponentDefaults,
|
|
1227
1227
|
title: "",
|
|
1228
1228
|
description: "",
|
|
@@ -1231,7 +1231,7 @@ const defaultProps$1t = {
|
|
|
1231
1231
|
const classPrefix$r = "nut-cell-group";
|
|
1232
1232
|
const CellGroup = (props) => {
|
|
1233
1233
|
const { children, className, title, description, divider, ...rest } = {
|
|
1234
|
-
...defaultProps$
|
|
1234
|
+
...defaultProps$1s,
|
|
1235
1235
|
...props
|
|
1236
1236
|
};
|
|
1237
1237
|
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$r, className), ...rest }, title ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$r}-title` }, title) : null, description ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$r}-description` }, description) : null, /* @__PURE__ */ React__default.createElement(
|
|
@@ -1243,7 +1243,7 @@ const CellGroup = (props) => {
|
|
|
1243
1243
|
));
|
|
1244
1244
|
};
|
|
1245
1245
|
CellGroup.displayName = "NutCellGroup";
|
|
1246
|
-
const defaultProps$
|
|
1246
|
+
const defaultProps$1r = {
|
|
1247
1247
|
...ComponentDefaults,
|
|
1248
1248
|
title: null,
|
|
1249
1249
|
description: null,
|
|
@@ -1268,7 +1268,7 @@ const Cell = (props) => {
|
|
|
1268
1268
|
style,
|
|
1269
1269
|
...rest
|
|
1270
1270
|
} = {
|
|
1271
|
-
...defaultProps$
|
|
1271
|
+
...defaultProps$1r,
|
|
1272
1272
|
...props
|
|
1273
1273
|
};
|
|
1274
1274
|
const handleClick2 = (event) => {
|
|
@@ -2462,7 +2462,7 @@ ConfigProvider.displayName = "NutConfigProvider";
|
|
|
2462
2462
|
const pxCheck = (value) => {
|
|
2463
2463
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
2464
2464
|
};
|
|
2465
|
-
const defaultProps$
|
|
2465
|
+
const defaultProps$1q = {
|
|
2466
2466
|
...ComponentDefaults,
|
|
2467
2467
|
fit: "fill",
|
|
2468
2468
|
position: "center",
|
|
@@ -2492,7 +2492,7 @@ const Image$1 = (props) => {
|
|
|
2492
2492
|
onClick,
|
|
2493
2493
|
onLoad,
|
|
2494
2494
|
onError
|
|
2495
|
-
} = { ...defaultProps$
|
|
2495
|
+
} = { ...defaultProps$1q, ...props };
|
|
2496
2496
|
const [innerLoading, setInnerLoading] = useState(false);
|
|
2497
2497
|
const [isError, setIsError] = useState(false);
|
|
2498
2498
|
const [complete, setComplete] = useState(false);
|
|
@@ -4638,7 +4638,7 @@ const Overlay = (props) => {
|
|
|
4638
4638
|
};
|
|
4639
4639
|
Overlay.displayName = "NutOverlay";
|
|
4640
4640
|
const DataContext$1 = createContext({});
|
|
4641
|
-
const defaultProps$
|
|
4641
|
+
const defaultProps$1p = {
|
|
4642
4642
|
...ComponentDefaults,
|
|
4643
4643
|
span: "24",
|
|
4644
4644
|
offset: "0",
|
|
@@ -4646,7 +4646,7 @@ const defaultProps$1q = {
|
|
|
4646
4646
|
};
|
|
4647
4647
|
const Col = (props) => {
|
|
4648
4648
|
const { className, style, span, offset, children, onClick } = {
|
|
4649
|
-
...defaultProps$
|
|
4649
|
+
...defaultProps$1p,
|
|
4650
4650
|
...props
|
|
4651
4651
|
};
|
|
4652
4652
|
const [colName, setColName] = useState("");
|
|
@@ -4679,7 +4679,7 @@ const Col = (props) => {
|
|
|
4679
4679
|
);
|
|
4680
4680
|
};
|
|
4681
4681
|
Col.displayName = "NutCol";
|
|
4682
|
-
const defaultProps$
|
|
4682
|
+
const defaultProps$1o = {
|
|
4683
4683
|
...ComponentDefaults,
|
|
4684
4684
|
contentPosition: "center",
|
|
4685
4685
|
direction: "horizontal"
|
|
@@ -4687,7 +4687,7 @@ const defaultProps$1p = {
|
|
|
4687
4687
|
const classPrefix$n = `nut-divider`;
|
|
4688
4688
|
const Divider = (props) => {
|
|
4689
4689
|
const { children, contentPosition, style, className, direction, ...rest } = {
|
|
4690
|
-
...defaultProps$
|
|
4690
|
+
...defaultProps$1o,
|
|
4691
4691
|
...props
|
|
4692
4692
|
};
|
|
4693
4693
|
const classes = direction === "horizontal" ? classNames({
|
|
@@ -4708,7 +4708,7 @@ const gridContext = {
|
|
|
4708
4708
|
}
|
|
4709
4709
|
};
|
|
4710
4710
|
const GridContext = React__default.createContext(gridContext);
|
|
4711
|
-
const defaultProps$
|
|
4711
|
+
const defaultProps$1n = {
|
|
4712
4712
|
text: "",
|
|
4713
4713
|
columns: 4,
|
|
4714
4714
|
gap: 0,
|
|
@@ -4734,7 +4734,7 @@ const GridItem = (props) => {
|
|
|
4734
4734
|
onClick,
|
|
4735
4735
|
...rest
|
|
4736
4736
|
} = {
|
|
4737
|
-
...defaultProps$
|
|
4737
|
+
...defaultProps$1n,
|
|
4738
4738
|
...props
|
|
4739
4739
|
};
|
|
4740
4740
|
const classPrefix2 = "nut-grid-item";
|
|
@@ -4793,7 +4793,7 @@ const GridItem = (props) => {
|
|
|
4793
4793
|
);
|
|
4794
4794
|
};
|
|
4795
4795
|
GridItem.displayName = "NutGridItem";
|
|
4796
|
-
const defaultProps$
|
|
4796
|
+
const defaultProps$1m = {
|
|
4797
4797
|
columns: 4,
|
|
4798
4798
|
gap: 0,
|
|
4799
4799
|
center: true,
|
|
@@ -4814,7 +4814,7 @@ const Grid = (props) => {
|
|
|
4814
4814
|
className,
|
|
4815
4815
|
onClick,
|
|
4816
4816
|
...rest
|
|
4817
|
-
} = { ...defaultProps$
|
|
4817
|
+
} = { ...defaultProps$1m, ...props };
|
|
4818
4818
|
const childrenDom = React__default.Children.toArray(children);
|
|
4819
4819
|
const classPrefix2 = "nut-grid";
|
|
4820
4820
|
const rootClass = () => {
|
|
@@ -4850,15 +4850,14 @@ const Grid = (props) => {
|
|
|
4850
4850
|
};
|
|
4851
4851
|
Grid.displayName = "NutGrid";
|
|
4852
4852
|
Grid.Item = GridItem;
|
|
4853
|
-
const defaultProps$
|
|
4853
|
+
const defaultProps$1l = {};
|
|
4854
4854
|
const Layout = (props) => {
|
|
4855
|
-
({ ...defaultProps$
|
|
4855
|
+
({ ...defaultProps$1l, ...props });
|
|
4856
4856
|
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-layout" }, "Layout");
|
|
4857
4857
|
};
|
|
4858
|
-
Layout.defaultProps = defaultProps$1m;
|
|
4859
4858
|
Layout.displayName = "NutLayout";
|
|
4860
4859
|
const classPrefix$m = "nut-row";
|
|
4861
|
-
const defaultProps$
|
|
4860
|
+
const defaultProps$1k = {
|
|
4862
4861
|
...ComponentDefaults,
|
|
4863
4862
|
type: "",
|
|
4864
4863
|
justify: "start",
|
|
@@ -4878,7 +4877,7 @@ const Row = (props) => {
|
|
|
4878
4877
|
gutter,
|
|
4879
4878
|
onClick
|
|
4880
4879
|
} = {
|
|
4881
|
-
...defaultProps$
|
|
4880
|
+
...defaultProps$1k,
|
|
4882
4881
|
...props
|
|
4883
4882
|
};
|
|
4884
4883
|
const getClass = (prefix2, type22) => {
|
|
@@ -4912,12 +4911,12 @@ const Row = (props) => {
|
|
|
4912
4911
|
};
|
|
4913
4912
|
Row.displayName = "NutRow";
|
|
4914
4913
|
const prefixCls$1 = "nut-space";
|
|
4915
|
-
const defaultProps$
|
|
4914
|
+
const defaultProps$1j = {
|
|
4916
4915
|
direction: "horizontal"
|
|
4917
4916
|
};
|
|
4918
4917
|
const Space = (props) => {
|
|
4919
4918
|
const { className, style, children, wrap, align, direction, justify } = {
|
|
4920
|
-
...defaultProps$
|
|
4919
|
+
...defaultProps$1j,
|
|
4921
4920
|
...props
|
|
4922
4921
|
};
|
|
4923
4922
|
const cls = classNames(
|
|
@@ -4985,7 +4984,7 @@ function useWatch(dep, callback, config2 = { immediate: false }) {
|
|
|
4985
4984
|
stop2.current = true;
|
|
4986
4985
|
};
|
|
4987
4986
|
}
|
|
4988
|
-
const defaultProps$
|
|
4987
|
+
const defaultProps$1i = {
|
|
4989
4988
|
...ComponentDefaults,
|
|
4990
4989
|
position: "top",
|
|
4991
4990
|
threshold: 0,
|
|
@@ -5003,7 +5002,7 @@ const Sticky = (props) => {
|
|
|
5003
5002
|
threshold,
|
|
5004
5003
|
onChange,
|
|
5005
5004
|
...rest
|
|
5006
|
-
} = { ...defaultProps$
|
|
5005
|
+
} = { ...defaultProps$1i, ...props };
|
|
5007
5006
|
const stickyRef = useRef(null);
|
|
5008
5007
|
const rootRef = useRef(null);
|
|
5009
5008
|
const [isFixed, setIsFixed] = useState(false);
|
|
@@ -5133,7 +5132,7 @@ const SafeArea = (props) => {
|
|
|
5133
5132
|
);
|
|
5134
5133
|
};
|
|
5135
5134
|
SafeArea.displayName = "NutSafeArea";
|
|
5136
|
-
const defaultProps$
|
|
5135
|
+
const defaultProps$1h = {
|
|
5137
5136
|
...ComponentDefaults,
|
|
5138
5137
|
target: "",
|
|
5139
5138
|
threshold: 200,
|
|
@@ -5152,7 +5151,7 @@ const BackTop = (props) => {
|
|
|
5152
5151
|
style,
|
|
5153
5152
|
onClick
|
|
5154
5153
|
} = {
|
|
5155
|
-
...defaultProps$
|
|
5154
|
+
...defaultProps$1h,
|
|
5156
5155
|
...props
|
|
5157
5156
|
};
|
|
5158
5157
|
const classPrefix2 = "nut-backtop";
|
|
@@ -10366,7 +10365,7 @@ const host = createHost(primitives, {
|
|
|
10366
10365
|
});
|
|
10367
10366
|
const animated = host.animated;
|
|
10368
10367
|
const elevatorContext = createContext({});
|
|
10369
|
-
const defaultProps$
|
|
10368
|
+
const defaultProps$1g = {
|
|
10370
10369
|
...ComponentDefaults,
|
|
10371
10370
|
height: "200px",
|
|
10372
10371
|
floorKey: "title",
|
|
@@ -10392,7 +10391,7 @@ const Elevator = (props) => {
|
|
|
10392
10391
|
children,
|
|
10393
10392
|
...rest
|
|
10394
10393
|
} = {
|
|
10395
|
-
...defaultProps$
|
|
10394
|
+
...defaultProps$1g,
|
|
10396
10395
|
...props
|
|
10397
10396
|
};
|
|
10398
10397
|
const classPrefix2 = "nut-elevator";
|
|
@@ -10570,7 +10569,7 @@ const Elevator = (props) => {
|
|
|
10570
10569
|
};
|
|
10571
10570
|
Elevator.displayName = "NutElevator";
|
|
10572
10571
|
Elevator.Context = elevatorContext;
|
|
10573
|
-
const defaultProps$
|
|
10572
|
+
const defaultProps$1f = {
|
|
10574
10573
|
...ComponentDefaults,
|
|
10575
10574
|
activeText: "",
|
|
10576
10575
|
inactiveText: "",
|
|
@@ -10598,7 +10597,7 @@ const FixedNav = (props) => {
|
|
|
10598
10597
|
content,
|
|
10599
10598
|
...rest
|
|
10600
10599
|
} = {
|
|
10601
|
-
...defaultProps$
|
|
10600
|
+
...defaultProps$1f,
|
|
10602
10601
|
...props
|
|
10603
10602
|
};
|
|
10604
10603
|
const classPrefix2 = "nut-fixednav";
|
|
@@ -10651,7 +10650,7 @@ const FixedNav = (props) => {
|
|
|
10651
10650
|
);
|
|
10652
10651
|
};
|
|
10653
10652
|
FixedNav.displayName = "NutFixedNav";
|
|
10654
|
-
const defaultProps$
|
|
10653
|
+
const defaultProps$1e = {
|
|
10655
10654
|
...ComponentDefaults,
|
|
10656
10655
|
left: "",
|
|
10657
10656
|
right: "",
|
|
@@ -10676,7 +10675,7 @@ const NavBar = (props) => {
|
|
|
10676
10675
|
zIndex,
|
|
10677
10676
|
onBackClick
|
|
10678
10677
|
} = {
|
|
10679
|
-
...defaultProps$
|
|
10678
|
+
...defaultProps$1e,
|
|
10680
10679
|
...props
|
|
10681
10680
|
};
|
|
10682
10681
|
const classPrefix2 = "nut-navbar";
|
|
@@ -10753,7 +10752,7 @@ const NavBar = (props) => {
|
|
|
10753
10752
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-placeholder` }, renderWrapper()) : renderWrapper());
|
|
10754
10753
|
};
|
|
10755
10754
|
NavBar.displayName = "NutNavBar";
|
|
10756
|
-
const defaultProps$
|
|
10755
|
+
const defaultProps$1d = {
|
|
10757
10756
|
...ComponentDefaults,
|
|
10758
10757
|
position: "center",
|
|
10759
10758
|
transition: "",
|
|
@@ -10806,7 +10805,7 @@ const Popup = (props) => {
|
|
|
10806
10805
|
afterShow,
|
|
10807
10806
|
afterClose,
|
|
10808
10807
|
onClick
|
|
10809
|
-
} = { ...defaultProps$
|
|
10808
|
+
} = { ...defaultProps$1d, ...props };
|
|
10810
10809
|
const nodeRef = React__default.useRef(null);
|
|
10811
10810
|
let innerIndex = zIndex || _zIndex;
|
|
10812
10811
|
const [index, setIndex] = useState(innerIndex);
|
|
@@ -10947,7 +10946,6 @@ const Popup = (props) => {
|
|
|
10947
10946
|
}, [position, transition]);
|
|
10948
10947
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, renderToContainer(portal, renderNode()));
|
|
10949
10948
|
};
|
|
10950
|
-
Popup.defaultProps = defaultProps$1e;
|
|
10951
10949
|
Popup.displayName = "NutPopup";
|
|
10952
10950
|
const handleClick = (e2) => {
|
|
10953
10951
|
e2.stopPropagation();
|
|
@@ -10963,7 +10961,7 @@ const handleClick = (e2) => {
|
|
|
10963
10961
|
}
|
|
10964
10962
|
};
|
|
10965
10963
|
const OffsetContext = createContext(20);
|
|
10966
|
-
const defaultProps$
|
|
10964
|
+
const defaultProps$1c = {
|
|
10967
10965
|
...ComponentDefaults,
|
|
10968
10966
|
position: "left",
|
|
10969
10967
|
width: "80%"
|
|
@@ -10981,7 +10979,7 @@ const SideNavBar = (props) => {
|
|
|
10981
10979
|
indent,
|
|
10982
10980
|
...rest
|
|
10983
10981
|
} = {
|
|
10984
|
-
...defaultProps$
|
|
10982
|
+
...defaultProps$1c,
|
|
10985
10983
|
...props
|
|
10986
10984
|
};
|
|
10987
10985
|
const innerIndent = indent ? Number(indent) : 20;
|
|
@@ -11031,13 +11029,13 @@ const SideNavBarItem = (props) => {
|
|
|
11031
11029
|
title
|
|
11032
11030
|
);
|
|
11033
11031
|
};
|
|
11034
|
-
const defaultProps$
|
|
11032
|
+
const defaultProps$1b = {
|
|
11035
11033
|
open: true
|
|
11036
11034
|
};
|
|
11037
11035
|
const SubSideNavBar = (props) => {
|
|
11038
11036
|
const classPrefix2 = "nut-subsidenavbar";
|
|
11039
11037
|
const { title, value, children, onClick, open, ...rest } = {
|
|
11040
|
-
...defaultProps$
|
|
11038
|
+
...defaultProps$1b,
|
|
11041
11039
|
...props
|
|
11042
11040
|
};
|
|
11043
11041
|
const offset = useContext(OffsetContext);
|
|
@@ -11114,7 +11112,7 @@ function usePropsValue({
|
|
|
11114
11112
|
);
|
|
11115
11113
|
return [stateRef.current, setState];
|
|
11116
11114
|
}
|
|
11117
|
-
const defaultProps$
|
|
11115
|
+
const defaultProps$1a = {
|
|
11118
11116
|
...ComponentDefaults,
|
|
11119
11117
|
value: "",
|
|
11120
11118
|
dot: false,
|
|
@@ -11139,7 +11137,7 @@ const Badge = (props) => {
|
|
|
11139
11137
|
color,
|
|
11140
11138
|
fill
|
|
11141
11139
|
} = {
|
|
11142
|
-
...defaultProps$
|
|
11140
|
+
...defaultProps$1a,
|
|
11143
11141
|
...props
|
|
11144
11142
|
};
|
|
11145
11143
|
const classPrefix2 = "nut-badge";
|
|
@@ -11195,10 +11193,9 @@ const Badge = (props) => {
|
|
|
11195
11193
|
};
|
|
11196
11194
|
return /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, isIcon() && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-icon` }, value), children, !isIcon() && /* @__PURE__ */ React__default.createElement("div", { className: contentClasses, style: getStyle() }, content()));
|
|
11197
11195
|
};
|
|
11198
|
-
Badge.defaultProps = defaultProps$1b;
|
|
11199
11196
|
Badge.displayName = "NutBadge";
|
|
11200
11197
|
const TabbarContext = React__default.createContext(null);
|
|
11201
|
-
const defaultProps$
|
|
11198
|
+
const defaultProps$19 = {
|
|
11202
11199
|
...ComponentDefaults,
|
|
11203
11200
|
title: "",
|
|
11204
11201
|
icon: null,
|
|
@@ -11224,7 +11221,7 @@ const TabbarItem = (props) => {
|
|
|
11224
11221
|
index,
|
|
11225
11222
|
...rest
|
|
11226
11223
|
} = {
|
|
11227
|
-
...defaultProps$
|
|
11224
|
+
...defaultProps$19,
|
|
11228
11225
|
...props
|
|
11229
11226
|
};
|
|
11230
11227
|
const active = index === (ctx2 == null ? void 0 : ctx2.selectIndex);
|
|
@@ -11262,7 +11259,7 @@ const TabbarItem = (props) => {
|
|
|
11262
11259
|
icon ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React__default.createElement("div", { className: boxPrefix }, icon)), /* @__PURE__ */ React__default.createElement("div", { className: titleClass }, title)) : /* @__PURE__ */ React__default.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React__default.createElement("div", { className: titleClass }, title))
|
|
11263
11260
|
);
|
|
11264
11261
|
};
|
|
11265
|
-
const defaultProps$
|
|
11262
|
+
const defaultProps$18 = {
|
|
11266
11263
|
...ComponentDefaults,
|
|
11267
11264
|
defaultValue: 0,
|
|
11268
11265
|
fixed: false,
|
|
@@ -11285,7 +11282,7 @@ const Tabbar = (props) => {
|
|
|
11285
11282
|
style,
|
|
11286
11283
|
onSwitch
|
|
11287
11284
|
} = {
|
|
11288
|
-
...defaultProps$
|
|
11285
|
+
...defaultProps$18,
|
|
11289
11286
|
...props
|
|
11290
11287
|
};
|
|
11291
11288
|
const classPrefix2 = "nut-tabbar";
|
|
@@ -11328,14 +11325,14 @@ const Tabbar = (props) => {
|
|
|
11328
11325
|
};
|
|
11329
11326
|
Tabbar.displayName = "NutTabbar";
|
|
11330
11327
|
Tabbar.Item = TabbarItem;
|
|
11331
|
-
const defaultProps$
|
|
11328
|
+
const defaultProps$17 = {
|
|
11332
11329
|
title: "",
|
|
11333
11330
|
value: "",
|
|
11334
11331
|
disabled: false
|
|
11335
11332
|
};
|
|
11336
11333
|
const TabPane = (props) => {
|
|
11337
11334
|
const { children, autoHeightClassName, className, disabled } = {
|
|
11338
|
-
...defaultProps$
|
|
11335
|
+
...defaultProps$17,
|
|
11339
11336
|
...props
|
|
11340
11337
|
};
|
|
11341
11338
|
const classPrefix2 = "nut-tabpane";
|
|
@@ -11349,7 +11346,7 @@ const TabPane = (props) => {
|
|
|
11349
11346
|
);
|
|
11350
11347
|
return children ? /* @__PURE__ */ React__default.createElement("div", { className: classes }, !disabled && children) : null;
|
|
11351
11348
|
};
|
|
11352
|
-
const defaultProps$
|
|
11349
|
+
const defaultProps$16 = {
|
|
11353
11350
|
...ComponentDefaults,
|
|
11354
11351
|
tabStyle: {},
|
|
11355
11352
|
activeColor: "",
|
|
@@ -11378,7 +11375,7 @@ const Tabs = (props) => {
|
|
|
11378
11375
|
defaultValue: outerDefaultValue,
|
|
11379
11376
|
...rest
|
|
11380
11377
|
} = {
|
|
11381
|
-
...defaultProps$
|
|
11378
|
+
...defaultProps$16,
|
|
11382
11379
|
...props
|
|
11383
11380
|
};
|
|
11384
11381
|
const [value, setValue] = usePropsValue({
|
|
@@ -11684,7 +11681,7 @@ class Tree {
|
|
|
11684
11681
|
return pathNodes;
|
|
11685
11682
|
}
|
|
11686
11683
|
}
|
|
11687
|
-
const defaultProps$
|
|
11684
|
+
const defaultProps$15 = {
|
|
11688
11685
|
...ComponentDefaults,
|
|
11689
11686
|
activeColor: "",
|
|
11690
11687
|
activeIcon: "checklist",
|
|
@@ -11723,11 +11720,13 @@ const InternalCascader = (props, ref) => {
|
|
|
11723
11720
|
closeIconPosition,
|
|
11724
11721
|
closeIcon,
|
|
11725
11722
|
lazy,
|
|
11723
|
+
title,
|
|
11724
|
+
left,
|
|
11726
11725
|
onLoad,
|
|
11727
11726
|
onClose,
|
|
11728
11727
|
onChange,
|
|
11729
11728
|
onPathChange
|
|
11730
|
-
} = { ...defaultProps$
|
|
11729
|
+
} = { ...defaultProps$15, ...props };
|
|
11731
11730
|
const [tabvalue, setTabvalue] = useState("c1");
|
|
11732
11731
|
const [optionsData, setOptionsData] = useState([]);
|
|
11733
11732
|
const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
|
|
@@ -11737,7 +11736,7 @@ const InternalCascader = (props, ref) => {
|
|
|
11737
11736
|
finalValue: defaultValue
|
|
11738
11737
|
});
|
|
11739
11738
|
const [innerVisible, setInnerVisible] = usePropsValue({
|
|
11740
|
-
value:
|
|
11739
|
+
value: visible,
|
|
11741
11740
|
defaultValue: void 0,
|
|
11742
11741
|
finalValue: false
|
|
11743
11742
|
});
|
|
@@ -12024,8 +12023,8 @@ const InternalCascader = (props, ref) => {
|
|
|
12024
12023
|
closeIcon,
|
|
12025
12024
|
closeable,
|
|
12026
12025
|
closeIconPosition,
|
|
12027
|
-
title: popup &&
|
|
12028
|
-
left
|
|
12026
|
+
title: popup && title,
|
|
12027
|
+
left,
|
|
12029
12028
|
onOverlayClick: closePopup,
|
|
12030
12029
|
onCloseIconClick: closePopup
|
|
12031
12030
|
},
|
|
@@ -12033,9 +12032,8 @@ const InternalCascader = (props, ref) => {
|
|
|
12033
12032
|
) : renderTabs());
|
|
12034
12033
|
};
|
|
12035
12034
|
const Cascader = React__default.forwardRef(InternalCascader);
|
|
12036
|
-
Cascader.defaultProps = defaultProps$16;
|
|
12037
12035
|
Cascader.displayName = "NutCascader";
|
|
12038
|
-
const defaultProps$
|
|
12036
|
+
const defaultProps$14 = {
|
|
12039
12037
|
...ComponentDefaults,
|
|
12040
12038
|
visible: false,
|
|
12041
12039
|
type: "custom",
|
|
@@ -12062,7 +12060,7 @@ const CustomRender = (props) => {
|
|
|
12062
12060
|
onPathChange,
|
|
12063
12061
|
...rest
|
|
12064
12062
|
} = {
|
|
12065
|
-
...defaultProps$
|
|
12063
|
+
...defaultProps$14,
|
|
12066
12064
|
...props
|
|
12067
12065
|
};
|
|
12068
12066
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, type4 === "custom" && /* @__PURE__ */ React__default.createElement(
|
|
@@ -12087,7 +12085,7 @@ const CustomRender = (props) => {
|
|
|
12087
12085
|
}
|
|
12088
12086
|
));
|
|
12089
12087
|
};
|
|
12090
|
-
const defaultProps$
|
|
12088
|
+
const defaultProps$13 = {
|
|
12091
12089
|
type: "custom",
|
|
12092
12090
|
existList: [],
|
|
12093
12091
|
defaultIcon: null,
|
|
@@ -12106,7 +12104,7 @@ const ExistRender = (props) => {
|
|
|
12106
12104
|
onSelect,
|
|
12107
12105
|
onSwitch,
|
|
12108
12106
|
...rest
|
|
12109
|
-
} = { ...defaultProps$
|
|
12107
|
+
} = { ...defaultProps$13, ...props };
|
|
12110
12108
|
const classPrefix2 = "nut-address";
|
|
12111
12109
|
const selectedExist = (item) => {
|
|
12112
12110
|
existList.forEach((list, index) => {
|
|
@@ -12135,7 +12133,7 @@ const ExistRender = (props) => {
|
|
|
12135
12133
|
);
|
|
12136
12134
|
})), (custom || custom && locale.address.chooseAnotherAddress) && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-footer`, onClick }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-footer-btn` }, custom)));
|
|
12137
12135
|
};
|
|
12138
|
-
const defaultProps$
|
|
12136
|
+
const defaultProps$12 = {
|
|
12139
12137
|
...ComponentDefaults,
|
|
12140
12138
|
defaultValue: [],
|
|
12141
12139
|
type: "custom",
|
|
@@ -12177,7 +12175,7 @@ const InternalAddress = (props, ref) => {
|
|
|
12177
12175
|
onSwitch,
|
|
12178
12176
|
...rest
|
|
12179
12177
|
} = {
|
|
12180
|
-
...defaultProps$
|
|
12178
|
+
...defaultProps$12,
|
|
12181
12179
|
...props
|
|
12182
12180
|
};
|
|
12183
12181
|
const classPrefix2 = "nut-address";
|
|
@@ -12269,7 +12267,6 @@ const InternalAddress = (props, ref) => {
|
|
|
12269
12267
|
));
|
|
12270
12268
|
};
|
|
12271
12269
|
const Address = forwardRef(InternalAddress);
|
|
12272
|
-
Address.defaultProps = defaultProps$13;
|
|
12273
12270
|
Address.displayName = "NutAddress";
|
|
12274
12271
|
const Utils = {
|
|
12275
12272
|
/**
|
|
@@ -12519,7 +12516,7 @@ const isEnd = (day, days) => {
|
|
|
12519
12516
|
const isStartAndEnd = (days) => {
|
|
12520
12517
|
return days.length >= 2 && Utils.isEqual(days[0], days[1]);
|
|
12521
12518
|
};
|
|
12522
|
-
const defaultProps$
|
|
12519
|
+
const defaultProps$11 = {
|
|
12523
12520
|
...ComponentDefaults,
|
|
12524
12521
|
type: "single",
|
|
12525
12522
|
autoBackfill: false,
|
|
@@ -12575,11 +12572,12 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
12575
12572
|
renderDay,
|
|
12576
12573
|
renderDayTop,
|
|
12577
12574
|
renderDayBottom,
|
|
12575
|
+
value,
|
|
12578
12576
|
onConfirm,
|
|
12579
12577
|
onUpdate,
|
|
12580
12578
|
onDayClick,
|
|
12581
12579
|
onPageChange
|
|
12582
|
-
} = { ...defaultProps$
|
|
12580
|
+
} = { ...defaultProps$11, ...props };
|
|
12583
12581
|
const weekdays = locale.calendaritem.weekdays;
|
|
12584
12582
|
const weeks = [
|
|
12585
12583
|
...weekdays.slice(firstDayOfWeek, 7),
|
|
@@ -12611,7 +12609,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
12611
12609
|
return void 0;
|
|
12612
12610
|
};
|
|
12613
12611
|
const [currentDate, setCurrentDate] = usePropsValue({
|
|
12614
|
-
value
|
|
12612
|
+
value,
|
|
12615
12613
|
defaultValue: resetDefaultValue(),
|
|
12616
12614
|
finalValue: [],
|
|
12617
12615
|
onChange: (val) => {
|
|
@@ -12817,7 +12815,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
12817
12815
|
monthsData[current.lastCurrent],
|
|
12818
12816
|
true
|
|
12819
12817
|
);
|
|
12820
|
-
} else if (
|
|
12818
|
+
} else if (type4 === "week") {
|
|
12821
12819
|
chooseDay(
|
|
12822
12820
|
{ day: defaultData[2], type: "curr" },
|
|
12823
12821
|
monthsData[current.current],
|
|
@@ -13121,9 +13119,8 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
13121
13119
|
};
|
|
13122
13120
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : ""));
|
|
13123
13121
|
});
|
|
13124
|
-
CalendarItem.defaultProps = defaultProps$12;
|
|
13125
13122
|
CalendarItem.displayName = "NutCalendarItem";
|
|
13126
|
-
const defaultProps$
|
|
13123
|
+
const defaultProps$10 = {
|
|
13127
13124
|
...ComponentDefaults,
|
|
13128
13125
|
type: "single",
|
|
13129
13126
|
autoBackfill: false,
|
|
@@ -13186,7 +13183,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
13186
13183
|
onConfirm,
|
|
13187
13184
|
onDayClick,
|
|
13188
13185
|
onPageChange
|
|
13189
|
-
} = { ...defaultProps$
|
|
13186
|
+
} = { ...defaultProps$10, ...props };
|
|
13190
13187
|
const calendarRef = useRef(null);
|
|
13191
13188
|
const close = () => {
|
|
13192
13189
|
onClose && onClose();
|
|
@@ -13261,7 +13258,6 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
13261
13258
|
renderItem()
|
|
13262
13259
|
) : renderItem());
|
|
13263
13260
|
});
|
|
13264
|
-
Calendar.defaultProps = defaultProps$11;
|
|
13265
13261
|
Calendar.displayName = "NutCalendar";
|
|
13266
13262
|
const ArrowLeft = () => {
|
|
13267
13263
|
return /* @__PURE__ */ React__default.createElement(
|
|
@@ -13367,7 +13363,7 @@ const getCurrentWeekDays = (day, firstDayOfWeek) => {
|
|
|
13367
13363
|
)
|
|
13368
13364
|
];
|
|
13369
13365
|
};
|
|
13370
|
-
const defaultProps
|
|
13366
|
+
const defaultProps$$ = {
|
|
13371
13367
|
...ComponentDefaults,
|
|
13372
13368
|
type: "single",
|
|
13373
13369
|
firstDayOfWeek: 0
|
|
@@ -13391,7 +13387,7 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
|
|
|
13391
13387
|
onDayClick,
|
|
13392
13388
|
onPageChange,
|
|
13393
13389
|
onChange
|
|
13394
|
-
} = { ...defaultProps
|
|
13390
|
+
} = { ...defaultProps$$, ...props };
|
|
13395
13391
|
const [month, setMonth] = useState(() => {
|
|
13396
13392
|
let date4 = new Date(Date.now());
|
|
13397
13393
|
const val = value || defaultValue;
|
|
@@ -13693,11 +13689,10 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
|
|
|
13693
13689
|
};
|
|
13694
13690
|
return days.length > 0 ? /* @__PURE__ */ React__default.createElement("div", { className: classNames(prefixCls, className), style }, renderHeader(), renderContent()) : null;
|
|
13695
13691
|
});
|
|
13696
|
-
CalendarCard.defaultProps = defaultProps$10;
|
|
13697
13692
|
CalendarCard.displayName = "NutCalendarCard";
|
|
13698
13693
|
const CheckboxGroupContext = createContext(null);
|
|
13699
13694
|
const Context$1 = CheckboxGroupContext;
|
|
13700
|
-
const defaultProps
|
|
13695
|
+
const defaultProps$_ = {
|
|
13701
13696
|
max: void 0,
|
|
13702
13697
|
min: void 0,
|
|
13703
13698
|
list: false,
|
|
@@ -13727,7 +13722,7 @@ const CheckboxGroup = React__default.forwardRef(
|
|
|
13727
13722
|
direction,
|
|
13728
13723
|
options: options2,
|
|
13729
13724
|
...rest
|
|
13730
|
-
} = { ...defaultProps
|
|
13725
|
+
} = { ...defaultProps$_, ...props };
|
|
13731
13726
|
useImperativeHandle(ref, () => ({
|
|
13732
13727
|
toggle(state) {
|
|
13733
13728
|
if (state === false) {
|
|
@@ -13819,9 +13814,9 @@ const CheckboxGroup = React__default.forwardRef(
|
|
|
13819
13814
|
);
|
|
13820
13815
|
}
|
|
13821
13816
|
);
|
|
13822
|
-
CheckboxGroup.defaultProps = defaultProps
|
|
13817
|
+
CheckboxGroup.defaultProps = defaultProps$_;
|
|
13823
13818
|
CheckboxGroup.displayName = "NutCheckboxGroup";
|
|
13824
|
-
const defaultProps$
|
|
13819
|
+
const defaultProps$Z = {
|
|
13825
13820
|
...ComponentDefaults,
|
|
13826
13821
|
disabled: false,
|
|
13827
13822
|
shape: "round",
|
|
@@ -13835,7 +13830,7 @@ const defaultProps$_ = {
|
|
|
13835
13830
|
const classPrefix$h = "nut-checkbox";
|
|
13836
13831
|
const Checkbox = (props) => {
|
|
13837
13832
|
const { children } = {
|
|
13838
|
-
...defaultProps$
|
|
13833
|
+
...defaultProps$Z,
|
|
13839
13834
|
...props
|
|
13840
13835
|
};
|
|
13841
13836
|
const {
|
|
@@ -13856,8 +13851,8 @@ const Checkbox = (props) => {
|
|
|
13856
13851
|
let { labelPosition, ...rest } = others;
|
|
13857
13852
|
const ctx2 = useContext(Context$1);
|
|
13858
13853
|
let [innerChecked, setChecked] = usePropsValue({
|
|
13859
|
-
value:
|
|
13860
|
-
defaultValue:
|
|
13854
|
+
value: checked,
|
|
13855
|
+
defaultValue: defaultChecked,
|
|
13861
13856
|
finalValue: defaultChecked,
|
|
13862
13857
|
onChange
|
|
13863
13858
|
});
|
|
@@ -13979,7 +13974,6 @@ const Checkbox = (props) => {
|
|
|
13979
13974
|
renderCheckboxItem()
|
|
13980
13975
|
);
|
|
13981
13976
|
};
|
|
13982
|
-
Checkbox.defaultProps = defaultProps$_;
|
|
13983
13977
|
Checkbox.displayName = "NutCheckBox";
|
|
13984
13978
|
Checkbox.Group = CheckboxGroup;
|
|
13985
13979
|
const InternalPickerPanel = (props, ref) => {
|
|
@@ -14221,7 +14215,7 @@ function useRefs() {
|
|
|
14221
14215
|
}, []);
|
|
14222
14216
|
return [refs.current, setRefs, reset];
|
|
14223
14217
|
}
|
|
14224
|
-
const defaultProps$
|
|
14218
|
+
const defaultProps$Y = {
|
|
14225
14219
|
...ComponentDefaults,
|
|
14226
14220
|
title: "",
|
|
14227
14221
|
options: [],
|
|
@@ -14251,7 +14245,7 @@ const InternalPicker = (props, ref) => {
|
|
|
14251
14245
|
afterClose,
|
|
14252
14246
|
onChange,
|
|
14253
14247
|
...rest
|
|
14254
|
-
} = { ...defaultProps$
|
|
14248
|
+
} = { ...defaultProps$Y, ...props };
|
|
14255
14249
|
const classPrefix2 = "nut-picker";
|
|
14256
14250
|
const classes = classNames(classPrefix2, className);
|
|
14257
14251
|
const [selectedValue, setSelectedValue] = usePropsValue({
|
|
@@ -14495,7 +14489,7 @@ const padZero = (num, targetLength = 2) => {
|
|
|
14495
14489
|
return str;
|
|
14496
14490
|
};
|
|
14497
14491
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
14498
|
-
const defaultProps$
|
|
14492
|
+
const defaultProps$X = {
|
|
14499
14493
|
...ComponentDefaults,
|
|
14500
14494
|
visible: false,
|
|
14501
14495
|
title: "",
|
|
@@ -14528,7 +14522,7 @@ const DatePicker = (props) => {
|
|
|
14528
14522
|
style,
|
|
14529
14523
|
...rest
|
|
14530
14524
|
} = {
|
|
14531
|
-
...defaultProps$
|
|
14525
|
+
...defaultProps$X,
|
|
14532
14526
|
...props
|
|
14533
14527
|
};
|
|
14534
14528
|
const { locale } = useConfig();
|
|
@@ -14810,7 +14804,7 @@ const DatePicker = (props) => {
|
|
|
14810
14804
|
}
|
|
14811
14805
|
));
|
|
14812
14806
|
};
|
|
14813
|
-
DatePicker.defaultProps = defaultProps$
|
|
14807
|
+
DatePicker.defaultProps = defaultProps$X;
|
|
14814
14808
|
DatePicker.displayName = "NutDatePicker";
|
|
14815
14809
|
const Context = createContext({});
|
|
14816
14810
|
function _extends() {
|
|
@@ -16048,7 +16042,7 @@ const useForm = (form) => {
|
|
|
16048
16042
|
}
|
|
16049
16043
|
return [formRef.current];
|
|
16050
16044
|
};
|
|
16051
|
-
const defaultProps$
|
|
16045
|
+
const defaultProps$W = {
|
|
16052
16046
|
...ComponentDefaults,
|
|
16053
16047
|
labelPosition: "right",
|
|
16054
16048
|
starPosition: "left",
|
|
@@ -16079,7 +16073,7 @@ const Form = React__default.forwardRef(
|
|
|
16079
16073
|
starPosition,
|
|
16080
16074
|
form
|
|
16081
16075
|
} = {
|
|
16082
|
-
...defaultProps$
|
|
16076
|
+
...defaultProps$W,
|
|
16083
16077
|
...props
|
|
16084
16078
|
};
|
|
16085
16079
|
let formInstance;
|
|
@@ -16125,7 +16119,6 @@ const Form = React__default.forwardRef(
|
|
|
16125
16119
|
);
|
|
16126
16120
|
}
|
|
16127
16121
|
);
|
|
16128
|
-
Form.defaultProps = defaultProps$X;
|
|
16129
16122
|
Form.displayName = "NutForm";
|
|
16130
16123
|
function isForwardRefComponent(component) {
|
|
16131
16124
|
return component.type && component.type.$$typeof && // eslint-disable-next-line react/display-name
|
|
@@ -16136,7 +16129,7 @@ function isForwardRefComponent(component) {
|
|
|
16136
16129
|
}
|
|
16137
16130
|
).$$typeof === component.type.$$typeof;
|
|
16138
16131
|
}
|
|
16139
|
-
const defaultProps$
|
|
16132
|
+
const defaultProps$V = {
|
|
16140
16133
|
...ComponentDefaults,
|
|
16141
16134
|
required: false,
|
|
16142
16135
|
name: "",
|
|
@@ -16231,7 +16224,7 @@ const _FormItem = class _FormItem extends React__default.Component {
|
|
|
16231
16224
|
style,
|
|
16232
16225
|
errorMessageAlign
|
|
16233
16226
|
} = {
|
|
16234
|
-
...defaultProps$
|
|
16227
|
+
...defaultProps$V,
|
|
16235
16228
|
...this.props
|
|
16236
16229
|
};
|
|
16237
16230
|
const requiredInRules = rules2 == null ? void 0 : rules2.some((rule) => rule.required);
|
|
@@ -16290,7 +16283,7 @@ const _FormItem = class _FormItem extends React__default.Component {
|
|
|
16290
16283
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
|
|
16291
16284
|
}
|
|
16292
16285
|
};
|
|
16293
|
-
_FormItem.defaultProps = defaultProps$
|
|
16286
|
+
_FormItem.defaultProps = defaultProps$V;
|
|
16294
16287
|
_FormItem.contextType = Context;
|
|
16295
16288
|
let FormItem = _FormItem;
|
|
16296
16289
|
const InnerForm = Form;
|
|
@@ -16320,7 +16313,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
16320
16313
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
16321
16314
|
return value.replace(regExp, "");
|
|
16322
16315
|
}
|
|
16323
|
-
const defaultProps$
|
|
16316
|
+
const defaultProps$U = {
|
|
16324
16317
|
...ComponentDefaults,
|
|
16325
16318
|
type: "text",
|
|
16326
16319
|
name: "",
|
|
@@ -16362,14 +16355,16 @@ const Input = forwardRef(
|
|
|
16362
16355
|
confirmType,
|
|
16363
16356
|
defaultValue,
|
|
16364
16357
|
value: _value,
|
|
16358
|
+
onCompositionStart,
|
|
16359
|
+
onCompositionEnd,
|
|
16365
16360
|
...rest
|
|
16366
16361
|
} = {
|
|
16367
|
-
...defaultProps$
|
|
16362
|
+
...defaultProps$U,
|
|
16368
16363
|
...props
|
|
16369
16364
|
};
|
|
16370
16365
|
const [value, setValue] = usePropsValue({
|
|
16371
|
-
value:
|
|
16372
|
-
defaultValue
|
|
16366
|
+
value: _value,
|
|
16367
|
+
defaultValue,
|
|
16373
16368
|
finalValue: "",
|
|
16374
16369
|
onChange
|
|
16375
16370
|
});
|
|
@@ -16483,21 +16478,19 @@ const Input = forwardRef(
|
|
|
16483
16478
|
handleInput(e2.currentTarget.value);
|
|
16484
16479
|
},
|
|
16485
16480
|
onCompositionStart: (e2) => {
|
|
16486
|
-
var _a;
|
|
16487
16481
|
composingRef.current = true;
|
|
16488
|
-
|
|
16482
|
+
onCompositionStart == null ? void 0 : onCompositionStart(e2);
|
|
16489
16483
|
},
|
|
16490
16484
|
onCompositionEnd: (e2) => {
|
|
16491
|
-
var _a;
|
|
16492
16485
|
composingRef.current = false;
|
|
16493
|
-
|
|
16486
|
+
onCompositionEnd == null ? void 0 : onCompositionEnd(e2);
|
|
16494
16487
|
}
|
|
16495
16488
|
}
|
|
16496
16489
|
),
|
|
16497
16490
|
clearable && !readOnly && active && value.length > 0 ? /* @__PURE__ */ React__default.createElement(
|
|
16498
16491
|
"span",
|
|
16499
16492
|
{
|
|
16500
|
-
style: { display: "flex", alignItems: "center" },
|
|
16493
|
+
style: { display: "flex", alignItems: "center", cursor: "pointer" },
|
|
16501
16494
|
onClick: () => {
|
|
16502
16495
|
if (!disabled) {
|
|
16503
16496
|
setValue("");
|
|
@@ -16510,9 +16503,8 @@ const Input = forwardRef(
|
|
|
16510
16503
|
);
|
|
16511
16504
|
}
|
|
16512
16505
|
);
|
|
16513
|
-
Input.defaultProps = defaultProps$V;
|
|
16514
16506
|
Input.displayName = "NutInput";
|
|
16515
|
-
const defaultProps$
|
|
16507
|
+
const defaultProps$T = {
|
|
16516
16508
|
...ComponentDefaults,
|
|
16517
16509
|
disabled: false,
|
|
16518
16510
|
readOnly: false,
|
|
@@ -16548,7 +16540,7 @@ const InputNumber = (props) => {
|
|
|
16548
16540
|
onChange,
|
|
16549
16541
|
...restProps
|
|
16550
16542
|
} = {
|
|
16551
|
-
...defaultProps$
|
|
16543
|
+
...defaultProps$T,
|
|
16552
16544
|
...props
|
|
16553
16545
|
};
|
|
16554
16546
|
const classes = classNames(classPrefix$g, className, {
|
|
@@ -16706,7 +16698,6 @@ const InputNumber = (props) => {
|
|
|
16706
16698
|
}
|
|
16707
16699
|
)));
|
|
16708
16700
|
};
|
|
16709
|
-
InputNumber.defaultProps = defaultProps$U;
|
|
16710
16701
|
InputNumber.displayName = "NutInputNumber";
|
|
16711
16702
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
16712
16703
|
const isFunction = (val) => typeof val === "function";
|
|
@@ -16757,7 +16748,7 @@ function useClickAway(onClickAway, target, eventName = "click", useCapture, isLi
|
|
|
16757
16748
|
};
|
|
16758
16749
|
}, [target]);
|
|
16759
16750
|
}
|
|
16760
|
-
const defaultProps$
|
|
16751
|
+
const defaultProps$S = {
|
|
16761
16752
|
...ComponentDefaults,
|
|
16762
16753
|
columns: 1,
|
|
16763
16754
|
direction: "down",
|
|
@@ -16788,7 +16779,7 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
16788
16779
|
parent,
|
|
16789
16780
|
index
|
|
16790
16781
|
} = {
|
|
16791
|
-
...defaultProps$
|
|
16782
|
+
...defaultProps$S,
|
|
16792
16783
|
...props
|
|
16793
16784
|
};
|
|
16794
16785
|
const [showPopup, setShowPopup] = useState(show2);
|
|
@@ -16957,9 +16948,8 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
16957
16948
|
)
|
|
16958
16949
|
));
|
|
16959
16950
|
});
|
|
16960
|
-
MenuItem.defaultProps = defaultProps$T;
|
|
16961
16951
|
MenuItem.displayName = "NutMenuItem";
|
|
16962
|
-
const defaultProps$
|
|
16952
|
+
const defaultProps$R = {
|
|
16963
16953
|
...ComponentDefaults,
|
|
16964
16954
|
activeColor: "",
|
|
16965
16955
|
closeOnOverlayClick: true,
|
|
@@ -16986,7 +16976,7 @@ const Menu = (props) => {
|
|
|
16986
16976
|
onOpen,
|
|
16987
16977
|
...rest
|
|
16988
16978
|
} = {
|
|
16989
|
-
...defaultProps$
|
|
16979
|
+
...defaultProps$R,
|
|
16990
16980
|
...props
|
|
16991
16981
|
};
|
|
16992
16982
|
const menuRef = useRef(null);
|
|
@@ -17126,19 +17116,8 @@ const Menu = (props) => {
|
|
|
17126
17116
|
cloneChildren()
|
|
17127
17117
|
);
|
|
17128
17118
|
};
|
|
17129
|
-
Menu.defaultProps = defaultProps$S;
|
|
17130
17119
|
Menu.displayName = "NutMenu";
|
|
17131
17120
|
Menu.Item = MenuItem;
|
|
17132
|
-
const defaultProps$R = {
|
|
17133
|
-
...ComponentDefaults,
|
|
17134
|
-
visible: false,
|
|
17135
|
-
rightActions: "",
|
|
17136
|
-
type: "default",
|
|
17137
|
-
custom: [],
|
|
17138
|
-
random: false,
|
|
17139
|
-
onClose: () => {
|
|
17140
|
-
}
|
|
17141
|
-
};
|
|
17142
17121
|
const NumberKeyboard = (props) => {
|
|
17143
17122
|
const { locale } = useConfig();
|
|
17144
17123
|
const {
|
|
@@ -17283,7 +17262,6 @@ const NumberKeyboard = (props) => {
|
|
|
17283
17262
|
))))
|
|
17284
17263
|
);
|
|
17285
17264
|
};
|
|
17286
|
-
NumberKeyboard.defaultProps = defaultProps$R;
|
|
17287
17265
|
NumberKeyboard.displayName = "NutNumberKeyboard";
|
|
17288
17266
|
const RadioContext = React__default.createContext(null);
|
|
17289
17267
|
const defaultProps$Q = {
|
|
@@ -17806,7 +17784,6 @@ const Range = (props) => {
|
|
|
17806
17784
|
renderButton()
|
|
17807
17785
|
))), maxDescription !== null && /* @__PURE__ */ React__default.createElement("div", { className: "max" }, maxDescription || max));
|
|
17808
17786
|
};
|
|
17809
|
-
Range.defaultProps = defaultProps$O;
|
|
17810
17787
|
Range.displayName = "NutRange";
|
|
17811
17788
|
const defaultProps$N = {
|
|
17812
17789
|
...ComponentDefaults,
|
|
@@ -18002,7 +17979,6 @@ const Rate = (props) => {
|
|
|
18002
17979
|
})
|
|
18003
17980
|
);
|
|
18004
17981
|
};
|
|
18005
|
-
Rate.defaultProps = defaultProps$N;
|
|
18006
17982
|
Rate.displayName = "NutRate";
|
|
18007
17983
|
const defaultProps$M = {
|
|
18008
17984
|
...ComponentDefaults,
|
|
@@ -18023,8 +17999,9 @@ const SearchBar = (props) => {
|
|
|
18023
17999
|
const classPrefix2 = "nut-searchbar";
|
|
18024
18000
|
const { locale } = useConfig();
|
|
18025
18001
|
const searchRef = useRef(null);
|
|
18026
|
-
const [value, setValue] = useState(() => props.value);
|
|
18027
18002
|
const {
|
|
18003
|
+
value: outerValue,
|
|
18004
|
+
style,
|
|
18028
18005
|
placeholder,
|
|
18029
18006
|
shape,
|
|
18030
18007
|
className,
|
|
@@ -18048,6 +18025,7 @@ const SearchBar = (props) => {
|
|
|
18048
18025
|
...defaultProps$M,
|
|
18049
18026
|
...props
|
|
18050
18027
|
};
|
|
18028
|
+
const [value, setValue] = useState(() => outerValue);
|
|
18051
18029
|
const forceFocus = () => {
|
|
18052
18030
|
const searchSelf = searchRef.current;
|
|
18053
18031
|
searchSelf && searchSelf.focus();
|
|
@@ -18068,8 +18046,8 @@ const SearchBar = (props) => {
|
|
|
18068
18046
|
onBlur && (onBlur == null ? void 0 : onBlur(value2, event));
|
|
18069
18047
|
};
|
|
18070
18048
|
useEffect(() => {
|
|
18071
|
-
setValue(
|
|
18072
|
-
}, [
|
|
18049
|
+
setValue(outerValue);
|
|
18050
|
+
}, [outerValue]);
|
|
18073
18051
|
useEffect(() => {
|
|
18074
18052
|
autoFocus && forceFocus();
|
|
18075
18053
|
}, [autoFocus]);
|
|
@@ -18079,7 +18057,7 @@ const SearchBar = (props) => {
|
|
|
18079
18057
|
{
|
|
18080
18058
|
className: `${classPrefix2}-input ${clearable ? `${classPrefix2}-input-clear` : ""}`,
|
|
18081
18059
|
ref: searchRef,
|
|
18082
|
-
style
|
|
18060
|
+
style,
|
|
18083
18061
|
value: value || "",
|
|
18084
18062
|
placeholder: placeholder || locale.placeholder,
|
|
18085
18063
|
disabled,
|
|
@@ -18147,7 +18125,7 @@ const SearchBar = (props) => {
|
|
|
18147
18125
|
"div",
|
|
18148
18126
|
{
|
|
18149
18127
|
className: `${classPrefix2} ${disabled ? `${classPrefix2}-disabled` : ""} ${className || ""}`,
|
|
18150
|
-
style
|
|
18128
|
+
style
|
|
18151
18129
|
},
|
|
18152
18130
|
renderLeft(),
|
|
18153
18131
|
/* @__PURE__ */ React__default.createElement(
|
|
@@ -18163,7 +18141,6 @@ const SearchBar = (props) => {
|
|
|
18163
18141
|
renderRight()
|
|
18164
18142
|
);
|
|
18165
18143
|
};
|
|
18166
|
-
SearchBar.defaultProps = defaultProps$M;
|
|
18167
18144
|
SearchBar.displayName = "NutSearchBar";
|
|
18168
18145
|
const defaultProps$L = {
|
|
18169
18146
|
...ComponentDefaults,
|
|
@@ -18181,7 +18158,7 @@ const InternalShortPassword = (props, ref) => {
|
|
|
18181
18158
|
title,
|
|
18182
18159
|
description,
|
|
18183
18160
|
tips,
|
|
18184
|
-
visible:
|
|
18161
|
+
visible: outerVisible,
|
|
18185
18162
|
value,
|
|
18186
18163
|
error,
|
|
18187
18164
|
hideFooter,
|
|
@@ -18213,7 +18190,7 @@ const InternalShortPassword = (props, ref) => {
|
|
|
18213
18190
|
return val.slice(0, comLen);
|
|
18214
18191
|
};
|
|
18215
18192
|
const [visible, setVisible] = usePropsValue({
|
|
18216
|
-
value:
|
|
18193
|
+
value: outerVisible,
|
|
18217
18194
|
defaultValue: false,
|
|
18218
18195
|
finalValue: false
|
|
18219
18196
|
});
|
|
@@ -18389,7 +18366,6 @@ const InternalSignature = (props, ref) => {
|
|
|
18389
18366
|
const Signature = React__default.forwardRef(
|
|
18390
18367
|
InternalSignature
|
|
18391
18368
|
);
|
|
18392
|
-
Signature.defaultProps = defaultProps$K;
|
|
18393
18369
|
Signature.displayName = "NutSignature";
|
|
18394
18370
|
const defaultProps$J = {
|
|
18395
18371
|
...ComponentDefaults,
|
|
@@ -18437,7 +18413,6 @@ const Switch = (props) => {
|
|
|
18437
18413
|
/* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-button` }, !value && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-close-line` }), activeText && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, value ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-label open` }, activeText) : /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-label close` }, inactiveText)))
|
|
18438
18414
|
);
|
|
18439
18415
|
};
|
|
18440
|
-
Switch.defaultProps = defaultProps$J;
|
|
18441
18416
|
Switch.displayName = "NutSwitch";
|
|
18442
18417
|
const defaultProps$I = {
|
|
18443
18418
|
...ComponentDefaults,
|
|
@@ -18556,7 +18531,6 @@ const TextArea = (props) => {
|
|
|
18556
18531
|
showCount && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-limit` }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)
|
|
18557
18532
|
);
|
|
18558
18533
|
};
|
|
18559
|
-
TextArea.defaultProps = defaultProps$I;
|
|
18560
18534
|
TextArea.displayName = "NutTextArea";
|
|
18561
18535
|
class UploadOptions {
|
|
18562
18536
|
constructor() {
|
|
@@ -18757,7 +18731,6 @@ const Progress = (props) => {
|
|
|
18757
18731
|
)))
|
|
18758
18732
|
);
|
|
18759
18733
|
};
|
|
18760
|
-
Progress.defaultProps = defaultProps$H;
|
|
18761
18734
|
Progress.displayName = "NutProgress";
|
|
18762
18735
|
const Preview = ({
|
|
18763
18736
|
fileList,
|
|
@@ -19034,7 +19007,7 @@ const InternalUploader = (props, ref) => {
|
|
|
19034
19007
|
});
|
|
19035
19008
|
};
|
|
19036
19009
|
const task = new Upload(uploadOption);
|
|
19037
|
-
if (
|
|
19010
|
+
if (autoUpload) {
|
|
19038
19011
|
task.upload();
|
|
19039
19012
|
} else {
|
|
19040
19013
|
uploadQueue.push(
|
|
@@ -19073,7 +19046,7 @@ const InternalUploader = (props, ref) => {
|
|
|
19073
19046
|
});
|
|
19074
19047
|
};
|
|
19075
19048
|
const filterFiles = (files) => {
|
|
19076
|
-
const maximum =
|
|
19049
|
+
const maximum = maxCount * 1;
|
|
19077
19050
|
const oversizes = new Array();
|
|
19078
19051
|
const filterFile = files.filter((file) => {
|
|
19079
19052
|
if (file.size > maxFileSize) {
|
|
@@ -19180,7 +19153,6 @@ const InternalUploader = (props, ref) => {
|
|
|
19180
19153
|
));
|
|
19181
19154
|
};
|
|
19182
19155
|
const Uploader = React__default.forwardRef(InternalUploader);
|
|
19183
|
-
Uploader.defaultProps = defaultProps$G;
|
|
19184
19156
|
Uploader.displayName = "NutUploader";
|
|
19185
19157
|
const defaultProps$F = {
|
|
19186
19158
|
...ComponentDefaults,
|
|
@@ -19253,7 +19225,6 @@ const ActionSheet = (props) => {
|
|
|
19253
19225
|
))
|
|
19254
19226
|
);
|
|
19255
19227
|
};
|
|
19256
|
-
ActionSheet.defaultProps = defaultProps$F;
|
|
19257
19228
|
ActionSheet.displayName = "NutActionSheet";
|
|
19258
19229
|
const fullClone = {
|
|
19259
19230
|
...ReactDOM
|
|
@@ -19676,7 +19647,7 @@ const Drag = (props) => {
|
|
|
19676
19647
|
({ down, last, offset: [x, y] }) => {
|
|
19677
19648
|
api.start({ x, y, immediate: down });
|
|
19678
19649
|
if (last) {
|
|
19679
|
-
if (
|
|
19650
|
+
if (direction !== "y" && attract) {
|
|
19680
19651
|
if (x < middleLine.current) {
|
|
19681
19652
|
api.start({ x: boundaryState.left, y, immediate: down });
|
|
19682
19653
|
} else {
|
|
@@ -19709,7 +19680,6 @@ const Drag = (props) => {
|
|
|
19709
19680
|
/* @__PURE__ */ React__default.createElement(animated.div, { style: currstyle, ...bind() }, children)
|
|
19710
19681
|
);
|
|
19711
19682
|
};
|
|
19712
|
-
Drag.defaultProps = defaultProps$D;
|
|
19713
19683
|
Drag.displayName = "NutDrag";
|
|
19714
19684
|
const defaultStatus = {
|
|
19715
19685
|
empty: "https://storage.360buyimg.com/imgtools/30186cfda0-0d3eee40-c0ac-11ee-9382-9125782aa3b8.png",
|
|
@@ -19784,7 +19754,6 @@ const Empty = (props) => {
|
|
|
19784
19754
|
);
|
|
19785
19755
|
})), children);
|
|
19786
19756
|
};
|
|
19787
|
-
Empty.defaultProps = defaultProps$C;
|
|
19788
19757
|
Empty.displayName = "NutEmpty";
|
|
19789
19758
|
const defaultProps$B = {
|
|
19790
19759
|
...ComponentDefaults,
|
|
@@ -19953,7 +19922,6 @@ const InfiniteLoading = (props) => {
|
|
|
19953
19922
|
/* @__PURE__ */ React__default.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? /* @__PURE__ */ React__default.createElement("div", { className: "nut-infinite-bottom-tips" }, loadingText || locale.infiniteloading.loadText) : !hasMore && /* @__PURE__ */ React__default.createElement("div", { className: "nut-infinite-bottom-tips" }, loadMoreText || locale.infiniteloading.loadMoreText))
|
|
19954
19923
|
);
|
|
19955
19924
|
};
|
|
19956
|
-
InfiniteLoading.defaultProps = defaultProps$B;
|
|
19957
19925
|
InfiniteLoading.displayName = "NutInfiniteLoading";
|
|
19958
19926
|
const loadingMap = {
|
|
19959
19927
|
circular: c,
|
|
@@ -19986,7 +19954,6 @@ const Loading = (props) => {
|
|
|
19986
19954
|
children ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-text` }, children) : ""
|
|
19987
19955
|
);
|
|
19988
19956
|
};
|
|
19989
|
-
Loading.defaultProps = defaultProps$A;
|
|
19990
19957
|
Loading.displayName = "NutLoading";
|
|
19991
19958
|
const defaultProps$z = {
|
|
19992
19959
|
...ComponentDefaults,
|
|
@@ -20394,7 +20361,6 @@ const NoticeBar = (props) => {
|
|
|
20394
20361
|
)
|
|
20395
20362
|
) : null);
|
|
20396
20363
|
};
|
|
20397
|
-
NoticeBar.defaultProps = defaultProps$z;
|
|
20398
20364
|
NoticeBar.displayName = "NutNoticeBar";
|
|
20399
20365
|
const classPrefix$c = "nut-notify";
|
|
20400
20366
|
let Notification$1 = class Notification extends React.PureComponent {
|
|
@@ -20641,8 +20607,7 @@ const Popover = (props) => {
|
|
|
20641
20607
|
}
|
|
20642
20608
|
useClickAway(
|
|
20643
20609
|
() => {
|
|
20644
|
-
|
|
20645
|
-
(_a = props.onClick) == null ? void 0 : _a.call(props);
|
|
20610
|
+
onClick == null ? void 0 : onClick();
|
|
20646
20611
|
onClose == null ? void 0 : onClose();
|
|
20647
20612
|
},
|
|
20648
20613
|
targetSet,
|
|
@@ -20731,7 +20696,7 @@ const Popover = (props) => {
|
|
|
20731
20696
|
const direction = location.split("-")[0];
|
|
20732
20697
|
const skew = location.split("-")[1];
|
|
20733
20698
|
const base = 16;
|
|
20734
|
-
if (
|
|
20699
|
+
if (arrowOffset !== 0) {
|
|
20735
20700
|
const dir = rtl ? "right" : "left";
|
|
20736
20701
|
const dir2 = rtl ? "left" : "right";
|
|
20737
20702
|
if (["bottom", "top"].includes(direction)) {
|
|
@@ -20760,12 +20725,11 @@ const Popover = (props) => {
|
|
|
20760
20725
|
return styles;
|
|
20761
20726
|
};
|
|
20762
20727
|
const handleSelect = (item, index) => {
|
|
20763
|
-
var _a;
|
|
20764
20728
|
if (!item.disabled) {
|
|
20765
20729
|
onSelect == null ? void 0 : onSelect(item, index);
|
|
20766
20730
|
}
|
|
20767
20731
|
if (closeOnActionClick) {
|
|
20768
|
-
|
|
20732
|
+
onClick == null ? void 0 : onClick();
|
|
20769
20733
|
onClose == null ? void 0 : onClose();
|
|
20770
20734
|
}
|
|
20771
20735
|
};
|
|
@@ -20775,8 +20739,7 @@ const Popover = (props) => {
|
|
|
20775
20739
|
className: "nut-popover-wrapper",
|
|
20776
20740
|
ref: popoverRef,
|
|
20777
20741
|
onClick: () => {
|
|
20778
|
-
|
|
20779
|
-
(_a = props.onClick) == null ? void 0 : _a.call(props);
|
|
20742
|
+
onClick == null ? void 0 : onClick();
|
|
20780
20743
|
if (!visible) {
|
|
20781
20744
|
onOpen == null ? void 0 : onOpen();
|
|
20782
20745
|
} else {
|
|
@@ -20839,7 +20802,6 @@ const Popover = (props) => {
|
|
|
20839
20802
|
document.body
|
|
20840
20803
|
));
|
|
20841
20804
|
};
|
|
20842
|
-
Popover.defaultProps = defaultProps$y;
|
|
20843
20805
|
Popover.displayName = "NutPopover";
|
|
20844
20806
|
function bound(position, min, max) {
|
|
20845
20807
|
let ret = position;
|
|
@@ -21056,7 +21018,6 @@ const AvatarGroup = (props) => {
|
|
|
21056
21018
|
};
|
|
21057
21019
|
return /* @__PURE__ */ React__default.createElement(AvatarContext.Provider, { value: parentAvatar }, /* @__PURE__ */ React__default.createElement("div", { className: cls, style, ref: avatarGroupRef }, children));
|
|
21058
21020
|
};
|
|
21059
|
-
AvatarGroup.defaultProps = defaultProps$w;
|
|
21060
21021
|
AvatarGroup.displayName = "NutAvatarGroup";
|
|
21061
21022
|
const defaultProps$v = {
|
|
21062
21023
|
...ComponentDefaults,
|
|
@@ -21138,8 +21099,8 @@ const Avatar = (props) => {
|
|
|
21138
21099
|
}
|
|
21139
21100
|
};
|
|
21140
21101
|
const errorEvent = () => {
|
|
21141
|
-
if (
|
|
21142
|
-
|
|
21102
|
+
if (onError) {
|
|
21103
|
+
onError();
|
|
21143
21104
|
}
|
|
21144
21105
|
};
|
|
21145
21106
|
const clickAvatar = (e2) => {
|
|
@@ -21170,7 +21131,6 @@ const Avatar = (props) => {
|
|
|
21170
21131
|
showMax && /* @__PURE__ */ React__default.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)}`)
|
|
21171
21132
|
));
|
|
21172
21133
|
};
|
|
21173
|
-
Avatar.defaultProps = defaultProps$v;
|
|
21174
21134
|
Avatar.displayName = "NutAvatar";
|
|
21175
21135
|
Avatar.Group = AvatarGroup;
|
|
21176
21136
|
const defaultProps$u = {
|
|
@@ -21232,7 +21192,6 @@ const Skeleton = (props) => {
|
|
|
21232
21192
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-block`, key: index });
|
|
21233
21193
|
})))));
|
|
21234
21194
|
};
|
|
21235
|
-
Skeleton.defaultProps = defaultProps$u;
|
|
21236
21195
|
Skeleton.displayName = "NutSkeleton";
|
|
21237
21196
|
function preventDefault(event, isStopPropagation) {
|
|
21238
21197
|
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
@@ -21661,7 +21620,6 @@ const Animate = (props) => {
|
|
|
21661
21620
|
};
|
|
21662
21621
|
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-animate" }, /* @__PURE__ */ React__default.createElement("div", { className: cls, onClick: handleClick2, ...rest }, children));
|
|
21663
21622
|
};
|
|
21664
|
-
Animate.defaultProps = defaultProps$s;
|
|
21665
21623
|
Animate.displayName = "NutAnimate";
|
|
21666
21624
|
const defaultProps$r = {
|
|
21667
21625
|
...ComponentDefaults,
|
|
@@ -22064,11 +22022,10 @@ const CircleProgress = (props) => {
|
|
|
22064
22022
|
return `M 50 50 m -45 0 a 45 45 0 1 ${isWise} 90 0 a 45 45 0 1 ${isWise} -90 0`;
|
|
22065
22023
|
};
|
|
22066
22024
|
const stop2 = () => {
|
|
22067
|
-
if (!isObject(
|
|
22025
|
+
if (!isObject(color)) {
|
|
22068
22026
|
return;
|
|
22069
22027
|
}
|
|
22070
|
-
const
|
|
22071
|
-
const colorArr = Object.keys(color2).sort(
|
|
22028
|
+
const colorArr = Object.keys(color).sort(
|
|
22072
22029
|
(a2, b) => parseFloat(a2) - parseFloat(b)
|
|
22073
22030
|
);
|
|
22074
22031
|
const stopArr = [];
|
|
@@ -22078,7 +22035,7 @@ const CircleProgress = (props) => {
|
|
|
22078
22035
|
value: ""
|
|
22079
22036
|
};
|
|
22080
22037
|
obj.key = item;
|
|
22081
|
-
obj.value =
|
|
22038
|
+
obj.value = color[item];
|
|
22082
22039
|
stopArr.push(obj);
|
|
22083
22040
|
});
|
|
22084
22041
|
return stopArr;
|
|
@@ -22107,7 +22064,6 @@ const CircleProgress = (props) => {
|
|
|
22107
22064
|
}
|
|
22108
22065
|
)), /* @__PURE__ */ React__default.createElement("div", { className: "nut-circleprogress-text" }, children));
|
|
22109
22066
|
};
|
|
22110
|
-
CircleProgress.defaultProps = defaultProps$o;
|
|
22111
22067
|
CircleProgress.displayName = "NutCircleProgress";
|
|
22112
22068
|
const collapseContext = {
|
|
22113
22069
|
isOpen: (name) => {
|
|
@@ -22217,7 +22173,6 @@ const CollapseItem = (props) => {
|
|
|
22217
22173
|
/* @__PURE__ */ React__default.createElement("div", { ref: contentRef, className: `${classPrefix2}-content-text` }, children)
|
|
22218
22174
|
));
|
|
22219
22175
|
};
|
|
22220
|
-
CollapseItem.defaultProps = defaultProps$n;
|
|
22221
22176
|
CollapseItem.displayName = "NutCollapseItem";
|
|
22222
22177
|
const defaultProps$m = {
|
|
22223
22178
|
...ComponentDefaults,
|
|
@@ -22295,7 +22250,6 @@ const Collapse = (props) => {
|
|
|
22295
22250
|
/* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), style }, children)
|
|
22296
22251
|
);
|
|
22297
22252
|
};
|
|
22298
|
-
Collapse.defaultProps = defaultProps$m;
|
|
22299
22253
|
Collapse.displayName = "NutCollapse";
|
|
22300
22254
|
Collapse.Item = CollapseItem;
|
|
22301
22255
|
const defaultProps$l = {
|
|
@@ -22536,7 +22490,6 @@ const InternalCountDown = (props, ref) => {
|
|
|
22536
22490
|
const CountDown = React__default.forwardRef(
|
|
22537
22491
|
InternalCountDown
|
|
22538
22492
|
);
|
|
22539
|
-
CountDown.defaultProps = defaultProps$l;
|
|
22540
22493
|
CountDown.displayName = "NutCountDown";
|
|
22541
22494
|
const useIsomorphicLayoutEffect = canUseDom ? useLayoutEffect : useEffect;
|
|
22542
22495
|
const defaultProps$k = {
|
|
@@ -22717,7 +22670,6 @@ const Ellipsis = (props) => {
|
|
|
22717
22670
|
collapseText
|
|
22718
22671
|
) : null) : null);
|
|
22719
22672
|
};
|
|
22720
|
-
Ellipsis.defaultProps = defaultProps$k;
|
|
22721
22673
|
Ellipsis.displayName = "NutEllipsis";
|
|
22722
22674
|
const defaultProps$j = {
|
|
22723
22675
|
...ComponentDefaults,
|
|
@@ -22797,7 +22749,6 @@ const Video = (props) => {
|
|
|
22797
22749
|
/* @__PURE__ */ React__default.createElement("track", { kind: "captions" })
|
|
22798
22750
|
));
|
|
22799
22751
|
};
|
|
22800
|
-
Video.defaultProps = defaultProps$j;
|
|
22801
22752
|
Video.displayName = "NutVideo";
|
|
22802
22753
|
const defaultProps$i = {
|
|
22803
22754
|
total: 3,
|
|
@@ -22830,7 +22781,6 @@ const Indicator = (props) => {
|
|
|
22830
22781
|
};
|
|
22831
22782
|
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$3, classes, className), ...rest }, renderElement());
|
|
22832
22783
|
};
|
|
22833
|
-
Indicator.defaultProps = defaultProps$i;
|
|
22834
22784
|
Indicator.displayName = "NutIndicator";
|
|
22835
22785
|
const getRefValue = (ref) => {
|
|
22836
22786
|
return ref.current;
|
|
@@ -23259,6 +23209,7 @@ const defaultProps$f = {
|
|
|
23259
23209
|
};
|
|
23260
23210
|
const ImagePreview = (props) => {
|
|
23261
23211
|
const {
|
|
23212
|
+
value,
|
|
23262
23213
|
className,
|
|
23263
23214
|
style,
|
|
23264
23215
|
images,
|
|
@@ -23271,17 +23222,17 @@ const ImagePreview = (props) => {
|
|
|
23271
23222
|
closeOnContentClick,
|
|
23272
23223
|
closeIcon,
|
|
23273
23224
|
closeIconPosition,
|
|
23274
|
-
onClose
|
|
23275
|
-
|
|
23225
|
+
onClose,
|
|
23226
|
+
onChange
|
|
23227
|
+
} = { ...defaultProps$f, ...props };
|
|
23276
23228
|
const classPrefix2 = "nut-imagepreview";
|
|
23277
23229
|
const ref = useRef(null);
|
|
23278
23230
|
const [innerNo, setInnerNo] = usePropsValue({
|
|
23279
|
-
value
|
|
23231
|
+
value,
|
|
23280
23232
|
defaultValue,
|
|
23281
23233
|
finalValue: defaultValue,
|
|
23282
23234
|
onChange: (val) => {
|
|
23283
|
-
|
|
23284
|
-
(_a = props.onChange) == null ? void 0 : _a.call(props, val);
|
|
23235
|
+
onChange == null ? void 0 : onChange(val);
|
|
23285
23236
|
}
|
|
23286
23237
|
});
|
|
23287
23238
|
const [showPop, setShowPop] = useState(visible);
|
|
@@ -23392,9 +23343,8 @@ const ImagePreview = (props) => {
|
|
|
23392
23343
|
);
|
|
23393
23344
|
};
|
|
23394
23345
|
const slideChangeEnd = (page) => {
|
|
23395
|
-
var _a;
|
|
23396
23346
|
setActive(page + 1);
|
|
23397
|
-
|
|
23347
|
+
onChange == null ? void 0 : onChange(page + 1);
|
|
23398
23348
|
};
|
|
23399
23349
|
const onCloseInner = (e2) => {
|
|
23400
23350
|
e2.stopPropagation();
|
|
@@ -23465,7 +23415,6 @@ const ImagePreview = (props) => {
|
|
|
23465
23415
|
) : null
|
|
23466
23416
|
);
|
|
23467
23417
|
};
|
|
23468
|
-
ImagePreview.defaultProps = defaultProps$f;
|
|
23469
23418
|
ImagePreview.displayName = "NutImagePreview";
|
|
23470
23419
|
const defaultProps$e = {
|
|
23471
23420
|
...ComponentDefaults,
|
|
@@ -23577,7 +23526,6 @@ const Pagination = (props) => {
|
|
|
23577
23526
|
next || locale.pagination.next
|
|
23578
23527
|
)), mode === "lite" && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-lite` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-lite-active` }, 2), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-lite-default` }, 8))));
|
|
23579
23528
|
};
|
|
23580
|
-
Pagination.defaultProps = defaultProps$e;
|
|
23581
23529
|
Pagination.displayName = "NutPagination";
|
|
23582
23530
|
const defaultProps$d = {
|
|
23583
23531
|
...ComponentDefaults,
|
|
@@ -23670,7 +23618,6 @@ const Price = (props) => {
|
|
|
23670
23618
|
symbol && position === "after" ? renderSymbol() : null
|
|
23671
23619
|
);
|
|
23672
23620
|
};
|
|
23673
|
-
Price.defaultProps = defaultProps$d;
|
|
23674
23621
|
Price.displayName = "NutPrice";
|
|
23675
23622
|
const DataContext = createContext({});
|
|
23676
23623
|
const defaultProps$c = {
|
|
@@ -23716,7 +23663,6 @@ const Step = (props) => {
|
|
|
23716
23663
|
};
|
|
23717
23664
|
return /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps, onClick: handleClickStep }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-step-head" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-step-line" }), /* @__PURE__ */ React__default.createElement("div", { className: renderIconClass() }, icon || !dot && /* @__PURE__ */ React__default.createElement("span", { className: "nut-step-inner" }, value))), (title || description) && /* @__PURE__ */ React__default.createElement("div", { className: "nut-step-main" }, /* @__PURE__ */ React__default.createElement("span", { className: "nut-step-title" }, title), description && /* @__PURE__ */ React__default.createElement("span", { className: "nut-step-description" }, description)));
|
|
23718
23665
|
};
|
|
23719
|
-
Step.defaultProps = defaultProps$c;
|
|
23720
23666
|
Step.displayName = "NutStep";
|
|
23721
23667
|
const defaultProps$b = {
|
|
23722
23668
|
...ComponentDefaults,
|
|
@@ -23743,13 +23689,12 @@ const Steps = (props) => {
|
|
|
23743
23689
|
classPrefix2,
|
|
23744
23690
|
{
|
|
23745
23691
|
[`${classPrefix2}-${direction}`]: true,
|
|
23746
|
-
[`${classPrefix2}-dot`]: !!
|
|
23692
|
+
[`${classPrefix2}-dot`]: !!dot
|
|
23747
23693
|
},
|
|
23748
23694
|
className
|
|
23749
23695
|
);
|
|
23750
23696
|
return /* @__PURE__ */ React__default.createElement(DataContext.Provider, { value: parentSteps }, /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps }, children));
|
|
23751
23697
|
};
|
|
23752
|
-
Steps.defaultProps = defaultProps$b;
|
|
23753
23698
|
Steps.displayName = "NutSteps";
|
|
23754
23699
|
function useTableSticky(columns, rtl = false) {
|
|
23755
23700
|
const [isSticky, setIsSticky] = useState(false);
|
|
@@ -23890,7 +23835,7 @@ const Table = (props) => {
|
|
|
23890
23835
|
};
|
|
23891
23836
|
const cellClasses = (item) => {
|
|
23892
23837
|
return {
|
|
23893
|
-
[`${headerClassPrefix}-border`]:
|
|
23838
|
+
[`${headerClassPrefix}-border`]: bordered,
|
|
23894
23839
|
[`${headerClassPrefix}-align${item.align ? item.align : ""}`]: true
|
|
23895
23840
|
};
|
|
23896
23841
|
};
|
|
@@ -23976,7 +23921,6 @@ const Table = (props) => {
|
|
|
23976
23921
|
}
|
|
23977
23922
|
)) : null, (summary || innerValue.length === 0) && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-summary` }, summary || noData));
|
|
23978
23923
|
};
|
|
23979
|
-
Table.defaultProps = defaultProps$a;
|
|
23980
23924
|
Table.displayName = "NutTable";
|
|
23981
23925
|
const defaultProps$9 = {
|
|
23982
23926
|
...ComponentDefaults,
|
|
@@ -24079,7 +24023,6 @@ const Tag = (props) => {
|
|
|
24079
24023
|
children && /* @__PURE__ */ React__default.createElement("span", { className: `${classPrefix2}-text` }, children)
|
|
24080
24024
|
));
|
|
24081
24025
|
};
|
|
24082
|
-
Tag.defaultProps = defaultProps$9;
|
|
24083
24026
|
Tag.displayName = "NutTag";
|
|
24084
24027
|
const defaultProps$8 = {
|
|
24085
24028
|
...ComponentDefaults,
|
|
@@ -24237,7 +24180,6 @@ const Tour = (props) => {
|
|
|
24237
24180
|
)));
|
|
24238
24181
|
}));
|
|
24239
24182
|
};
|
|
24240
|
-
Tour.defaultProps = defaultProps$8;
|
|
24241
24183
|
Tour.displayName = "NutTour";
|
|
24242
24184
|
const initPositinoCache = (reaItemSize, length = 0) => {
|
|
24243
24185
|
let index = 0;
|
|
@@ -24542,7 +24484,6 @@ const VirtualList = (props) => {
|
|
|
24542
24484
|
)
|
|
24543
24485
|
);
|
|
24544
24486
|
};
|
|
24545
|
-
VirtualList.defaultProps = defaultProps$7;
|
|
24546
24487
|
VirtualList.displayName = "NutVirtualList";
|
|
24547
24488
|
const defaultProps$6 = {
|
|
24548
24489
|
...ComponentDefaults,
|
|
@@ -24650,7 +24591,6 @@ const InternalBarrage = (props, ref) => {
|
|
|
24650
24591
|
const Barrage = React__default.forwardRef(
|
|
24651
24592
|
InternalBarrage
|
|
24652
24593
|
);
|
|
24653
|
-
Barrage.defaultProps = defaultProps$6;
|
|
24654
24594
|
Barrage.displayName = "NutBarrage";
|
|
24655
24595
|
const defaultProps$5 = {
|
|
24656
24596
|
...ComponentDefaults,
|
|
@@ -24696,7 +24636,6 @@ const Card = (props) => {
|
|
|
24696
24636
|
}
|
|
24697
24637
|
)), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-other` }, tag || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Tag, { type: "danger" }, shopDescription), /* @__PURE__ */ React__default.createElement(Tag, { plain: true }, delivery))), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-shop` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-shop-name` }, shopName), extra)));
|
|
24698
24638
|
};
|
|
24699
|
-
Card.defaultProps = defaultProps$5;
|
|
24700
24639
|
Card.displayName = "NutCard";
|
|
24701
24640
|
const defaultProps$4 = {
|
|
24702
24641
|
...ComponentDefaults,
|
|
@@ -24751,7 +24690,6 @@ const TimeDetail = (props) => {
|
|
|
24751
24690
|
item[optionKey.textKey]
|
|
24752
24691
|
)));
|
|
24753
24692
|
};
|
|
24754
|
-
TimeDetail.defaultProps = defaultProps$4;
|
|
24755
24693
|
TimeDetail.displayName = "NutTimeDetail";
|
|
24756
24694
|
const defaultProps$3 = {
|
|
24757
24695
|
...ComponentDefaults,
|
|
@@ -24889,7 +24827,6 @@ const TimeSelect = (props) => {
|
|
|
24889
24827
|
)))
|
|
24890
24828
|
);
|
|
24891
24829
|
};
|
|
24892
|
-
TimeSelect.defaultProps = defaultProps$3;
|
|
24893
24830
|
TimeSelect.displayName = "NutTimeSelect";
|
|
24894
24831
|
const defaultProps$2 = {
|
|
24895
24832
|
...ComponentDefaults,
|
|
@@ -24970,7 +24907,6 @@ const TrendArrow = (props) => {
|
|
|
24970
24907
|
};
|
|
24971
24908
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2} ${className}`, style, ...rest }, !left && renderContent(!left), Number(value) !== 0 && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, rateTrend.current ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, riseIcon || /* @__PURE__ */ React__default.createElement(o, { color: calcIconProps.color })) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, dropIcon || /* @__PURE__ */ React__default.createElement(e, { color: calcIconProps.color }))), left && renderContent(!left));
|
|
24972
24909
|
};
|
|
24973
|
-
TrendArrow.defaultProps = defaultProps$2;
|
|
24974
24910
|
TrendArrow.displayName = "NutTrendArrow";
|
|
24975
24911
|
const defaultProps$1 = {
|
|
24976
24912
|
...ComponentDefaults,
|
|
@@ -25082,7 +25018,6 @@ const WaterMark = (props) => {
|
|
|
25082
25018
|
}
|
|
25083
25019
|
);
|
|
25084
25020
|
};
|
|
25085
|
-
WaterMark.defaultProps = defaultProps$1;
|
|
25086
25021
|
WaterMark.displayName = "NutWaterMark";
|
|
25087
25022
|
const defaultProps = {
|
|
25088
25023
|
...ComponentDefaults,
|
|
@@ -25445,7 +25380,6 @@ const AvatarCropper = (props) => {
|
|
|
25445
25380
|
}
|
|
25446
25381
|
), /* @__PURE__ */ React__default.createElement("div", { className: "nut-avatar-cropper-edit-text" }, editText)), CropperPopup());
|
|
25447
25382
|
};
|
|
25448
|
-
AvatarCropper.defaultProps = defaultProps;
|
|
25449
25383
|
AvatarCropper.displayName = "NutAvatarCropper";
|
|
25450
25384
|
export {
|
|
25451
25385
|
ActionSheet,
|