@nutui/nutui-react-taro 2.6.4 → 2.6.6
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 +25 -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/style/style.css +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 +1 -2
- package/dist/esm/FormItem.js +1 -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/style/style.css +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/{formitem.taro-Y-hHJ2oh.js → formitem.taro-CAib1i9_.js} +4 -0
- package/dist/esm/{imagepreview.taro-BqFhQUnY.js → imagepreview.taro-CBT7aS3-.js} +6 -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-CLMPZ7Wg.js} +10 -15
- 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 +64 -64
- 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 +152 -212
- package/dist/nutui.react.umd.js +152 -212
- 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/styles/variables.scss +1 -1
- package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +5 -1
- package/dist/types/packages/input/input.d.ts +1 -1
- package/dist/types/packages/input/input.taro.d.ts +1 -1
- package/package.json +1 -1
package/dist/esm/Uploader.js
CHANGED
package/dist/esm/Video.js
CHANGED
package/dist/esm/VirtualList.js
CHANGED
package/dist/esm/WaterMark.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { P as Popup } from "./popup.taro-
|
|
3
|
+
import { P as Popup } from "./popup.taro-cT6cbAxw.js";
|
|
4
4
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
5
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, description: "", options: [], optionKey: { name: "name", description: "description" }, cancelText: "", onCancel: () => {
|
|
6
6
|
}, onSelect: () => {
|
|
@@ -36,7 +36,6 @@ const ActionSheet = (props) => {
|
|
|
36
36
|
)
|
|
37
37
|
);
|
|
38
38
|
};
|
|
39
|
-
ActionSheet.defaultProps = defaultProps;
|
|
40
39
|
ActionSheet.displayName = "NutActionSheet";
|
|
41
40
|
export {
|
|
42
41
|
ActionSheet as A
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
2
2
|
import React__default, { forwardRef, useState, useImperativeHandle } from "react";
|
|
3
3
|
import { Check, Location, ArrowLeft } from "@nutui/icons-react-taro";
|
|
4
|
-
import { P as Popup } from "./popup.taro-
|
|
4
|
+
import { P as Popup } from "./popup.taro-cT6cbAxw.js";
|
|
5
5
|
import { ScrollView } from "@tarojs/components";
|
|
6
6
|
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
7
|
-
import { C as Cascader } from "./cascader.taro-
|
|
7
|
+
import { C as Cascader } from "./cascader.taro-CZkUgupN.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
9
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
10
10
|
const defaultProps$2 = {
|
|
@@ -129,7 +129,6 @@ const InternalAddress = (props, ref) => {
|
|
|
129
129
|
));
|
|
130
130
|
};
|
|
131
131
|
const Address = forwardRef(InternalAddress);
|
|
132
|
-
Address.defaultProps = defaultProps;
|
|
133
132
|
Address.displayName = "NutAddress";
|
|
134
133
|
export {
|
|
135
134
|
Address as A
|
|
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
3
|
import { createInnerAudioContext } from "@tarojs/taro";
|
|
4
4
|
import { Service } from "@nutui/icons-react-taro";
|
|
5
|
-
import { R as Range } from "./range.taro-
|
|
5
|
+
import { R as Range } from "./range.taro-BeVCaZ4r.js";
|
|
6
6
|
import { B as Button } from "./button.taro-CjH840d8.js";
|
|
7
7
|
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
@@ -4,7 +4,7 @@ import Taro, { getEnv } from "@tarojs/taro";
|
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { User } from "@nutui/icons-react-taro";
|
|
6
6
|
import { I as Image } from "./image.taro-ESa7sdbM.js";
|
|
7
|
-
import { a as AvatarContext, A as AvatarGroup } from "./avatargroup.taro-
|
|
7
|
+
import { a as AvatarContext, A as AvatarGroup } from "./avatargroup.taro-ScakjsY1.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
9
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { size: "", shape: "round", icon: "", fit: "cover", background: "#eee", color: "#666", src: "", alt: "" });
|
|
10
10
|
const classPrefix = `nut-avatar`;
|
|
@@ -57,8 +57,8 @@ const Avatar = (props) => {
|
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
const errorEvent = () => {
|
|
60
|
-
if (
|
|
61
|
-
|
|
60
|
+
if (onError) {
|
|
61
|
+
onError();
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
const clickAvatar = (e) => {
|
|
@@ -78,7 +78,6 @@ const Avatar = (props) => {
|
|
|
78
78
|
showMax && React__default.createElement("div", { className: "text" }, ((_m = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _m === void 0 ? void 0 : _m.maxContent) ? (_o = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _o === void 0 ? void 0 : _o.maxContent : `+ ${avatarIndex - Number(((_p = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _p === void 0 ? void 0 : _p.max) || 0)}`)
|
|
79
79
|
));
|
|
80
80
|
};
|
|
81
|
-
Avatar.defaultProps = defaultProps;
|
|
82
81
|
Avatar.displayName = "NutAvatar";
|
|
83
82
|
Avatar.Group = AvatarGroup;
|
|
84
83
|
export {
|
|
@@ -19,7 +19,6 @@ const AvatarGroup = (props) => {
|
|
|
19
19
|
React__default.createElement("div", { className: cls, style, ref: avatarGroupRef }, children)
|
|
20
20
|
);
|
|
21
21
|
};
|
|
22
|
-
AvatarGroup.defaultProps = defaultProps;
|
|
23
22
|
AvatarGroup.displayName = "NutAvatarGroup";
|
|
24
23
|
export {
|
|
25
24
|
AvatarGroup as A,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { useRef } from "react";
|
|
2
|
-
import { P as Popup } from "./popup.taro-
|
|
3
|
-
import { C as CalendarItem } from "./calendaritem.taro-
|
|
2
|
+
import { P as Popup } from "./popup.taro-cT6cbAxw.js";
|
|
3
|
+
import { C as CalendarItem } from "./calendaritem.taro-DuEKmnsT.js";
|
|
4
4
|
import { U as Utils } from "./date-D0pth0qC.js";
|
|
5
5
|
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
@@ -41,7 +41,6 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
41
41
|
};
|
|
42
42
|
return React__default.createElement(React__default.Fragment, null, popup ? React__default.createElement(Popup, { className: "nut-calendar-popup", visible, position: "bottom", round: true, closeable: true, destroyOnClose: true, onOverlayClick: closePopup, onCloseIconClick: closePopup, style: { height: "83%" } }, renderItem()) : renderItem());
|
|
43
43
|
});
|
|
44
|
-
Calendar.defaultProps = defaultProps;
|
|
45
44
|
Calendar.displayName = "NutCalendar";
|
|
46
45
|
export {
|
|
47
46
|
Calendar as C
|
|
@@ -42,7 +42,7 @@ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type:
|
|
|
42
42
|
} });
|
|
43
43
|
const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
44
44
|
const { locale } = useConfig();
|
|
45
|
-
const { style, className, children, popup, type, autoBackfill, title, defaultValue, startDate, endDate, showToday, startText, endText, confirmText, showTitle, showSubTitle, scrollAnimation, firstDayOfWeek, disableDate, renderHeaderButtons, renderDay, renderDayTop, renderDayBottom, onConfirm, onUpdate, onDayClick, onPageChange } = Object.assign(Object.assign({}, defaultProps), props);
|
|
45
|
+
const { style, className, children, popup, type, autoBackfill, title, defaultValue, startDate, endDate, showToday, startText, endText, confirmText, showTitle, showSubTitle, scrollAnimation, firstDayOfWeek, disableDate, renderHeaderButtons, renderDay, renderDayTop, renderDayBottom, value, onConfirm, onUpdate, onDayClick, onPageChange } = Object.assign(Object.assign({}, defaultProps), props);
|
|
46
46
|
const weekdays = locale.calendaritem.weekdays;
|
|
47
47
|
const weeks = [
|
|
48
48
|
...weekdays.slice(firstDayOfWeek, 7),
|
|
@@ -76,7 +76,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
76
76
|
return void 0;
|
|
77
77
|
};
|
|
78
78
|
const [currentDate, setCurrentDate] = usePropsValue({
|
|
79
|
-
value
|
|
79
|
+
value,
|
|
80
80
|
defaultValue: resetDefaultValue(),
|
|
81
81
|
finalValue: [],
|
|
82
82
|
onChange: (val) => {
|
|
@@ -265,7 +265,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
265
265
|
if (type === "range") {
|
|
266
266
|
chooseDay({ day: defaultData[2], type: "active" }, monthsData[current.current], true);
|
|
267
267
|
chooseDay({ day: defaultData[5], type: "active" }, monthsData[current.lastCurrent], true);
|
|
268
|
-
} else if (
|
|
268
|
+
} else if (type === "week") {
|
|
269
269
|
chooseDay({ day: defaultData[2], type: "curr" }, monthsData[current.current], true);
|
|
270
270
|
} else if (type === "multiple") {
|
|
271
271
|
[...currentDate].forEach((item) => {
|
|
@@ -567,7 +567,6 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
567
567
|
)
|
|
568
568
|
);
|
|
569
569
|
});
|
|
570
|
-
CalendarItem.defaultProps = defaultProps;
|
|
571
570
|
CalendarItem.displayName = "NutCalendarItem";
|
|
572
571
|
export {
|
|
573
572
|
CalendarItem as C
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { P as Price } from "./price.taro-
|
|
5
|
-
import { T as Tag } from "./tag.taro-
|
|
4
|
+
import { P as Price } from "./price.taro-DdR5NSIA.js";
|
|
5
|
+
import { T as Tag } from "./tag.taro-CFt28RLm.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { src: "", title: "", price: "", vipPrice: "", shopDescription: "", delivery: "", shopName: "", description: "", tag: "", priceTag: "", extra: "" });
|
|
8
8
|
const Card = (props) => {
|
|
@@ -42,7 +42,6 @@ const Card = (props) => {
|
|
|
42
42
|
)
|
|
43
43
|
);
|
|
44
44
|
};
|
|
45
|
-
Card.defaultProps = defaultProps;
|
|
46
45
|
Card.displayName = "NutCard";
|
|
47
46
|
export {
|
|
48
47
|
Card as C
|
|
@@ -3,7 +3,7 @@ import React__default, { useState, useImperativeHandle, useEffect, isValidElemen
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { Loading, Checklist } from "@nutui/icons-react-taro";
|
|
5
5
|
import { ScrollView } from "@tarojs/components";
|
|
6
|
-
import { P as Popup } from "./popup.taro-
|
|
6
|
+
import { P as Popup } from "./popup.taro-cT6cbAxw.js";
|
|
7
7
|
import { T as Tabs } from "./tabs.taro-gcyv8qGG.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
9
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
@@ -125,7 +125,7 @@ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { activ
|
|
|
125
125
|
}, onPathChange: () => {
|
|
126
126
|
} });
|
|
127
127
|
const InternalCascader = (props, ref) => {
|
|
128
|
-
const { className, style, activeColor, activeIcon, popup, popupProps = {}, visible, options, value, defaultValue, optionKey, format, closeable, closeIconPosition, closeIcon, lazy, onLoad, onClose, onChange, onPathChange } = Object.assign(Object.assign({}, defaultProps), props);
|
|
128
|
+
const { className, style, activeColor, activeIcon, popup, popupProps = {}, visible, options, value, defaultValue, optionKey, format, closeable, closeIconPosition, closeIcon, lazy, title, left, onLoad, onClose, onChange, onPathChange } = Object.assign(Object.assign({}, defaultProps), props);
|
|
129
129
|
const [tabvalue, setTabvalue] = useState("c1");
|
|
130
130
|
const [optionsData, setOptionsData] = useState([]);
|
|
131
131
|
const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
|
|
@@ -135,7 +135,7 @@ const InternalCascader = (props, ref) => {
|
|
|
135
135
|
finalValue: defaultValue
|
|
136
136
|
});
|
|
137
137
|
const [innerVisible, setInnerVisible] = usePropsValue({
|
|
138
|
-
value:
|
|
138
|
+
value: visible,
|
|
139
139
|
defaultValue: void 0,
|
|
140
140
|
finalValue: false
|
|
141
141
|
});
|
|
@@ -405,15 +405,14 @@ const InternalCascader = (props, ref) => {
|
|
|
405
405
|
closeIcon,
|
|
406
406
|
closeable,
|
|
407
407
|
closeIconPosition,
|
|
408
|
-
title: popup &&
|
|
409
|
-
left
|
|
408
|
+
title: popup && title,
|
|
409
|
+
left,
|
|
410
410
|
// todo 只关闭,不处理逻辑。和popup的逻辑不一致。关闭时需要增加是否要处理回调
|
|
411
411
|
onOverlayClick: closePopup,
|
|
412
412
|
onCloseIconClick: closePopup
|
|
413
413
|
}), renderTabs()) : renderTabs());
|
|
414
414
|
};
|
|
415
415
|
const Cascader = React__default.forwardRef(InternalCascader);
|
|
416
|
-
Cascader.defaultProps = defaultProps;
|
|
417
416
|
Cascader.displayName = "NutCascader";
|
|
418
417
|
export {
|
|
419
418
|
Cascader as C
|
|
@@ -100,8 +100,8 @@ const Checkbox = (props) => {
|
|
|
100
100
|
let { labelPosition } = others, rest = __rest(others, ["labelPosition"]);
|
|
101
101
|
const ctx = useContext(Context);
|
|
102
102
|
let [innerChecked, setChecked] = usePropsValue({
|
|
103
|
-
value:
|
|
104
|
-
defaultValue:
|
|
103
|
+
value: checked,
|
|
104
|
+
defaultValue: defaultChecked,
|
|
105
105
|
finalValue: defaultChecked,
|
|
106
106
|
onChange
|
|
107
107
|
});
|
|
@@ -213,7 +213,6 @@ const Checkbox = (props) => {
|
|
|
213
213
|
[`${classPrefix}-reverse`]: labelPosition === "left"
|
|
214
214
|
}, className) }, rest, { onClick: handleClick }), renderCheckboxItem());
|
|
215
215
|
};
|
|
216
|
-
Checkbox.defaultProps = defaultProps;
|
|
217
216
|
Checkbox.displayName = "NutCheckBox";
|
|
218
217
|
Checkbox.Group = CheckboxGroup;
|
|
219
218
|
export {
|
|
@@ -35,11 +35,10 @@ const CircleProgress = (props) => {
|
|
|
35
35
|
return () => window.cancelAnimationFrame(animateIdRef.current);
|
|
36
36
|
}, [percent]);
|
|
37
37
|
const stop = () => {
|
|
38
|
-
if (!isObject(
|
|
38
|
+
if (!isObject(color)) {
|
|
39
39
|
return [];
|
|
40
40
|
}
|
|
41
|
-
const
|
|
42
|
-
const colorArr = Object.keys(color2).sort((a, b) => parseFloat(a) - parseFloat(b));
|
|
41
|
+
const colorArr = Object.keys(color).sort((a, b) => parseFloat(a) - parseFloat(b));
|
|
43
42
|
const stopArr = [];
|
|
44
43
|
colorArr.forEach((item) => {
|
|
45
44
|
const obj = {
|
|
@@ -47,7 +46,7 @@ const CircleProgress = (props) => {
|
|
|
47
46
|
value: ""
|
|
48
47
|
};
|
|
49
48
|
obj.key = item;
|
|
50
|
-
obj.value =
|
|
49
|
+
obj.value = color[item];
|
|
51
50
|
stopArr.push(obj);
|
|
52
51
|
});
|
|
53
52
|
return stopArr;
|
|
@@ -69,12 +68,12 @@ const CircleProgress = (props) => {
|
|
|
69
68
|
const perimeter = 283;
|
|
70
69
|
const progress = +oldValue.current;
|
|
71
70
|
const offset = perimeter * Number(format(parseFloat(progress.toFixed(1)))) / 100;
|
|
72
|
-
const isWise =
|
|
73
|
-
const
|
|
71
|
+
const isWise = clockwise ? 1 : 0;
|
|
72
|
+
const realColor = isObject(color) ? `url(%23${refRandomId})` : transColor(color);
|
|
74
73
|
const d = `M 50 50 m 0 -45 a 45 45 0 1 ${isWise} 0 90 a 45 45 0 1, ${isWise} 0 -90`;
|
|
75
74
|
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`;
|
|
76
|
-
const path = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke='${transColor(
|
|
77
|
-
const path1 = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke-dasharray='${offset},${perimeter}' stroke-linecap='round' stroke='${transColor(
|
|
75
|
+
const path = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke='${transColor(background)}' fill='none'/%3E`;
|
|
76
|
+
const path1 = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke-dasharray='${offset},${perimeter}' stroke-linecap='round' stroke='${transColor(realColor)}' fill='none'/%3E`;
|
|
78
77
|
return {
|
|
79
78
|
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")`,
|
|
80
79
|
width: "100%",
|
|
@@ -88,7 +87,6 @@ const CircleProgress = (props) => {
|
|
|
88
87
|
React__default.createElement("div", { className: "nut-circleprogress-text" }, children)
|
|
89
88
|
);
|
|
90
89
|
};
|
|
91
|
-
CircleProgress.defaultProps = defaultProps;
|
|
92
90
|
CircleProgress.displayName = "NutCircleProgress";
|
|
93
91
|
export {
|
|
94
92
|
CircleProgress as C
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useCallback } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
4
|
-
import { a as CollapseContext, C as CollapseItem } from "./collapseitem.taro-
|
|
4
|
+
import { a as CollapseContext, C as CollapseItem } from "./collapseitem.taro-BY06WWvK.js";
|
|
5
5
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
6
6
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { defaultActiveName: [], accordion: false, expandIcon: null, rotate: 180 });
|
|
7
7
|
const Collapse = (props) => {
|
|
@@ -55,7 +55,6 @@ const Collapse = (props) => {
|
|
|
55
55
|
React__default.createElement("div", { className: classNames(classPrefix, className), style }, children)
|
|
56
56
|
);
|
|
57
57
|
};
|
|
58
|
-
Collapse.defaultProps = defaultProps;
|
|
59
58
|
Collapse.displayName = "NutCollapse";
|
|
60
59
|
Collapse.Item = CollapseItem;
|
|
61
60
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
2
2
|
import React__default, { useState, useEffect } from "react";
|
|
3
3
|
import { View } from "@tarojs/components";
|
|
4
|
-
import { P as Picker } from "./picker.taro-
|
|
4
|
+
import { P as Picker } from "./picker.taro-CHsDIw4C.js";
|
|
5
5
|
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
6
6
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
@@ -60,18 +60,18 @@ const Drag = (props) => {
|
|
|
60
60
|
} else if (translateY.current > boundaryState.bottom) {
|
|
61
61
|
translateY.current = boundaryState.bottom;
|
|
62
62
|
}
|
|
63
|
-
const transform = `translate3d(${
|
|
63
|
+
const transform = `translate3d(${direction !== "y" ? translateX.current : 0}px, ${direction !== "x" ? translateY.current : 0}px, 0px)`;
|
|
64
64
|
setCurrStyle({ transform });
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
const touchEnd = (e) => {
|
|
68
|
-
if (
|
|
68
|
+
if (direction !== "y" && attract && dragRef.current) {
|
|
69
69
|
if (translateX.current < middleLine.current) {
|
|
70
70
|
translateX.current = boundaryState.left;
|
|
71
71
|
} else {
|
|
72
72
|
translateX.current = boundaryState.right;
|
|
73
73
|
}
|
|
74
|
-
const transform = `translate3d(${translateX.current}px, ${
|
|
74
|
+
const transform = `translate3d(${translateX.current}px, ${direction !== "x" ? translateY.current : 0}px, 0px)`;
|
|
75
75
|
setCurrStyle({ transform });
|
|
76
76
|
}
|
|
77
77
|
};
|
|
@@ -96,7 +96,6 @@ const Drag = (props) => {
|
|
|
96
96
|
}, children)
|
|
97
97
|
);
|
|
98
98
|
};
|
|
99
|
-
Drag.defaultProps = defaultProps;
|
|
100
99
|
Drag.displayName = "NutDrag";
|
|
101
100
|
export {
|
|
102
101
|
Drag as D
|
|
@@ -245,7 +245,6 @@ const Ellipsis = (props) => {
|
|
|
245
245
|
React__default.createElement(View, { className: "nut-ellipsis-copy", ref: symbolContain, id: `symbolContain${refRandomId.current}`, style: { display: "inline" } }, symbolText())
|
|
246
246
|
);
|
|
247
247
|
};
|
|
248
|
-
Ellipsis.defaultProps = defaultProps;
|
|
249
248
|
Ellipsis.displayName = "NutEllipsis";
|
|
250
249
|
export {
|
|
251
250
|
Ellipsis as E
|
|
@@ -296,6 +296,10 @@ class FormItem extends React__default.Component {
|
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
298
|
componentDidMount() {
|
|
299
|
+
const { store = {}, setInitialValues } = this.context.getInternal(SECRET);
|
|
300
|
+
if (this.props.initialValue && this.props.name && !Object.keys(store).includes(this.props.name)) {
|
|
301
|
+
setInitialValues(Object.assign(Object.assign({}, store), { [this.props.name]: this.props.initialValue }), true);
|
|
302
|
+
}
|
|
299
303
|
const { registerField, registerUpdate } = this.context.getInternal(SECRET);
|
|
300
304
|
this.cancelRegister = registerField(this);
|
|
301
305
|
this.eventOff = registerUpdate(this, this.props.shouldUpdate);
|
|
@@ -3,7 +3,7 @@ import Taro from "@tarojs/taro";
|
|
|
3
3
|
import { Video } from "@tarojs/components";
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { Close } from "@nutui/icons-react-taro";
|
|
6
|
-
import { P as Popup } from "./popup.taro-
|
|
6
|
+
import { P as Popup } from "./popup.taro-cT6cbAxw.js";
|
|
7
7
|
import { I as Image } from "./image.taro-ESa7sdbM.js";
|
|
8
8
|
import InnerSwiper from "./Swiper.js";
|
|
9
9
|
import { S as SwiperItem } from "./swiperitem.taro-8JXI24f0.js";
|
|
@@ -13,16 +13,15 @@ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { image
|
|
|
13
13
|
}, onClose: () => {
|
|
14
14
|
} });
|
|
15
15
|
const ImagePreview = (props) => {
|
|
16
|
-
const { className, style, images, videos, visible, defaultValue, indicatorColor, indicator, autoPlay, closeOnContentClick, closeIcon, closeIconPosition, showMenuByLongpress, onClose } = props;
|
|
16
|
+
const { value, className, style, images, videos, visible, defaultValue, indicatorColor, indicator, autoPlay, closeOnContentClick, closeIcon, closeIconPosition, showMenuByLongpress, onClose, onChange } = Object.assign(Object.assign({}, defaultProps), props);
|
|
17
17
|
const classPrefix = "nut-imagepreview";
|
|
18
18
|
const ref = useRef(null);
|
|
19
19
|
const [innerNo, setInnerNo] = usePropsValue({
|
|
20
|
-
value
|
|
20
|
+
value,
|
|
21
21
|
defaultValue,
|
|
22
22
|
finalValue: defaultValue,
|
|
23
23
|
onChange: (val) => {
|
|
24
|
-
|
|
25
|
-
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, val);
|
|
24
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(val);
|
|
26
25
|
}
|
|
27
26
|
});
|
|
28
27
|
const [showPop, setShowPop] = useState(visible);
|
|
@@ -122,9 +121,8 @@ const ImagePreview = (props) => {
|
|
|
122
121
|
return Math.hypot(Math.abs(second.x - first.x), Math.abs(second.y - first.y));
|
|
123
122
|
};
|
|
124
123
|
const slideChangeEnd = (page) => {
|
|
125
|
-
var _a;
|
|
126
124
|
setActive(page + 1);
|
|
127
|
-
|
|
125
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(page + 1);
|
|
128
126
|
};
|
|
129
127
|
const onCloseInner = (e) => {
|
|
130
128
|
e.stopPropagation();
|
|
@@ -135,6 +133,7 @@ const ImagePreview = (props) => {
|
|
|
135
133
|
setStore(Object.assign(Object.assign({}, store), { scale: 1 }));
|
|
136
134
|
};
|
|
137
135
|
const closeOnImg = (e) => {
|
|
136
|
+
e.stopPropagation();
|
|
138
137
|
if (closeOnContentClick) {
|
|
139
138
|
onCloseInner(e);
|
|
140
139
|
}
|
|
@@ -170,7 +169,6 @@ const ImagePreview = (props) => {
|
|
|
170
169
|
closeIcon !== false ? React__default.createElement("div", { className: `${classPrefix}-close ${closeIconPosition}`, onClick: onCloseInner }, closeIcon === true ? React__default.createElement(Close, null) : closeIcon) : null
|
|
171
170
|
);
|
|
172
171
|
};
|
|
173
|
-
ImagePreview.defaultProps = defaultProps;
|
|
174
172
|
ImagePreview.displayName = "NutImagePreview";
|
|
175
173
|
export {
|
|
176
174
|
ImagePreview as I
|
|
@@ -21,7 +21,6 @@ const Indicator = (props) => {
|
|
|
21
21
|
};
|
|
22
22
|
return React__default.createElement("div", Object.assign({ className: classNames(classPrefix, classes, className) }, rest), renderElement());
|
|
23
23
|
};
|
|
24
|
-
Indicator.defaultProps = defaultProps;
|
|
25
24
|
Indicator.displayName = "NutIndicator";
|
|
26
25
|
export {
|
|
27
26
|
Indicator as I
|
|
@@ -109,7 +109,6 @@ const InfiniteLoading = (props) => {
|
|
|
109
109
|
React__default.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? React__default.createElement("div", { className: "nut-infinite-bottom-tips" }, loadingText || locale.infiniteloading.loadText) : !hasMore && React__default.createElement("div", { className: "nut-infinite-bottom-tips" }, loadMoreText || locale.infiniteloading.loadMoreText))
|
|
110
110
|
);
|
|
111
111
|
};
|
|
112
|
-
InfiniteLoading.defaultProps = defaultProps;
|
|
113
112
|
InfiniteLoading.displayName = "NutInfiniteLoading";
|
|
114
113
|
export {
|
|
115
114
|
InfiniteLoading as I
|
|
@@ -30,14 +30,14 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
30
30
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
31
31
|
return value.replace(regExp, "");
|
|
32
32
|
}
|
|
33
|
-
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type: "text", name: "", placeholder:
|
|
33
|
+
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type: "text", name: "", placeholder: void 0, confirmType: "done", align: "left", required: false, disabled: false, readOnly: false, maxLength: 9999, clearable: false, clearIcon: null, formatTrigger: "onChange", autoFocus: false });
|
|
34
34
|
const Input = forwardRef((props, ref) => {
|
|
35
35
|
const rtl = useRtl();
|
|
36
36
|
const { locale } = useConfig();
|
|
37
37
|
const _a = Object.assign(Object.assign({}, defaultProps), props), { type, name, placeholder, align, disabled, readOnly, maxLength, clearable, clearIcon, formatTrigger, autoFocus, style, className, onChange, onFocus, onBlur, onClear, formatter, onClick, confirmType, defaultValue, value: _value } = _a, rest = __rest(_a, ["type", "name", "placeholder", "align", "disabled", "readOnly", "maxLength", "clearable", "clearIcon", "formatTrigger", "autoFocus", "style", "className", "onChange", "onFocus", "onBlur", "onClear", "formatter", "onClick", "confirmType", "defaultValue", "value"]);
|
|
38
38
|
const [value, setValue] = usePropsValue({
|
|
39
|
-
value:
|
|
40
|
-
defaultValue
|
|
39
|
+
value: _value,
|
|
40
|
+
defaultValue,
|
|
41
41
|
finalValue: "",
|
|
42
42
|
onChange
|
|
43
43
|
});
|
|
@@ -101,16 +101,11 @@ const Input = forwardRef((props, ref) => {
|
|
|
101
101
|
updateValue(value2, "onChange");
|
|
102
102
|
};
|
|
103
103
|
const handleBlur = (event) => {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
setTimeout(() => {
|
|
108
|
-
setActive(false);
|
|
109
|
-
}, 50);
|
|
110
|
-
} else {
|
|
111
|
-
updateValue(value, "onBlur");
|
|
104
|
+
const val = Taro.getEnv() === "WEB" ? event.target.value : value;
|
|
105
|
+
updateValue(val, "onBlur");
|
|
106
|
+
setTimeout(() => {
|
|
112
107
|
setActive(false);
|
|
113
|
-
}
|
|
108
|
+
}, 200);
|
|
114
109
|
};
|
|
115
110
|
const inputType = (type2) => {
|
|
116
111
|
if (getEnv() === ENV_TYPE.WEB) {
|
|
@@ -139,12 +134,13 @@ const Input = forwardRef((props, ref) => {
|
|
|
139
134
|
"left"
|
|
140
135
|
) : align === "left" ? "right" : "center"
|
|
141
136
|
) : align
|
|
142
|
-
}, type: inputType(type), password: type === "password", maxlength: maxLength, placeholder: placeholder
|
|
137
|
+
}, type: inputType(type), password: type === "password", maxlength: maxLength, placeholder: placeholder === void 0 ? locale.placeholder : placeholder, disabled: disabled || readOnly, value, focus: autoFocus, confirmType, onBlur: handleBlur, onFocus: handleFocus, onInput: (e) => {
|
|
143
138
|
handleInput(e.currentTarget.value);
|
|
144
139
|
} })),
|
|
145
140
|
React__default.createElement(View, { style: {
|
|
146
141
|
display: clearable && !readOnly && active && value.length > 0 ? "flex" : "none",
|
|
147
|
-
alignItems: "center"
|
|
142
|
+
alignItems: "center",
|
|
143
|
+
cursor: "pointer"
|
|
148
144
|
}, onClick: (e) => {
|
|
149
145
|
e.stopPropagation();
|
|
150
146
|
if (!disabled) {
|
|
@@ -154,7 +150,6 @@ const Input = forwardRef((props, ref) => {
|
|
|
154
150
|
} }, clearIcon || React__default.createElement(MaskClose, { className: "nut-input-clear" }))
|
|
155
151
|
);
|
|
156
152
|
});
|
|
157
|
-
Input.defaultProps = defaultProps;
|
|
158
153
|
Input.displayName = "NutInput";
|
|
159
154
|
export {
|
|
160
155
|
Input as I
|
|
@@ -4,7 +4,6 @@ const Layout = (props) => {
|
|
|
4
4
|
Object.assign(Object.assign({}, defaultProps), props);
|
|
5
5
|
return React__default.createElement("div", { className: "nut-layout" }, "Layout");
|
|
6
6
|
};
|
|
7
|
-
Layout.defaultProps = defaultProps;
|
|
8
7
|
Layout.displayName = "NutLayout";
|
|
9
8
|
export {
|
|
10
9
|
Layout as L
|
|
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
|
2
2
|
import React__default, { useRef, useState, useEffect } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { ArrowUp, ArrowDown } from "@nutui/icons-react-taro";
|
|
5
|
-
import { M as MenuItem } from "./menuitem.taro-
|
|
5
|
+
import { M as MenuItem } from "./menuitem.taro-CKjl8_Cl.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { activeColor: "", closeOnOverlayClick: true, scrollFixed: false, lockScroll: true, overlay: true, icon: null, onOpen: (index, from) => {
|
|
8
8
|
}, onClose: (index, from) => {
|
|
@@ -107,7 +107,6 @@ const Menu = (props) => {
|
|
|
107
107
|
cloneChildren()
|
|
108
108
|
);
|
|
109
109
|
};
|
|
110
|
-
Menu.defaultProps = defaultProps;
|
|
111
110
|
Menu.displayName = "NutMenu";
|
|
112
111
|
Menu.Item = MenuItem;
|
|
113
112
|
export {
|