@nutui/nutui-react-taro 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 +13 -0
- package/dist/esm/ActionSheet.js +1 -1
- package/dist/esm/Address.js +1 -1
- package/dist/esm/Animate.js +1 -1
- package/dist/esm/Audio.js +1 -1
- package/dist/esm/Avatar.js +1 -1
- package/dist/esm/AvatarCropper.js +1 -1
- package/dist/esm/AvatarGroup.js +1 -1
- package/dist/esm/Badge.js +1 -1
- package/dist/esm/Barrage.js +1 -1
- package/dist/esm/Calendar.js +1 -1
- package/dist/esm/CalendarCard.js +1 -1
- package/dist/esm/CalendarItem.js +1 -1
- package/dist/esm/Card.js +1 -1
- package/dist/esm/Cascader.js +1 -1
- package/dist/esm/Checkbox.js +1 -1
- package/dist/esm/CheckboxGroup.js +1 -1
- package/dist/esm/CircleProgress.js +1 -1
- package/dist/esm/Collapse.js +1 -1
- package/dist/esm/CollapseItem.js +1 -1
- package/dist/esm/CountDown.js +1 -1
- package/dist/esm/DatePicker.js +1 -1
- package/dist/esm/Drag.js +1 -1
- package/dist/esm/Ellipsis.js +1 -1
- package/dist/esm/Empty.js +1 -1
- package/dist/esm/Form.js +0 -1
- package/dist/esm/ImagePreview.js +1 -1
- package/dist/esm/Indicator.js +1 -1
- package/dist/esm/InfiniteLoading.js +1 -1
- package/dist/esm/Input.js +1 -1
- package/dist/esm/InputNumber.js +1 -1
- package/dist/esm/Layout.js +1 -1
- package/dist/esm/Loading.js +1 -1
- package/dist/esm/Menu/style/style.css +1 -1
- package/dist/esm/Menu.js +1 -1
- package/dist/esm/MenuItem/style/style.css +1 -1
- package/dist/esm/MenuItem.js +1 -1
- package/dist/esm/NoticeBar.js +1 -1
- package/dist/esm/NumberKeyboard.js +1 -1
- package/dist/esm/Pagination.js +1 -1
- package/dist/esm/Picker.js +1 -1
- package/dist/esm/Popover.js +1 -1
- package/dist/esm/Popup.js +1 -1
- package/dist/esm/Price.js +1 -1
- package/dist/esm/Progress.js +1 -1
- package/dist/esm/Range.js +1 -1
- package/dist/esm/Rate.js +1 -1
- package/dist/esm/SearchBar.js +1 -1
- package/dist/esm/ShortPassword.js +1 -1
- package/dist/esm/SideNavBar.js +1 -1
- package/dist/esm/Signature.js +1 -1
- package/dist/esm/Skeleton.js +1 -1
- package/dist/esm/Step.js +1 -1
- package/dist/esm/Steps.js +1 -1
- package/dist/esm/Swiper.js +1 -1
- package/dist/esm/Switch.js +1 -1
- package/dist/esm/Tabbar.js +1 -1
- package/dist/esm/TabbarItem.js +1 -1
- package/dist/esm/Table/style/style.css +1 -1
- package/dist/esm/Table.js +1 -1
- package/dist/esm/Tag.js +1 -1
- package/dist/esm/TextArea.js +1 -1
- package/dist/esm/TimeDetail.js +1 -1
- package/dist/esm/TimeSelect.js +1 -1
- package/dist/esm/Tour.js +1 -1
- package/dist/esm/TrendArrow.js +1 -1
- package/dist/esm/Uploader.js +1 -1
- package/dist/esm/Video.js +1 -1
- package/dist/esm/VirtualList.js +1 -1
- package/dist/esm/WaterMark.js +1 -1
- package/dist/esm/{actionsheet.taro-DxJu0OXY.js → actionsheet.taro-CI2b9f_3.js} +1 -2
- package/dist/esm/{address.taro-Cc1TOQge.js → address.taro-6VS1YZ0V.js} +2 -3
- package/dist/esm/{animate.taro-Dg9jxZEu.js → animate.taro-D-A6ORRZ.js} +0 -1
- package/dist/esm/{audio.taro-2hRKQ2Lk.js → audio.taro-4ixA5lb2.js} +1 -1
- package/dist/esm/{avatar.taro-D_uJo0PP.js → avatar.taro-Dx8hhvFI.js} +3 -4
- package/dist/esm/{avatarcropper.taro-Dd4pAR3N.js → avatarcropper.taro-C9BoO5Lp.js} +0 -1
- package/dist/esm/{avatargroup.taro-bpT5kPbf.js → avatargroup.taro-ScakjsY1.js} +0 -1
- package/dist/esm/{badge.taro-B0spW6jr.js → badge.taro-DK_UFQ5Y.js} +0 -1
- package/dist/esm/{barrage.taro-BNOcZsJ1.js → barrage.taro-DEJGSmY5.js} +0 -1
- package/dist/esm/{calendar.taro-D17OsS2D.js → calendar.taro-CDZqFYlk.js} +2 -3
- package/dist/esm/{calendarcard.taro-C7P3oqAL.js → calendarcard.taro-CHDg3k5D.js} +0 -1
- package/dist/esm/{calendaritem.taro-B8tN2DYa.js → calendaritem.taro-DuEKmnsT.js} +3 -4
- package/dist/esm/{card.taro-FRirz5pW.js → card.taro-Co0BZGJI.js} +2 -3
- package/dist/esm/{cascader.taro-28xJB9fJ.js → cascader.taro-CZkUgupN.js} +5 -6
- package/dist/esm/{checkbox.taro-CUpF7Afr.js → checkbox.taro-DOSOI351.js} +2 -3
- package/dist/esm/{circleprogress.taro-CKSrzt8Q.js → circleprogress.taro-BuVTD1iY.js} +7 -9
- package/dist/esm/{collapse.taro-BM0BsN30.js → collapse.taro-CxDgckv5.js} +1 -2
- package/dist/esm/{collapseitem.taro-D_m4VEdG.js → collapseitem.taro-BY06WWvK.js} +0 -1
- package/dist/esm/{countdown.taro-wopKr1Il.js → countdown.taro-CdEiAwr5.js} +0 -1
- package/dist/esm/{datepicker.taro-zmHQR_LR.js → datepicker.taro-B7H4b8TO.js} +1 -1
- package/dist/esm/{drag.taro-CcHIO07Y.js → drag.taro-D6xGnWqk.js} +3 -4
- package/dist/esm/{ellipsis.taro-3gDXpBmX.js → ellipsis.taro-dxOx8h7S.js} +0 -1
- package/dist/esm/{empty.taro-C61QNHep.js → empty.taro-DgmUYpBc.js} +0 -1
- package/dist/esm/{imagepreview.taro-BqFhQUnY.js → imagepreview.taro-Wdlb0tIh.js} +5 -8
- package/dist/esm/{indicator.taro-CpHZtD9p.js → indicator.taro-Bmae9MdC.js} +0 -1
- package/dist/esm/{infiniteloading.taro-WiMpG-fU.js → infiniteloading.taro-Bnm-LVHC.js} +0 -1
- package/dist/esm/{input.taro-CAZ-rRMH.js → input.taro-sviVz6LS.js} +8 -13
- package/dist/esm/{inputnumber.taro-HU_Ndna2.js → inputnumber.taro-ByJ9DlU2.js} +0 -1
- package/dist/esm/{layout.taro-BE2868d6.js → layout.taro-C-aUcOOE.js} +0 -1
- package/dist/esm/{loading.taro-CRF1z5wQ.js → loading.taro-BfHqvYhy.js} +0 -1
- package/dist/esm/{menu.taro-Q5-SZ5t1.js → menu.taro-DkKY62ym.js} +1 -2
- package/dist/esm/{menuitem.taro-DSBI0DQb.js → menuitem.taro-CKjl8_Cl.js} +1 -2
- package/dist/esm/{noticebar.taro-BtudzdMD.js → noticebar.taro-cjVGemZE.js} +0 -1
- package/dist/esm/{numberkeyboard.taro-BOK1wpU5.js → numberkeyboard.taro-CFJtMOew.js} +2 -3
- package/dist/esm/nutui-react.es.js +63 -63
- package/dist/esm/{pagination.taro-DAK6ddag.js → pagination.taro-B8hmHNgf.js} +0 -1
- package/dist/esm/{picker.taro-CHjN0l-b.js → picker.taro-CHsDIw4C.js} +1 -1
- package/dist/esm/{popover.taro-G8UcSxKq.js → popover.taro-Dve2UnRF.js} +4 -6
- package/dist/esm/{popup.taro-C8cIGEKf.js → popup.taro-cT6cbAxw.js} +0 -1
- package/dist/esm/{price.taro-UVRHPHRD.js → price.taro-DdR5NSIA.js} +0 -1
- package/dist/esm/{progress.taro-rjiPI6mD.js → progress.taro-BFWQ2MvM.js} +0 -1
- package/dist/esm/{range.taro-CsC41L60.js → range.taro-BeVCaZ4r.js} +0 -1
- package/dist/esm/{rate.taro-BABLqt4h.js → rate.taro-lOoACxLq.js} +0 -1
- package/dist/esm/{searchbar.taro-PfVx6o-6.js → searchbar.taro-B31m8apz.js} +6 -7
- package/dist/esm/{shortpassword.taro-CQkvedaX.js → shortpassword.taro-BVp4BrTs.js} +3 -3
- package/dist/esm/{sidenavbar.taro-BATNbF5l.js → sidenavbar.taro-DGnJgxEe.js} +1 -1
- package/dist/esm/{signature.taro-Bn9VNn62.js → signature.taro-DTZCZMDZ.js} +1 -2
- package/dist/esm/{skeleton.taro-BunkJQwv.js → skeleton.taro-C3vp7bWb.js} +1 -2
- package/dist/esm/{step.taro-DLr2GzYk.js → step.taro-CaRHnSOF.js} +0 -1
- package/dist/esm/{steps.taro-C8Yg1Sns.js → steps.taro-BoVGFMxx.js} +1 -2
- package/dist/esm/{switch.taro-D1HgJoJz.js → switch.taro-Mq1wBEGz.js} +0 -1
- package/dist/esm/{tabbar.taro-B7C39PTH.js → tabbar.taro-DD5HcQgp.js} +1 -1
- package/dist/esm/{tabbaritem.taro-C_90fvMh.js → tabbaritem.taro-ptdJI0xv.js} +1 -1
- package/dist/esm/{table.taro-ClLmfqz3.js → table.taro-EwAQJ6jp.js} +1 -2
- package/dist/esm/{tag.taro-rKMK0jan.js → tag.taro-CFt28RLm.js} +0 -1
- package/dist/esm/{textarea.taro-BJIFCpKb.js → textarea.taro-DLS0EQeJ.js} +0 -1
- package/dist/esm/{timedetail.taro-x6Zey1xi.js → timedetail.taro-ya5JNy2L.js} +0 -1
- package/dist/esm/{timeselect.taro-DvY7iQiu.js → timeselect.taro-C64SUiXS.js} +2 -3
- package/dist/esm/{tour.taro-vfvdEJ-7.js → tour.taro-DegQCG1T.js} +1 -2
- package/dist/esm/{trendarrow.taro-BHUetKSS.js → trendarrow.taro-B2QGvXG0.js} +0 -1
- package/dist/esm/{uploader.taro-DMmTl0Cp.js → uploader.taro-BE4c5x9T.js} +4 -5
- package/dist/esm/{video.taro-DJQeroOH.js → video.taro-Bm5bDmIG.js} +0 -1
- package/dist/esm/{virtuallist.taro-D8qIVGPx.js → virtuallist.taro-GLen2Ay5.js} +0 -1
- package/dist/esm/{watermark.taro-BxM8VfXb.js → watermark.taro-BL5bLewc.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 +142 -210
- package/dist/nutui.react.umd.js +142 -210
- 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.taro.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-taro v2.6.
|
|
2
|
+
* @nutui/nutui-react-taro v2.6.5 Fri May 17 2024 15:39:38 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -197,7 +197,7 @@ const ComponentDefaults = {
|
|
|
197
197
|
style: {}
|
|
198
198
|
};
|
|
199
199
|
const prefixCls$2 = "nut-button";
|
|
200
|
-
const defaultProps$
|
|
200
|
+
const defaultProps$1v = {
|
|
201
201
|
...ComponentDefaults,
|
|
202
202
|
color: "",
|
|
203
203
|
type: "default",
|
|
@@ -231,7 +231,7 @@ const Button = React__default.forwardRef(
|
|
|
231
231
|
onClick,
|
|
232
232
|
...rest
|
|
233
233
|
} = {
|
|
234
|
-
...defaultProps$
|
|
234
|
+
...defaultProps$1v,
|
|
235
235
|
...props
|
|
236
236
|
};
|
|
237
237
|
const getStyle = useCallback(() => {
|
|
@@ -297,7 +297,7 @@ const Button = React__default.forwardRef(
|
|
|
297
297
|
);
|
|
298
298
|
Button.displayName = "NutButton";
|
|
299
299
|
const CellGroupContext = createContext(null);
|
|
300
|
-
const defaultProps$
|
|
300
|
+
const defaultProps$1u = {
|
|
301
301
|
...ComponentDefaults,
|
|
302
302
|
title: "",
|
|
303
303
|
description: "",
|
|
@@ -306,7 +306,7 @@ const defaultProps$1v = {
|
|
|
306
306
|
const classPrefix$r = "nut-cell-group";
|
|
307
307
|
const CellGroup = (props) => {
|
|
308
308
|
const { children, className, title, description, divider, ...rest } = {
|
|
309
|
-
...defaultProps$
|
|
309
|
+
...defaultProps$1u,
|
|
310
310
|
...props
|
|
311
311
|
};
|
|
312
312
|
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(
|
|
@@ -318,7 +318,7 @@ const CellGroup = (props) => {
|
|
|
318
318
|
));
|
|
319
319
|
};
|
|
320
320
|
CellGroup.displayName = "NutCellGroup";
|
|
321
|
-
const defaultProps$
|
|
321
|
+
const defaultProps$1t = {
|
|
322
322
|
...ComponentDefaults,
|
|
323
323
|
title: null,
|
|
324
324
|
description: null,
|
|
@@ -343,7 +343,7 @@ const Cell = (props) => {
|
|
|
343
343
|
style,
|
|
344
344
|
...rest
|
|
345
345
|
} = {
|
|
346
|
-
...defaultProps$
|
|
346
|
+
...defaultProps$1t,
|
|
347
347
|
...props
|
|
348
348
|
};
|
|
349
349
|
const handleClick = (event) => {
|
|
@@ -1521,7 +1521,7 @@ ConfigProvider.displayName = "NutConfigProvider";
|
|
|
1521
1521
|
const pxCheck = (value) => {
|
|
1522
1522
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
1523
1523
|
};
|
|
1524
|
-
const defaultProps$
|
|
1524
|
+
const defaultProps$1s = {
|
|
1525
1525
|
src: "",
|
|
1526
1526
|
error: true,
|
|
1527
1527
|
loading: true
|
|
@@ -1540,7 +1540,7 @@ const Image$1 = (props) => {
|
|
|
1540
1540
|
onLoad,
|
|
1541
1541
|
onError,
|
|
1542
1542
|
...rest
|
|
1543
|
-
} = { ...defaultProps$
|
|
1543
|
+
} = { ...defaultProps$1s, ...props };
|
|
1544
1544
|
const [innerLoading, setInnerLoading] = useState(true);
|
|
1545
1545
|
const [isError, setIsError] = useState(false);
|
|
1546
1546
|
const handleLoad = (e2) => {
|
|
@@ -3595,7 +3595,7 @@ const Overlay = (props) => {
|
|
|
3595
3595
|
};
|
|
3596
3596
|
Overlay.displayName = "NutOverlay";
|
|
3597
3597
|
const DataContext$1 = createContext({});
|
|
3598
|
-
const defaultProps$
|
|
3598
|
+
const defaultProps$1r = {
|
|
3599
3599
|
...ComponentDefaults,
|
|
3600
3600
|
span: "24",
|
|
3601
3601
|
offset: "0",
|
|
@@ -3603,7 +3603,7 @@ const defaultProps$1s = {
|
|
|
3603
3603
|
};
|
|
3604
3604
|
const Col = (props) => {
|
|
3605
3605
|
const { className, style, span, offset, children, onClick } = {
|
|
3606
|
-
...defaultProps$
|
|
3606
|
+
...defaultProps$1r,
|
|
3607
3607
|
...props
|
|
3608
3608
|
};
|
|
3609
3609
|
const [colName, setColName] = useState("");
|
|
@@ -3636,7 +3636,7 @@ const Col = (props) => {
|
|
|
3636
3636
|
);
|
|
3637
3637
|
};
|
|
3638
3638
|
Col.displayName = "NutCol";
|
|
3639
|
-
const defaultProps$
|
|
3639
|
+
const defaultProps$1q = {
|
|
3640
3640
|
...ComponentDefaults,
|
|
3641
3641
|
contentPosition: "center",
|
|
3642
3642
|
direction: "horizontal"
|
|
@@ -3644,7 +3644,7 @@ const defaultProps$1r = {
|
|
|
3644
3644
|
const classPrefix$o = `nut-divider`;
|
|
3645
3645
|
const Divider = (props) => {
|
|
3646
3646
|
const { children, contentPosition, style, className, direction, ...rest } = {
|
|
3647
|
-
...defaultProps$
|
|
3647
|
+
...defaultProps$1q,
|
|
3648
3648
|
...props
|
|
3649
3649
|
};
|
|
3650
3650
|
const classes = direction === "horizontal" ? classNames({
|
|
@@ -3665,7 +3665,7 @@ const gridContext = {
|
|
|
3665
3665
|
}
|
|
3666
3666
|
};
|
|
3667
3667
|
const GridContext = React__default.createContext(gridContext);
|
|
3668
|
-
const defaultProps$
|
|
3668
|
+
const defaultProps$1p = {
|
|
3669
3669
|
text: "",
|
|
3670
3670
|
columns: 4,
|
|
3671
3671
|
gap: 0,
|
|
@@ -3691,7 +3691,7 @@ const GridItem = (props) => {
|
|
|
3691
3691
|
onClick,
|
|
3692
3692
|
...rest
|
|
3693
3693
|
} = {
|
|
3694
|
-
...defaultProps$
|
|
3694
|
+
...defaultProps$1p,
|
|
3695
3695
|
...props
|
|
3696
3696
|
};
|
|
3697
3697
|
const classPrefix2 = "nut-grid-item";
|
|
@@ -3750,7 +3750,7 @@ const GridItem = (props) => {
|
|
|
3750
3750
|
);
|
|
3751
3751
|
};
|
|
3752
3752
|
GridItem.displayName = "NutGridItem";
|
|
3753
|
-
const defaultProps$
|
|
3753
|
+
const defaultProps$1o = {
|
|
3754
3754
|
columns: 4,
|
|
3755
3755
|
gap: 0,
|
|
3756
3756
|
center: true,
|
|
@@ -3771,7 +3771,7 @@ const Grid = (props) => {
|
|
|
3771
3771
|
className,
|
|
3772
3772
|
onClick,
|
|
3773
3773
|
...rest
|
|
3774
|
-
} = { ...defaultProps$
|
|
3774
|
+
} = { ...defaultProps$1o, ...props };
|
|
3775
3775
|
const childrenDom = React__default.Children.toArray(children);
|
|
3776
3776
|
const classPrefix2 = "nut-grid";
|
|
3777
3777
|
const rootClass = () => {
|
|
@@ -3807,15 +3807,14 @@ const Grid = (props) => {
|
|
|
3807
3807
|
};
|
|
3808
3808
|
Grid.displayName = "NutGrid";
|
|
3809
3809
|
Grid.Item = GridItem;
|
|
3810
|
-
const defaultProps$
|
|
3810
|
+
const defaultProps$1n = {};
|
|
3811
3811
|
const Layout = (props) => {
|
|
3812
|
-
({ ...defaultProps$
|
|
3812
|
+
({ ...defaultProps$1n, ...props });
|
|
3813
3813
|
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-layout" }, "Layout");
|
|
3814
3814
|
};
|
|
3815
|
-
Layout.defaultProps = defaultProps$1o;
|
|
3816
3815
|
Layout.displayName = "NutLayout";
|
|
3817
3816
|
const classPrefix$n = "nut-row";
|
|
3818
|
-
const defaultProps$
|
|
3817
|
+
const defaultProps$1m = {
|
|
3819
3818
|
...ComponentDefaults,
|
|
3820
3819
|
type: "",
|
|
3821
3820
|
justify: "start",
|
|
@@ -3835,7 +3834,7 @@ const Row = (props) => {
|
|
|
3835
3834
|
gutter,
|
|
3836
3835
|
onClick
|
|
3837
3836
|
} = {
|
|
3838
|
-
...defaultProps$
|
|
3837
|
+
...defaultProps$1m,
|
|
3839
3838
|
...props
|
|
3840
3839
|
};
|
|
3841
3840
|
const getClass = (prefix, type22) => {
|
|
@@ -3869,12 +3868,12 @@ const Row = (props) => {
|
|
|
3869
3868
|
};
|
|
3870
3869
|
Row.displayName = "NutRow";
|
|
3871
3870
|
const prefixCls$1 = "nut-space";
|
|
3872
|
-
const defaultProps$
|
|
3871
|
+
const defaultProps$1l = {
|
|
3873
3872
|
direction: "horizontal"
|
|
3874
3873
|
};
|
|
3875
3874
|
const Space = (props) => {
|
|
3876
3875
|
const { className, style, children, wrap, align, direction, justify } = {
|
|
3877
|
-
...defaultProps$
|
|
3876
|
+
...defaultProps$1l,
|
|
3878
3877
|
...props
|
|
3879
3878
|
};
|
|
3880
3879
|
const cls = classNames(
|
|
@@ -3966,7 +3965,7 @@ const getRectByTaro = async (element) => {
|
|
|
3966
3965
|
}
|
|
3967
3966
|
return Promise.resolve(makeRect(0, 0));
|
|
3968
3967
|
};
|
|
3969
|
-
const defaultProps$
|
|
3968
|
+
const defaultProps$1k = {
|
|
3970
3969
|
...ComponentDefaults,
|
|
3971
3970
|
position: "top",
|
|
3972
3971
|
zIndex: 900
|
|
@@ -3983,7 +3982,7 @@ const Sticky = (props) => {
|
|
|
3983
3982
|
className,
|
|
3984
3983
|
onChange,
|
|
3985
3984
|
...rest
|
|
3986
|
-
} = { ...defaultProps$
|
|
3985
|
+
} = { ...defaultProps$1k, ...props };
|
|
3987
3986
|
const stickyRef = useRef(null);
|
|
3988
3987
|
const rootRef = useRef(null);
|
|
3989
3988
|
const [rootRect, setRootRect] = useState({});
|
|
@@ -4103,7 +4102,7 @@ const SafeArea = (props) => {
|
|
|
4103
4102
|
);
|
|
4104
4103
|
};
|
|
4105
4104
|
SafeArea.displayName = "NutSafeArea";
|
|
4106
|
-
const defaultProps$
|
|
4105
|
+
const defaultProps$1j = {
|
|
4107
4106
|
...ComponentDefaults,
|
|
4108
4107
|
threshold: 200,
|
|
4109
4108
|
zIndex: 900,
|
|
@@ -4112,7 +4111,7 @@ const defaultProps$1k = {
|
|
|
4112
4111
|
const BackTop = (props) => {
|
|
4113
4112
|
const rtl = useRtl();
|
|
4114
4113
|
const { children, threshold, zIndex, className, duration, style, onClick } = {
|
|
4115
|
-
...defaultProps$
|
|
4114
|
+
...defaultProps$1j,
|
|
4116
4115
|
...props
|
|
4117
4116
|
};
|
|
4118
4117
|
const classPrefix2 = "nut-backtop";
|
|
@@ -4156,7 +4155,7 @@ const BackTop = (props) => {
|
|
|
4156
4155
|
};
|
|
4157
4156
|
BackTop.displayName = "NutBackTop";
|
|
4158
4157
|
const elevatorContext = createContext({});
|
|
4159
|
-
const defaultProps$
|
|
4158
|
+
const defaultProps$1i = {
|
|
4160
4159
|
...ComponentDefaults,
|
|
4161
4160
|
height: "200px",
|
|
4162
4161
|
floorKey: "title",
|
|
@@ -4183,7 +4182,7 @@ const Elevator = (props) => {
|
|
|
4183
4182
|
children,
|
|
4184
4183
|
...rest
|
|
4185
4184
|
} = {
|
|
4186
|
-
...defaultProps$
|
|
4185
|
+
...defaultProps$1i,
|
|
4187
4186
|
...props
|
|
4188
4187
|
};
|
|
4189
4188
|
const classPrefix2 = "nut-elevator";
|
|
@@ -4400,7 +4399,7 @@ const Elevator = (props) => {
|
|
|
4400
4399
|
};
|
|
4401
4400
|
Elevator.displayName = "NutElevator";
|
|
4402
4401
|
Elevator.Context = elevatorContext;
|
|
4403
|
-
const defaultProps$
|
|
4402
|
+
const defaultProps$1h = {
|
|
4404
4403
|
...ComponentDefaults,
|
|
4405
4404
|
activeText: "",
|
|
4406
4405
|
inactiveText: "",
|
|
@@ -4428,7 +4427,7 @@ const FixedNav = (props) => {
|
|
|
4428
4427
|
content,
|
|
4429
4428
|
...rest
|
|
4430
4429
|
} = {
|
|
4431
|
-
...defaultProps$
|
|
4430
|
+
...defaultProps$1h,
|
|
4432
4431
|
...props
|
|
4433
4432
|
};
|
|
4434
4433
|
const classPrefix2 = "nut-fixednav";
|
|
@@ -4481,7 +4480,7 @@ const FixedNav = (props) => {
|
|
|
4481
4480
|
);
|
|
4482
4481
|
};
|
|
4483
4482
|
FixedNav.displayName = "NutFixedNav";
|
|
4484
|
-
const defaultProps$
|
|
4483
|
+
const defaultProps$1g = {
|
|
4485
4484
|
...ComponentDefaults,
|
|
4486
4485
|
left: "",
|
|
4487
4486
|
right: "",
|
|
@@ -4506,7 +4505,7 @@ const NavBar = (props) => {
|
|
|
4506
4505
|
zIndex,
|
|
4507
4506
|
onBackClick
|
|
4508
4507
|
} = {
|
|
4509
|
-
...defaultProps$
|
|
4508
|
+
...defaultProps$1g,
|
|
4510
4509
|
...props
|
|
4511
4510
|
};
|
|
4512
4511
|
const classPrefix2 = "nut-navbar";
|
|
@@ -4585,7 +4584,7 @@ const NavBar = (props) => {
|
|
|
4585
4584
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React__default.createElement(View, { className: `${classPrefix2}-placeholder` }, renderWrapper()) : renderWrapper());
|
|
4586
4585
|
};
|
|
4587
4586
|
NavBar.displayName = "NutNavBar";
|
|
4588
|
-
const defaultProps$
|
|
4587
|
+
const defaultProps$1f = {
|
|
4589
4588
|
...ComponentDefaults,
|
|
4590
4589
|
position: "center",
|
|
4591
4590
|
transition: "",
|
|
@@ -4638,7 +4637,7 @@ const Popup = (props) => {
|
|
|
4638
4637
|
afterShow,
|
|
4639
4638
|
afterClose,
|
|
4640
4639
|
onClick
|
|
4641
|
-
} = { ...defaultProps$
|
|
4640
|
+
} = { ...defaultProps$1f, ...props };
|
|
4642
4641
|
let innerIndex = zIndex || _zIndex;
|
|
4643
4642
|
const [index, setIndex] = useState(innerIndex);
|
|
4644
4643
|
const [innerVisible, setInnerVisible] = useState(visible);
|
|
@@ -4778,10 +4777,9 @@ const Popup = (props) => {
|
|
|
4778
4777
|
}, [position, transition]);
|
|
4779
4778
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, renderToContainer(portal, renderNode()));
|
|
4780
4779
|
};
|
|
4781
|
-
Popup.defaultProps = defaultProps$1g;
|
|
4782
4780
|
Popup.displayName = "NutPopup";
|
|
4783
4781
|
const OffsetContext = createContext(20);
|
|
4784
|
-
const defaultProps$
|
|
4782
|
+
const defaultProps$1e = {
|
|
4785
4783
|
...ComponentDefaults,
|
|
4786
4784
|
position: "left",
|
|
4787
4785
|
width: "80%"
|
|
@@ -4799,7 +4797,7 @@ const SideNavBar = (props) => {
|
|
|
4799
4797
|
indent,
|
|
4800
4798
|
...rest
|
|
4801
4799
|
} = {
|
|
4802
|
-
...defaultProps$
|
|
4800
|
+
...defaultProps$1e,
|
|
4803
4801
|
...props
|
|
4804
4802
|
};
|
|
4805
4803
|
const innerIndent = indent ? Number(indent) : 20;
|
|
@@ -4857,13 +4855,13 @@ const SideNavBarItem = (props) => {
|
|
|
4857
4855
|
title
|
|
4858
4856
|
);
|
|
4859
4857
|
};
|
|
4860
|
-
const defaultProps$
|
|
4858
|
+
const defaultProps$1d = {
|
|
4861
4859
|
open: true
|
|
4862
4860
|
};
|
|
4863
4861
|
const SubSideNavBar = (props) => {
|
|
4864
4862
|
const classPrefix2 = "nut-subsidenavbar";
|
|
4865
4863
|
const { title, value, children, onClick, open: open2, ...rest } = {
|
|
4866
|
-
...defaultProps$
|
|
4864
|
+
...defaultProps$1d,
|
|
4867
4865
|
...props
|
|
4868
4866
|
};
|
|
4869
4867
|
const [subShow, setSubShow] = useState(open2);
|
|
@@ -4941,7 +4939,7 @@ function usePropsValue({
|
|
|
4941
4939
|
);
|
|
4942
4940
|
return [stateRef.current, setState];
|
|
4943
4941
|
}
|
|
4944
|
-
const defaultProps$
|
|
4942
|
+
const defaultProps$1c = {
|
|
4945
4943
|
...ComponentDefaults,
|
|
4946
4944
|
value: "",
|
|
4947
4945
|
dot: false,
|
|
@@ -4966,7 +4964,7 @@ const Badge = (props) => {
|
|
|
4966
4964
|
color,
|
|
4967
4965
|
fill
|
|
4968
4966
|
} = {
|
|
4969
|
-
...defaultProps$
|
|
4967
|
+
...defaultProps$1c,
|
|
4970
4968
|
...props
|
|
4971
4969
|
};
|
|
4972
4970
|
const classPrefix2 = "nut-badge";
|
|
@@ -5022,10 +5020,9 @@ const Badge = (props) => {
|
|
|
5022
5020
|
};
|
|
5023
5021
|
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()));
|
|
5024
5022
|
};
|
|
5025
|
-
Badge.defaultProps = defaultProps$1d;
|
|
5026
5023
|
Badge.displayName = "NutBadge";
|
|
5027
5024
|
const TabbarContext = React__default.createContext(null);
|
|
5028
|
-
const defaultProps$
|
|
5025
|
+
const defaultProps$1b = {
|
|
5029
5026
|
...ComponentDefaults,
|
|
5030
5027
|
title: "",
|
|
5031
5028
|
icon: null,
|
|
@@ -5051,7 +5048,7 @@ const TabbarItem = (props) => {
|
|
|
5051
5048
|
index,
|
|
5052
5049
|
...rest
|
|
5053
5050
|
} = {
|
|
5054
|
-
...defaultProps$
|
|
5051
|
+
...defaultProps$1b,
|
|
5055
5052
|
...props
|
|
5056
5053
|
};
|
|
5057
5054
|
const active = index === (ctx == null ? void 0 : ctx.selectIndex);
|
|
@@ -5089,7 +5086,7 @@ const TabbarItem = (props) => {
|
|
|
5089
5086
|
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))
|
|
5090
5087
|
);
|
|
5091
5088
|
};
|
|
5092
|
-
const defaultProps$
|
|
5089
|
+
const defaultProps$1a = {
|
|
5093
5090
|
...ComponentDefaults,
|
|
5094
5091
|
defaultValue: 0,
|
|
5095
5092
|
fixed: false,
|
|
@@ -5112,7 +5109,7 @@ const Tabbar = (props) => {
|
|
|
5112
5109
|
style,
|
|
5113
5110
|
onSwitch
|
|
5114
5111
|
} = {
|
|
5115
|
-
...defaultProps$
|
|
5112
|
+
...defaultProps$1a,
|
|
5116
5113
|
...props
|
|
5117
5114
|
};
|
|
5118
5115
|
const classPrefix2 = "nut-tabbar";
|
|
@@ -5155,14 +5152,14 @@ const Tabbar = (props) => {
|
|
|
5155
5152
|
};
|
|
5156
5153
|
Tabbar.displayName = "NutTabbar";
|
|
5157
5154
|
Tabbar.Item = TabbarItem;
|
|
5158
|
-
const defaultProps$
|
|
5155
|
+
const defaultProps$19 = {
|
|
5159
5156
|
title: "",
|
|
5160
5157
|
value: "",
|
|
5161
5158
|
disabled: false
|
|
5162
5159
|
};
|
|
5163
5160
|
const TabPane = (props) => {
|
|
5164
5161
|
const { children, autoHeightClassName, className, disabled } = {
|
|
5165
|
-
...defaultProps$
|
|
5162
|
+
...defaultProps$19,
|
|
5166
5163
|
...props
|
|
5167
5164
|
};
|
|
5168
5165
|
const classPrefix2 = "nut-tabpane";
|
|
@@ -5203,7 +5200,7 @@ function useUuid() {
|
|
|
5203
5200
|
const idRef = useRef(uniqueId());
|
|
5204
5201
|
return idRef.current;
|
|
5205
5202
|
}
|
|
5206
|
-
const defaultProps$
|
|
5203
|
+
const defaultProps$18 = {
|
|
5207
5204
|
...ComponentDefaults,
|
|
5208
5205
|
tabStyle: {},
|
|
5209
5206
|
activeColor: "",
|
|
@@ -5233,7 +5230,7 @@ const Tabs = (props) => {
|
|
|
5233
5230
|
defaultValue: outerDefaultValue,
|
|
5234
5231
|
...rest
|
|
5235
5232
|
} = {
|
|
5236
|
-
...defaultProps$
|
|
5233
|
+
...defaultProps$18,
|
|
5237
5234
|
...props
|
|
5238
5235
|
};
|
|
5239
5236
|
const uuid = useUuid();
|
|
@@ -5457,7 +5454,7 @@ const Tabs = (props) => {
|
|
|
5457
5454
|
};
|
|
5458
5455
|
Tabs.displayName = "NutTabs";
|
|
5459
5456
|
Tabs.TabPane = TabPane;
|
|
5460
|
-
const defaultProps$
|
|
5457
|
+
const defaultProps$17 = {
|
|
5461
5458
|
type: "custom",
|
|
5462
5459
|
existList: [],
|
|
5463
5460
|
defaultIcon: null,
|
|
@@ -5476,7 +5473,7 @@ const ExistRender = (props) => {
|
|
|
5476
5473
|
onSelect,
|
|
5477
5474
|
onSwitch,
|
|
5478
5475
|
...rest
|
|
5479
|
-
} = { ...defaultProps$
|
|
5476
|
+
} = { ...defaultProps$17, ...props };
|
|
5480
5477
|
const classPrefix2 = "nut-address";
|
|
5481
5478
|
const selectedExist = (item) => {
|
|
5482
5479
|
existList.forEach((list, index) => {
|
|
@@ -5638,7 +5635,7 @@ class Tree {
|
|
|
5638
5635
|
return pathNodes;
|
|
5639
5636
|
}
|
|
5640
5637
|
}
|
|
5641
|
-
const defaultProps$
|
|
5638
|
+
const defaultProps$16 = {
|
|
5642
5639
|
...ComponentDefaults,
|
|
5643
5640
|
activeColor: "",
|
|
5644
5641
|
activeIcon: "checklist",
|
|
@@ -5677,11 +5674,13 @@ const InternalCascader = (props, ref) => {
|
|
|
5677
5674
|
closeIconPosition,
|
|
5678
5675
|
closeIcon,
|
|
5679
5676
|
lazy,
|
|
5677
|
+
title,
|
|
5678
|
+
left: left2,
|
|
5680
5679
|
onLoad,
|
|
5681
5680
|
onClose,
|
|
5682
5681
|
onChange,
|
|
5683
5682
|
onPathChange
|
|
5684
|
-
} = { ...defaultProps$
|
|
5683
|
+
} = { ...defaultProps$16, ...props };
|
|
5685
5684
|
const [tabvalue, setTabvalue] = useState("c1");
|
|
5686
5685
|
const [optionsData, setOptionsData] = useState([]);
|
|
5687
5686
|
const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
|
|
@@ -5691,7 +5690,7 @@ const InternalCascader = (props, ref) => {
|
|
|
5691
5690
|
finalValue: defaultValue
|
|
5692
5691
|
});
|
|
5693
5692
|
const [innerVisible, setInnerVisible] = usePropsValue({
|
|
5694
|
-
value:
|
|
5693
|
+
value: visible,
|
|
5695
5694
|
defaultValue: void 0,
|
|
5696
5695
|
finalValue: false
|
|
5697
5696
|
});
|
|
@@ -5979,8 +5978,8 @@ const InternalCascader = (props, ref) => {
|
|
|
5979
5978
|
closeIcon,
|
|
5980
5979
|
closeable,
|
|
5981
5980
|
closeIconPosition,
|
|
5982
|
-
title: popup &&
|
|
5983
|
-
left:
|
|
5981
|
+
title: popup && title,
|
|
5982
|
+
left: left2,
|
|
5984
5983
|
onOverlayClick: closePopup,
|
|
5985
5984
|
onCloseIconClick: closePopup
|
|
5986
5985
|
},
|
|
@@ -5988,9 +5987,8 @@ const InternalCascader = (props, ref) => {
|
|
|
5988
5987
|
) : renderTabs());
|
|
5989
5988
|
};
|
|
5990
5989
|
const Cascader = React__default.forwardRef(InternalCascader);
|
|
5991
|
-
Cascader.defaultProps = defaultProps$17;
|
|
5992
5990
|
Cascader.displayName = "NutCascader";
|
|
5993
|
-
const defaultProps$
|
|
5991
|
+
const defaultProps$15 = {
|
|
5994
5992
|
...ComponentDefaults,
|
|
5995
5993
|
visible: false,
|
|
5996
5994
|
type: "custom",
|
|
@@ -6017,7 +6015,7 @@ const CustomRender = (props) => {
|
|
|
6017
6015
|
onPathChange,
|
|
6018
6016
|
...rest
|
|
6019
6017
|
} = {
|
|
6020
|
-
...defaultProps$
|
|
6018
|
+
...defaultProps$15,
|
|
6021
6019
|
...props
|
|
6022
6020
|
};
|
|
6023
6021
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, type4 === "custom" && /* @__PURE__ */ React__default.createElement(
|
|
@@ -6042,7 +6040,7 @@ const CustomRender = (props) => {
|
|
|
6042
6040
|
}
|
|
6043
6041
|
));
|
|
6044
6042
|
};
|
|
6045
|
-
const defaultProps$
|
|
6043
|
+
const defaultProps$14 = {
|
|
6046
6044
|
...ComponentDefaults,
|
|
6047
6045
|
defaultValue: [],
|
|
6048
6046
|
type: "custom",
|
|
@@ -6084,7 +6082,7 @@ const InternalAddress = (props, ref) => {
|
|
|
6084
6082
|
onSwitch,
|
|
6085
6083
|
...rest
|
|
6086
6084
|
} = {
|
|
6087
|
-
...defaultProps$
|
|
6085
|
+
...defaultProps$14,
|
|
6088
6086
|
...props
|
|
6089
6087
|
};
|
|
6090
6088
|
const classPrefix2 = "nut-address";
|
|
@@ -6176,7 +6174,6 @@ const InternalAddress = (props, ref) => {
|
|
|
6176
6174
|
));
|
|
6177
6175
|
};
|
|
6178
6176
|
const Address = forwardRef(InternalAddress);
|
|
6179
|
-
Address.defaultProps = defaultProps$15;
|
|
6180
6177
|
Address.displayName = "NutAddress";
|
|
6181
6178
|
const Utils = {
|
|
6182
6179
|
/**
|
|
@@ -6426,7 +6423,7 @@ const isEnd = (day, days) => {
|
|
|
6426
6423
|
const isStartAndEnd = (days) => {
|
|
6427
6424
|
return days.length >= 2 && Utils.isEqual(days[0], days[1]);
|
|
6428
6425
|
};
|
|
6429
|
-
const defaultProps$
|
|
6426
|
+
const defaultProps$13 = {
|
|
6430
6427
|
...ComponentDefaults,
|
|
6431
6428
|
type: "single",
|
|
6432
6429
|
autoBackfill: false,
|
|
@@ -6482,11 +6479,12 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
6482
6479
|
renderDay,
|
|
6483
6480
|
renderDayTop,
|
|
6484
6481
|
renderDayBottom,
|
|
6482
|
+
value,
|
|
6485
6483
|
onConfirm,
|
|
6486
6484
|
onUpdate,
|
|
6487
6485
|
onDayClick,
|
|
6488
6486
|
onPageChange
|
|
6489
|
-
} = { ...defaultProps$
|
|
6487
|
+
} = { ...defaultProps$13, ...props };
|
|
6490
6488
|
const weekdays = locale.calendaritem.weekdays;
|
|
6491
6489
|
const weeks = [
|
|
6492
6490
|
...weekdays.slice(firstDayOfWeek, 7),
|
|
@@ -6520,7 +6518,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
6520
6518
|
return void 0;
|
|
6521
6519
|
};
|
|
6522
6520
|
const [currentDate, setCurrentDate] = usePropsValue({
|
|
6523
|
-
value
|
|
6521
|
+
value,
|
|
6524
6522
|
defaultValue: resetDefaultValue(),
|
|
6525
6523
|
finalValue: [],
|
|
6526
6524
|
onChange: (val) => {
|
|
@@ -6726,7 +6724,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
6726
6724
|
monthsData[current.lastCurrent],
|
|
6727
6725
|
true
|
|
6728
6726
|
);
|
|
6729
|
-
} else if (
|
|
6727
|
+
} else if (type4 === "week") {
|
|
6730
6728
|
chooseDay(
|
|
6731
6729
|
{ day: defaultData[2], type: "curr" },
|
|
6732
6730
|
monthsData[current.current],
|
|
@@ -7039,9 +7037,8 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
7039
7037
|
};
|
|
7040
7038
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : ""));
|
|
7041
7039
|
});
|
|
7042
|
-
CalendarItem.defaultProps = defaultProps$14;
|
|
7043
7040
|
CalendarItem.displayName = "NutCalendarItem";
|
|
7044
|
-
const defaultProps$
|
|
7041
|
+
const defaultProps$12 = {
|
|
7045
7042
|
...ComponentDefaults,
|
|
7046
7043
|
type: "single",
|
|
7047
7044
|
autoBackfill: false,
|
|
@@ -7104,7 +7101,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
7104
7101
|
onConfirm,
|
|
7105
7102
|
onDayClick,
|
|
7106
7103
|
onPageChange
|
|
7107
|
-
} = { ...defaultProps$
|
|
7104
|
+
} = { ...defaultProps$12, ...props };
|
|
7108
7105
|
const calendarRef = useRef(null);
|
|
7109
7106
|
const close2 = () => {
|
|
7110
7107
|
onClose && onClose();
|
|
@@ -7179,7 +7176,6 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
7179
7176
|
renderItem()
|
|
7180
7177
|
) : renderItem());
|
|
7181
7178
|
});
|
|
7182
|
-
Calendar.defaultProps = defaultProps$13;
|
|
7183
7179
|
Calendar.displayName = "NutCalendar";
|
|
7184
7180
|
const left = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNNi42MDUgOS40OWEuNzcxLjc3MSAwIDAgMSAwLS45OGwzLjYtNC4zNzJhLjc3MS43NzEgMCAwIDEgMS4xOS45ODFMOC4yIDlsMy4xOTcgMy44ODFhLjc3MS43NzEgMCAxIDEtMS4xOTEuOThsLTMuNi00LjM3eiIvPjwvc3ZnPg==";
|
|
7185
7181
|
const right = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMTEuMzk2IDkuNDlhLjc3MS43NzEgMCAwIDAgMC0uOThsLTMuNi00LjM3MmEuNzcxLjc3MSAwIDAgMC0xLjE5MS45ODFMOS44IDlsLTMuMTk2IDMuODgxYS43NzEuNzcxIDAgMCAwIDEuMTkuOThsMy42LTQuMzd6Ii8+PC9zdmc+";
|
|
@@ -7254,7 +7250,7 @@ const getCurrentWeekDays = (day, firstDayOfWeek) => {
|
|
|
7254
7250
|
)
|
|
7255
7251
|
];
|
|
7256
7252
|
};
|
|
7257
|
-
const defaultProps$
|
|
7253
|
+
const defaultProps$11 = {
|
|
7258
7254
|
...ComponentDefaults,
|
|
7259
7255
|
type: "single",
|
|
7260
7256
|
firstDayOfWeek: 0
|
|
@@ -7278,7 +7274,7 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
|
|
|
7278
7274
|
onDayClick,
|
|
7279
7275
|
onPageChange,
|
|
7280
7276
|
onChange
|
|
7281
|
-
} = { ...defaultProps$
|
|
7277
|
+
} = { ...defaultProps$11, ...props };
|
|
7282
7278
|
const [month, setMonth] = useState(() => {
|
|
7283
7279
|
let date4 = new Date(Date.now());
|
|
7284
7280
|
const val = value || defaultValue;
|
|
@@ -7580,11 +7576,10 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
|
|
|
7580
7576
|
};
|
|
7581
7577
|
return days.length > 0 ? /* @__PURE__ */ React__default.createElement("div", { className: classNames(prefixCls, className), style }, renderHeader(), renderContent()) : null;
|
|
7582
7578
|
});
|
|
7583
|
-
CalendarCard.defaultProps = defaultProps$12;
|
|
7584
7579
|
CalendarCard.displayName = "NutCalendarCard";
|
|
7585
7580
|
const CheckboxGroupContext = createContext(null);
|
|
7586
7581
|
const Context$1 = CheckboxGroupContext;
|
|
7587
|
-
const defaultProps$
|
|
7582
|
+
const defaultProps$10 = {
|
|
7588
7583
|
max: void 0,
|
|
7589
7584
|
min: void 0,
|
|
7590
7585
|
list: false,
|
|
@@ -7614,7 +7609,7 @@ const CheckboxGroup = React__default.forwardRef(
|
|
|
7614
7609
|
direction,
|
|
7615
7610
|
options,
|
|
7616
7611
|
...rest
|
|
7617
|
-
} = { ...defaultProps$
|
|
7612
|
+
} = { ...defaultProps$10, ...props };
|
|
7618
7613
|
useImperativeHandle(ref, () => ({
|
|
7619
7614
|
toggle(state) {
|
|
7620
7615
|
if (state === false) {
|
|
@@ -7706,9 +7701,9 @@ const CheckboxGroup = React__default.forwardRef(
|
|
|
7706
7701
|
);
|
|
7707
7702
|
}
|
|
7708
7703
|
);
|
|
7709
|
-
CheckboxGroup.defaultProps = defaultProps$
|
|
7704
|
+
CheckboxGroup.defaultProps = defaultProps$10;
|
|
7710
7705
|
CheckboxGroup.displayName = "NutCheckboxGroup";
|
|
7711
|
-
const defaultProps
|
|
7706
|
+
const defaultProps$$ = {
|
|
7712
7707
|
...ComponentDefaults,
|
|
7713
7708
|
disabled: false,
|
|
7714
7709
|
shape: "round",
|
|
@@ -7722,7 +7717,7 @@ const defaultProps$10 = {
|
|
|
7722
7717
|
const classPrefix$i = "nut-checkbox";
|
|
7723
7718
|
const Checkbox = (props) => {
|
|
7724
7719
|
const { children } = {
|
|
7725
|
-
...defaultProps
|
|
7720
|
+
...defaultProps$$,
|
|
7726
7721
|
...props
|
|
7727
7722
|
};
|
|
7728
7723
|
const {
|
|
@@ -7743,8 +7738,8 @@ const Checkbox = (props) => {
|
|
|
7743
7738
|
let { labelPosition, ...rest } = others;
|
|
7744
7739
|
const ctx = useContext(Context$1);
|
|
7745
7740
|
let [innerChecked, setChecked] = usePropsValue({
|
|
7746
|
-
value:
|
|
7747
|
-
defaultValue:
|
|
7741
|
+
value: checked,
|
|
7742
|
+
defaultValue: defaultChecked,
|
|
7748
7743
|
finalValue: defaultChecked,
|
|
7749
7744
|
onChange
|
|
7750
7745
|
});
|
|
@@ -7866,7 +7861,6 @@ const Checkbox = (props) => {
|
|
|
7866
7861
|
renderCheckboxItem()
|
|
7867
7862
|
);
|
|
7868
7863
|
};
|
|
7869
|
-
Checkbox.defaultProps = defaultProps$10;
|
|
7870
7864
|
Checkbox.displayName = "NutCheckBox";
|
|
7871
7865
|
Checkbox.Group = CheckboxGroup;
|
|
7872
7866
|
const InternalPickerPanel = (props, ref) => {
|
|
@@ -8112,7 +8106,7 @@ function useRefs() {
|
|
|
8112
8106
|
}, []);
|
|
8113
8107
|
return [refs.current, setRefs, reset];
|
|
8114
8108
|
}
|
|
8115
|
-
const defaultProps
|
|
8109
|
+
const defaultProps$_ = {
|
|
8116
8110
|
...ComponentDefaults,
|
|
8117
8111
|
visible: false,
|
|
8118
8112
|
title: "",
|
|
@@ -8143,7 +8137,7 @@ const InternalPicker = (props, ref) => {
|
|
|
8143
8137
|
afterClose,
|
|
8144
8138
|
onChange,
|
|
8145
8139
|
...rest
|
|
8146
|
-
} = { ...defaultProps
|
|
8140
|
+
} = { ...defaultProps$_, ...props };
|
|
8147
8141
|
const classPrefix2 = "nut-picker";
|
|
8148
8142
|
const classes = classNames(classPrefix2, className);
|
|
8149
8143
|
const [selectedValue, setSelectedValue] = usePropsValue({
|
|
@@ -8458,7 +8452,7 @@ const padZero = (num, targetLength = 2) => {
|
|
|
8458
8452
|
return str;
|
|
8459
8453
|
};
|
|
8460
8454
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
8461
|
-
const defaultProps$
|
|
8455
|
+
const defaultProps$Z = {
|
|
8462
8456
|
...ComponentDefaults,
|
|
8463
8457
|
visible: false,
|
|
8464
8458
|
title: "",
|
|
@@ -8491,7 +8485,7 @@ const DatePicker = (props) => {
|
|
|
8491
8485
|
style,
|
|
8492
8486
|
...rest
|
|
8493
8487
|
} = {
|
|
8494
|
-
...defaultProps$
|
|
8488
|
+
...defaultProps$Z,
|
|
8495
8489
|
...props
|
|
8496
8490
|
};
|
|
8497
8491
|
const { locale } = useConfig$1();
|
|
@@ -8782,7 +8776,7 @@ const DatePicker = (props) => {
|
|
|
8782
8776
|
)
|
|
8783
8777
|
);
|
|
8784
8778
|
};
|
|
8785
|
-
DatePicker.defaultProps = defaultProps$
|
|
8779
|
+
DatePicker.defaultProps = defaultProps$Z;
|
|
8786
8780
|
DatePicker.displayName = "NutDatePicker";
|
|
8787
8781
|
const Context = createContext({});
|
|
8788
8782
|
function _extends() {
|
|
@@ -10025,7 +10019,7 @@ const useForm = (form) => {
|
|
|
10025
10019
|
}
|
|
10026
10020
|
return [formRef.current];
|
|
10027
10021
|
};
|
|
10028
|
-
const defaultProps$
|
|
10022
|
+
const defaultProps$Y = {
|
|
10029
10023
|
...ComponentDefaults,
|
|
10030
10024
|
labelPosition: "right",
|
|
10031
10025
|
starPosition: "left",
|
|
@@ -10056,7 +10050,7 @@ const Form = React__default.forwardRef(
|
|
|
10056
10050
|
starPosition,
|
|
10057
10051
|
form
|
|
10058
10052
|
} = {
|
|
10059
|
-
...defaultProps$
|
|
10053
|
+
...defaultProps$Y,
|
|
10060
10054
|
...props
|
|
10061
10055
|
};
|
|
10062
10056
|
let formInstance;
|
|
@@ -10102,7 +10096,6 @@ const Form = React__default.forwardRef(
|
|
|
10102
10096
|
);
|
|
10103
10097
|
}
|
|
10104
10098
|
);
|
|
10105
|
-
Form.defaultProps = defaultProps$Z;
|
|
10106
10099
|
Form.displayName = "NutForm";
|
|
10107
10100
|
function isForwardRefComponent(component) {
|
|
10108
10101
|
return component.type && component.type.$$typeof && // eslint-disable-next-line react/display-name
|
|
@@ -10113,7 +10106,7 @@ function isForwardRefComponent(component) {
|
|
|
10113
10106
|
}
|
|
10114
10107
|
).$$typeof === component.type.$$typeof;
|
|
10115
10108
|
}
|
|
10116
|
-
const defaultProps$
|
|
10109
|
+
const defaultProps$X = {
|
|
10117
10110
|
...ComponentDefaults,
|
|
10118
10111
|
required: false,
|
|
10119
10112
|
name: "",
|
|
@@ -10209,7 +10202,7 @@ const _FormItem = class _FormItem extends React__default.Component {
|
|
|
10209
10202
|
style,
|
|
10210
10203
|
errorMessageAlign
|
|
10211
10204
|
} = {
|
|
10212
|
-
...defaultProps$
|
|
10205
|
+
...defaultProps$X,
|
|
10213
10206
|
...this.props
|
|
10214
10207
|
};
|
|
10215
10208
|
const requiredInRules = rules2 == null ? void 0 : rules2.some((rule) => rule.required);
|
|
@@ -10271,7 +10264,7 @@ const _FormItem = class _FormItem extends React__default.Component {
|
|
|
10271
10264
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
|
|
10272
10265
|
}
|
|
10273
10266
|
};
|
|
10274
|
-
_FormItem.defaultProps = defaultProps$
|
|
10267
|
+
_FormItem.defaultProps = defaultProps$X;
|
|
10275
10268
|
_FormItem.contextType = Context;
|
|
10276
10269
|
let FormItem = _FormItem;
|
|
10277
10270
|
const InnerForm = Form;
|
|
@@ -10301,7 +10294,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
10301
10294
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
10302
10295
|
return value.replace(regExp, "");
|
|
10303
10296
|
}
|
|
10304
|
-
const defaultProps$
|
|
10297
|
+
const defaultProps$W = {
|
|
10305
10298
|
...ComponentDefaults,
|
|
10306
10299
|
type: "text",
|
|
10307
10300
|
name: "",
|
|
@@ -10346,12 +10339,12 @@ const Input = forwardRef(
|
|
|
10346
10339
|
value: _value,
|
|
10347
10340
|
...rest
|
|
10348
10341
|
} = {
|
|
10349
|
-
...defaultProps$
|
|
10342
|
+
...defaultProps$W,
|
|
10350
10343
|
...props
|
|
10351
10344
|
};
|
|
10352
10345
|
const [value, setValue] = usePropsValue({
|
|
10353
|
-
value:
|
|
10354
|
-
defaultValue
|
|
10346
|
+
value: _value,
|
|
10347
|
+
defaultValue,
|
|
10355
10348
|
finalValue: "",
|
|
10356
10349
|
onChange
|
|
10357
10350
|
});
|
|
@@ -10415,16 +10408,11 @@ const Input = forwardRef(
|
|
|
10415
10408
|
updateValue(value2, "onChange");
|
|
10416
10409
|
};
|
|
10417
10410
|
const handleBlur = (event) => {
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
|
|
10421
|
-
setTimeout(() => {
|
|
10422
|
-
setActive(false);
|
|
10423
|
-
}, 50);
|
|
10424
|
-
} else {
|
|
10425
|
-
updateValue(value, "onBlur");
|
|
10411
|
+
const val = Taro.getEnv() === "WEB" ? event.target.value : value;
|
|
10412
|
+
updateValue(val, "onBlur");
|
|
10413
|
+
setTimeout(() => {
|
|
10426
10414
|
setActive(false);
|
|
10427
|
-
}
|
|
10415
|
+
}, 200);
|
|
10428
10416
|
};
|
|
10429
10417
|
const inputType = (type22) => {
|
|
10430
10418
|
if (getEnv() === ENV_TYPE.WEB) {
|
|
@@ -10485,7 +10473,8 @@ const Input = forwardRef(
|
|
|
10485
10473
|
{
|
|
10486
10474
|
style: {
|
|
10487
10475
|
display: clearable && !readOnly && active && value.length > 0 ? "flex" : "none",
|
|
10488
|
-
alignItems: "center"
|
|
10476
|
+
alignItems: "center",
|
|
10477
|
+
cursor: "pointer"
|
|
10489
10478
|
},
|
|
10490
10479
|
onClick: (e2) => {
|
|
10491
10480
|
e2.stopPropagation();
|
|
@@ -10500,9 +10489,8 @@ const Input = forwardRef(
|
|
|
10500
10489
|
);
|
|
10501
10490
|
}
|
|
10502
10491
|
);
|
|
10503
|
-
Input.defaultProps = defaultProps$X;
|
|
10504
10492
|
Input.displayName = "NutInput";
|
|
10505
|
-
const defaultProps$
|
|
10493
|
+
const defaultProps$V = {
|
|
10506
10494
|
...ComponentDefaults,
|
|
10507
10495
|
disabled: false,
|
|
10508
10496
|
readOnly: false,
|
|
@@ -10540,7 +10528,7 @@ const InputNumber = (props) => {
|
|
|
10540
10528
|
onChange,
|
|
10541
10529
|
...restProps
|
|
10542
10530
|
} = {
|
|
10543
|
-
...defaultProps$
|
|
10531
|
+
...defaultProps$V,
|
|
10544
10532
|
...props
|
|
10545
10533
|
};
|
|
10546
10534
|
const classes = classNames(classPrefix$h, className, {
|
|
@@ -10700,9 +10688,8 @@ const InputNumber = (props) => {
|
|
|
10700
10688
|
}
|
|
10701
10689
|
)));
|
|
10702
10690
|
};
|
|
10703
|
-
InputNumber.defaultProps = defaultProps$W;
|
|
10704
10691
|
InputNumber.displayName = "NutInputNumber";
|
|
10705
|
-
const defaultProps$
|
|
10692
|
+
const defaultProps$U = {
|
|
10706
10693
|
...ComponentDefaults,
|
|
10707
10694
|
columns: 1,
|
|
10708
10695
|
direction: "down",
|
|
@@ -10733,7 +10720,7 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
10733
10720
|
parent,
|
|
10734
10721
|
index
|
|
10735
10722
|
} = {
|
|
10736
|
-
...defaultProps$
|
|
10723
|
+
...defaultProps$U,
|
|
10737
10724
|
...props
|
|
10738
10725
|
};
|
|
10739
10726
|
const [showPopup, setShowPopup] = useState(show2);
|
|
@@ -10894,7 +10881,7 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
10894
10881
|
g$3,
|
|
10895
10882
|
{
|
|
10896
10883
|
color: activeColor,
|
|
10897
|
-
size:
|
|
10884
|
+
size: 16,
|
|
10898
10885
|
className: getIconCName(item.value, value)
|
|
10899
10886
|
}
|
|
10900
10887
|
)) : null,
|
|
@@ -10913,9 +10900,8 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
10913
10900
|
)
|
|
10914
10901
|
));
|
|
10915
10902
|
});
|
|
10916
|
-
MenuItem.defaultProps = defaultProps$V;
|
|
10917
10903
|
MenuItem.displayName = "NutMenuItem";
|
|
10918
|
-
const defaultProps$
|
|
10904
|
+
const defaultProps$T = {
|
|
10919
10905
|
...ComponentDefaults,
|
|
10920
10906
|
activeColor: "",
|
|
10921
10907
|
closeOnOverlayClick: true,
|
|
@@ -10942,7 +10928,7 @@ const Menu = (props) => {
|
|
|
10942
10928
|
onOpen,
|
|
10943
10929
|
...rest
|
|
10944
10930
|
} = {
|
|
10945
|
-
...defaultProps$
|
|
10931
|
+
...defaultProps$T,
|
|
10946
10932
|
...props
|
|
10947
10933
|
};
|
|
10948
10934
|
const menuRef = useRef(null);
|
|
@@ -11067,19 +11053,8 @@ const Menu = (props) => {
|
|
|
11067
11053
|
cloneChildren()
|
|
11068
11054
|
);
|
|
11069
11055
|
};
|
|
11070
|
-
Menu.defaultProps = defaultProps$U;
|
|
11071
11056
|
Menu.displayName = "NutMenu";
|
|
11072
11057
|
Menu.Item = MenuItem;
|
|
11073
|
-
const defaultProps$T = {
|
|
11074
|
-
...ComponentDefaults,
|
|
11075
|
-
visible: false,
|
|
11076
|
-
rightActions: "",
|
|
11077
|
-
type: "default",
|
|
11078
|
-
custom: [],
|
|
11079
|
-
random: false,
|
|
11080
|
-
onClose: () => {
|
|
11081
|
-
}
|
|
11082
|
-
};
|
|
11083
11058
|
const NumberKeyboard = (props) => {
|
|
11084
11059
|
const { locale } = useConfig$1();
|
|
11085
11060
|
const {
|
|
@@ -11218,7 +11193,6 @@ const NumberKeyboard = (props) => {
|
|
|
11218
11193
|
))))
|
|
11219
11194
|
);
|
|
11220
11195
|
};
|
|
11221
|
-
NumberKeyboard.defaultProps = defaultProps$T;
|
|
11222
11196
|
NumberKeyboard.displayName = "NutNumberKeyboard";
|
|
11223
11197
|
const RadioContext = React__default.createContext(null);
|
|
11224
11198
|
const defaultProps$S = {
|
|
@@ -11743,7 +11717,6 @@ const Range = (props) => {
|
|
|
11743
11717
|
renderButton()
|
|
11744
11718
|
))), maxDescription !== null && /* @__PURE__ */ React__default.createElement("div", { className: "max" }, maxDescription || max));
|
|
11745
11719
|
};
|
|
11746
|
-
Range.defaultProps = defaultProps$Q;
|
|
11747
11720
|
Range.displayName = "NutRange";
|
|
11748
11721
|
const defaultProps$P = {
|
|
11749
11722
|
...ComponentDefaults,
|
|
@@ -11930,7 +11903,6 @@ const Rate = (props) => {
|
|
|
11930
11903
|
})
|
|
11931
11904
|
);
|
|
11932
11905
|
};
|
|
11933
|
-
Rate.defaultProps = defaultProps$P;
|
|
11934
11906
|
Rate.displayName = "NutRate";
|
|
11935
11907
|
const defaultProps$O = {
|
|
11936
11908
|
...ComponentDefaults,
|
|
@@ -11951,8 +11923,9 @@ const SearchBar = (props) => {
|
|
|
11951
11923
|
const classPrefix2 = "nut-searchbar";
|
|
11952
11924
|
const { locale } = useConfig$1();
|
|
11953
11925
|
const searchRef = useRef(null);
|
|
11954
|
-
const [value, setValue] = useState(() => props.value);
|
|
11955
11926
|
const {
|
|
11927
|
+
value: outerValue,
|
|
11928
|
+
style,
|
|
11956
11929
|
placeholder,
|
|
11957
11930
|
shape,
|
|
11958
11931
|
className,
|
|
@@ -11976,6 +11949,7 @@ const SearchBar = (props) => {
|
|
|
11976
11949
|
...defaultProps$O,
|
|
11977
11950
|
...props
|
|
11978
11951
|
};
|
|
11952
|
+
const [value, setValue] = useState(() => outerValue);
|
|
11979
11953
|
const forceFocus = () => {
|
|
11980
11954
|
const searchSelf = searchRef.current;
|
|
11981
11955
|
searchSelf && searchSelf.focus();
|
|
@@ -11998,8 +11972,8 @@ const SearchBar = (props) => {
|
|
|
11998
11972
|
onBlur && (onBlur == null ? void 0 : onBlur(value2, event));
|
|
11999
11973
|
};
|
|
12000
11974
|
useEffect(() => {
|
|
12001
|
-
setValue(
|
|
12002
|
-
}, [
|
|
11975
|
+
setValue(outerValue || "");
|
|
11976
|
+
}, [outerValue]);
|
|
12003
11977
|
useEffect(() => {
|
|
12004
11978
|
autoFocus && forceFocus();
|
|
12005
11979
|
}, [autoFocus]);
|
|
@@ -12009,7 +11983,7 @@ const SearchBar = (props) => {
|
|
|
12009
11983
|
{
|
|
12010
11984
|
className: `${classPrefix2}-input ${clearable ? `${classPrefix2}-input-clear` : ""}`,
|
|
12011
11985
|
ref: searchRef,
|
|
12012
|
-
style
|
|
11986
|
+
style,
|
|
12013
11987
|
value: value || "",
|
|
12014
11988
|
placeholder: placeholder || locale.placeholder,
|
|
12015
11989
|
disabled,
|
|
@@ -12076,7 +12050,7 @@ const SearchBar = (props) => {
|
|
|
12076
12050
|
"div",
|
|
12077
12051
|
{
|
|
12078
12052
|
className: `${classPrefix2} ${disabled ? `${classPrefix2}-disabled` : ""} ${className || ""}`,
|
|
12079
|
-
style
|
|
12053
|
+
style
|
|
12080
12054
|
},
|
|
12081
12055
|
renderLeft(),
|
|
12082
12056
|
/* @__PURE__ */ React__default.createElement(
|
|
@@ -12092,7 +12066,6 @@ const SearchBar = (props) => {
|
|
|
12092
12066
|
renderRight()
|
|
12093
12067
|
);
|
|
12094
12068
|
};
|
|
12095
|
-
SearchBar.defaultProps = defaultProps$O;
|
|
12096
12069
|
SearchBar.displayName = "NutSearchBar";
|
|
12097
12070
|
const defaultProps$N = {
|
|
12098
12071
|
...ComponentDefaults,
|
|
@@ -12110,7 +12083,7 @@ const InternalShortPassword = (props, ref) => {
|
|
|
12110
12083
|
title,
|
|
12111
12084
|
description,
|
|
12112
12085
|
tips,
|
|
12113
|
-
visible:
|
|
12086
|
+
visible: outerVisible,
|
|
12114
12087
|
value,
|
|
12115
12088
|
error,
|
|
12116
12089
|
hideFooter,
|
|
@@ -12142,7 +12115,7 @@ const InternalShortPassword = (props, ref) => {
|
|
|
12142
12115
|
return val.slice(0, comLen);
|
|
12143
12116
|
};
|
|
12144
12117
|
const [visible, setVisible] = usePropsValue({
|
|
12145
|
-
value:
|
|
12118
|
+
value: outerVisible,
|
|
12146
12119
|
defaultValue: false,
|
|
12147
12120
|
finalValue: false
|
|
12148
12121
|
});
|
|
@@ -12260,7 +12233,7 @@ const InternalSignature = (props, ref) => {
|
|
|
12260
12233
|
}).exec((res) => {
|
|
12261
12234
|
canvasToTempFilePath({
|
|
12262
12235
|
canvas: res[0].node,
|
|
12263
|
-
fileType:
|
|
12236
|
+
fileType: type4,
|
|
12264
12237
|
canvasId: `${canvasId}`,
|
|
12265
12238
|
success: (res2) => {
|
|
12266
12239
|
onConfirm && onConfirm(res2.tempFilePath);
|
|
@@ -12359,7 +12332,6 @@ const InternalSignature = (props, ref) => {
|
|
|
12359
12332
|
const Signature = React__default.forwardRef(
|
|
12360
12333
|
InternalSignature
|
|
12361
12334
|
);
|
|
12362
|
-
Signature.defaultProps = defaultProps$M;
|
|
12363
12335
|
Signature.displayName = "NutSignature";
|
|
12364
12336
|
const defaultProps$L = {
|
|
12365
12337
|
...ComponentDefaults,
|
|
@@ -12407,7 +12379,6 @@ const Switch = (props) => {
|
|
|
12407
12379
|
/* @__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)))
|
|
12408
12380
|
);
|
|
12409
12381
|
};
|
|
12410
|
-
Switch.defaultProps = defaultProps$L;
|
|
12411
12382
|
Switch.displayName = "NutSwitch";
|
|
12412
12383
|
const defaultProps$K = {
|
|
12413
12384
|
...ComponentDefaults,
|
|
@@ -12517,7 +12488,6 @@ const TextArea = (props) => {
|
|
|
12517
12488
|
showCount && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-limit` }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)
|
|
12518
12489
|
);
|
|
12519
12490
|
};
|
|
12520
|
-
TextArea.defaultProps = defaultProps$K;
|
|
12521
12491
|
TextArea.displayName = "NutTextArea";
|
|
12522
12492
|
class UploadOptions {
|
|
12523
12493
|
constructor() {
|
|
@@ -12821,7 +12791,6 @@ const Progress = (props) => {
|
|
|
12821
12791
|
)))
|
|
12822
12792
|
);
|
|
12823
12793
|
};
|
|
12824
|
-
Progress.defaultProps = defaultProps$J;
|
|
12825
12794
|
Progress.displayName = "NutProgress";
|
|
12826
12795
|
const Preview = ({
|
|
12827
12796
|
fileList,
|
|
@@ -13138,7 +13107,7 @@ const InternalUploader = (props, ref) => {
|
|
|
13138
13107
|
});
|
|
13139
13108
|
};
|
|
13140
13109
|
const task = new UploaderTaro(uploadOption);
|
|
13141
|
-
if (
|
|
13110
|
+
if (autoUpload) {
|
|
13142
13111
|
task.uploadTaro(uploadFile, getEnv());
|
|
13143
13112
|
} else {
|
|
13144
13113
|
uploadQueue.push(
|
|
@@ -13190,8 +13159,8 @@ const InternalUploader = (props, ref) => {
|
|
|
13190
13159
|
});
|
|
13191
13160
|
};
|
|
13192
13161
|
const filterFiles = (files) => {
|
|
13193
|
-
const maximum =
|
|
13194
|
-
const maximize =
|
|
13162
|
+
const maximum = maxCount * 1;
|
|
13163
|
+
const maximize = maxFileSize * 1;
|
|
13195
13164
|
const oversizes = new Array();
|
|
13196
13165
|
const filterFile = files.filter((file) => {
|
|
13197
13166
|
if (file.size > maximize) {
|
|
@@ -13257,7 +13226,6 @@ const InternalUploader = (props, ref) => {
|
|
|
13257
13226
|
));
|
|
13258
13227
|
};
|
|
13259
13228
|
const Uploader = React__default.forwardRef(InternalUploader);
|
|
13260
|
-
Uploader.defaultProps = defaultProps$I;
|
|
13261
13229
|
Uploader.displayName = "NutUploader";
|
|
13262
13230
|
const defaultProps$H = {
|
|
13263
13231
|
...ComponentDefaults,
|
|
@@ -13330,7 +13298,6 @@ const ActionSheet = (props) => {
|
|
|
13330
13298
|
))
|
|
13331
13299
|
);
|
|
13332
13300
|
};
|
|
13333
|
-
ActionSheet.defaultProps = defaultProps$H;
|
|
13334
13301
|
ActionSheet.displayName = "NutActionSheet";
|
|
13335
13302
|
const Content = (props) => {
|
|
13336
13303
|
const {
|
|
@@ -13679,18 +13646,18 @@ const Drag = (props) => {
|
|
|
13679
13646
|
} else if (translateY.current > boundaryState.bottom) {
|
|
13680
13647
|
translateY.current = boundaryState.bottom;
|
|
13681
13648
|
}
|
|
13682
|
-
const transform = `translate3d(${
|
|
13649
|
+
const transform = `translate3d(${direction !== "y" ? translateX.current : 0}px, ${direction !== "x" ? translateY.current : 0}px, 0px)`;
|
|
13683
13650
|
setCurrStyle({ transform });
|
|
13684
13651
|
}
|
|
13685
13652
|
};
|
|
13686
13653
|
const touchEnd = (e2) => {
|
|
13687
|
-
if (
|
|
13654
|
+
if (direction !== "y" && attract && dragRef.current) {
|
|
13688
13655
|
if (translateX.current < middleLine.current) {
|
|
13689
13656
|
translateX.current = boundaryState.left;
|
|
13690
13657
|
} else {
|
|
13691
13658
|
translateX.current = boundaryState.right;
|
|
13692
13659
|
}
|
|
13693
|
-
const transform = `translate3d(${translateX.current}px, ${
|
|
13660
|
+
const transform = `translate3d(${translateX.current}px, ${direction !== "x" ? translateY.current : 0}px, 0px)`;
|
|
13694
13661
|
setCurrStyle({ transform });
|
|
13695
13662
|
}
|
|
13696
13663
|
};
|
|
@@ -13723,7 +13690,6 @@ const Drag = (props) => {
|
|
|
13723
13690
|
)
|
|
13724
13691
|
);
|
|
13725
13692
|
};
|
|
13726
|
-
Drag.defaultProps = defaultProps$F;
|
|
13727
13693
|
Drag.displayName = "NutDrag";
|
|
13728
13694
|
const defaultStatus = {
|
|
13729
13695
|
empty: "https://storage.360buyimg.com/imgtools/30186cfda0-0d3eee40-c0ac-11ee-9382-9125782aa3b8.png",
|
|
@@ -13798,7 +13764,6 @@ const Empty = (props) => {
|
|
|
13798
13764
|
);
|
|
13799
13765
|
})), children);
|
|
13800
13766
|
};
|
|
13801
|
-
Empty.defaultProps = defaultProps$E;
|
|
13802
13767
|
Empty.displayName = "NutEmpty";
|
|
13803
13768
|
const defaultProps$D = {
|
|
13804
13769
|
...ComponentDefaults,
|
|
@@ -13934,7 +13899,6 @@ const InfiniteLoading = (props) => {
|
|
|
13934
13899
|
/* @__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))
|
|
13935
13900
|
);
|
|
13936
13901
|
};
|
|
13937
|
-
InfiniteLoading.defaultProps = defaultProps$D;
|
|
13938
13902
|
InfiniteLoading.displayName = "NutInfiniteLoading";
|
|
13939
13903
|
const loadingMap = {
|
|
13940
13904
|
circular: D$5,
|
|
@@ -13967,7 +13931,6 @@ const Loading = (props) => {
|
|
|
13967
13931
|
children ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-text` }, children) : ""
|
|
13968
13932
|
);
|
|
13969
13933
|
};
|
|
13970
|
-
Loading.defaultProps = defaultProps$C;
|
|
13971
13934
|
Loading.displayName = "NutLoading";
|
|
13972
13935
|
const defaultProps$B = {
|
|
13973
13936
|
...ComponentDefaults,
|
|
@@ -14389,7 +14352,6 @@ const NoticeBar = (props) => {
|
|
|
14389
14352
|
)
|
|
14390
14353
|
) : null);
|
|
14391
14354
|
};
|
|
14392
|
-
NoticeBar.defaultProps = defaultProps$B;
|
|
14393
14355
|
NoticeBar.displayName = "NutNoticeBar";
|
|
14394
14356
|
const defaultProps$A = {
|
|
14395
14357
|
...ComponentDefaults,
|
|
@@ -14595,7 +14557,7 @@ const Popover = (props) => {
|
|
|
14595
14557
|
};
|
|
14596
14558
|
const clickAway = () => {
|
|
14597
14559
|
if (closeOnOutsideClick) {
|
|
14598
|
-
|
|
14560
|
+
onClick && onClick();
|
|
14599
14561
|
onClose && onClose();
|
|
14600
14562
|
}
|
|
14601
14563
|
};
|
|
@@ -14671,7 +14633,7 @@ const Popover = (props) => {
|
|
|
14671
14633
|
const direction = location.split("-")[0];
|
|
14672
14634
|
const skew = location.split("-")[1];
|
|
14673
14635
|
const base = 16;
|
|
14674
|
-
if (
|
|
14636
|
+
if (arrowOffset !== 0) {
|
|
14675
14637
|
const dir = rtl ? "right" : "left";
|
|
14676
14638
|
const dir2 = rtl ? "left" : "right";
|
|
14677
14639
|
if (["bottom", "top"].includes(direction)) {
|
|
@@ -14700,12 +14662,11 @@ const Popover = (props) => {
|
|
|
14700
14662
|
return styles;
|
|
14701
14663
|
};
|
|
14702
14664
|
const handleSelect = (item, index) => {
|
|
14703
|
-
var _a;
|
|
14704
14665
|
if (!item.disabled) {
|
|
14705
14666
|
onSelect == null ? void 0 : onSelect(item, index);
|
|
14706
14667
|
}
|
|
14707
14668
|
if (closeOnActionClick) {
|
|
14708
|
-
|
|
14669
|
+
onClick == null ? void 0 : onClick();
|
|
14709
14670
|
onClose == null ? void 0 : onClose();
|
|
14710
14671
|
}
|
|
14711
14672
|
};
|
|
@@ -14773,7 +14734,6 @@ const Popover = (props) => {
|
|
|
14773
14734
|
}
|
|
14774
14735
|
)));
|
|
14775
14736
|
};
|
|
14776
|
-
Popover.defaultProps = defaultProps$z;
|
|
14777
14737
|
Popover.displayName = "NutPopover";
|
|
14778
14738
|
function bound(position, min, max) {
|
|
14779
14739
|
let ret = position;
|
|
@@ -14965,7 +14925,6 @@ const AvatarGroup = (props) => {
|
|
|
14965
14925
|
};
|
|
14966
14926
|
return /* @__PURE__ */ React__default.createElement(AvatarContext.Provider, { value: parentAvatar }, /* @__PURE__ */ React__default.createElement("div", { className: cls, style, ref: avatarGroupRef }, children));
|
|
14967
14927
|
};
|
|
14968
|
-
AvatarGroup.defaultProps = defaultProps$x;
|
|
14969
14928
|
AvatarGroup.displayName = "NutAvatarGroup";
|
|
14970
14929
|
const defaultProps$w = {
|
|
14971
14930
|
...ComponentDefaults,
|
|
@@ -15054,8 +15013,8 @@ const Avatar = (props) => {
|
|
|
15054
15013
|
}
|
|
15055
15014
|
};
|
|
15056
15015
|
const errorEvent = () => {
|
|
15057
|
-
if (
|
|
15058
|
-
|
|
15016
|
+
if (onError) {
|
|
15017
|
+
onError();
|
|
15059
15018
|
}
|
|
15060
15019
|
};
|
|
15061
15020
|
const clickAvatar = (e2) => {
|
|
@@ -15085,7 +15044,6 @@ const Avatar = (props) => {
|
|
|
15085
15044
|
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)}`)
|
|
15086
15045
|
));
|
|
15087
15046
|
};
|
|
15088
|
-
Avatar.defaultProps = defaultProps$w;
|
|
15089
15047
|
Avatar.displayName = "NutAvatar";
|
|
15090
15048
|
Avatar.Group = AvatarGroup;
|
|
15091
15049
|
const defaultProps$v = {
|
|
@@ -15148,7 +15106,6 @@ const Skeleton = (props) => {
|
|
|
15148
15106
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-block`, key: index });
|
|
15149
15107
|
})))));
|
|
15150
15108
|
};
|
|
15151
|
-
Skeleton.defaultProps = defaultProps$v;
|
|
15152
15109
|
Skeleton.displayName = "NutSkeleton";
|
|
15153
15110
|
function preventDefault(event, isStopPropagation) {
|
|
15154
15111
|
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
@@ -15533,7 +15490,6 @@ const Animate = (props) => {
|
|
|
15533
15490
|
};
|
|
15534
15491
|
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-animate" }, /* @__PURE__ */ React__default.createElement("div", { className: cls, onClick: handleClick, ...rest }, children));
|
|
15535
15492
|
};
|
|
15536
|
-
Animate.defaultProps = defaultProps$s;
|
|
15537
15493
|
Animate.displayName = "NutAnimate";
|
|
15538
15494
|
const defaultProps$r = {
|
|
15539
15495
|
...ComponentDefaults,
|
|
@@ -15913,11 +15869,10 @@ const CircleProgress = (props) => {
|
|
|
15913
15869
|
return () => window.cancelAnimationFrame(animateIdRef.current);
|
|
15914
15870
|
}, [percent]);
|
|
15915
15871
|
const stop = () => {
|
|
15916
|
-
if (!isObject(
|
|
15872
|
+
if (!isObject(color)) {
|
|
15917
15873
|
return [];
|
|
15918
15874
|
}
|
|
15919
|
-
const
|
|
15920
|
-
const colorArr = Object.keys(color2).sort(
|
|
15875
|
+
const colorArr = Object.keys(color).sort(
|
|
15921
15876
|
(a2, b) => parseFloat(a2) - parseFloat(b)
|
|
15922
15877
|
);
|
|
15923
15878
|
const stopArr = [];
|
|
@@ -15927,7 +15882,7 @@ const CircleProgress = (props) => {
|
|
|
15927
15882
|
value: ""
|
|
15928
15883
|
};
|
|
15929
15884
|
obj.key = item;
|
|
15930
|
-
obj.value =
|
|
15885
|
+
obj.value = color[item];
|
|
15931
15886
|
stopArr.push(obj);
|
|
15932
15887
|
});
|
|
15933
15888
|
return stopArr;
|
|
@@ -15951,15 +15906,15 @@ const CircleProgress = (props) => {
|
|
|
15951
15906
|
const perimeter = 283;
|
|
15952
15907
|
const progress = +oldValue.current;
|
|
15953
15908
|
const offset = perimeter * Number(format2(parseFloat(progress.toFixed(1)))) / 100;
|
|
15954
|
-
const isWise =
|
|
15955
|
-
const
|
|
15909
|
+
const isWise = clockwise ? 1 : 0;
|
|
15910
|
+
const realColor = isObject(color) ? `url(%23${refRandomId})` : transColor(color);
|
|
15956
15911
|
const d = `M 50 50 m 0 -45 a 45 45 0 1 ${isWise} 0 90 a 45 45 0 1, ${isWise} 0 -90`;
|
|
15957
15912
|
const pa = `%3Cdefs%3E%3ClinearGradient id='${refRandomId}' x1='100%25' y1='0%25' x2='0%25' y2='0%25'%3E${stopDom}%3C/linearGradient%3E%3C/defs%3E`;
|
|
15958
15913
|
const path = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke='${transColor(
|
|
15959
|
-
|
|
15914
|
+
background
|
|
15960
15915
|
)}' fill='none'/%3E`;
|
|
15961
15916
|
const path1 = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke-dasharray='${offset},${perimeter}' stroke-linecap='round' stroke='${transColor(
|
|
15962
|
-
|
|
15917
|
+
realColor
|
|
15963
15918
|
)}' fill='none'/%3E`;
|
|
15964
15919
|
return {
|
|
15965
15920
|
background: `url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E${pa}${path}${path1}%3C/svg%3E")`,
|
|
@@ -15969,7 +15924,6 @@ const CircleProgress = (props) => {
|
|
|
15969
15924
|
};
|
|
15970
15925
|
return /* @__PURE__ */ React__default.createElement("div", { className: classes, style: styles, ...restProps }, /* @__PURE__ */ React__default.createElement("div", { style: circleStyle() }), /* @__PURE__ */ React__default.createElement("div", { className: "nut-circleprogress-text" }, children));
|
|
15971
15926
|
};
|
|
15972
|
-
CircleProgress.defaultProps = defaultProps$o;
|
|
15973
15927
|
CircleProgress.displayName = "NutCircleProgress";
|
|
15974
15928
|
const collapseContext = {
|
|
15975
15929
|
isOpen: (name) => {
|
|
@@ -16114,7 +16068,6 @@ const CollapseItem = (props) => {
|
|
|
16114
16068
|
)
|
|
16115
16069
|
));
|
|
16116
16070
|
};
|
|
16117
|
-
CollapseItem.defaultProps = defaultProps$n;
|
|
16118
16071
|
CollapseItem.displayName = "NutCollapseItem";
|
|
16119
16072
|
const defaultProps$m = {
|
|
16120
16073
|
...ComponentDefaults,
|
|
@@ -16192,7 +16145,6 @@ const Collapse = (props) => {
|
|
|
16192
16145
|
/* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), style }, children)
|
|
16193
16146
|
);
|
|
16194
16147
|
};
|
|
16195
|
-
Collapse.defaultProps = defaultProps$m;
|
|
16196
16148
|
Collapse.displayName = "NutCollapse";
|
|
16197
16149
|
Collapse.Item = CollapseItem;
|
|
16198
16150
|
const defaultProps$l = {
|
|
@@ -16433,7 +16385,6 @@ const InternalCountDown = (props, ref) => {
|
|
|
16433
16385
|
const CountDown = React__default.forwardRef(
|
|
16434
16386
|
InternalCountDown
|
|
16435
16387
|
);
|
|
16436
|
-
CountDown.defaultProps = defaultProps$l;
|
|
16437
16388
|
CountDown.displayName = "NutCountDown";
|
|
16438
16389
|
const defaultProps$k = {
|
|
16439
16390
|
...ComponentDefaults,
|
|
@@ -16756,7 +16707,6 @@ const Ellipsis = (props) => {
|
|
|
16756
16707
|
symbolText()
|
|
16757
16708
|
));
|
|
16758
16709
|
};
|
|
16759
|
-
Ellipsis.defaultProps = defaultProps$k;
|
|
16760
16710
|
Ellipsis.displayName = "NutEllipsis";
|
|
16761
16711
|
const defaultProps$j = {
|
|
16762
16712
|
total: 3,
|
|
@@ -16789,7 +16739,6 @@ const Indicator = (props) => {
|
|
|
16789
16739
|
};
|
|
16790
16740
|
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix$5, classes, className), ...rest }, renderElement());
|
|
16791
16741
|
};
|
|
16792
|
-
Indicator.defaultProps = defaultProps$j;
|
|
16793
16742
|
Indicator.displayName = "NutIndicator";
|
|
16794
16743
|
const defaultProps$i = {
|
|
16795
16744
|
direction: "horizontal",
|
|
@@ -16962,6 +16911,7 @@ const defaultProps$g = {
|
|
|
16962
16911
|
};
|
|
16963
16912
|
const ImagePreview = (props) => {
|
|
16964
16913
|
const {
|
|
16914
|
+
value,
|
|
16965
16915
|
className,
|
|
16966
16916
|
style,
|
|
16967
16917
|
images,
|
|
@@ -16975,17 +16925,17 @@ const ImagePreview = (props) => {
|
|
|
16975
16925
|
closeIcon,
|
|
16976
16926
|
closeIconPosition,
|
|
16977
16927
|
showMenuByLongpress,
|
|
16978
|
-
onClose
|
|
16979
|
-
|
|
16928
|
+
onClose,
|
|
16929
|
+
onChange
|
|
16930
|
+
} = { ...defaultProps$g, ...props };
|
|
16980
16931
|
const classPrefix2 = "nut-imagepreview";
|
|
16981
16932
|
const ref = useRef(null);
|
|
16982
16933
|
const [innerNo, setInnerNo] = usePropsValue({
|
|
16983
|
-
value
|
|
16934
|
+
value,
|
|
16984
16935
|
defaultValue,
|
|
16985
16936
|
finalValue: defaultValue,
|
|
16986
16937
|
onChange: (val) => {
|
|
16987
|
-
|
|
16988
|
-
(_a = props.onChange) == null ? void 0 : _a.call(props, val);
|
|
16938
|
+
onChange == null ? void 0 : onChange(val);
|
|
16989
16939
|
}
|
|
16990
16940
|
});
|
|
16991
16941
|
const [showPop, setShowPop] = useState(visible);
|
|
@@ -17096,9 +17046,8 @@ const ImagePreview = (props) => {
|
|
|
17096
17046
|
);
|
|
17097
17047
|
};
|
|
17098
17048
|
const slideChangeEnd = (page) => {
|
|
17099
|
-
var _a;
|
|
17100
17049
|
setActive(page + 1);
|
|
17101
|
-
|
|
17050
|
+
onChange == null ? void 0 : onChange(page + 1);
|
|
17102
17051
|
};
|
|
17103
17052
|
const onCloseInner = (e2) => {
|
|
17104
17053
|
e2.stopPropagation();
|
|
@@ -17201,7 +17150,6 @@ const ImagePreview = (props) => {
|
|
|
17201
17150
|
) : null
|
|
17202
17151
|
);
|
|
17203
17152
|
};
|
|
17204
|
-
ImagePreview.defaultProps = defaultProps$g;
|
|
17205
17153
|
ImagePreview.displayName = "NutImagePreview";
|
|
17206
17154
|
const defaultProps$f = {
|
|
17207
17155
|
...ComponentDefaults,
|
|
@@ -17313,7 +17261,6 @@ const Pagination = (props) => {
|
|
|
17313
17261
|
next || locale.pagination.next
|
|
17314
17262
|
)), 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))));
|
|
17315
17263
|
};
|
|
17316
|
-
Pagination.defaultProps = defaultProps$f;
|
|
17317
17264
|
Pagination.displayName = "NutPagination";
|
|
17318
17265
|
const defaultProps$e = {
|
|
17319
17266
|
...ComponentDefaults,
|
|
@@ -17415,7 +17362,6 @@ const Price = (props) => {
|
|
|
17415
17362
|
symbol && position === "after" ? renderSymbol() : null
|
|
17416
17363
|
);
|
|
17417
17364
|
};
|
|
17418
|
-
Price.defaultProps = defaultProps$e;
|
|
17419
17365
|
Price.displayName = "NutPrice";
|
|
17420
17366
|
const DataContext = createContext({});
|
|
17421
17367
|
const defaultProps$d = {
|
|
@@ -17461,7 +17407,6 @@ const Step = (props) => {
|
|
|
17461
17407
|
};
|
|
17462
17408
|
return /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps, onClick: handleClickStep }, /* @__PURE__ */ React__default.createElement(View, { className: "nut-step-head" }, /* @__PURE__ */ React__default.createElement(View, { className: "nut-step-line" }), /* @__PURE__ */ React__default.createElement(View, { className: renderIconClass() }, icon || !dot && /* @__PURE__ */ React__default.createElement("span", { className: "nut-step-inner" }, value))), (title || description) && /* @__PURE__ */ React__default.createElement(View, { 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)));
|
|
17463
17409
|
};
|
|
17464
|
-
Step.defaultProps = defaultProps$d;
|
|
17465
17410
|
Step.displayName = "NutStep";
|
|
17466
17411
|
const defaultProps$c = {
|
|
17467
17412
|
...ComponentDefaults,
|
|
@@ -17488,13 +17433,12 @@ const Steps = (props) => {
|
|
|
17488
17433
|
classPrefix2,
|
|
17489
17434
|
{
|
|
17490
17435
|
[`${classPrefix2}-${direction}`]: true,
|
|
17491
|
-
[`${classPrefix2}-dot`]: !!
|
|
17436
|
+
[`${classPrefix2}-dot`]: !!dot
|
|
17492
17437
|
},
|
|
17493
17438
|
className
|
|
17494
17439
|
);
|
|
17495
17440
|
return /* @__PURE__ */ React__default.createElement(DataContext.Provider, { value: parentSteps }, /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps }, children));
|
|
17496
17441
|
};
|
|
17497
|
-
Steps.defaultProps = defaultProps$c;
|
|
17498
17442
|
Steps.displayName = "NutSteps";
|
|
17499
17443
|
function useTableSticky(columns, rtl = false) {
|
|
17500
17444
|
const [isSticky, setIsSticky] = useState(false);
|
|
@@ -17635,7 +17579,7 @@ const Table = (props) => {
|
|
|
17635
17579
|
};
|
|
17636
17580
|
const cellClasses = (item) => {
|
|
17637
17581
|
return {
|
|
17638
|
-
[`${headerClassPrefix}-border`]:
|
|
17582
|
+
[`${headerClassPrefix}-border`]: bordered,
|
|
17639
17583
|
[`${headerClassPrefix}-align${item.align ? item.align : ""}`]: true
|
|
17640
17584
|
};
|
|
17641
17585
|
};
|
|
@@ -17721,7 +17665,6 @@ const Table = (props) => {
|
|
|
17721
17665
|
}
|
|
17722
17666
|
)) : null, (summary || innerValue.length === 0) && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-summary` }, summary || noData));
|
|
17723
17667
|
};
|
|
17724
|
-
Table.defaultProps = defaultProps$b;
|
|
17725
17668
|
Table.displayName = "NutTable";
|
|
17726
17669
|
const defaultProps$a = {
|
|
17727
17670
|
...ComponentDefaults,
|
|
@@ -17823,7 +17766,6 @@ const Tag = (props) => {
|
|
|
17823
17766
|
children && /* @__PURE__ */ React__default.createElement("span", { className: `${classPrefix2}-text` }, children)
|
|
17824
17767
|
));
|
|
17825
17768
|
};
|
|
17826
|
-
Tag.defaultProps = defaultProps$a;
|
|
17827
17769
|
Tag.displayName = "NutTag";
|
|
17828
17770
|
const getTaroRectById = (id) => {
|
|
17829
17771
|
return new Promise((resolve, reject) => {
|
|
@@ -18021,7 +17963,6 @@ const Tour = (props) => {
|
|
|
18021
17963
|
)));
|
|
18022
17964
|
}));
|
|
18023
17965
|
};
|
|
18024
|
-
Tour.defaultProps = defaultProps$9;
|
|
18025
17966
|
Tour.displayName = "NutTour";
|
|
18026
17967
|
const defaultProps$8 = {
|
|
18027
17968
|
source: {
|
|
@@ -18072,7 +18013,6 @@ const Video = (props) => {
|
|
|
18072
18013
|
}
|
|
18073
18014
|
));
|
|
18074
18015
|
};
|
|
18075
|
-
Video.defaultProps = defaultProps$8;
|
|
18076
18016
|
Video.displayName = "NutVideo";
|
|
18077
18017
|
const initPositinoCache = (reaItemSize, length = 0) => {
|
|
18078
18018
|
let index = 0;
|
|
@@ -18281,7 +18221,6 @@ const VirtualList = (props) => {
|
|
|
18281
18221
|
)
|
|
18282
18222
|
);
|
|
18283
18223
|
};
|
|
18284
|
-
VirtualList.defaultProps = defaultProps$7;
|
|
18285
18224
|
VirtualList.displayName = "NutVirtualList";
|
|
18286
18225
|
const defaultProps$6 = {
|
|
18287
18226
|
...ComponentDefaults,
|
|
@@ -18403,7 +18342,6 @@ const InternalBarrage = (props, ref) => {
|
|
|
18403
18342
|
const Barrage = React__default.forwardRef(
|
|
18404
18343
|
InternalBarrage
|
|
18405
18344
|
);
|
|
18406
|
-
Barrage.defaultProps = defaultProps$6;
|
|
18407
18345
|
Barrage.displayName = "NutBarrage";
|
|
18408
18346
|
const defaultProps$5 = {
|
|
18409
18347
|
...ComponentDefaults,
|
|
@@ -18449,7 +18387,6 @@ const Card = (props) => {
|
|
|
18449
18387
|
}
|
|
18450
18388
|
)), /* @__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)));
|
|
18451
18389
|
};
|
|
18452
|
-
Card.defaultProps = defaultProps$5;
|
|
18453
18390
|
Card.displayName = "NutCard";
|
|
18454
18391
|
const defaultProps$4 = {
|
|
18455
18392
|
...ComponentDefaults,
|
|
@@ -18504,7 +18441,6 @@ const TimeDetail = (props) => {
|
|
|
18504
18441
|
item[optionKey.textKey]
|
|
18505
18442
|
)));
|
|
18506
18443
|
};
|
|
18507
|
-
TimeDetail.defaultProps = defaultProps$4;
|
|
18508
18444
|
TimeDetail.displayName = "NutTimeDetail";
|
|
18509
18445
|
const defaultProps$3 = {
|
|
18510
18446
|
...ComponentDefaults,
|
|
@@ -18642,7 +18578,6 @@ const TimeSelect = (props) => {
|
|
|
18642
18578
|
)))
|
|
18643
18579
|
);
|
|
18644
18580
|
};
|
|
18645
|
-
TimeSelect.defaultProps = defaultProps$3;
|
|
18646
18581
|
TimeSelect.displayName = "NutTimeSelect";
|
|
18647
18582
|
const defaultProps$2 = {
|
|
18648
18583
|
...ComponentDefaults,
|
|
@@ -18723,7 +18658,6 @@ const TrendArrow = (props) => {
|
|
|
18723
18658
|
};
|
|
18724
18659
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2} ${className}`, style, ...rest }, !left2 && renderContent(!left2), 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(c, { color: calcIconProps.color })) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, dropIcon || /* @__PURE__ */ React__default.createElement(e, { color: calcIconProps.color }))), left2 && renderContent(!left2));
|
|
18725
18660
|
};
|
|
18726
|
-
TrendArrow.defaultProps = defaultProps$2;
|
|
18727
18661
|
TrendArrow.displayName = "NutTrendArrow";
|
|
18728
18662
|
const defaultProps$1 = {
|
|
18729
18663
|
...ComponentDefaults,
|
|
@@ -18854,7 +18788,6 @@ const WaterMark = (props) => {
|
|
|
18854
18788
|
}
|
|
18855
18789
|
);
|
|
18856
18790
|
};
|
|
18857
|
-
WaterMark.defaultProps = defaultProps$1;
|
|
18858
18791
|
WaterMark.displayName = "NutWaterMark";
|
|
18859
18792
|
const defaultProps = {
|
|
18860
18793
|
...ComponentDefaults,
|
|
@@ -19389,7 +19322,6 @@ const AvatarCropper = (props) => {
|
|
|
19389
19322
|
};
|
|
19390
19323
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: cls, ...rest, style }, children, /* @__PURE__ */ React__default.createElement("div", { className: "nut-avatar-cropper-edit-text", onClick: chooseImage2 }, editText)), CropperPopup());
|
|
19391
19324
|
};
|
|
19392
|
-
AvatarCropper.defaultProps = defaultProps;
|
|
19393
19325
|
AvatarCropper.displayName = "NutAvatarCropper";
|
|
19394
19326
|
export {
|
|
19395
19327
|
ActionSheet,
|