@nutui/nutui-react-taro 2.6.3 → 2.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/esm/ActionSheet.js +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/BackTop.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/Cell.js +1 -1
- package/dist/esm/CellGroup.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/Col.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/Dialog.js +1 -1
- package/dist/esm/Divider.js +1 -1
- package/dist/esm/Drag.js +1 -1
- package/dist/esm/Elevator.js +1 -1
- package/dist/esm/Ellipsis.js +1 -1
- package/dist/esm/Empty.js +1 -1
- package/dist/esm/FixedNav.js +1 -1
- package/dist/esm/Form.js +2 -3
- package/dist/esm/FormItem.js +1 -1
- package/dist/esm/Grid.js +1 -1
- package/dist/esm/GridItem.js +1 -1
- package/dist/esm/Image.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/NavBar.js +1 -1
- package/dist/esm/NoticeBar.js +1 -1
- package/dist/esm/NumberKeyboard.js +1 -1
- package/dist/esm/Overlay.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/Row.js +1 -1
- package/dist/esm/SafeArea.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/Space.js +1 -1
- package/dist/esm/Step.js +1 -1
- package/dist/esm/Steps.js +1 -1
- package/dist/esm/Sticky.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/Tabs.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/Toast.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-Dpjoa3xo.js → actionsheet.taro-CI2b9f_3.js} +1 -2
- package/dist/esm/{address.taro-C_wuRkKQ.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-a6CX3kxV.js → avatar.taro-Dx8hhvFI.js} +4 -5
- 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/{backtop.taro-X1X5Uzz5.js → backtop.taro-YeEY7i4O.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-DEsLc-lS.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-B06E-RW5.js → cascader.taro-CZkUgupN.js} +6 -7
- package/dist/esm/{cell.taro-CmI4m0SC.js → cell.taro-kOgCGbyn.js} +1 -2
- package/dist/esm/{cellgroup.taro-CYsSk-Bt.js → cellgroup.taro-BskBIgql.js} +0 -1
- 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/{col.taro-C8DUuJYh.js → col.taro-BdtbWacE.js} +0 -1
- 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-DEwb5whP.js → datepicker.taro-B7H4b8TO.js} +1 -1
- package/dist/esm/{dialog.taro-x_jRYew5.js → dialog.taro-Du4bNKvD.js} +1 -1
- package/dist/esm/{divider.taro-DRcO_m9e.js → divider.taro-CijVuCyt.js} +0 -1
- package/dist/esm/{drag.taro-CcHIO07Y.js → drag.taro-D6xGnWqk.js} +3 -4
- package/dist/esm/{elevator.taro-uhrF7ChY.js → elevator.taro-BzVoaYw6.js} +0 -1
- 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/{fixednav.taro-CJUDQcX1.js → fixednav.taro-CewDiT-u.js} +1 -2
- package/dist/esm/{formitem.taro-DDNlpN_O.js → formitem.taro-Y-hHJ2oh.js} +1 -1
- package/dist/esm/{grid.taro-BA76RrgT.js → grid.taro-C4xSMhg4.js} +1 -2
- package/dist/esm/{griditem.taro-JLddv9zD.js → griditem.taro-DeXl7qNi.js} +0 -1
- package/dist/esm/{image.taro-BLz2WCva.js → image.taro-ESa7sdbM.js} +0 -1
- package/dist/esm/{imagepreview.taro-BMlwAhT0.js → imagepreview.taro-Wdlb0tIh.js} +10 -12
- 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-J7oZoaGM.js → menu.taro-DkKY62ym.js} +1 -2
- package/dist/esm/{menuitem.taro-CaI5vTha.js → menuitem.taro-CKjl8_Cl.js} +2 -3
- package/dist/esm/{navbar.taro-B8u3DOE4.js → navbar.taro-COrKuU9p.js} +0 -1
- package/dist/esm/{noticebar.taro-BtudzdMD.js → noticebar.taro-cjVGemZE.js} +0 -1
- package/dist/esm/{numberkeyboard.taro-DjxjkImT.js → numberkeyboard.taro-CFJtMOew.js} +2 -3
- package/dist/esm/nutui-react.es.js +83 -83
- package/dist/esm/{overlay.taro--1Kf1D7C.js → overlay.taro-BJ3twlP0.js} +1 -2
- package/dist/esm/{pagination.taro-DAK6ddag.js → pagination.taro-B8hmHNgf.js} +0 -1
- package/dist/esm/{picker.taro-DR2HAkv6.js → picker.taro-CHsDIw4C.js} +2 -3
- package/dist/esm/{popover.taro-MnR5htLt.js → popover.taro-Dve2UnRF.js} +4 -6
- package/dist/esm/{popup.taro-B7_iPgl4.js → popup.taro-cT6cbAxw.js} +1 -2
- 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/{row.taro-C3YvH_nz.js → row.taro-ItEq1Bi5.js} +0 -1
- package/dist/esm/{safearea.taro-BMQHr7tu.js → safearea.taro-BJpvFsMf.js} +1 -0
- package/dist/esm/{searchbar.taro-PfVx6o-6.js → searchbar.taro-B31m8apz.js} +6 -7
- package/dist/esm/{shortpassword.taro-GkcE-e__.js → shortpassword.taro-BVp4BrTs.js} +3 -3
- package/dist/esm/{sidenavbar.taro-5d-6iiNq.js → sidenavbar.taro-DGnJgxEe.js} +5 -6
- package/dist/esm/{signature.taro-Bn9VNn62.js → signature.taro-DTZCZMDZ.js} +1 -2
- package/dist/esm/{skeleton.taro-BwIDIf2p.js → skeleton.taro-C3vp7bWb.js} +1 -2
- package/dist/esm/{space.taro-CZ999etm.js → space.taro-B1KsEPZL.js} +0 -1
- 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/{sticky.taro-DRBk3gkQ.js → sticky.taro-CqiMtDv9.js} +0 -1
- package/dist/esm/{switch.taro-D1HgJoJz.js → switch.taro-Mq1wBEGz.js} +0 -1
- package/dist/esm/{tabbar.taro-CVp3ZaqP.js → tabbar.taro-DD5HcQgp.js} +1 -2
- 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/{tabs.taro-B4XgogPx.js → tabs.taro-gcyv8qGG.js} +4 -5
- 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-DkdpBJlT.js → timeselect.taro-C64SUiXS.js} +2 -3
- package/dist/esm/{toast.taro-B0YEmeDn.js → toast.taro-CSqE0aIO.js} +1 -1
- package/dist/esm/{tour.taro-CdX6pugO.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-Cl08vfdg.js → virtuallist.taro-GLen2Ay5.js} +1 -4
- 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 +158 -242
- package/dist/nutui.react.umd.js +158 -242
- 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/types/utils/use-lock-fn.d.ts +0 -2
|
@@ -4,6 +4,7 @@ const classPrefix = "nut-safe-area";
|
|
|
4
4
|
const SafeArea = (props) => {
|
|
5
5
|
return React__default.createElement("div", { className: classNames(classPrefix, `${classPrefix}-position-${props.position}`) });
|
|
6
6
|
};
|
|
7
|
+
SafeArea.displayName = "NutSafeArea";
|
|
7
8
|
export {
|
|
8
9
|
SafeArea as S
|
|
9
10
|
};
|
|
@@ -7,8 +7,8 @@ const SearchBar = (props) => {
|
|
|
7
7
|
const classPrefix = "nut-searchbar";
|
|
8
8
|
const { locale } = useConfig();
|
|
9
9
|
const searchRef = useRef(null);
|
|
10
|
-
const
|
|
11
|
-
const
|
|
10
|
+
const { value: outerValue, style, placeholder, shape, className, disabled, maxLength, clearable, readOnly, autoFocus, backable, right, left, leftIn, rightIn, onChange, onFocus, onBlur, onClear, onSearch, onInputClick } = Object.assign(Object.assign({}, defaultProps), props);
|
|
11
|
+
const [value, setValue] = useState(() => outerValue);
|
|
12
12
|
const forceFocus = () => {
|
|
13
13
|
const searchSelf = searchRef.current;
|
|
14
14
|
searchSelf && searchSelf.focus();
|
|
@@ -31,13 +31,13 @@ const SearchBar = (props) => {
|
|
|
31
31
|
onBlur && (onBlur === null || onBlur === void 0 ? void 0 : onBlur(value2, event));
|
|
32
32
|
};
|
|
33
33
|
useEffect(() => {
|
|
34
|
-
setValue(
|
|
35
|
-
}, [
|
|
34
|
+
setValue(outerValue || "");
|
|
35
|
+
}, [outerValue]);
|
|
36
36
|
useEffect(() => {
|
|
37
37
|
autoFocus && forceFocus();
|
|
38
38
|
}, [autoFocus]);
|
|
39
39
|
const renderField = () => {
|
|
40
|
-
return React__default.createElement("input", { className: `${classPrefix}-input ${clearable ? `${classPrefix}-input-clear` : ""}`, ref: searchRef, style
|
|
40
|
+
return React__default.createElement("input", { className: `${classPrefix}-input ${clearable ? `${classPrefix}-input-clear` : ""}`, ref: searchRef, style, value: value || "", placeholder: placeholder || locale.placeholder, disabled, readOnly, maxLength, onKeyPress: onKeypress, onChange: (e) => change(e), onFocus: (e) => focus(e), onBlur: (e) => blur(e), onClick: (e) => clickInput(e) });
|
|
41
41
|
};
|
|
42
42
|
const clickInput = (e) => {
|
|
43
43
|
onInputClick && onInputClick(e);
|
|
@@ -87,7 +87,7 @@ const SearchBar = (props) => {
|
|
|
87
87
|
};
|
|
88
88
|
return React__default.createElement(
|
|
89
89
|
"div",
|
|
90
|
-
{ className: `${classPrefix} ${disabled ? `${classPrefix}-disabled` : ""} ${className || ""}`, style
|
|
90
|
+
{ className: `${classPrefix} ${disabled ? `${classPrefix}-disabled` : ""} ${className || ""}`, style },
|
|
91
91
|
renderLeft(),
|
|
92
92
|
React__default.createElement(
|
|
93
93
|
"div",
|
|
@@ -100,7 +100,6 @@ const SearchBar = (props) => {
|
|
|
100
100
|
renderRight()
|
|
101
101
|
);
|
|
102
102
|
};
|
|
103
|
-
SearchBar.defaultProps = defaultProps;
|
|
104
103
|
SearchBar.displayName = "NutSearchBar";
|
|
105
104
|
export {
|
|
106
105
|
SearchBar as S
|
|
@@ -2,14 +2,14 @@ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
|
2
2
|
import React__default, { useMemo, useImperativeHandle, useEffect } from "react";
|
|
3
3
|
import { Tips } from "@nutui/icons-react-taro";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { P as Popup } from "./popup.taro-
|
|
5
|
+
import { P as Popup } from "./popup.taro-cT6cbAxw.js";
|
|
6
6
|
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
9
9
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { value: "", visible: false, plain: false, hideFooter: true, length: 6, autoFocus: false });
|
|
10
10
|
const InternalShortPassword = (props, ref) => {
|
|
11
11
|
const { locale } = useConfig();
|
|
12
|
-
const _a = Object.assign(Object.assign({}, defaultProps), props), { title, description, tips, visible:
|
|
12
|
+
const _a = Object.assign(Object.assign({}, defaultProps), props), { title, description, tips, visible: outerVisible, value, error, hideFooter, length, plain, style, className, closeable, autoFocus, onFocus, onChange, onConfirm, onTips, onCancel, onClose, onComplete, onOverlayClick, onCloseIconClick } = _a, rest = __rest(_a, ["title", "description", "tips", "visible", "value", "error", "hideFooter", "length", "plain", "style", "className", "closeable", "autoFocus", "onFocus", "onChange", "onConfirm", "onTips", "onCancel", "onClose", "onComplete", "onOverlayClick", "onCloseIconClick"]);
|
|
13
13
|
const classPrefix = "nut-shortpassword";
|
|
14
14
|
const comLen = useMemo(() => {
|
|
15
15
|
return Math.min(Math.max(4, length || 4), 6);
|
|
@@ -18,7 +18,7 @@ const InternalShortPassword = (props, ref) => {
|
|
|
18
18
|
return val.slice(0, comLen);
|
|
19
19
|
};
|
|
20
20
|
const [visible, setVisible] = usePropsValue({
|
|
21
|
-
value:
|
|
21
|
+
value: outerVisible,
|
|
22
22
|
defaultValue: false,
|
|
23
23
|
finalValue: false
|
|
24
24
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
2
2
|
import React__default, { useState } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { P as Popup } from "./popup.taro-
|
|
4
|
+
import { P as Popup } from "./popup.taro-cT6cbAxw.js";
|
|
5
5
|
import { O as OffsetContext } from "./context-4T-L2x0_.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { position: "left", width: "80%" });
|
|
8
8
|
const SideNavBar = (props) => {
|
|
9
9
|
const classPrefix = "nut-sidenavbar";
|
|
10
|
-
const _a = Object.assign(Object.assign({}, defaultProps), props), { title, visible, width, position, children, className, onClose } = _a, rest = __rest(_a, ["title", "visible", "width", "position", "children", "className", "onClose"]);
|
|
11
|
-
const
|
|
10
|
+
const _a = Object.assign(Object.assign({}, defaultProps), props), { title, visible, width, position, children, className, onClose, indent } = _a, rest = __rest(_a, ["title", "visible", "width", "position", "children", "className", "onClose", "indent"]);
|
|
11
|
+
const innerIndent = indent ? Number(indent) : 20;
|
|
12
12
|
const [sidenavbarShow, setSidenavbarShow] = useState(true);
|
|
13
13
|
const handleClick = () => {
|
|
14
14
|
setSidenavbarShow(!sidenavbarShow);
|
|
@@ -27,13 +27,13 @@ const SideNavBar = (props) => {
|
|
|
27
27
|
{ className: `${classPrefix}-list ${sidenavbarShow ? "sidenavbar-show" : "sidenavbar-hide"}`, onClick: handleClick },
|
|
28
28
|
React__default.createElement(
|
|
29
29
|
"div",
|
|
30
|
-
{ className: `${classPrefix}-title ${classPrefix}-border-bt`, style: { paddingLeft: `${
|
|
30
|
+
{ className: `${classPrefix}-title ${classPrefix}-border-bt`, style: { paddingLeft: `${innerIndent}px` } },
|
|
31
31
|
title,
|
|
32
32
|
React__default.createElement("i", { className: `arrow-icon ${sidenavbarShow ? "arrow-up" : "arrow-down"}` })
|
|
33
33
|
),
|
|
34
34
|
React__default.createElement(
|
|
35
35
|
OffsetContext.Provider,
|
|
36
|
-
{ value:
|
|
36
|
+
{ value: innerIndent },
|
|
37
37
|
React__default.createElement("div", { className: `${classPrefix}-content` }, children)
|
|
38
38
|
)
|
|
39
39
|
)
|
|
@@ -41,7 +41,6 @@ const SideNavBar = (props) => {
|
|
|
41
41
|
)
|
|
42
42
|
);
|
|
43
43
|
};
|
|
44
|
-
SideNavBar.defaultProps = defaultProps;
|
|
45
44
|
SideNavBar.displayName = "NutSideNavBar";
|
|
46
45
|
export {
|
|
47
46
|
SideNavBar as S
|
|
@@ -52,7 +52,7 @@ const InternalSignature = (props, ref) => {
|
|
|
52
52
|
}).exec((res) => {
|
|
53
53
|
canvasToTempFilePath({
|
|
54
54
|
canvas: res[0].node,
|
|
55
|
-
fileType:
|
|
55
|
+
fileType: type,
|
|
56
56
|
canvasId: `${canvasId}`,
|
|
57
57
|
success: (res2) => {
|
|
58
58
|
onConfirm && onConfirm(res2.tempFilePath);
|
|
@@ -129,7 +129,6 @@ const InternalSignature = (props, ref) => {
|
|
|
129
129
|
);
|
|
130
130
|
};
|
|
131
131
|
const Signature = React__default.forwardRef(InternalSignature);
|
|
132
|
-
Signature.defaultProps = defaultProps;
|
|
133
132
|
Signature.displayName = "NutSignature";
|
|
134
133
|
export {
|
|
135
134
|
Signature as S
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { A as Avatar } from "./avatar.taro-
|
|
4
|
+
import { A as Avatar } from "./avatar.taro-Dx8hhvFI.js";
|
|
5
5
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
6
6
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { rows: 1, animated: false, title: false, avatar: false, avatarSize: "50px", visible: false, avatarShape: "round" });
|
|
7
7
|
const Skeleton = (props) => {
|
|
@@ -46,7 +46,6 @@ const Skeleton = (props) => {
|
|
|
46
46
|
)
|
|
47
47
|
));
|
|
48
48
|
};
|
|
49
|
-
Skeleton.defaultProps = defaultProps;
|
|
50
49
|
Skeleton.displayName = "NutSkeleton";
|
|
51
50
|
export {
|
|
52
51
|
Skeleton as S
|
|
@@ -11,7 +11,6 @@ const Space = (props) => {
|
|
|
11
11
|
return child !== null && child !== void 0 && React__default.createElement("div", { className: `${prefixCls}-item` }, child);
|
|
12
12
|
}));
|
|
13
13
|
};
|
|
14
|
-
Space.defaultProps = defaultProps;
|
|
15
14
|
Space.displayName = "NutSpace";
|
|
16
15
|
export {
|
|
17
16
|
Space as S
|
|
@@ -13,7 +13,7 @@ const Steps = (props) => {
|
|
|
13
13
|
const classPrefix = `nut-steps`;
|
|
14
14
|
const classes = classNames(classPrefix, {
|
|
15
15
|
[`${classPrefix}-${direction}`]: true,
|
|
16
|
-
[`${classPrefix}-dot`]: !!
|
|
16
|
+
[`${classPrefix}-dot`]: !!dot
|
|
17
17
|
}, className);
|
|
18
18
|
return React__default.createElement(
|
|
19
19
|
DataContext.Provider,
|
|
@@ -21,7 +21,6 @@ const Steps = (props) => {
|
|
|
21
21
|
React__default.createElement("div", Object.assign({ className: classes }, restProps), children)
|
|
22
22
|
);
|
|
23
23
|
};
|
|
24
|
-
Steps.defaultProps = defaultProps;
|
|
25
24
|
Steps.displayName = "NutSteps";
|
|
26
25
|
export {
|
|
27
26
|
Steps as S
|
|
@@ -2,7 +2,7 @@ import React__default from "react";
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
4
4
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
5
|
-
import { a as TabbarContext, T as TabbarItem } from "./tabbaritem.taro-
|
|
5
|
+
import { a as TabbarContext, T as TabbarItem } from "./tabbaritem.taro-ptdJI0xv.js";
|
|
6
6
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { defaultValue: 0, fixed: false, inactiveColor: "", activeColor: "", safeArea: false, onSwitch: (value) => {
|
|
7
7
|
} });
|
|
8
8
|
const Tabbar = (props) => {
|
|
@@ -36,7 +36,6 @@ const Tabbar = (props) => {
|
|
|
36
36
|
(fixed || safeArea) && React__default.createElement("div", { className: `${classPrefix}-safe-area` })
|
|
37
37
|
);
|
|
38
38
|
};
|
|
39
|
-
Tabbar.defaultProps = defaultProps;
|
|
40
39
|
Tabbar.displayName = "NutTabbar";
|
|
41
40
|
Tabbar.Item = TabbarItem;
|
|
42
41
|
export {
|
|
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
|
2
2
|
import React__default, { useContext } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
|
-
import { B as Badge } from "./badge.taro-
|
|
5
|
+
import { B as Badge } from "./badge.taro-DK_UFQ5Y.js";
|
|
6
6
|
const TabbarContext = React__default.createContext(null);
|
|
7
7
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { title: "", icon: null, value: "", dot: false, max: 99, top: "0", right: "5" });
|
|
8
8
|
const TabbarItem = (props) => {
|
|
@@ -106,7 +106,7 @@ const Table = (props) => {
|
|
|
106
106
|
};
|
|
107
107
|
const cellClasses = (item) => {
|
|
108
108
|
return {
|
|
109
|
-
[`${headerClassPrefix}-border`]:
|
|
109
|
+
[`${headerClassPrefix}-border`]: bordered,
|
|
110
110
|
[`${headerClassPrefix}-align${item.align ? item.align : ""}`]: true
|
|
111
111
|
};
|
|
112
112
|
};
|
|
@@ -167,7 +167,6 @@ const Table = (props) => {
|
|
|
167
167
|
(summary || innerValue.length === 0) && React__default.createElement("div", { className: `${classPrefix}-summary` }, summary || noData)
|
|
168
168
|
);
|
|
169
169
|
};
|
|
170
|
-
Table.defaultProps = defaultProps;
|
|
171
170
|
Table.displayName = "NutTable";
|
|
172
171
|
export {
|
|
173
172
|
Table as T
|
|
@@ -15,11 +15,11 @@ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { tabSt
|
|
|
15
15
|
const classPrefix = "nut-tabs";
|
|
16
16
|
const Tabs = (props) => {
|
|
17
17
|
const rtl = useRtl();
|
|
18
|
-
const _a = Object.assign(Object.assign({}, defaultProps), props), { activeColor, tabStyle, direction, activeType, duration, align, title, name, children, onClick, onChange, className, autoHeight } = _a, rest = __rest(_a, ["activeColor", "tabStyle", "direction", "activeType", "duration", "align", "title", "name", "children", "onClick", "onChange", "className", "autoHeight"]);
|
|
18
|
+
const _a = Object.assign(Object.assign({}, defaultProps), props), { activeColor, tabStyle, direction, activeType, duration, align, title, name, children, onClick, onChange, className, autoHeight, value: outerValue, defaultValue: outerDefaultValue } = _a, rest = __rest(_a, ["activeColor", "tabStyle", "direction", "activeType", "duration", "align", "title", "name", "children", "onClick", "onChange", "className", "autoHeight", "value", "defaultValue"]);
|
|
19
19
|
const uuid = useUuid();
|
|
20
20
|
const [value, setValue] = usePropsValue({
|
|
21
|
-
value:
|
|
22
|
-
defaultValue:
|
|
21
|
+
value: outerValue,
|
|
22
|
+
defaultValue: outerDefaultValue,
|
|
23
23
|
finalValue: 0,
|
|
24
24
|
onChange
|
|
25
25
|
});
|
|
@@ -113,7 +113,7 @@ const Tabs = (props) => {
|
|
|
113
113
|
if (!titleRect)
|
|
114
114
|
return;
|
|
115
115
|
let to = 0;
|
|
116
|
-
if (
|
|
116
|
+
if (direction === "vertical") {
|
|
117
117
|
const top = titleRects.slice(0, index).reduce((prev, curr) => prev + curr.height, 0);
|
|
118
118
|
to = top - (navRectRef.current.height - titleRect.height) / 2;
|
|
119
119
|
} else {
|
|
@@ -192,7 +192,6 @@ const Tabs = (props) => {
|
|
|
192
192
|
)
|
|
193
193
|
);
|
|
194
194
|
};
|
|
195
|
-
Tabs.defaultProps = defaultProps;
|
|
196
195
|
Tabs.displayName = "NutTabs";
|
|
197
196
|
Tabs.TabPane = TabPane;
|
|
198
197
|
export {
|
|
@@ -49,7 +49,6 @@ const Tag = (props) => {
|
|
|
49
49
|
} })
|
|
50
50
|
) : React__default.createElement("div", { className: classes, style: Object.assign(Object.assign({}, style), getStyle()), onClick: (e) => handleClick(e) }, children && React__default.createElement("span", { className: `${classPrefix}-text` }, children)));
|
|
51
51
|
};
|
|
52
|
-
Tag.defaultProps = defaultProps;
|
|
53
52
|
Tag.displayName = "NutTag";
|
|
54
53
|
export {
|
|
55
54
|
Tag as T
|
|
@@ -31,7 +31,6 @@ const TimeDetail = (props) => {
|
|
|
31
31
|
active: isActive(item[optionKey.valueKey])
|
|
32
32
|
}), key: item[optionKey.valueKey], onClick: () => onSelect(item) }, item[optionKey.textKey])));
|
|
33
33
|
};
|
|
34
|
-
TimeDetail.defaultProps = defaultProps;
|
|
35
34
|
TimeDetail.displayName = "NutTimeDetail";
|
|
36
35
|
export {
|
|
37
36
|
TimeDetail as T
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
2
2
|
import React__default, { useState } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { P as Popup } from "./popup.taro-
|
|
5
|
-
import { T as TimeDetail } from "./timedetail.taro-
|
|
4
|
+
import { P as Popup } from "./popup.taro-cT6cbAxw.js";
|
|
5
|
+
import { T as TimeDetail } from "./timedetail.taro-ya5JNy2L.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
8
8
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, multiple: false, defaultValue: [], options: [], optionKey: {
|
|
@@ -93,7 +93,6 @@ const TimeSelect = (props) => {
|
|
|
93
93
|
)
|
|
94
94
|
);
|
|
95
95
|
};
|
|
96
|
-
TimeSelect.defaultProps = defaultProps;
|
|
97
96
|
TimeSelect.displayName = "NutTimeSelect";
|
|
98
97
|
export {
|
|
99
98
|
TimeSelect as T
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { Success, Failure, Tips, Loading } from "@nutui/icons-react-taro";
|
|
4
|
-
import { O as Overlay } from "./overlay.taro
|
|
4
|
+
import { O as Overlay } from "./overlay.taro-BJ3twlP0.js";
|
|
5
5
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
6
6
|
import { b as useParams, u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-DuP4onEm.js";
|
|
7
7
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
|
2
2
|
import React__default, { useState, useEffect } from "react";
|
|
3
3
|
import { Close } from "@nutui/icons-react-taro";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { P as Popover } from "./popover.taro-
|
|
5
|
+
import { P as Popover } from "./popover.taro-Dve2UnRF.js";
|
|
6
6
|
import Taro, { createSelectorQuery } from "@tarojs/taro";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { useConfig } from "./ConfigProvider.js";
|
|
@@ -160,7 +160,6 @@ const Tour = (props) => {
|
|
|
160
160
|
})
|
|
161
161
|
);
|
|
162
162
|
};
|
|
163
|
-
Tour.defaultProps = defaultProps;
|
|
164
163
|
Tour.displayName = "NutTour";
|
|
165
164
|
export {
|
|
166
165
|
Tour as T
|
|
@@ -9,7 +9,7 @@ import { a as isPromise } from "./index-DeNfBlua.js";
|
|
|
9
9
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
10
10
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
11
11
|
import { Image } from "@tarojs/components";
|
|
12
|
-
import { P as Progress } from "./progress.taro-
|
|
12
|
+
import { P as Progress } from "./progress.taro-BFWQ2MvM.js";
|
|
13
13
|
class UploadOptions {
|
|
14
14
|
constructor() {
|
|
15
15
|
this.url = "";
|
|
@@ -354,7 +354,7 @@ const InternalUploader = (props, ref) => {
|
|
|
354
354
|
});
|
|
355
355
|
};
|
|
356
356
|
const task = new UploaderTaro(uploadOption);
|
|
357
|
-
if (
|
|
357
|
+
if (autoUpload) {
|
|
358
358
|
task.uploadTaro(uploadFile, getEnv());
|
|
359
359
|
} else {
|
|
360
360
|
uploadQueue.push(new Promise((resolve, reject) => {
|
|
@@ -404,8 +404,8 @@ const InternalUploader = (props, ref) => {
|
|
|
404
404
|
});
|
|
405
405
|
};
|
|
406
406
|
const filterFiles = (files) => {
|
|
407
|
-
const maximum =
|
|
408
|
-
const maximize =
|
|
407
|
+
const maximum = maxCount * 1;
|
|
408
|
+
const maximize = maxFileSize * 1;
|
|
409
409
|
const oversizes = new Array();
|
|
410
410
|
const filterFile = files.filter((file) => {
|
|
411
411
|
if (file.size > maximize) {
|
|
@@ -484,7 +484,6 @@ const InternalUploader = (props, ref) => {
|
|
|
484
484
|
);
|
|
485
485
|
};
|
|
486
486
|
const Uploader = React__default.forwardRef(InternalUploader);
|
|
487
|
-
Uploader.defaultProps = defaultProps;
|
|
488
487
|
Uploader.displayName = "NutUploader";
|
|
489
488
|
export {
|
|
490
489
|
Uploader as U
|
|
@@ -27,7 +27,6 @@ const Video = (props) => {
|
|
|
27
27
|
React__default.createElement(Video$1, Object.assign({ className: "nut-video-player", muted: options.muted, autoplay: options.autoplay, loop: options.loop, poster: options.poster, controls: options.controls, src: source.src, onPlay, onPause, onEnded: onPlayEnd }, restProps))
|
|
28
28
|
);
|
|
29
29
|
};
|
|
30
|
-
Video.defaultProps = defaultProps;
|
|
31
30
|
Video.displayName = "NutVideo";
|
|
32
31
|
export {
|
|
33
32
|
Video as V
|
|
@@ -87,7 +87,6 @@ const VirtualList = (props) => {
|
|
|
87
87
|
const pos = initPositinoCache(itemHeight + margin, list.length);
|
|
88
88
|
setPositions(pos);
|
|
89
89
|
}, [itemHeight, list]);
|
|
90
|
-
const prevListLength = useRef(list.length);
|
|
91
90
|
const getContainerHeight = () => {
|
|
92
91
|
const initH = (itemHeight + margin) * list.length;
|
|
93
92
|
return initH < clientHeight ? initH + overscan * (itemHeight + margin) - 5 : Math.min(containerHeight, clientHeight);
|
|
@@ -124,9 +123,8 @@ const VirtualList = (props) => {
|
|
|
124
123
|
start.current = Math.floor(scrollTop / (itemHeight + margin));
|
|
125
124
|
setStartOffset(scrollTop - scrollTop % (itemHeight + margin));
|
|
126
125
|
const endIndex = end();
|
|
127
|
-
if (endIndex > list.length - 1
|
|
126
|
+
if (endIndex > list.length - 1) {
|
|
128
127
|
onScroll && onScroll();
|
|
129
|
-
prevListLength.current = list.length;
|
|
130
128
|
}
|
|
131
129
|
};
|
|
132
130
|
return React__default.createElement(
|
|
@@ -150,7 +148,6 @@ const VirtualList = (props) => {
|
|
|
150
148
|
)
|
|
151
149
|
);
|
|
152
150
|
};
|
|
153
|
-
VirtualList.defaultProps = defaultProps;
|
|
154
151
|
VirtualList.displayName = "NutVirtualList";
|
|
155
152
|
export {
|
|
156
153
|
VirtualList as V
|
|
@@ -76,7 +76,6 @@ const WaterMark = (props) => {
|
|
|
76
76
|
};
|
|
77
77
|
return React__default.createElement("div", { className: cls, style: Object.assign({ zIndex, backgroundSize: `${gapX + width}px`, backgroundImage: `url('${base64Url}')` }, style) });
|
|
78
78
|
};
|
|
79
|
-
WaterMark.defaultProps = defaultProps;
|
|
80
79
|
WaterMark.displayName = "NutWaterMark";
|
|
81
80
|
export {
|
|
82
81
|
WaterMark as W
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED